Home
last modified time | relevance | path

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

/drivers/media/usb/cpia2/
Dcpia2_usb.c50 #define FRAME_SIZE_PER_DESC frame_sizes[cam->cur_alt]
490 if(alt == cam->cur_alt) in set_alternate()
493 if (cam->cur_alt != USBIF_CMDONLY) { in set_alternate()
494 DBG("Changing from alt %d to %d\n", cam->cur_alt, USBIF_CMDONLY); in set_alternate()
506 cam->old_alt = cam->cur_alt; in set_alternate()
507 cam->cur_alt = alt; in set_alternate()
Dcpia2.h399 unsigned int cur_alt; member
/drivers/usb/gadget/function/
Df_obex.c38 u8 cur_alt; member
239 obex->cur_alt = alt; in obex_set_alt()
251 return obex->cur_alt; in obex_get_alt()
Df_sourcesink.c69 int cur_alt; member
1043 ss->cur_alt = alt; in enable_source_sink()
1066 return ss->cur_alt; in sourcesink_get_alt()
/drivers/usb/core/
Dhcd.c1880 struct usb_host_interface *cur_alt, in usb_hcd_alloc_bandwidth() argument
1894 if (!new_config && !cur_alt) { in usb_hcd_alloc_bandwidth()
1949 if (cur_alt && new_alt) { in usb_hcd_alloc_bandwidth()
1951 cur_alt->desc.bInterfaceNumber); in usb_hcd_alloc_bandwidth()
1965 cur_alt = usb_altnum_to_altsetting(iface, 0); in usb_hcd_alloc_bandwidth()
1966 if (!cur_alt) in usb_hcd_alloc_bandwidth()
1967 cur_alt = &iface->altsetting[0]; in usb_hcd_alloc_bandwidth()
1971 for (i = 0; i < cur_alt->desc.bNumEndpoints; i++) { in usb_hcd_alloc_bandwidth()
1973 &cur_alt->endpoint[i]); in usb_hcd_alloc_bandwidth()
/drivers/usb/gadget/udc/
Damd5536udc.h562 u16 cur_alt; member
Dpch_udc.c271 u16 cur_alt; member
1011 (cfg->cur_alt << UDC_CSR_NE_ALT_SHIFT) | in pch_udc_ep_enable()
2653 dev->cfg_data.cur_alt = (dev_stat & UDC_DEVSTS_ALT_MASK) >> in pch_udc_svc_intf_interrupt()
2660 dev->setup_data.wValue = cpu_to_le16(dev->cfg_data.cur_alt); in pch_udc_svc_intf_interrupt()
2668 (dev->cfg_data.cur_alt << UDC_CSR_NE_ALT_SHIFT); in pch_udc_svc_intf_interrupt()
Damd5536udc.c411 tmp = AMD_ADDBITS(tmp, ep->dev->cur_alt, UDC_CSR_NE_ALT); in udc_ep_enable()
1588 dev->cur_alt = 0; in udc_setup_endpoints()
2803 dev->cur_alt = AMD_GETBITS(tmp, UDC_DEVSTS_ALT); in udc_dev_isr()
2810 setup_data.request.wValue = cpu_to_le16(dev->cur_alt); in udc_dev_isr()
2814 dev->cur_alt, dev->cur_intf); in udc_dev_isr()
2839 tmp = AMD_ADDBITS(tmp, ep->dev->cur_alt, in udc_dev_isr()