Lines Matching refs:wusbhc
66 struct wusbhc wusbhc; /* has to be 1st */ member
79 struct wusbhc *wusbhc = &hwahc->wusbhc; in __hwahc_set_cluster_id() local
93 wusbhc->cluster_id = cluster_id; in __hwahc_set_cluster_id()
98 static int __hwahc_op_set_num_dnts(struct wusbhc *wusbhc, u8 interval, u8 slots) in __hwahc_op_set_num_dnts() argument
100 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); in __hwahc_op_set_num_dnts()
120 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in hwahc_op_reset() local
121 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); in hwahc_op_reset()
124 mutex_lock(&wusbhc->mutex); in hwahc_op_reset()
137 mutex_unlock(&wusbhc->mutex); in hwahc_op_reset()
148 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in hwahc_op_start() local
149 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); in hwahc_op_start()
152 mutex_lock(&wusbhc->mutex); in hwahc_op_start()
172 mutex_unlock(&wusbhc->mutex); in hwahc_op_start()
176 wusb_cluster_id_put(wusbhc->cluster_id); in hwahc_op_start()
190 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in hwahc_op_stop() local
192 mutex_lock(&wusbhc->mutex); in hwahc_op_stop()
193 wusb_cluster_id_put(wusbhc->cluster_id); in hwahc_op_stop()
194 mutex_unlock(&wusbhc->mutex); in hwahc_op_stop()
199 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in hwahc_op_get_frame_number() local
200 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); in hwahc_op_get_frame_number()
214 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in hwahc_op_urb_enqueue() local
215 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); in hwahc_op_urb_enqueue()
223 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in hwahc_op_urb_dequeue() local
224 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); in hwahc_op_urb_dequeue()
237 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in hwahc_op_endpoint_disable() local
238 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); in hwahc_op_endpoint_disable()
243 static int __hwahc_op_wusbhc_start(struct wusbhc *wusbhc) in __hwahc_op_wusbhc_start() argument
246 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); in __hwahc_op_wusbhc_start()
307 static void __hwahc_op_wusbhc_stop(struct wusbhc *wusbhc, int delay) in __hwahc_op_wusbhc_stop() argument
309 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); in __hwahc_op_wusbhc_stop()
333 static int __hwahc_op_bwa_set(struct wusbhc *wusbhc, s8 stream_index, in __hwahc_op_bwa_set() argument
337 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); in __hwahc_op_bwa_set()
380 static int __hwahc_op_mmcie_add(struct wusbhc *wusbhc, u8 interval, in __hwahc_op_mmcie_add() argument
384 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); in __hwahc_op_mmcie_add()
401 static int __hwahc_op_mmcie_rm(struct wusbhc *wusbhc, u8 handle) in __hwahc_op_mmcie_rm() argument
403 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); in __hwahc_op_mmcie_rm()
419 static int __hwahc_op_dev_info_set(struct wusbhc *wusbhc, in __hwahc_op_dev_info_set() argument
422 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); in __hwahc_op_dev_info_set()
465 static int __hwahc_dev_set_key(struct wusbhc *wusbhc, u8 port_idx, u32 tkid, in __hwahc_dev_set_key() argument
470 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); in __hwahc_dev_set_key()
506 static int __hwahc_op_set_ptk(struct wusbhc *wusbhc, u8 port_idx, u32 tkid, in __hwahc_op_set_ptk() argument
510 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); in __hwahc_op_set_ptk()
520 result = __hwahc_dev_set_key(wusbhc, port_idx, tkid, in __hwahc_op_set_ptk()
524 encryption_value = wusbhc->ccm1_etd->bEncryptionValue; in __hwahc_op_set_ptk()
537 dev_err(wusbhc->dev, "Can't set host's WUSB encryption for " in __hwahc_op_set_ptk()
539 wusb_et_name(wusbhc->ccm1_etd->bEncryptionType), in __hwahc_op_set_ptk()
540 wusbhc->ccm1_etd->bEncryptionValue, result); in __hwahc_op_set_ptk()
548 static int __hwahc_op_set_gtk(struct wusbhc *wusbhc, u32 tkid, in __hwahc_op_set_gtk() argument
554 return __hwahc_dev_set_key(wusbhc, 0, tkid, key, key_size, key_idx); in __hwahc_op_set_gtk()
639 struct wusbhc *wusbhc = &hwahc->wusbhc; in hwahc_security_create() local
701 wusbhc->ccm1_etd = etd; in hwahc_security_create()
704 if (wusbhc->ccm1_etd == NULL) { in hwahc_security_create()
722 struct wusbhc *wusbhc = &hwahc->wusbhc; in hwahc_create() local
728 wusbhc->dev = dev; in hwahc_create()
731 wusbhc->uwb_rc = NULL; in hwahc_create()
738 wusbhc->ports_max = USB_MAXCHILDREN; in hwahc_create()
740 wusbhc->ports_max = wa->wa_descr->bNumPorts; in hwahc_create()
742 wusbhc->mmcies_max = wa->wa_descr->bNumMMCIEs; in hwahc_create()
743 wusbhc->start = __hwahc_op_wusbhc_start; in hwahc_create()
744 wusbhc->stop = __hwahc_op_wusbhc_stop; in hwahc_create()
745 wusbhc->mmcie_add = __hwahc_op_mmcie_add; in hwahc_create()
746 wusbhc->mmcie_rm = __hwahc_op_mmcie_rm; in hwahc_create()
747 wusbhc->dev_info_set = __hwahc_op_dev_info_set; in hwahc_create()
748 wusbhc->bwa_set = __hwahc_op_bwa_set; in hwahc_create()
749 wusbhc->set_num_dnts = __hwahc_op_set_num_dnts; in hwahc_create()
750 wusbhc->set_ptk = __hwahc_op_set_ptk; in hwahc_create()
751 wusbhc->set_gtk = __hwahc_op_set_gtk; in hwahc_create()
757 wa->wusb = wusbhc; /* FIXME: ugly, need to fix */ in hwahc_create()
758 result = wusbhc_create(&hwahc->wusbhc); in hwahc_create()
769 wusbhc_destroy(&hwahc->wusbhc); in hwahc_create()
781 struct wusbhc *wusbhc = &hwahc->wusbhc; in hwahc_destroy() local
783 mutex_lock(&wusbhc->mutex); in hwahc_destroy()
785 wusbhc_destroy(&hwahc->wusbhc); in hwahc_destroy()
787 hwahc->wusbhc.dev = NULL; in hwahc_destroy()
788 uwb_rc_put(wusbhc->uwb_rc); in hwahc_destroy()
791 mutex_unlock(&wusbhc->mutex); in hwahc_destroy()
804 struct wusbhc *wusbhc; in hwahc_probe() local
816 wusbhc = usb_hcd_to_wusbhc(usb_hcd); in hwahc_probe()
817 hwahc = container_of(wusbhc, struct hwahc, wusbhc); in hwahc_probe()
830 result = wusbhc_b_create(&hwahc->wusbhc); in hwahc_probe()
850 struct wusbhc *wusbhc; in hwahc_disconnect() local
854 wusbhc = usb_hcd_to_wusbhc(usb_hcd); in hwahc_disconnect()
855 hwahc = container_of(wusbhc, struct hwahc, wusbhc); in hwahc_disconnect()
857 wusbhc_b_destroy(&hwahc->wusbhc); in hwahc_disconnect()