Home
last modified time | relevance | path

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

12345678910>>...12

/linux/drivers/usb/roles/
H A Dclass.c1 // SPDX-License-Identifier: GPL-2.0
3 * USB Role Switch Support
11 #include <linux/usb/role.h>
28 enum usb_role role; member
42 static int connector_bind(struct device *dev, struct device *connector, void *data) in connector_bind() argument
46 ret = sysfs_create_link(&dev->kobj, &connector->kobj, "connector"); in connector_bind()
50 ret = sysfs_create_link(&connector->kobj, &dev->kobj, "usb-role-switch"); in connector_bind()
52 sysfs_remove_link(&dev->kobj, "connector"); in connector_bind()
57 static void connector_unbind(struct device *dev, struct device *connector, void *data) in connector_unbind() argument
59 sysfs_remove_link(&connector->kobj, "usb-role-switch"); in connector_unbind()
[all …]
H A 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.
/linux/security/selinux/ss/
H A Dpolicydb.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * configuration data for the security policy.
12 * Copyright (C) 2004-2005 Trusted Computer Solutions, Inc.
17 * Copyright (C) 2003-2004 Tresys Technology, LLC
33 * in the configuration data: individual permissions,
54 struct symtab permissions; /* class-specific permission symbol table */
57 /* Options how a new object user, role, an
83 u32 role; /* current role */ global() member
105 u32 role; /* current role */ global() member
318 char *data; global() member
[all...]
H A Dservices.c1 // SPDX-License-Identifier: GPL-2.0-only
17 * Updated: Hewlett-Packard <paul@paul-moore.com>
35 * Copyright (C) 2006, 2007 Hewlett-Packard Development Company, L.P.
36 * Copyright (C) 2004-2006 Trusted Computer Solutions, Inc.
37 * Copyright (C) 2003 - 2004, 2006 Tresys Technology, LLC
105 return -EINVAL; in selinux_set_mapping()
111 out_map->mapping = kzalloc_objs(*out_map->mapping, ++i, GFP_ATOMIC); in selinux_set_mapping()
112 if (!out_map->mapping) in selinux_set_mapping()
113 return -ENOMEM; in selinux_set_mapping()
119 struct selinux_mapping *p_out = out_map->mapping + j; in selinux_set_mapping()
[all …]
H A Dpolicydb.c1 // SPDX-License-Identifier: GPL-2.0-only
11 * Copyright (C) 2004-2005 Trusted Computer Solutions, Inc.
16 * Copyright (C) 2003-2004 Tresys Technology, LLC
18 * Updated: Hewlett-Packard <paul@paul-moore.com>
20 * Copyright (C) 2007 Hewlett-Packard Development Company, L.P.
42 /* clang-format off */
53 /* clang-format off */
66 .sym_num = SYM_NUM - 3,
67 .ocon_num = OCON_NUM - 3,
71 .sym_num = SYM_NUM - 2,
[all …]
/linux/include/linux/usb/
H A 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 …]
/linux/drivers/extcon/
H A 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_flex(*msg, data, max(outsize, insize)); in cros_ec_pd_command()
73 return -ENOMEM; in cros_ec_pd_command()
75 msg->version = version; in cros_ec_pd_command()
[all …]
/linux/Documentation/devicetree/bindings/connector/
H A 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 …]
/linux/drivers/usb/mtu3/
H A Dmtu3.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * mtu3.h - MediaTek USB3 DRD header
26 #include <linux/usb/role.h>
35 #define MU3D_EP_TXCR0(epnum) (U3D_TX1CSR0 + (((epnum) - 1) * 0x10))
36 #define MU3D_EP_TXCR1(epnum) (U3D_TX1CSR1 + (((epnum) - 1) * 0x10))
37 #define MU3D_EP_TXCR2(epnum) (U3D_TX1CSR2 + (((epnum) - 1) * 0x10))
39 #define MU3D_EP_RXCR0(epnum) (U3D_RX1CSR0 + (((epnum) - 1) * 0x10))
40 #define MU3D_EP_RXCR1(epnum) (U3D_RX1CSR1 + (((epnum) - 1) * 0x10))
41 #define MU3D_EP_RXCR2(epnum) (U3D_RX1CSR2 + (((epnum) - 1) * 0x10))
43 #define USB_QMU_TQHIAR(epnum) (U3D_TXQHIAR1 + (((epnum) - 1) * 0x4))
[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
15 Type-C ports, the ABI defined for USB Type-C connector class
19 - none
20 - host
21 - device
27 Optional symlink to the USB Type-C connector.
/linux/arch/arm64/boot/dts/qcom/
H A Dsc7280-idp-ec-h1.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
11 pinctrl-0 = <&qup_spi10_data_clk>, <&qup_spi10_cs_gpio_init_high>, <&qup_spi10_cs_gpio>;
12 cs-gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
15 compatible = "google,cros-ec-spi";
17 interrupt-parent = <&tlmm>;
19 pinctrl-names = "default";
20 pinctrl-0 = <&ap_ec_int_l>;
21 spi-max-frequency = <3000000>;
22 wakeup-source;
25 compatible = "google,cros-ec-pwm";
[all …]
/linux/net/bridge/
H A Dbr_private_mrp.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
53 * BR_MRP_NONE - means the HW can't run at all the protocol, so the SW stops
55 * BR_MRP_SW - the HW can help the SW to run the protocol, by redirecting MRP
57 * BR_MRP_HW - the HW can implement completely the protocol.
71 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);
[all …]
/linux/drivers/platform/x86/intel/
H A Dchtwc_int33fe.c1 // SPDX-License-Identifier: GPL-2.0
12 * 3. FUSB302 USB Type-C Controller
16 * instantiate I²C clients for chips 2 - 4, so that standard I²C drivers
38 * Grrr, I severely dislike buggy BIOS-es. At least one BIOS enumerates
45 static int cht_int33fe_check_for_max17047(struct device *dev, void *data) in cht_int33fe_check_for_max17047() argument
47 struct i2c_client **max17047 = data; in cht_int33fe_check_for_max17047()
62 static const char * const max17047_suppliers[] = { "bq24190-charger" };
65 PROPERTY_ENTRY_STRING_ARRAY("supplied-from", max17047_suppliers),
84 PROPERTY_ENTRY_STRING("linux,extcon-name", "cht_wcove_pwrsrc"),
85 PROPERTY_ENTRY_REF_ARRAY("usb-role-switch", fusb302_mux_refs),
[all …]
/linux/drivers/s390/net/
H A Dqeth_l2_main.c1 // SPDX-License-Identifier: GPL-2.0
43 rc = -EOPNOTSUPP; in qeth_l2_setdelmac_makerc()
46 rc = -ENOSPC; in qeth_l2_setdelmac_makerc()
50 rc = -EADDRINUSE; in qeth_l2_setdelmac_makerc()
54 rc = -EADDRNOTAVAIL; in qeth_l2_setdelmac_makerc()
57 rc = -ENOENT; in qeth_l2_setdelmac_makerc()
60 rc = -EIO; in qeth_l2_setdelmac_makerc()
68 unsigned long data) in qeth_l2_send_setdelmac_cb() argument
216 qeth_l2_send_setdelvlan_cb(struct qeth_card * card,struct qeth_reply * reply,unsigned long data) qeth_l2_send_setdelvlan_cb() argument
391 int role; qeth_l2_promisc_to_bridge() local
1301 u8 role; global() member
1307 struct qeth_bridge_state_data *data = qeth_bridge_state_change_worker() local
1339 struct qeth_bridge_state_data *data; qeth_bridge_state_change() local
1374 struct qeth_addr_change_data *data; qeth_l2_dev2br_worker() local
1451 struct qeth_addr_change_data *data; qeth_addr_change_event_worker() local
1505 struct qeth_addr_change_data *data; qeth_addr_change_event() local
1546 enum qeth_sbp_roles *role; global() member
1549 } data; global() member
1675 qeth_bridgeport_query_support_cb(struct qeth_card * card,struct qeth_reply * reply,unsigned long data) qeth_bridgeport_query_support_cb() argument
1719 qeth_bridgeport_query_ports_cb(struct qeth_card * card,struct qeth_reply * reply,unsigned long data) qeth_bridgeport_query_ports_cb() argument
1757 qeth_bridgeport_query_ports(struct qeth_card * card,enum qeth_sbp_roles * role,enum qeth_sbp_states * state) qeth_bridgeport_query_ports() argument
1781 qeth_bridgeport_set_cb(struct qeth_card * card,struct qeth_reply * reply,unsigned long data) qeth_bridgeport_set_cb() argument
1796 qeth_bridgeport_setrole(struct qeth_card * card,enum qeth_sbp_roles role) qeth_bridgeport_setrole() argument
1908 qeth_l2_vnicc_request_cb(struct qeth_card * card,struct qeth_reply * reply,unsigned long data) qeth_l2_vnicc_request_cb() argument
[all...]
/linux/drivers/usb/chipidea/
H A Dcore.c1 // SPDX-License-Identifier: GPL-2.0
3 * core.c - ChipIdea USB IP core family device controller
5 * Copyright (C) 2008 Chipidea - MIPS Technologies, Inc. All rights reserved.
12 * - Four transfers are supported, usbtest is passed
13 * - USB Certification for gadget: CH9 and Mass Storage are passed
14 * - Low power mode
15 * - USB wakeup
19 #include <linux/dma-mapping.h>
106 ci->hw_bank.regmap[i] = in hw_alloc_regmap()
107 (i <= CAP_LAST ? ci->hw_bank.cap : ci->hw_bank.op) + in hw_alloc_regmap()
[all …]
/linux/Documentation/devicetree/bindings/usb/
H A Dusb-drd.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/usb/usb-drd.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Greg Kroah-Hartman <gregkh@linuxfoundation.org>
13 otg-rev:
16 which the device and its descriptors are compliant, in binary-coded
18 features (HNP/SRP/ADP) is enabled. If ADP is required, otg-rev should be
25 Tells Dual-Role USB controllers that we want to work on a particular
32 hnp-disable:
[all …]
H A Dwillsemi,wusb3801.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: WUSB3801 Type-C port controller
10 The Will Semiconductor WUSB3801 is a USB Type-C port controller which
11 supports role and plug orientation detection using the CC pins. It is
12 compatible with the USB Type-C Cable and Connector Specification v1.2.
15 - Samuel Holland <samuel@sholland.org>
20 - willsemi,wusb3801
30 $ref: ../connector/usb-connector.yaml#
[all …]
H A Dst,stusb160x.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: STMicroelectronics STUSB160x Type-C controller
10 - Amelie Delaunay <amelie.delaunay@foss.st.com>
15 - st,stusb1600
23 vdd-supply:
24 description: main power supply (4.1V-22V)
26 vsys-supply:
27 description: low power supply (3.0V-5.5V)
[all …]
H A Danalogix,anx7411.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Analogix ANX7411 Type-C controller
10 - Xin Ji <xji@analogixsemi.com>
15 - analogix,anx7411
25 $ref: ../connector/usb-connector.yaml
29 const: usb-c-connector
32 - compatible
33 - reg
[all …]
H A Ddwc2.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Rob Herring <robh@kernel.org>
13 - $ref: usb-drd.yaml#
14 - $ref: usb-hcd.yaml#
19 - const: brcm,bcm2835-usb
20 - const: hisilicon,hi6220-usb
21 - const: ingenic,jz4775-otg
22 - const: ingenic,jz4780-otg
[all …]
/linux/drivers/media/tuners/
H A Dit913x.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
15 * struct it913x_platform_data - Platform data for the it913x driver
18 * @role: Chip role, single or dual configuration.
27 unsigned int role:2; member
/linux/drivers/usb/typec/
H A Dhd3ss3220.c1 // SPDX-License-Identifier: GPL-2.0+
3 * TI HD3SS3220 Type-C DRP Port Controller Driver
10 #include <linux/usb/role.h>
84 dev_err(hd3ss3220->dev, "bad power operation mode: %d\n", power_opmode); in hd3ss3220_set_power_opmode()
85 return -EINVAL; in hd3ss3220_set_power_opmode()
88 return regmap_update_bits(hd3ss3220->regmap, HD3SS3220_REG_CN_STAT, in hd3ss3220_set_power_opmode()
108 dev_err(hd3ss3220->dev, "bad port type: %d\n", type); in hd3ss3220_set_port_type()
109 return -EINVAL; in hd3ss3220_set_port_type()
113 err = regmap_update_bits(hd3ss3220->regmap, HD3SS3220_REG_GEN_CTRL, in hd3ss3220_set_port_type()
117 dev_err(hd3ss3220->dev, "Failed to disable port for mode change: %d\n", err); in hd3ss3220_set_port_type()
[all …]
/linux/drivers/net/wireless/ti/wlcore/
H A Dcmd.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2009-2010 Nokia Corporation
50 if (unlikely(wl->state == WLCORE_STATE_RESTARTING && in __wlcore_cmd_send()
52 return -EIO; in __wlcore_cmd_send()
55 return -EIO; in __wlcore_cmd_send()
58 cmd->id = cpu_to_le16(id); in __wlcore_cmd_send()
59 cmd->status = 0; in __wlcore_cmd_send()
62 WARN_ON(test_bit(WL1271_FLAG_IN_ELP, &wl->flags)); in __wlcore_cmd_send()
64 ret = wlcore_write(wl, wl->cmd_box_addr, buf, len, false); in __wlcore_cmd_send()
72 ret = wl->ops->trigger_cmd(wl, wl->cmd_box_addr, buf, len); in __wlcore_cmd_send()
[all …]
/linux/drivers/platform/chrome/
H A Dcros_usbpd_logger.c1 // SPDX-License-Identifier: GPL-2.0
8 #include <linux/devm-helpers.h>
18 #define DRV_NAME "cros-usbpd-logger"
39 "None", "PD", "Type-C", "Proprietary", "DCP", "CDP", "SDP",
48 "---", "OCP", "fast OCP", "OVP", "Discharge"
58 i = vsnprintf(buf + pos, BUF_SIZE - pos, fmt, args); in append_str()
66 struct cros_ec_dev *ec_dev = logger->ec_dev; in ec_get_log_entry()
70 msg = (struct cros_ec_command *)logger->ec_buffer; in ec_get_log_entry()
72 msg->command = ec_dev->cmd_offset + EC_CMD_PD_GET_LOG_ENTRY; in ec_get_log_entry()
73 msg->insize = CROS_USBPD_LOG_RESP_SIZE; in ec_get_log_entry()
[all …]
/linux/drivers/phy/tegra/
H A Dxusb.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2014-2022, NVIDIA CORPORATION. All rights reserved.
31 if (args->args_count != 0) in tegra_xusb_pad_of_xlate()
32 return ERR_PTR(-EINVAL); in tegra_xusb_pad_of_xlate()
34 for (i = 0; i < pad->soc->num_lanes; i++) { in tegra_xusb_pad_of_xlate()
35 if (!pad->lanes[i]) in tegra_xusb_pad_of_xlate()
38 if (pad->lanes[i]->dev.of_node == args->np) { in tegra_xusb_pad_of_xlate()
39 phy = pad->lanes[i]; in tegra_xusb_pad_of_xlate()
45 phy = ERR_PTR(-ENODEV); in tegra_xusb_pad_of_xlate()
53 .compatible = "nvidia,tegra124-xusb-padctl",
[all …]

12345678910>>...12