Home
last modified time | relevance | path

Searched refs:cur_alt (Results 1 – 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/drivers/media/usb/cpia2/
Dcpia2_usb.c37 #define FRAME_SIZE_PER_DESC frame_sizes[cam->cur_alt]
477 if(alt == cam->cur_alt) in set_alternate()
480 if (cam->cur_alt != USBIF_CMDONLY) { in set_alternate()
481 DBG("Changing from alt %d to %d\n", cam->cur_alt, USBIF_CMDONLY); in set_alternate()
493 cam->old_alt = cam->cur_alt; in set_alternate()
494 cam->cur_alt = alt; in set_alternate()
Dcpia2.h386 unsigned int cur_alt; member
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
Df_obex.c33 u8 cur_alt; member
233 obex->cur_alt = alt; in obex_set_alt()
245 return obex->cur_alt; in obex_get_alt()
Df_sourcesink.c41 int cur_alt; member
731 ss->cur_alt = alt; in enable_source_sink()
751 return ss->cur_alt; in sourcesink_get_alt()
/kernel/linux/linux-5.10/drivers/usb/core/
Dhcd.c1860 struct usb_host_interface *cur_alt, in usb_hcd_alloc_bandwidth() argument
1874 if (!new_config && !cur_alt) { in usb_hcd_alloc_bandwidth()
1929 if (cur_alt && new_alt) { in usb_hcd_alloc_bandwidth()
1931 cur_alt->desc.bInterfaceNumber); in usb_hcd_alloc_bandwidth()
1945 cur_alt = usb_altnum_to_altsetting(iface, 0); in usb_hcd_alloc_bandwidth()
1946 if (!cur_alt) in usb_hcd_alloc_bandwidth()
1947 cur_alt = &iface->altsetting[0]; in usb_hcd_alloc_bandwidth()
1951 for (i = 0; i < cur_alt->desc.bNumEndpoints; i++) { in usb_hcd_alloc_bandwidth()
1953 &cur_alt->endpoint[i]); in usb_hcd_alloc_bandwidth()
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/
Damd5536udc.h566 u16 cur_alt; member
Dpch_udc.c266 u16 cur_alt; member
1000 (cfg->cur_alt << UDC_CSR_NE_ALT_SHIFT) | in pch_udc_ep_enable()
2670 dev->cfg_data.cur_alt = (dev_stat & UDC_DEVSTS_ALT_MASK) >> in pch_udc_svc_intf_interrupt()
2677 dev->setup_data.wValue = cpu_to_le16(dev->cfg_data.cur_alt); in pch_udc_svc_intf_interrupt()
2685 (dev->cfg_data.cur_alt << UDC_CSR_NE_ALT_SHIFT); in pch_udc_svc_intf_interrupt()
Dsnps_udc_core.c423 tmp = AMD_ADDBITS(tmp, ep->dev->cur_alt, UDC_CSR_NE_ALT); in udc_ep_enable()
1613 dev->cur_alt = 0; in udc_setup_endpoints()
2831 dev->cur_alt = AMD_GETBITS(tmp, UDC_DEVSTS_ALT); in udc_dev_isr()
2838 setup_data.request.wValue = cpu_to_le16(dev->cur_alt); in udc_dev_isr()
2842 dev->cur_alt, dev->cur_intf); in udc_dev_isr()
2867 tmp = AMD_ADDBITS(tmp, ep->dev->cur_alt, in udc_dev_isr()