Searched refs:alt (Results 1 - 25 of 80) sorted by relevance

1234

/drivers/usb/core/
H A Dmessage.c502 * configuration or interface alt setting is selected.
1021 struct usb_host_interface *alt = intf->cur_altsetting; local
1027 for (i = 0; i < alt->desc.bNumEndpoints; ++i)
1028 (void) usb_create_ep_devs(&intf->dev, &alt->endpoint[i], udev);
1035 struct usb_host_interface *alt = intf->cur_altsetting; local
1041 for (i = 0; i < alt->desc.bNumEndpoints; ++i)
1042 usb_remove_ep_devs(&alt->endpoint[i]);
1120 struct usb_host_interface *alt = intf->cur_altsetting; local
1123 for (i = 0; i < alt->desc.bNumEndpoints; ++i) {
1125 alt
1238 struct usb_host_interface *alt = intf->cur_altsetting; local
1281 struct usb_host_interface *alt; local
1443 struct usb_host_interface *alt; local
1459 struct usb_host_interface *alt; local
1482 struct usb_host_interface *alt; local
1524 struct usb_host_interface *alt; local
1800 struct usb_host_interface *alt; local
[all...]
H A Dconfig.c294 struct usb_host_interface *alt = &intfc->altsetting[j]; local
296 kfree(alt->endpoint);
297 kfree(alt->string);
310 struct usb_host_interface *alt; local
336 for ((i = 0, alt = &intfc->altsetting[0]);
338 (++i, ++alt)) {
339 if (alt->desc.bAlternateSetting == asnum) {
348 memcpy(&alt->desc, d, USB_DT_INTERFACE_SIZE);
352 alt->extra = buffer;
355 alt
[all...]
H A Dsysfs.c836 struct usb_host_interface *alt; local
840 alt = intf->cur_altsetting;
850 alt->desc.bInterfaceClass,
851 alt->desc.bInterfaceSubClass,
852 alt->desc.bInterfaceProtocol);
928 struct usb_host_interface *alt = intf->cur_altsetting; local
933 if (!alt->string && !(udev->quirks & USB_QUIRK_CONFIG_INTF_STRINGS))
934 alt->string = usb_cache_string(udev, alt->desc.iInterface);
935 if (alt
[all...]
/drivers/media/dvb/dvb-usb/
H A Dau6610.c169 struct usb_host_interface *alt; local
178 alt = usb_altnum_to_altsetting(intf, AU6610_ALTSETTING);
180 if (alt == NULL) {
181 deb_info("%s: no alt found!\n", __func__);
184 ret = usb_set_interface(d->udev, alt->desc.bInterfaceNumber,
185 alt->desc.bAlternateSetting);
H A Dgl861.c132 struct usb_host_interface *alt; local
141 alt = usb_altnum_to_altsetting(intf, 0);
143 if (alt == NULL) {
144 deb_rc("not alt found!\n");
148 ret = usb_set_interface(d->udev, alt->desc.bInterfaceNumber,
149 alt->desc.bAlternateSetting);
H A Dfriio.c420 struct usb_host_interface *alt; local
426 alt = usb_altnum_to_altsetting(intf, FRIIO_BULK_ALTSETTING);
427 if (alt == NULL) {
428 deb_rc("not alt found!\n");
432 alt->desc.bInterfaceNumber,
433 alt->desc.bAlternateSetting);
435 deb_rc("failed to set alt-setting!\n");
/drivers/media/video/cpia2/
H A Dcpia2_usb.c62 static int set_alternate(struct camera_data *cam, unsigned int alt);
63 static int configure_transfer_mode(struct camera_data *cam, unsigned int alt);
380 static int configure_transfer_mode(struct camera_data *cam, unsigned int alt) argument
402 cmd.buffer.block_data[0] = iso_regs[alt][0];
403 cmd.buffer.block_data[1] = iso_regs[alt][1];
404 cmd.buffer.block_data[2] = iso_regs[alt][2];
405 cmd.buffer.block_data[3] = iso_regs[alt][3];
427 if (alt == USBIF_BULK) {
431 } else if (alt >= USBIF_ISO_1) {
453 unsigned int alt)
452 cpia2_usb_change_streaming_alternate(struct camera_data *cam, unsigned int alt) argument
482 set_alternate(struct camera_data *cam, unsigned int alt) argument
[all...]
/drivers/media/video/cx231xx/
H A Dcx231xx-core.c50 static int alt = CX231XX_PINOUT; variable
51 module_param(alt, int, 0644);
52 MODULE_PARM_DESC(alt, "alternate setting to use for video endpoint");
478 int errCode, prev_alt = dev->video_mode.alt;
491 dev->video_mode.alt = 3;
494 dev->video_mode.alt = 2;
497 dev->video_mode.alt = 1;
500 dev->video_mode.alt = 0;
504 dev->video_mode.alt = 0;
506 cx231xx_coredbg("dev->video_mode.alt
536 cx231xx_set_alt_setting(struct cx231xx *dev, u8 index, u8 alt) argument
[all...]
/drivers/media/video/gspca/stv06xx/
H A Dstv06xx.c268 struct usb_host_interface *alt; local
273 alt = usb_altnum_to_altsetting(intf, sd->gspca_dev.alt);
274 if (!alt) {
279 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize);
303 struct usb_host_interface *alt; local
307 alt = &gspca_dev->dev->actconfig->intf_cache[0]->altsetting[1];
308 alt->endpoint[0].desc.wMaxPacketSize =
317 struct usb_host_interface *alt; local
320 alt
[all...]
H A Dstv06xx_pb0100.c214 struct usb_host_interface *alt; local
221 alt = usb_altnum_to_altsetting(intf, sd->gspca_dev.alt);
222 if (!alt)
224 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize);
/drivers/media/video/em28xx/
H A Dem28xx-core.c54 static int alt; variable
55 module_param(alt, int, 0644);
56 MODULE_PARM_DESC(alt, "alternate setting to use for video endpoint");
810 int errCode, prev_alt = dev->alt;
815 * alt = 0 is used only for control messages, so, only values
818 if (alt && alt < dev->num_alt) {
819 em28xx_coredbg("alternate forced to %d\n", dev->alt);
820 dev->alt = alt;
[all...]
H A Dem28xx-audio.c285 if ((dev->alt == 0 || dev->audio_ifnum) && dev->adev.users == 0) {
287 dev->alt = 1;
289 dev->alt = 7;
292 dev->audio_ifnum, dev->alt);
293 usb_set_interface(dev->udev, dev->audio_ifnum, dev->alt);
/drivers/input/misc/
H A Dati_remote2.c807 struct usb_host_interface *alt = interface->cur_altsetting; local
811 if (alt->desc.bInterfaceNumber)
821 ar2->ep[0] = &alt->endpoint[0].desc;
827 alt = ar2->intf[1]->cur_altsetting;
828 ar2->ep[1] = &alt->endpoint[0].desc;
874 struct usb_host_interface *alt = interface->cur_altsetting; local
876 if (alt->desc.bInterfaceNumber)
897 struct usb_host_interface *alt = interface->cur_altsetting; local
899 if (alt->desc.bInterfaceNumber)
921 struct usb_host_interface *alt local
947 struct usb_host_interface *alt = interface->cur_altsetting; local
978 struct usb_host_interface *alt = interface->cur_altsetting; local
998 struct usb_host_interface *alt = interface->cur_altsetting; local
[all...]
/drivers/usb/atm/
H A Dxusbatm.c54 struct usb_host_interface *alt; local
59 if ((intf = usb_dev->actconfig->interface[i]) && (alt = usb_altnum_to_altsetting(intf, altsetting)))
60 for (j = 0; j < alt->desc.bNumEndpoints; j++)
61 if (alt->endpoint[j].desc.bEndpointAddress == ep)
103 " rx: ep %02x padd %d alt %2d tx: ep %02x padd %d alt %2d\n",
/drivers/media/video/
H A Dov9640.c358 struct ov9640_reg_alt *alt)
363 alt->com12 = OV9640_COM12_YUV_AVG;
364 alt->com13 = OV9640_COM13_Y_DELAY_EN |
368 alt->com7 = OV9640_COM7_RGB;
369 alt->com13 = OV9640_COM13_RGB_AVG;
370 alt->com15 = OV9640_COM15_RGB_555;
373 alt->com7 = OV9640_COM7_RGB;
374 alt->com13 = OV9640_COM13_RGB_AVG;
375 alt->com15 = OV9640_COM15_RGB_565;
357 ov9640_alter_regs(enum v4l2_mbus_pixelcode code, struct ov9640_reg_alt *alt) argument
/drivers/usb/gadget/
H A Dpxa27x_udc.h220 * layer autoconf doesn't choose the usb_ep endpoint on (config, interface, alt)
225 * the udc talks on (config=3, interface=0, alt=0)
227 * the udc talks on (config=3, interface=0, alt=1)
229 * the udc talks on (config=2, interface=0, alt=0)
266 #define PXA_EP_BULK(_idx, addr, dir, config, iface, alt) \
268 config, iface, alt)
269 #define PXA_EP_ISO(_idx, addr, dir, config, iface, alt) \
271 config, iface, alt)
272 #define PXA_EP_INT(_idx, addr, dir, config, iface, alt) \
274 config, iface, alt)
[all...]
H A Df_phonet.c400 static int pn_set_alt(struct usb_function *f, unsigned intf, unsigned alt) argument
407 return (alt > 0) ? -EINVAL : 0;
414 if (alt > 1)
419 if (alt == 1) {
456 u8 alt; local
459 alt = port->usb != NULL;
461 return alt;
H A Df_obex.c194 static int obex_set_alt(struct usb_function *f, unsigned intf, unsigned alt) argument
200 if (alt != 0)
206 if (alt > 1)
226 if (alt == 1) {
/drivers/ata/
H A Dpata_sc1200.c194 struct ata_port *alt = host->ports[1 ^ qc->ap->port_no]; local
204 if (alt && alt->qc_active)
H A Dpata_sl82c105.c216 struct ata_port *alt = host->ports[1 ^ qc->ap->port_no]; local
226 if (alt && alt->qc_active)
H A Dpata_artop.c280 struct ata_port *alt = host->ports[1 ^ qc->ap->port_no]; local
290 if (alt && alt->qc_active)
/drivers/media/video/gspca/
H A Dgspca.c583 if (gspca_dev->alt == 0)
587 pr_err("set alt 0 err %d\n", ret);
613 static struct usb_host_endpoint *alt_xfer(struct usb_host_interface *alt, argument
619 for (i = 0; i < alt->desc.bNumEndpoints; i++) {
620 ep = &alt->endpoint[i];
671 u32 alt; member in struct:ep_tb_s
703 pr_err("alt %d iso endp with 0 interval\n", j);
717 ep_tb->alt = j;
723 PDEBUG(D_STREAM, "alt %d bandwidth %d",
724 ep_tb->alt, ep_t
848 int n, ret, xfer, alt, alt_idx; local
[all...]
H A Dkonica.c280 struct usb_host_interface *alt; local
284 alt = usb_altnum_to_altsetting(intf, sd->gspca_dev.alt);
285 if (!alt) {
290 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize);
314 le16_to_cpu(alt->endpoint[i].desc.wMaxPacketSize);
/drivers/usb/misc/
H A Dusbtest.c50 int alt; member in struct:usbtest_info
94 struct usb_host_interface *alt; local
104 alt = intf->altsetting + tmp;
109 for (ep = 0; ep < alt->desc.bNumEndpoints; ep++) {
112 e = alt->endpoint + ep;
147 if (alt->desc.bAlternateSetting != 0) {
149 alt->desc.bInterfaceNumber,
150 alt->desc.bAlternateSetting);
614 int i, alt, retval; local
622 alt
[all...]
/drivers/tty/
H A Dsysrq.c573 unsigned int alt; member in struct:sysrq_state
636 sysrq->alt = KEY_RESERVED;
639 sysrq->alt = code;
645 if (value == 1 && sysrq->alt != KEY_RESERVED) {
647 sysrq->alt_use = sysrq->alt;
763 * later, but we expect all such keyboards to have left alt.

Completed in 2848 milliseconds

1234