Home
last modified time | relevance | path

Searched full:role (Results 1 – 25 of 470) sorted by relevance

12345678910>>...19

/linux/drivers/usb/roles/
H A Dclass.c3 * USB Role Switch Support
11 #include <linux/usb/role.h>
28 enum usb_role role; member
50 ret = sysfs_create_link(&connector->kobj, &dev->kobj, "usb-role-switch"); in connector_bind()
59 sysfs_remove_link(&connector->kobj, "usb-role-switch"); in connector_unbind()
69 * usb_role_switch_set_role - Set USB role for a switch
70 * @sw: USB role switch
71 * @role: USB role to be switched to
73 * Set USB role @role for @sw.
75 int usb_role_switch_set_role(struct usb_role_switch *sw, enum usb_role role) in usb_role_switch_set_role() argument
[all …]
H A DKconfig4 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
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.
/linux/drivers/usb/dwc2/
H A Ddrd.c3 * drd.c - DesignWare USB2 DRD Controller Dual-role support
13 #include <linux/usb/role.h>
86 static int dwc2_drd_role_sw_set(struct usb_role_switch *sw, enum usb_role role) in dwc2_drd_role_sw_set() argument
93 if ((role == USB_ROLE_DEVICE && hsotg->dr_mode == USB_DR_MODE_HOST) || in dwc2_drd_role_sw_set()
94 (role == USB_ROLE_HOST && hsotg->dr_mode == USB_DR_MODE_PERIPHERAL)) in dwc2_drd_role_sw_set()
100 if (role == USB_ROLE_NONE && hsotg->test_mode) { in dwc2_drd_role_sw_set()
109 * If role-switch set is called before the udc_start, we need to enable in dwc2_drd_role_sw_set()
122 if (role == USB_ROLE_NONE) { in dwc2_drd_role_sw_set()
123 /* default operation mode when usb role is USB_ROLE_NONE */ in dwc2_drd_role_sw_set()
125 role = USB_ROLE_HOST; in dwc2_drd_role_sw_set()
[all …]
H A DKconfig10 Say Y here if your system has a Dual Role Hi-Speed USB
18 dwc2_platform.ko. For all modes(host, gadget and dual-role), there
37 comment "Gadget/Dual-role mode requires USB Gadget support to be enabled"
49 bool "Dual Role mode"
52 Select this option if you want the driver to work in a dual-role
54 the role will be determined by the cable that gets plugged-in. This
/linux/include/linux/usb/
H A Drole.h17 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
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);
68 const char *usb_role_string(enum usb_role role);
71 enum usb_role role) in usb_role_switch_set_role() argument
[all …]
/linux/drivers/extcon/
H A Dextcon-usbc-cros-ec.c28 unsigned int dr; /* data role */
29 bool pr; /* power role (true if VBUS enabled) */
136 * cros_ec_usb_get_role() - Get role info about possible PD device attached to a
141 * Return: role info on success, -ENOTCONN if no cable is connected, <0 on
152 pd_control.role = USB_PD_CTRL_ROLE_NO_CHANGE; in cros_ec_usb_get_role()
166 return resp.role; in cros_ec_usb_get_role()
188 static const char *cros_ec_usb_role_string(unsigned int role) in cros_ec_usb_role_string() argument
190 return role == DR_NONE ? "DISCONNECTED" : in cros_ec_usb_role_string()
191 (role == DR_HOST ? "DFP" : "UFP"); in cros_ec_usb_role_string()
223 unsigned int role) in cros_ec_usb_power_type_is_wall_wart() argument
[all …]
/linux/net/bridge/
H A Dbr_mrp.c261 * - when node role is MRM, in this case test_monitor is always set to false in br_mrp_alloc_in_test_skb()
264 * - when node role is MRA, there are 2 subcases: in br_mrp_alloc_in_test_skb()
265 * - when MRA behaves as MRM, in this case is similar with MRM role in br_mrp_alloc_in_test_skb()
288 * role MRA and behaves as MRC. The reason is that the in br_mrp_test_work_expired()
291 * the role of a MRM. in br_mrp_test_work_expired()
339 /* This function is continuously called when the node has the interconnect role in br_mrp_test_work_expired()
428 /* Stop sending MRP_InTest frames if has an interconnect role */ in br_mrp_del_impl()
605 /* Set port role, port role can be primary or secondary in br_mrp_set_port_state()
609 enum br_mrp_port_role_type role) in br_mrp_set_port_state()
616 br_mrp_set_port_role(struct net_bridge_port * p,enum br_mrp_port_role_type role) br_mrp_set_port_role() argument
670 br_mrp_set_ring_role(struct net_bridge * br,struct br_mrp_ring_role * role) br_mrp_set_ring_role() argument
756 br_mrp_set_in_role(struct net_bridge * br,struct br_mrp_in_role * role) br_mrp_set_in_role() argument
[all...]
H A Dbr_mrp_switchdev.c66 enum br_mrp_ring_role_type role) in br_mrp_switchdev_set_ring_role() argument
71 .ring_role = role, in br_mrp_switchdev_set_ring_role()
82 role != BR_MRP_RING_ROLE_DISABLED); in br_mrp_switchdev_set_ring_role()
90 if (role != BR_MRP_RING_ROLE_DISABLED) in br_mrp_switchdev_set_ring_role()
142 enum br_mrp_in_role_type role) in br_mrp_switchdev_set_in_role() argument
147 .in_role = role, in br_mrp_switchdev_set_in_role()
160 role != BR_MRP_IN_ROLE_DISABLED); in br_mrp_switchdev_set_in_role()
168 if (role != BR_MRP_IN_ROLE_DISABLED) in br_mrp_switchdev_set_in_role()
229 enum br_mrp_port_role_type role) in br_mrp_port_switchdev_set_role() argument
234 .u.mrp_port_role = role, in br_mrp_port_switchdev_set_role()
H A Dbr_private_mrp.h71 enum br_mrp_port_role_type role);
74 int br_mrp_set_ring_role(struct net_bridge *br, struct br_mrp_ring_role *role);
77 int br_mrp_set_in_role(struct net_bridge *br, struct br_mrp_in_role *role);
86 enum br_mrp_ring_role_type role);
95 enum br_mrp_port_role_type role);
99 enum br_mrp_in_role_type role);
/linux/drivers/usb/common/
H A Dusb-conn-gpio.c23 #include <linux/usb/role.h>
59 * Role | ID | VBUS
73 enum usb_role role; in usb_conn_detect_cable() local
86 role = USB_ROLE_HOST; in usb_conn_detect_cable()
88 role = USB_ROLE_DEVICE; in usb_conn_detect_cable()
90 role = USB_ROLE_NONE; in usb_conn_detect_cable()
92 dev_dbg(info->dev, "role %s -> %s, gpios: id %d, vbus %d\n", in usb_conn_detect_cable()
93 usb_role_string(info->last_role), usb_role_string(role), id, vbus); in usb_conn_detect_cable()
95 if (!info->initial_detection && info->last_role == role) { in usb_conn_detect_cable()
96 dev_warn(info->dev, "repeated role: %s\n", usb_role_string(role)); in usb_conn_detect_cable()
[all …]
/linux/security/selinux/ss/
H A Dpolicydb.h57 /* Options how a new object user, role, and type should be decided */
74 /* Role attributes */
76 u32 value; /* internal role value */
77 u32 bounds; /* boundary of role, 0 for none */
78 struct ebitmap dominates; /* set of roles dominated by this role */
79 struct ebitmap types; /* set of authorized types for role */
83 u32 role; /* current role */ member
89 u32 new_role; /* new role */
105 u32 role; /* curren member
[all...]
/linux/Documentation/ABI/testing/
H A Dsysfs-class-usb_role5 Place in sysfs for USB Role Switches. USB Role Switch is a
6 device that can select the data role (host or device) for USB
9 What: /sys/class/usb_role/<switch>/role
13 The current role of the switch. This attribute can be used for
14 requesting role swapping with non-USB Type-C ports. With USB
H A Dsysfs-platform-chipidea-usb21 What: /sys/bus/platform/devices/ci_hdrc.0/role
6 the current controller role.
8 It will do role switch when "gadget" or "host" is written to it.
9 Only controller at dual-role configuration supports writing.
/linux/drivers/usb/chipidea/
H A Dcore.c575 if (ci->role != CI_ROLE_END) in ci_irq_handler()
606 enum usb_role role; in ci_usb_role_switch_get() local
610 role = ci_role_to_usb_role(ci); in ci_usb_role_switch_get()
613 return role; in ci_usb_role_switch_get()
617 enum usb_role role) in ci_usb_role_switch_set() argument
624 cable->connected = (role == USB_ROLE_HOST); in ci_usb_role_switch_set()
628 cable->connected = (role == USB_ROLE_DEVICE); in ci_usb_role_switch_set()
636 enum ci_role role; in ci_get_role() local
640 role = ci_otg_role(ci); in ci_get_role()
645 * role switch, the defalt role is gadget, and the in ci_get_role()
[all …]
/linux/Documentation/gpu/amdgpu/display/
H A Ddcn3_cm_drm_current.svg679 sodipodi:role="line"
689 sodipodi:role="line"
699 sodipodi:role="line"
709 sodipodi:role="line"
719 sodipodi:role="line"
730 sodipodi:role="line"
741 sodipodi:role="line"
752 sodipodi:role="line"
763 sodipodi:role="line"
774 sodipodi:role="line"
[all …]
H A Ddcn2_cm_drm_current.svg618 sodipodi:role="line"
628 sodipodi:role="line"
638 sodipodi:role="line"
648 sodipodi:role="line"
658 sodipodi:role="line"
669 sodipodi:role="line"
680 sodipodi:role="line"
691 sodipodi:role="line"
702 sodipodi:role="line"
713 sodipodi:role="line"
[all …]
/linux/Documentation/devicetree/bindings/connector/
H A Dusb-connector.yaml65 mode or dual role mode is supported.
69 power-role:
70 description: Determines the power role that the Type C connector will
71 support. "dual" refers to Dual Role Port (DRP).
79 try-power-role:
80 description: Preferred power role.
88 data-role:
89 description: Data role if Type C connector supports USB data. "dual" refers
90 Dual Role Device (DRD).
215 is applied during PD3.0 Fast Role Swap. "Table 6-14 Fixed Supply PDO - Sink"
[all …]
/linux/drivers/s390/net/
H A Dqeth_l2_sys.c29 &card->options.sbp.role, &state, &os_mismatch); in qeth_bridge_port_role_state_show()
43 switch (card->options.sbp.role) { in qeth_bridge_port_role_state_show()
55 card->options.sbp.role, state); in qeth_bridge_port_role_state_show()
57 card->options.sbp.role == QETH_SBP_ROLE_NONE && in qeth_bridge_port_role_state_show()
84 enum qeth_sbp_roles role; in qeth_bridge_port_role_store()
87 role = QETH_SBP_ROLE_PRIMARY; in qeth_bridge_port_role_store()
89 role = QETH_SBP_ROLE_SECONDARY; in qeth_bridge_port_role_store()
91 role = QETH_SBP_ROLE_NONE; in qeth_bridge_port_role_store()
104 rc = qeth_bridgeport_setrole(card, role); in qeth_bridge_port_role_store()
106 card->options.sbp.role in qeth_bridge_port_role_store()
79 enum qeth_sbp_roles role; qeth_bridge_port_role_store() local
[all...]
/linux/arch/x86/kvm/mmu/
H A Dmmutrace.h14 __field(__u32, role) \
21 __entry->role = sp->role.word; \
31 union kvm_mmu_page_role role; \
33 role.word = __entry->role; \
38 __entry->gfn, role.level, \
39 role.has_4_byte_gpte ? 4 : 8, \
40 role.quadrant, \
41 role.direct ? " direct" : "", \
42 access_str[role.access], \
43 role.invalid ? " invalid" : "", \
[all …]
/linux/Documentation/devicetree/bindings/usb/
H A Dusb-drd.yaml25 Tells Dual-Role USB controllers that we want to work on a particular
51 usb-role-switch:
53 Indicates that the device is capable of assigning the USB data role
57 role-switch-default-mode:
59 Indicates if usb-role-switch is enabled, the device default operation
60 mode of controller while usb role is USB_ROLE_NONE.
H A Dmediatek,musb.yaml50 usb-role-switch:
52 description: Support role switch. See usb/generic.txt
67 description: Connector for dual role switch
71 usb-role-switch: [ connector ]
72 connector: [ usb-role-switch ]
106 usb-role-switch;
/linux/drivers/media/tuners/
H A Dit913x.c18 u8 role:2; member
36 dev_dbg(&pdev->dev, "role %u\n", dev->role); in it913x_init()
154 dev_dbg(&pdev->dev, "role %u\n", dev->role); in it913x_sleep()
166 if (dev->role == IT913X_ROLE_DUAL_MASTER) in it913x_sleep()
171 dev_dbg(&pdev->dev, "role %u, len %d\n", dev->role, len); in it913x_sleep()
218 dev_dbg(&pdev->dev, "role=%u, frequency %u, bandwidth_hz %u\n", in it913x_set_params()
219 dev->role, c->frequency, c->bandwidth_hz); in it913x_set_params()
399 dev->role = pdata->role; in it913x_probe()
415 dev_dbg(&pdev->dev, "chip_ver %u, role %u\n", dev->chip_ver, dev->role); in it913x_probe()
/linux/drivers/usb/mtu3/
H A DKconfig6 tristate "MediaTek USB3 Dual Role controller"
13 Dual Role SuperSpeed USB controller. You can select usb
14 mode as peripheral role or host role, or both.
44 bool "Dual Role mode"
/linux/arch/arm64/boot/dts/qcom/
H A Dsc7280-idp-ec-h1.dtsi45 power-role = "dual";
46 data-role = "host";
47 try-power-role = "source";
54 power-role = "dual";
55 data-role = "host";
56 try-power-role = "source";
/linux/Documentation/RCU/Design/Requirements/
H A DReadersPartitionGP1.svg140 sodipodi:role="line">synchronize_rcu()</tspan></text>
171 sodipodi:role="line"
182 sodipodi:role="line"
193 sodipodi:role="line"
204 sodipodi:role="line"
215 sodipodi:role="line"
226 sodipodi:role="line"
237 sodipodi:role="line"
248 sodipodi:role="line"
259 sodipodi:role="line"
[all …]

12345678910>>...19