Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/staging/media/deprecated/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
/linux-6.1.9/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
732 ss->cur_alt = alt; in enable_source_sink()
752 return ss->cur_alt; in sourcesink_get_alt()
/linux-6.1.9/drivers/usb/core/
Dhcd.c1864 struct usb_host_interface *cur_alt, in usb_hcd_alloc_bandwidth() argument
1878 if (!new_config && !cur_alt) { in usb_hcd_alloc_bandwidth()
1933 if (cur_alt && new_alt) { in usb_hcd_alloc_bandwidth()
1935 cur_alt->desc.bInterfaceNumber); in usb_hcd_alloc_bandwidth()
1949 cur_alt = usb_altnum_to_altsetting(iface, 0); in usb_hcd_alloc_bandwidth()
1950 if (!cur_alt) in usb_hcd_alloc_bandwidth()
1951 cur_alt = &iface->altsetting[0]; in usb_hcd_alloc_bandwidth()
1955 for (i = 0; i < cur_alt->desc.bNumEndpoints; i++) { in usb_hcd_alloc_bandwidth()
1957 &cur_alt->endpoint[i]); in usb_hcd_alloc_bandwidth()
/linux-6.1.9/drivers/usb/gadget/udc/
Damd5536udc.h566 u16 cur_alt; member
Dpch_udc.c265 u16 cur_alt; member
996 (cfg->cur_alt << UDC_CSR_NE_ALT_SHIFT) | in pch_udc_ep_enable()
2565 dev->cfg_data.cur_alt = (dev_stat & UDC_DEVSTS_ALT_MASK) >> in pch_udc_svc_intf_interrupt()
2572 dev->setup_data.wValue = cpu_to_le16(dev->cfg_data.cur_alt); in pch_udc_svc_intf_interrupt()
2580 (dev->cfg_data.cur_alt << UDC_CSR_NE_ALT_SHIFT); in pch_udc_svc_intf_interrupt()
Dsnps_udc_core.c419 tmp = AMD_ADDBITS(tmp, ep->dev->cur_alt, UDC_CSR_NE_ALT); in udc_ep_enable()
1609 dev->cur_alt = 0; in udc_setup_endpoints()
2807 dev->cur_alt = AMD_GETBITS(tmp, UDC_DEVSTS_ALT); in udc_dev_isr()
2814 setup_data.request.wValue = cpu_to_le16(dev->cur_alt); in udc_dev_isr()
2818 dev->cur_alt, dev->cur_intf); in udc_dev_isr()
2843 tmp = AMD_ADDBITS(tmp, ep->dev->cur_alt, in udc_dev_isr()