/Linux-v5.4/drivers/usb/cdns3/ |
D | core.c | 33 WARN_ON(!cdns->roles[cdns->role]); in cdns3_get_current_role_driver() 34 return cdns->roles[cdns->role]; in cdns3_get_current_role_driver() 37 static int cdns3_role_start(struct cdns3 *cdns, enum usb_role role) in cdns3_role_start() argument 41 if (WARN_ON(role > USB_ROLE_DEVICE)) in cdns3_role_start() 45 cdns->role = role; in cdns3_role_start() 48 if (!cdns->roles[role]) in cdns3_role_start() 51 if (cdns->roles[role]->state == CDNS3_ROLE_STATE_ACTIVE) in cdns3_role_start() 55 ret = cdns->roles[role]->start(cdns); in cdns3_role_start() 57 cdns->roles[role]->state = CDNS3_ROLE_STATE_ACTIVE; in cdns3_role_start() 65 enum usb_role role = cdns->role; in cdns3_role_stop() local [all …]
|
/Linux-v5.4/drivers/usb/chipidea/ |
D | ci.h | 213 enum ci_role role; member 263 BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]); in ci_role() 264 return ci->roles[ci->role]; in ci_role() 267 static inline int ci_role_start(struct ci_hdrc *ci, enum ci_role role) in ci_role_start() argument 271 if (role >= CI_ROLE_END) in ci_role_start() 274 if (!ci->roles[role]) in ci_role_start() 277 ret = ci->roles[role]->start(ci); in ci_role_start() 279 ci->role = role; in ci_role_start() 285 enum ci_role role = ci->role; in ci_role_stop() local 287 if (role == CI_ROLE_END) in ci_role_stop() [all …]
|
D | otg.c | 122 enum ci_role role = hw_read_otgsc(ci, OTGSC_ID) in ci_otg_role() local 126 return role; in ci_otg_role() 167 enum ci_role role = ci_otg_role(ci); in ci_handle_id_switch() local 169 if (role != ci->role) { in ci_handle_id_switch() 171 ci_role(ci)->name, ci->roles[role]->name); in ci_handle_id_switch() 175 if (role == CI_ROLE_GADGET && in ci_handle_id_switch() 186 ci_role_start(ci, role); in ci_handle_id_switch() 188 if (role == CI_ROLE_GADGET) in ci_handle_id_switch()
|
D | debug.c | 127 if (ci->role != CI_ROLE_GADGET) { in ci_qheads_show() 161 if (ci->role != CI_ROLE_GADGET) { in ci_requests_show() 254 if (ci->role != CI_ROLE_END) in ci_role_show() 265 enum ci_role role; in ci_role_write() local 272 for (role = CI_ROLE_HOST; role < CI_ROLE_END; role++) in ci_role_write() 273 if (ci->roles[role] && in ci_role_write() 274 !strncmp(buf, ci->roles[role]->name, in ci_role_write() 275 strlen(ci->roles[role]->name))) in ci_role_write() 278 if (role == CI_ROLE_END || role == ci->role) in ci_role_write() 284 ret = ci_role_start(ci, role); in ci_role_write()
|
D | core.c | 584 if (ci->role != CI_ROLE_END) in ci_irq() 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() 616 static int ci_usb_role_switch_set(struct device *dev, enum usb_role role) in ci_usb_role_switch_set() argument 623 if (current_role == role) in ci_usb_role_switch_set() 639 if (ci->wq && role != USB_ROLE_NONE) in ci_usb_role_switch_set() 647 if (role == USB_ROLE_DEVICE) in ci_usb_role_switch_set() 649 else if (role == USB_ROLE_HOST) in ci_usb_role_switch_set() 931 if (ci->role != CI_ROLE_END) in role_show() [all …]
|
/Linux-v5.4/drivers/usb/roles/ |
D | class.c | 22 enum usb_role role; member 42 int usb_role_switch_set_role(struct usb_role_switch *sw, enum usb_role role) in usb_role_switch_set_role() argument 51 ret = sw->set(sw->dev.parent, role); in usb_role_switch_set_role() 53 sw->role = role; in usb_role_switch_set_role() 70 enum usb_role role; in usb_role_switch_get_role() local 78 role = sw->get(sw->dev.parent); in usb_role_switch_get_role() 80 role = sw->role; in usb_role_switch_get_role() 84 return role; in usb_role_switch_get_role() 200 enum usb_role role = usb_role_switch_get_role(sw); in role_show() local 202 return sprintf(buf, "%s\n", usb_roles[role]); in role_show() [all …]
|
D | intel-xhci-usb-role-switch.c | 54 static int intel_xhci_usb_set_role(struct device *dev, enum usb_role role) in intel_xhci_usb_set_role() argument 82 switch (role) { in intel_xhci_usb_set_role() 114 if (!!(val & HOST_MODE) == (role == USB_ROLE_HOST)) { in intel_xhci_usb_set_role() 132 enum usb_role role; in intel_xhci_usb_get_role() local 140 role = USB_ROLE_HOST; in intel_xhci_usb_get_role() 142 role = USB_ROLE_DEVICE; in intel_xhci_usb_get_role() 144 role = USB_ROLE_NONE; in intel_xhci_usb_get_role() 146 return role; in intel_xhci_usb_get_role()
|
D | Kconfig | 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 22 Driver for the internal USB role switch for switching the USB data 27 be called intel-xhci-usb-role-switch.
|
/Linux-v5.4/drivers/s390/net/ |
D | qeth_l2_sys.c | 31 &card->options.sbp.role, &state); in qeth_bridge_port_role_state_show() 45 switch (card->options.sbp.role) { in qeth_bridge_port_role_state_show() 57 card->options.sbp.role, state); in qeth_bridge_port_role_state_show() 82 enum qeth_sbp_roles role; in qeth_bridge_port_role_store() local 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 = role; in qeth_bridge_port_role_store() 108 card->options.sbp.role = role; in qeth_bridge_port_role_store() [all …]
|
/Linux-v5.4/drivers/extcon/ |
D | extcon-usbc-cros-ec.c | 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 251 int role, power_type; in extcon_cros_ec_detect_cable() local 266 role = cros_ec_usb_get_role(info, &polarity); in extcon_cros_ec_detect_cable() 267 if (role < 0) { in extcon_cros_ec_detect_cable() 268 if (role != -ENOTCONN) { in extcon_cros_ec_detect_cable() [all …]
|
/Linux-v5.4/arch/x86/kvm/ |
D | mmutrace.h | 14 __field(__u32, role) \ 21 __entry->role = sp->role.word; \ 30 union kvm_mmu_page_role role; \ 32 role.word = __entry->role; \ 37 __entry->gfn, role.level, \ 38 role.gpte_is_8_bytes ? 8 : 4, \ 39 role.quadrant, \ 40 role.direct ? " direct" : "", \ 41 access_str[role.access], \ 42 role.invalid ? " invalid" : "", \ [all …]
|
D | mmu.c | 359 return sp->role.ad_disabled; in sp_ad_disabled() 1152 if (!sp->role.direct) in kvm_mmu_page_get_gfn() 1155 return sp->gfn + (index << ((sp->role.level - 1) * PT64_LEVEL_BITS)); in kvm_mmu_page_get_gfn() 1160 if (!sp->role.direct) { in kvm_mmu_page_set_gfn() 1217 slots = kvm_memslots_for_spte_role(kvm, sp->role); in account_shadowed() 1221 if (sp->role.level > PT_PAGE_TABLE_LEVEL) in account_shadowed() 1247 slots = kvm_memslots_for_spte_role(kvm, sp->role); in unaccount_shadowed() 1249 if (sp->role.level > PT_PAGE_TABLE_LEVEL) in unaccount_shadowed() 1479 slots = kvm_memslots_for_spte_role(kvm, sp->role); in gfn_to_rmap() 1481 return __gfn_to_rmap(gfn, sp->role.level, slot); in gfn_to_rmap() [all …]
|
D | mmu_audit.c | 138 slots = kvm_memslots_for_spte_role(kvm, rev_sp->role); in inspect_spte_has_rmap() 150 rmap_head = __gfn_to_rmap(gfn, rev_sp->role.level, slot); in inspect_spte_has_rmap() 179 if (sp->role.level != PT_PAGE_TABLE_LEVEL) in check_mappings_rmap() 198 if (sp->role.direct || sp->unsync || sp->role.invalid) in audit_write_protection() 201 slots = kvm_memslots_for_spte_role(kvm, sp->role); in audit_write_protection() 209 sp->gfn, sp->role.word); in audit_write_protection()
|
/Linux-v5.4/drivers/usb/common/ |
D | usb-conn-gpio.c | 63 enum usb_role role; in usb_conn_detect_cable() local 76 role = USB_ROLE_HOST; in usb_conn_detect_cable() 78 role = USB_ROLE_DEVICE; in usb_conn_detect_cable() 80 role = USB_ROLE_NONE; in usb_conn_detect_cable() 83 info->last_role, role, id, vbus); in usb_conn_detect_cable() 85 if (info->last_role == role) { in usb_conn_detect_cable() 86 dev_warn(info->dev, "repeated role: %d\n", role); in usb_conn_detect_cable() 93 ret = usb_role_switch_set_role(info->role_sw, role); in usb_conn_detect_cable() 97 if (role == USB_ROLE_HOST) { in usb_conn_detect_cable() 103 info->last_role = role; in usb_conn_detect_cable()
|
/Linux-v5.4/Documentation/ABI/testing/ |
D | sysfs-platform-chipidea-usb2 | 1 What: /sys/bus/platform/devices/ci_hdrc.0/role 6 current controller role. 8 It will do role switch when write "gadget" or "host" to it. 9 Only controller at dual-role configuration supports writing.
|
D | sysfs-class-usb_role | 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
|
/Linux-v5.4/scripts/ |
D | get_maintainer.pl | 1238 my $role = "unknown"; 1247 $role = $pvalue; 1252 $role = lc($role); 1253 if ($role eq "supported") { 1254 $role = "supporter"; 1255 } elsif ($role eq "maintained") { 1256 $role = "maintainer"; 1257 } elsif ($role eq "odd fixes") { 1258 $role = "odd fixer"; 1259 } elsif ($role eq "orphan") { [all …]
|
/Linux-v5.4/tools/lib/traceevent/plugins/ |
D | plugin_kvm.c | 381 union kvm_mmu_page_role role; in kvm_mmu_print_role() local 386 role.word = (int)val; in kvm_mmu_print_role() 396 role.level, in kvm_mmu_print_role() 397 role.quadrant, in kvm_mmu_print_role() 398 role.direct ? " direct" : "", in kvm_mmu_print_role() 399 access_str[role.access], in kvm_mmu_print_role() 400 role.invalid ? " invalid" : "", in kvm_mmu_print_role() 401 role.cr4_pae ? "" : "!", in kvm_mmu_print_role() 402 role.nxe ? "" : "!", in kvm_mmu_print_role() 403 role.cr0_wp ? "" : "!", in kvm_mmu_print_role() [all …]
|
/Linux-v5.4/drivers/net/dsa/sja1105/ |
D | sja1105_clocking.c | 138 int port, sja1105_mii_role_t role) in sja1105_cgu_mii_tx_clk_config() argument 159 if (role == XMII_MAC) in sja1105_cgu_mii_tx_clk_config() 251 sja1105_mii_role_t role) in sja1105_mii_clocking_setup() argument 257 (role == XMII_MAC) ? "MAC" : "PHY"); in sja1105_mii_clocking_setup() 261 rc = sja1105_cgu_idiv_config(priv, port, (role == XMII_PHY), 1); in sja1105_mii_clocking_setup() 269 rc = sja1105_cgu_mii_tx_clk_config(priv, port, role); in sja1105_mii_clocking_setup() 280 if (role == XMII_PHY) { in sja1105_mii_clocking_setup() 468 sja1105_mii_role_t role) in sja1105_rgmii_clocking_setup() argument 524 if (role == XMII_MAC) in sja1105_rgmii_clocking_setup() 619 sja1105_mii_role_t role) in sja1105_rmii_clocking_setup() argument [all …]
|
/Linux-v5.4/net/netfilter/ |
D | nf_conntrack_proto_dccp.c | 407 ct->proto.dccp.role[IP_CT_DIR_ORIGINAL] = CT_DCCP_ROLE_CLIENT; in dccp_new() 408 ct->proto.dccp.role[IP_CT_DIR_REPLY] = CT_DCCP_ROLE_SERVER; in dccp_new() 479 enum ct_dccp_roles role; in nf_conntrack_dccp_packet() local 502 role = ct->proto.dccp.role[dir]; in nf_conntrack_dccp_packet() 504 new_state = dccp_state_table[role][type][old_state]; in nf_conntrack_dccp_packet() 509 role == CT_DCCP_ROLE_SERVER) { in nf_conntrack_dccp_packet() 512 ct->proto.dccp.role[dir] = CT_DCCP_ROLE_CLIENT; in nf_conntrack_dccp_packet() 513 ct->proto.dccp.role[!dir] = CT_DCCP_ROLE_SERVER; in nf_conntrack_dccp_packet() 535 ct->proto.dccp.role[!dir] = CT_DCCP_ROLE_CLIENT; in nf_conntrack_dccp_packet() 536 ct->proto.dccp.role[dir] = CT_DCCP_ROLE_SERVER; in nf_conntrack_dccp_packet() [all …]
|
/Linux-v5.4/Documentation/devicetree/bindings/net/dsa/ |
D | sja1105.txt | 24 - sja1105,role-mac: 25 - sja1105,role-phy: 37 1. If sja1105,role-mac is specified, and the phy-mode property is one 41 2. If sja1105,role-phy is specified, and the phy-mode property is one 51 to have sja1105,role-mac, while the other sja1105,role-phy. 90 /* Implicit "sja1105,role-mac;" */ 98 /* Implicit "sja1105,role-mac;" */ 106 /* Implicit "sja1105,role-mac;" */ 114 /* Implicit "sja1105,role-mac;" */ 121 /* Implicit "sja1105,role-phy;" */
|
/Linux-v5.4/Documentation/devicetree/bindings/connector/ |
D | usb-connector.txt | 26 mode or dual role mode is supported. 35 - power-role: should be one of "source", "sink" or "dual"(DRP) if typec 37 - try-power-role: preferred power role if "dual"(DRP) can support Try.SNK 39 - data-role: should be one of "host", "device", "dual"(DRD) if typec 47 the PD spec chapter 6.4.1. Required for power source and power dual role. 54 the PD spec chapter 6.4.1. Required for power sink and power dual role. 59 sink and power dual role. 128 power-role = "dual"; 129 try-power-role = "sink";
|
/Linux-v5.4/security/selinux/ss/ |
D | context.h | 29 u32 role; member 123 dst->role = src->role; in context_cpy() 144 c->user = c->role = c->type = 0; in context_destroy() 158 (c1->role == c2->role) && in context_cmp()
|
D | policydb.c | 263 struct role_datum *role; in role_destroy() local 267 role = datum; in role_destroy() 268 ebitmap_destroy(&role->dominates); in role_destroy() 269 ebitmap_destroy(&role->types); in role_destroy() 375 struct role_datum *role; in roles_init() local 377 role = kzalloc(sizeof(*role), GFP_KERNEL); in roles_init() 378 if (!role) in roles_init() 382 role->value = ++p->p_roles.nprim; in roles_init() 383 if (role->value != OBJECT_R_VAL) in roles_init() 391 rc = hashtab_insert(p->p_roles.table, key, role); in roles_init() [all …]
|
/Linux-v5.4/drivers/media/tuners/ |
D | it913x.c | 18 u8 role:2; member 36 dev_dbg(&pdev->dev, "role %u\n", dev->role); in it913x_init() 153 dev_dbg(&pdev->dev, "role %u\n", dev->role); in it913x_sleep() 165 if (dev->role == IT913X_ROLE_DUAL_MASTER) in it913x_sleep() 170 dev_dbg(&pdev->dev, "role %u, len %d\n", dev->role, len); in it913x_sleep() 218 dev->role, c->frequency, c->bandwidth_hz); in it913x_set_params() 398 dev->role = pdata->role; in it913x_probe() 414 dev_dbg(&pdev->dev, "chip_ver %u, role %u\n", dev->chip_ver, dev->role); in it913x_probe()
|