/drivers/usb/storage/ |
H A D | uas-detect.h | 17 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 D | message.c | 504 * 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 D | config.c | 303 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 D | sysfs.c | 898 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 D | vivid-rds-gen.c | 139 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 D | vivid-radio-common.c | 74 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 D | stk1160-v4l.c | 119 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 D | cpia2_usb.c | 64 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 D | cx231xx-core.c | 50 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 D | stv06xx.c | 285 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 D | stv06xx_pb0100.c | 191 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 D | ati_remote2.c | 807 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 D | xusbatm.c | 54 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 D | ov9640.c | 355 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 D | qp.c | 682 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 D | konica.c | 181 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 D | gspca.c | 581 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 D | pxa27x_udc.h | 220 * 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 D | usbtest.c | 18 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 D | em28xx-audio.c | 278 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 D | pata_sc1200.c | 193 struct ata_port *alt = host->ports[1 ^ qc->ap->port_no]; local 203 if (alt && alt->qc_active)
|
H A D | pata_sl82c105.c | 215 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 D | friio.c | 420 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 D | f_obex.c | 195 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 D | f_phonet.c | 402 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;
|