Searched refs:cur_alt (Results 1 – 8 of 8) sorted by relevance
/Linux-v4.19/drivers/media/usb/cpia2/ |
D | cpia2_usb.c | 46 #define FRAME_SIZE_PER_DESC frame_sizes[cam->cur_alt] 486 if(alt == cam->cur_alt) in set_alternate() 489 if (cam->cur_alt != USBIF_CMDONLY) { in set_alternate() 490 DBG("Changing from alt %d to %d\n", cam->cur_alt, USBIF_CMDONLY); in set_alternate() 502 cam->old_alt = cam->cur_alt; in set_alternate() 503 cam->cur_alt = alt; in set_alternate()
|
D | cpia2.h | 395 unsigned int cur_alt; member
|
/Linux-v4.19/drivers/usb/gadget/function/ |
D | f_obex.c | 33 u8 cur_alt; member 233 obex->cur_alt = alt; in obex_set_alt() 245 return obex->cur_alt; in obex_get_alt()
|
D | f_sourcesink.c | 41 int cur_alt; member 729 ss->cur_alt = alt; in enable_source_sink() 749 return ss->cur_alt; in sourcesink_get_alt()
|
/Linux-v4.19/drivers/usb/core/ |
D | hcd.c | 1962 struct usb_host_interface *cur_alt, in usb_hcd_alloc_bandwidth() argument 1976 if (!new_config && !cur_alt) { in usb_hcd_alloc_bandwidth() 2031 if (cur_alt && new_alt) { in usb_hcd_alloc_bandwidth() 2033 cur_alt->desc.bInterfaceNumber); in usb_hcd_alloc_bandwidth() 2047 cur_alt = usb_altnum_to_altsetting(iface, 0); in usb_hcd_alloc_bandwidth() 2048 if (!cur_alt) in usb_hcd_alloc_bandwidth() 2049 cur_alt = &iface->altsetting[0]; in usb_hcd_alloc_bandwidth() 2053 for (i = 0; i < cur_alt->desc.bNumEndpoints; i++) { in usb_hcd_alloc_bandwidth() 2055 &cur_alt->endpoint[i]); in usb_hcd_alloc_bandwidth()
|
/Linux-v4.19/drivers/usb/gadget/udc/ |
D | amd5536udc.h | 566 u16 cur_alt; member
|
D | pch_udc.c | 268 u16 cur_alt; member 997 (cfg->cur_alt << UDC_CSR_NE_ALT_SHIFT) | in pch_udc_ep_enable() 2625 dev->cfg_data.cur_alt = (dev_stat & UDC_DEVSTS_ALT_MASK) >> in pch_udc_svc_intf_interrupt() 2632 dev->setup_data.wValue = cpu_to_le16(dev->cfg_data.cur_alt); in pch_udc_svc_intf_interrupt() 2640 (dev->cfg_data.cur_alt << UDC_CSR_NE_ALT_SHIFT); in pch_udc_svc_intf_interrupt()
|
D | snps_udc_core.c | 425 tmp = AMD_ADDBITS(tmp, ep->dev->cur_alt, UDC_CSR_NE_ALT); in udc_ep_enable() 1616 dev->cur_alt = 0; in udc_setup_endpoints() 2834 dev->cur_alt = AMD_GETBITS(tmp, UDC_DEVSTS_ALT); in udc_dev_isr() 2841 setup_data.request.wValue = cpu_to_le16(dev->cur_alt); in udc_dev_isr() 2845 dev->cur_alt, dev->cur_intf); in udc_dev_isr() 2870 tmp = AMD_ADDBITS(tmp, ep->dev->cur_alt, in udc_dev_isr()
|