/linux-2.6.39/drivers/usb/wusbcore/ |
D | mmc.c | 44 int wusbhc_mmcie_create(struct wusbhc *wusbhc) in wusbhc_mmcie_create() argument 46 u8 mmcies = wusbhc->mmcies_max; in wusbhc_mmcie_create() 47 wusbhc->mmcie = kcalloc(mmcies, sizeof(wusbhc->mmcie[0]), GFP_KERNEL); in wusbhc_mmcie_create() 48 if (wusbhc->mmcie == NULL) in wusbhc_mmcie_create() 50 mutex_init(&wusbhc->mmcie_mutex); in wusbhc_mmcie_create() 55 void wusbhc_mmcie_destroy(struct wusbhc *wusbhc) in wusbhc_mmcie_destroy() argument 57 kfree(wusbhc->mmcie); in wusbhc_mmcie_destroy() 93 int wusbhc_mmcie_set(struct wusbhc *wusbhc, u8 interval, u8 repeat_cnt, in wusbhc_mmcie_set() argument 100 mutex_lock(&wusbhc->mmcie_mutex); in wusbhc_mmcie_set() 104 handle = wusbhc->mmcies_max - 1; in wusbhc_mmcie_set() [all …]
|
D | wusbhc.h | 96 struct wusbhc *wusbhc; member 246 struct wusbhc { struct 274 int (*start)(struct wusbhc *wusbhc); argument 275 void (*stop)(struct wusbhc *wusbhc, int delay); argument 276 int (*mmcie_add)(struct wusbhc *wusbhc, u8 interval, u8 repeat_cnt, argument 278 int (*mmcie_rm)(struct wusbhc *wusbhc, u8 handle); argument 279 int (*dev_info_set)(struct wusbhc *, struct wusb_dev *wusb_dev); argument 280 int (*bwa_set)(struct wusbhc *wusbhc, s8 stream_index, argument 282 int (*set_ptk)(struct wusbhc *wusbhc, u8 port_idx, argument 284 int (*set_gtk)(struct wusbhc *wusbhc, argument [all …]
|
D | devconnect.c | 106 static struct wusb_dev *wusb_dev_alloc(struct wusbhc *wusbhc) in wusb_dev_alloc() argument 116 wusb_dev->wusbhc = wusbhc; in wusb_dev_alloc() 132 req->wValue = cpu_to_le16(USB_DT_KEY << 8 | wusbhc->gtk_index); in wusb_dev_alloc() 134 req->wLength = cpu_to_le16(wusbhc->gtk.descr.bLength); in wusb_dev_alloc() 153 static void wusbhc_fill_cack_ie(struct wusbhc *wusbhc) in wusbhc_fill_cack_ie() argument 159 cack_ie = &wusbhc->cack_ie; in wusbhc_fill_cack_ie() 161 list_for_each_entry(dev_itr, &wusbhc->cack_list, cack_node) { in wusbhc_fill_cack_ie() 183 static struct wusb_dev *wusbhc_cack_add(struct wusbhc *wusbhc, in wusbhc_cack_add() argument 187 struct device *dev = wusbhc->dev; in wusbhc_cack_add() 194 list_for_each_entry(wusb_dev, &wusbhc->cack_list, cack_node) in wusbhc_cack_add() [all …]
|
D | rh.c | 98 static int wusbhc_rh_port_reset(struct wusbhc *wusbhc, u8 port_idx) in wusbhc_rh_port_reset() argument 101 struct wusb_port *port = wusb_port_by_idx(wusbhc, port_idx); in wusbhc_rh_port_reset() 113 result = wusb_dev_update_address(wusbhc, wusb_dev); in wusbhc_rh_port_reset() 142 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in wusbhc_rh_status_data() local 147 size = wusbhc->ports_max + 1 /* hub bit */; in wusbhc_rh_status_data() 149 for (cnt = 0; cnt < wusbhc->ports_max; cnt++) in wusbhc_rh_status_data() 150 if (wusb_port_by_idx(wusbhc, cnt)->change) in wusbhc_rh_status_data() 165 static int wusbhc_rh_get_hub_descr(struct wusbhc *wusbhc, u16 wValue, in wusbhc_rh_get_hub_descr() argument 170 u16 temp = 1 + (wusbhc->ports_max / 8); in wusbhc_rh_get_hub_descr() 177 descr->bNbrPorts = wusbhc->ports_max; in wusbhc_rh_get_hub_descr() [all …]
|
D | wusbhc.c | 42 static struct wusbhc *usbhc_dev_to_wusbhc(struct device *dev) in usbhc_dev_to_wusbhc() 60 struct wusbhc *wusbhc = usbhc_dev_to_wusbhc(dev); in wusb_trust_timeout_show() local 62 return scnprintf(buf, PAGE_SIZE, "%u\n", wusbhc->trust_timeout); in wusb_trust_timeout_show() 69 struct wusbhc *wusbhc = usbhc_dev_to_wusbhc(dev); in wusb_trust_timeout_store() local 79 wusbhc->trust_timeout = trust_timeout; in wusb_trust_timeout_store() 80 cancel_delayed_work(&wusbhc->keep_alive_timer); in wusb_trust_timeout_store() 82 queue_delayed_work(wusbd, &wusbhc->keep_alive_timer, in wusb_trust_timeout_store() 96 struct wusbhc *wusbhc = usbhc_dev_to_wusbhc(dev); in wusb_chid_show() local 100 if (wusbhc->wuie_host_info != NULL) in wusb_chid_show() 101 chid = &wusbhc->wuie_host_info->CHID; in wusb_chid_show() [all …]
|
D | security.c | 34 int wusbhc_sec_create(struct wusbhc *wusbhc) in wusbhc_sec_create() argument 36 wusbhc->gtk.descr.bLength = sizeof(wusbhc->gtk.descr) + sizeof(wusbhc->gtk.data); in wusbhc_sec_create() 37 wusbhc->gtk.descr.bDescriptorType = USB_DT_KEY; in wusbhc_sec_create() 38 wusbhc->gtk.descr.bReserved = 0; in wusbhc_sec_create() 40 wusbhc->gtk_index = wusb_key_index(0, WUSB_KEY_INDEX_TYPE_GTK, in wusbhc_sec_create() 43 INIT_WORK(&wusbhc->gtk_rekey_done_work, wusbhc_gtk_rekey_done_work); in wusbhc_sec_create() 50 void wusbhc_sec_destroy(struct wusbhc *wusbhc) in wusbhc_sec_destroy() argument 67 static u32 wusbhc_next_tkid(struct wusbhc *wusbhc, struct wusb_dev *wusb_dev) in wusbhc_next_tkid() argument 73 tkid = &wusbhc->gtk_tkid; in wusbhc_next_tkid() 76 tkid = &wusb_port_by_idx(wusbhc, wusb_dev->port_idx)->ptk_tkid; in wusbhc_next_tkid() [all …]
|
D | pal.c | 23 struct wusbhc *wusbhc = container_of(pal, struct wusbhc, pal); in wusbhc_channel_changed() local 26 wusbhc_stop(wusbhc); in wusbhc_channel_changed() 28 wusbhc_start(wusbhc); in wusbhc_channel_changed() 35 int wusbhc_pal_register(struct wusbhc *wusbhc) in wusbhc_pal_register() argument 37 uwb_pal_init(&wusbhc->pal); in wusbhc_pal_register() 39 wusbhc->pal.name = "wusbhc"; in wusbhc_pal_register() 40 wusbhc->pal.device = wusbhc->usb_hcd.self.controller; in wusbhc_pal_register() 41 wusbhc->pal.rc = wusbhc->uwb_rc; in wusbhc_pal_register() 42 wusbhc->pal.channel_changed = wusbhc_channel_changed; in wusbhc_pal_register() 44 return uwb_pal_register(&wusbhc->pal); in wusbhc_pal_register() [all …]
|
D | reservation.c | 31 static int wusbhc_bwa_set(struct wusbhc *wusbhc, u8 stream, in wusbhc_bwa_set() argument 36 return wusbhc->bwa_set(wusbhc, stream, mas); in wusbhc_bwa_set() 49 struct wusbhc *wusbhc = rsv->pal_priv; in wusbhc_rsv_complete_cb() local 50 struct device *dev = wusbhc->dev; in wusbhc_rsv_complete_cb() 59 wusbhc_bwa_set(wusbhc, rsv->stream, &mas); in wusbhc_rsv_complete_cb() 63 wusbhc_bwa_set(wusbhc, 0, NULL); in wusbhc_rsv_complete_cb() 76 int wusbhc_rsv_establish(struct wusbhc *wusbhc) in wusbhc_rsv_establish() argument 78 struct uwb_rc *rc = wusbhc->uwb_rc; in wusbhc_rsv_establish() 83 rsv = uwb_rsv_create(rc, wusbhc_rsv_complete_cb, wusbhc); in wusbhc_rsv_establish() 87 bcid.data[0] = wusbhc->cluster_id; in wusbhc_rsv_establish() [all …]
|
D | dev-sysfs.c | 36 struct wusbhc *wusbhc; in wusb_disconnect_store() local 45 wusbhc = wusbhc_get_by_usb_dev(usb_dev); in wusb_disconnect_store() 46 if (wusbhc == NULL) in wusb_disconnect_store() 49 mutex_lock(&wusbhc->mutex); in wusb_disconnect_store() 51 __wusbhc_dev_disable(wusbhc, port_idx); in wusb_disconnect_store() 52 mutex_unlock(&wusbhc->mutex); in wusb_disconnect_store() 53 wusbhc_put(wusbhc); in wusb_disconnect_store() 80 struct wusbhc *wusbhc; in wusb_ck_store() local 100 wusbhc = wusbhc_get_by_usb_dev(usb_dev); in wusb_ck_store() 101 if (wusbhc == NULL) in wusb_ck_store() [all …]
|
D | Makefile | 17 wusbhc.o
|
D | wa-hc.h | 91 struct wusbhc; 164 struct wusbhc *wusb;
|
D | wa-xfer.c | 913 struct wusbhc *wusbhc = wa->wusb; in wa_urb_enqueue_b() local 922 mutex_lock(&wusbhc->mutex); /* get a WUSB dev */ in wa_urb_enqueue_b() 924 mutex_unlock(&wusbhc->mutex); in wa_urb_enqueue_b() 927 wusb_dev = __wusb_dev_get_by_usb_dev(wusbhc, urb->dev); in wa_urb_enqueue_b() 929 mutex_unlock(&wusbhc->mutex); in wa_urb_enqueue_b() 932 mutex_unlock(&wusbhc->mutex); in wa_urb_enqueue_b()
|
/linux-2.6.39/drivers/usb/host/ |
D | hwa-hc.c | 67 struct wusbhc wusbhc; /* has to be 1st */ member 80 struct wusbhc *wusbhc = &hwahc->wusbhc; in __hwahc_set_cluster_id() local 94 wusbhc->cluster_id = cluster_id; in __hwahc_set_cluster_id() 99 static int __hwahc_op_set_num_dnts(struct wusbhc *wusbhc, u8 interval, u8 slots) in __hwahc_op_set_num_dnts() argument 101 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); in __hwahc_op_set_num_dnts() 121 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in hwahc_op_reset() local 122 struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); in hwahc_op_reset() 125 mutex_lock(&wusbhc->mutex); in hwahc_op_reset() 138 mutex_unlock(&wusbhc->mutex); in hwahc_op_reset() 149 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in hwahc_op_start() local [all …]
|
/linux-2.6.39/drivers/usb/host/whci/ |
D | hcd.c | 45 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in whc_start() local 46 struct whc *whc = wusbhc_to_whc(wusbhc); in whc_start() 50 mutex_lock(&wusbhc->mutex); in whc_start() 65 wusbhc->cluster_id = bcid; in whc_start() 75 mutex_unlock(&wusbhc->mutex); in whc_start() 89 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in whc_stop() local 90 struct whc *whc = wusbhc_to_whc(wusbhc); in whc_stop() 92 mutex_lock(&wusbhc->mutex); in whc_stop() 101 wusb_cluster_id_put(wusbhc->cluster_id); in whc_stop() 103 mutex_unlock(&wusbhc->mutex); in whc_stop() [all …]
|
D | wusb.c | 44 int whc_wusbhc_start(struct wusbhc *wusbhc) in whc_wusbhc_start() argument 46 struct whc *whc = wusbhc_to_whc(wusbhc); in whc_wusbhc_start() 54 void whc_wusbhc_stop(struct wusbhc *wusbhc, int delay) in whc_wusbhc_stop() argument 56 struct whc *whc = wusbhc_to_whc(wusbhc); in whc_wusbhc_stop() 70 int whc_mmcie_add(struct wusbhc *wusbhc, u8 interval, u8 repeat_cnt, in whc_mmcie_add() argument 73 struct whc *whc = wusbhc_to_whc(wusbhc); in whc_mmcie_add() 84 int whc_mmcie_rm(struct wusbhc *wusbhc, u8 handle) in whc_mmcie_rm() argument 86 struct whc *whc = wusbhc_to_whc(wusbhc); in whc_mmcie_rm() 94 int whc_bwa_set(struct wusbhc *wusbhc, s8 stream_index, const struct uwb_mas_bm *mas_bm) in whc_bwa_set() argument 96 struct whc *whc = wusbhc_to_whc(wusbhc); in whc_bwa_set() [all …]
|
D | whcd.h | 35 struct wusbhc wusbhc; member 78 #define wusbhc_to_whc(w) (container_of((w), struct whc, wusbhc)) 152 int whc_wusbhc_start(struct wusbhc *wusbhc); 153 void whc_wusbhc_stop(struct wusbhc *wusbhc, int delay); 154 int whc_mmcie_add(struct wusbhc *wusbhc, u8 interval, u8 repeat_cnt, 156 int whc_mmcie_rm(struct wusbhc *wusbhc, u8 handle); 157 int whc_bwa_set(struct wusbhc *wusbhc, s8 stream_index, const struct uwb_mas_bm *mas_bm); 158 int whc_dev_info_set(struct wusbhc *wusbhc, struct wusb_dev *wusb_dev); 159 int whc_set_num_dnts(struct wusbhc *wusbhc, u8 interval, u8 slots); 160 int whc_set_ptk(struct wusbhc *wusbhc, u8 port_idx, u32 tkid, [all …]
|
D | int.c | 34 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(hcd); in whc_int_handler() local 35 struct whc *whc = wusbhc_to_whc(wusbhc); in whc_int_handler() 70 struct wusbhc *wusbhc = &whc->wusbhc; in process_dn_buf() local 76 wusbhc_handle_dn(wusbhc, dn->src_addr, in process_dn_buf()
|
D | asl.c | 178 struct wusbhc *wusbhc = &whc->wusbhc; in asl_update() local 181 mutex_lock(&wusbhc->mutex); in asl_update() 182 if (wusbhc->active) { in asl_update() 191 mutex_unlock(&wusbhc->mutex); in asl_update() 273 err = usb_hcd_link_urb_to_ep(&whc->wusbhc.usb_hcd, urb); in asl_urb_enqueue() 288 usb_hcd_unlink_urb_from_ep(&whc->wusbhc.usb_hcd, urb); in asl_urb_enqueue() 319 ret = usb_hcd_check_unlink_urb(&whc->wusbhc.usb_hcd, urb, status); in asl_urb_dequeue()
|
D | hw.c | 100 struct wusbhc *wusbhc = &whc->wusbhc; in whc_hw_error() local 103 wusbhc_reset_all(wusbhc); in whc_hw_error()
|
D | pzl.c | 191 struct wusbhc *wusbhc = &whc->wusbhc; in pzl_update() local 194 mutex_lock(&wusbhc->mutex); in pzl_update() 195 if (wusbhc->active) { in pzl_update() 204 mutex_unlock(&wusbhc->mutex); in pzl_update() 301 err = usb_hcd_link_urb_to_ep(&whc->wusbhc.usb_hcd, urb); in pzl_urb_enqueue() 316 usb_hcd_unlink_urb_from_ep(&whc->wusbhc.usb_hcd, urb); in pzl_urb_enqueue() 347 ret = usb_hcd_check_unlink_urb(&whc->wusbhc.usb_hcd, urb, status); in pzl_urb_dequeue()
|
D | qset.c | 86 if (phy_rate > whc->wusbhc.phy_rate) in qset_fill_qh() 87 phy_rate = whc->wusbhc.phy_rate; in qset_fill_qh() 311 dma_unmap_single(whc->wusbhc.dev, dma_addr, in qset_free_std() 319 dma_unmap_single(whc->wusbhc.dev, std->dma_addr, in qset_free_std() 379 std->dma_addr = dma_map_single(whc->wusbhc.dev, std->pl_virt, pl_len, DMA_TO_DEVICE); in qset_fill_page_list() 533 std->dma_addr = dma_map_single(whc->wusbhc.dev, std->pl_virt, in qset_add_urb_sg() 703 struct wusbhc *wusbhc = &whc->wusbhc; in qset_remove_urb() local 706 usb_hcd_unlink_urb_from_ep(&wusbhc->usb_hcd, urb); in qset_remove_urb() 709 wusbhc_giveback_urb(wusbhc, urb, status); in qset_remove_urb()
|
D | debug.c | 176 if (whc->wusbhc.pal.debugfs_dir == NULL) in whc_dbg_init() 184 whc->wusbhc.pal.debugfs_dir, whc, in whc_dbg_init() 187 whc->wusbhc.pal.debugfs_dir, whc, in whc_dbg_init() 190 whc->wusbhc.pal.debugfs_dir, whc, in whc_dbg_init()
|
/linux-2.6.39/Documentation/ABI/testing/ |
D | sysfs-class-uwb_rc-wusbhc | 1 What: /sys/class/uwb_rc/uwbN/wusbhc/wusb_chid 12 What: /sys/class/uwb_rc/uwbN/wusbhc/wusb_trust_timeout 27 What: /sys/class/uwb_rc/uwbN/wusbhc/wusb_phy_rate
|
D | sysfs-class-uwb_rc | 72 What: /sys/class/uwb_rc/uwbN/wusbhc
|