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

1234

/drivers/usb/storage/
H A Duas-detect.h17 struct usb_host_interface *alt = &intf->altsetting[i]; local
19 if (uas_is_interface(alt))
20 return alt->desc.bAlternateSetting;
26 static int uas_find_endpoints(struct usb_host_interface *alt, argument
29 struct usb_host_endpoint *endpoint = alt->endpoint;
30 unsigned i, n_endpoints = alt->desc.bNumEndpoints;
60 int r, alt; local
63 alt = uas_find_uas_alt_setting(intf);
64 if (alt < 0)
67 r = uas_find_endpoints(&intf->altsetting[alt], ep
[all...]
/drivers/usb/core/
H A Dmessage.c504 * configuration or interface alt setting is selected.
1026 struct usb_host_interface *alt = intf->cur_altsetting; local
1032 for (i = 0; i < alt->desc.bNumEndpoints; ++i)
1033 (void) usb_create_ep_devs(&intf->dev, &alt->endpoint[i], udev);
1040 struct usb_host_interface *alt = intf->cur_altsetting; local
1046 for (i = 0; i < alt->desc.bNumEndpoints; ++i)
1047 usb_remove_ep_devs(&alt->endpoint[i]);
1125 struct usb_host_interface *alt = intf->cur_altsetting; local
1128 for (i = 0; i < alt->desc.bNumEndpoints; ++i) {
1130 alt
1249 struct usb_host_interface *alt = intf->cur_altsetting; local
1292 struct usb_host_interface *alt; local
1478 struct usb_host_interface *alt; local
1494 struct usb_host_interface *alt; local
1518 struct usb_host_interface *alt; local
1561 struct usb_host_interface *alt; local
1822 struct usb_host_interface *alt; local
[all...]
H A Dconfig.c303 struct usb_host_interface *alt = &intfc->altsetting[j]; local
305 kfree(alt->endpoint);
306 kfree(alt->string);
319 struct usb_host_interface *alt; local
345 for ((i = 0, alt = &intfc->altsetting[0]);
347 (++i, ++alt)) {
348 if (alt->desc.bAlternateSetting == asnum) {
357 memcpy(&alt->desc, d, USB_DT_INTERFACE_SIZE);
361 alt->extra = buffer;
364 alt
[all...]
H A Dsysfs.c898 struct usb_host_interface *alt; local
902 alt = ACCESS_ONCE(intf->cur_altsetting);
912 alt->desc.bInterfaceClass,
913 alt->desc.bInterfaceSubClass,
914 alt->desc.bInterfaceProtocol,
915 alt->desc.bInterfaceNumber);
983 struct usb_host_interface *alt = intf->cur_altsetting; local
988 if (!alt->string && !(udev->quirks & USB_QUIRK_CONFIG_INTF_STRINGS))
989 alt->string = usb_cache_string(udev, alt
[all...]
/drivers/media/platform/vivid/
H A Dvivid-rds-gen.c139 bool alt)
144 rds->pty = alt ? 29 : 2;
147 rds->pty = alt ? 16 : 3;
154 rds->ta = alt;
158 if (alt)
138 vivid_rds_gen_fill(struct vivid_rds_gen *rds, unsigned freq, bool alt) argument
H A Dvivid-radio-common.c74 bool alt = dev->radio_rx_rds_use_alternates; local
95 dev->radio_tx_rds_radiotext->p_cur.p_char + alt * 64,
99 vivid_rds_gen_fill(rds, dev->radio_rx_freq, alt);
/drivers/media/usb/stk1160/
H A Dstk1160-v4l.c119 int i, prev_alt = dev->alt;
130 /* stop when the selected alt setting offers enough bandwidth */
132 dev->alt = i;
139 dev->alt_max_pkt_size[dev->alt])
140 dev->alt = i;
143 stk1160_info("setting alternate %d\n", dev->alt);
145 if (dev->alt != prev_alt) {
146 stk1160_dbg("minimum isoc packet size: %u (alt=%d)\n",
147 min_pkt_size, dev->alt);
148 stk1160_dbg("setting alt
[all...]
/drivers/media/usb/cpia2/
H A Dcpia2_usb.c64 static int set_alternate(struct camera_data *cam, unsigned int alt);
65 static int configure_transfer_mode(struct camera_data *cam, unsigned int alt);
384 static int configure_transfer_mode(struct camera_data *cam, unsigned int alt) argument
406 cmd.buffer.block_data[0] = iso_regs[alt][0];
407 cmd.buffer.block_data[1] = iso_regs[alt][1];
408 cmd.buffer.block_data[2] = iso_regs[alt][2];
409 cmd.buffer.block_data[3] = iso_regs[alt][3];
431 if (alt == USBIF_BULK) {
435 } else if (alt >= USBIF_ISO_1) {
457 unsigned int alt)
456 cpia2_usb_change_streaming_alternate(struct camera_data *cam, unsigned int alt) argument
486 set_alternate(struct camera_data *cam, unsigned int alt) argument
[all...]
/drivers/media/usb/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/usb/gspca/stv06xx/
H A Dstv06xx.c285 struct usb_host_interface *alt; local
290 alt = usb_altnum_to_altsetting(intf, sd->gspca_dev.alt);
291 if (!alt) {
296 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize);
320 struct usb_host_interface *alt; local
324 alt = &gspca_dev->dev->actconfig->intf_cache[0]->altsetting[1];
325 alt->endpoint[0].desc.wMaxPacketSize =
334 struct usb_host_interface *alt; local
337 alt
[all...]
H A Dstv06xx_pb0100.c191 struct usb_host_interface *alt; local
198 alt = usb_altnum_to_altsetting(intf, sd->gspca_dev.alt);
199 if (!alt)
201 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize);
/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/i2c/soc_camera/
H A Dov9640.c355 struct ov9640_reg_alt *alt)
360 alt->com12 = OV9640_COM12_YUV_AVG;
361 alt->com13 = OV9640_COM13_Y_DELAY_EN |
365 alt->com7 = OV9640_COM7_RGB;
366 alt->com13 = OV9640_COM13_RGB_AVG;
367 alt->com15 = OV9640_COM15_RGB_555;
370 alt->com7 = OV9640_COM7_RGB;
371 alt->com13 = OV9640_COM13_RGB_AVG;
372 alt->com15 = OV9640_COM15_RGB_565;
354 ov9640_alter_regs(enum v4l2_mbus_pixelcode code, struct ov9640_reg_alt *alt) argument
/drivers/infiniband/hw/mlx4/
H A Dqp.c682 qp->alt.vid = 0xFFFF;
688 qp->alt.vid = 0xFFFF;
972 if (qp->alt.smac) {
973 mlx4_unregister_mac(dev->dev, qp->alt.smac_port, qp->alt.smac);
974 qp->alt.smac = 0;
982 if (qp->alt.vid < 0x1000) {
983 mlx4_unregister_vlan(dev->dev, qp->alt.vlan_port, qp->alt.vid);
984 qp->alt
[all...]
/drivers/media/usb/gspca/
H A Dkonica.c181 struct usb_host_interface *alt; local
185 alt = usb_altnum_to_altsetting(intf, sd->gspca_dev.alt);
186 if (!alt) {
191 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize);
209 le16_to_cpu(alt->endpoint[i].desc.wMaxPacketSize);
H A Dgspca.c581 if (gspca_dev->alt == 0)
585 pr_err("set alt 0 err %d\n", ret);
611 static struct usb_host_endpoint *alt_xfer(struct usb_host_interface *alt, argument
617 for (i = 0; i < alt->desc.bNumEndpoints; i++) {
618 ep = &alt->endpoint[i];
668 u32 alt; member in struct:ep_tb_s
701 pr_err("alt %d iso endp with 0 interval\n", j);
715 ep_tb->alt = j;
721 PDEBUG(D_STREAM, "alt %d bandwidth %d",
722 ep_tb->alt, ep_t
846 int n, ret, xfer, alt, alt_idx; local
[all...]
/drivers/usb/gadget/udc/
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...]
/drivers/usb/misc/
H A Dusbtest.c18 module_param_named(alt, override_alt, int, 0644);
19 MODULE_PARM_DESC(alt, ">= 0 to override altsetting selection");
58 int alt; member in struct:usbtest_info
105 struct usb_host_interface *alt; local
117 alt = intf->altsetting + tmp;
120 override_alt != alt->desc.bAlternateSetting)
126 for (ep = 0; ep < alt->desc.bNumEndpoints; ep++) {
129 e = alt->endpoint + ep;
176 dev->info->alt = alt
762 int i, alt, retval; local
[all...]
/drivers/media/usb/em28xx/
H A Dem28xx-audio.c278 if (dev->alt == 0 || dev->is_audio_only) {
281 dev->alt = 1;
284 dev->alt = 7;
287 * the alt setting with the largest
289 * At least dev->alt should be used instead, but
295 dev->ifnum, dev->alt);
296 usb_set_interface(dev->udev, dev->ifnum, dev->alt);
750 u8 alt; local
753 alt = 1;
755 alt
[all...]
/drivers/ata/
H A Dpata_sc1200.c193 struct ata_port *alt = host->ports[1 ^ qc->ap->port_no]; local
203 if (alt && alt->qc_active)
H A Dpata_sl82c105.c215 struct ata_port *alt = host->ports[1 ^ qc->ap->port_no]; local
225 if (alt && alt->qc_active)
/drivers/media/usb/dvb-usb/
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/gadget/function/
H A Df_obex.c195 static int obex_set_alt(struct usb_function *f, unsigned intf, unsigned alt) argument
201 if (alt != 0)
208 if (alt > 1)
230 if (alt == 1) {
239 obex->cur_alt = alt;
H A Df_phonet.c402 static int pn_set_alt(struct usb_function *f, unsigned intf, unsigned alt) argument
409 return (alt > 0) ? -EINVAL : 0;
416 if (alt > 1)
421 if (alt == 1) {
458 u8 alt; local
461 alt = port->usb != NULL;
463 return alt;

Completed in 3862 milliseconds

1234