Searched defs:alt (Results 1 - 25 of 61) sorted by relevance

123

/drivers/usb/gadget/
H A Df_serial.c121 static int gser_set_alt(struct usb_function *f, unsigned intf, unsigned alt) argument
126 /* we know alt == 0, so this is an activation or a reset */
H A Df_subset.c255 static int geth_set_alt(struct usb_function *f, unsigned intf, unsigned alt) argument
261 /* we know alt == 0, so this is an activation or a reset */
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) {
H A Df_eem.c184 static int eem_set_alt(struct usb_function *f, unsigned intf, unsigned alt) argument
190 /* we know alt == 0, so this is an activation or a reset */
191 if (alt != 0)
H A Df_loopback.c352 unsigned intf, unsigned alt)
357 /* we know alt is zero */
351 loopback_set_alt(struct usb_function *f, unsigned intf, unsigned alt) argument
H A Df_sourcesink.c434 unsigned intf, unsigned alt)
439 /* we know alt is zero */
433 sourcesink_set_alt(struct usb_function *f, unsigned intf, unsigned alt) argument
H A Df_uvc.c213 uvc_function_set_alt(struct usb_function *f, unsigned interface, unsigned alt) argument
219 INFO(f->config->cdev, "uvc_function_set_alt(%u, %u)\n", interface, alt);
222 if (alt)
242 return alt ? -EINVAL : 0;
245 switch (alt) {
H A Df_acm.c385 static int acm_set_alt(struct usb_function *f, unsigned intf, unsigned alt) argument
390 /* we know alt == 0, so this is an activation or a reset */
H A Df_adb.c512 unsigned intf, unsigned alt)
518 DBG(cdev, "adb_function_set_alt intf: %d alt: %d\n", intf, alt);
511 adb_function_set_alt(struct usb_function *f, unsigned intf, unsigned alt) argument
H A Df_ecm.c513 static int ecm_set_alt(struct usb_function *f, unsigned intf, unsigned alt) argument
520 if (alt != 0)
537 if (alt > 1)
561 if (alt == 1) {
630 * - configured but inactive (data alt 0)
631 * - configured and active (data alt 1)
H A Df_hid.c411 static int hidg_set_alt(struct usb_function *f, unsigned intf, unsigned alt) argument
417 VDBG(cdev, "hidg_set_alt intf:%d alt:%d\n", intf, alt);
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;
/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/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/ata/
H A Dpata_artop.c280 struct ata_port *alt = host->ports[1 ^ qc->ap->port_no]; local
290 if (alt && alt->qc_active)
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)
/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/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/usb/core/
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...]
/drivers/media/video/gspca/
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/media/video/tm6000/
H A Dtm6000-cards.c1160 struct usb_host_interface *alt,
1174 tm_ep->bInterfaceNumber = alt->desc.bInterfaceNumber;
1175 tm_ep->bAlternateSetting = alt->desc.bAlternateSetting;
1260 printk(KERN_INFO "tm6000: alt %d, interface %i, class %i\n",
1159 get_max_endpoint(struct usb_device *udev, struct usb_host_interface *alt, char *msgtype, struct usb_host_endpoint *curr_e, struct tm6000_endpoint *tm_ep) argument

Completed in 345 milliseconds

123