/drivers/staging/uwb/ |
D | lc-dev.c | 64 void uwb_notify(struct uwb_rc *rc, struct uwb_dev *uwb_dev, enum uwb_notifs event) in uwb_notify() argument 71 handler->cb(handler->data, uwb_dev, event); in uwb_notify() 82 struct uwb_dev *uwb_dev = to_uwb_dev(dev); in uwb_dev_sys_release() local 84 uwb_bce_put(uwb_dev->bce); in uwb_dev_sys_release() 85 memset(uwb_dev, 0x69, sizeof(*uwb_dev)); in uwb_dev_sys_release() 86 kfree(uwb_dev); in uwb_dev_sys_release() 94 void uwb_dev_init(struct uwb_dev *uwb_dev) in uwb_dev_init() argument 96 mutex_init(&uwb_dev->mutex); in uwb_dev_init() 97 device_initialize(&uwb_dev->dev); in uwb_dev_init() 98 uwb_dev->dev.release = uwb_dev_sys_release; in uwb_dev_init() [all …]
|
D | lc-rc.c | 70 struct uwb_dev *uwb_dev = container_of(dev, struct uwb_dev, dev); in uwb_rc_sys_release() local 71 struct uwb_rc *rc = container_of(uwb_dev, struct uwb_rc, uwb_dev); in uwb_rc_sys_release() 80 struct uwb_dev *uwb_dev = &rc->uwb_dev; in uwb_rc_init() local 82 uwb_dev_init(uwb_dev); in uwb_rc_init() 83 rc->uwb_dev.dev.class = &uwb_rc_class; in uwb_rc_init() 84 rc->uwb_dev.dev.release = uwb_rc_sys_release; in uwb_rc_init() 117 struct uwb_dev *uwb_dev = to_uwb_dev(dev); in ASIE_show() local 118 struct uwb_rc *rc = uwb_dev->rc; in ASIE_show() 153 struct uwb_dev *uwb_dev = to_uwb_dev(dev); in ASIE_store() local 154 struct uwb_rc *rc = uwb_dev->rc; in ASIE_store() [all …]
|
D | address.c | 76 dev_err(&rc->uwb_dev.dev, in uwb_rc_dev_addr_mgmt() 81 dev_err(&rc->uwb_dev.dev, in uwb_rc_dev_addr_mgmt() 209 mutex_lock(&rc->uwb_dev.mutex); in uwb_rc_mac_addr_set() 211 mutex_unlock(&rc->uwb_dev.mutex); in uwb_rc_mac_addr_set() 221 mutex_lock(&rc->uwb_dev.mutex); in uwb_rc_dev_addr_set() 223 rc->uwb_dev.dev_addr = *addr; in uwb_rc_dev_addr_set() 224 mutex_unlock(&rc->uwb_dev.mutex); in uwb_rc_dev_addr_set() 231 struct uwb_dev *uwb_dev = to_uwb_dev(dev); in __uwb_mac_addr_assigned_check() local 234 if (!uwb_mac_addr_cmp(addr, &uwb_dev->mac_addr)) in __uwb_mac_addr_assigned_check() 242 struct uwb_dev *uwb_dev = to_uwb_dev(dev); in __uwb_dev_addr_assigned_check() local [all …]
|
D | uwb-internal.h | 26 extern void uwb_dev_init(struct uwb_dev *uwb_dev); 27 extern int __uwb_dev_offair(struct uwb_dev *, struct uwb_rc *); 28 extern int uwb_dev_add(struct uwb_dev *uwb_dev, struct device *parent_dev, 30 extern void uwb_dev_rm(struct uwb_dev *uwb_dev); 33 void uwb_notify(struct uwb_rc *rc, struct uwb_dev *uwb_dev, enum uwb_notifs event); 39 uwb_dev_get(&rc->uwb_dev); in __uwb_rc_get() 46 uwb_dev_put(&rc->uwb_dev); in __uwb_rc_put() 272 struct uwb_dev *uwb_dev; member 277 extern ssize_t uwb_bce_print_IEs(struct uwb_dev *, struct uwb_beca_e *, 292 struct uwb_dev *uwb_dev_get_by_devaddr(struct uwb_rc *rc, [all …]
|
D | beacon.c | 49 dev_err(&rc->uwb_dev.dev, in uwb_rc_start_beacon() 77 dev_err(&rc->uwb_dev.dev, in uwb_rc_stop_beacon() 104 struct device *dev = &rc->uwb_dev.dev; in uwb_rc_beacon() 198 struct uwb_dev *uwb_dev_get_by_devaddr(struct uwb_rc *rc, in uwb_dev_get_by_devaddr() 201 struct uwb_dev *found = NULL; in uwb_dev_get_by_devaddr() 207 found = uwb_dev_try_get(rc, bce->uwb_dev); 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() 221 struct uwb_dev *found = NULL; in uwb_dev_get_by_macaddr() 227 found = uwb_dev_try_get(rc, bce->uwb_dev); in uwb_dev_get_by_macaddr() 262 bce->uwb_dev = NULL; in __uwb_beca_add() [all …]
|
D | scan.c | 54 mutex_lock(&rc->uwb_dev.mutex); in uwb_rc_scan() 67 dev_err(&rc->uwb_dev.dev, in uwb_rc_scan() 76 mutex_unlock(&rc->uwb_dev.mutex); in uwb_rc_scan() 88 struct uwb_dev *uwb_dev = to_uwb_dev(dev); in uwb_rc_scan_show() local 89 struct uwb_rc *rc = uwb_dev->rc; in uwb_rc_scan_show() 92 mutex_lock(&rc->uwb_dev.mutex); in uwb_rc_scan_show() 94 mutex_unlock(&rc->uwb_dev.mutex); in uwb_rc_scan_show() 105 struct uwb_dev *uwb_dev = to_uwb_dev(dev); in uwb_rc_scan_store() local 106 struct uwb_rc *rc = uwb_dev->rc; in uwb_rc_scan_store()
|
D | uwb.h | 24 struct uwb_dev; 46 struct uwb_dev { struct 59 #define to_uwb_dev(d) container_of(d, struct uwb_dev, dev) argument 165 struct uwb_dev *dev; 231 struct uwb_dev *owner; 358 struct uwb_dev uwb_dev; member 465 struct uwb_dev *uwb_dev_get_by_devaddr(struct uwb_rc *rc, 467 struct uwb_dev *uwb_dev_get_by_rc(struct uwb_dev *, struct uwb_rc *); 468 static inline void uwb_dev_get(struct uwb_dev *uwb_dev) in uwb_dev_get() argument 470 get_device(&uwb_dev->dev); in uwb_dev_get() [all …]
|
D | reset.c | 62 struct device *dev = &rc->uwb_dev.dev; in uwb_rc_cmd_async() 67 uwb_dev_lock(&rc->uwb_dev); /* Protect against rc->priv being removed */ in uwb_rc_cmd_async() 69 uwb_dev_unlock(&rc->uwb_dev); in uwb_rc_cmd_async() 78 uwb_dev_unlock(&rc->uwb_dev); in uwb_rc_cmd_async() 86 uwb_dev_unlock(&rc->uwb_dev); in uwb_rc_cmd_async() 91 uwb_dev_unlock(&rc->uwb_dev); in uwb_rc_cmd_async() 164 struct device *dev = &rc->uwb_dev.dev; in __uwb_rc_cmd() 217 struct device *dev = &rc->uwb_dev.dev; in uwb_rc_cmd() 284 mutex_lock(&rc->uwb_dev.mutex); in uwb_rc_reset() 297 dev_err(&rc->uwb_dev.dev, in uwb_rc_reset() [all …]
|
D | radio.c | 54 struct device *dev = &rc->uwb_dev.dev; in uwb_radio_change_channel() 93 mutex_lock(&rc->uwb_dev.mutex); in uwb_radio_start() 101 mutex_unlock(&rc->uwb_dev.mutex); in uwb_radio_start() 116 mutex_lock(&rc->uwb_dev.mutex); in uwb_radio_stop() 124 mutex_unlock(&rc->uwb_dev.mutex); in uwb_radio_stop() 138 mutex_lock(&rc->uwb_dev.mutex); in uwb_radio_force_channel() 143 mutex_unlock(&rc->uwb_dev.mutex); in uwb_radio_force_channel() 170 mutex_lock(&rc->uwb_dev.mutex); in uwb_radio_reset_state() 183 mutex_unlock(&rc->uwb_dev.mutex); in uwb_radio_reset_state()
|
D | pal.c | 38 &rc->uwb_dev.dev.kobj, "uwb_rc"); in uwb_pal_register() 42 ret = sysfs_create_link(&rc->uwb_dev.dev.kobj, in uwb_pal_register() 52 mutex_lock(&rc->uwb_dev.mutex); in uwb_pal_register() 54 mutex_unlock(&rc->uwb_dev.mutex); in uwb_pal_register() 104 mutex_lock(&rc->uwb_dev.mutex); in uwb_pal_unregister() 106 mutex_unlock(&rc->uwb_dev.mutex); in uwb_pal_unregister() 113 sysfs_remove_link(&rc->uwb_dev.dev.kobj, pal->name); in uwb_pal_unregister()
|
D | rsv.c | 97 struct device *dev = &rsv->rc->uwb_dev.dev; in uwb_rsv_dump() 139 struct device *dev = &rc->uwb_dev.dev; in uwb_rsv_get_stream() 148 streams_bm = rc->uwb_dev.streams; in uwb_rsv_get_stream() 171 struct device *dev = &rc->uwb_dev.dev; in uwb_rsv_put_stream() 179 streams_bm = rc->uwb_dev.streams; in uwb_rsv_put_stream() 194 struct device *dev = &rc->uwb_dev.dev; in uwb_rsv_backoff_win_timer() 214 struct device *dev = &rc->uwb_dev.dev; in uwb_rsv_backoff_win_increment() 385 dev_err(&rsv->rc->uwb_dev.dev, "unhandled state: %s (%d)\n", in uwb_rsv_set_state() 547 struct device *dev = &rc->uwb_dev.dev; in uwb_rsv_establish() 581 rsv->owner = &rc->uwb_dev; in uwb_rsv_establish() [all …]
|
D | drp.c | 55 dev_err(&rc->uwb_dev.dev, "SET-DRP-IE failed: %s (%d)\n", in uwb_rc_set_drp_cmd_done() 58 dev_err(&rc->uwb_dev.dev, "SET-DRP-IE: timeout\n"); in uwb_rc_set_drp_cmd_done() 166 int our_beacon_slot = rsv->rc->uwb_dev.beacon_slot; in evaluate_conflict_action() 432 struct device *dev = &rc->uwb_dev.dev; in uwb_drp_process_target() 518 struct uwb_dev *src, struct uwb_ie_drp *drp_ie, in uwb_drp_process_owner() 521 struct device *dev = &rc->uwb_dev.dev; in uwb_drp_process_owner() 608 struct device *dev = &rc->uwb_dev.dev; in uwb_drp_handle_alien_drp() 662 static void uwb_drp_process_involved(struct uwb_rc *rc, struct uwb_dev *src, in uwb_drp_process_involved() 697 return uwb_dev_addr_cmp(&rc->uwb_dev.dev_addr, &drp_ie->dev_addr) == 0; in uwb_drp_involves_us() 704 struct uwb_dev *src, struct uwb_ie_drp *drp_ie) in uwb_drp_process() [all …]
|
D | uwbd.c | 191 dev_err(&evt->rc->uwb_dev.dev, in uwbd_event_handle_urc() 205 dev_err(&rc->uwb_dev.dev, "UWBD: invalid message type %d\n", evt->message); in uwbd_event_handle_message() 211 dev_err(&rc->uwb_dev.dev, "UWBD: '%s' message failed: %d\n", in uwbd_event_handle_message() 233 dev_err(&rc->uwb_dev.dev, "UWBD: invalid event type %d\n", evt->type); in uwbd_event_handle()
|
D | neh.c | 171 struct device *dev = &rc->uwb_dev.dev; in __uwb_rc_ctx_put() 201 struct device *dev = &rc->uwb_dev.dev; in uwb_rc_neh_add() 365 struct device *dev = &rc->uwb_dev.dev; in uwb_rc_notif() 394 struct device *dev = &rc->uwb_dev.dev; in uwb_rc_neh_grok_event() 466 struct device *dev = &rc->uwb_dev.dev; in uwb_rc_neh_grok()
|
D | uwb-debug.c | 75 struct uwb_dev *target; in cmd_rsv_establish() 209 is_owner = &rc->uwb_dev == rsv->owner; in reservations_show() 244 struct device *dev = &pal->rc->uwb_dev.dev; in uwb_dbg_channel_changed() 284 rc->dbg->root_d = debugfs_create_dir(dev_name(&rc->uwb_dev.dev), in uwb_dbg_add_rc()
|
D | hwa-rc.c | 108 struct device *dev = &rc->uwb_dev.dev; in hwarc_filter_evt_beacon_WUSB_0100() 167 struct device *dev = &rc->uwb_dev.dev; in hwarc_filter_evt_drp_avail_WUSB_0100() 241 struct device *dev = &rc->uwb_dev.dev; in hwarc_filter_evt_drp_WUSB_0100() 435 struct device *dev = &rc->uwb_dev.dev; in hwarc_get_event_size() 739 struct device *dev = &rc->uwb_dev.dev; in hwarc_get_version()
|
D | ie-rcv.c | 21 struct device *dev = &evt->rc->uwb_dev.dev; in uwbd_evt_handle_rc_ie_rcv()
|
D | ie.c | 99 struct device *dev = &uwb_rc->uwb_dev.dev; in uwb_rc_get_ie() 144 struct device *dev = &rc->uwb_dev.dev; in uwb_rc_set_ie()
|
D | est.c | 344 struct device *dev = &uwb_rc->uwb_dev.dev; in uwb_est_get_size() 419 struct device *dev = &rc->uwb_dev.dev; in uwb_est_find_size()
|
D | drp-avail.c | 217 struct device *dev = &evt->rc->uwb_dev.dev; in uwbd_evt_get_drp_avail()
|
/drivers/staging/wusbcore/Documentation/ |
D | wusb-design-overview.rst | 170 The main building block here is the UWB device (struct uwb_dev). For 172 beacon from it) you get a struct uwb_dev that will show up in 175 For each RC that is detected, a new struct uwb_rc and struct uwb_dev are
|
/drivers/staging/wusbcore/ |
D | security.c | 430 ccm_n.src_addr = wusbhc->uwb_rc->uwb_dev.dev_addr; in wusb_dev_4way_handshake()
|