Home
last modified time | relevance | path

Searched refs:uwb_rc (Results 1 – 25 of 29) sorted by relevance

12

/drivers/staging/uwb/
Duwb-internal.h27 extern int __uwb_dev_offair(struct uwb_dev *, struct uwb_rc *);
29 struct uwb_rc *parent_rc);
31 extern void uwbd_dev_onair(struct uwb_rc *, struct uwb_beca_e *);
33 void uwb_notify(struct uwb_rc *rc, struct uwb_dev *uwb_dev, enum uwb_notifs event);
36 extern struct uwb_rc *__uwb_rc_try_get(struct uwb_rc *);
37 static inline struct uwb_rc *__uwb_rc_get(struct uwb_rc *rc) in __uwb_rc_get()
43 static inline void __uwb_rc_put(struct uwb_rc *rc) in __uwb_rc_put()
49 extern int uwb_rc_reset(struct uwb_rc *rc);
50 extern int uwb_rc_beacon(struct uwb_rc *rc,
52 extern int uwb_rc_scan(struct uwb_rc *rc,
[all …]
Die.c96 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
99 struct device *dev = &uwb_rc->uwb_dev.dev; in uwb_rc_get_ie()
110 result = uwb_rc_vcmd(uwb_rc, "GET_IE", cmd, sizeof(*cmd), in uwb_rc_get_ie()
141 int uwb_rc_set_ie(struct uwb_rc *rc, struct uwb_rc_cmd_set_ie *cmd) in uwb_rc_set_ie()
170 void uwb_rc_ie_init(struct uwb_rc *uwb_rc) in uwb_rc_ie_init() argument
172 mutex_init(&uwb_rc->ies_mutex); in uwb_rc_ie_init()
186 int uwb_rc_ie_setup(struct uwb_rc *uwb_rc) in uwb_rc_ie_setup() argument
191 capacity = uwb_rc_get_ie(uwb_rc, &ie_info); in uwb_rc_ie_setup()
195 mutex_lock(&uwb_rc->ies_mutex); in uwb_rc_ie_setup()
197 uwb_rc->ies = (struct uwb_rc_cmd_set_ie *)ie_info; in uwb_rc_ie_setup()
[all …]
Duwb.h26 struct uwb_rc;
50 struct uwb_rc *rc; /* radio controller */
226 struct uwb_rc *rc;
304 struct uwb_rsv *uwb_rsv_create(struct uwb_rc *rc, uwb_rsv_cb_f cb,
357 struct uwb_rc { struct
364 int (*start)(struct uwb_rc *rc); argument
365 void (*stop)(struct uwb_rc *rc); argument
366 int (*cmd)(struct uwb_rc *, const struct uwb_rccb *, size_t); argument
367 int (*reset)(struct uwb_rc *rc); argument
368 int (*filter_cmd)(struct uwb_rc *, struct uwb_rccb **, size_t *); argument
[all …]
Dwhc-rc.c51 struct uwb_rc *uwb_rc; /* UWB host controller */ member
78 static int whcrc_cmd(struct uwb_rc *uwb_rc, in whcrc_cmd() argument
82 struct whcrc *whcrc = uwb_rc->priv; in whcrc_cmd()
97 uwb_rc_reset_all(uwb_rc); in whcrc_cmd()
121 static int whcrc_reset(struct uwb_rc *rc) in whcrc_reset()
164 uwb_rc_neh_grok(whcrc->uwb_rc, whcrc->evt_buf, size); in whcrc_event_work()
289 static int whcrc_start_rc(struct uwb_rc *rc) in whcrc_start_rc()
320 void whcrc_stop_rc(struct uwb_rc *rc) in whcrc_stop_rc()
352 struct uwb_rc *uwb_rc; in whcrc_probe() local
357 uwb_rc = uwb_rc_alloc(); in whcrc_probe()
[all …]
Dhwa-rc.c67 struct uwb_rc *uwb_rc; /* UWB host controller */ member
100 int hwarc_filter_evt_beacon_WUSB_0100(struct uwb_rc *rc, in hwarc_filter_evt_beacon_WUSB_0100()
158 int hwarc_filter_evt_drp_avail_WUSB_0100(struct uwb_rc *rc, in hwarc_filter_evt_drp_avail_WUSB_0100()
233 int hwarc_filter_evt_drp_WUSB_0100(struct uwb_rc *rc, in hwarc_filter_evt_drp_WUSB_0100()
292 int hwarc_filter_cmd_scan_WUSB_0100(struct uwb_rc *rc, in hwarc_filter_cmd_scan_WUSB_0100()
330 int hwarc_filter_cmd_set_drp_ie_WUSB_0100(struct uwb_rc *rc, in hwarc_filter_cmd_set_drp_ie_WUSB_0100()
375 int hwarc_filter_cmd_WUSB_0100(struct uwb_rc *rc, struct uwb_rccb **header, in hwarc_filter_cmd_WUSB_0100()
407 int hwarc_filter_cmd(struct uwb_rc *rc, struct uwb_rccb **header, in hwarc_filter_cmd()
428 ssize_t hwarc_get_event_size(struct uwb_rc *rc, const struct uwb_rceb *rceb, in hwarc_get_event_size()
481 int hwarc_filter_event_WUSB_0100(struct uwb_rc *rc, struct uwb_rceb **header, in hwarc_filter_event_WUSB_0100()
[all …]
Dlc-rc.c32 struct uwb_rc *rc = dev_get_drvdata(dev); in uwb_rc_index_match()
39 static struct uwb_rc *uwb_rc_find_by_index(int index) in uwb_rc_find_by_index()
42 struct uwb_rc *rc = NULL; in uwb_rc_find_by_index()
71 struct uwb_rc *rc = container_of(uwb_dev, struct uwb_rc, uwb_dev); in uwb_rc_sys_release()
78 void uwb_rc_init(struct uwb_rc *rc) in uwb_rc_init()
100 struct uwb_rc *uwb_rc_alloc(void) in uwb_rc_alloc()
102 struct uwb_rc *rc; in uwb_rc_alloc()
118 struct uwb_rc *rc = uwb_dev->rc; in ASIE_show()
154 struct uwb_rc *rc = uwb_dev->rc; in ASIE_store()
224 static int uwb_rc_sys_add(struct uwb_rc *rc) in uwb_rc_sys_add()
[all …]
Dradio.c14 static int uwb_radio_select_channel(struct uwb_rc *rc) in uwb_radio_select_channel()
31 static void uwb_radio_channel_changed(struct uwb_rc *rc, int channel) in uwb_radio_channel_changed()
51 static int uwb_radio_change_channel(struct uwb_rc *rc, int channel) in uwb_radio_change_channel()
90 struct uwb_rc *rc = pal->rc; in uwb_radio_start()
114 struct uwb_rc *rc = pal->rc; in uwb_radio_stop()
134 int uwb_radio_force_channel(struct uwb_rc *rc, int channel) in uwb_radio_force_channel()
154 int uwb_radio_setup(struct uwb_rc *rc) in uwb_radio_setup()
166 void uwb_radio_reset_state(struct uwb_rc *rc) in uwb_radio_reset_state()
192 void uwb_radio_shutdown(struct uwb_rc *rc) in uwb_radio_shutdown()
Dneh.c92 struct uwb_rc *rc;
149 int __uwb_rc_ctx_get(struct uwb_rc *rc, struct uwb_rc_neh *neh) in __uwb_rc_ctx_get()
169 void __uwb_rc_ctx_put(struct uwb_rc *rc, struct uwb_rc_neh *neh) in __uwb_rc_ctx_put()
195 struct uwb_rc_neh *uwb_rc_neh_add(struct uwb_rc *rc, struct uwb_rccb *cmd, in uwb_rc_neh_add()
240 static void __uwb_rc_neh_rm(struct uwb_rc *rc, struct uwb_rc_neh *neh) in __uwb_rc_neh_rm()
254 void uwb_rc_neh_rm(struct uwb_rc *rc, struct uwb_rc_neh *neh) in uwb_rc_neh_rm()
274 void uwb_rc_neh_arm(struct uwb_rc *rc, struct uwb_rc_neh *neh) in uwb_rc_neh_arm()
313 struct uwb_rc_neh *uwb_rc_neh_lookup(struct uwb_rc *rc, in uwb_rc_neh_lookup()
363 void uwb_rc_notif(struct uwb_rc *rc, struct uwb_rceb *rceb, ssize_t size) in uwb_rc_notif()
392 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 …]
Daddress.c45 int uwb_rc_dev_addr_mgmt(struct uwb_rc *rc, in uwb_rc_dev_addr_mgmt()
110 static int uwb_rc_addr_set(struct uwb_rc *rc, in uwb_rc_addr_set()
148 static int uwb_rc_addr_get(struct uwb_rc *rc, in uwb_rc_addr_get()
189 int uwb_rc_mac_addr_get(struct uwb_rc *rc, in uwb_rc_mac_addr_get()
197 int uwb_rc_dev_addr_get(struct uwb_rc *rc, in uwb_rc_dev_addr_get()
205 int uwb_rc_mac_addr_set(struct uwb_rc *rc, in uwb_rc_mac_addr_set()
217 int uwb_rc_dev_addr_set(struct uwb_rc *rc, in uwb_rc_dev_addr_set()
263 int uwb_rc_dev_addr_assign(struct uwb_rc *rc) in uwb_rc_dev_addr_assign()
285 struct uwb_rc *rc = evt->rc; in uwbd_evt_handle_rc_dev_addr_conflict()
298 struct uwb_rc *rc = uwb_dev->rc; in uwb_rc_mac_addr_show()
[all …]
Drsv.c138 struct uwb_rc *rc = rsv->rc; in uwb_rsv_get_stream()
170 struct uwb_rc *rc = rsv->rc; in uwb_rsv_put_stream()
193 struct uwb_rc *rc = container_of(bow, struct uwb_rc, bow); in uwb_rsv_backoff_win_timer()
211 void uwb_rsv_backoff_win_increment(struct uwb_rc *rc) in uwb_rsv_backoff_win_increment()
394 struct uwb_rc *rc = rsv->rc; in uwb_rsv_handle_timeout_work()
451 static struct uwb_rsv *uwb_rsv_alloc(struct uwb_rc *rc) in uwb_rsv_alloc()
483 struct uwb_rsv *uwb_rsv_create(struct uwb_rc *rc, uwb_rsv_cb_f cb, void *pal_priv) in uwb_rsv_create()
545 struct uwb_rc *rc = rsv->rc; in uwb_rsv_establish()
611 struct uwb_rc *rc = rsv->rc; in uwb_rsv_try_move()
640 void uwb_rsv_handle_drp_avail_change(struct uwb_rc *rc) in uwb_rsv_handle_drp_avail_change()
[all …]
Dbeacon.c29 static int uwb_rc_start_beacon(struct uwb_rc *rc, u16 bpst_offset, u8 channel) in uwb_rc_start_beacon()
59 static int uwb_rc_stop_beacon(struct uwb_rc *rc) in uwb_rc_stop_beacon()
101 int uwb_rc_beacon(struct uwb_rc *rc, int channel, unsigned bpst_offset) in uwb_rc_beacon()
161 struct uwb_beca_e *__uwb_beca_find_bydev(struct uwb_rc *rc, in __uwb_beca_find_bydev()
176 struct uwb_beca_e *__uwb_beca_find_bymac(struct uwb_rc *rc, in __uwb_beca_find_bymac()
198 struct uwb_dev *uwb_dev_get_by_devaddr(struct uwb_rc *rc, in uwb_dev_get_by_devaddr()
218 struct uwb_dev *uwb_dev_get_by_macaddr(struct uwb_rc *rc, in uwb_dev_get_by_macaddr()
250 struct uwb_beca_e *__uwb_beca_add(struct uwb_rc *rc, in __uwb_beca_add()
272 void uwb_beca_purge(struct uwb_rc *rc) in uwb_beca_purge()
288 void uwb_beca_release(struct uwb_rc *rc) in uwb_beca_release()
[all …]
Dpal.c32 struct uwb_rc *rc = pal->rc; in uwb_pal_register()
62 const struct uwb_rc *target_rc = data; in find_rc()
63 struct uwb_rc *rc = dev_get_drvdata(dev); in find_rc()
83 static bool uwb_rc_class_device_exists(struct uwb_rc *target_rc) in uwb_rc_class_device_exists()
100 struct uwb_rc *rc = pal->rc; in uwb_pal_unregister()
125 void uwb_rc_pal_init(struct uwb_rc *rc) in uwb_rc_pal_init()
Dreset.c57 int uwb_rc_cmd_async(struct uwb_rc *rc, const char *cmd_name, in uwb_rc_cmd_async()
110 static void uwb_rc_cmd_done(struct uwb_rc *rc, void *arg, in uwb_rc_cmd_done()
157 ssize_t __uwb_rc_cmd(struct uwb_rc *rc, const char *cmd_name, in __uwb_rc_cmd()
213 ssize_t uwb_rc_cmd(struct uwb_rc *rc, const char *cmd_name, in uwb_rc_cmd()
256 ssize_t uwb_rc_vcmd(struct uwb_rc *rc, const char *cmd_name, in uwb_rc_vcmd()
277 int uwb_rc_reset(struct uwb_rc *rc) in uwb_rc_reset()
311 struct uwb_rc *rc = evt->rc; in uwbd_msg_handle_reset()
336 void uwb_rc_reset_all(struct uwb_rc *rc) in uwb_rc_reset_all()
353 void uwb_rc_pre_reset(struct uwb_rc *rc) in uwb_rc_pre_reset()
363 int uwb_rc_post_reset(struct uwb_rc *rc) in uwb_rc_post_reset()
Ddrp.c47 static void uwb_rc_set_drp_cmd_done(struct uwb_rc *rc, void *arg, in uwb_rc_set_drp_cmd_done()
90 int uwb_rc_send_all_drp_ie(struct uwb_rc *rc) in uwb_rc_send_all_drp_ie()
244 struct uwb_rc *rc = rsv->rc; in handle_conflict_normal()
286 struct uwb_rc *rc = rsv->rc; in handle_conflict_expanding()
334 static void uwb_drp_handle_conflict_rsv(struct uwb_rc *rc, struct uwb_rsv *rsv, in uwb_drp_handle_conflict_rsv()
364 static void uwb_drp_handle_all_conflict_rsv(struct uwb_rc *rc, in uwb_drp_handle_all_conflict_rsv()
377 static void uwb_drp_process_target_accepted(struct uwb_rc *rc, in uwb_drp_process_target_accepted()
429 static void uwb_drp_process_target(struct uwb_rc *rc, struct uwb_rsv *rsv, in uwb_drp_process_target()
517 static void uwb_drp_process_owner(struct uwb_rc *rc, struct uwb_rsv *rsv, in uwb_drp_process_owner()
572 struct uwb_rc *rc = cnflt->rc; in uwb_cnflt_update_work()
[all …]
Ddrp-avail.c37 void uwb_drp_avail_init(struct uwb_rc *rc) in uwb_drp_avail_init()
49 void uwb_drp_available(struct uwb_rc *rc, struct uwb_mas_bm *avail) in uwb_drp_available()
62 int uwb_drp_avail_reserve_pending(struct uwb_rc *rc, struct uwb_mas_bm *mas) in uwb_drp_avail_reserve_pending()
79 void uwb_drp_avail_reserve(struct uwb_rc *rc, struct uwb_mas_bm *mas) in uwb_drp_avail_reserve()
91 void uwb_drp_avail_release(struct uwb_rc *rc, struct uwb_mas_bm *mas) in uwb_drp_avail_release()
105 void uwb_drp_avail_ie_update(struct uwb_rc *rc) in uwb_drp_avail_ie_update()
262 struct uwb_rc *rc = evt->rc; in uwbd_evt_handle_rc_drp_avail()
Duwb-debug.c70 static int cmd_rsv_establish(struct uwb_rc *rc, in cmd_rsv_establish()
107 static int cmd_rsv_terminate(struct uwb_rc *rc, in cmd_rsv_terminate()
135 static int cmd_ie_add(struct uwb_rc *rc, struct uwb_dbg_cmd_ie *ie_to_add) in cmd_ie_add()
142 static int cmd_ie_rm(struct uwb_rc *rc, struct uwb_dbg_cmd_ie *ie_to_rm) in cmd_ie_rm()
150 struct uwb_rc *rc = file->private_data; in command_write()
196 struct uwb_rc *rc = s->private; in reservations_show()
232 struct uwb_rc *rc = s->private; in drp_avail_show()
268 void uwb_dbg_add_rc(struct uwb_rc *rc) in uwb_dbg_add_rc()
305 void uwb_dbg_del_rc(struct uwb_rc *rc) in uwb_dbg_del_rc()
349 struct uwb_rc *rc = pal->rc; in uwb_dbg_create_pal_dir()
Duwbd.c199 struct uwb_rc *rc; in uwbd_event_handle_message()
217 struct uwb_rc *rc; in uwbd_event_handle()
255 struct uwb_rc *rc = param; in uwbd()
289 void uwbd_start(struct uwb_rc *rc) in uwbd_start()
303 void uwbd_stop(struct uwb_rc *rc) in uwbd_stop()
324 struct uwb_rc *rc = evt->rc; in uwbd_event_queue()
341 void uwbd_flush(struct uwb_rc *rc) in uwbd_flush()
Dlc-dev.c35 int uwb_notifs_register(struct uwb_rc *rc, struct uwb_notifs_handler *new) in uwb_notifs_register()
48 int uwb_notifs_deregister(struct uwb_rc *rc, struct uwb_notifs_handler *entry) in uwb_notifs_deregister()
64 void uwb_notify(struct uwb_rc *rc, struct uwb_dev *uwb_dev, enum uwb_notifs event) in uwb_notify()
279 struct uwb_rc *parent_rc) in uwb_dev_add()
327 struct uwb_dev *uwb_dev_try_get(struct uwb_rc *rc, struct uwb_dev *uwb_dev) in uwb_dev_try_get()
340 int __uwb_dev_offair(struct uwb_dev *uwb_dev, struct uwb_rc *rc) in __uwb_dev_offair()
396 void uwbd_dev_onair(struct uwb_rc *rc, struct uwb_beca_e *bce) in uwbd_dev_onair()
453 int uwb_dev_for_each(struct uwb_rc *rc, uwb_dev_for_each_f function, void *priv) in uwb_dev_for_each()
Dscan.c42 int uwb_rc_scan(struct uwb_rc *rc, in uwb_rc_scan()
89 struct uwb_rc *rc = uwb_dev->rc; in uwb_rc_scan_show()
106 struct uwb_rc *rc = uwb_dev->rc; in uwb_rc_scan_store()
Dest.c338 ssize_t uwb_est_get_size(struct uwb_rc *uwb_rc, struct uwb_est *est, in uwb_est_get_size() argument
344 struct device *dev = &uwb_rc->uwb_dev.dev; in uwb_est_get_size()
414 ssize_t uwb_est_find_size(struct uwb_rc *rc, const struct uwb_rceb *rceb, in uwb_est_find_size()
/drivers/staging/wusbcore/
Dmmc.c184 BUG_ON(wusbhc->uwb_rc == NULL); in wusbhc_start()
271 if ((chid) && (wusbhc->uwb_rc == NULL)) { in wusbhc_chid_set()
272 wusbhc->uwb_rc = uwb_rc_get_by_grandpa(wusbhc->dev->parent); in wusbhc_chid_set()
273 if (wusbhc->uwb_rc == NULL) { in wusbhc_chid_set()
290 else if (wusbhc->uwb_rc) in wusbhc_chid_set()
296 uwb_rc_put(wusbhc->uwb_rc); in wusbhc_chid_set()
297 wusbhc->uwb_rc = NULL; in wusbhc_chid_set()
Dpal.c31 wusbhc->pal.rc = wusbhc->uwb_rc; in wusbhc_pal_register()
43 if (wusbhc->uwb_rc) in wusbhc_pal_unregister()
Dreservation.c67 struct uwb_rc *rc = wusbhc->uwb_rc; in wusbhc_rsv_establish()
Dwusbhc.h236 struct uwb_rc *uwb_rc; member
/drivers/staging/wusbcore/host/whci/
Dhcd.c252 wusbhc->uwb_rc = uwb_rc_get_by_grandpa(umc->dev.parent); in whc_probe()
253 if (!wusbhc->uwb_rc) { in whc_probe()
302 uwb_rc_put(wusbhc->uwb_rc); in whc_probe()
322 uwb_rc_put(wusbhc->uwb_rc); in whc_remove()

12