Searched refs:role (Results 26 - 50 of 207) sorted by relevance

123456789

/linux-master/arch/x86/kvm/mmu/
H A Dtdp_iter.c42 if (WARN_ON_ONCE(!root || (root->role.level < 1) ||
43 (root->role.level > PT64_ROOT_MAX_LEVEL))) {
49 iter->root_level = root->role.level;
H A Dtdp_mmu.c86 KVM_BUG_ON(!is_tdp_mmu_page(root) || !root->role.invalid, kvm);
112 * role.invalid are protected by mmu_lock.
127 if ((!only_valid || !next_root->role.invalid) &&
178 ((_only_valid) && (_root)->role.invalid))) { \
198 gfn_t gfn, union kvm_mmu_page_role role)
204 sp->role = role;
216 union kvm_mmu_page_role role; local
220 role = parent_sp->role;
197 tdp_mmu_init_sp(struct kvm_mmu_page *sp, tdp_ptep_t sptep, gfn_t gfn, union kvm_mmu_page_role role) argument
229 union kvm_mmu_page_role role = mmu->root_role; local
[all...]
H A Dmmu_internal.h80 union kvm_mmu_page_role role; member in struct:kvm_mmu_page
138 static inline int kvm_mmu_role_as_id(union kvm_mmu_page_role role) argument
140 return role.smm ? 1 : 0;
145 return kvm_mmu_role_as_id(sp->role);
158 return kvm_x86_ops.cpu_dirty_log_size && sp->role.guest_mode;
H A Dspte.c143 int level = sp->role.level;
155 if (sp->role.ad_disabled)
274 u64 make_huge_page_split_spte(struct kvm *kvm, u64 huge_spte, union kvm_mmu_page_role role, argument
292 child_spte |= (index * KVM_PAGES_PER_HPAGE(role.level)) << PAGE_SHIFT;
294 if (role.level == PG_LEVEL_4K) {
302 if ((role.access & ACC_EXEC_MASK) && is_nx_huge_page_enabled(kvm))
/linux-master/drivers/usb/chipidea/
H A Dcore.c573 if (ci->role != CI_ROLE_END)
604 enum usb_role role; local
608 role = ci_role_to_usb_role(ci);
611 return role;
615 enum usb_role role)
620 if (role == USB_ROLE_HOST) {
627 } else if (role == USB_ROLE_DEVICE) {
649 enum ci_role role; local
653 role = ci_otg_role(ci);
658 * role switc
614 ci_usb_role_switch_set(struct usb_role_switch *sw, enum usb_role role) argument
862 enum ci_role role; local
1002 enum ci_role role; local
[all...]
/linux-master/net/bridge/
H A Dbr_mrp_netlink.c109 enum br_mrp_port_role_type role; local
122 role = nla_get_u32(tb[IFLA_BRIDGE_MRP_PORT_ROLE_ROLE]);
124 return br_mrp_set_port_role(p, role);
172 struct br_mrp_ring_role role; local
187 memset(&role, 0x0, sizeof(role));
189 role.ring_id = nla_get_u32(tb[IFLA_BRIDGE_MRP_RING_ROLE_RING_ID]);
190 role.ring_role = nla_get_u32(tb[IFLA_BRIDGE_MRP_RING_ROLE_ROLE]);
192 return br_mrp_set_ring_role(br, &role);
288 struct br_mrp_in_role role; local
[all...]
H A Dbr_mrp.c270 * - 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
300 * the role of a MRM.
348 /* This function is continuously called when the node has the interconnect role
437 /* Stop sending MRP_InTest frames if has an interconnect role */
614 /* Set port role, port role can be primary or secondary
618 enum br_mrp_port_role_type role)
617 br_mrp_set_port_role(struct net_bridge_port *p, enum br_mrp_port_role_type role) argument
671 br_mrp_set_ring_role(struct net_bridge *br, struct br_mrp_ring_role *role) argument
758 br_mrp_set_in_role(struct net_bridge *br, struct br_mrp_in_role *role) argument
[all...]
/linux-master/drivers/usb/musb/
H A Dmediatek.c16 #include <linux/usb/role.h>
51 enum usb_role role; member in struct:mtk_glue
66 static int mtk_otg_switch_set(struct mtk_glue *glue, enum usb_role role) argument
72 if (role == glue->role)
75 switch (role) {
80 if (glue->role == USB_ROLE_NONE)
93 if (glue->role == USB_ROLE_NONE)
103 if (glue->role != USB_ROLE_NONE)
112 glue->role
118 musb_usb_role_sx_set(struct usb_role_switch *sw, enum usb_role role) argument
[all...]
/linux-master/drivers/block/drbd/
H A Ddrbd_state_change.h7 enum drbd_role role[2]; member in struct:drbd_resource_state_change
H A Ddrbd_state.c105 state_change->resource->role[OLD] =
167 resource_state_change->role[NEW] =
219 OLD_TO_NEW(resource_state_change->role);
305 device->state.role != R_SECONDARY) {
337 enum drbd_role role = R_SECONDARY; local
344 role = max_role(role, device->state.role);
348 return role;
471 ((os.role !
[all...]
/linux-master/net/netfilter/
H A Dnf_conntrack_proto_dccp.c411 ct->proto.dccp.role[IP_CT_DIR_ORIGINAL] = CT_DCCP_ROLE_CLIENT;
412 ct->proto.dccp.role[IP_CT_DIR_REPLY] = CT_DCCP_ROLE_SERVER;
522 enum ct_dccp_roles role; local
551 role = ct->proto.dccp.role[dir];
553 new_state = dccp_state_table[role][type][old_state];
558 role == CT_DCCP_ROLE_SERVER) {
561 ct->proto.dccp.role[dir] = CT_DCCP_ROLE_CLIENT;
562 ct->proto.dccp.role[!dir] = CT_DCCP_ROLE_SERVER;
584 ct->proto.dccp.role[!di
[all...]
/linux-master/drivers/usb/cdns3/
H A Dcore.h15 #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)
65 * @role: current role
105 enum usb_role role; member in struct:cdns
[all...]
/linux-master/security/selinux/ss/
H A Dcontext.h26 * identity, a role, a type and a MLS range.
30 u32 role; member in struct:context
161 dst->role = src->role;
184 c->user = c->role = c->type = 0;
198 return ((c1->user == c2->user) && (c1->role == c2->role) &&
/linux-master/drivers/media/tuners/
H A Dit913x.c18 u8 role:2; member in struct:it913x_dev
36 dev_dbg(&pdev->dev, "role %u\n", dev->role);
154 dev_dbg(&pdev->dev, "role %u\n", dev->role);
166 if (dev->role == IT913X_ROLE_DUAL_MASTER)
171 dev_dbg(&pdev->dev, "role %u, len %d\n", dev->role, len);
218 dev_dbg(&pdev->dev, "role=%u, frequency %u, bandwidth_hz %u\n",
219 dev->role,
[all...]
H A Dtda18271.h82 enum tda18271_role role; member in struct:tda18271_config
/linux-master/drivers/extcon/
H A Dextcon-axp288.c22 #include <linux/usb/role.h>
153 * The below code to control the USB role-switch on devices with an AXP288
155 * to control the USB role-switch on such devices:
156 * 1) On many devices the USB role is controlled by AML code, but the AML code
161 * 2) In order for our BC1.2 charger detection to work properly the role
168 enum usb_role role; local
174 role = usb_role_switch_get_role(info->role_sw);
175 return role != USB_ROLE_HOST;
182 enum usb_role role; local
188 role
[all...]
/linux-master/drivers/usb/dwc3/
H A Ddrd.c3 * drd.c - DesignWare USB3 DRD Controller Dual-role support
220 * We don't want SRP/HNP for simple dual-role so leave
227 * We don't want HNP/role-swap so leave these disabled.
275 * but we keep them 0 for simple dual-role operation.
339 /* don't do anything if debug user changed role to not OTG */
447 enum usb_role role)
452 switch (role) {
475 enum usb_role role; local
480 role = USB_ROLE_HOST;
483 role
446 dwc3_usb_role_switch_set(struct usb_role_switch *sw, enum usb_role role) argument
[all...]
/linux-master/drivers/usb/typec/mux/
H A Dintel_pmc_mux.c14 #include <linux/usb/role.h>
142 enum usb_role role; member in struct:pmc_usb_port
297 req.mode_data |= (port->role - 1) << PMC_USB_ALTMODE_UFP_SHIFT;
347 req.mode_data |= (port->role - 1) << PMC_USB_ALTMODE_UFP_SHIFT;
400 req.mode_data |= (port->role - 1) << PMC_USB_ALTMODE_UFP_SHIFT;
477 static int pmc_usb_connect(struct pmc_usb_port *port, enum usb_role role) argument
479 u8 ufp = role == USB_ROLE_DEVICE ? 1 : 0;
487 if (port->role == role || port->role
556 pmc_usb_set_role(struct usb_role_switch *sw, enum usb_role role) argument
[all...]
/linux-master/include/linux/usb/
H A Dtcpm.h82 * Optional; if supported by hardware, called to start dual-role
83 * toggling or single-role connection detection. Toggling stops
85 * @try_role: Optional; called to set a preferred role
89 * Optional; Called to enable/disable PD 3.0 fast role swap.
91 * accessories support fast role swap.
154 enum typec_role role, enum typec_data_role data);
158 int (*try_role)(struct tcpc_dev *dev, int role);
/linux-master/drivers/net/dsa/sja1105/
H A Dsja1105_clocking.c152 int port, sja1105_mii_role_t role)
176 if (role == XMII_MAC)
273 sja1105_mii_role_t role)
279 (role == XMII_MAC) ? "MAC" : "PHY");
280 /* If role is MAC, disable IDIV
281 * If role is PHY, enable IDIV and configure for 1/1 divider
283 rc = sja1105_cgu_idiv_config(priv, port, (role == XMII_PHY), 1);
288 * * If role is MAC, select TX_CLK_n
289 * * If role is PHY, select IDIV_n
291 rc = sja1105_cgu_mii_tx_clk_config(priv, port, role);
151 sja1105_cgu_mii_tx_clk_config(struct sja1105_private *priv, int port, sja1105_mii_role_t role) argument
272 sja1105_mii_clocking_setup(struct sja1105_private *priv, int port, sja1105_mii_role_t role) argument
586 sja1105_rgmii_clocking_setup(struct sja1105_private *priv, int port, sja1105_mii_role_t role) argument
735 sja1105_rmii_clocking_setup(struct sja1105_private *priv, int port, sja1105_mii_role_t role) argument
771 sja1105_mii_role_t role; local
[all...]
/linux-master/drivers/usb/mtu3/
H A Dmtu3_dr.c3 * mtu3_dr.c - dual role switch and host glue layer
28 /* only port0 supports dual-role mode */
148 dev_dbg(ssusb->dev, "set role : %s\n", usb_role_string(desired_role));
149 mtu3_dbg_trace(ssusb->dev, "set role : %s", usb_role_string(desired_role));
169 dev_err(ssusb->dev, "invalid role\n");
174 static void ssusb_set_mode(struct otg_switch_mtk *otg_sx, enum usb_role role) argument
181 otg_sx->desired_role = role;
228 * wants to support dual-role mode.
260 static int ssusb_role_sw_set(struct usb_role_switch *sw, enum usb_role role) argument
265 ssusb_set_mode(otg_sx, role);
[all...]
/linux-master/drivers/usb/typec/
H A Dhd3ss3220.c10 #include <linux/usb/role.h>
79 static int hd3ss3220_dr_set(struct typec_port *port, enum typec_data_role role) argument
85 if (role == TYPEC_HOST) {
97 typec_set_data_role(hd3ss3220->port, role);
/linux-master/drivers/platform/x86/
H A Dthink-lmi.h71 const char *role; member in struct:tlmi_pwd_setting
/linux-master/include/uapi/linux/
H A Dsmc_diag.h96 __u8 role; member in struct:smc_diag_lgrinfo
/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_lag.h50 u8 role; member in struct:ice_lag

Completed in 229 milliseconds

123456789