/openbmc/linux/drivers/usb/cdns3/ |
H A D | core.c | 29 static int cdns_role_start(struct cdns *cdns, enum usb_role role) in cdns_role_start() argument 33 if (WARN_ON(role > USB_ROLE_DEVICE)) in cdns_role_start() 37 cdns->role = role; in cdns_role_start() 40 if (!cdns->roles[role]) in cdns_role_start() 43 if (cdns->roles[role]->state == CDNS_ROLE_STATE_ACTIVE) in cdns_role_start() 47 ret = cdns->roles[role]->start(cdns); in cdns_role_start() 49 cdns->roles[role]->state = CDNS_ROLE_STATE_ACTIVE; in cdns_role_start() 57 enum usb_role role = cdns->role; in cdns_role_stop() local 59 if (WARN_ON(role > USB_ROLE_DEVICE)) in cdns_role_stop() 62 if (cdns->roles[role]->state == CDNS_ROLE_STATE_INACTIVE) in cdns_role_stop() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/classes/ |
H A D | signing.bbclass | 23 # Recipes access the available keys via a specific role. So, depending on 24 # whether we're building during development or for release, a given role can 26 # Each key recipe PROVIDES a virtual package corresponding to the role, allowing 27 # the user to select one of multiple keys for a role when needed. 62 def export(role, k, v): 63 k = k % (role, ) 70 for role in roles: 71 if not set(role).issubset("abcdefghijklmnopqrstuvwxyz0123456789_"): 72 bb.fatal("key role name '%s' must consist of only [a-z0-9_]" % (role,)) 74 pkcs11_uri = d.getVarFlag("SIGNING_PKCS11_URI", role) or d.getVar("SIGNING_PKCS11_URI") [all …]
|
/openbmc/linux/drivers/usb/dwc2/ |
H A D | drd.c | 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() 122 if (role == USB_ROLE_NONE) { in dwc2_drd_role_sw_set() 125 role = USB_ROLE_HOST; in dwc2_drd_role_sw_set() 127 role = USB_ROLE_DEVICE; in dwc2_drd_role_sw_set() 139 if (role == USB_ROLE_HOST) { in dwc2_drd_role_sw_set() 141 } else if (role == USB_ROLE_DEVICE) { in dwc2_drd_role_sw_set() 161 dwc2_force_mode(hsotg, role == USB_ROLE_HOST); in dwc2_drd_role_sw_set() [all …]
|
/openbmc/linux/drivers/usb/chipidea/ |
H A D | ci.h | 221 enum ci_role role; member 274 BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]); in ci_role() 275 return ci->roles[ci->role]; in ci_role() 278 static inline int ci_role_start(struct ci_hdrc *ci, enum ci_role role) in ci_role_start() argument 282 if (role >= CI_ROLE_END) in ci_role_start() 285 if (!ci->roles[role]) in ci_role_start() 288 ret = ci->roles[role]->start(ci); in ci_role_start() 292 ci->role = role; in ci_role_start() 295 if (role == CI_ROLE_HOST) in ci_role_start() 307 enum ci_role role = ci->role; in ci_role_stop() local [all …]
|
H A D | otg.c | 124 enum ci_role role = hw_read_otgsc(ci, OTGSC_ID) in ci_otg_role() local 128 return role; in ci_otg_role() 173 enum ci_role role; in ci_handle_id_switch() local 176 role = ci_otg_role(ci); in ci_handle_id_switch() 177 if (role != ci->role) { in ci_handle_id_switch() 179 ci_role(ci)->name, ci->roles[role]->name); in ci_handle_id_switch() 181 if (ci->vbus_active && ci->role == CI_ROLE_GADGET) in ci_handle_id_switch() 190 if (role == CI_ROLE_GADGET && in ci_handle_id_switch() 201 ci_role_start(ci, role); in ci_handle_id_switch() 203 if (role == CI_ROLE_GADGET) in ci_handle_id_switch()
|
H A D | core.c | 573 if (ci->role != CI_ROLE_END) in ci_irq_handler() 604 enum usb_role role; in ci_usb_role_switch_get() local 608 role = ci_role_to_usb_role(ci); in ci_usb_role_switch_get() 611 return role; in ci_usb_role_switch_get() 615 enum usb_role role) in ci_usb_role_switch_set() argument 620 if (role == USB_ROLE_HOST) { in ci_usb_role_switch_set() 627 } else if (role == USB_ROLE_DEVICE) { in ci_usb_role_switch_set() 649 enum ci_role role; in ci_get_role() local 653 role = ci_otg_role(ci); in ci_get_role() 661 role = CI_ROLE_GADGET; in ci_get_role() [all …]
|
/openbmc/linux/drivers/usb/roles/ |
H A D | class.c | 25 enum usb_role role; member 46 int usb_role_switch_set_role(struct usb_role_switch *sw, enum usb_role role) in usb_role_switch_set_role() argument 58 ret = sw->set(sw, role); in usb_role_switch_set_role() 60 sw->role = role; in usb_role_switch_set_role() 79 enum usb_role role; in usb_role_switch_get_role() local 87 role = sw->get(sw); in usb_role_switch_get_role() 89 role = sw->role; in usb_role_switch_get_role() 93 return role; in usb_role_switch_get_role() 230 const char *usb_role_string(enum usb_role role) in usb_role_string() argument 232 if (role < 0 || role >= ARRAY_SIZE(usb_roles)) in usb_role_string() [all …]
|
H A D | intel-xhci-usb-role-switch.c | 56 enum usb_role role) in intel_xhci_usb_set_role() argument 84 switch (role) { in intel_xhci_usb_set_role() 116 if (!!(val & HOST_MODE) == (role == USB_ROLE_HOST)) { in intel_xhci_usb_set_role() 134 enum usb_role role; in intel_xhci_usb_get_role() local 142 role = USB_ROLE_HOST; in intel_xhci_usb_get_role() 144 role = USB_ROLE_DEVICE; in intel_xhci_usb_get_role() 146 role = USB_ROLE_NONE; in intel_xhci_usb_get_role() 148 return role; in intel_xhci_usb_get_role()
|
/openbmc/linux/include/linux/usb/ |
H A D | typec.h | 58 static inline int is_sink(enum typec_role role) in is_sink() argument 60 return role == TYPEC_SINK; in is_sink() 63 static inline int is_source(enum typec_role role) in is_source() argument 65 return role == TYPEC_SOURCE; in is_source() 233 int (*try_role)(struct typec_port *port, int role); 234 int (*dr_set)(struct typec_port *port, enum typec_data_role role); 235 int (*pr_set)(struct typec_port *port, enum typec_role role); 236 int (*vconn_set)(struct typec_port *port, enum typec_role role); 306 void typec_set_data_role(struct typec_port *port, enum typec_data_role role); 307 void typec_set_pwr_role(struct typec_port *port, enum typec_role role); [all …]
|
H A D | role.h | 17 enum usb_role role); 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 119 static inline const char *usb_role_string(enum usb_role role) in usb_role_string() argument
|
/openbmc/qemu/scripts/ |
H A D | get_maintainer.pl | 923 my $role = "unknown"; 932 $role = $pvalue; 937 $role = lc($role); 938 if ($role eq "supported") { 939 $role = "supporter"; 940 } elsif ($role eq "maintained") { 941 $role = "maintainer"; 942 } elsif ($role eq "odd fixes") { 943 $role = "odd fixer"; 944 } elsif ($role eq "orphan") { [all …]
|
/openbmc/linux/drivers/extcon/ |
H A 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 …]
|
/openbmc/linux/net/bridge/ |
H A D | br_mrp_switchdev.c | 66 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 D | br_mrp_netlink.c | 109 enum br_mrp_port_role_type role; in br_mrp_port_role_parse() local 122 role = nla_get_u32(tb[IFLA_BRIDGE_MRP_PORT_ROLE_ROLE]); in br_mrp_port_role_parse() 124 return br_mrp_set_port_role(p, role); in br_mrp_port_role_parse() 172 struct br_mrp_ring_role role; in br_mrp_ring_role_parse() local 187 memset(&role, 0x0, sizeof(role)); in br_mrp_ring_role_parse() 189 role.ring_id = nla_get_u32(tb[IFLA_BRIDGE_MRP_RING_ROLE_RING_ID]); in br_mrp_ring_role_parse() 190 role.ring_role = nla_get_u32(tb[IFLA_BRIDGE_MRP_RING_ROLE_ROLE]); in br_mrp_ring_role_parse() 192 return br_mrp_set_ring_role(br, &role); in br_mrp_ring_role_parse() 288 struct br_mrp_in_role role; in br_mrp_in_role_parse() local 305 memset(&role, 0x0, sizeof(role)); in br_mrp_in_role_parse() [all …]
|
/openbmc/linux/arch/x86/kvm/mmu/ |
H A D | mmu.c | 293 kvm_flush_remote_tlbs_gfn(kvm, gfn, sp->role.level); in kvm_flush_remote_tlbs_sptep() 569 int level = sptep_to_sp(sptep)->role.level; in mmu_spte_clear_track_bits() 723 if (sp->role.passthrough) in kvm_mmu_page_get_gfn() 726 if (!sp->role.direct) in kvm_mmu_page_get_gfn() 729 return sp->gfn + (index << ((sp->role.level - 1) * SPTE_LEVEL_BITS)); in kvm_mmu_page_get_gfn() 755 return sp->role.access; in kvm_mmu_page_get_access() 768 sp->role.passthrough ? "passthrough" : "direct", in kvm_mmu_page_set_translation() 773 sp->role.passthrough ? "passthrough" : "direct", in kvm_mmu_page_set_translation() 829 slots = kvm_memslots_for_spte_role(kvm, sp->role); in account_shadowed() 833 if (sp->role.level > PG_LEVEL_4K) in account_shadowed() [all …]
|
H A 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.has_4_byte_gpte ? 4 : 8, \ 39 role.quadrant, \ 40 role.direct ? " direct" : "", \ 41 access_str[role.access], \ 42 role.invalid ? " invalid" : "", \ [all …]
|
/openbmc/linux/drivers/s390/net/ |
H A D | qeth_l2_sys.c | 28 &card->options.sbp.role, &state); in qeth_bridge_port_role_state_show() 42 switch (card->options.sbp.role) { in qeth_bridge_port_role_state_show() 54 card->options.sbp.role, state); in qeth_bridge_port_role_state_show() 79 enum qeth_sbp_roles role; in qeth_bridge_port_role_store() local 82 role = QETH_SBP_ROLE_PRIMARY; in qeth_bridge_port_role_store() 84 role = QETH_SBP_ROLE_SECONDARY; in qeth_bridge_port_role_store() 86 role = QETH_SBP_ROLE_NONE; in qeth_bridge_port_role_store() 99 rc = qeth_bridgeport_setrole(card, role); in qeth_bridge_port_role_store() 101 card->options.sbp.role = role; in qeth_bridge_port_role_store() 103 card->options.sbp.role = role; in qeth_bridge_port_role_store() [all …]
|
/openbmc/linux/scripts/ |
H A D | get_maintainer.pl | 1270 my $role = "unknown"; 1279 $role = $pvalue; 1284 $role = lc($role); 1285 if ($role eq "supported") { 1286 $role = "supporter"; 1287 } elsif ($role eq "maintained") { 1288 $role = "maintainer"; 1289 } elsif ($role eq "odd fixes") { 1290 $role = "odd fixer"; 1291 } elsif ($role eq "orphan") { [all …]
|
/openbmc/u-boot/scripts/ |
H A D | get_maintainer.pl | 1210 my $role = "unknown"; 1219 $role = $pvalue; 1224 $role = lc($role); 1225 if ($role eq "supported") { 1226 $role = "supporter"; 1227 } elsif ($role eq "maintained") { 1228 $role = "maintainer"; 1229 } elsif ($role eq "odd fixes") { 1230 $role = "odd fixer"; 1231 } elsif ($role eq "orphan") { [all …]
|
/openbmc/bmcweb/redfish-core/lib/ |
H A D | roles.hpp | 45 std::string_view role) in getAssignedPrivFromRole() argument 48 if (role == "Administrator") in getAssignedPrivFromRole() 56 else if (role == "Operator") in getAssignedPrivFromRole() 62 else if (role == "ReadOnly") in getAssignedPrivFromRole() 146 std::string role = getRoleFromPrivileges(priv); in requestRoutesRoleCollection() local 147 if (!role.empty()) in requestRoutesRoleCollection() 152 role); in requestRoutesRoleCollection()
|
/openbmc/linux/drivers/misc/ |
H A D | hisi_hikey_usb.c | 44 enum usb_role role; member 98 enum usb_role role; in relay_set_role_switch() local 104 switch (hisi_hikey_usb->role) { in relay_set_role_switch() 124 role = hisi_hikey_usb->role; in relay_set_role_switch() 127 usb_role_switch_set_role(sw, role); in relay_set_role_switch() 130 static int hub_usb_role_switch_set(struct usb_role_switch *sw, enum usb_role role) in hub_usb_role_switch_set() argument 138 hisi_hikey_usb->role = role; in hub_usb_role_switch_set()
|
/openbmc/webui-vue/src/views/SecurityAndAccess/Ldap/ |
H A D | ModalAddRoleGroup.vue | 2 <b-modal id="modal-role-group" ref="modal" @ok="onOk" @hidden="resetForm"> 14 <b-form id="role-group" @submit.prevent="handleSubmit"> 15 <!-- Edit role group --> 23 <!-- Add new role group --> 27 label-for="role-group-name" 30 id="role-group-name" 35 <b-form-invalid-feedback role="alert"> 58 <b-form-invalid-feedback role="alert"> 70 <b-button form="role-group" type="submit" variant="primary" @click="onOk">
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-platform-chipidea-usb2 | 1 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.
|
/openbmc/linux/drivers/usb/common/ |
H A D | usb-conn-gpio.c | 68 enum usb_role role; in usb_conn_detect_cable() local 81 role = USB_ROLE_HOST; in usb_conn_detect_cable() 83 role = USB_ROLE_DEVICE; in usb_conn_detect_cable() 85 role = USB_ROLE_NONE; in usb_conn_detect_cable() 88 usb_role_string(info->last_role), usb_role_string(role), id, vbus); in usb_conn_detect_cable() 90 if (!info->initial_detection && info->last_role == role) { in usb_conn_detect_cable() 91 dev_warn(info->dev, "repeated role: %s\n", usb_role_string(role)); in usb_conn_detect_cable() 100 ret = usb_role_switch_set_role(info->role_sw, role); in usb_conn_detect_cable() 104 if (role == USB_ROLE_HOST && info->vbus) { in usb_conn_detect_cable() 110 info->last_role = role; in usb_conn_detect_cable()
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A D | sc7280-idp-ec-h1.dtsi | 44 power-role = "dual"; 45 data-role = "host"; 46 try-power-role = "source"; 53 power-role = "dual"; 54 data-role = "host"; 55 try-power-role = "source";
|