Home
last modified time | relevance | path

Searched refs:wusb_dev (Results 1 – 11 of 11) sorted by relevance

/drivers/usb/wusbcore/
Ddevconnect.c98 static void wusb_dev_free(struct wusb_dev *wusb_dev) in wusb_dev_free() argument
100 kfree(wusb_dev); in wusb_dev_free()
103 static struct wusb_dev *wusb_dev_alloc(struct wusbhc *wusbhc) in wusb_dev_alloc()
105 struct wusb_dev *wusb_dev; in wusb_dev_alloc() local
107 wusb_dev = kzalloc(sizeof(*wusb_dev), GFP_KERNEL); in wusb_dev_alloc()
108 if (wusb_dev == NULL) in wusb_dev_alloc()
111 wusb_dev->wusbhc = wusbhc; in wusb_dev_alloc()
113 INIT_WORK(&wusb_dev->devconnect_acked_work, wusbhc_devconnect_acked_work); in wusb_dev_alloc()
115 return wusb_dev; in wusb_dev_alloc()
117 wusb_dev_free(wusb_dev); in wusb_dev_alloc()
[all …]
Dsecurity.c81 static u32 wusbhc_next_tkid(struct wusbhc *wusbhc, struct wusb_dev *wusb_dev) in wusbhc_next_tkid() argument
86 if (wusb_dev == NULL) { in wusbhc_next_tkid()
90 tkid = &wusb_port_by_idx(wusbhc, wusb_dev->port_idx)->ptk_tkid; in wusbhc_next_tkid()
91 addr = wusb_dev->addr & 0x7f; in wusbhc_next_tkid()
172 struct wusb_dev *wusb_dev = usb_dev->wusb_dev; in wusb_dev_set_encryption() local
175 value = wusb_dev->ccm1_etd.bEncryptionValue; in wusb_dev_set_encryption()
188 wusb_et_name(wusb_dev->ccm1_etd.bEncryptionType), in wusb_dev_set_encryption()
189 wusb_dev->ccm1_etd.bEncryptionValue, result); in wusb_dev_set_encryption()
198 static int wusb_dev_set_gtk(struct wusbhc *wusbhc, struct wusb_dev *wusb_dev) in wusb_dev_set_gtk() argument
200 struct usb_device *usb_dev = wusb_dev->usb_dev; in wusb_dev_set_gtk()
[all …]
Dwusbhc.h96 struct wusb_dev { struct
116 static inline void wusb_dev_init(struct wusb_dev *wusb_dev) in wusb_dev_init() argument
118 kref_init(&wusb_dev->refcnt); in wusb_dev_init()
124 static inline struct wusb_dev *wusb_dev_get(struct wusb_dev *wusb_dev) in wusb_dev_get() argument
126 kref_get(&wusb_dev->refcnt); in wusb_dev_get()
127 return wusb_dev; in wusb_dev_get()
130 static inline void wusb_dev_put(struct wusb_dev *wusb_dev) in wusb_dev_put() argument
132 kref_put(&wusb_dev->refcnt, wusb_dev_destroy); in wusb_dev_put()
155 struct wusb_dev *wusb_dev; /* connected device's info */ member
283 int (*dev_info_set)(struct wusbhc *, struct wusb_dev *wusb_dev);
[all …]
Ddev-sysfs.c62 struct wusb_dev *wusb_dev; in wusb_cdid_show() local
64 wusb_dev = wusb_dev_get_by_usb_dev(to_usb_device(dev)); in wusb_cdid_show()
65 if (wusb_dev == NULL) in wusb_cdid_show()
67 result = ckhdid_printf(buf, PAGE_SIZE, &wusb_dev->cdid); in wusb_cdid_show()
69 wusb_dev_put(wusb_dev); in wusb_cdid_show()
103 result = wusb_dev_4way_handshake(wusbhc, usb_dev->wusb_dev, &ck); in wusb_ck_store()
123 struct wusb_dev *wusb_dev) in wusb_dev_sysfs_add() argument
134 void wusb_dev_sysfs_rm(struct wusb_dev *wusb_dev) in wusb_dev_sysfs_rm() argument
136 struct usb_device *usb_dev = wusb_dev->usb_dev; in wusb_dev_sysfs_rm()
Drh.c103 struct wusb_dev *wusb_dev = port->wusb_dev; in wusbhc_rh_port_reset() local
105 if (wusb_dev == NULL) in wusbhc_rh_port_reset()
111 if (wusb_dev->addr & WUSB_DEV_ADDR_UNAUTH) in wusbhc_rh_port_reset()
114 result = wusb_dev_update_address(wusbhc, wusb_dev); in wusbhc_rh_port_reset()
Dwusbhc.c432 struct wusb_dev *wusb_dev = __wusb_dev_get_by_usb_dev(wusbhc, in wusbhc_giveback_urb() local
435 if (status == 0 && wusb_dev) { in wusbhc_giveback_urb()
436 wusb_dev->entry_ts = jiffies; in wusbhc_giveback_urb()
440 if (!list_empty(&wusb_dev->cack_node)) in wusbhc_giveback_urb()
441 queue_work(wusbd, &wusb_dev->devconnect_acked_work); in wusbhc_giveback_urb()
443 wusb_dev_put(wusb_dev); in wusbhc_giveback_urb()
Dwa-xfer.c165 struct wusb_dev *wusb_dev; /* for activity timestamps */ member
301 if (xfer->wusb_dev) in wa_xfer_completion()
302 wusb_dev_put(xfer->wusb_dev); in wa_xfer_completion()
1659 struct wusb_dev *wusb_dev; in wa_urb_enqueue_b() local
1675 wusb_dev = __wusb_dev_get_by_usb_dev(wusbhc, urb->dev); in wa_urb_enqueue_b()
1676 if (wusb_dev == NULL) { in wa_urb_enqueue_b()
1685 xfer->wusb_dev = wusb_dev; in wa_urb_enqueue_b()
1721 if (wusb_dev) in wa_urb_enqueue_b()
1722 wusb_dev_put(wusb_dev); in wa_urb_enqueue_b()
/drivers/usb/host/whci/
Dwusb.c103 int whc_dev_info_set(struct wusbhc *wusbhc, struct wusb_dev *wusb_dev) in whc_dev_info_set() argument
106 int idx = wusb_dev->port_idx; in whc_dev_info_set()
112 uwb_mas_bm_copy_le(di->availability_info, &wusb_dev->availability); in whc_dev_info_set()
114 di->addr_sec_info |= WHC_DI_DEV_ADDR(wusb_dev->addr); in whc_dev_info_set()
Dwhcd.h158 int whc_dev_info_set(struct wusbhc *wusbhc, struct wusb_dev *wusb_dev);
Dqset.c56 struct wusb_dev *wusb_dev = usb_dev->wusb_dev; in qset_fill_qh() local
84 phy_rates = le16_to_cpu(wusb_dev->wusb_cap_descr->wPHYRates); in qset_fill_qh()
/drivers/usb/host/
Dhwa-hc.c420 struct wusb_dev *wusb_dev) in __hwahc_op_dev_info_set() argument
433 &wusb_dev->availability); in __hwahc_op_dev_info_set()
434 dev_info->bDeviceAddress = wusb_dev->addr; in __hwahc_op_dev_info_set()
443 if (wusb_dev->wusb_cap_descr) in __hwahc_op_dev_info_set()
444 dev_info->wPHYRates = wusb_dev->wusb_cap_descr->wPHYRates; in __hwahc_op_dev_info_set()
451 0, wusb_dev->port_idx << 8 | iface_no, in __hwahc_op_dev_info_set()