/drivers/uwb/ |
D | uwb-internal.h | 40 extern int __uwb_dev_offair(struct uwb_dev *, struct uwb_rc *); 42 struct uwb_rc *parent_rc); 44 extern void uwbd_dev_onair(struct uwb_rc *, struct uwb_beca_e *); 46 void uwb_notify(struct uwb_rc *rc, struct uwb_dev *uwb_dev, enum uwb_notifs event); 49 extern struct uwb_rc *__uwb_rc_try_get(struct uwb_rc *); 50 static inline struct uwb_rc *__uwb_rc_get(struct uwb_rc *rc) in __uwb_rc_get() 56 static inline void __uwb_rc_put(struct uwb_rc *rc) in __uwb_rc_put() 62 extern int uwb_rc_reset(struct uwb_rc *rc); 63 extern int uwb_rc_beacon(struct uwb_rc *rc, 65 extern int uwb_rc_scan(struct uwb_rc *rc, [all …]
|
D | ie.c | 110 ssize_t uwb_rc_get_ie(struct uwb_rc *uwb_rc, struct uwb_rc_evt_get_ie **pget_ie) in uwb_rc_get_ie() argument 113 struct device *dev = &uwb_rc->uwb_dev.dev; in uwb_rc_get_ie() 124 result = uwb_rc_vcmd(uwb_rc, "GET_IE", cmd, sizeof(*cmd), in uwb_rc_get_ie() 155 int uwb_rc_set_ie(struct uwb_rc *rc, struct uwb_rc_cmd_set_ie *cmd) in uwb_rc_set_ie() 184 void uwb_rc_ie_init(struct uwb_rc *uwb_rc) in uwb_rc_ie_init() argument 186 mutex_init(&uwb_rc->ies_mutex); in uwb_rc_ie_init() 200 int uwb_rc_ie_setup(struct uwb_rc *uwb_rc) in uwb_rc_ie_setup() argument 205 capacity = uwb_rc_get_ie(uwb_rc, &ie_info); in uwb_rc_ie_setup() 209 mutex_lock(&uwb_rc->ies_mutex); in uwb_rc_ie_setup() 211 uwb_rc->ies = (struct uwb_rc_cmd_set_ie *)ie_info; in uwb_rc_ie_setup() [all …]
|
D | whc-rc.c | 65 struct uwb_rc *uwb_rc; /* UWB host controller */ member 92 static int whcrc_cmd(struct uwb_rc *uwb_rc, in whcrc_cmd() argument 96 struct whcrc *whcrc = uwb_rc->priv; in whcrc_cmd() 111 uwb_rc_reset_all(uwb_rc); in whcrc_cmd() 135 static int whcrc_reset(struct uwb_rc *rc) in whcrc_reset() 178 uwb_rc_neh_grok(whcrc->uwb_rc, whcrc->evt_buf, size); in whcrc_event_work() 303 static int whcrc_start_rc(struct uwb_rc *rc) in whcrc_start_rc() 334 void whcrc_stop_rc(struct uwb_rc *rc) in whcrc_stop_rc() 366 struct uwb_rc *uwb_rc; in whcrc_probe() local 371 uwb_rc = uwb_rc_alloc(); in whcrc_probe() [all …]
|
D | hwa-rc.c | 84 struct uwb_rc *uwb_rc; /* UWB host controller */ member 117 int hwarc_filter_evt_beacon_WUSB_0100(struct uwb_rc *rc, in hwarc_filter_evt_beacon_WUSB_0100() 175 int hwarc_filter_evt_drp_avail_WUSB_0100(struct uwb_rc *rc, in hwarc_filter_evt_drp_avail_WUSB_0100() 250 int hwarc_filter_evt_drp_WUSB_0100(struct uwb_rc *rc, in hwarc_filter_evt_drp_WUSB_0100() 309 int hwarc_filter_cmd_scan_WUSB_0100(struct uwb_rc *rc, in hwarc_filter_cmd_scan_WUSB_0100() 347 int hwarc_filter_cmd_set_drp_ie_WUSB_0100(struct uwb_rc *rc, in hwarc_filter_cmd_set_drp_ie_WUSB_0100() 392 int hwarc_filter_cmd_WUSB_0100(struct uwb_rc *rc, struct uwb_rccb **header, in hwarc_filter_cmd_WUSB_0100() 424 int hwarc_filter_cmd(struct uwb_rc *rc, struct uwb_rccb **header, in hwarc_filter_cmd() 445 ssize_t hwarc_get_event_size(struct uwb_rc *rc, const struct uwb_rceb *rceb, in hwarc_get_event_size() 498 int hwarc_filter_event_WUSB_0100(struct uwb_rc *rc, struct uwb_rceb **header, in hwarc_filter_event_WUSB_0100() [all …]
|
D | lc-rc.c | 46 struct uwb_rc *rc = dev_get_drvdata(dev); in uwb_rc_index_match() 53 static struct uwb_rc *uwb_rc_find_by_index(int index) in uwb_rc_find_by_index() 56 struct uwb_rc *rc = NULL; in uwb_rc_find_by_index() 85 struct uwb_rc *rc = container_of(uwb_dev, struct uwb_rc, uwb_dev); in uwb_rc_sys_release() 92 void uwb_rc_init(struct uwb_rc *rc) in uwb_rc_init() 114 struct uwb_rc *uwb_rc_alloc(void) in uwb_rc_alloc() 116 struct uwb_rc *rc; in uwb_rc_alloc() 132 struct uwb_rc *rc = uwb_dev->rc; in ASIE_show() 168 struct uwb_rc *rc = uwb_dev->rc; in ASIE_store() 238 static int uwb_rc_sys_add(struct uwb_rc *rc) in uwb_rc_sys_add() [all …]
|
D | radio.c | 25 static int uwb_radio_select_channel(struct uwb_rc *rc) in uwb_radio_select_channel() 42 static void uwb_radio_channel_changed(struct uwb_rc *rc, int channel) in uwb_radio_channel_changed() 62 static int uwb_radio_change_channel(struct uwb_rc *rc, int channel) in uwb_radio_change_channel() 101 struct uwb_rc *rc = pal->rc; in uwb_radio_start() 125 struct uwb_rc *rc = pal->rc; in uwb_radio_stop() 145 int uwb_radio_force_channel(struct uwb_rc *rc, int channel) in uwb_radio_force_channel() 165 int uwb_radio_setup(struct uwb_rc *rc) in uwb_radio_setup() 177 void uwb_radio_reset_state(struct uwb_rc *rc) in uwb_radio_reset_state() 203 void uwb_radio_shutdown(struct uwb_rc *rc) in uwb_radio_shutdown()
|
D | neh.c | 106 struct uwb_rc *rc; 163 int __uwb_rc_ctx_get(struct uwb_rc *rc, struct uwb_rc_neh *neh) in __uwb_rc_ctx_get() 183 void __uwb_rc_ctx_put(struct uwb_rc *rc, struct uwb_rc_neh *neh) in __uwb_rc_ctx_put() 209 struct uwb_rc_neh *uwb_rc_neh_add(struct uwb_rc *rc, struct uwb_rccb *cmd, in uwb_rc_neh_add() 254 static void __uwb_rc_neh_rm(struct uwb_rc *rc, struct uwb_rc_neh *neh) in __uwb_rc_neh_rm() 268 void uwb_rc_neh_rm(struct uwb_rc *rc, struct uwb_rc_neh *neh) in uwb_rc_neh_rm() 288 void uwb_rc_neh_arm(struct uwb_rc *rc, struct uwb_rc_neh *neh) in uwb_rc_neh_arm() 327 struct uwb_rc_neh *uwb_rc_neh_lookup(struct uwb_rc *rc, 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() 406 static void uwb_rc_neh_grok_event(struct uwb_rc *rc, struct uwb_rceb *rceb, size_t size) in uwb_rc_neh_grok_event() [all …]
|
D | address.c | 59 int uwb_rc_dev_addr_mgmt(struct uwb_rc *rc, in uwb_rc_dev_addr_mgmt() 124 static int uwb_rc_addr_set(struct uwb_rc *rc, in uwb_rc_addr_set() 162 static int uwb_rc_addr_get(struct uwb_rc *rc, in uwb_rc_addr_get() 203 int uwb_rc_mac_addr_get(struct uwb_rc *rc, in uwb_rc_mac_addr_get() 211 int uwb_rc_dev_addr_get(struct uwb_rc *rc, in uwb_rc_dev_addr_get() 219 int uwb_rc_mac_addr_set(struct uwb_rc *rc, in uwb_rc_mac_addr_set() 231 int uwb_rc_dev_addr_set(struct uwb_rc *rc, in uwb_rc_dev_addr_set() 277 int uwb_rc_dev_addr_assign(struct uwb_rc *rc) in uwb_rc_dev_addr_assign() 299 struct uwb_rc *rc = evt->rc; in uwbd_evt_handle_rc_dev_addr_conflict() 312 struct uwb_rc *rc = uwb_dev->rc; in uwb_rc_mac_addr_show() [all …]
|
D | rsv.c | 149 struct uwb_rc *rc = rsv->rc; in uwb_rsv_get_stream() 181 struct uwb_rc *rc = rsv->rc; in uwb_rsv_put_stream() 204 struct uwb_rc *rc = container_of(bow, struct uwb_rc, bow); in uwb_rsv_backoff_win_timer() 222 void uwb_rsv_backoff_win_increment(struct uwb_rc *rc) in uwb_rsv_backoff_win_increment() 405 struct uwb_rc *rc = rsv->rc; in uwb_rsv_handle_timeout_work() 462 static struct uwb_rsv *uwb_rsv_alloc(struct uwb_rc *rc) in uwb_rsv_alloc() 494 struct uwb_rsv *uwb_rsv_create(struct uwb_rc *rc, uwb_rsv_cb_f cb, void *pal_priv) in uwb_rsv_create() 556 struct uwb_rc *rc = rsv->rc; in uwb_rsv_establish() 622 struct uwb_rc *rc = rsv->rc; in uwb_rsv_try_move() 651 void uwb_rsv_handle_drp_avail_change(struct uwb_rc *rc) in uwb_rsv_handle_drp_avail_change() [all …]
|
D | beacon.c | 43 static int uwb_rc_start_beacon(struct uwb_rc *rc, u16 bpst_offset, u8 channel) in uwb_rc_start_beacon() 73 static int uwb_rc_stop_beacon(struct uwb_rc *rc) in uwb_rc_stop_beacon() 115 int uwb_rc_beacon(struct uwb_rc *rc, int channel, unsigned bpst_offset) in uwb_rc_beacon() 175 struct uwb_beca_e *__uwb_beca_find_bydev(struct uwb_rc *rc, in __uwb_beca_find_bydev() 190 struct uwb_beca_e *__uwb_beca_find_bymac(struct uwb_rc *rc, in __uwb_beca_find_bymac() 212 struct uwb_dev *uwb_dev_get_by_devaddr(struct uwb_rc *rc, in uwb_dev_get_by_devaddr() 232 struct uwb_dev *uwb_dev_get_by_macaddr(struct uwb_rc *rc, in uwb_dev_get_by_macaddr() 264 struct uwb_beca_e *__uwb_beca_add(struct uwb_rc *rc, in __uwb_beca_add() 286 void uwb_beca_purge(struct uwb_rc *rc) in uwb_beca_purge() 302 void uwb_beca_release(struct uwb_rc *rc) in uwb_beca_release() [all …]
|
D | pal.c | 43 struct uwb_rc *rc = pal->rc; in uwb_pal_register() 73 const struct uwb_rc *target_rc = data; in find_rc() 74 struct uwb_rc *rc = dev_get_drvdata(dev); in find_rc() 94 static bool uwb_rc_class_device_exists(struct uwb_rc *target_rc) in uwb_rc_class_device_exists() 111 struct uwb_rc *rc = pal->rc; in uwb_pal_unregister() 136 void uwb_rc_pal_init(struct uwb_rc *rc) in uwb_rc_pal_init()
|
D | reset.c | 71 int uwb_rc_cmd_async(struct uwb_rc *rc, const char *cmd_name, in uwb_rc_cmd_async() 124 static void uwb_rc_cmd_done(struct uwb_rc *rc, void *arg, in uwb_rc_cmd_done() 171 ssize_t __uwb_rc_cmd(struct uwb_rc *rc, const char *cmd_name, in __uwb_rc_cmd() 227 ssize_t uwb_rc_cmd(struct uwb_rc *rc, const char *cmd_name, in uwb_rc_cmd() 270 ssize_t uwb_rc_vcmd(struct uwb_rc *rc, const char *cmd_name, in uwb_rc_vcmd() 291 int uwb_rc_reset(struct uwb_rc *rc) in uwb_rc_reset() 325 struct uwb_rc *rc = evt->rc; in uwbd_msg_handle_reset() 350 void uwb_rc_reset_all(struct uwb_rc *rc) in uwb_rc_reset_all() 367 void uwb_rc_pre_reset(struct uwb_rc *rc) in uwb_rc_pre_reset() 377 int uwb_rc_post_reset(struct uwb_rc *rc) in uwb_rc_post_reset()
|
D | drp.c | 58 static void uwb_rc_set_drp_cmd_done(struct uwb_rc *rc, void *arg, in uwb_rc_set_drp_cmd_done() 101 int uwb_rc_send_all_drp_ie(struct uwb_rc *rc) in uwb_rc_send_all_drp_ie() 255 struct uwb_rc *rc = rsv->rc; in handle_conflict_normal() 297 struct uwb_rc *rc = rsv->rc; in handle_conflict_expanding() 345 static void uwb_drp_handle_conflict_rsv(struct uwb_rc *rc, struct uwb_rsv *rsv, in uwb_drp_handle_conflict_rsv() 375 static void uwb_drp_handle_all_conflict_rsv(struct uwb_rc *rc, in uwb_drp_handle_all_conflict_rsv() 388 static void uwb_drp_process_target_accepted(struct uwb_rc *rc, in uwb_drp_process_target_accepted() 440 static void uwb_drp_process_target(struct uwb_rc *rc, struct uwb_rsv *rsv, in uwb_drp_process_target() 528 static void uwb_drp_process_owner(struct uwb_rc *rc, struct uwb_rsv *rsv, in uwb_drp_process_owner() 583 struct uwb_rc *rc = cnflt->rc; in uwb_cnflt_update_work() [all …]
|
D | drp-avail.c | 49 void uwb_drp_avail_init(struct uwb_rc *rc) in uwb_drp_avail_init() 61 void uwb_drp_available(struct uwb_rc *rc, struct uwb_mas_bm *avail) in uwb_drp_available() 74 int uwb_drp_avail_reserve_pending(struct uwb_rc *rc, struct uwb_mas_bm *mas) in uwb_drp_avail_reserve_pending() 91 void uwb_drp_avail_reserve(struct uwb_rc *rc, struct uwb_mas_bm *mas) in uwb_drp_avail_reserve() 103 void uwb_drp_avail_release(struct uwb_rc *rc, struct uwb_mas_bm *mas) in uwb_drp_avail_release() 117 void uwb_drp_avail_ie_update(struct uwb_rc *rc) in uwb_drp_avail_ie_update() 274 struct uwb_rc *rc = evt->rc; in uwbd_evt_handle_rc_drp_avail()
|
D | uwb-debug.c | 85 static int cmd_rsv_establish(struct uwb_rc *rc, in cmd_rsv_establish() 122 static int cmd_rsv_terminate(struct uwb_rc *rc, in cmd_rsv_terminate() 150 static int cmd_ie_add(struct uwb_rc *rc, struct uwb_dbg_cmd_ie *ie_to_add) in cmd_ie_add() 157 static int cmd_ie_rm(struct uwb_rc *rc, struct uwb_dbg_cmd_ie *ie_to_rm) in cmd_ie_rm() 165 struct uwb_rc *rc = file->private_data; in command_write() 211 struct uwb_rc *rc = s->private; in reservations_print() 259 struct uwb_rc *rc = s->private; in drp_avail_print() 307 void uwb_dbg_add_rc(struct uwb_rc *rc) in uwb_dbg_add_rc() 344 void uwb_dbg_del_rc(struct uwb_rc *rc) in uwb_dbg_del_rc() 388 struct uwb_rc *rc = pal->rc; in uwb_dbg_create_pal_dir()
|
D | uwbd.c | 213 struct uwb_rc *rc; in uwbd_event_handle_message() 231 struct uwb_rc *rc; in uwbd_event_handle() 269 struct uwb_rc *rc = param; in uwbd() 304 void uwbd_start(struct uwb_rc *rc) in uwbd_start() 318 void uwbd_stop(struct uwb_rc *rc) in uwbd_stop() 339 struct uwb_rc *rc = evt->rc; in uwbd_event_queue() 356 void uwbd_flush(struct uwb_rc *rc) in uwbd_flush()
|
D | lc-dev.c | 49 int uwb_notifs_register(struct uwb_rc *rc, struct uwb_notifs_handler *new) in uwb_notifs_register() 62 int uwb_notifs_deregister(struct uwb_rc *rc, struct uwb_notifs_handler *entry) in uwb_notifs_deregister() 78 void uwb_notify(struct uwb_rc *rc, struct uwb_dev *uwb_dev, enum uwb_notifs event) in uwb_notify() 293 struct uwb_rc *parent_rc) in uwb_dev_add() 341 struct uwb_dev *uwb_dev_try_get(struct uwb_rc *rc, struct uwb_dev *uwb_dev) in uwb_dev_try_get() 354 int __uwb_dev_offair(struct uwb_dev *uwb_dev, struct uwb_rc *rc) in __uwb_dev_offair() 410 void uwbd_dev_onair(struct uwb_rc *rc, struct uwb_beca_e *bce) in uwbd_dev_onair() 467 int uwb_dev_for_each(struct uwb_rc *rc, uwb_dev_for_each_f function, void *priv) in uwb_dev_for_each()
|
D | scan.c | 57 int uwb_rc_scan(struct uwb_rc *rc, in uwb_rc_scan() 104 struct uwb_rc *rc = uwb_dev->rc; in uwb_rc_scan_show() 121 struct uwb_rc *rc = uwb_dev->rc; in uwb_rc_scan_store()
|
D | est.c | 352 ssize_t uwb_est_get_size(struct uwb_rc *uwb_rc, struct uwb_est *est, in uwb_est_get_size() argument 358 struct device *dev = &uwb_rc->uwb_dev.dev; 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()
|
/drivers/usb/wusbcore/ |
D | mmc.c | 198 BUG_ON(wusbhc->uwb_rc == NULL); in wusbhc_start() 285 if ((chid) && (wusbhc->uwb_rc == NULL)) { in wusbhc_chid_set() 286 wusbhc->uwb_rc = uwb_rc_get_by_grandpa(wusbhc->dev->parent); in wusbhc_chid_set() 287 if (wusbhc->uwb_rc == NULL) { in wusbhc_chid_set() 304 else if (wusbhc->uwb_rc) in wusbhc_chid_set() 310 uwb_rc_put(wusbhc->uwb_rc); in wusbhc_chid_set() 311 wusbhc->uwb_rc = NULL; in wusbhc_chid_set()
|
D | pal.c | 42 wusbhc->pal.rc = wusbhc->uwb_rc; in wusbhc_pal_register() 54 if (wusbhc->uwb_rc) in wusbhc_pal_unregister()
|
D | reservation.c | 78 struct uwb_rc *rc = wusbhc->uwb_rc; in wusbhc_rsv_establish()
|
D | wusbhc.h | 250 struct uwb_rc *uwb_rc; member
|
D | wusbhc.c | 459 if (wusbhc->uwb_rc) in wusbhc_reset_all() 460 uwb_rc_reset_all(wusbhc->uwb_rc); in wusbhc_reset_all()
|
/drivers/usb/host/whci/ |
D | hcd.c | 263 wusbhc->uwb_rc = uwb_rc_get_by_grandpa(umc->dev.parent); in whc_probe() 264 if (!wusbhc->uwb_rc) { in whc_probe() 313 uwb_rc_put(wusbhc->uwb_rc); in whc_probe() 332 uwb_rc_put(wusbhc->uwb_rc); in whc_remove()
|