Searched refs:alt (Results 126 - 150 of 188) sorted by relevance

12345678

/linux-master/drivers/usb/gadget/function/
H A Df_tcm.c2028 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 Df_eem.c187 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 Df_subset.c253 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 Df_serial.c146 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 Df_ncm.c856 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 Df_uac2.c1421 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 Df_loopback.c406 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 Duas.c936 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 Dusb.c721 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 Dxirlink_cit.c1435 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 Dov519.c3469 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 Dpxa27x_udc.c287 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 Dgl860-ov9655.c333 gspca_dev->alt = 1 + 1;
337 gspca_dev->alt = 1 + 1;
/linux-master/drivers/usb/typec/mux/
H A Dwcd939x-usbss.c568 if (state->alt)
569 usbss->svid = state->alt->svid;
/linux-master/drivers/net/usb/
H A Dusbnet.c95 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 Dcdc_mbim.c114 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 Dpower10-pmu.c98 static int power10_get_alternatives(u64 event, unsigned int flags, u64 alt[]) argument
102 num_alt = isa207_get_alternatives(event, alt,
H A Dcore-book3s.c1902 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 Dau0828.h252 int alt; /* alternate */ member in struct:au0828_dev
/linux-master/drivers/media/usb/cx231xx/
H A Dcx231xx.h424 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 Dueagle-atm.c2495 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 Dhcd.c1846 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 Dkcsan_test.c41 #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 Dhif_usb.c1362 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 Dem28xx.h727 int alt; // alternate setting member in struct:em28xx
728 int max_pkt_size; // max packet size of the selected ep at alt

Completed in 248 milliseconds

12345678