Home
last modified time | relevance | path

Searched refs:mode_switch (Results 1 – 18 of 18) sorted by relevance

/Linux-v6.1/drivers/platform/surface/
Dsurface_aggregator_tabletsw.c34 struct input_dev *mode_switch; member
95 input_report_switch(sw->mode_switch, SW_TABLET_MODE, tablet); in ssam_tablet_sw_update_workfn()
96 input_sync(sw->mode_switch); in ssam_tablet_sw_update_workfn()
140 sw->mode_switch = devm_input_allocate_device(&sdev->dev); in ssam_tablet_sw_probe()
141 if (!sw->mode_switch) in ssam_tablet_sw_probe()
144 sw->mode_switch->name = desc->dev.name; in ssam_tablet_sw_probe()
145 sw->mode_switch->phys = desc->dev.phys; in ssam_tablet_sw_probe()
146 sw->mode_switch->id.bustype = BUS_HOST; in ssam_tablet_sw_probe()
147 sw->mode_switch->dev.parent = &sdev->dev; in ssam_tablet_sw_probe()
150 input_set_capability(sw->mode_switch, EV_SW, SW_TABLET_MODE); in ssam_tablet_sw_probe()
[all …]
Dsurface_dtx.c167 struct input_dev *mode_switch; member
782 input_report_switch(ddev->mode_switch, SW_TABLET_MODE, tablet); in sdtx_device_mode_workfn()
783 input_sync(ddev->mode_switch); in sdtx_device_mode_workfn()
851 input_report_switch(ddev->mode_switch, SW_TABLET_MODE, tablet); in __sdtx_device_state_update_mode()
852 input_sync(ddev->mode_switch); in __sdtx_device_state_update_mode()
999 ddev->mode_switch = input_allocate_device(); in sdtx_device_init()
1000 if (!ddev->mode_switch) in sdtx_device_init()
1003 ddev->mode_switch->name = "Microsoft Surface DTX Device Mode Switch"; in sdtx_device_init()
1004 ddev->mode_switch->phys = "ssam/01:11:01:00:00/input0"; in sdtx_device_init()
1005 ddev->mode_switch->id.bustype = BUS_HOST; in sdtx_device_init()
[all …]
/Linux-v6.1/drivers/platform/chrome/
Dcros_typec_switch.c24 struct typec_mux_dev *mode_switch; member
146 static int cros_typec_mode_switch_set(struct typec_mux_dev *mode_switch, in cros_typec_mode_switch_set() argument
149 struct cros_typec_port *port = typec_mux_get_drvdata(mode_switch); in cros_typec_mode_switch_set()
171 typec_mux_unregister(sdata->ports[i]->mode_switch); in cros_typec_unregister_switches()
185 port->mode_switch = typec_mux_register(port->sdata->dev, &mode_switch_desc); in cros_typec_register_mode_switch()
187 return PTR_ERR_OR_ZERO(port->mode_switch); in cros_typec_register_mode_switch()
/Linux-v6.1/drivers/video/console/
Ddummycon.c80 static int dummycon_blank(struct vc_data *vc, int blank, int mode_switch) in dummycon_blank() argument
89 static int dummycon_blank(struct vc_data *vc, int blank, int mode_switch) in dummycon_blank() argument
Dsticon.c317 static int sticon_blank(struct vc_data *c, int blank, int mode_switch) in sticon_blank() argument
320 if (mode_switch) in sticon_blank()
326 if (mode_switch) in sticon_blank()
Dvgacon.c73 static int vgacon_blank(struct vc_data *c, int blank, int mode_switch);
789 static int vgacon_blank(struct vc_data *c, int blank, int mode_switch) in vgacon_blank() argument
807 if (!mode_switch && vga_video_type == VIDEO_TYPE_VGAC) { in vgacon_blank()
815 if (mode_switch) in vgacon_blank()
Dmdacon.c467 static int mdacon_blank(struct vc_data *c, int blank, int mode_switch) in mdacon_blank() argument
Dnewport_con.c482 static int newport_blank(struct vc_data *c, int blank, int mode_switch) in newport_blank() argument
/Linux-v6.1/drivers/greybus/
Dgreybus_trace.h306 __field(int, mode_switch) /* bool */
317 __entry->mode_switch = intf->mode_switch;
323 __entry->enabled, __entry->mode_switch)
Dinterface.c230 if (!intf->mode_switch) { in gb_interface_mailbox_event()
264 intf->mode_switch = false; in gb_interface_mode_switch_work()
296 intf->mode_switch = false; in gb_interface_mode_switch_work()
314 intf->mode_switch = false; in gb_interface_mode_switch_work()
326 if (intf->mode_switch) { in gb_interface_request_mode_switch()
331 intf->mode_switch = true; in gb_interface_request_mode_switch()
1049 if (intf->mode_switch) in gb_interface_deactivate()
1200 if (!intf->mode_switch && !intf->disconnected) in gb_interface_disable()
Dconnection.c361 if (connection->mode_switch) in gb_connection_hd_cport_quiesce()
509 if (connection->mode_switch) { in gb_connection_control_disconnected()
804 connection->mode_switch = true; in gb_connection_mode_switch_prepare()
814 connection->mode_switch = false; in gb_connection_mode_switch_complete()
842 if (!connection->mode_switch) { in gb_connection_disable()
/Linux-v6.1/include/linux/greybus/
Dinterface.h63 bool mode_switch; member
Dconnection.h64 bool mode_switch; member
/Linux-v6.1/include/linux/
Dconsole.h59 int (*con_blank)(struct vc_data *vc, int blank, int mode_switch);
/Linux-v6.1/drivers/usb/misc/sisusbvga/
Dsisusb_con.c592 sisusbcon_blank(struct vc_data *c, int blank, int mode_switch) in sisusbcon_blank() argument
604 if (mode_switch) in sisusbcon_blank()
1343 static int sisusbdummycon_blank(struct vc_data *vc, int blank, int mode_switch) in sisusbdummycon_blank() argument
/Linux-v6.1/drivers/video/fbdev/aty/
Dradeonfb.h507 extern int radeon_screen_blank(struct radeonfb_info *rinfo, int blank, int mode_switch);
Dradeon_base.c1038 int radeon_screen_blank(struct radeonfb_info *rinfo, int blank, int mode_switch) in radeon_screen_blank() argument
1079 if (mode_switch || blank == FB_BLANK_NORMAL) in radeon_screen_blank()
1099 if (mode_switch) { in radeon_screen_blank()
1115 if (mode_switch || blank == FB_BLANK_NORMAL) in radeon_screen_blank()
/Linux-v6.1/drivers/video/fbdev/core/
Dfbcon.c2208 static int fbcon_blank(struct vc_data *vc, int blank, int mode_switch) in fbcon_blank() argument
2213 if (mode_switch) { in fbcon_blank()
2241 if (mode_switch || fbcon_is_inactive(vc, info) || in fbcon_blank()