Home
last modified time | relevance | path

Searched +full:data +full:- +full:role (Results 1 – 25 of 818) sorted by relevance

12345678910>>...33

/kernel/linux/linux-6.6/drivers/usb/roles/
Dclass.c1 // SPDX-License-Identifier: GPL-2.0
3 * USB Role Switch Support
10 #include <linux/usb/role.h>
25 enum usb_role role; member
40 * usb_role_switch_set_role - Set USB role for a switch
41 * @sw: USB role switch
42 * @role: USB role to be switched to
44 * Set USB role @role for @sw.
46 int usb_role_switch_set_role(struct usb_role_switch *sw, enum usb_role role) in usb_role_switch_set_role() argument
53 if (!sw->registered) in usb_role_switch_set_role()
[all …]
Dintel-xhci-usb-role-switch.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Intel XHCI (Cherry Trail, Broxton and others) USB OTG role switch driver
5 * Copyright (c) 2016-2017 Hans de Goede <hdegoede@redhat.com>
23 #include <linux/usb/role.h>
52 "intel-xhci-usb-sw",
56 enum usb_role role) in intel_xhci_usb_set_role() argument
58 struct intel_xhci_usb_data *data = usb_role_switch_get_drvdata(sw); in intel_xhci_usb_set_role() local
71 dev_err(data->dev, "Error could not acquire lock\n"); in intel_xhci_usb_set_role()
72 return -EIO; in intel_xhci_usb_set_role()
75 pm_runtime_get_sync(data->dev); in intel_xhci_usb_set_role()
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0
4 tristate "USB Role Switch Support"
6 USB Role Switch is a device that can select the USB role - host or
7 device - for a USB port (connector). In most cases dual-role capable
9 multiplexer/demultiplexer switch is used to route the data lines on
19 tristate "Intel XHCI USB Role Switch"
22 Driver for the internal USB role switch for switching the USB data
27 be called intel-xhci-usb-role-switch.
/kernel/linux/linux-5.10/drivers/usb/roles/
Dclass.c1 // SPDX-License-Identifier: GPL-2.0
3 * USB Role Switch Support
10 #include <linux/usb/role.h>
23 enum usb_role role; member
37 * usb_role_switch_set_role - Set USB role for a switch
38 * @sw: USB role switch
39 * @role: USB role to be switched to
41 * Set USB role @role for @sw.
43 int usb_role_switch_set_role(struct usb_role_switch *sw, enum usb_role role) in usb_role_switch_set_role() argument
50 mutex_lock(&sw->lock); in usb_role_switch_set_role()
[all …]
Dintel-xhci-usb-role-switch.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Intel XHCI (Cherry Trail, Broxton and others) USB OTG role switch driver
5 * Copyright (c) 2016-2017 Hans de Goede <hdegoede@redhat.com>
23 #include <linux/usb/role.h>
52 "intel-xhci-usb-sw",
56 enum usb_role role) in intel_xhci_usb_set_role() argument
58 struct intel_xhci_usb_data *data = usb_role_switch_get_drvdata(sw); in intel_xhci_usb_set_role() local
71 dev_err(data->dev, "Error could not acquire lock\n"); in intel_xhci_usb_set_role()
72 return -EIO; in intel_xhci_usb_set_role()
75 pm_runtime_get_sync(data->dev); in intel_xhci_usb_set_role()
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0
4 tristate "USB Role Switch Support"
6 USB Role Switch is a device that can select the USB role - host or
7 device - for a USB port (connector). In most cases dual-role capable
9 multiplexer/demultiplexer switch is used to route the data lines on
19 tristate "Intel XHCI USB Role Switch"
22 Driver for the internal USB role switch for switching the USB data
27 be called intel-xhci-usb-role-switch.
/kernel/linux/linux-5.10/drivers/usb/chipidea/
Dci.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * ci.h - common structures, functions, and macros of the ChipIdea driver
5 * Copyright (C) 2008 Chipidea - MIPS Technologies, Inc. All rights reserved.
17 #include <linux/usb/otg-fsm.h>
19 #include <linux/usb/role.h>
75 * struct ci_hw_ep - endpoint representation
126 * struct ci_role_driver - host/gadget role driver
127 * @start: start this role
128 * @stop: stop this role
129 * @irq: irq handler for this role
[all …]
Dotg.c1 // SPDX-License-Identifier: GPL-2.0
3 * otg.c - ChipIdea USB IP core OTG driver
38 cable = &ci->platdata->vbus_extcon; in hw_read_otgsc()
39 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_read_otgsc()
40 if (cable->changed) in hw_read_otgsc()
45 if (cable->connected) in hw_read_otgsc()
50 if (cable->enabled) in hw_read_otgsc()
56 cable = &ci->platdata->id_extcon; in hw_read_otgsc()
57 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_read_otgsc()
58 if (cable->changed) in hw_read_otgsc()
[all …]
/kernel/linux/linux-6.6/drivers/usb/chipidea/
Dci.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * ci.h - common structures, functions, and macros of the ChipIdea driver
5 * Copyright (C) 2008 Chipidea - MIPS Technologies, Inc. All rights reserved.
17 #include <linux/usb/otg-fsm.h>
19 #include <linux/usb/role.h>
77 * struct ci_hw_ep - endpoint representation
128 * struct ci_role_driver - host/gadget role driver
129 * @start: start this role
130 * @stop: stop this role
131 * @suspend: system suspend handler for this role
[all …]
Dotg.c1 // SPDX-License-Identifier: GPL-2.0
3 * otg.c - ChipIdea USB IP core OTG driver
25 * hw_read_otgsc - returns otgsc register bits value.
38 cable = &ci->platdata->vbus_extcon; in hw_read_otgsc()
39 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_read_otgsc()
40 if (cable->changed) in hw_read_otgsc()
45 if (cable->connected) in hw_read_otgsc()
50 if (cable->enabled) in hw_read_otgsc()
56 cable = &ci->platdata->id_extcon; in hw_read_otgsc()
57 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_read_otgsc()
[all …]
/kernel/linux/linux-6.6/include/linux/usb/
Dtypec.h1 /* SPDX-License-Identifier: GPL-2.0 */
8 /* USB Type-C Specification releases */
58 static inline int is_sink(enum typec_role role) in is_sink() argument
60 return role == TYPEC_SINK; in is_sink()
63 static inline int is_source(enum typec_role role) in is_source() argument
65 return role == TYPEC_SOURCE; in is_source()
90 * struct enter_usb_data - Enter_USB Message details
91 * @eudo: Enter_USB Data Object
94 * @active_link_training is a flag that should be set with uni-directional SBRX
95 * communication, and left 0 with passive cables and with bi-directional SBRX
[all …]
Drole.h1 // SPDX-License-Identifier: GPL-2.0
17 enum usb_role role);
21 * struct usb_role_switch_desc - USB Role Switch Descriptor
22 * @fwnode: The device node to be associated with the role switch
26 * @set: Callback for setting the role
27 * @get: Callback for getting the role (optional)
28 * @allow_userspace_control: If true userspace may change the role through sysfs
29 * @driver_data: Private data pointer
33 * device controller behind the USB connector with the role switch. If
52 int usb_role_switch_set_role(struct usb_role_switch *sw, enum usb_role role);
[all …]
/kernel/linux/linux-5.10/include/linux/usb/
Dtypec.h1 /* SPDX-License-Identifier: GPL-2.0 */
8 /* USB Type-C Specification releases */
76 * struct enter_usb_data - Enter_USB Message details
77 * @eudo: Enter_USB Data Object
80 * @active_link_training is a flag that should be set with uni-directional SBRX
81 * communication, and left 0 with passive cables and with bi-directional SBRX
90 * struct usb_pd_identity - USB Power Delivery identity data
96 * USB power delivery Discover Identity command response data.
112 * struct typec_altmode_desc - USB Type-C Alternate Mode Descriptor
150 * struct typec_plug_desc - USB Type-C Cable Plug Descriptor
[all …]
Drole.h1 // SPDX-License-Identifier: GPL-2.0
17 enum usb_role role);
21 * struct usb_role_switch_desc - USB Role Switch Descriptor
22 * @fwnode: The device node to be associated with the role switch
26 * @set: Callback for setting the role
27 * @get: Callback for getting the role (optional)
28 * @allow_userspace_control: If true userspace may change the role through sysfs
29 * @driver_data: Private data pointer
33 * device controller behind the USB connector with the role switch. If
52 int usb_role_switch_set_role(struct usb_role_switch *sw, enum usb_role role);
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/connector/
Dusb-connector.yaml1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
4 $id: http://devicetree.org/schemas/connector/usb-connector.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Rob Herring <robh@kernel.org>
20 - enum:
21 - usb-a-connector
22 - usb-b-connector
23 - usb-c-connector
25 - items:
[all …]
/kernel/linux/linux-6.6/security/selinux/ss/
Dpolicydb.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * configuration data for the security policy.
18 * Copyright (C) 2004-2005 Trusted Computer Solutions, Inc.
19 * Copyright (C) 2003 - 2004 Tresys Technology, LLC
35 * in the configuration data: individual permissions,
56 struct symtab permissions; /* class-specific permission symbol table */
59 /* Options how a new object user, role, and type should be decided */
76 /* Role attributes */
78 u32 value; /* internal role value */
79 u32 bounds; /* boundary of role */
[all …]
/kernel/linux/linux-5.10/security/selinux/ss/
Dpolicydb.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * configuration data for the security policy.
18 * Copyright (C) 2004-2005 Trusted Computer Solutions, Inc.
19 * Copyright (C) 2003 - 2004 Tresys Technology, LLC
35 * in the configuration data: individual permissions,
56 struct symtab permissions; /* class-specific permission symbol table */
59 /* Options how a new object user, role, and type should be decided */
76 /* Role attributes */
78 u32 value; /* internal role value */
79 u32 bounds; /* boundary of role */
[all …]
/kernel/linux/linux-6.6/drivers/usb/cdns3/
Dcore.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2018-2019 Cadence.
6 * Copyright (C) 2017-2018 NXP
14 #include <linux/dma-mapping.h>
24 #include "host-export.h"
29 static int cdns_role_start(struct cdns *cdns, enum usb_role role) in cdns_role_start() argument
33 if (WARN_ON(role > USB_ROLE_DEVICE)) in cdns_role_start()
36 mutex_lock(&cdns->mutex); in cdns_role_start()
37 cdns->role = role; in cdns_role_start()
38 mutex_unlock(&cdns->mutex); in cdns_role_start()
[all …]
/kernel/linux/linux-6.6/drivers/extcon/
Dextcon-usbc-cros-ec.c1 // SPDX-License-Identifier: GPL-2.0
7 #include <linux/extcon-provider.h>
28 unsigned int dr; /* data role */
29 bool pr; /* power role (true if VBUS enabled) */
49 * cros_ec_pd_command() - Send a command to the EC.
53 * @outdata: EC command output data
55 * @indata: EC command input data
71 msg = kzalloc(struct_size(msg, data, max(outsize, insize)), GFP_KERNEL); in cros_ec_pd_command()
73 return -ENOMEM; in cros_ec_pd_command()
75 msg->version = version; in cros_ec_pd_command()
[all …]
/kernel/linux/linux-5.10/drivers/usb/cdns3/
Dcore.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright (C) 2017-2018 NXP
6 * Copyright (C) 2018-2019 Cadence.
12 #include <linux/usb/role.h>
20 * struct cdns3_role_driver - host/gadget role driver
21 * @start: start this role
22 * @stop: stop this role
23 * @suspend: suspend callback for this role
24 * @resume: resume callback for this role
25 * @irq: irq handler for this role
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/connector/
Dusb-connector.yaml1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
4 $id: http://devicetree.org/schemas/connector/usb-connector.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Rob Herring <robh@kernel.org>
20 - enum:
21 - usb-a-connector
22 - usb-b-connector
23 - usb-c-connector
25 - items:
[all …]
/kernel/linux/linux-5.10/drivers/usb/typec/mux/
Dintel_pmc_mux.c1 // SPDX-License-Identifier: GPL-2.0
14 #include <linux/usb/role.h>
59 /* Common Mode Data bits */
65 /* DP specific Mode Data bits */
68 /* TBT specific Mode Data bits */
129 enum usb_role role; member
152 /* SoC expects the USB Type-C port numbers to start with 0 */ in update_port_status()
153 port_num = port->usb3_port - 1; in update_port_status()
155 port->iom_status = readl(port->pmc->iom_base + in update_port_status()
156 port->pmc->iom_port_status_offset + in update_port_status()
[all …]
/kernel/linux/linux-5.10/drivers/usb/typec/
Dqcom-pmic-typec.c1 // SPDX-License-Identifier: GPL-2.0
15 #include <linux/usb/role.h>
51 if (enable == qcom_usb->vbus_enabled) in qcom_pmic_typec_enable_vbus_regulator()
55 ret = regulator_enable(qcom_usb->vbus_reg); in qcom_pmic_typec_enable_vbus_regulator()
59 ret = regulator_disable(qcom_usb->vbus_reg); in qcom_pmic_typec_enable_vbus_regulator()
63 qcom_usb->vbus_enabled = enable; in qcom_pmic_typec_enable_vbus_regulator()
69 enum usb_role role; in qcom_pmic_typec_check_connection() local
73 regmap_read(qcom_usb->regmap, qcom_usb->base + TYPEC_MISC_STATUS, in qcom_pmic_typec_check_connection()
80 typec_set_orientation(qcom_usb->port, orientation); in qcom_pmic_typec_check_connection()
82 role = (stat & SNK_SRC_MODE) ? USB_ROLE_HOST : USB_ROLE_DEVICE; in qcom_pmic_typec_check_connection()
[all …]
/kernel/linux/linux-5.10/drivers/extcon/
Dextcon-usbc-cros-ec.c1 // SPDX-License-Identifier: GPL-2.0
7 #include <linux/extcon-provider.h>
28 unsigned int dr; /* data role */
29 bool pr; /* power role (true if VBUS enabled) */
49 * cros_ec_pd_command() - Send a command to the EC.
53 * @outdata: EC command output data
55 * @indata: EC command input data
73 return -ENOMEM; in cros_ec_pd_command()
75 msg->version = version; in cros_ec_pd_command()
76 msg->command = command; in cros_ec_pd_command()
[all …]
/kernel/linux/linux-6.6/drivers/usb/typec/mux/
Dintel_pmc_mux.c1 // SPDX-License-Identifier: GPL-2.0
14 #include <linux/usb/role.h>
61 /* Common Mode Data bits */
67 /* DP specific Mode Data bits */
70 /* TBT specific Mode Data bits */
142 enum usb_role role; member
170 /* SoC expects the USB Type-C port numbers to start with 0 */ in update_port_status()
171 port_num = port->usb3_port - 1; in update_port_status()
173 port->iom_status = readl(port->pmc->iom_base + in update_port_status()
174 port->pmc->iom_port_status_offset + in update_port_status()
[all …]

12345678910>>...33