/drivers/uwb/ |
D | neh.c | 299 static void uwb_rc_neh_cb(struct uwb_rc_neh *neh, struct uwb_rceb *rceb, size_t size) in uwb_rc_neh_cb() argument 301 (*neh->cb)(neh->rc, neh->arg, rceb, size); in uwb_rc_neh_cb() 305 static bool uwb_rc_neh_match(struct uwb_rc_neh *neh, const struct uwb_rceb *rceb) in uwb_rc_neh_match() argument 307 return neh->evt_type == rceb->bEventType in uwb_rc_neh_match() 308 && neh->evt == rceb->wEvent in uwb_rc_neh_match() 309 && neh->context == rceb->bEventContext; in uwb_rc_neh_match() 328 const struct uwb_rceb *rceb) in uwb_rc_neh_lookup() argument 336 if (uwb_rc_neh_match(h, rceb)) { in uwb_rc_neh_lookup() 377 void uwb_rc_notif(struct uwb_rc *rc, struct uwb_rceb *rceb, ssize_t size) in uwb_rc_notif() argument 393 rceb->bEventType, le16_to_cpu(rceb->wEvent), in uwb_rc_notif() [all …]
|
D | hwa-rc.c | 93 struct uwb_rceb rceb; member 127 be = container_of(*header, struct uwb_rc_evt_beacon_WUSB_0100, rceb); in hwarc_filter_evt_beacon_WUSB_0100() 146 newbe->rceb = be->rceb; in hwarc_filter_evt_beacon_WUSB_0100() 154 *header = &newbe->rceb; in hwarc_filter_evt_beacon_WUSB_0100() 162 struct uwb_rceb rceb; member 187 da = container_of(*header, struct uwb_rc_evt_drp_avail_WUSB_0100, rceb); in hwarc_filter_evt_drp_avail_WUSB_0100() 219 newda->rceb = da->rceb; in hwarc_filter_evt_drp_avail_WUSB_0100() 221 *header = &newda->rceb; in hwarc_filter_evt_drp_avail_WUSB_0100() 229 struct uwb_rceb rceb; member 260 drpev = container_of(*header, struct uwb_rc_evt_drp_WUSB_0100, rceb); in hwarc_filter_evt_drp_WUSB_0100() [all …]
|
D | est.c | 353 u8 event_low, const struct uwb_rceb *rceb, in uwb_est_get_size() argument 381 const void *ptr = rceb; in uwb_est_get_size() 428 ssize_t uwb_est_find_size(struct uwb_rc *rc, const struct uwb_rceb *rceb, in uwb_est_find_size() argument 440 if (rceb_size < sizeof(*rceb)) in uwb_est_find_size() 442 event = le16_to_cpu(rceb->wEvent); in uwb_est_find_size() 443 type_event_high = rceb->bEventType << 8 | (event & 0xff00) >> 8; in uwb_est_find_size() 448 event & 0x00ff, rceb, rceb_size); in uwb_est_find_size() 455 (unsigned) rceb->bEventType, in uwb_est_find_size() 456 (unsigned) le16_to_cpu(rceb->wEvent), in uwb_est_find_size() 457 (unsigned) rceb->bEventContext, in uwb_est_find_size() [all …]
|
D | beacon.c | 56 reply.rceb.bEventType = UWB_RC_CET_GENERAL; in uwb_rc_start_beacon() 57 reply.rceb.wEvent = UWB_RC_CMD_START_BEACON; in uwb_rc_start_beacon() 59 &reply.rceb, sizeof(reply)); in uwb_rc_start_beacon() 84 reply.rceb.bEventType = UWB_RC_CET_GENERAL; in uwb_rc_stop_beacon() 85 reply.rceb.wEvent = UWB_RC_CMD_STOP_BEACON; in uwb_rc_stop_beacon() 87 &reply.rceb, sizeof(reply)); in uwb_rc_stop_beacon() 402 be = container_of(evt->notif.rceb, struct uwb_rc_evt_beacon, rceb); in uwbd_evt_handle_rc_beacon() 482 bs = container_of(evt->notif.rceb, struct uwb_rc_evt_beacon_size, rceb); in uwbd_evt_handle_rc_beacon_size() 516 bpsc = container_of(evt->notif.rceb, struct uwb_rc_evt_bp_slot_change, rceb); in uwbd_evt_handle_rc_bp_slot_change() 556 bpoiec = container_of(evt->notif.rceb, struct uwb_rc_evt_bpoie_change, rceb); in uwbd_evt_handle_rc_bpoie_change()
|
D | uwbd.c | 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() 241 kfree(evt->notif.rceb); in uwbd_event_handle() 349 kfree(evt->notif.rceb); in uwbd_event_queue() 366 kfree(evt->notif.rceb); in uwbd_flush()
|
D | scan.c | 75 reply.rceb.bEventType = UWB_RC_CET_GENERAL; in uwb_rc_scan() 76 reply.rceb.wEvent = UWB_RC_CMD_SCAN; in uwb_rc_scan() 78 &reply.rceb, sizeof(reply)); in uwb_rc_scan()
|
D | ie-rcv.c | 42 iercv = container_of(evt->notif.rceb, struct uwb_rc_evt_ie_rcv, rceb); in uwbd_evt_handle_rc_ie_rcv()
|
D | ie.c | 131 get_ie = container_of(reply, struct uwb_rc_evt_get_ie, rceb); in uwb_rc_get_ie() 161 reply.rceb.bEventType = UWB_RC_CET_GENERAL; in uwb_rc_set_ie() 162 reply.rceb.wEvent = UWB_RC_CMD_SET_IE; in uwb_rc_set_ie() 165 &reply.rceb, sizeof(reply)); in uwb_rc_set_ie()
|
D | reset.c | 304 reply.rceb.bEventType = UWB_RC_CET_GENERAL; in uwb_rc_reset() 305 reply.rceb.wEvent = UWB_RC_CMD_RESET; in uwb_rc_reset() 307 &reply.rceb, sizeof(reply)); in uwb_rc_reset()
|
D | address.c | 82 reply->rceb.bEventType = UWB_RC_CET_GENERAL; in uwb_rc_dev_addr_mgmt() 83 reply->rceb.wEvent = UWB_RC_CMD_DEV_ADDR_MGMT; in uwb_rc_dev_addr_mgmt() 86 &reply->rceb, sizeof(*reply)); in uwb_rc_dev_addr_mgmt()
|
D | drp-avail.c | 240 drp_evt = container_of(evt->notif.rceb, struct uwb_rc_evt_drp_avail, rceb); in uwbd_evt_get_drp_avail()
|
D | drp.c | 821 drp_evt = container_of(evt->notif.rceb, struct uwb_rc_evt_drp, rceb); in uwbd_evt_handle_rc_drp()
|
D | uwb-internal.h | 203 struct uwb_rceb *rceb; member
|
/drivers/uwb/i1480/dfu/ |
D | dfu.c | 52 int i1480_rceb_check(const struct i1480 *i1480, const struct uwb_rceb *rceb, in i1480_rceb_check() argument 58 if (rceb->bEventContext != context) { in i1480_rceb_check() 62 rceb->bEventContext, context); in i1480_rceb_check() 65 if (rceb->bEventType != expected_type) { in i1480_rceb_check() 69 rceb->bEventType, expected_type); in i1480_rceb_check() 72 if (le16_to_cpu(rceb->wEvent) != expected_event) { in i1480_rceb_check() 76 le16_to_cpu(rceb->wEvent), expected_event); in i1480_rceb_check()
|
D | i1480-dfu.h | 178 struct uwb_rceb rceb; member 187 struct uwb_rceb rceb; member 201 struct uwb_rceb rceb; member 216 struct uwb_rceb rceb; 248 struct uwb_rceb rceb; member
|
D | mac.c | 393 struct uwb_rceb rceb; in i1480_cmd_reset() member 400 reply->rceb.bEventType = UWB_RC_CET_GENERAL; in i1480_cmd_reset() 401 reply->rceb.wEvent = UWB_RC_CMD_RESET; in i1480_cmd_reset() 492 if (i1480_rceb_check(i1480, &rcebe->rceb, NULL, 0, i1480_CET_VS1, in i1480_mac_fw_upload() 496 rcebe->rceb.bEventType, le16_to_cpu(rcebe->rceb.wEvent), in i1480_mac_fw_upload() 497 rcebe->rceb.bEventContext, i1480_CET_VS1, in i1480_mac_fw_upload()
|
D | phy.c | 64 reply->rceb.bEventType = i1480_CET_VS1; in i1480_mpi_write() 65 reply->rceb.wEvent = i1480_CMD_MPI_WRITE; in i1480_mpi_write() 119 reply->rceb.bEventType = i1480_CET_VS1; in i1480_mpi_read() 120 reply->rceb.wEvent = i1480_CMD_MPI_READ; in i1480_mpi_read()
|