H A D | hwa-hc.c | 65 struct hwahc { struct 76 static int __hwahc_set_cluster_id(struct hwahc *hwahc, u8 cluster_id) __hwahc_set_cluster_id() argument 79 struct wusbhc *wusbhc = &hwahc->wusbhc; __hwahc_set_cluster_id() 80 struct wahc *wa = &hwahc->wa; __hwahc_set_cluster_id() 100 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); __hwahc_op_set_num_dnts() local 101 struct wahc *wa = &hwahc->wa; __hwahc_op_set_num_dnts() 121 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); hwahc_op_reset() local 122 struct device *dev = &hwahc->wa.usb_iface->dev; hwahc_op_reset() 125 wa_nep_disarm(&hwahc->wa); hwahc_op_reset() 126 result = __wa_set_feature(&hwahc->wa, WA_RESET); hwahc_op_reset() 131 result = __wa_wait_status(&hwahc->wa, WA_STATUS_RESETTING, 0); hwahc_op_reset() 149 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); hwahc_op_start() local 156 result = __hwahc_set_cluster_id(hwahc, addr); hwahc_op_start() 200 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); hwahc_op_get_frame_number() local 201 struct wahc *wa = &hwahc->wa; hwahc_op_get_frame_number() 215 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); hwahc_op_urb_enqueue() local 217 return wa_urb_enqueue(&hwahc->wa, urb->ep, urb, gfp); hwahc_op_urb_enqueue() 224 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); hwahc_op_urb_dequeue() local 226 return wa_urb_dequeue(&hwahc->wa, urb, status); hwahc_op_urb_dequeue() 238 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); hwahc_op_endpoint_disable() local 240 rpipe_ep_disable(&hwahc->wa, ep); hwahc_op_endpoint_disable() 246 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); __hwahc_op_wusbhc_start() local 247 struct device *dev = &hwahc->wa.usb_iface->dev; __hwahc_op_wusbhc_start() 249 result = __wa_set_feature(&hwahc->wa, WA_ENABLE); __hwahc_op_wusbhc_start() 254 result = __wa_wait_status(&hwahc->wa, WA_ENABLE, WA_ENABLE); __hwahc_op_wusbhc_start() 259 result = wa_nep_arm(&hwahc->wa, GFP_KERNEL); __hwahc_op_wusbhc_start() 268 if (hwahc->wa.quirks & __hwahc_op_wusbhc_start() 271 hwahc->wa.usb_iface->cur_altsetting; __hwahc_op_wusbhc_start() 273 result = usb_control_msg(hwahc->wa.usb_dev, __hwahc_op_wusbhc_start() 274 usb_sndctrlpipe(hwahc->wa.usb_dev, 0), __hwahc_op_wusbhc_start() 288 result = wa_dti_start(&hwahc->wa); __hwahc_op_wusbhc_start() 301 wa_nep_disarm(&hwahc->wa); __hwahc_op_wusbhc_start() 303 __wa_clear_feature(&hwahc->wa, WA_ENABLE); __hwahc_op_wusbhc_start() 309 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); __hwahc_op_wusbhc_stop() local 310 struct wahc *wa = &hwahc->wa; __hwahc_op_wusbhc_stop() 323 wa_nep_disarm(&hwahc->wa); __hwahc_op_wusbhc_stop() 324 __wa_stop(&hwahc->wa); __hwahc_op_wusbhc_stop() 337 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); __hwahc_op_bwa_set() local 338 struct wahc *wa = &hwahc->wa; __hwahc_op_bwa_set() 384 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); __hwahc_op_mmcie_add() local 385 struct wahc *wa = &hwahc->wa; __hwahc_op_mmcie_add() 403 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); __hwahc_op_mmcie_rm() local 404 struct wahc *wa = &hwahc->wa; __hwahc_op_mmcie_rm() 422 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); __hwahc_op_dev_info_set() local 423 struct wahc *wa = &hwahc->wa; __hwahc_op_dev_info_set() 470 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); __hwahc_dev_set_key() local 471 struct wahc *wa = &hwahc->wa; __hwahc_dev_set_key() 510 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); __hwahc_op_set_ptk() local 511 struct wahc *wa = &hwahc->wa; __hwahc_op_set_ptk() 620 .hcd_priv_size = sizeof(struct hwahc) - sizeof(struct usb_hcd), 636 static int hwahc_security_create(struct hwahc *hwahc) hwahc_security_create() argument 639 struct wusbhc *wusbhc = &hwahc->wusbhc; hwahc_security_create() 640 struct usb_device *usb_dev = hwahc->wa.usb_dev; hwahc_security_create() 712 static void hwahc_security_release(struct hwahc *hwahc) hwahc_security_release() argument 717 static int hwahc_create(struct hwahc *hwahc, struct usb_interface *iface, hwahc_create() argument 722 struct wusbhc *wusbhc = &hwahc->wusbhc; hwahc_create() 723 struct wahc *wa = &hwahc->wa; hwahc_create() 752 result = hwahc_security_create(hwahc); hwahc_create() 758 result = wusbhc_create(&hwahc->wusbhc); hwahc_create() 763 result = wa_create(&hwahc->wa, iface, quirks); hwahc_create() 769 wusbhc_destroy(&hwahc->wusbhc); hwahc_create() 779 static void hwahc_destroy(struct hwahc *hwahc) hwahc_destroy() argument 781 struct wusbhc *wusbhc = &hwahc->wusbhc; hwahc_destroy() 784 __wa_destroy(&hwahc->wa); hwahc_destroy() 785 wusbhc_destroy(&hwahc->wusbhc); hwahc_destroy() 786 hwahc_security_release(hwahc); hwahc_destroy() 787 hwahc->wusbhc.dev = NULL; hwahc_destroy() 789 usb_put_intf(hwahc->wa.usb_iface); hwahc_destroy() 790 usb_put_dev(hwahc->wa.usb_dev); hwahc_destroy() 794 static void hwahc_init(struct hwahc *hwahc) hwahc_init() argument 796 wa_init(&hwahc->wa); hwahc_init() 805 struct hwahc *hwahc; hwahc_probe() local 817 hwahc = container_of(wusbhc, struct hwahc, wusbhc); hwahc_probe() 818 hwahc_init(hwahc); hwahc_probe() 819 result = hwahc_create(hwahc, usb_iface, id->driver_info); hwahc_probe() 830 result = wusbhc_b_create(&hwahc->wusbhc); hwahc_probe() 840 hwahc_destroy(hwahc); hwahc_probe() 851 struct hwahc *hwahc; hwahc_disconnect() local 855 hwahc = container_of(wusbhc, struct hwahc, wusbhc); hwahc_disconnect() 857 wusbhc_b_destroy(&hwahc->wusbhc); hwahc_disconnect() 859 hwahc_destroy(hwahc); hwahc_disconnect()
|