Searched refs:role (Results 1 - 25 of 210) sorted by relevance

123456789

/linux-master/drivers/media/tuners/
H A Dit913x.h18 * @role: Chip role, single or dual configuration.
27 unsigned int role:2; member in struct:it913x_platform_data
/linux-master/drivers/usb/cdns3/
H A Dcore.c29 static int cdns_role_start(struct cdns *cdns, enum usb_role role) argument
33 if (WARN_ON(role > USB_ROLE_DEVICE))
37 cdns->role = role;
40 if (!cdns->roles[role])
43 if (cdns->roles[role]->state == CDNS_ROLE_STATE_ACTIVE)
47 ret = cdns->roles[role]->start(cdns);
49 cdns->roles[role]->state = CDNS_ROLE_STATE_ACTIVE;
57 enum usb_role role = cdns->role; local
214 enum usb_role role = USB_ROLE_NONE; local
358 cdns_role_set(struct usb_role_switch *sw, enum usb_role role) argument
[all...]
/linux-master/drivers/usb/roles/
H A DMakefile5 obj-$(CONFIG_USB_ROLES_INTEL_XHCI) += intel-xhci-usb-role-switch.o
H A Dintel-xhci-usb-role-switch.c3 * Intel XHCI (Cherry Trail, Broxton and others) USB OTG role switch driver
23 #include <linux/usb/role.h>
56 enum usb_role role)
80 * SW_SWITCH_EN bits to be zero for role switch,
84 switch (role) {
116 if (!!(val & HOST_MODE) == (role == USB_ROLE_HOST)) {
127 dev_warn(data->dev, "Timeout waiting for role-switch\n");
134 enum usb_role role; local
142 role = USB_ROLE_HOST;
144 role
55 intel_xhci_usb_set_role(struct usb_role_switch *sw, enum usb_role role) argument
[all...]
H A Dclass.c11 #include <linux/usb/role.h>
26 enum usb_role role; member in struct:usb_role_switch
48 ret = sysfs_create_link(&connector->kobj, &dev->kobj, "usb-role-switch");
57 sysfs_remove_link(&connector->kobj, "usb-role-switch");
67 * usb_role_switch_set_role - Set USB role for a switch
68 * @sw: USB role switch
69 * @role: USB role to be switched to
71 * Set USB role @role fo
73 usb_role_switch_set_role(struct usb_role_switch *sw, enum usb_role role) argument
106 enum usb_role role; local
257 usb_role_string(enum usb_role role) argument
270 enum usb_role role = usb_role_switch_get_role(sw); local
[all...]
/linux-master/drivers/usb/dwc2/
H A Ddrd.c3 * 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) argument
93 if ((role == USB_ROLE_DEVICE && hsotg->dr_mode == USB_DR_MODE_HOST) ||
94 (role == USB_ROLE_HOST && hsotg->dr_mode == USB_DR_MODE_PERIPHERAL))
100 if (role == USB_ROLE_NONE && hsotg->test_mode) {
109 * If role-switch set is called before the udc_start, we need to enable
122 if (role == USB_ROLE_NONE) {
123 /* default operation mode when usb role is USB_ROLE_NONE */
125 role
211 enum usb_role role; local
[all...]
/linux-master/drivers/s390/net/
H A Dqeth_l2.h15 enum qeth_sbp_roles *role,
17 int qeth_bridgeport_setrole(struct qeth_card *card, enum qeth_sbp_roles role);
34 return card->options.sbp.role ||
H A Dqeth_l2_sys.c28 &card->options.sbp.role, &state);
42 switch (card->options.sbp.role) {
54 card->options.sbp.role, state);
79 enum qeth_sbp_roles role; local
82 role = QETH_SBP_ROLE_PRIMARY;
84 role = QETH_SBP_ROLE_SECONDARY;
86 role = QETH_SBP_ROLE_NONE;
99 rc = qeth_bridgeport_setrole(card, role);
101 card->options.sbp.role = role;
[all...]
/linux-master/drivers/usb/chipidea/
H A Dci.h19 #include <linux/usb/role.h>
127 * struct ci_role_driver - host/gadget role driver
128 * @start: start this role
129 * @stop: stop this role
130 * @suspend: system suspend handler for this role
131 * @resume: system resume handler for this role
132 * @irq: irq handler for this role
133 * @name: role name string (host/gadget)
171 * @role: current role
220 enum ci_role role; member in struct:ci_hdrc
276 ci_role_start(struct ci_hdrc *ci, enum ci_role role) argument
305 enum ci_role role = ci->role; local
328 usb_role_to_ci_role(enum usb_role role) argument
[all...]
H A Dotg.c119 * ci_otg_role - pick role based on ID pin state
124 enum ci_role role = hw_read_otgsc(ci, OTGSC_ID) local
128 return role;
173 enum ci_role role; local
176 role = ci_otg_role(ci);
177 if (role != ci->role) {
179 ci_role(ci)->name, ci->roles[role]->name);
181 if (ci->vbus_active && ci->role == CI_ROLE_GADGET)
183 * vbus disconnect event is lost due to role
[all...]
/linux-master/security/selinux/ss/
H A Dcontext.c29 hash = jhash_3words(c->user, c->role, c->type, hash);
/linux-master/include/linux/usb/
H A Drole.h17 enum usb_role role);
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)
119 static inline const char *usb_role_string(enum usb_role role) argument
70 usb_role_switch_set_role(struct usb_role_switch *sw, enum usb_role role) argument
[all...]
H A Dtypec.h59 static inline int is_sink(enum typec_role role) argument
61 return role == TYPEC_SINK;
64 static inline int is_source(enum typec_role role) argument
66 return role == TYPEC_SOURCE;
233 * @try_role: Set data role preference for DRP port
242 int (*try_role)(struct typec_port *port, int role);
243 int (*dr_set)(struct typec_port *port, enum typec_data_role role);
244 int (*pr_set)(struct typec_port *port, enum typec_role role);
245 int (*vconn_set)(struct typec_port *port, enum typec_role role);
260 * @type: Supported power role o
[all...]
/linux-master/include/linux/netfilter/
H A Dnf_conntrack_dccp.h31 u_int8_t role[IP_CT_DIR_MAX]; member in struct:nf_ct_dccp
/linux-master/drivers/usb/typec/
H A Dpd.h19 enum typec_role role; member in struct:usb_power_delivery_capabilities
/linux-master/net/bridge/
H A Dbr_mrp_switchdev.c66 enum br_mrp_ring_role_type role)
71 .ring_role = role,
82 role != BR_MRP_RING_ROLE_DISABLED);
90 if (role != BR_MRP_RING_ROLE_DISABLED)
142 enum br_mrp_in_role_type role)
147 .in_role = role,
160 role != BR_MRP_IN_ROLE_DISABLED);
168 if (role != BR_MRP_IN_ROLE_DISABLED)
229 enum br_mrp_port_role_type role)
234 .u.mrp_port_role = role,
65 br_mrp_switchdev_set_ring_role(struct net_bridge *br, struct br_mrp *mrp, enum br_mrp_ring_role_type role) argument
140 br_mrp_switchdev_set_in_role(struct net_bridge *br, struct br_mrp *mrp, u16 in_id, u32 ring_id, enum br_mrp_in_role_type role) argument
228 br_mrp_port_switchdev_set_role(struct net_bridge_port *p, enum br_mrp_port_role_type role) argument
[all...]
H A Dbr_private_mrp.h71 enum br_mrp_port_role_type role);
74 int br_mrp_set_ring_role(struct net_bridge *br, struct br_mrp_ring_role *role);
77 int br_mrp_set_in_role(struct net_bridge *br, struct br_mrp_in_role *role);
86 enum br_mrp_ring_role_type role);
95 enum br_mrp_port_role_type role);
99 enum br_mrp_in_role_type role);
/linux-master/drivers/misc/
H A Dhisi_hikey_usb.c21 #include <linux/usb/role.h>
43 enum usb_role role; member in struct:hisi_hikey_usb
97 enum usb_role role; local
103 switch (hisi_hikey_usb->role) {
123 role = hisi_hikey_usb->role;
126 usb_role_switch_set_role(sw, role);
129 static int hub_usb_role_switch_set(struct usb_role_switch *sw, enum usb_role role) argument
137 hisi_hikey_usb->role = role;
[all...]
/linux-master/drivers/usb/dwc3/
H A Ddwc3-rtk.c18 #include <linux/usb/role.h>
64 static void switch_usb2_role(struct dwc3_rtk *rtk, enum usb_role role) argument
72 switch (role) {
80 dev_dbg(rtk->dev, "%s: role=%d\n", __func__, role);
85 static void switch_dwc3_role(struct dwc3_rtk *rtk, enum usb_role role) argument
90 usb_role_switch_set_role(rtk->dwc->role_sw, role);
95 enum usb_role role; local
97 role = rtk->cur_role;
100 role
107 dwc3_rtk_set_role(struct dwc3_rtk *rtk, enum usb_role role) argument
117 dwc3_usb_role_switch_set(struct usb_role_switch *sw, enum usb_role role) argument
[all...]
/linux-master/drivers/extcon/
H A Dextcon-usbc-cros-ec.c28 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;
166 return resp.role;
188 static const char *cros_ec_usb_role_string(unsigned int role) argument
190 return role == DR_NONE ? "DISCONNECTED" :
191 (role == DR_HOST ? "DFP" : "UFP");
223 unsigned int role)
222 cros_ec_usb_power_type_is_wall_wart(unsigned int type, unsigned int role) argument
251 int role, power_type; local
[all...]
/linux-master/drivers/usb/common/
H A Dusb-conn-gpio.c22 #include <linux/usb/role.h>
68 enum usb_role role; local
81 role = USB_ROLE_HOST;
83 role = USB_ROLE_DEVICE;
85 role = USB_ROLE_NONE;
87 dev_dbg(info->dev, "role %s -> %s, gpios: id %d, vbus %d\n",
88 usb_role_string(info->last_role), usb_role_string(role), id, vbus);
90 if (!info->initial_detection && info->last_role == role) {
91 dev_warn(info->dev, "repeated role: %s\n", usb_role_string(role));
[all...]
/linux-master/drivers/platform/chrome/
H A Dcros_ec_typec.h10 #include <linux/usb/role.h>
66 uint8_t role; member in struct:cros_typec_port
/linux-master/arch/x86/kvm/mmu/
H A Dmmutrace.h14 __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
[all...]
H A Dmmu.c218 * The MMU itself (with a valid role) is the single source of truth for the
219 * MMU. Do not use the regs used to build the MMU/role, nor the vCPU. The
289 kvm_flush_remote_tlbs_gfn(kvm, gfn, sp->role.level);
565 int level = sptep_to_sp(sptep)->role.level;
719 if (sp->role.passthrough)
722 if (!sp->role.direct)
725 return sp->gfn + (index << ((sp->role.level - 1) * SPTE_LEVEL_BITS));
749 * In both cases, sp->role.access contains the correct access bits.
751 return sp->role.access;
764 sp->role
2151 kvm_mmu_find_shadow_page(struct kvm *kvm, struct kvm_vcpu *vcpu, gfn_t gfn, struct hlist_head *sp_list, union kvm_mmu_page_role role) argument
2236 kvm_mmu_alloc_shadow_page(struct kvm *kvm, struct shadow_page_caches *caches, gfn_t gfn, struct hlist_head *sp_list, union kvm_mmu_page_role role) argument
2272 __kvm_mmu_get_shadow_page(struct kvm *kvm, struct kvm_vcpu *vcpu, struct shadow_page_caches *caches, gfn_t gfn, union kvm_mmu_page_role role) argument
2294 kvm_mmu_get_shadow_page(struct kvm_vcpu *vcpu, gfn_t gfn, union kvm_mmu_page_role role) argument
2311 union kvm_mmu_page_role role; local
2357 union kvm_mmu_page_role role; local
3686 union kvm_mmu_page_role role = vcpu->arch.mmu->root_role; local
4669 is_root_usable(struct kvm_mmu_root_info *root, gpa_t pgd, union kvm_mmu_page_role role) argument
5260 union kvm_cpu_role role = {0}; local
5329 union kvm_mmu_page_role role = {0}; local
5450 union kvm_cpu_role role = {0}; local
6494 union kvm_mmu_page_role role; local
[all...]
/linux-master/net/bluetooth/bnep/
H A Dbnep.h112 __u16 role; member in struct:bnep_connadd_req
123 __u16 role; member in struct:bnep_conninfo
148 unsigned int role; member in struct:bnep_session

Completed in 258 milliseconds

123456789