Home
last modified time | relevance | path

Searched refs:evt (Results 1 – 25 of 27) sorted by relevance

12

/linux-4.19.296/drivers/uwb/
Duwbd.c179 int uwbd_event_handle_urc(struct uwb_event *evt) in uwbd_event_handle_urc() argument
187 type = evt->notif.rceb->bEventType; in uwbd_event_handle_urc()
188 event = le16_to_cpu(evt->notif.rceb->wEvent); in uwbd_event_handle_urc()
189 context = evt->notif.rceb->bEventContext; in uwbd_event_handle_urc()
202 result = (*handler)(evt); in uwbd_event_handle_urc()
205 dev_err(&evt->rc->uwb_dev.dev, in uwbd_event_handle_urc()
211 static void uwbd_event_handle_message(struct uwb_event *evt) in uwbd_event_handle_message() argument
216 rc = evt->rc; in uwbd_event_handle_message()
218 if (evt->message < 0 || evt->message >= ARRAY_SIZE(uwbd_message_handlers)) { in uwbd_event_handle_message()
219 dev_err(&rc->uwb_dev.dev, "UWBD: invalid message type %d\n", evt->message); in uwbd_event_handle_message()
[all …]
Dbeacon.c361 static int uwb_verify_beacon(struct uwb_rc *rc, struct uwb_event *evt, in uwb_verify_beacon() argument
369 if (evt->notif.size < sizeof(*be) + sizeof(*bf)) { in uwb_verify_beacon()
371 "(%zu vs %zu bytes needed)\n", evt->notif.size, in uwb_verify_beacon()
393 int uwbd_evt_handle_rc_beacon(struct uwb_event *evt) in uwbd_evt_handle_rc_beacon() argument
401 rc = evt->rc; in uwbd_evt_handle_rc_beacon()
402 be = container_of(evt->notif.rceb, struct uwb_rc_evt_beacon, rceb); in uwbd_evt_handle_rc_beacon()
403 result = uwb_verify_beacon(rc, evt, be); in uwbd_evt_handle_rc_beacon()
430 uwb_beacon_print(evt->rc, be, bf); in uwbd_evt_handle_rc_beacon()
431 bce = __uwb_beca_add(rc, be, bf, evt->ts_jiffies); in uwbd_evt_handle_rc_beacon()
444 bce->ts_jiffies = evt->ts_jiffies; in uwbd_evt_handle_rc_beacon()
[all …]
Die-rcv.c29 int uwbd_evt_handle_rc_ie_rcv(struct uwb_event *evt) in uwbd_evt_handle_rc_ie_rcv() argument
32 struct device *dev = &evt->rc->uwb_dev.dev; in uwbd_evt_handle_rc_ie_rcv()
36 if (evt->notif.size < sizeof(*iercv)) { in uwbd_evt_handle_rc_ie_rcv()
39 evt->notif.size, sizeof(*iercv)); in uwbd_evt_handle_rc_ie_rcv()
42 iercv = container_of(evt->notif.rceb, struct uwb_rc_evt_ie_rcv, rceb); in uwbd_evt_handle_rc_ie_rcv()
Ddrp-avail.c227 int uwbd_evt_get_drp_avail(struct uwb_event *evt, unsigned long *bmp) in uwbd_evt_get_drp_avail() argument
229 struct device *dev = &evt->rc->uwb_dev.dev; in uwbd_evt_get_drp_avail()
234 if (evt->notif.size < sizeof(*drp_evt)) { in uwbd_evt_get_drp_avail()
237 "needed]\n", evt->notif.size, sizeof(*drp_evt)); in uwbd_evt_get_drp_avail()
240 drp_evt = container_of(evt->notif.rceb, struct uwb_rc_evt_drp_avail, rceb); in uwbd_evt_get_drp_avail()
271 int uwbd_evt_handle_rc_drp_avail(struct uwb_event *evt) in uwbd_evt_handle_rc_drp_avail() argument
274 struct uwb_rc *rc = evt->rc; in uwbd_evt_handle_rc_drp_avail()
277 result = uwbd_evt_get_drp_avail(evt, bmp); in uwbd_evt_handle_rc_drp_avail()
Dreset.c323 int uwbd_msg_handle_reset(struct uwb_event *evt) in uwbd_msg_handle_reset() argument
325 struct uwb_rc *rc = evt->rc; in uwbd_msg_handle_reset()
352 struct uwb_event *evt; in uwb_rc_reset_all() local
354 evt = kzalloc(sizeof(struct uwb_event), GFP_ATOMIC); in uwb_rc_reset_all()
355 if (unlikely(evt == NULL)) in uwb_rc_reset_all()
358 evt->rc = __uwb_rc_get(rc); /* will be put by uwbd's uwbd_event_handle() */ in uwb_rc_reset_all()
359 evt->ts_jiffies = jiffies; in uwb_rc_reset_all()
360 evt->type = UWB_EVT_TYPE_MSG; in uwb_rc_reset_all()
361 evt->message = UWB_EVT_MSG_RESET; in uwb_rc_reset_all()
363 uwbd_event_queue(evt); in uwb_rc_reset_all()
Daddress.c167 struct uwb_rc_evt_dev_addr_mgmt evt; in uwb_rc_addr_get() local
184 result = uwb_rc_dev_addr_mgmt(rc, bmOperationType, baAddr, &evt); in uwb_rc_addr_get()
188 memcpy(&dev_addr->data, evt.baAddr, in uwb_rc_addr_get()
192 memcpy(&mac_addr->data, evt.baAddr, in uwb_rc_addr_get()
297 int uwbd_evt_handle_rc_dev_addr_conflict(struct uwb_event *evt) in uwbd_evt_handle_rc_dev_addr_conflict() argument
299 struct uwb_rc *rc = evt->rc; in uwbd_evt_handle_rc_dev_addr_conflict()
Ddrp.c803 int uwbd_evt_handle_rc_drp(struct uwb_event *evt) in uwbd_evt_handle_rc_drp() argument
805 struct device *dev = &evt->rc->uwb_dev.dev; in uwbd_evt_handle_rc_drp()
806 struct uwb_rc *rc = evt->rc; in uwbd_evt_handle_rc_drp()
814 if (evt->notif.size < sizeof(*drp_evt)) { in uwbd_evt_handle_rc_drp()
817 evt->notif.size, sizeof(*drp_evt)); in uwbd_evt_handle_rc_drp()
820 bytes_left = evt->notif.size - sizeof(*drp_evt); in uwbd_evt_handle_rc_drp()
821 drp_evt = container_of(evt->notif.rceb, struct uwb_rc_evt_drp, rceb); in uwbd_evt_handle_rc_drp()
Dneh.c108 __le16 evt; member
230 neh->evt = cpu_to_le16(expected_event); in uwb_rc_neh_add()
308 && neh->evt == rceb->wEvent in uwb_rc_neh_match()
Duwb-internal.h247 int uwbd_msg_handle_reset(struct uwb_event *evt);
254 int uwbd_evt_handle_rc_dev_addr_conflict(struct uwb_event *evt);
/linux-4.19.296/include/linux/
Dsh_intc.h17 #define evt2irq(evt) (((evt) >> 5) - 16) argument
20 #define evt2irq(evt) (evt) argument
Dclockchips.h102 int (*set_next_event)(unsigned long evt, struct clock_event_device *);
182 extern u64 clockevent_delta2ns(unsigned long latch, struct clock_event_device *evt);
Dleds.h459 extern void ledtrig_cpu(enum cpu_led_event evt);
461 static inline void ledtrig_cpu(enum cpu_led_event evt) in ledtrig_cpu() argument
/linux-4.19.296/drivers/gpio/
Dgpio-kempld.c120 u16 evt, evt_back; in kempld_gpio_pincount() local
129 evt = kempld_read16(pld, KEMPLD_GPIO_EVT_LVL_EDGE); in kempld_gpio_pincount()
135 return evt ? __ffs(evt) : 16; in kempld_gpio_pincount()
/linux-4.19.296/drivers/bluetooth/
Dhci_nokia.c129 u8 evt; member
547 struct hci_nokia_neg_evt *evt; in nokia_recv_negotiation_packet() local
551 if (hdr->dlen != sizeof(*evt)) { in nokia_recv_negotiation_packet()
557 evt = skb_pull(skb, sizeof(*hdr)); in nokia_recv_negotiation_packet()
559 if (evt->ack != NOKIA_NEG_ACK) { in nokia_recv_negotiation_packet()
566 btdev->man_id = evt->man_id; in nokia_recv_negotiation_packet()
567 btdev->ver_id = evt->ver_id; in nokia_recv_negotiation_packet()
570 evt->baud, evt->sys_clk, evt->man_id, evt->ver_id); in nokia_recv_negotiation_packet()
Dbtusb.c1395 static void btusb_notify(struct hci_dev *hdev, unsigned int evt) in btusb_notify() argument
1399 BT_DBG("%s evt %d", hdev->name, evt); in btusb_notify()
1635 struct hci_event_hdr *evt = NULL; in btusb_setup_intel_patching() local
1689 evt = (struct hci_event_hdr *)(*fw_ptr); in btusb_setup_intel_patching()
1690 *fw_ptr += sizeof(*evt); in btusb_setup_intel_patching()
1691 remain -= sizeof(*evt); in btusb_setup_intel_patching()
1693 if (remain < evt->plen) { in btusb_setup_intel_patching()
1699 *fw_ptr += evt->plen; in btusb_setup_intel_patching()
1700 remain -= evt->plen; in btusb_setup_intel_patching()
1707 if (!evt || !evt_param || remain < 0) { in btusb_setup_intel_patching()
[all …]
Dhci_intel.c462 struct hci_ev_cmd_complete *evt; in inject_cmd_complete() local
464 skb = bt_skb_alloc(sizeof(*hdr) + sizeof(*evt) + 1, GFP_KERNEL); in inject_cmd_complete()
469 hdr->evt = HCI_EV_CMD_COMPLETE; in inject_cmd_complete()
470 hdr->plen = sizeof(*evt) + 1; in inject_cmd_complete()
472 evt = skb_put(skb, sizeof(*evt)); in inject_cmd_complete()
473 evt->ncmd = 0x01; in inject_cmd_complete()
474 evt->opcode = cpu_to_le16(opcode); in inject_cmd_complete()
909 if (skb->len == 7 && hdr->evt == 0xff && hdr->plen == 0x05 && in intel_recv_event()
924 } else if (skb->len == 9 && hdr->evt == 0xff && hdr->plen == 0x07 && in intel_recv_event()
Dbtmtkuart.c194 if (hdr->evt == 0xe4) in btmtkuart_recv_event()
195 hdr->evt = HCI_EV_VENDOR; in btmtkuart_recv_event()
199 if (hdr->evt == HCI_EV_VENDOR) { in btmtkuart_recv_event()
Dbtmrvl_main.c58 if (hdr->evt == HCI_EV_CMD_COMPLETE) { in btmrvl_check_evtpkt()
Dhci_bcsp.c558 hdr.evt = 0xff; in bcsp_complete_rx_pkt()
/linux-4.19.296/include/linux/uwb/
Dspec.h685 const struct uwb_rc_evt_bp_slot_change *evt) in uwb_rc_evt_bp_slot_change_slot_num() argument
687 return evt->slot_info & 0x7f; in uwb_rc_evt_bp_slot_change_slot_num()
691 const struct uwb_rc_evt_bp_slot_change *evt) in uwb_rc_evt_bp_slot_change_no_slot() argument
693 return (evt->slot_info & 0x80) >> 7; in uwb_rc_evt_bp_slot_change_no_slot()
719 static inline enum uwb_drp_notif_reason uwb_rc_evt_drp_reason(struct uwb_rc_evt_drp *evt) in uwb_rc_evt_drp_reason() argument
721 return evt->reason & 0x0f; in uwb_rc_evt_drp_reason()
/linux-4.19.296/drivers/virtio/
Dvirtio_input.c15 struct virtqueue *evt, *sts; member
27 virtqueue_add_inbuf(vi->evt, sg, 1, evtbuf, GFP_ATOMIC); in virtinput_queue_evtbuf()
39 while ((event = virtqueue_get_buf(vi->evt, &len)) != NULL) { in virtinput_recv_events()
179 vi->evt = vqs[0]; in virtinput_init_vqs()
191 size = virtqueue_get_vring_size(vi->evt); in virtinput_fill_evt()
196 virtqueue_kick(vi->evt); in virtinput_fill_evt()
/linux-4.19.296/drivers/isdn/hisax/
Dst5481.h501 static inline const char *ST5481_CMD_string(int evt) in ST5481_CMD_string() argument
505 switch (evt) { in ST5481_CMD_string()
517 sprintf(s, "0x%x", evt); in ST5481_CMD_string()
/linux-4.19.296/drivers/ptp/
Dptp_clock.c328 struct pps_event_time evt; in ptp_clock_event() local
341 pps_get_ts(&evt); in ptp_clock_event()
342 pps_event(ptp->pps_source, &evt, PTP_PPS_EVENT, NULL); in ptp_clock_event()
/linux-4.19.296/include/linux/perf/
Darm_pmu.h94 int (*set_event_filter)(struct hw_perf_event *evt,
/linux-4.19.296/include/scsi/
Dscsi_device.h413 extern void sdev_evt_send(struct scsi_device *sdev, struct scsi_event *evt);

12