Home
last modified time | relevance | path

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

12345678910>>...14

/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 -EINVA in selinux_set_mapping()
1480 struct role_datum *role; string_to_context_struct() local
2061 struct role_datum *role; services_convert_context() local
2306 security_load_policy(void * data,size_t len,struct selinux_load_state * load_state) security_load_policy() argument
3871 __security_read_policy(struct selinux_policy * policy,void * data,size_t * len) __security_read_policy() argument
3893 security_read_policy(void ** data,size_t * len) security_read_policy() argument
3922 security_read_state_kernel(void ** data,size_t * len) security_read_state_kernel() argument
[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-forma
267 struct role_datum *role; role_destroy() local
391 struct role_datum *role; roles_init() local
585 struct role_datum *role; role_index() local
941 policydb_role_isvalid(struct policydb * p,unsigned int role) policydb_role_isvalid() argument
961 struct role_datum *role; policydb_context_isvalid() local
1421 struct role_datum *role; role_read() local
1722 struct role_datum *upper, *role; role_bounds_sanity_check() local
3174 struct role_datum *role = datum; role_write() local
3495 range_write_helper(void * key,void * data,void * ptr) range_write_helper() argument
3545 filename_write_helper_compat(void * key,void * data,void * ptr) filename_write_helper_compat() argument
3583 filename_write_helper(void * key,void * data,void * ptr) filename_write_helper() argument
[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/usb/
H A Dmediatek,mtu3.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Chunfeng Yun <chunfeng.yun@mediatek.com>
14 - $ref: usb-drd.yaml
23 - enum:
24 - mediatek,mt2712-mtu3
25 - mediatek,mt8173-mtu3
26 - mediatek,mt8183-mtu3
27 - mediatek,mt8186-mtu3
[all …]
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 …]
/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/typec/mux/
H A Dintel_pmc_mux.c1 // SPDX-License-Identifier: GPL-2.0
15 #include <linux/usb/role.h>
60 /* Common Mode Data bits */
66 /* DP specific Mode Data bits */
69 /* TBT specific Mode Data bits */
141 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_por in update_port_status()
277 struct typec_displayport_data *data = state->data; pmc_usb_mux_dp() local
332 struct typec_thunderbolt_data *data = state->data; pmc_usb_mux_tbt() local
380 struct enter_usb_data *data = state->data; pmc_usb_mux_usb4() local
458 struct typec_displayport_data data = { }; pmc_usb_disconnect() local
476 pmc_usb_connect(struct pmc_usb_port * port,enum usb_role role) pmc_usb_connect() argument
555 pmc_usb_set_role(struct usb_role_switch * sw,enum usb_role role) pmc_usb_set_role() argument
[all...]
/linux/drivers/usb/cdns3/
H A Dcore.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright (C) 2017-2018 NXP
6 * Copyright (C) 2018-2019 Cadence.
15 #include <linux/usb/role.h>
20 * struct cdns_role_driver - host/gadget role driver
21 * @start: start this role
22 * @stop: stop this role
108 enum usb_role role; global() member
[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/Documentation/virt/kvm/x86/
H A Dmmu.rst1 .. SPDX-License-Identifier: GPL-2.0
13 - correctness:
18 - security:
21 - performance:
23 - scaling:
25 - hardware:
27 - integration:
31 - dirt
[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/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
70 struct qeth_ipa_cmd *cmd = (struct qeth_ipa_cmd *) data; in qeth_l2_send_setdelmac_cb()
72 return qeth_l2_setdelmac_makerc(card, cmd->hdr.return_code); in qeth_l2_send_setdelmac_cb()
[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-mappin
520 ci_irq_handler(int irq,void * data) ci_irq_handler() argument
606 enum usb_role role; ci_usb_role_switch_get() local
617 ci_usb_role_switch_set(struct usb_role_switch * sw,enum usb_role role) ci_usb_role_switch_set() argument
636 enum ci_role role; ci_get_role() local
840 enum ci_role role; ci_power_lost_work() local
982 enum ci_role role; role_store() local
[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/usb/musb/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0
3 # USB Dual Role (OTG-ready) Controller Drivers
7 # (M)HDRC = (Multipoint) Highspeed Dual-Role Controller
9 tristate 'Inventra Highspeed Dual Role Controller'
13 Say Y here if your system has a dual role high speed USB
16 it's being used with, including the USB peripheral role,
17 or the USB host role, or both.
27 module will be called "musb-hdrc".
53 bool "Dual Role mode"
74 tristate "DA8xx/OMAP-L1x"
[all …]
/linux/drivers/usb/typec/ucsi/
H A Ducsi.c1 // SPDX-License-Identifier: GPL-2.0
3 * USB Type-C Connector System Software Interface driver
22 * UCSI_TIMEOUT_MS - PPM communication timeout
32 * UCSI_SWAP_TIMEOUT_MS - Timeout for role swap requests
42 /* Ignore bogus data in CCI if busy indicator is set. */ in ucsi_notify_common()
47 if (!ucsi->cap.num_connectors || in ucsi_notify_common()
48 UCSI_CCI_CONNECTOR(cci) <= ucsi->ca in ucsi_notify_common()
66 ucsi_sync_control_common(struct ucsi * ucsi,u64 command,u32 * cci,void * data,size_t size) ucsi_sync_control_common() argument
117 ucsi_run_command(struct ucsi * ucsi,u64 command,u32 * cci,void * data,size_t size,bool conn_ack) ucsi_run_command() argument
211 ucsi_send_command_common(struct ucsi * ucsi,u64 cmd,void * data,size_t size,bool conn_ack) ucsi_send_command_common() argument
251 ucsi_send_command(struct ucsi * ucsi,u64 command,void * data,size_t size) ucsi_send_command() argument
690 ucsi_read_pdos(struct ucsi_connector * con,enum typec_role role,int is_partner,u32 * pdos,int offset,int num_pdos) ucsi_read_pdos() argument
715 ucsi_get_pdos(struct ucsi_connector * con,enum typec_role role,int is_partner,u32 * pdos) ucsi_get_pdos() argument
759 ucsi_get_pd_caps(struct ucsi_connector * con,enum typec_role role,bool is_partner) ucsi_get_pd_caps() argument
779 ucsi_get_pd_message(struct ucsi_connector * con,u8 recipient,size_t bytes,void * data,u8 type) ucsi_get_pd_message() argument
1280 enum typec_role role, prev_role; ucsi_handle_connector_change() local
1531 ucsi_dr_swap(struct typec_port * port,enum typec_data_role role) ucsi_dr_swap() argument
1575 ucsi_pr_swap(struct typec_port * port,enum typec_role role) ucsi_pr_swap() argument
2024 ucsi_set_drvdata(struct ucsi * ucsi,void * data) ucsi_set_drvdata() argument
[all...]
/linux/drivers/usb/typec/
H A Dclass.c1 // SPDX-License-Identifier: GPL-2.0
3 * USB Type-C Connector Class
29 /* ------------------------------------------------------------------------- */
66 return partner->identity; in get_pd_identity()
70 return cable->identity; in get_pd_identity()
77 struct typec_port *port = to_typec_port(dev->parent); in get_pd_product_type()
85 if (port->data_role == TYPEC_HOST) in get_pd_product_type()
86 ptype = product_type_ufp[PD_IDH_PTYPE(id->id_header)]; in get_pd_product_type()
88 ptype = product_type_dfp[PD_IDH_DFP_PTYPE(id->id_header)]; in get_pd_product_type()
91 ptype = product_type_cable[PD_IDH_PTYPE(id->id_header)]; in get_pd_product_type()
[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

12345678910>>...14