/drivers/usb/gadget/ |
D | f_hid.c | 52 struct usb_ep *in_ep; member 231 status = usb_ep_queue(hidg->in_ep, hidg->req, GFP_ATOMIC); in f_hidg_write() 407 usb_ep_disable(hidg->in_ep); in hidg_disable() 408 hidg->in_ep->driver_data = NULL; in hidg_disable() 419 if (hidg->in_ep != NULL) { in hidg_set_alt() 421 if (hidg->in_ep->driver_data != NULL) in hidg_set_alt() 422 usb_ep_disable(hidg->in_ep); in hidg_set_alt() 425 hidg->in_ep); in hidg_set_alt() 430 status = usb_ep_enable(hidg->in_ep); in hidg_set_alt() 435 hidg->in_ep->driver_data = hidg; in hidg_set_alt() [all …]
|
D | f_loopback.c | 38 struct usb_ep *in_ep; member 189 loop->in_ep = usb_ep_autoconfig(cdev->gadget, &fs_loop_source_desc); in loopback_bind() 190 if (!loop->in_ep) { in loopback_bind() 196 loop->in_ep->driver_data = cdev; /* claim */ in loopback_bind() 224 f->name, loop->in_ep->name, loop->out_ep->name); in loopback_bind() 247 status = usb_ep_queue(loop->in_ep, req, GFP_ATOMIC); in loopback_complete() 253 ep->name, loop->in_ep->name, in loopback_complete() 289 disable_endpoints(cdev, loop->in_ep, loop->out_ep); in disable_loopback() 302 ep = loop->in_ep; in enable_loopback() 320 ep = loop->in_ep; in enable_loopback() [all …]
|
D | f_phonet.c | 49 struct usb_ep *in_ep, *out_ep; member 246 if (unlikely(usb_ep_queue(fp->in_ep, req, GFP_ATOMIC))) in pn_net_xmit() 393 usb_ep_disable(fp->in_ep); in __pn_reset() 422 if (config_ep_by_speed(gadget, f, fp->in_ep) || in pn_set_alt() 424 fp->in_ep->desc = NULL; in pn_set_alt() 430 usb_ep_enable(fp->in_ep); in pn_set_alt() 434 fp->in_ep->driver_data = fp; in pn_set_alt() 515 fp->in_ep = ep; in pn_bind() 541 fp->in_req = usb_ep_alloc_request(fp->in_ep, GFP_KERNEL); in pn_bind() 547 fp->out_ep->name, fp->in_ep->name); in pn_bind() [all …]
|
D | f_eem.c | 196 if (eem->port.in_ep->driver_data) { in eem_set_alt() 201 if (!eem->port.in_ep->desc || !eem->port.out_ep->desc) { in eem_set_alt() 204 eem->port.in_ep) || in eem_set_alt() 207 eem->port.in_ep->desc = NULL; in eem_set_alt() 237 if (eem->port.in_ep->driver_data) in eem_disable() 266 eem->port.in_ep = ep; in eem_bind() 313 eem->port.in_ep->name, eem->port.out_ep->name); in eem_bind() 324 if (eem->port.in_ep) in eem_bind() 325 eem->port.in_ep->driver_data = NULL; in eem_bind() 362 struct usb_ep *in = port->in_ep; in eem_wrap() [all …]
|
D | printer.c | 81 struct usb_ep *in_ep, *out_ep; member 738 req->zero = ((len % dev->in_ep->maxpacket) == 0); in printer_write() 763 if (usb_ep_queue(dev->in_ep, req, GFP_ATOMIC)) { in printer_write() 890 dev->in_ep->desc = ep_desc(dev->gadget, &hs_ep_in_desc, &fs_ep_in_desc); in set_printer_interface() 891 dev->in_ep->driver_data = dev; in set_printer_interface() 897 result = usb_ep_enable(dev->in_ep); in set_printer_interface() 899 DBG(dev, "enable %s --> %d\n", dev->in_ep->name, result); in set_printer_interface() 905 DBG(dev, "enable %s --> %d\n", dev->in_ep->name, result); in set_printer_interface() 912 (void) usb_ep_disable(dev->in_ep); in set_printer_interface() 914 dev->in_ep->desc = NULL; in set_printer_interface() [all …]
|
D | f_sourcesink.c | 52 struct usb_ep *in_ep; member 202 ss->in_ep = usb_ep_autoconfig(cdev->gadget, &fs_source_desc); in sourcesink_bind() 203 if (!ss->in_ep) { in sourcesink_bind() 209 ss->in_ep->driver_data = cdev; /* claim */ in sourcesink_bind() 237 f->name, ss->in_ep->name, ss->out_ep->name); in sourcesink_bind() 353 ep = is_in ? ss->in_ep : ss->out_ep; in source_sink_start_ep() 383 disable_endpoints(cdev, ss->in_ep, ss->out_ep); in disable_source_sink() 394 ep = ss->in_ep; in enable_source_sink() 406 ep = ss->in_ep; in enable_source_sink() 440 if (ss->in_ep->driver_data) in sourcesink_set_alt()
|
D | f_subset.c | 263 if (geth->port.in_ep->driver_data) { in geth_set_alt() 269 if (config_ep_by_speed(cdev->gadget, f, geth->port.in_ep) || in geth_set_alt() 271 geth->port.in_ep->desc = NULL; in geth_set_alt() 313 geth->port.in_ep = ep; in geth_bind() 363 geth->port.in_ep->name, geth->port.out_ep->name); in geth_bind() 375 if (geth->port.in_ep) in geth_bind() 376 geth->port.in_ep->driver_data = NULL; in geth_bind()
|
D | u_ether.c | 406 status = prealloc(&dev->tx_reqs, link->in_ep, n); in alloc_requests() 502 in = dev->port_usb->in_ep; in eth_start_xmit() 687 in = link->in_ep->desc; in eth_stop() 689 usb_ep_disable(link->in_ep); in eth_stop() 693 link->in_ep->desc = in; in eth_stop() 695 usb_ep_enable(link->in_ep); in eth_stop() 892 link->in_ep->driver_data = dev; in gether_connect() 893 result = usb_ep_enable(link->in_ep); in gether_connect() 896 link->in_ep->name, result); in gether_connect() 939 (void) usb_ep_disable(link->in_ep); in gether_connect() [all …]
|
D | f_ecm.c | 557 if (ecm->port.in_ep->driver_data) { in ecm_set_alt() 562 if (!ecm->port.in_ep->desc || in ecm_set_alt() 566 ecm->port.in_ep) || in ecm_set_alt() 569 ecm->port.in_ep->desc = NULL; in ecm_set_alt() 617 return ecm->port.in_ep->driver_data ? 1 : 0; in ecm_get_alt() 627 if (ecm->port.in_ep->driver_data) in ecm_disable() 714 ecm->port.in_ep = ep; in ecm_bind() 793 ecm->port.in_ep->name, ecm->port.out_ep->name, in ecm_bind() 813 if (ecm->port.in_ep) in ecm_bind() 814 ecm->port.in_ep->driver_data = NULL; in ecm_bind()
|
D | f_midi.c | 72 struct usb_ep *in_ep, *out_ep; member 265 } else if (ep == midi->in_ep) { in f_midi_complete() 339 err = f_midi_start_ep(midi, f, midi->in_ep); in f_midi_set_alt() 395 usb_ep_disable(midi->in_ep); in f_midi_disable() 544 struct usb_ep *ep = midi->in_ep; in f_midi_transmit() 773 midi->in_ep = usb_ep_autoconfig(cdev->gadget, &bulk_in_desc); in f_midi_bind() 774 if (!midi->in_ep) in f_midi_bind() 776 midi->in_ep->driver_data = cdev; /* claim */ in f_midi_bind() 903 if (midi->in_ep) in f_midi_bind() 904 midi->in_ep->driver_data = NULL; in f_midi_bind()
|
D | f_audio_source.c | 245 struct usb_ep *in_ep; member 388 ret = usb_ep_queue(audio->in_ep, req, GFP_ATOMIC); in audio_send() 531 ret = config_ep_by_speed(cdev->gadget, f, audio->in_ep); in audio_set_alt() 535 usb_ep_enable(audio->in_ep); in audio_set_alt() 544 usb_ep_disable(audio->in_ep); in audio_disable() 601 audio->in_ep = ep; in audio_bind() 632 audio_request_free(req, audio->in_ep); in audio_unbind() 638 audio->in_ep = NULL; in audio_unbind()
|
D | f_rndis.c | 560 if (rndis->port.in_ep->driver_data) { in rndis_set_alt() 565 if (!rndis->port.in_ep->desc || !rndis->port.out_ep->desc) { in rndis_set_alt() 568 rndis->port.in_ep) || in rndis_set_alt() 571 rndis->port.in_ep->desc = NULL; in rndis_set_alt() 693 rndis->port.in_ep = ep; in rndis_bind() 786 rndis->port.in_ep->name, rndis->port.out_ep->name, in rndis_bind() 808 if (rndis->port.in_ep) in rndis_bind() 809 rndis->port.in_ep->driver_data = NULL; in rndis_bind()
|
D | f_ncm.c | 801 if (ncm->port.in_ep->driver_data) { in ncm_set_alt() 814 if (!ncm->port.in_ep->desc || in ncm_set_alt() 818 ncm->port.in_ep) || in ncm_set_alt() 821 ncm->port.in_ep->desc = NULL; in ncm_set_alt() 862 return ncm->port.in_ep->driver_data ? 1 : 0; in ncm_get_alt() 1093 if (ncm->port.in_ep->driver_data) in ncm_disable() 1184 ncm->port.in_ep = ep; in ncm_bind() 1246 ncm->port.in_ep->name, ncm->port.out_ep->name, in ncm_bind() 1264 if (ncm->port.in_ep) in ncm_bind() 1265 ncm->port.in_ep->driver_data = NULL; in ncm_bind()
|
D | f_uac2.c | 150 struct usb_ep *in_ep, *out_ep; member 276 ep = agdev->in_ep; in uac2_pcm_trigger() 986 agdev->in_ep = usb_ep_autoconfig(gadget, &fs_epin_desc); in afunc_bind() 987 if (!agdev->in_ep) in afunc_bind() 990 agdev->in_ep->driver_data = agdev; in afunc_bind() 1042 if (agdev->in_ep) in afunc_unbind() 1043 agdev->in_ep->driver_data = NULL; in afunc_unbind() 1083 ep = agdev->in_ep; in afunc_set_alt() 1159 free_ep(&uac2->p_prm, agdev->in_ep); in afunc_disable()
|
D | u_ether.h | 43 struct usb_ep *in_ep; member
|
/drivers/net/usb/ |
D | cdc_ncm.c | 107 struct usb_host_endpoint *in_ep; member 425 if (ctx->in_ep == NULL) in cdc_ncm_find_endpoints() 426 ctx->in_ep = e; in cdc_ncm_find_endpoints() 570 if ((ctx->in_ep == NULL) || (ctx->out_ep == NULL) || in cdc_ncm_bind() 587 ctx->in_ep->desc.bEndpointAddress & USB_ENDPOINT_NUMBER_MASK); in cdc_ncm_bind()
|
/drivers/staging/ozwpan/ |
D | ozhcd.c | 112 struct oz_endpoint *in_ep[OZ_NB_ENDPOINTS]; member 452 ep = port->in_ep[ep_addr]; in oz_enqueue_ep_urb() 483 ep = port->in_ep[ep_addr]; in oz_dequeue_ep_urb() 940 ep = port->in_ep[endpoint & USB_ENDPOINT_NUMBER_MASK]; in oz_hcd_data_ind() 1200 port->in_ep[ep_num] = ep; in oz_build_endpoints_for_interface() 1255 if ((mask & (1<<(i+OZ_NB_ENDPOINTS))) && port->in_ep[i]) { in oz_clean_endpoints_for_interface() 1256 e = &port->in_ep[i]->link; in oz_clean_endpoints_for_interface() 1257 port->in_ep[i] = 0; in oz_clean_endpoints_for_interface() 1608 urbl = oz_remove_urb(port->in_ep[ix], urb); in oz_urb_cancel()
|
/drivers/net/wireless/rtlwifi/ |
D | usb.h | 140 u32 in_ep; /* Bulk IN endpoint number */ member
|
D | usb.c | 320 rtlusb->in_ep = rtlpriv->cfg->usb_interface_cfg->in_ep_num; in _rtl_usb_init_rx() 326 rtlusb->rx_max_size, rtlusb->rx_urb_num, rtlusb->in_ep); in _rtl_usb_init_rx() 432 usb_rcvbulkpipe(rtlusb->udev, rtlusb->in_ep), in _rtl_prep_rx_urb() 437 _rtl_install_trx_info(rtlusb, skb, rtlusb->in_ep); in _rtl_prep_rx_urb()
|