Searched refs:alt (Results 1 - 200 of 221) sorted by relevance

12

/linux-4.1.27/arch/arm64/kernel/
H A Dalternative.c38 struct alt_instr *alt; __apply_alternatives() local
42 for (alt = region->begin; alt < region->end; alt++) { __apply_alternatives()
43 if (!cpus_have_cap(alt->cpufeature)) __apply_alternatives()
46 BUG_ON(alt->alt_len != alt->orig_len); __apply_alternatives()
50 origptr = (u8 *)&alt->orig_offset + alt->orig_offset; __apply_alternatives()
51 replptr = (u8 *)&alt->alt_offset + alt->alt_offset; __apply_alternatives()
52 memcpy(origptr, replptr, alt->alt_len); __apply_alternatives()
54 (uintptr_t)(origptr + alt->alt_len)); __apply_alternatives()
/linux-4.1.27/drivers/usb/storage/
H A Duas-detect.h17 struct usb_host_interface *alt = &intf->altsetting[i]; uas_find_uas_alt_setting() local
19 if (uas_is_interface(alt)) uas_find_uas_alt_setting()
20 return alt->desc.bAlternateSetting; uas_find_uas_alt_setting()
26 static int uas_find_endpoints(struct usb_host_interface *alt, uas_find_endpoints() argument
29 struct usb_host_endpoint *endpoint = alt->endpoint; uas_find_endpoints()
30 unsigned i, n_endpoints = alt->desc.bNumEndpoints; uas_find_endpoints()
61 int r, alt; uas_use_uas_driver() local
64 alt = uas_find_uas_alt_setting(intf); uas_use_uas_driver()
65 if (alt < 0) uas_use_uas_driver()
68 r = uas_find_endpoints(&intf->altsetting[alt], eps); uas_use_uas_driver()
H A Duas.c854 int alt; uas_switch_interface() local
856 alt = uas_find_uas_alt_setting(intf); uas_switch_interface()
857 if (alt < 0) uas_switch_interface()
858 return alt; uas_switch_interface()
861 intf->altsetting[0].desc.bInterfaceNumber, alt); uas_switch_interface()
/linux-4.1.27/arch/powerpc/perf/
H A Dpower6-pmu.c346 unsigned int alt; find_alternatives_list() local
352 alt = event_alternatives[i][j]; find_alternatives_list()
353 if (!alt || event < alt) find_alternatives_list()
355 if (event == alt) find_alternatives_list()
362 static int p6_get_alternatives(u64 event, unsigned int flags, u64 alt[]) p6_get_alternatives() argument
369 alt[0] = event; p6_get_alternatives()
381 alt[nalt++] = aevent; p6_get_alternatives()
391 alt[nalt++] = ((event ^ 0x6) & ~PM_PMC_MSKS) | p6_get_alternatives()
396 alt[nalt++] = ((event ^ 0x2) & ~PM_PMC_MSKS) | p6_get_alternatives()
413 switch (alt[i]) { p6_get_alternatives()
415 alt[j++] = 0x600005; /* PM_RUN_CYC */ p6_get_alternatives()
419 alt[j++] = 0x1e; /* PM_CYC */ p6_get_alternatives()
422 alt[j++] = 0x500009; /* PM_RUN_INST_CMPL */ p6_get_alternatives()
426 alt[j++] = 2; /* PM_INST_CMPL */ p6_get_alternatives()
429 alt[j++] = 0x4000f4; /* PM_RUN_PURR */ p6_get_alternatives()
432 alt[j++] = 0x10000e; /* PM_PURR */ p6_get_alternatives()
443 if (!p6_limited_pmc_event(alt[i])) { p6_get_alternatives()
444 alt[j] = alt[i]; p6_get_alternatives()
453 if (p6_limited_pmc_event(alt[i])) { p6_get_alternatives()
454 alt[j] = alt[i]; p6_get_alternatives()
H A Dpower5+-pmu.c276 static int power5p_get_alternatives(u64 event, unsigned int flags, u64 alt[]) power5p_get_alternatives() argument
282 alt[0] = event; power5p_get_alternatives()
290 alt[nalt++] = ae; power5p_get_alternatives()
296 alt[nalt++] = ae; power5p_get_alternatives()
312 switch (alt[i]) { power5p_get_alternatives()
314 alt[j++] = 0x600005; /* PM_RUN_CYC */ power5p_get_alternatives()
318 alt[j++] = 0xf; power5p_get_alternatives()
321 alt[j++] = 0x500009; /* PM_RUN_INST_CMPL */ power5p_get_alternatives()
325 alt[j++] = 0x100009; /* PM_INST_CMPL */ power5p_get_alternatives()
326 alt[j++] = 0x200009; power5p_get_alternatives()
337 if (!power5p_limited_pmc_event(alt[i])) { power5p_get_alternatives()
338 alt[j] = alt[i]; power5p_get_alternatives()
347 if (power5p_limited_pmc_event(alt[i])) { power5p_get_alternatives()
348 alt[j] = alt[i]; power5p_get_alternatives()
H A Dpower7-pmu.c160 static int power7_get_alternatives(u64 event, unsigned int flags, u64 alt[]) power7_get_alternatives() argument
165 alt[0] = event; power7_get_alternatives()
172 alt[nalt++] = ae; power7_get_alternatives()
177 alt[nalt++] = ae; power7_get_alternatives()
190 switch (alt[i]) { power7_get_alternatives()
192 alt[j++] = 0x600f4; /* PM_RUN_CYC */ power7_get_alternatives()
195 alt[j++] = 0x1e; power7_get_alternatives()
198 alt[j++] = 0x500fa; /* PM_RUN_INST_CMPL */ power7_get_alternatives()
201 alt[j++] = 0x2; /* PM_PPC_CMPL */ power7_get_alternatives()
H A Dpower8-pmu.c556 static int power8_get_alternatives(u64 event, unsigned int flags, u64 alt[]) power8_get_alternatives() argument
561 alt[num_alt++] = event; power8_get_alternatives()
565 /* Filter out the original event, it's already in alt[0] */ power8_get_alternatives()
569 alt[num_alt++] = alt_event; power8_get_alternatives()
580 switch (alt[i]) { power8_get_alternatives()
582 alt[j++] = 0x600f4; /* PM_RUN_CYC */ power8_get_alternatives()
585 alt[j++] = 0x1e; power8_get_alternatives()
588 alt[j++] = 0x500fa; /* PM_RUN_INST_CMPL */ power8_get_alternatives()
591 alt[j++] = 0x2; /* PM_PPC_CMPL */ power8_get_alternatives()
H A Dpower4-pmu.c326 static int p4_get_alternatives(u64 event, unsigned int flags, u64 alt[]) p4_get_alternatives() argument
330 alt[0] = event; p4_get_alternatives()
335 alt[1] = event ^ (0x8003 ^ 0x0224); p4_get_alternatives()
341 alt[1] = event ^ (0x0c13 ^ 0x0c23); p4_get_alternatives()
350 alt[na++] = ppc_inst_cmpl[j]; p4_get_alternatives()
394 /* map alt ISU1/IFU codes: 6->2, 8->3 */ p4_compute_mmcr()
H A Dmpc7450-pmu.c226 static int mpc7450_get_alternatives(u64 event, unsigned int flags, u64 alt[]) mpc7450_get_alternatives() argument
231 alt[0] = event; mpc7450_get_alternatives()
238 alt[nalt++] = ae; mpc7450_get_alternatives()
H A Dppc970-pmu.c246 static int p970_get_alternatives(u64 event, unsigned int flags, u64 alt[]) p970_get_alternatives() argument
248 alt[0] = event; p970_get_alternatives()
252 alt[1] = event ^ 0x1000; p970_get_alternatives()
H A Dpower5-pmu.c272 static int power5_get_alternatives(u64 event, unsigned int flags, u64 alt[]) power5_get_alternatives() argument
277 alt[0] = event; power5_get_alternatives()
284 alt[nalt++] = ae; power5_get_alternatives()
289 alt[nalt++] = ae; power5_get_alternatives()
H A Dcore-book3s.c1651 u64 alt[MAX_EVENT_ALTERNATIVES]; can_go_on_limited_pmc() local
1670 n = ppmu->get_alternatives(ev, flags, alt); can_go_on_limited_pmc()
1682 u64 alt[MAX_EVENT_ALTERNATIVES]; normal_pmc_alternative() local
1686 n = ppmu->get_alternatives(ev, flags, alt); normal_pmc_alternative()
1689 return alt[0]; normal_pmc_alternative()
/linux-4.1.27/arch/x86/include/asm/
H A Dalternative-asm.h21 .macro altinstruction_entry orig alt feature orig_len alt_len pad_len
23 .long \alt - .
H A Dvdso.h19 unsigned long alt, alt_len; member in struct:vdso_image
/linux-4.1.27/sound/usb/
H A Dhelper.h22 #define get_endpoint(alt,ep) (&(alt)->endpoint[ep].desc)
H A Dquirks.c1166 /* First switch to alt set 0, otherwise the mode switch cmd snd_usb_select_mode_quirk()
/linux-4.1.27/arch/powerpc/lib/
H A Dfeature-fixups-test.S252 /* Basic alt section test, default case should be taken */ \
263 /* Basic alt section test, else case should be taken */ \
328 /* Feature section with nested alt section, default taken */ \
340 /* Feature section with nested alt section, else taken */ \
352 /* Feature section with nested alt section, all nop'ed */ \
364 /* Nested alt sections, default with inner default taken */ \
384 /* Nested alt sections, default with inner else taken */ \
404 /* Nested alt sections, else with inner default taken */ \
424 /* Nested alt sections, else with inner else taken */ \
444 /* Nested alt sections, else can have large else case */ \
525 /* Basic alt section test, default case should be taken */ \
536 /* Basic alt section test, else case should be taken */ \
603 /* Feature section with nested alt section, default taken */ \
615 /* Feature section with nested alt section, else taken */ \
627 /* Feature section with nested alt section, all nop'ed */ \
639 /* Nested alt sections, default with inner default taken */ \
659 /* Nested alt sections, default with inner else taken */ \
679 /* Nested alt sections, else with inner default taken */ \
699 /* Nested alt sections, else with inner else taken */ \
719 /* Nested alt sections, else can have large else case */ \
/linux-4.1.27/drivers/media/usb/stk1160/
H A Dstk1160-v4l.c115 int i, prev_alt = dev->alt; stk1160_set_alternate()
126 /* stop when the selected alt setting offers enough bandwidth */ stk1160_set_alternate()
128 dev->alt = i; stk1160_set_alternate()
135 dev->alt_max_pkt_size[dev->alt]) stk1160_set_alternate()
136 dev->alt = i; stk1160_set_alternate()
139 stk1160_info("setting alternate %d\n", dev->alt); stk1160_set_alternate()
141 if (dev->alt != prev_alt) { stk1160_set_alternate()
142 stk1160_dbg("minimum isoc packet size: %u (alt=%d)\n", stk1160_set_alternate()
143 min_pkt_size, dev->alt); stk1160_set_alternate()
144 stk1160_dbg("setting alt %d with wMaxPacketSize=%u\n", stk1160_set_alternate()
145 dev->alt, dev->alt_max_pkt_size[dev->alt]); stk1160_set_alternate()
146 usb_set_interface(dev->udev, 0, dev->alt); stk1160_set_alternate()
149 new_pkt_size = dev->max_pkt_size != dev->alt_max_pkt_size[dev->alt]; stk1160_set_alternate()
150 dev->max_pkt_size = dev->alt_max_pkt_size[dev->alt]; stk1160_set_alternate()
226 dev->alt = 0; stk1160_stop_hw()
227 stk1160_info("setting alternate %d\n", dev->alt); stk1160_stop_hw()
H A Dstk1160.h141 int alt; member in struct:stk1160
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
H A Dantenna.c43 * bb_ant_div_[alt/main]_gaintb - 0 -> Antenna config Alt/Main uses gaintable 0
50 * bb_ant_div_[alt/main]_lnaconf - Alt/Main LNA diversity/combining input config.
196 /* set alt to the conf with maximun ratio */ ath_ant_set_alt_ratio()
199 /* first alt*/ ath_ant_set_alt_ratio()
202 /* Set alt LNA1 or LNA2*/ ath_ant_set_alt_ratio()
208 /* Set alt to A+B or A-B */ ath_ant_set_alt_ratio()
213 /* Set alt LNA1 or LNA2 */ ath_ant_set_alt_ratio()
219 /* Set alt to A+B or A-B */ ath_ant_set_alt_ratio()
223 /* first alt */ ath_ant_set_alt_ratio()
226 /* Set alt LNA1 or LNA2 */ ath_ant_set_alt_ratio()
232 /* Set alt to A+B or A-B */ ath_ant_set_alt_ratio()
235 /* second alt */ ath_ant_set_alt_ratio()
238 /* Set alt LNA1 or LNA2 */ ath_ant_set_alt_ratio()
244 /* Set alt to A+B or A-B */ ath_ant_set_alt_ratio()
250 /* Set alt LNA1 or LNA2 */ ath_ant_set_alt_ratio()
256 /* Set alt to A+B or A-B */ ath_ant_set_alt_ratio()
269 /* set alt to main, and alt to first conf */ ath_select_ant_div_from_quick_scan()
274 /* set alt to main, and alt to first conf */ ath_select_ant_div_from_quick_scan()
385 /* Adjust the fast_div_bias based on main and alt lna conf */ ath_ant_div_conf_fast_divbias()
674 * Switch main and alt LNA. ath_ant_try_switch()
687 Set alt to another LNA. ath_ant_try_switch()
818 /* Set alt to another LNA */ ath_ant_comb_scan()
/linux-4.1.27/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) configure_transfer_mode() argument
406 cmd.buffer.block_data[0] = iso_regs[alt][0]; configure_transfer_mode()
407 cmd.buffer.block_data[1] = iso_regs[alt][1]; configure_transfer_mode()
408 cmd.buffer.block_data[2] = iso_regs[alt][2]; configure_transfer_mode()
409 cmd.buffer.block_data[3] = iso_regs[alt][3]; configure_transfer_mode()
431 if (alt == USBIF_BULK) { configure_transfer_mode()
435 } else if (alt >= USBIF_ISO_1) { configure_transfer_mode()
457 unsigned int alt) cpia2_usb_change_streaming_alternate()
461 if(alt < USBIF_ISO_1 || alt > USBIF_ISO_6) cpia2_usb_change_streaming_alternate()
464 if(alt == cam->params.camera_state.stream_mode) cpia2_usb_change_streaming_alternate()
469 configure_transfer_mode(cam, alt); cpia2_usb_change_streaming_alternate()
471 cam->params.camera_state.stream_mode = alt; cpia2_usb_change_streaming_alternate()
486 static int set_alternate(struct camera_data *cam, unsigned int alt) set_alternate() argument
490 if(alt == cam->cur_alt) set_alternate()
494 DBG("Changing from alt %d to %d\n", cam->cur_alt, USBIF_CMDONLY); set_alternate()
499 if (alt != USBIF_CMDONLY) { set_alternate()
500 DBG("Changing from alt %d to %d\n", USBIF_CMDONLY, alt); set_alternate()
501 ret = usb_set_interface(cam->dev, cam->iface, alt); set_alternate()
507 cam->cur_alt = alt; set_alternate()
456 cpia2_usb_change_streaming_alternate(struct camera_data *cam, unsigned int alt) cpia2_usb_change_streaming_alternate() argument
H A Dcpia2.h469 unsigned int alt);
/linux-4.1.27/drivers/usb/core/
H A Dmessage.c504 * configuration or interface alt setting is selected.
1026 struct usb_host_interface *alt = intf->cur_altsetting; create_intf_ep_devs() local
1032 for (i = 0; i < alt->desc.bNumEndpoints; ++i) create_intf_ep_devs()
1033 (void) usb_create_ep_devs(&intf->dev, &alt->endpoint[i], udev); create_intf_ep_devs()
1040 struct usb_host_interface *alt = intf->cur_altsetting; remove_intf_ep_devs() local
1046 for (i = 0; i < alt->desc.bNumEndpoints; ++i) remove_intf_ep_devs()
1047 usb_remove_ep_devs(&alt->endpoint[i]); remove_intf_ep_devs()
1125 struct usb_host_interface *alt = intf->cur_altsetting; usb_disable_interface() local
1128 for (i = 0; i < alt->desc.bNumEndpoints; ++i) { usb_disable_interface()
1130 alt->endpoint[i].desc.bEndpointAddress, usb_disable_interface()
1249 struct usb_host_interface *alt = intf->cur_altsetting; usb_enable_interface() local
1252 for (i = 0; i < alt->desc.bNumEndpoints; ++i) usb_enable_interface()
1253 usb_enable_endpoint(dev, &alt->endpoint[i], reset_eps); usb_enable_interface()
1292 struct usb_host_interface *alt; usb_set_interface() local
1310 alt = usb_altnum_to_altsetting(iface, alternate); usb_set_interface()
1311 if (!alt) { usb_set_interface()
1318 * Remove the current alt setting and add the new alt setting. usb_set_interface()
1321 /* Disable LPM, and re-enable it once the new alt setting is installed, usb_set_interface()
1329 /* Changing alt-setting also frees any allocated streams */ usb_set_interface()
1333 ret = usb_hcd_alloc_bandwidth(dev, NULL, iface->cur_altsetting, alt); usb_set_interface()
1354 "manual set_interface for iface %d, alt %d\n", usb_set_interface()
1358 /* Re-instate the old alt setting */ usb_set_interface()
1359 usb_hcd_alloc_bandwidth(dev, NULL, alt, iface->cur_altsetting); usb_set_interface()
1373 if (iface->cur_altsetting != alt) { usb_set_interface()
1379 iface->cur_altsetting = alt; usb_set_interface()
1392 for (i = 0; i < alt->desc.bNumEndpoints; i++) { usb_set_interface()
1393 epaddr = alt->endpoint[i].desc.bEndpointAddress; usb_set_interface()
1478 struct usb_host_interface *alt; usb_reset_configuration() local
1480 alt = usb_altnum_to_altsetting(intf, 0); usb_reset_configuration()
1481 if (!alt) usb_reset_configuration()
1482 alt = &intf->altsetting[0]; usb_reset_configuration()
1483 if (alt != intf->cur_altsetting) usb_reset_configuration()
1485 intf->cur_altsetting, alt); usb_reset_configuration()
1494 struct usb_host_interface *alt; usb_reset_configuration() local
1496 alt = usb_altnum_to_altsetting(intf, 0); usb_reset_configuration()
1497 if (!alt) usb_reset_configuration()
1498 alt = &intf->altsetting[0]; usb_reset_configuration()
1499 if (alt != intf->cur_altsetting) usb_reset_configuration()
1501 alt, intf->cur_altsetting); usb_reset_configuration()
1518 struct usb_host_interface *alt; usb_reset_configuration() local
1520 alt = usb_altnum_to_altsetting(intf, 0); usb_reset_configuration()
1527 if (!alt) usb_reset_configuration()
1528 alt = &intf->altsetting[0]; usb_reset_configuration()
1530 if (alt != intf->cur_altsetting) { usb_reset_configuration()
1534 intf->cur_altsetting = alt; usb_reset_configuration()
1562 struct usb_host_interface *alt; usb_if_uevent() local
1566 alt = intf->cur_altsetting; usb_if_uevent()
1569 alt->desc.bInterfaceClass, usb_if_uevent()
1570 alt->desc.bInterfaceSubClass, usb_if_uevent()
1571 alt->desc.bInterfaceProtocol)) usb_if_uevent()
1583 alt->desc.bInterfaceClass, usb_if_uevent()
1584 alt->desc.bInterfaceSubClass, usb_if_uevent()
1585 alt->desc.bInterfaceProtocol, usb_if_uevent()
1586 alt->desc.bInterfaceNumber)) usb_if_uevent()
1804 struct usb_host_interface *alt; usb_set_configuration() local
1812 alt = usb_altnum_to_altsetting(intf, 0); usb_set_configuration()
1819 if (!alt) usb_set_configuration()
1820 alt = &intf->altsetting[0]; usb_set_configuration()
1823 find_iad(dev, cp, alt->desc.bInterfaceNumber); usb_set_configuration()
1824 intf->cur_altsetting = alt; usb_set_configuration()
1838 configuration, alt->desc.bInterfaceNumber); usb_set_configuration()
H A Dconfig.c305 struct usb_host_interface *alt = &intfc->altsetting[j]; usb_release_interface_cache() local
307 kfree(alt->endpoint); usb_release_interface_cache()
308 kfree(alt->string); usb_release_interface_cache()
321 struct usb_host_interface *alt; usb_parse_interface() local
347 for ((i = 0, alt = &intfc->altsetting[0]); usb_parse_interface()
349 (++i, ++alt)) { usb_parse_interface()
350 if (alt->desc.bAlternateSetting == asnum) { usb_parse_interface()
359 memcpy(&alt->desc, d, USB_DT_INTERFACE_SIZE); usb_parse_interface()
363 alt->extra = buffer; usb_parse_interface()
366 alt->extralen = i; usb_parse_interface()
374 num_ep = num_ep_orig = alt->desc.bNumEndpoints; usb_parse_interface()
375 alt->desc.bNumEndpoints = 0; /* Use as a counter */ usb_parse_interface()
386 alt->endpoint = kzalloc(len, GFP_KERNEL); usb_parse_interface()
387 if (!alt->endpoint) usb_parse_interface()
397 retval = usb_parse_endpoint(ddev, cfgno, inum, asnum, alt, usb_parse_interface()
H A Dsysfs.c893 struct usb_host_interface *alt; modalias_show() local
897 alt = ACCESS_ONCE(intf->cur_altsetting); modalias_show()
907 alt->desc.bInterfaceClass, modalias_show()
908 alt->desc.bInterfaceSubClass, modalias_show()
909 alt->desc.bInterfaceProtocol, modalias_show()
910 alt->desc.bInterfaceNumber); modalias_show()
978 struct usb_host_interface *alt = intf->cur_altsetting; usb_create_sysfs_intf_files() local
983 if (!alt->string && !(udev->quirks & USB_QUIRK_CONFIG_INTF_STRINGS)) usb_create_sysfs_intf_files()
984 alt->string = usb_cache_string(udev, alt->desc.iInterface); usb_create_sysfs_intf_files()
985 if (alt->string && device_create_file(&intf->dev, &dev_attr_interface)) usb_create_sysfs_intf_files()
H A Dhcd.c1884 struct usb_host_interface *alt = NULL; usb_hcd_alloc_bandwidth() local
1907 * each interface's alt setting 0 and ask the HCD to check the bandwidth usb_hcd_alloc_bandwidth()
1937 alt = usb_find_alt_setting(new_config, iface_num, 0); usb_hcd_alloc_bandwidth()
1938 if (!alt) usb_hcd_alloc_bandwidth()
1939 /* No alt setting 0? Pick the first setting. */ usb_hcd_alloc_bandwidth()
1940 alt = first_alt; usb_hcd_alloc_bandwidth()
1942 for (j = 0; j < alt->desc.bNumEndpoints; j++) { usb_hcd_alloc_bandwidth()
1943 ret = hcd->driver->add_endpoint(hcd, udev, &alt->endpoint[j]); usb_hcd_alloc_bandwidth()
1958 * and the device will think alt setting 0 is installed. usb_hcd_alloc_bandwidth()
1962 * alternate setting if a broken device doesn't have alt usb_hcd_alloc_bandwidth()
1970 /* Drop all the endpoints in the current alt setting */ usb_hcd_alloc_bandwidth()
1977 /* Add all the endpoints in the new alt setting */ usb_hcd_alloc_bandwidth()
H A Dusb.c86 * Search the configuration's interface cache for the given alt setting.
111 printk(KERN_DEBUG "Did not find alt setting %u for intf %u, " usb_find_alt_setting()
H A Durb.c276 * when the alt setting is selected. If there is not enough bus bandwidth, the
277 * configuration/alt setting request will fail. Therefore, submissions to
H A Ddriver.c330 * If we need to install alt setting 0 before probe, or another alt usb_probe_interface()
/linux-4.1.27/drivers/input/misc/
H A Dati_remote2.c807 struct usb_host_interface *alt = interface->cur_altsetting; ati_remote2_probe() local
811 if (alt->desc.bInterfaceNumber) ati_remote2_probe()
821 if (alt->desc.bNumEndpoints < 1 || !alt->endpoint) { ati_remote2_probe()
828 ar2->ep[0] = &alt->endpoint[0].desc; ati_remote2_probe()
844 alt = ar2->intf[1]->cur_altsetting; ati_remote2_probe()
845 if (alt->desc.bNumEndpoints < 1 || !alt->endpoint) { ati_remote2_probe()
851 ar2->ep[1] = &alt->endpoint[0].desc; ati_remote2_probe()
898 struct usb_host_interface *alt = interface->cur_altsetting; ati_remote2_disconnect() local
900 if (alt->desc.bInterfaceNumber) ati_remote2_disconnect()
921 struct usb_host_interface *alt = interface->cur_altsetting; ati_remote2_suspend() local
923 if (alt->desc.bInterfaceNumber) ati_remote2_suspend()
945 struct usb_host_interface *alt = interface->cur_altsetting; ati_remote2_resume() local
948 if (alt->desc.bInterfaceNumber) ati_remote2_resume()
971 struct usb_host_interface *alt = interface->cur_altsetting; ati_remote2_reset_resume() local
974 if (alt->desc.bInterfaceNumber) ati_remote2_reset_resume()
1002 struct usb_host_interface *alt = interface->cur_altsetting; ati_remote2_pre_reset() local
1004 if (alt->desc.bInterfaceNumber) ati_remote2_pre_reset()
1022 struct usb_host_interface *alt = interface->cur_altsetting; ati_remote2_post_reset() local
1025 if (alt->desc.bInterfaceNumber) ati_remote2_post_reset()
H A Dims-pcu.c1658 struct usb_host_interface *alt; ims_pcu_parse_cdc_data() local
1669 alt = pcu->ctrl_intf->cur_altsetting; ims_pcu_parse_cdc_data()
1670 pcu->ep_ctrl = &alt->endpoint[0].desc; ims_pcu_parse_cdc_data()
1678 alt = pcu->data_intf->cur_altsetting; ims_pcu_parse_cdc_data()
1679 if (alt->desc.bNumEndpoints != 2) { ims_pcu_parse_cdc_data()
1682 alt->desc.bNumEndpoints); ims_pcu_parse_cdc_data()
1686 pcu->ep_out = &alt->endpoint[0].desc; ims_pcu_parse_cdc_data()
1701 pcu->ep_in = &alt->endpoint[1].desc; ims_pcu_parse_cdc_data()
2061 struct usb_host_interface *alt = intf->cur_altsetting; ims_pcu_disconnect() local
2069 if (alt->desc.bInterfaceClass != USB_CLASS_COMM) ims_pcu_disconnect()
2090 struct usb_host_interface *alt = intf->cur_altsetting; ims_pcu_suspend() local
2092 if (alt->desc.bInterfaceClass == USB_CLASS_COMM) ims_pcu_suspend()
2101 struct usb_host_interface *alt = intf->cur_altsetting; ims_pcu_resume() local
2104 if (alt->desc.bInterfaceClass == USB_CLASS_COMM) { ims_pcu_resume()
/linux-4.1.27/drivers/media/usb/cx231xx/
H A Dcx231xx-core.c49 static int alt = CX231XX_PINOUT; variable
50 module_param(alt, int, 0644);
51 MODULE_PARM_DESC(alt, "alternate setting to use for video endpoint");
469 int errCode, prev_alt = dev->video_mode.alt; cx231xx_set_video_alternate()
482 dev->video_mode.alt = 3; cx231xx_set_video_alternate()
485 dev->video_mode.alt = 2; cx231xx_set_video_alternate()
488 dev->video_mode.alt = 1; cx231xx_set_video_alternate()
491 dev->video_mode.alt = 0; cx231xx_set_video_alternate()
495 dev->video_mode.alt = 0; cx231xx_set_video_alternate()
497 cx231xx_coredbg("dev->video_mode.alt= %d\n", dev->video_mode.alt); cx231xx_set_video_alternate()
504 if (dev->video_mode.alt != prev_alt) { cx231xx_set_video_alternate()
505 cx231xx_coredbg("minimum isoc packet size: %u (alt=%d)\n", cx231xx_set_video_alternate()
506 min_pkt_size, dev->video_mode.alt); cx231xx_set_video_alternate()
510 dev->video_mode.alt_max_pkt_size[dev->video_mode.alt]; cx231xx_set_video_alternate()
512 dev->video_mode.alt, cx231xx_set_video_alternate()
516 dev->video_mode.alt); cx231xx_set_video_alternate()
519 "cannot change alt number to %d (error=%i)\n", cx231xx_set_video_alternate()
520 dev->video_mode.alt, errCode); cx231xx_set_video_alternate()
527 int cx231xx_set_alt_setting(struct cx231xx *dev, u8 index, u8 alt) cx231xx_set_alt_setting() argument
538 dev->ts1_mode.alt = alt; cx231xx_set_alt_setting()
541 dev->ts1_mode.alt_max_pkt_size[dev->ts1_mode.alt]; cx231xx_set_alt_setting()
552 dev->adev.alt = alt; cx231xx_set_alt_setting()
555 dev->adev.alt_max_pkt_size[dev->adev.alt]; cx231xx_set_alt_setting()
561 dev->video_mode.alt = alt; cx231xx_set_alt_setting()
565 alt]; cx231xx_set_alt_setting()
573 dev->vbi_mode.alt = alt; cx231xx_set_alt_setting()
576 dev->vbi_mode.alt_max_pkt_size[dev->vbi_mode.alt]; cx231xx_set_alt_setting()
582 dev->sliced_cc_mode.alt = alt; cx231xx_set_alt_setting()
587 alt]; cx231xx_set_alt_setting()
593 if (alt > 0 && max_pkt_size == 0) { cx231xx_set_alt_setting()
595 "can't change interface %d alt no. to %d: Max. Pkt size = 0\n", cx231xx_set_alt_setting()
596 usb_interface_index, alt); cx231xx_set_alt_setting()
604 "Interface = %d\n", alt, max_pkt_size, cx231xx_set_alt_setting()
608 status = usb_set_interface(dev->udev, usb_interface_index, alt); cx231xx_set_alt_setting()
611 "can't change interface %d alt no. to %d (err=%i)\n", cx231xx_set_alt_setting()
612 usb_interface_index, alt, status); cx231xx_set_alt_setting()
H A Dcx231xx.h429 int alt; /* alternate */ member in struct:cx231xx_audio
530 int alt; /* alternate */ member in struct:cx231xx_video_mode
879 int cx231xx_set_alt_setting(struct cx231xx *dev, u8 index, u8 alt);
H A Dcx231xx-cards.c1278 need set alt here.*/ cx231xx_init_dev()
1558 dev->video_mode.alt = -1; cx231xx_usb_probe()
/linux-4.1.27/drivers/media/platform/vivid/
H A Dvivid-rds-gen.c139 bool alt) vivid_rds_gen_fill()
144 rds->pty = alt ? 29 : 2; vivid_rds_gen_fill()
147 rds->pty = alt ? 16 : 3; vivid_rds_gen_fill()
154 rds->ta = alt; vivid_rds_gen_fill()
158 if (alt) vivid_rds_gen_fill()
138 vivid_rds_gen_fill(struct vivid_rds_gen *rds, unsigned freq, bool alt) vivid_rds_gen_fill() argument
H A Dvivid-radio-common.c74 bool alt = dev->radio_rx_rds_use_alternates; vivid_radio_rds_init() local
95 dev->radio_tx_rds_radiotext->p_cur.p_char + alt * 64, vivid_radio_rds_init()
99 vivid_rds_gen_fill(rds, dev->radio_rx_freq, alt); vivid_radio_rds_init()
/linux-4.1.27/drivers/usb/atm/
H A Dxusbatm.c54 struct usb_host_interface *alt; xusbatm_find_intf() local
59 if ((intf = usb_dev->actconfig->interface[i]) && (alt = usb_altnum_to_altsetting(intf, altsetting))) xusbatm_find_intf()
60 for (j = 0; j < alt->desc.bNumEndpoints; j++) xusbatm_find_intf()
61 if (alt->endpoint[j].desc.bEndpointAddress == ep) xusbatm_find_intf()
103 " rx: ep %02x padd %d alt %2d tx: ep %02x padd %d alt %2d\n", xusbatm_bind()
H A Dueagle-atm.c2540 unsigned int alt; uea_bind() local
2589 alt = altsetting[sc->modem_index]; uea_bind()
2591 if (UEA_CHIP_VERSION(id) != ADI930 && alt > 0) { uea_bind()
2592 if (alt <= 8 && uea_bind()
2593 usb_set_interface(usb, UEA_DS_IFACE_NO, alt) == 0) { uea_bind()
2594 uea_dbg(usb, "set alternate %u for 2 interface\n", alt); uea_bind()
2599 "2 interface, using bulk mode\n", alt); uea_bind()
/linux-4.1.27/drivers/media/usb/gspca/
H A Dgspca.c581 if (gspca_dev->alt == 0) gspca_set_alt0()
585 pr_err("set alt 0 err %d\n", ret); gspca_set_alt0()
611 static struct usb_host_endpoint *alt_xfer(struct usb_host_interface *alt, alt_xfer() argument
617 for (i = 0; i < alt->desc.bNumEndpoints; i++) { alt_xfer()
618 ep = &alt->endpoint[i]; alt_xfer()
668 u32 alt; member in struct:ep_tb_s
701 pr_err("alt %d iso endp with 0 interval\n", j); build_isoc_ep_tb()
715 ep_tb->alt = j; build_isoc_ep_tb()
721 PDEBUG(D_STREAM, "alt %d bandwidth %d", build_isoc_ep_tb()
722 ep_tb->alt, ep_tb->bandwidth); build_isoc_ep_tb()
733 * and has more than 1 alt setting build_isoc_ep_tb()
734 * then skip the highest alt setting to spare bandwidth for the mic build_isoc_ep_tb()
740 PDEBUG(D_STREAM, "dev has usb audio, skipping highest alt"); build_isoc_ep_tb()
846 int n, ret, xfer, alt, alt_idx; gspca_init_transfer() local
858 gspca_dev->alt = gspca_dev->cam.bulk ? intf->num_altsetting : 0; gspca_init_transfer()
868 if (gspca_dev->alt != 0) { gspca_init_transfer()
869 gspca_dev->alt--; /* (previous version compatibility) */ gspca_init_transfer()
870 ep = alt_xfer(&intf->altsetting[gspca_dev->alt], xfer, gspca_init_transfer()
873 pr_err("bad altsetting %d\n", gspca_dev->alt); gspca_init_transfer()
876 ep_tb[0].alt = gspca_dev->alt; gspca_init_transfer()
892 gspca_dev->alt = ep_tb[--alt_idx].alt; gspca_init_transfer()
893 alt = -1; gspca_init_transfer()
895 if (alt != gspca_dev->alt) { gspca_init_transfer()
896 alt = gspca_dev->alt; gspca_init_transfer()
900 alt); gspca_init_transfer()
904 pr_err("set alt %d err %d\n", alt, ret); gspca_init_transfer()
910 PDEBUG(D_STREAM, "init transfer alt %d", alt); gspca_init_transfer()
912 alt_xfer(&intf->altsetting[alt], xfer, gspca_init_transfer()
954 pr_err("usb_submit_urb alt %d err %d\n", gspca_init_transfer()
955 gspca_dev->alt, ret); gspca_init_transfer()
962 PERR("alt %d - bandwidth not wide enough, trying again", alt); gspca_init_transfer()
974 gspca_dev->alt = ep_tb[--alt_idx].alt; gspca_init_transfer()
H A Dkonica.c181 struct usb_host_interface *alt; sd_start() local
185 alt = usb_altnum_to_altsetting(intf, sd->gspca_dev.alt); sd_start()
186 if (!alt) { sd_start()
191 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); sd_start()
209 le16_to_cpu(alt->endpoint[i].desc.wMaxPacketSize); sd_start()
H A Dstk014.c272 gspca_dev->alt); sd_start()
275 gspca_dev->iface, gspca_dev->alt); sd_start()
297 PDEBUG(D_STREAM, "camera started alt: 0x%02x", sd_start()
298 gspca_dev->alt); sd_start()
H A Dgspca.h109 cam_v_op stopN; /* called on stream off - main alt */
110 cam_v_op stop0; /* called on stream off & disconnect - alt 0 */
207 __u8 alt; /* USB alternate setting */ member in struct:gspca_dev
H A Dxirlink_cit.c1448 struct usb_host_interface *alt; cit_get_packet_size() local
1452 alt = usb_altnum_to_altsetting(intf, gspca_dev->alt); cit_get_packet_size()
1453 if (!alt) { cit_get_packet_size()
1458 return le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); cit_get_packet_size()
2635 struct usb_host_interface *alt; sd_isoc_init() local
2651 alt = &gspca_dev->dev->actconfig->intf_cache[0]->altsetting[1]; sd_isoc_init()
2652 alt->endpoint[0].desc.wMaxPacketSize = cpu_to_le16(max_packet_size); sd_isoc_init()
2660 struct usb_host_interface *alt; sd_isoc_nego() local
2674 alt = &gspca_dev->dev->actconfig->intf_cache[0]->altsetting[1]; sd_isoc_nego()
2675 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); sd_isoc_nego()
2682 alt->endpoint[0].desc.wMaxPacketSize = cpu_to_le16(packet_size); sd_isoc_nego()
2686 pr_err("set alt 1 err %d\n", ret); sd_isoc_nego()
H A Dstk1135.c418 /* disable alt 2-wire serial interface */ sd_init()
475 PDEBUG(D_STREAM, "camera started alt: 0x%02x", sd_start()
476 gspca_dev->alt); sd_start()
H A Dfinepix.c236 /* called on streamoff with alt==0 and on disconnect */
H A Dspca500.c515 /* need alt setting here */ spca500_synch310()
516 PDEBUG(D_PACK, "ClickSmart310 sync alt: %d", gspca_dev->alt); spca500_synch310()
521 gspca_dev->alt) < 0) { spca500_synch310()
H A Dsn9c20x.c1952 pr_warn("sn9c20x camera with unknown number of alt " sd_isoc_init()
1955 gspca_dev->alt = intf->num_altsetting; sd_isoc_init()
1961 gspca_dev->alt = 2; sd_isoc_init()
1964 gspca_dev->alt = 6; sd_isoc_init()
1967 gspca_dev->alt = 9; sd_isoc_init()
2067 /* called on streamoff with alt==0 and on disconnect */
H A Dse401.c331 gspca_dev->alt = 1; /* Ignore the bogus isoc alt settings */ sd_isoc_init()
H A Dspca1528.c247 gspca_dev->alt = 4; * use alternate setting 3 */ sd_isoc_init()
H A Dsq905c.c243 /* called on streamoff with alt==0 and on disconnect */
H A Dvicam.c288 /* called on streamoff with alt==0 and on disconnect */
H A Dov519.c3489 struct usb_host_interface *alt; ov511_mode_init_regs() local
3493 alt = usb_altnum_to_altsetting(intf, sd->gspca_dev.alt); ov511_mode_init_regs()
3494 if (!alt) { ov511_mode_init_regs()
3500 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); ov511_mode_init_regs()
3614 struct usb_host_interface *alt; ov518_mode_init_regs() local
3618 alt = usb_altnum_to_altsetting(intf, sd->gspca_dev.alt); ov518_mode_init_regs()
3619 if (!alt) { ov518_mode_init_regs()
3625 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); ov518_mode_init_regs()
H A Djl2005bcd.c487 /* called on streamoff with alt==0 and on disconnect */
H A Dsq905.c314 /* called on streamoff with alt==0 and on disconnect */
H A Dspca505.c691 /* called on streamoff with alt 0 and on disconnect */ sd_stop0()
H A Dconex.c798 /* called on streamoff with alt 0 and on disconnect */ sd_stop0()
H A Dpac7302.c729 /* called on streamoff with alt 0 and on disconnect for pac7302 */ sd_stop0()
H A Dspca501.c1919 /* called on streamoff with alt 0 and on disconnect */ sd_stop0()
/linux-4.1.27/drivers/media/usb/dvb-usb/
H A Dfriio.c420 struct usb_host_interface *alt; friio_probe() local
426 alt = usb_altnum_to_altsetting(intf, FRIIO_BULK_ALTSETTING); friio_probe()
427 if (alt == NULL) { friio_probe()
428 deb_rc("not alt found!\n"); friio_probe()
432 alt->desc.bInterfaceNumber, friio_probe()
433 alt->desc.bAlternateSetting); friio_probe()
435 deb_rc("failed to set alt-setting!\n"); friio_probe()
H A Dm920x.c133 struct usb_host_interface *alt; m920x_init_ep() local
135 if ((alt = usb_altnum_to_altsetting(intf, 1)) == NULL) { m920x_init_ep()
136 deb("No alt found!\n"); m920x_init_ep()
140 return usb_set_interface(udev, alt->desc.bInterfaceNumber, m920x_init_ep()
141 alt->desc.bAlternateSetting); m920x_init_ep()
476 struct usb_host_interface *alt; m920x_identify_state() local
478 alt = usb_altnum_to_altsetting(usb_ifnum_to_if(udev, 0), 1); m920x_identify_state()
479 *cold = (alt == NULL) ? 1 : 0; m920x_identify_state()
H A Dcxusb.c1662 /* use usb alt setting 0 for EP4 transfer (dvb-t),
1663 use usb alt setting 7 for EP2 transfer (atsc) */
1719 /* use usb alt setting 0 for EP4 transfer (dvb-t),
1720 use usb alt setting 7 for EP2 transfer (atsc) */
1783 /* use usb alt setting 0 for EP4 transfer (dvb-t),
1784 use usb alt setting 7 for EP2 transfer (atsc) */
1838 /* use usb alt setting 0 for EP4 transfer (dvb-t),
1839 use usb alt setting 7 for EP2 transfer (atsc) */
/linux-4.1.27/drivers/infiniband/hw/mlx4/
H A Dqp.c683 qp->alt.vid = 0xFFFF; create_qp_common()
689 qp->alt.vid = 0xFFFF; create_qp_common()
997 if (qp->alt.smac) { destroy_qp_common()
998 mlx4_unregister_mac(dev->dev, qp->alt.smac_port, qp->alt.smac); destroy_qp_common()
999 qp->alt.smac = 0; destroy_qp_common()
1007 if (qp->alt.vid < 0x1000) { destroy_qp_common()
1008 mlx4_unregister_vlan(dev->dev, qp->alt.vlan_port, qp->alt.vid); destroy_qp_common()
1009 qp->alt.vid = 0xFFFF; destroy_qp_common()
1010 qp->alt.candidate_vid = 0xFFFF; destroy_qp_common()
1011 qp->alt.update_vid = 0; destroy_qp_common()
1137 qp->alt.vid = 0xFFFF; mlx4_ib_create_qp()
1408 path, &mqp->alt, port); mlx4_set_alt_path()
1827 if (qp->alt.smac) { __mlx4_ib_modify_qp()
1828 mlx4_unregister_mac(dev->dev, qp->alt.smac_port, qp->alt.smac); __mlx4_ib_modify_qp()
1829 qp->alt.smac = 0; __mlx4_ib_modify_qp()
1838 if (qp->alt.vid < 0x1000) { __mlx4_ib_modify_qp()
1839 mlx4_unregister_vlan(dev->dev, qp->alt.vlan_port, qp->alt.vid); __mlx4_ib_modify_qp()
1840 qp->alt.vid = 0xFFFF; __mlx4_ib_modify_qp()
1841 qp->alt.candidate_vid = 0xFFFF; __mlx4_ib_modify_qp()
1842 qp->alt.update_vid = 0; __mlx4_ib_modify_qp()
1864 if (qp->alt.candidate_smac) { __mlx4_ib_modify_qp()
1866 mlx4_unregister_mac(dev->dev, qp->alt.candidate_smac_port, qp->alt.candidate_smac); __mlx4_ib_modify_qp()
1868 if (qp->alt.smac) __mlx4_ib_modify_qp()
1869 mlx4_unregister_mac(dev->dev, qp->alt.smac_port, qp->alt.smac); __mlx4_ib_modify_qp()
1870 qp->alt.smac = qp->alt.candidate_smac; __mlx4_ib_modify_qp()
1871 qp->alt.smac_index = qp->alt.candidate_smac_index; __mlx4_ib_modify_qp()
1872 qp->alt.smac_port = qp->alt.candidate_smac_port; __mlx4_ib_modify_qp()
1874 qp->alt.candidate_smac = 0; __mlx4_ib_modify_qp()
1875 qp->alt.candidate_smac_index = 0; __mlx4_ib_modify_qp()
1876 qp->alt.candidate_smac_port = 0; __mlx4_ib_modify_qp()
1896 if (qp->alt.update_vid) { __mlx4_ib_modify_qp()
1898 if (qp->alt.candidate_vid < 0x1000) __mlx4_ib_modify_qp()
1899 mlx4_unregister_vlan(dev->dev, qp->alt.candidate_vlan_port, __mlx4_ib_modify_qp()
1900 qp->alt.candidate_vid); __mlx4_ib_modify_qp()
1902 if (qp->alt.vid < 0x1000) __mlx4_ib_modify_qp()
1903 mlx4_unregister_vlan(dev->dev, qp->alt.vlan_port, __mlx4_ib_modify_qp()
1904 qp->alt.vid); __mlx4_ib_modify_qp()
1905 qp->alt.vid = qp->alt.candidate_vid; __mlx4_ib_modify_qp()
1906 qp->alt.vlan_port = qp->alt.candidate_vlan_port; __mlx4_ib_modify_qp()
1907 qp->alt.vlan_index = qp->alt.candidate_vlan_index; __mlx4_ib_modify_qp()
1909 qp->alt.candidate_vid = 0xFFFF; __mlx4_ib_modify_qp()
1910 qp->alt.update_vid = 0; __mlx4_ib_modify_qp()
H A Dmlx4_ib.h304 struct mlx4_roce_smac_vlan_info alt; member in struct:mlx4_ib_qp
/linux-4.1.27/drivers/media/usb/gspca/stv06xx/
H A Dstv06xx.c285 struct usb_host_interface *alt; stv06xx_start() local
290 alt = usb_altnum_to_altsetting(intf, sd->gspca_dev.alt); stv06xx_start()
291 if (!alt) { stv06xx_start()
296 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); stv06xx_start()
320 struct usb_host_interface *alt; stv06xx_isoc_init() local
324 alt = &gspca_dev->dev->actconfig->intf_cache[0]->altsetting[1]; stv06xx_isoc_init()
325 alt->endpoint[0].desc.wMaxPacketSize = stv06xx_isoc_init()
334 struct usb_host_interface *alt; stv06xx_isoc_nego() local
337 alt = &gspca_dev->dev->actconfig->intf_cache[0]->altsetting[1]; stv06xx_isoc_nego()
338 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); stv06xx_isoc_nego()
346 alt->endpoint[0].desc.wMaxPacketSize = cpu_to_le16(packet_size); stv06xx_isoc_nego()
350 PERR("set alt 1 err %d", ret); stv06xx_isoc_nego()
H A Dstv06xx_pb0100.c191 struct usb_host_interface *alt; pb0100_start() local
198 alt = usb_altnum_to_altsetting(intf, sd->gspca_dev.alt); pb0100_start()
199 if (!alt) pb0100_start()
201 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); pb0100_start()
/linux-4.1.27/drivers/media/i2c/soc_camera/
H A Dov9640.c355 struct ov9640_reg_alt *alt) ov9640_alter_regs()
360 alt->com12 = OV9640_COM12_YUV_AVG; ov9640_alter_regs()
361 alt->com13 = OV9640_COM13_Y_DELAY_EN | ov9640_alter_regs()
365 alt->com7 = OV9640_COM7_RGB; ov9640_alter_regs()
366 alt->com13 = OV9640_COM13_RGB_AVG; ov9640_alter_regs()
367 alt->com15 = OV9640_COM15_RGB_555; ov9640_alter_regs()
370 alt->com7 = OV9640_COM7_RGB; ov9640_alter_regs()
371 alt->com13 = OV9640_COM13_RGB_AVG; ov9640_alter_regs()
372 alt->com15 = OV9640_COM15_RGB_565; ov9640_alter_regs()
354 ov9640_alter_regs(u32 code, struct ov9640_reg_alt *alt) ov9640_alter_regs() argument
/linux-4.1.27/arch/x86/kernel/
H A Dmodule.c214 const Elf_Shdr *s, *text = NULL, *alt = NULL, *locks = NULL, module_finalize() local
222 alt = s; module_finalize()
229 if (alt) { module_finalize()
231 void *aseg = (void *)alt->sh_addr; module_finalize()
232 apply_alternatives(aseg, aseg + alt->sh_size); module_finalize()
H A Dalternative.c356 DPRINTK("alt table %p -> %p", start, end); apply_alternatives()
/linux-4.1.27/drivers/media/usb/dvb-usb-v2/
H A Dmxl111sf.h74 /* use usb alt setting 1 for EP4 ISOC transfer (dvb-t),
77 use usb alt setting 2 for EP4 BULK transfer (dvb-t),
/linux-4.1.27/drivers/media/usb/em28xx/
H A Dem28xx-audio.c277 if (dev->alt == 0 || dev->is_audio_only) { snd_em28xx_capture_open()
280 dev->alt = 1; snd_em28xx_capture_open()
283 dev->alt = 7; snd_em28xx_capture_open()
286 * the alt setting with the largest snd_em28xx_capture_open()
288 * At least dev->alt should be used instead, but snd_em28xx_capture_open()
294 dev->ifnum, dev->alt); snd_em28xx_capture_open()
295 usb_set_interface(dev->udev, dev->ifnum, dev->alt); snd_em28xx_capture_open()
749 u8 alt; em28xx_audio_urb_init() local
752 alt = 1; em28xx_audio_urb_init()
754 alt = 7; em28xx_audio_urb_init()
758 if (intf->num_altsetting <= alt) { em28xx_audio_urb_init()
759 em28xx_errdev("alt %d doesn't exist on interface %d\n", em28xx_audio_urb_init()
760 dev->ifnum, alt); em28xx_audio_urb_init()
764 for (i = 0; i < intf->altsetting[alt].desc.bNumEndpoints; i++) { em28xx_audio_urb_init()
765 e = &intf->altsetting[alt].endpoint[i].desc; em28xx_audio_urb_init()
782 em28xx_info("Endpoint 0x%02x %s on intf %d alt %d interval = %d, size %d\n", em28xx_audio_urb_init()
784 dev->ifnum, alt, em28xx_audio_urb_init()
H A Dem28xx-video.c62 static int alt; variable
63 module_param(alt, int, 0644);
64 MODULE_PARM_DESC(alt, "alternate setting to use for video endpoint");
142 /*FIXME: maxw should be dependent of alt mode */ norm_maxw()
368 /* NOTE: for isoc transfers, only alt settings > 0 are allowed em28xx_set_alternate()
369 bulk transfers seem to work only with alt=0 ! */ em28xx_set_alternate()
370 dev->alt = 0; em28xx_set_alternate()
371 if ((alt > 0) && (alt < dev->num_alt)) { em28xx_set_alternate()
372 em28xx_videodbg("alternate forced to %d\n", dev->alt); em28xx_set_alternate()
373 dev->alt = alt; em28xx_set_alternate()
387 /* stop when the selected alt setting offers enough bandwidth */ em28xx_set_alternate()
389 dev->alt = i; em28xx_set_alternate()
395 dev->alt_max_pkt_size_isoc[dev->alt]) em28xx_set_alternate()
396 dev->alt = i; em28xx_set_alternate()
407 em28xx_videodbg("minimum isoc packet size: %u (alt=%d)\n", em28xx_set_alternate()
408 min_pkt_size, dev->alt); em28xx_set_alternate()
410 dev->alt_max_pkt_size_isoc[dev->alt]; em28xx_set_alternate()
414 dev->alt, dev->max_pkt_size); em28xx_set_alternate()
415 errCode = usb_set_interface(dev->udev, dev->ifnum, dev->alt); em28xx_set_alternate()
418 dev->alt, errCode); em28xx_set_alternate()
1517 strcpy(a->name, "Television alt"); vidioc_g_audio()
2056 dev->alt = 0; em28xx_v4l2_close()
H A Dem28xx.h684 int alt; /* alternate setting */ member in struct:em28xx
685 int max_pkt_size; /* max packet size of the selected ep at alt */
H A Dem28xx-cards.c3368 * all alt settings. So far, we've seen this for em28xx_usb_probe()
3420 dev->alt = -1; em28xx_usb_probe()
/linux-4.1.27/arch/powerpc/include/asm/
H A Dmpc5121.h58 u32 alt; /* Address Latch Timing Register */ member in struct:mpc512x_lpc
H A Dperf_event_server.h40 u64 alt[]);
/linux-4.1.27/drivers/usb/gadget/function/
H A Df_phonet.c402 static int pn_set_alt(struct usb_function *f, unsigned intf, unsigned alt) pn_set_alt() argument
409 return (alt > 0) ? -EINVAL : 0; pn_set_alt()
416 if (alt > 1) pn_set_alt()
424 if (alt == 1) { pn_set_alt()
461 u8 alt; pn_get_alt() local
464 alt = port->usb != NULL; pn_get_alt()
466 return alt; pn_get_alt()
H A Df_obex.c195 static int obex_set_alt(struct usb_function *f, unsigned intf, unsigned alt) obex_set_alt() argument
201 if (alt != 0) obex_set_alt()
208 if (alt > 1) obex_set_alt()
230 if (alt == 1) { obex_set_alt()
239 obex->cur_alt = alt; obex_set_alt()
H A Df_ecm.c534 static int ecm_set_alt(struct usb_function *f, unsigned intf, unsigned alt) ecm_set_alt() argument
541 if (alt != 0) ecm_set_alt()
558 if (alt > 1) ecm_set_alt()
582 if (alt == 1) { ecm_set_alt()
651 * - configured but inactive (data alt 0)
652 * - configured and active (data alt 1)
H A Df_serial.c150 static int gser_set_alt(struct usb_function *f, unsigned intf, unsigned alt) gser_set_alt() argument
155 /* we know alt == 0, so this is an activation or a reset */ gser_set_alt()
H A Df_sourcesink.c404 * endpoints, so null out the alt interface that contains sourcesink_bind()
671 int alt) enable_source_sink()
715 if (alt == 0) enable_source_sink()
760 ss->cur_alt = alt; enable_source_sink()
762 DBG(cdev, "%s enabled, alt intf %d\n", ss->function.name, alt); enable_source_sink()
767 unsigned intf, unsigned alt) sourcesink_set_alt()
774 return enable_source_sink(cdev, ss, alt); sourcesink_set_alt()
670 enable_source_sink(struct usb_composite_dev *cdev, struct f_sourcesink *ss, int alt) enable_source_sink() argument
766 sourcesink_set_alt(struct usb_function *f, unsigned intf, unsigned alt) sourcesink_set_alt() argument
H A Df_uvc.c287 uvc_function_set_alt(struct usb_function *f, unsigned interface, unsigned alt) uvc_function_set_alt() argument
295 INFO(cdev, "uvc_function_set_alt(%u, %u)\n", interface, alt); uvc_function_set_alt()
298 if (alt) uvc_function_set_alt()
331 return alt ? -EINVAL : 0; uvc_function_set_alt()
334 switch (alt) { uvc_function_set_alt()
H A Df_uac2.c1143 afunc_set_alt(struct usb_function *fn, unsigned intf, unsigned alt) afunc_set_alt() argument
1155 /* No i/f has more than 2 alt settings */ afunc_set_alt()
1156 if (alt > 1) { afunc_set_alt()
1163 if (alt) { afunc_set_alt()
1174 agdev->as_out_alt = alt; afunc_set_alt()
1184 agdev->as_in_alt = alt; afunc_set_alt()
1215 if (alt == 0) { afunc_set_alt()
H A Df_eem.c187 static int eem_set_alt(struct usb_function *f, unsigned intf, unsigned alt) eem_set_alt() argument
193 /* we know alt == 0, so this is an activation or a reset */ eem_set_alt()
194 if (alt != 0) eem_set_alt()
H A Df_uac1.c572 static int f_audio_set_alt(struct usb_function *f, unsigned intf, unsigned alt) f_audio_set_alt() argument
582 DBG(cdev, "intf %d, alt %d\n", intf, alt); f_audio_set_alt()
590 if (alt == 1) { f_audio_set_alt()
H A Df_loopback.c366 unsigned intf, unsigned alt) loopback_set_alt()
371 /* we know alt is zero */ loopback_set_alt()
365 loopback_set_alt(struct usb_function *f, unsigned intf, unsigned alt) loopback_set_alt() argument
H A Df_hid.c506 static int hidg_set_alt(struct usb_function *f, unsigned intf, unsigned alt) hidg_set_alt() argument
512 VDBG(cdev, "hidg_set_alt intf:%d alt:%d\n", intf, alt); hidg_set_alt()
H A Df_ncm.c796 static int ncm_set_alt(struct usb_function *f, unsigned intf, unsigned alt) ncm_set_alt() argument
803 if (alt != 0) ncm_set_alt()
821 if (alt > 1) ncm_set_alt()
836 if (alt == 1) { ncm_set_alt()
1303 * - configured but inactive (data alt 0)
1304 * - configured and active (data alt 1)
H A Df_subset.c257 static int geth_set_alt(struct usb_function *f, unsigned intf, unsigned alt) geth_set_alt() argument
263 /* we know alt == 0, so this is an activation or a reset */ geth_set_alt()
H A Df_acm.c424 static int acm_set_alt(struct usb_function *f, unsigned intf, unsigned alt) acm_set_alt() argument
429 /* we know alt == 0, so this is an activation or a reset */ acm_set_alt()
H A Df_printer.c1120 unsigned intf, unsigned alt) printer_func_set_alt()
1125 if (!alt) printer_func_set_alt()
1119 printer_func_set_alt(struct usb_function *f, unsigned intf, unsigned alt) printer_func_set_alt() argument
H A Df_rndis.c538 static int rndis_set_alt(struct usb_function *f, unsigned intf, unsigned alt) rndis_set_alt() argument
543 /* we know alt == 0 */ rndis_set_alt()
H A Df_fs.c2917 unsigned interface, unsigned alt) ffs_func_set_alt()
2923 if (alt != (unsigned)-1) { ffs_func_set_alt()
2942 if (alt == (unsigned)-1) { ffs_func_set_alt()
2916 ffs_func_set_alt(struct usb_function *f, unsigned interface, unsigned alt) ffs_func_set_alt() argument
H A Df_midi.c325 static int f_midi_set_alt(struct usb_function *f, unsigned intf, unsigned alt) f_midi_set_alt() argument
/linux-4.1.27/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)
H A Dpxa27x_udc.c360 int alt = udc->last_alternate; find_pxa_ep() local
367 if (is_match_usb_pxa(udc_usb_ep, ep, cfg, iface, alt)) find_pxa_ep()
2153 * @alt: alternate setting number
2158 static void pxa27x_change_interface(struct pxa_udc *udc, int iface, int alt) pxa27x_change_interface() argument
2162 dev_dbg(udc->dev, "interface=%d, alternate setting=%d\n", iface, alt); pxa27x_change_interface()
2165 udc->last_alternate = alt; pxa27x_change_interface()
2169 req.wValue = alt; pxa27x_change_interface()
H A Damd5536udc.h69 /* EP alt setting */
H A Damd5536udc.c410 /* ep alt */ udc_ep_enable()
1584 /* init cfg/alt/int */ udc_setup_endpoints()
2799 /* read interface and alt setting values */
2811 DBG(dev, "SET_INTERFACE interrupt: alt=%d intf=%d\n",
2836 /* ep alt */
H A Dpch_udc.c266 * @cur_alt: current alt interface in use
348 * @cfg_data: current cfg, intf, and alt in use
H A Dbcm63xx_udc.c262 * @alt_iface: USB alt interface number, from SET_INTERFACE wValue.
/linux-4.1.27/drivers/pinctrl/
H A Dpinctrl-st.c234 struct regmap_field *alt, *oe, *pu, *od; member in struct:st_pio_control
249 const int alt, oe, pu, od, rt; member in struct:st_pctl_data
354 .alt = 0, .oe = 5, .pu = 7, .od = 9, .rt = 16,
359 .alt = 0, .oe = 8, .pu = 10, .od = 12, .rt = 16,
364 .alt = 0, .oe = 6, .pu = 8, .od = 10, .rt = 38,
369 .alt = 0, .oe = 3, .pu = 4, .od = 5, .rt = 6,
374 .alt = 0, .oe = 5, .pu = 7, .od = 9, .rt = 11,
387 .alt = 0, .oe = 40, .pu = 50, .od = 60, .rt = 100,
396 .alt = 0,
461 struct regmap_field *alt = pc->alt; st_pctl_set_function() local
466 if (!alt) st_pctl_set_function()
469 regmap_field_read(alt, &val); st_pctl_set_function()
472 regmap_field_write(alt, val); st_pctl_set_function()
477 struct regmap_field *alt = pc->alt; st_pctl_get_pin_function() local
481 if (!alt) st_pctl_get_pin_function()
484 regmap_field_read(alt, &val); st_pctl_get_pin_function()
1211 pc->alt = st_pc_get_value(dev, regmap, bank, data->alt, 0, 31); st_parse_syscfgs()
/linux-4.1.27/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; get_endpoints() local
117 alt = intf->altsetting + tmp; get_endpoints()
120 override_alt != alt->desc.bAlternateSetting) get_endpoints()
126 for (ep = 0; ep < alt->desc.bNumEndpoints; ep++) { get_endpoints()
129 e = alt->endpoint + ep; get_endpoints()
176 dev->info->alt = alt->desc.bAlternateSetting; get_endpoints()
177 if (alt->desc.bAlternateSetting != 0) { get_endpoints()
179 alt->desc.bInterfaceNumber, get_endpoints()
180 alt->desc.bAlternateSetting); get_endpoints()
777 int i, alt, retval; ch9_postconfig() local
785 alt = iface->altsetting[i].desc.bAlternateSetting; ch9_postconfig()
786 if (alt < 0 || alt >= iface->num_altsetting) { ch9_postconfig()
788 "invalid alt [%d].bAltSetting = %d\n", ch9_postconfig()
789 i, alt); ch9_postconfig()
797 retval = set_altsetting(dev, alt); ch9_postconfig()
800 alt, retval); ch9_postconfig()
806 if (retval != alt) { ch9_postconfig()
807 dev_err(&iface->dev, "get alt should be %d, was %d\n", ch9_postconfig()
808 alt, retval); ch9_postconfig()
2087 if (dev->info->alt >= 0) { usbtest_ioctl()
2094 res = set_altsetting(dev, dev->info->alt); usbtest_ioctl()
2098 dev->info->alt, res); usbtest_ioctl()
2638 info->alt >= 0 ? " (+alt)" : ""); usbtest_probe()
2678 .alt = 1,
2686 .alt = 1,
2695 .alt = 1,
2712 .alt = 0,
2718 .alt = -1,
2725 .alt = -1,
2735 .alt = -1,
2743 .alt = -1,
/linux-4.1.27/drivers/staging/ozwpan/
H A Dozusbsvc1.c116 static int oz_usb_set_interface_req(void *hpd, u8 req_id, u8 index, u8 alt) oz_usb_set_interface_req() argument
133 body->alternative = alt; oz_usb_set_interface_req()
215 u8 alt = (u8)wvalue; oz_usb_control_req() local
218 if_num, alt); oz_usb_control_req()
H A Dozhcd.c102 u8 alt; member in struct:oz_interface
862 u8 rcode, u8 if_num, u8 alt) oz_hcd_complete_set_interface()
871 oz_dbg(ON, "Set interface %d alt %d\n", if_num, alt); oz_hcd_complete_set_interface()
874 intf = &config->intf_cache[if_num]->altsetting[alt]; oz_hcd_complete_set_interface()
879 port->iface[if_num].alt = alt; oz_hcd_complete_set_interface()
1478 port->iface[(u8)windex].alt; oz_process_ep0_urb()
1479 oz_dbg(ON, "interface = %d alt = %d\n", oz_process_ep0_urb()
1480 windex, port->iface[(u8)windex].alt); oz_process_ep0_urb()
861 oz_hcd_complete_set_interface(struct oz_port *port, struct urb *urb, u8 rcode, u8 if_num, u8 alt) oz_hcd_complete_set_interface() argument
/linux-4.1.27/drivers/clk/rockchip/
H A Dclk-cpu.c143 pr_warn("%s: limiting alt-divider %lu to %d\n", rockchip_cpuclk_pre_rate_change()
153 * needed for the alt. rockchip_cpuclk_pre_rate_change()
155 pr_debug("%s: setting div %lu as alt-rate %lu > old-rate %lu\n", rockchip_cpuclk_pre_rate_change()
195 * primary parent by the extra dividers that were needed for the alt. rockchip_cpuclk_post_rate_change()
/linux-4.1.27/arch/arm/include/asm/
H A Dprocessor.h96 " .pushsection \".alt.smp.init\", \"a\"\n" \
H A Dassembler.h237 .pushsection ".alt.smp.init", "a" ;\
249 .pushsection ".alt.smp.init", "a" ;\
/linux-4.1.27/drivers/ata/
H A Dpata_sc1200.c193 struct ata_port *alt = host->ports[1 ^ qc->ap->port_no]; sc1200_qc_defer() local
203 if (alt && alt->qc_active) sc1200_qc_defer()
H A Dpata_sl82c105.c215 struct ata_port *alt = host->ports[1 ^ qc->ap->port_no]; sl82c105_qc_defer() local
225 if (alt && alt->qc_active) sl82c105_qc_defer()
H A Dpata_artop.c279 struct ata_port *alt = host->ports[1 ^ qc->ap->port_no]; artop6210_qc_defer() local
289 if (alt && alt->qc_active) artop6210_qc_defer()
H A Dpata_hpt3x2n.c314 struct ata_port *alt = ap->host->ports[ap->port_no ^ 1]; hpt3x2n_qc_defer() local
323 if ((flags & USE_DPLL) != dpll && alt->qc_active) hpt3x2n_qc_defer()
H A Dpata_at32.c312 info->res_alt.name = "alt"; pata_at32_probe()
H A Dpata_legacy.c1212 winbond = 0x130; /* Default port, alt is 1B0 */
/linux-4.1.27/drivers/pinctrl/nomadik/
H A Dpinctrl-nomadik-db8540.c368 * u0_a_1 = first groups of pins for uart0 on alt function a
369 * i2c2_b_2 = second group of pins for i2c2 on alt function b
577 /* Other alt C1 column */
607 /* Other alt C2 column */
629 /* Other alt C3 column */
641 /* Other alt C4 column */
785 /* Other alt C1 column */
804 /* Other alt C2 column */
818 /* Other alt C3 column */
822 /* Other alt C4 column */
901 /* Select between CS0 on alt B or PS1 on alt C */
H A Dpinctrl-nomadik-db8500.c379 * u0_a_1 = first groups of pins for uart0 on alt function a
380 * i2c2_b_2 = second group of pins for i2c2 on alt function b
521 /* This chip select pin can be "ps0" in alt C so have it separately */
523 /* This chip select pin can be "ps1" in alt C so have it separately */
787 /* Other alt C1 column */
803 /* Other alt C2 column */
807 /* Other alt C3 column */
813 /* Other alt C4 column */
877 /* Select between CS0 on alt B or PS1 on alt C */
H A Dpinctrl-nomadik-stn8815.c283 * u0_a_1 = first groups of pins for uart0 on alt function a
284 * i2c2_b_2 = second group of pins for i2c2 on alt function b
H A Dpinctrl-nomadik.c187 #define PIN_CFG(num, alt) \
189 (PIN_NUM(num) | PIN_##alt))
191 #define PIN_CFG_INPUT(num, alt, pull) \
193 (PIN_NUM(num) | PIN_##alt | PIN_INPUT_##pull))
195 #define PIN_CFG_OUTPUT(num, alt, val) \
197 (PIN_NUM(num) | PIN_##alt | PIN_OUTPUT_##val))
/linux-4.1.27/drivers/pinctrl/bcm/
H A Dpinctrl-cygnus-mux.c41 * @alt: alternate function to set to
46 unsigned int alt; member in struct:cygnus_mux
488 .alt = al, \
796 if (mux_log[i].mux.alt != mux->alt) { cygnus_pinmux_set()
811 mux_log[i].mux.alt = mux->alt; cygnus_pinmux_set()
818 val |= grp->mux.alt << grp->mux.shift; cygnus_pinmux_set()
837 dev_dbg(pctrl_dev->dev, "offset:0x%08x shift:%u alt:%u\n", cygnus_pinmux_set_mux()
838 grp->mux.offset, grp->mux.shift, grp->mux.alt); cygnus_pinmux_set_mux()
929 log->mux.alt = 0; cygnus_mux_log_init()
/linux-4.1.27/drivers/tty/
H A Dsysrq.c585 unsigned int alt; member in struct:sysrq_state
762 sysrq->alt = KEY_RESERVED; sysrq_handle_keypress()
765 sysrq->alt = code; sysrq_handle_keypress()
771 if (value == 1 && sysrq->alt != KEY_RESERVED) { sysrq_handle_keypress()
773 sysrq->alt_use = sysrq->alt; sysrq_handle_keypress()
926 * later, but we expect all such keyboards to have left alt.
/linux-4.1.27/sound/usb/6fire/
H A Dfirmware.c40 0xe4, 0x00, 0xe4, 0x00, /* alt 1: 228 EP2 and EP6 (7 fpp) */
41 0xa4, 0x01, 0xa4, 0x01, /* alt 2: 420 EP2 and EP6 (13 fpp)*/
42 0x94, 0x01, 0x5c, 0x02 /* alt 3: 404 EP2 and 604 EP6 (25 fpp) */
/linux-4.1.27/drivers/staging/speakup/
H A Di18n.c74 [MSG_CTL_ALT] = "alt",
95 [MSG_STATE_ALT] = "alt",
156 [MSG_KEYNAME_LEFTALT] = "left alt",
200 [MSG_KEYNAME_RIGHTALT] = "right alt",
/linux-4.1.27/kernel/
H A Dreboot.c21 * this indicates whether you can reboot with ctrl-alt-del: the default is yes
276 * You can also set the meaning of the ctrl-alt-del-key here.
375 * This function gets called by ctrl-alt-del - ie the keyboard interrupt.
377 * is whether to reboot at once, or just ignore the ctrl-alt-del.
H A Dsysctl.c10 * Added kswapd-interval, ctrl-alt-del, printk stuff, 1/8/97, Chris Horn.
586 .procname = "ctrl-alt-del",
H A Dsysctl_binary.c78 { CTL_INT, KERN_CTLALTDEL, "ctrl-alt-del" },
/linux-4.1.27/include/linux/
H A Dkbd_kern.h32 #define VC_ALTLOCK KG_ALT /* alt lock mode */
H A Dgenhd.h508 __u32 d_acylinders; /* # of alt. cylinders per unit */
/linux-4.1.27/drivers/media/pci/cx18/
H A Dcx18-av-firmware.c173 /* set alt I2s master clock to /0x16 and enable alt divider i2s cx18_av_loadfw()
/linux-4.1.27/arch/x86/vdso/
H A Dvma.c37 apply_alternatives((struct alt_instr *)(image->data + image->alt), init_vdso_image()
38 (struct alt_instr *)(image->data + image->alt + init_vdso_image()
H A Dvdso2c.h164 fprintf(outfile, "\t.alt = %lu,\n", go()
/linux-4.1.27/arch/arm/kernel/
H A Dvmlinux.lds.S81 *(.alt.smp.init)
201 *(.alt.smp.init)
H A Dmodule.c346 s = find_mod_section(hdr, sechdrs, ".alt.smp.init"); module_finalize()
/linux-4.1.27/include/linux/mfd/
H A Dasic3.h111 #define ASIC3_CONFIG_GPIO(gpio, alt, dir, init) (((gpio) & 0x7f) \
112 | (((alt) & 0x7f) << 7) | (((dir) & 0x1) << 14) \
/linux-4.1.27/drivers/w1/masters/
H A Dds2490.c990 int i, err, alt; ds_probe() local
1014 alt = 3; ds_probe()
1016 intf->altsetting[alt].desc.bInterfaceNumber, alt); ds_probe()
1019 "for %d interface: err=%d.\n", alt, ds_probe()
1020 intf->altsetting[alt].desc.bInterfaceNumber, err); ds_probe()
1024 iface_desc = &intf->altsetting[alt]; ds_probe()
/linux-4.1.27/sound/usb/misc/
H A Dua101.c922 struct usb_host_interface *alt; find_format_descriptor() local
931 alt = &interface->altsetting[0]; find_format_descriptor()
932 if (alt->desc.bNumEndpoints != 0) { find_format_descriptor()
937 alt = &interface->altsetting[1]; find_format_descriptor()
938 if (alt->desc.bNumEndpoints != 1) { find_format_descriptor()
943 extra = alt->extra; find_format_descriptor()
944 extralen = alt->extralen; find_format_descriptor()
/linux-4.1.27/drivers/usb/usbip/
H A Dstub_rx.c127 usbip_dbg_stub_rx("set_interface: inf %u alt %u\n", tweak_set_interface_cmd()
133 "usb_set_interface error: inf %u alt %u ret %d\n", tweak_set_interface_cmd()
137 "usb_set_interface done: inf %u alt %u\n", tweak_set_interface_cmd()
/linux-4.1.27/arch/arm/mach-omap1/
H A Dusb.c76 if (config->pins[0] > 2) /* alt pingroup 2 */ omap_otg_init()
98 printk(", usb2 alt %d wires", config->pins[2]); omap_otg_init()
362 printk(KERN_ERR "no usb0 alt pin config on 15xx\n"); omap1_usb0_init()
H A Dboard-htcherald.c306 {"alt", NULL, HTCPLD_GPIO_LED_ALT, 0, 0, LEDS_GPIO_DEFSTATE_OFF},
/linux-4.1.27/fs/cifs/
H A Dxattr.c134 /* return alt name if available as pseudo attr */ cifs_setxattr()
269 /* return alt name if available as pseudo attr */ cifs_getxattr()
408 /* return alt name if available as pseudo attr */ cifs_listxattr()
/linux-4.1.27/drivers/staging/ft1000/ft1000-usb/
H A Dft1000_usb.c91 pr_debug("number of alt settings is: %d\n", numaltsetting); ft1000_probe()
/linux-4.1.27/arch/mips/cavium-octeon/
H A Docteon-platform.c463 alt_phy_handle = fdt_getprop(initial_boot_params, eth, "cavium,alt-phy-handle", NULL); octeon_fdt_set_phy()
475 fdt_nop_property(initial_boot_params, eth, "cavium,alt-phy-handle"); octeon_fdt_set_phy()
488 /* Use the alt phy node instead.*/ octeon_fdt_set_phy()
493 alt_prop = fdt_get_property_w(initial_boot_params, eth, "cavium,alt-phy-handle", NULL); octeon_fdt_set_phy()
/linux-4.1.27/arch/blackfin/kernel/
H A Dvmlinux.lds.S128 * handle embedded cross-section references (alt instructions, bug
/linux-4.1.27/drivers/usb/gadget/legacy/
H A Dtcm_usb_gadget.c2282 unsigned int alt; member in struct:guas_setup_wq
2290 int alt = work->alt; usbg_delayed_set_alt() local
2299 if (alt == USB_G_ALT_INT_BBB) usbg_delayed_set_alt()
2301 else if (alt == USB_G_ALT_INT_UAS) usbg_delayed_set_alt()
2306 static int usbg_set_alt(struct usb_function *f, unsigned intf, unsigned alt) usbg_set_alt() argument
2310 if ((alt == USB_G_ALT_INT_BBB) || (alt == USB_G_ALT_INT_UAS)) { usbg_set_alt()
2318 work->alt = alt; usbg_set_alt()
/linux-4.1.27/drivers/mfd/
H A Dasic3.c571 u8 alt, pin, dir, init, bank_num, bit_num; asic3_gpio_probe() local
575 alt = ASIC3_CONFIG_GPIO_ALT(config); asic3_gpio_probe()
582 alt_reg[bank_num] |= (alt << bit_num); asic3_gpio_probe()
/linux-4.1.27/drivers/net/usb/
H A Dusbnet.c98 struct usb_host_interface *alt = NULL; usbnet_get_endpoints() local
106 alt = intf->altsetting + tmp; usbnet_get_endpoints()
112 for (ep = 0; ep < alt->desc.bNumEndpoints; ep++) { usbnet_get_endpoints()
116 e = alt->endpoint + ep; usbnet_get_endpoints()
141 if (!alt || !in || !out) usbnet_get_endpoints()
144 if (alt->desc.bAlternateSetting != 0 || usbnet_get_endpoints()
146 tmp = usb_set_interface (dev->udev, alt->desc.bInterfaceNumber, usbnet_get_endpoints()
147 alt->desc.bAlternateSetting); usbnet_get_endpoints()
H A Dcdc_mbim.c114 static int cdc_mbim_set_ctrlalt(struct usbnet *dev, struct usb_interface *intf, u8 alt) cdc_mbim_set_ctrlalt() argument
123 alt); cdc_mbim_set_ctrlalt()
H A Dcdc_ncm.c951 struct usb_host_interface *alt; cdc_ncm_select_altsetting() local
972 alt = usb_altnum_to_altsetting(intf, CDC_NCM_COMM_ALTSETTING_MBIM); cdc_ncm_select_altsetting()
973 if (alt && cdc_ncm_comm_intf_is_mbim(alt)) cdc_ncm_select_altsetting()
H A Dr8152.c1255 struct usb_host_interface *alt = intf->cur_altsetting; alloc_all_mem() local
1256 struct usb_host_endpoint *ep_intr = alt->endpoint + 2; alloc_all_mem()
/linux-4.1.27/drivers/media/usb/gspca/gl860/
H A Dgl860-ov9655.c296 gspca_dev->alt = 1 + 1; ov9655_configure_alt()
300 gspca_dev->alt = 1 + 1; ov9655_configure_alt()
H A Dgl860-mi1320.c337 gspca_dev->alt = 3 + 1; mi1320_configure_alt()
342 gspca_dev->alt = 1 + 1; mi1320_configure_alt()
H A Dgl860-ov2640.c335 gspca_dev->alt = 3 + 1; ov2640_configure_alt()
341 gspca_dev->alt = 1 + 1; ov2640_configure_alt()
H A Dgl860-mi2020.c621 gspca_dev->alt = 3 + 1; mi2020_configure_alt()
627 gspca_dev->alt = 1 + 1; mi2020_configure_alt()
H A Dgl860.c403 /* This function is called before to choose the alt setting */ sd_isoc_init()
/linux-4.1.27/drivers/pinctrl/vt8500/
H A Dpinctrl-wmt.c65 [WMT_FSEL_ALT] = "alt",
124 dev_err(data->dev, "pin:%d no alt function available\n", wmt_set_pinmux()
/linux-4.1.27/drivers/media/usb/au0828/
H A Dau0828.h264 int alt; /* alternate */ member in struct:au0828_dev
H A Dau0828-video.c711 dprintk(1, "Changing intf#0 to alt 5\n"); au0828_analog_stream_enable()
715 pr_info("Au0828 can't set alt setting to 5!\n"); au0828_analog_stream_enable()
/linux-4.1.27/drivers/media/usb/tm6000/
H A Dtm6000-cards.c1160 struct usb_host_interface *alt, get_max_endpoint()
1174 tm_ep->bInterfaceNumber = alt->desc.bInterfaceNumber; get_max_endpoint()
1175 tm_ep->bAlternateSetting = alt->desc.bAlternateSetting; get_max_endpoint()
1260 printk(KERN_INFO "tm6000: alt %d, interface %i, class %i\n", tm6000_usb_probe()
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) get_max_endpoint() argument
/linux-4.1.27/drivers/staging/dgnc/
H A Ddigi.h30 #define TIOCM_CD TIOCM_CAR /* carrier detect (alt) */
/linux-4.1.27/drivers/char/
H A Dpc8736x_gpio.c40 #define SIO_BASE2 0x4E /* alt command-reg to check */
/linux-4.1.27/sound/arm/
H A Dpxa2xx-ac97-lib.c345 * AC97_nRESET alt function to generic gpio. pxa2xx_ac97_hw_probe()
/linux-4.1.27/drivers/media/rc/
H A Dttusbir.c214 /* find the correct alt setting */ ttusbir_probe()
H A Dfintek-cir.c157 fit_pr(KERN_INFO, "first portsel read was bunk, trying alt"); fintek_hw_detect()
/linux-4.1.27/drivers/gpio/
H A Dgpio-intel-mid.c61 GAFR, /* alt function */
/linux-4.1.27/drivers/gpu/drm/tilcdc/
H A Dtilcdc_panel.c335 info->tft_alt_mode = of_property_read_bool(info_np, "tft-alt-mode"); of_get_panel_info()
/linux-4.1.27/arch/ia64/include/uapi/asm/
H A Dgcc_intrin.h131 asm ("mux1 %0=%1,@alt" : "=r" (ia64_intri_res) : "r" (x)); \
/linux-4.1.27/arch/arm/mach-pxa/
H A Dpalmtreo.c141 /* LCD... L_BIAS alt fn not configured on Treo680; is GPIO instead */
H A Dpxa27x.c63 * to_gpio == false: configured to ac97 controller alt fn AC97_nRESET pxa27x_configure_ac97reset()
/linux-4.1.27/arch/arm/mach-omap2/
H A Dboard-omap3pandora.c158 GPIO_BUTTON(100, EV_KEY, KEY_LEFTALT, 0, "alt"),
/linux-4.1.27/drivers/misc/
H A Dbmp085.c239 /* alt least every second force an update of the ambient temperature */ bmp085_get_pressure()
/linux-4.1.27/drivers/video/fbdev/
H A Dsticore.h21 #define ALT_CODE_TYPE_UNKNOWN 0x00 /* alt code type values */
/linux-4.1.27/include/uapi/linux/
H A Dsysctl.h99 KERN_CTLALTDEL=22, /* int: allow ctl-alt-del to reboot */
/linux-4.1.27/sound/usb/caiaq/
H A Ddevice.c447 dev_err(dev, "can't set alt interface.\n"); init_card()
/linux-4.1.27/crypto/
H A Dtestmgr.c273 pr_err("alt: hash: init failed on test %d " __test_hash()
279 pr_err("alt: hash: update failed on test %d " __test_hash()
285 pr_err("alt: hash: final failed on test %d " __test_hash()
/linux-4.1.27/drivers/block/paride/
H A Dpcd.c369 printk("%s: %s %s: alt=0x%x stat=0x%x err=0x%x" pcd_wait()
H A Dpt.c288 printk("%s: %s %s: alt=0x%x stat=0x%x err=0x%x" pt_wait()
H A Dpf.c418 printk("%s: %s %s: alt=0x%x stat=0x%x err=0x%x" pf_wait()
/linux-4.1.27/arch/arm/boot/dts/
H A DMakefile495 r8a7794-alt.dtb \
/linux-4.1.27/include/asm-generic/
H A Dvmlinux.lds.h688 * link time due to cross-section references such as alt instructions,
/linux-4.1.27/drivers/message/fusion/
H A Dmptbase.c2293 /* Disable alt-IOC's reply interrupts mpt_do_ioc_recovery()
2312 /* (re)Enable alt-IOC! (reply interrupt, FreeQ) */ mpt_do_ioc_recovery()
2335 ": alt-ioc Not ready WARNING!\n", mpt_do_ioc_recovery()
2359 /* Retry - alt IOC was initialized once mpt_do_ioc_recovery()
2422 * If fails, continue with alt-ioc processing mpt_do_ioc_recovery()
2430 * If fails, continue with alt-ioc processing mpt_do_ioc_recovery()
2439 ": alt-ioc (%d) FIFO mgmt alloc WARNING!\n", mpt_do_ioc_recovery()
2450 ": alt-ioc: (%d) init failure WARNING!\n", mpt_do_ioc_recovery()
2505 if (rc == 0) { /* alt ioc */ mpt_do_ioc_recovery()
2507 /* (re)Enable alt-IOC! (reply interrupt) */ mpt_do_ioc_recovery()
2508 dinitprintk(ioc, printk(MYIOC_s_DEBUG_FMT "alt-ioc" mpt_do_ioc_recovery()
/linux-4.1.27/drivers/usb/phy/
H A Dphy-msm-usb.c1009 /* Clear alt interrupt latch and enable bits */ msm_chg_block_on()
1034 /* Clear alt interrupt latch and enable bits */ msm_chg_block_off()
/linux-4.1.27/sound/isa/wss/
H A Dwss_lib.c274 " 0x10: alt 1 (CFIG 2) = 0x%02x\n",
279 " 0x11: alt 2 (CFIG 3) = 0x%02x\n",
/linux-4.1.27/drivers/macintosh/
H A Dadbhid.c1242 0x20, /* alt speed = 0x20 (rather slow) */ init_microspeed()
/linux-4.1.27/drivers/staging/comedi/drivers/
H A Dni_tio.c412 * are not using the alt sync bit in that case, but allow the caller ni_tio_set_sync_mode()
/linux-4.1.27/drivers/usb/serial/
H A Dsierra.c175 dev_dbg(&udev->dev, "Selecting alt setting for interface %d\n", sierra_probe()
/linux-4.1.27/fs/ubifs/
H A Dtnc_commit.c641 znode->alt = 0; get_znodes_to_commit()
H A Dubifs.h768 * @alt: lower bound of key range has altered i.e. child inserted at slot 0
785 int alt; member in struct:ubifs_znode
H A Dtnc.c1888 znode->alt = 1; correct_parent_keys()
1943 znode->alt = 1; insert_zbranch()
1989 if (znode->alt) tnc_insert()
/linux-4.1.27/drivers/platform/x86/
H A Dfujitsu-laptop.c693 "config: [alt interface: %d], [adjust disable: %d]\n", acpi_fujitsu_add()
/linux-4.1.27/include/linux/usb/
H A Dcomposite.h211 unsigned interface, unsigned alt);
/linux-4.1.27/arch/ia64/kernel/
H A Dsetup.c944 * and the alt-dtlb-miss handler can set per-cpu mapping into cpu_init()
/linux-4.1.27/drivers/usb/host/
H A Dxhci.c1732 * configuration or alt setting is installed in the device, so there's no need
2748 * installing a new alt setting, the USB core won't allow URBs to be
4509 struct usb_host_interface *alt, xhci_update_timeout_for_interface()
4515 for (j = 0; j < alt->desc.bNumEndpoints; j++) { xhci_update_timeout_for_interface()
4517 &alt->endpoint[j].desc, state, timeout)) xhci_update_timeout_for_interface()
4507 xhci_update_timeout_for_interface(struct xhci_hcd *xhci, struct usb_device *udev, struct usb_host_interface *alt, enum usb3_link_state state, u16 *timeout) xhci_update_timeout_for_interface() argument
/linux-4.1.27/fs/dlm/
H A Dlock.c2448 int8_t alt = 0, rqmode = lkb->lkb_rqmode; can_be_granted() local
2489 alt = DLM_LOCK_PR; can_be_granted()
2491 alt = DLM_LOCK_CW; can_be_granted()
2493 if (alt) { can_be_granted()
2494 lkb->lkb_rqmode = alt; can_be_granted()
/linux-4.1.27/drivers/isdn/hisax/
H A Dhfc_usb.c1502 "HFC-S USB: Endpoint-Config: %s (if=%d alt=%d), E-Channel(%d)", hfc_usb_probe()
/linux-4.1.27/drivers/staging/dgap/
H A Ddgap.h691 #define TIOCM_CD TIOCM_CAR /* carrier detect (alt) */
/linux-4.1.27/drivers/usb/class/
H A Dusblp.c1177 "usblp%d: USB %sdirectional printer dev %d if %d alt %d proto %d vid 0x%4.4X pid 0x%4.4X\n", usblp_probe()
/linux-4.1.27/sound/oss/
H A Daedsp16.c47 and then ctrl-alt-del to boot linux with the DSP configured by the DOS
/linux-4.1.27/sound/pci/
H A Dsonicvibes.c372 " 0x03: right AUX1 = 0x%02x 0x23: ADC alt rate = 0x%02x\n",
/linux-4.1.27/drivers/net/ethernet/sun/
H A Dcassini.h1566 * 3*x 16MSB of alt MAC addr 1-15 [47:32] of DA field
1579 * alt addr 1 reg 5 reg 4 reg 3
1580 * alt addr x reg 5*x reg 4*x reg 3*x
/linux-4.1.27/drivers/isdn/hardware/mISDN/
H A Dhfcsusb.c2099 pr_info("%s: %s: detected \"%s\" (%s, if=%d alt=%d)\n", hfcsusb_probe()
/linux-4.1.27/drivers/media/usb/usbvision/
H A Dusbvision-core.c2413 * activates zero-bandwidth alt. setting of the video interface.
/linux-4.1.27/drivers/media/usb/uvc/
H A Duvc_video.c1645 uvc_trace(UVC_TRACE_VIDEO, "No fast enough alt setting " uvc_init_video()
/linux-4.1.27/drivers/usb/gadget/
H A Dcomposite.c712 DBG(cdev, "interface %d (%s/%p) alt 0 --> %d\n", set_config()

Completed in 5432 milliseconds

12