Home
last modified time | relevance | path

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

12345678910>>...42

/OK3568_Linux_fs/kernel/drivers/usb/roles/
H A Dclass.c1 // SPDX-License-Identifier: GPL-2.0
3 * USB Role Switch Support
10 #include <linux/usb/role.h>
22 enum usb_role role; member
36 * usb_role_switch_set_role - Set USB role for a switch
37 * @sw: USB role switch
38 * @role: USB role to be switched to
40 * Set USB role @role for @sw.
42 int usb_role_switch_set_role(struct usb_role_switch *sw, enum usb_role role) in usb_role_switch_set_role() argument
49 mutex_lock(&sw->lock); in usb_role_switch_set_role()
[all …]
H A 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 …]
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.
/OK3568_Linux_fs/kernel/drivers/usb/chipidea/
H A 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 …]
H A 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 …]
H A Ddebug.c1 // SPDX-License-Identifier: GPL-2.0
13 #include <linux/usb/otg-fsm.h>
24 static int ci_device_show(struct seq_file *s, void *data) in ci_device_show() argument
26 struct ci_hdrc *ci = s->private; in ci_device_show()
27 struct usb_gadget *gadget = &ci->gadget; in ci_device_show()
29 seq_printf(s, "speed = %d\n", gadget->speed); in ci_device_show()
30 seq_printf(s, "max_speed = %d\n", gadget->max_speed); in ci_device_show()
31 seq_printf(s, "is_otg = %d\n", gadget->is_otg); in ci_device_show()
32 seq_printf(s, "is_a_peripheral = %d\n", gadget->is_a_peripheral); in ci_device_show()
33 seq_printf(s, "b_hnp_enable = %d\n", gadget->b_hnp_enable); in ci_device_show()
[all …]
/OK3568_Linux_fs/kernel/security/selinux/ss/
H A 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 …]
/OK3568_Linux_fs/u-boot/include/power/power_delivery/
H A Dtypec.h1 /* SPDX-License-Identifier: GPL-2.0 */
8 /* USB Type-C Specification releases */
77 * struct enter_usb_data - Enter_USB Message details
78 * @eudo: Enter_USB Data Object
81 * @active_link_training is a flag that should be set with uni-directional SBRX
82 * communication, and left 0 with passive cables and with bi-directional SBRX
91 * struct usb_pd_identity - USB Power Delivery identity data
97 * USB power delivery Discover Identity command response data.
113 * struct typec_altmode_desc - USB Type-C Alternate Mode Descriptor
167 * struct typec_plug_desc - USB Type-C Cable Plug Descriptor
[all …]
/OK3568_Linux_fs/kernel/include/linux/usb/
H A Dtypec.h1 /* SPDX-License-Identifier: GPL-2.0 */
9 /* USB Type-C Specification releases */
78 * struct enter_usb_data - Enter_USB Message details
79 * @eudo: Enter_USB Data Object
82 * @active_link_training is a flag that should be set with uni-directional SBRX
83 * communication, and left 0 with passive cables and with bi-directional SBRX
92 * struct usb_pd_identity - USB Power Delivery identity data
98 * USB power delivery Discover Identity command response data.
114 * struct typec_altmode_desc - USB Type-C Alternate Mode Descriptor
168 * struct typec_plug_desc - USB Type-C Cable Plug Descriptor
[all …]
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 …]
/OK3568_Linux_fs/kernel/drivers/usb/typec/mux/
H A 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 …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/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
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 …]
H A Dextcon-axp288.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * extcon-axp288.c - X-Power AXP288 PMIC extcon cable detection driver
5 * Copyright (c) 2017-2018 Hans de Goede <hdegoede@redhat.com>
19 #include <linux/extcon-provider.h>
22 #include <linux/usb/role.h>
26 #include <asm/intel-family.h>
136 ret = regmap_read(info->regmap, AXP288_PS_BOOT_REASON_REG, &val); in axp288_extcon_log_rsi()
138 dev_err(info->dev, "failed to read reset source indicator\n"); in axp288_extcon_log_rsi()
142 bits = val & GENMASK(ARRAY_SIZE(axp288_pwr_up_down_info) - 1, 0); in axp288_extcon_log_rsi()
144 dev_dbg(info->dev, "%s\n", axp288_pwr_up_down_info[i]); in axp288_extcon_log_rsi()
[all …]
/OK3568_Linux_fs/kernel/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.
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 …]
H A 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"
25 #include "gadget-export.h"
30 static int cdns3_role_start(struct cdns3 *cdns, enum usb_role role) in cdns3_role_start() argument
34 if (WARN_ON(role > USB_ROLE_DEVICE)) in cdns3_role_start()
37 mutex_lock(&cdns->mutex); in cdns3_role_start()
38 cdns->role = role; in cdns3_role_start()
[all …]
/OK3568_Linux_fs/yocto/poky/bitbake/lib/toaster/toastergui/static/js/
H A Dnewcustomimage_modal.js6 The .data('recipe') value on the outer element determines which
18 var newCustomImgBtn = $("#create-new-custom-image-btn");
19 var imgCustomModal = $("#new-custom-image-modal");
20 var invalidNameHelp = $("#invalid-name-help");
21 var invalidRecipeHelp = $("#invalid-recipe-help");
24 …e names cannot contain spaces or capital letters. The only allowed special character is dash (-).";
28 …recipe file was not found. Cancel this action, build any target (like 'quilt-native') to force all…
38 imgCustomModal.on("click", "[name='select-image']", function(e) {
41 $(this).removeClass("has-error");
44 var recipeId = $(e.target).attr('data-recipe');
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/typec/
H A 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 …]
H A Dtps6598x.c1 // SPDX-License-Identifier: GPL-2.0
15 #include <linux/usb/role.h>
101 * Max data bytes for Data1, Data2, and other registers. See ch 1.3.2:
109 u8 data[TPS_MAX_LEN + 1]; in tps6598x_block_read() local
112 if (len + 1 > sizeof(data)) in tps6598x_block_read()
113 return -EINVAL; in tps6598x_block_read()
115 if (!tps->i2c_protocol) in tps6598x_block_read()
116 return regmap_raw_read(tps->regmap, reg, val, len); in tps6598x_block_read()
118 ret = regmap_raw_read(tps->regmap, reg, data, sizeof(data)); in tps6598x_block_read()
122 if (data[0] < len) in tps6598x_block_read()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/musb/
H A Dmediatek.c1 // SPDX-License-Identifier: GPL-2.0
11 #include <linux/dma-mapping.h>
15 #include <linux/usb/role.h>
50 enum usb_role role; member
56 struct device *dev = glue->dev; in mtk_musb_clks_get()
58 glue->main = devm_clk_get(dev, "main"); in mtk_musb_clks_get()
59 if (IS_ERR(glue->main)) { in mtk_musb_clks_get()
61 return PTR_ERR(glue->main); in mtk_musb_clks_get()
64 glue->mcu = devm_clk_get(dev, "mcu"); in mtk_musb_clks_get()
65 if (IS_ERR(glue->mcu)) { in mtk_musb_clks_get()
[all …]
/OK3568_Linux_fs/kernel/drivers/platform/chrome/
H A Dcros_ec_typec.c1 // SPDX-License-Identifier: GPL-2.0-only
22 #include <linux/usb/role.h>
24 #define DRV_NAME "cros-ec-typec"
33 /* Per port data. */
53 /* Platform-specific data for the Chrome OS EC Type C controller. */
73 ret = fwnode_property_read_string(fwnode, "power-role", &buf); in cros_typec_parse_port_props()
75 dev_err(dev, "power-role not found: %d\n", ret); in cros_typec_parse_port_props()
82 cap->type = ret; in cros_typec_parse_port_props()
84 ret = fwnode_property_read_string(fwnode, "data-role", &buf); in cros_typec_parse_port_props()
86 dev_err(dev, "data-role not found: %d\n", ret); in cros_typec_parse_port_props()
[all …]
/OK3568_Linux_fs/yocto/poky/bitbake/lib/toaster/toastergui/templates/
H A Dbasebuildpage.html14 $("#delete-build-confirm").click(function(){
16 $(this).find('[data-role="submit-state"]').hide();
17 $(this).find('[data-role="loading-state"]').show();
21 $('#delete-build-modal button[data-dismiss="modal"]').hide();
26 headers: { 'X-CSRFToken' : $.cookie('csrftoken')},
27 success: function (data) {
28 if (data.error !== "ok") {
29 console.warn(data.error);
31 libtoaster.setNotification("build-deleted",
32 $("#deleted-build-message").html());
[all …]
/OK3568_Linux_fs/kernel/drivers/s390/net/
H A Dqeth_l2_main.c1 // SPDX-License-Identifier: GPL-2.0
42 rc = -EOPNOTSUPP; in qeth_l2_setdelmac_makerc()
45 rc = -ENOSPC; in qeth_l2_setdelmac_makerc()
49 rc = -EADDRINUSE; in qeth_l2_setdelmac_makerc()
53 rc = -EADDRNOTAVAIL; in qeth_l2_setdelmac_makerc()
56 rc = -ENOENT; in qeth_l2_setdelmac_makerc()
59 rc = -EIO; in qeth_l2_setdelmac_makerc()
67 unsigned long data) in qeth_l2_send_setdelmac_cb() argument
69 struct qeth_ipa_cmd *cmd = (struct qeth_ipa_cmd *) data; in qeth_l2_send_setdelmac_cb()
71 return qeth_l2_setdelmac_makerc(card, cmd->hdr.return_code); in qeth_l2_send_setdelmac_cb()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/
H A Dphl_mr.c26 PHL_INFO("###### FUN - %s LINE - %d #######\n", caller, line); in phl_mr_dump_role_info()
28 PHL_INFO("\t[WROLE] RIDX:%d - MAC-Addr:%02x-%02x-%02x-%02x-%02x-%02x RTYPE:%d MSTS:%d\n", in phl_mr_dump_role_info()
29 wrole->id, wrole->mac_addr[0], wrole->mac_addr[1], wrole->mac_addr[2], in phl_mr_dump_role_info()
30 wrole->mac_addr[3], wrole->mac_addr[4], wrole->mac_addr[5], in phl_mr_dump_role_info()
31 wrole->type, wrole->mstate); in phl_mr_dump_role_info()
32 …"\t[WROLE] HW Band_idx:%d, Port_idx:%d, WMM_idx:%d\n", wrole->hw_band, wrole->hw_port, wrole->hw_w… in phl_mr_dump_role_info()
34 …if (wrole->type == PHL_RTYPE_AP || wrole->type == PHL_RTYPE_P2P_GO || wrole->type == PHL_RTYPE_MES… in phl_mr_dump_role_info()
36 PHL_INFO("\t[WROLE AP] BSSID:%02x-%02x-%02x-%02x-%02x-%02x\n", in phl_mr_dump_role_info()
37 wrole->bcn_cmn.bssid[0], wrole->bcn_cmn.bssid[1], wrole->bcn_cmn.bssid[2], in phl_mr_dump_role_info()
38 wrole->bcn_cmn.bssid[3], wrole->bcn_cmn.bssid[4], wrole->bcn_cmn.bssid[5]); in phl_mr_dump_role_info()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/
H A Dphl_mr.c26 PHL_INFO("###### FUN - %s LINE - %d #######\n", caller, line); in phl_mr_dump_role_info()
28 PHL_INFO("\t[WROLE] RIDX:%d - MAC-Addr:%02x-%02x-%02x-%02x-%02x-%02x RTYPE:%d MSTS:%d\n", in phl_mr_dump_role_info()
29 wrole->id, wrole->mac_addr[0], wrole->mac_addr[1], wrole->mac_addr[2], in phl_mr_dump_role_info()
30 wrole->mac_addr[3], wrole->mac_addr[4], wrole->mac_addr[5], in phl_mr_dump_role_info()
31 wrole->type, wrole->mstate); in phl_mr_dump_role_info()
32 …"\t[WROLE] HW Band_idx:%d, Port_idx:%d, WMM_idx:%d\n", wrole->hw_band, wrole->hw_port, wrole->hw_w… in phl_mr_dump_role_info()
34 …if (wrole->type == PHL_RTYPE_AP || wrole->type == PHL_RTYPE_P2P_GO || wrole->type == PHL_RTYPE_MES… in phl_mr_dump_role_info()
36 PHL_INFO("\t[WROLE AP] BSSID:%02x-%02x-%02x-%02x-%02x-%02x\n", in phl_mr_dump_role_info()
37 wrole->bcn_cmn.bssid[0], wrole->bcn_cmn.bssid[1], wrole->bcn_cmn.bssid[2], in phl_mr_dump_role_info()
38 wrole->bcn_cmn.bssid[3], wrole->bcn_cmn.bssid[4], wrole->bcn_cmn.bssid[5]); in phl_mr_dump_role_info()
[all …]

12345678910>>...42