/linux-master/drivers/usb/gadget/function/ |
H A D | f_tcm.c | 2028 unsigned int alt; member in struct:guas_setup_wq 2036 int alt = work->alt; local 2045 if (alt == USB_G_ALT_INT_BBB) 2047 else if (alt == USB_G_ALT_INT_UAS) 2062 static int tcm_set_alt(struct usb_function *f, unsigned intf, unsigned alt) argument 2066 if ((alt == USB_G_ALT_INT_BBB) || (alt == USB_G_ALT_INT_UAS)) { 2074 work->alt = alt; [all...] |
H A D | f_eem.c | 187 static int eem_set_alt(struct usb_function *f, unsigned intf, unsigned alt) argument 193 /* we know alt == 0, so this is an activation or a reset */ 194 if (alt != 0)
|
H A D | f_subset.c | 253 static int geth_set_alt(struct usb_function *f, unsigned intf, unsigned alt) argument 259 /* we know alt == 0, so this is an activation or a reset */
|
H A D | f_serial.c | 146 static int gser_set_alt(struct usb_function *f, unsigned intf, unsigned alt) argument 151 /* we know alt == 0, so this is an activation or a reset */
|
H A D | f_ncm.c | 856 static int ncm_set_alt(struct usb_function *f, unsigned intf, unsigned alt) argument 863 if (alt != 0) 878 if (alt > 1) 892 if (alt == 1) { 1391 * - configured but inactive (data alt 0) 1392 * - configured and active (data alt 1)
|
H A D | f_uac2.c | 1421 afunc_set_alt(struct usb_function *fn, unsigned intf, unsigned alt) argument 1430 /* No i/f has more than 2 alt settings */ 1431 if (alt > 1) { 1438 if (alt) { 1454 uac2->as_out_alt = alt; 1456 if (alt) 1461 uac2->as_in_alt = alt; 1463 if (alt)
|
H A D | f_loopback.c | 406 unsigned intf, unsigned alt) 411 /* we know alt is zero */ 405 loopback_set_alt(struct usb_function *f, unsigned intf, unsigned alt) argument
|
/linux-master/drivers/usb/storage/ |
H A D | uas.c | 936 struct usb_host_interface *alt; local 938 alt = uas_find_uas_alt_setting(intf); 939 if (!alt) 942 return usb_set_interface(udev, alt->desc.bInterfaceNumber, 943 alt->desc.bAlternateSetting);
|
H A D | usb.c | 721 struct usb_host_interface *alt = us->pusb_intf->cur_altsetting; local 733 res = usb_find_common_endpoints(alt, &ep_in, &ep_out, NULL, NULL); 739 res = usb_find_int_in_endpoint(alt, &ep_int);
|
/linux-master/drivers/media/usb/gspca/ |
H A D | xirlink_cit.c | 1435 struct usb_host_interface *alt; local 1439 alt = usb_altnum_to_altsetting(intf, gspca_dev->alt); 1440 if (!alt) { 1445 if (alt->desc.bNumEndpoints < 1) 1448 return le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); 2633 struct usb_host_interface *alt; local 2653 alt = &intfc->altsetting[1]; 2655 if (alt->desc.bNumEndpoints < 1) 2659 alt 2667 struct usb_host_interface *alt; local [all...] |
H A D | ov519.c | 3469 struct usb_host_interface *alt; local 3473 alt = usb_altnum_to_altsetting(intf, sd->gspca_dev.alt); 3474 if (!alt) { 3480 if (alt->desc.bNumEndpoints < 1) { 3485 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); 3600 struct usb_host_interface *alt; local 3604 alt = usb_altnum_to_altsetting(intf, sd->gspca_dev.alt); 3605 if (!alt) { [all...] |
/linux-master/drivers/usb/gadget/udc/ |
H A D | pxa27x_udc.c | 287 int alt = udc->last_alternate; local 294 if (is_match_usb_pxa(udc_usb_ep, ep, cfg, iface, alt)) 2102 * @alt: alternate setting number 2107 static void pxa27x_change_interface(struct pxa_udc *udc, int iface, int alt) argument 2111 dev_dbg(udc->dev, "interface=%d, alternate setting=%d\n", iface, alt); 2114 udc->last_alternate = alt; 2118 req.wValue = alt;
|
/linux-master/drivers/media/usb/gspca/gl860/ |
H A D | gl860-ov9655.c | 333 gspca_dev->alt = 1 + 1; 337 gspca_dev->alt = 1 + 1;
|
/linux-master/drivers/usb/typec/mux/ |
H A D | wcd939x-usbss.c | 568 if (state->alt) 569 usbss->svid = state->alt->svid;
|
/linux-master/drivers/net/usb/ |
H A D | usbnet.c | 95 struct usb_host_interface *alt = NULL; local 103 alt = intf->altsetting + tmp; 109 for (ep = 0; ep < alt->desc.bNumEndpoints; ep++) { 113 e = alt->endpoint + ep; 143 if (!alt || !in || !out) 146 if (alt->desc.bAlternateSetting != 0 || 148 tmp = usb_set_interface (dev->udev, alt->desc.bInterfaceNumber, 149 alt->desc.bAlternateSetting);
|
H A D | cdc_mbim.c | 114 static int cdc_mbim_set_ctrlalt(struct usbnet *dev, struct usb_interface *intf, u8 alt) argument 123 alt);
|
/linux-master/arch/powerpc/perf/ |
H A D | power10-pmu.c | 98 static int power10_get_alternatives(u64 event, unsigned int flags, u64 alt[]) argument 102 num_alt = isa207_get_alternatives(event, alt,
|
H A D | core-book3s.c | 1902 u64 alt[MAX_EVENT_ALTERNATIVES]; local 1921 n = ppmu->get_alternatives(ev, flags, alt); 1933 u64 alt[MAX_EVENT_ALTERNATIVES]; local 1937 n = ppmu->get_alternatives(ev, flags, alt); 1940 return alt[0];
|
/linux-master/drivers/media/usb/au0828/ |
H A D | au0828.h | 252 int alt; /* alternate */ member in struct:au0828_dev
|
/linux-master/drivers/media/usb/cx231xx/ |
H A D | cx231xx.h | 424 int alt; /* alternate */ member in struct:cx231xx_audio 506 int alt; /* alternate */ member in struct:cx231xx_video_mode 862 int cx231xx_set_alt_setting(struct cx231xx *dev, u8 index, u8 alt);
|
/linux-master/drivers/usb/atm/ |
H A D | ueagle-atm.c | 2495 unsigned int alt; local 2542 alt = altsetting[sc->modem_index]; 2544 if (UEA_CHIP_VERSION(id) != ADI930 && alt > 0) { 2545 if (alt <= 8 && 2546 usb_set_interface(usb, UEA_DS_IFACE_NO, alt) == 0) { 2547 uea_dbg(usb, "set alternate %u for 2 interface\n", alt); 2552 "2 interface, using bulk mode\n", alt);
|
/linux-master/drivers/usb/core/ |
H A D | hcd.c | 1846 struct usb_host_interface *alt = NULL; local 1869 * each interface's alt setting 0 and ask the HCD to check the bandwidth 1899 alt = usb_find_alt_setting(new_config, iface_num, 0); 1900 if (!alt) 1901 /* No alt setting 0? Pick the first setting. */ 1902 alt = first_alt; 1904 for (j = 0; j < alt->desc.bNumEndpoints; j++) { 1905 ret = hcd->driver->add_endpoint(hcd, udev, &alt->endpoint[j]); 1920 * and the device will think alt setting 0 is installed. 1924 * alternate setting if a broken device doesn't have alt [all...] |
/linux-master/kernel/kcsan/ |
H A D | kcsan_test.c | 41 #define __KCSAN_ACCESS_RW(alt) (KCSAN_ACCESS_COMPOUND | KCSAN_ACCESS_WRITE) 43 #define __KCSAN_ACCESS_RW(alt) (alt)
|
/linux-master/drivers/net/wireless/ath/ath9k/ |
H A D | hif_usb.c | 1362 struct usb_host_interface *alt; local 1367 alt = interface->cur_altsetting; 1368 if (usb_find_common_endpoints(alt, &bulk_in, &bulk_out, &int_in, &int_out) < 0 ||
|
/linux-master/drivers/media/usb/em28xx/ |
H A D | em28xx.h | 727 int alt; // alternate setting member in struct:em28xx 728 int max_pkt_size; // max packet size of the selected ep at alt
|