Home
last modified time | relevance | path

Searched refs:alt (Results 1 – 25 of 127) sorted by relevance

123456

/drivers/tty/vt/
A Ddefkeymap.map16 alt keycode 1 = Meta_Escape
18 alt keycode 2 = Meta_one
22 alt keycode 3 = Meta_two
25 alt keycode 4 = Meta_three
28 alt keycode 5 = Meta_four
31 alt keycode 6 = Meta_five
34 alt keycode 7 = Meta_six
37 alt keycode 8 = Meta_seven
48 alt keycode 12 = Meta_minus
236 alt keycode 105 = Decr_Console
[all …]
/drivers/platform/chrome/
A Dcros_typec_altmode.c21 struct typec_altmode *alt; member
69 dev_warn(&alt->dev, in cros_typec_altmode_enter()
114 dev_warn(&alt->dev, in cros_typec_altmode_exit()
318 if (IS_ERR(alt)) in cros_typec_register_displayport()
319 return alt; in cros_typec_register_displayport()
330 adata->alt = alt; in cros_typec_register_displayport()
339 return alt; in cros_typec_register_displayport()
352 if (IS_ERR(alt)) in cros_typec_register_thunderbolt()
353 return alt; in cros_typec_register_thunderbolt()
362 adata->alt = alt; in cros_typec_register_thunderbolt()
[all …]
A Dcros_typec_switch.c51 static int cros_typec_get_mux_state(unsigned long mode, struct typec_altmode *alt) in cros_typec_get_mux_state() argument
60 } else if (alt && alt->svid == USB_TYPEC_DP_SID) { in cros_typec_get_mux_state()
109 unsigned long mode, struct typec_altmode *alt) in cros_typec_configure_mux() argument
116 ret = cros_typec_get_mux_state(mode, alt); in cros_typec_configure_mux()
157 return cros_typec_configure_mux(port->sdata, port->port_num, 0, state->mode, state->alt); in cros_typec_mode_switch_set()
165 return cros_typec_configure_mux(port->sdata, port->port_num, 1, state->mode, state->alt); in cros_typec_retimer_set()
/drivers/usb/typec/altmodes/
A Dthunderbolt.c30 struct typec_altmode *alt; member
63 return typec_altmode_enter(tbt->alt, &vdo); in tbt_enter_mode()
97 typec_altmode_exit(tbt->alt); in tbt_altmode_work()
140 if (!tbt_ready(tbt->alt)) in tbt_enter_modes_ordered()
232 data.device_mode = tbt->alt->vdo; in tbt_altmode_vdm()
276 ret = tbt_enter_modes_ordered(alt); in tbt_altmode_activate()
278 ret = typec_altmode_exit(alt); in tbt_altmode_activate()
304 tbt->alt = alt; in tbt_altmode_probe()
306 alt->desc = "Thunderbolt3"; in tbt_altmode_probe()
307 typec_altmode_set_drvdata(alt, tbt); in tbt_altmode_probe()
[all …]
A Ddisplayport.c78 struct typec_altmode *alt; member
235 dev_err(&dp->alt->dev, in dp_altmode_configure_vdm()
297 dev_err(&dp->alt->dev, in dp_altmode_work()
304 dev_err(&dp->alt->dev, in dp_altmode_work()
318 if (typec_altmode_exit(dp->alt)) in dp_altmode_work()
514 return typec_altmode_exit(alt); in dp_altmode_activate()
555 cap = DP_CAP_CAPABILITY(dp->alt->vdo); in configuration_store()
566 if (dp->alt->active) { in configuration_store()
777 dp->alt = alt; in dp_altmode_probe()
779 alt->desc = "DisplayPort"; in dp_altmode_probe()
[all …]
A Dnvidia.c12 static int nvidia_altmode_probe(struct typec_altmode *alt) in nvidia_altmode_probe() argument
14 if (alt->svid == USB_TYPEC_NVIDIA_VLINK_SID) in nvidia_altmode_probe()
15 return dp_altmode_probe(alt); in nvidia_altmode_probe()
20 static void nvidia_altmode_remove(struct typec_altmode *alt) in nvidia_altmode_remove() argument
22 if (alt->svid == USB_TYPEC_NVIDIA_VLINK_SID) in nvidia_altmode_remove()
23 dp_altmode_remove(alt); in nvidia_altmode_remove()
A Ddisplayport.h3 int dp_altmode_probe(struct typec_altmode *alt);
4 void dp_altmode_remove(struct typec_altmode *alt);
6 int dp_altmode_probe(struct typec_altmode *alt) { return -ENOTSUPP; } in dp_altmode_probe() argument
7 void dp_altmode_remove(struct typec_altmode *alt) { } in dp_altmode_remove() argument
/drivers/usb/typec/ucsi/
A Ddisplayport.c21 struct typec_altmode *alt; member
160 u32 cap = dp->alt->vdo; in ucsi_displayport_status_update()
295 if (!alt) in ucsi_displayport_remove_partner()
298 dp = typec_altmode_get_drvdata(alt); in ucsi_displayport_remove_partner()
315 struct typec_altmode *alt; in ucsi_register_displayport() local
326 if (IS_ERR(alt)) in ucsi_register_displayport()
327 return alt; in ucsi_register_displayport()
331 typec_unregister_altmode(alt); in ucsi_register_displayport()
339 dp->alt = alt; in ucsi_register_displayport()
342 typec_altmode_set_drvdata(alt, dp); in ucsi_register_displayport()
[all …]
A Ducsi_ccg.c409 alt = uc->orig; in ucsi_ccg_update_altmodes()
421 if (!alt[i].svid) in ucsi_ccg_update_altmodes()
426 if (!alt[i].svid) in ucsi_ccg_update_altmodes()
430 if (alt[i].checked) in ucsi_ccg_update_altmodes()
438 alt[i].linked_idx = k; in ucsi_ccg_update_altmodes()
446 if (alt[i].svid != alt[j].svid || in ucsi_ccg_update_altmodes()
452 new_alt[k].mid |= alt[i].mid | alt[j].mid; in ucsi_ccg_update_altmodes()
454 alt[i].linked_idx = k; in ucsi_ccg_update_altmodes()
455 alt[j].linked_idx = k; in ucsi_ccg_update_altmodes()
467 alt[i].linked_idx = k; in ucsi_ccg_update_altmodes()
[all …]
A Dtrace.h85 TP_PROTO(u8 recipient, struct typec_altmode *alt),
86 TP_ARGS(recipient, alt),
95 __entry->svid = alt->svid;
96 __entry->mode = alt->mode;
97 __entry->vdo = alt->vdo;
105 TP_PROTO(u8 recipient, struct typec_altmode *alt),
106 TP_ARGS(recipient, alt)
A Ducsi.c361 if (!alt[i]) in ucsi_next_altmode()
372 if (!alt[i]) in ucsi_get_num_altmode()
420 if (IS_ERR(alt)) { in ucsi_register_altmode()
421 ret = PTR_ERR(alt); in ucsi_register_altmode()
441 if (IS_ERR(alt)) { in ucsi_register_altmode()
462 if (IS_ERR(alt)) { in ucsi_register_altmode()
508 memset(&alt, 0, sizeof(alt)); in ucsi_register_altmodes_nvidia()
513 len = ucsi_send_command(con->ucsi, command, &alt, sizeof(alt)); in ucsi_register_altmodes_nvidia()
584 memset(alt, 0, sizeof(alt)); in ucsi_register_altmodes()
589 len = ucsi_send_command(con->ucsi, command, alt, sizeof(alt)); in ucsi_register_altmodes()
[all …]
/drivers/usb/typec/
A Dbus.c21 if (!alt->retimer) in typec_altmode_set_retimer()
24 state.alt = &alt->adev; in typec_altmode_set_retimer()
28 return typec_retimer_set(alt->retimer, &state); in typec_altmode_set_retimer()
36 if (!alt->mux) in typec_altmode_set_mux()
39 state.alt = &alt->adev; in typec_altmode_set_mux()
43 return typec_mux_set(alt->mux, &state); in typec_altmode_set_mux()
52 ret = typec_altmode_set_retimer(alt, conf, data); in typec_altmode_set_switches()
56 return typec_altmode_set_mux(alt, conf, data); in typec_altmode_set_switches()
440 return sprintf(buf, "%s\n", alt->desc ? alt->desc : ""); in description_show()
478 struct device *dev = &alt->adev.dev; in typec_altmode_create_links()
[all …]
A Dclass.c356 return sprintf(buf, "%s\n", alt->desc ? alt->desc : ""); in description_show()
530 altmode_id_remove(alt->adev.dev.parent, alt->id); in typec_altmode_release()
532 kfree(alt); in typec_altmode_release()
550 alt = kzalloc(sizeof(*alt), GFP_KERNEL); in typec_register_altmode()
551 if (!alt) { in typec_register_altmode()
560 alt->id = id; in typec_register_altmode()
572 alt->group.name = alt->group_name; in typec_register_altmode()
573 alt->group.attrs = alt->attrs; in typec_register_altmode()
574 alt->groups[0] = &alt->group; in typec_register_altmode()
577 alt->adev.dev.groups = alt->groups; in typec_register_altmode()
[all …]
/drivers/usb/storage/
A Duas-detect.h19 struct usb_host_interface *alt = &intf->altsetting[i]; in uas_find_uas_alt_setting() local
21 if (uas_is_interface(alt)) in uas_find_uas_alt_setting()
22 return alt; in uas_find_uas_alt_setting()
28 static int uas_find_endpoints(struct usb_host_interface *alt, in uas_find_endpoints() argument
31 struct usb_host_endpoint *endpoint = alt->endpoint; in uas_find_endpoints()
32 unsigned i, n_endpoints = alt->desc.bNumEndpoints; in uas_find_endpoints()
63 struct usb_host_interface *alt; in uas_use_uas_driver() local
66 alt = uas_find_uas_alt_setting(intf); in uas_use_uas_driver()
67 if (!alt) in uas_use_uas_driver()
70 r = uas_find_endpoints(alt, eps); in uas_use_uas_driver()
/drivers/usb/core/
A Dmessage.c1549 if (!alt) { in usb_set_interface()
1625 iface->cur_altsetting = alt; in usb_set_interface()
1751 if (!alt) in usb_reset_configuration()
1752 alt = &intf->altsetting[0]; in usb_reset_configuration()
1758 intf->cur_altsetting = alt; in usb_reset_configuration()
1829 alt = intf->cur_altsetting; in usb_if_uevent()
1832 alt->desc.bInterfaceClass, in usb_if_uevent()
1846 alt->desc.bInterfaceClass, in usb_if_uevent()
2121 if (!alt) in usb_set_configuration()
2122 alt = &intf->altsetting[0]; in usb_set_configuration()
[all …]
A Dconfig.c261 struct usb_host_interface *alt; in config_endpoint_is_duplicate() local
268 alt = &intfc->altsetting[j]; in config_endpoint_is_duplicate()
275 epd = &alt->endpoint[k].desc; in config_endpoint_is_duplicate()
546 kfree(alt->endpoint); in usb_release_interface_cache()
547 kfree(alt->string); in usb_release_interface_cache()
560 struct usb_host_interface *alt; in usb_parse_interface() local
588 (++i, ++alt)) { in usb_parse_interface()
602 alt->extra = buffer; in usb_parse_interface()
605 alt->extralen = i; in usb_parse_interface()
626 if (!alt->endpoint) in usb_parse_interface()
[all …]
/drivers/input/misc/
A Dati_remote2.c772 if (alt->desc.bInterfaceNumber) in ati_remote2_probe()
782 if (alt->desc.bNumEndpoints < 1 || !alt->endpoint) { in ati_remote2_probe()
789 ar2->ep[0] = &alt->endpoint[0].desc; in ati_remote2_probe()
805 alt = ar2->intf[1]->cur_altsetting; in ati_remote2_probe()
806 if (alt->desc.bNumEndpoints < 1 || !alt->endpoint) { in ati_remote2_probe()
855 if (alt->desc.bInterfaceNumber) in ati_remote2_disconnect()
876 if (alt->desc.bInterfaceNumber) in ati_remote2_suspend()
899 if (alt->desc.bInterfaceNumber) in ati_remote2_resume()
923 if (alt->desc.bInterfaceNumber) in ati_remote2_reset_resume()
950 if (alt->desc.bInterfaceNumber) in ati_remote2_pre_reset()
[all …]
/drivers/infiniband/core/
A Dsecurity.c135 if (pps->alt.state != IB_PORT_PKEY_NOT_VALID) { in check_qp_port_pkey_settings()
136 ret = get_pkey_and_subnet_prefix(&pps->alt, in check_qp_port_pkey_settings()
358 new_pps->alt.port_num = qp_attr->alt_port_num; in get_new_pps()
360 new_pps->alt.state = IB_PORT_PKEY_VALID; in get_new_pps()
362 new_pps->alt.port_num = qp_pps->alt.port_num; in get_new_pps()
363 new_pps->alt.pkey_index = qp_pps->alt.pkey_index; in get_new_pps()
365 new_pps->alt.state = IB_PORT_PKEY_VALID; in get_new_pps()
369 new_pps->alt.sec = qp->qp_sec; in get_new_pps()
464 port_pkey_list_remove(&sec->ports_pkeys->alt); in ib_destroy_qp_security_begin()
617 ret = port_pkey_list_insert(&new_pps->alt); in ib_security_modify_qp()
[all …]
/drivers/media/usb/cx231xx/
A Dcx231xx-core.c38 module_param(alt, int, 0644);
469 dev->video_mode.alt = 3; in cx231xx_set_video_alternate()
499 dev->video_mode.alt, in cx231xx_set_video_alternate()
525 dev->ts1_mode.alt = alt; in cx231xx_set_alt_setting()
539 dev->adev.alt = alt; in cx231xx_set_alt_setting()
548 dev->video_mode.alt = alt; in cx231xx_set_alt_setting()
552 alt]; in cx231xx_set_alt_setting()
560 dev->vbi_mode.alt = alt; in cx231xx_set_alt_setting()
569 dev->sliced_cc_mode.alt = alt; in cx231xx_set_alt_setting()
574 alt]; in cx231xx_set_alt_setting()
[all …]
/drivers/media/usb/gspca/stv06xx/
A Dstv06xx.c274 struct usb_host_interface *alt; in stv06xx_start() local
279 alt = usb_altnum_to_altsetting(intf, sd->gspca_dev.alt); in stv06xx_start()
280 if (!alt) { in stv06xx_start()
285 if (alt->desc.bNumEndpoints < 1) in stv06xx_start()
288 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); in stv06xx_start()
313 struct usb_host_interface *alt; in stv06xx_isoc_init() local
321 alt = &intfc->altsetting[1]; in stv06xx_isoc_init()
323 if (alt->desc.bNumEndpoints < 1) in stv06xx_isoc_init()
327 alt->endpoint[0].desc.wMaxPacketSize = in stv06xx_isoc_init()
336 struct usb_host_interface *alt; in stv06xx_isoc_nego() local
[all …]
/drivers/media/usb/gspca/
A Dgspca.c569 u32 alt; member
616 ep_tb->alt = j; in build_isoc_ep_tb()
791 ep_tb[0].alt = gspca_dev->alt; in gspca_init_transfer()
807 gspca_dev->alt = ep_tb[--alt_idx].alt; in gspca_init_transfer()
808 alt = -1; in gspca_init_transfer()
810 if (alt != gspca_dev->alt) { in gspca_init_transfer()
811 alt = gspca_dev->alt; in gspca_init_transfer()
815 alt); in gspca_init_transfer()
826 alt); in gspca_init_transfer()
879 alt); in gspca_init_transfer()
[all …]
/drivers/media/usb/stk1160/
A Dstk1160-v4l.c163 int i, prev_alt = dev->alt; in stk1160_set_alternate()
176 dev->alt = i; in stk1160_set_alternate()
183 dev->alt_max_pkt_size[dev->alt]) in stk1160_set_alternate()
184 dev->alt = i; in stk1160_set_alternate()
187 stk1160_dbg("setting alternate %d\n", dev->alt); in stk1160_set_alternate()
189 if (dev->alt != prev_alt) { in stk1160_set_alternate()
191 min_pkt_size, dev->alt); in stk1160_set_alternate()
193 dev->alt, dev->alt_max_pkt_size[dev->alt]); in stk1160_set_alternate()
194 usb_set_interface(dev->udev, 0, dev->alt); in stk1160_set_alternate()
276 dev->alt = 0; in stk1160_stop_hw()
[all …]
/drivers/media/test-drivers/vivid/
A Dvivid-rds-gen.c130 bool alt) in vivid_rds_gen_fill() argument
135 rds->pty = alt ? 29 : 2; in vivid_rds_gen_fill()
138 rds->pty = alt ? 16 : 3; in vivid_rds_gen_fill()
145 rds->ta = alt; in vivid_rds_gen_fill()
149 if (alt) in vivid_rds_gen_fill()
/drivers/pinctrl/bcm/
A Dpinctrl-nsp-mux.c50 unsigned int alt; member
230 .alt = al, \
406 if (mux_log[i].mux.alt != mux->alt) { in nsp_pinmux_set()
420 mux_log[i].mux.alt = mux->alt; in nsp_pinmux_set()
443 val |= grp->mux.alt << grp->mux.shift; in nsp_pinmux_set()
468 grp->mux.alt); in nsp_pinmux_enable()
547 log->mux.alt = 0; in nsp_mux_log_init()
/drivers/usb/misc/
A Dusbtest.c84 int alt; member
197 dev->info->alt = alt->desc.bAlternateSetting; in get_endpoints()
839 if (alt < 0 || alt >= iface->num_altsetting) { in ch9_postconfig()
842 i, alt); in ch9_postconfig()
2905 .alt = 1,
2913 .alt = 1,
2922 .alt = 1,
2939 .alt = 0,
2945 .alt = -1,
2952 .alt = -1,
[all …]

Completed in 77 milliseconds

123456