/openbmc/bmcweb/redfish-core/schema/dmtf/csdl/ |
H A D | Role_v1.xml | 4 <!--# Redfish Schema: Role v1.3.3 --> 32 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role"> 36 <EntityType Name="Role" BaseType="Resource.v1_0_0.Resource" Abstract="true"> 37 …<Annotation Term="OData.Description" String="The `Role` schema contains a Redfish role to use in c… 38 …"OData.LongDescription" String="This resource shall represent the Redfish role for the user accoun… 64 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_0_0"> 68 <EntityType Name="Role" BaseType="Role.Role"> 71 …n" String="An indication of whether the role is predefined by Redfish or an OEM rather than a clie… 72 …property shall indicate whether the role is predefined by Redfish or an OEM as contrasted with a c… 76 <Annotation Term="OData.Description" String="The Redfish privileges for this role."/> [all …]
|
/openbmc/bmcweb/redfish-core/schema/dmtf/installed/ |
H A D | Role_v1.xml | 4 <!--# Redfish Schema: Role v1.3.3 --> 32 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role"> 36 <EntityType Name="Role" BaseType="Resource.v1_0_0.Resource" Abstract="true"> 37 <Annotation Term="OData.Description" String="The `Role` schema contains a Redfish role to use in conjunction with a manager account."/> 38 <Annotation Term="OData.LongDescription" String="This resource shall represent the Redfish role for the user account."/> 64 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Role.v1_0_0"> 68 <EntityType Name="Role" BaseType="Role.Role"> [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/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 …]
|
H A D | core.h | 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 23 * @suspend: suspend callback for this role 24 * @resume: resume callback for this role 25 * @irq: irq handler for this role 26 * @name: role name string (host/gadget) 66 * @role: current role 76 * @role_sw: pointer to role switch object. [all …]
|
/openbmc/linux/drivers/usb/roles/ |
H A D | class.c | 3 * USB Role Switch Support 10 #include <linux/usb/role.h> 25 enum usb_role role; member 40 * usb_role_switch_set_role - Set USB role for a switch 41 * @sw: USB role switch 42 * @role: USB role to be switched to 44 * Set USB role @role for @sw. 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() [all …]
|
H A D | Kconfig | 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 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.
|
H A D | intel-xhci-usb-role-switch.c | 3 * Intel XHCI (Cherry Trail, Broxton and others) USB OTG role switch driver 23 #include <linux/usb/role.h> 56 enum usb_role role) in intel_xhci_usb_set_role() argument 80 * SW_SWITCH_EN bits to be zero for role switch, in intel_xhci_usb_set_role() 84 switch (role) { in intel_xhci_usb_set_role() 116 if (!!(val & HOST_MODE) == (role == USB_ROLE_HOST)) { in intel_xhci_usb_set_role() 127 dev_warn(data->dev, "Timeout waiting for role-switch\n"); 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() [all …]
|
/openbmc/linux/drivers/usb/dwc2/ |
H A D | drd.c | 3 * drd.c - DesignWare USB2 DRD Controller Dual-role support 13 #include <linux/usb/role.h> 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() 109 * If role-switch set is called before the udc_start, we need to enable in dwc2_drd_role_sw_set() 122 if (role == USB_ROLE_NONE) { in dwc2_drd_role_sw_set() 123 /* default operation mode when usb role is USB_ROLE_NONE */ in dwc2_drd_role_sw_set() 125 role = USB_ROLE_HOST; in dwc2_drd_role_sw_set() [all …]
|
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema/ |
H A D | Role.v1_3_3.json | 2 "$id": "http://redfish.dmtf.org/schemas/v1/Role.v1_3_3.json", 3 "$ref": "#/definitions/Role", 56 "Role": { object 58 …"description": "The `Role` schema contains a Redfish role to use in conjunction with a manager acc… 59 … "longDescription": "This resource shall represent the Redfish role for the user account.", 94 "description": "An equivalent role to use when this role is restricted.", 101 "description": "The Redfish privileges for this role.", 105 …escription": "This property shall contain the Redfish privileges for this role. For predefined ro… 125 …ription": "An indication of whether the role is predefined by Redfish or an OEM rather than a clie… 126 …property shall indicate whether the role is predefined by Redfish or an OEM as contrasted with a c… [all …]
|
H A D | HostInterface.v1_3_3.json | 90 … "description": "The role used for the bootstrap account created for this interface.", 91 …"longDescription": "This property shall contain the `Id` property of the `Role` resource that is u… 137 "description": "The role when no authentication on this interface is used.", 138 …"longDescription": "This property shall contain the `Id` property of the `Role` resource that is u… 191 … "description": "The Redfish role used for firmware authentication on this interface.", 192 …"longDescription": "This property shall contain the `Id` property of the `Role` resource that is c… 242 … "description": "The Redfish role used for kernel authentication on this interface.", 243 …"longDescription": "This property shall contain the `Id` property of the `Role` resource that is c… 317 "$ref": "http://redfish.dmtf.org/schemas/v1/Role.json#/definitions/Role", 318 …"description": "The link to the Redfish role that contains the privileges on this host interface w… [all …]
|
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema-installed/ |
H A D | Role.v1_3_3.json | 2 "$id": "http://redfish.dmtf.org/schemas/v1/Role.v1_3_3.json", 3 "$ref": "#/definitions/Role", 56 "Role": { object 58 …"description": "The `Role` schema contains a Redfish role to use in conjunction with a manager acc… 59 … "longDescription": "This resource shall represent the Redfish role for the user account.", 94 "description": "An equivalent role to use when this role is restricted.", 101 "description": "The Redfish privileges for this role.", 105 …escription": "This property shall contain the Redfish privileges for this role. For predefined ro… 125 …ription": "An indication of whether the role is predefined by Redfish or an OEM rather than a clie… 126 …property shall indicate whether the role is predefined by Redfish or an OEM as contrasted with a c… [all …]
|
/openbmc/phosphor-webui/app/common/directives/ |
H A D | ldap-user-roles.html | 1 <!-- Add & Remove Role Groups Buttons --> 11 <span>Add role group</span> 20 <span>Remove role groups</span> 23 <!-- LDAP Role Groups Table --> 25 <!-- LDAP Role Groups Table Header --> 79 <div class="table__cell-ldap-role"> 84 <!-- LDAP Disabled Role Groups Table Row --> 89 No role groups have been created yet. 92 LDAP authentication must be enabled before creating role groups. 98 <!-- Enabled LDAP Role Groups Table Rows --> [all …]
|
/openbmc/linux/drivers/usb/chipidea/ |
H A D | ci.h | 19 #include <linux/usb/role.h> 128 * struct ci_role_driver - host/gadget role driver 129 * @start: start this role 130 * @stop: stop this role 131 * @suspend: system suspend handler for this role 132 * @resume: system resume handler for this role 133 * @irq: irq handler for this role 134 * @name: role name string (host/gadget) 172 * @role: current role 179 * @work: work for role changing [all …]
|
H A D | otg.c | 119 * ci_otg_role - pick role based on ID pin state 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() 183 * vbus disconnect event is lost due to role in ci_handle_id_switch() 190 if (role == CI_ROLE_GADGET && in ci_handle_id_switch() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/usb/ |
H A D | mediatek,mtu3.yaml | 104 Regulator of USB VBUS5v, needed when supports dual-role mode. 132 when supports dual-role mode. 134 new bindings, and use "usb-role-switch" property instead. 136 usb-role-switch: 138 description: Support role switch. 141 role-switch-default-mode: 148 Connector for dual role switch, especially for "gpio-usb-b-connector" 154 using the OF graph bindings specified, if the "usb-role-switch" 161 supports manual dual-role switch via debugfs; usually used when 162 receptacle is TYPE-A and also wants to support dual-role mode. [all …]
|
/openbmc/linux/include/linux/usb/ |
H A D | role.h | 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 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); 68 const char *usb_role_string(enum usb_role role); 71 enum usb_role role) in usb_role_switch_set_role() argument [all …]
|
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() 224 * @try_role: Set data role preference for DRP port 225 * @dr_set: Set Data Role 226 * @pr_set: Set Power Role 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); [all …]
|
/openbmc/linux/drivers/extcon/ |
H A D | extcon-usbc-cros-ec.c | 28 unsigned int dr; /* data role */ 29 bool pr; /* power role (true if VBUS enabled) */ 136 * cros_ec_usb_get_role() - Get role info about possible PD device attached to a 141 * Return: role info on success, -ENOTCONN if no cable is connected, <0 on 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 [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() 91 messages::resourceNotFound(asyncResp->res, "Role", roleId); in requestRoutesRoles() 96 asyncResp->res.jsonValue["@odata.type"] = "#Role.v1_2_2.Role"; in requestRoutesRoles() 97 asyncResp->res.jsonValue["Name"] = "User Role"; in requestRoutesRoles() 98 asyncResp->res.jsonValue["Description"] = roleId + " User Role"; in requestRoutesRoles() 146 std::string role = getRoleFromPrivileges(priv); in requestRoutesRoleCollection() local 147 if (!role.empty()) in requestRoutesRoleCollection() [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-usb_role | 5 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
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/State/BMC/ |
H A D | Redundancy.interface.yaml | 6 - name: Role 7 type: enum[self.Role] 12 The redundancy role of the BMC. 54 - name: Role 56 Defines the redundancy role of the BMC. 60 The role is unknown. 63 The role is for the active BMC. This is the fully functioning 67 The role is for the passive BMC, which is the opposite of the
|
/openbmc/openbmc/meta-openembedded/meta-perl/recipes-perl/librole/ |
H A D | librole-tiny-perl_2.002004.bb | 1 SUMMARY = "Role::Tiny - Roles. Like a nouvelle cousine portion size of Moose." 2 DESCRIPTION = "\"Role::Tiny\" is a minimalist role composition tool." 6 HOMEPAGE = "https://metacpan.org/pod/Role::Tiny" 11 SRC_URI = "${CPAN_MIRROR}/authors/id/H/HA/HAARG/Role-Tiny-${PV}.tar.gz" 14 S = "${WORKDIR}/Role-Tiny-${PV}"
|
/openbmc/linux/drivers/misc/ |
H A D | hisi_hikey_usb.c | 22 #include <linux/usb/role.h> 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() 152 if (!device_property_read_bool(dev, "usb-role-switch")) in hisi_hikey_usb_of_role_switch() 184 dev_err(dev, "get device role switch failed with error %ld\n", in hisi_hikey_usb_of_role_switch() [all …]
|
/openbmc/linux/net/bridge/ |
H A D | br_mrp.c | 270 * - when node role is MRM, in this case test_monitor is always set to false 273 * - when node role is MRA, there are 2 subcases: 274 * - when MRA behaves as MRM, in this case is similar with MRM role 297 * role MRA and behaves as MRC. The reason is that the in br_mrp_test_work_expired() 300 * the role of a MRM. in br_mrp_test_work_expired() 348 /* This function is continuously called when the node has the interconnect role 437 /* Stop sending MRP_InTest frames if has an interconnect role */ in br_mrp_del_impl() 614 /* Set port role, port role can be primary or secondary 618 enum br_mrp_port_role_type role) in br_mrp_set_port_role() argument 630 switch (role) { in br_mrp_set_port_role() [all …]
|