Searched refs:role (Results 1 - 25 of 210) sorted by last modified time

123456789

/linux-master/net/smc/
H A Dsmc_ib.c145 if (lgr->role == SMC_SERV) {
/linux-master/net/bluetooth/
H A Dsco.c768 cp.role = 0x00; /* Ignored */
H A Dl2cap_core.c1568 if (hcon->role == HCI_ROLE_SLAVE &&
4616 if (hcon->role != HCI_ROLE_MASTER)
H A Dhci_event.c179 conn->role = rp->role;
749 /* As slave role, the conn->state has been set to
2788 if (conn->type == LE_LINK && conn->role == HCI_ROLE_SLAVE) {
3364 cp.role = 0x00; /* Become central */
3366 cp.role = 0x01; /* Remain peripheral */
3484 if (conn->type == LE_LINK && conn->role == HCI_ROLE_SLAVE) {
4435 conn->role = ev->role;
4439 hci_role_switch_cfm(conn, ev->status, ev->role);
5744 le_conn_complete_evt(struct hci_dev *hdev, u8 status, bdaddr_t *bdaddr, u8 bdaddr_type, bdaddr_t *local_rpa, u8 role, u16 handle, u16 interval, u16 latency, u16 supervision_timeout) argument
[all...]
H A Dhci_core.c1239 u8 addr_type, u8 role)
1248 if (smp_ltk_is_sc(k) || ltk_role(k->type) == role) {
1386 u8 role = ltk_role(type); local
1388 old_key = hci_find_ltk(hdev, bdaddr, addr_type, role);
1238 hci_find_ltk(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 addr_type, u8 role) argument
H A Dmgmt.c8173 u8 status, flags, role, addr[7], hash[16], rand[16]; local
8275 role = 0x02;
8277 role = 0x01;
8280 &role, sizeof(role));
H A Dhci_sync.c871 /* Check le_states if there is any connection in peripheral role. */
887 /* Check le_states if there is any connection in central role. */
4499 /* If Connectionless Peripheral Broadcast central role is supported
4510 /* If Connectionless Peripheral Broadcast peripheral role is supported
5417 if (conn->role == HCI_ROLE_SLAVE ||
6398 if (conn->role == HCI_ROLE_SLAVE) {
6741 conn->role = HCI_ROLE_MASTER;
H A Dhci_conn.c190 if (conn->type == ACL_LINK && conn->role == HCI_ROLE_MASTER &&
655 if (conn->role == HCI_ROLE_SLAVE) {
830 if (conn->role == HCI_ROLE_MASTER) {
908 u8 role, u16 handle)
923 conn->role = role;
941 if (conn->role == HCI_ROLE_MASTER)
959 else if (conn->role == HCI_ROLE_MASTER)
1006 bdaddr_t *dst, u8 role)
1016 return hci_conn_add(hdev, type, dst, role, handl
907 hci_conn_add(struct hci_dev *hdev, int type, bdaddr_t *dst, u8 role, u16 handle) argument
1005 hci_conn_add_unset(struct hci_dev *hdev, int type, bdaddr_t *dst, u8 role) argument
1264 hci_connect_le(struct hci_dev *hdev, bdaddr_t *dst, u8 dst_type, bool dst_resolved, u8 sec_level, u16 conn_timeout, u8 role, u8 phy, u8 sec_phy) argument
2509 hci_conn_switch_role(struct hci_conn *conn, __u8 role) argument
[all...]
/linux-master/drivers/usb/typec/tcpm/
H A Dtcpm.c30 #include <linux/usb/role.h>
1031 tcpm_log(port, "Requesting mux state %d, usb-role %d, orientation %d",
1126 enum typec_role role, enum typec_data_role data)
1144 if (role == TYPEC_SOURCE)
1153 if (role == TYPEC_SINK)
1166 ret = port->tcpc->set_roles(port->tcpc, attached, role, data);
1176 port->pwr_role = role;
1179 typec_set_pwr_role(port->typec_port, role);
1184 static int tcpm_set_pwr_role(struct tcpm_port *port, enum typec_role role) argument
1188 ret = port->tcpc->set_roles(port->tcpc, true, role,
1125 tcpm_set_roles(struct tcpm_port *port, bool attached, enum typec_role role, enum typec_data_role data) argument
1204 tcpm_forge_legacy_pdo(struct tcpm_port *port, u32 pdo, enum typec_role role) argument
6482 tcpm_pr_set(struct typec_port *p, enum typec_role role) argument
6531 tcpm_vconn_set(struct typec_port *p, enum typec_role role) argument
6576 tcpm_try_role(struct typec_port *p, int role) argument
[all...]
/linux-master/drivers/usb/typec/tcpm/qcom/
H A Dqcom_pmic_typec.c17 #include <linux/usb/role.h>
/linux-master/drivers/usb/dwc3/
H A Dcore.h29 #include <linux/usb/role.h>
66 /* Controller's role while using the OTG block */
984 * @drd_work: workqueue used for role swapping
1014 * @current_otg_role: current role of operation while using the OTG block
1015 * @desired_otg_role: desired role of operation while using the OTG block
1027 * @current_dr_role: current role of operation when in dual-role mode
1028 * @desired_dr_role: desired role of operation when in dual-role mode
1036 * usb role i
[all...]
/linux-master/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_debugfs.c2678 char *role = NULL; local
2683 role = "root";
2687 role = "end";
2695 role = "branch";
2699 role = "no";
2702 seq_printf(m, "%s\n", role);
/linux-master/include/net/bluetooth/
H A Dhci_core.h711 __u8 role; member in struct:hci_conn
1021 if (c->role == HCI_ROLE_SLAVE)
1050 if (c->role == HCI_ROLE_SLAVE)
1500 u8 role, u16 handle);
1502 bdaddr_t *dst, u8 role);
1517 u16 conn_timeout, u8 role, u8 phy, u8 sec_phy);
1544 int hci_conn_switch_role(struct hci_conn *conn, __u8 role);
1773 u8 addr_type, u8 role);
2003 void (*role_switch_cfm) (struct hci_conn *conn, __u8 status, __u8 role);
2110 __u8 role)
2109 hci_role_switch_cfm(struct hci_conn *conn, __u8 status, __u8 role) argument
[all...]
H A Dhci.h719 #define EIR_LE_ROLE 0x1C /* LE role */
778 __u8 role; member in struct:hci_cp_accept_conn_req
1085 __u8 role; member in struct:hci_rp_role_discovery
1091 __u8 role; member in struct:hci_cp_switch_role
2374 __u8 role; member in struct:hci_ev_role_change
2641 __u8 role; member in struct:hci_ev_le_conn_complete
2796 __u8 role; member in struct:hci_ev_le_enh_conn_complete
/linux-master/drivers/net/
H A Dgtp.c74 unsigned int role; member in struct:gtp_dev
174 unsigned int hdrlen, unsigned int role)
183 if (role == GTP_ROLE_SGSN)
193 unsigned int hdrlen, unsigned int role)
197 return gtp_check_ms_ipv4(skb, pctx, hdrlen, role);
203 unsigned int hdrlen, unsigned int role)
205 if (!gtp_check_ms(skb, pctx, hdrlen, role)) {
442 return gtp_rx(pctx, skb, hdrlen, gtp->role);
619 return gtp_rx(pctx, skb, hdrlen, gtp->role);
814 if (gtp->role
173 gtp_check_ms_ipv4(struct sk_buff *skb, struct pdp_ctx *pctx, unsigned int hdrlen, unsigned int role) argument
192 gtp_check_ms(struct sk_buff *skb, struct pdp_ctx *pctx, unsigned int hdrlen, unsigned int role) argument
202 gtp_rx(struct pdp_ctx *pctx, struct sk_buff *skb, unsigned int hdrlen, unsigned int role) argument
1036 unsigned int role = GTP_ROLE_GGSN; local
[all...]
/linux-master/drivers/usb/typec/ucsi/
H A Ducsi.c31 * UCSI_SWAP_TIMEOUT_MS - Timeout for role swap requests
615 enum typec_role role, int is_partner,
629 command |= is_source(role) ? UCSI_GET_PDOS_SRC_PDOS : 0;
638 static int ucsi_get_pdos(struct ucsi_connector *con, enum typec_role role, argument
645 ret = ucsi_read_pdos(con, role, is_partner, pdos, 0, UCSI_MAX_PDOS);
654 ret = ucsi_read_pdos(con, role, is_partner, pdos, UCSI_MAX_PDOS,
820 caps.role = TYPEC_SOURCE;
839 caps.role = TYPEC_SINK;
1065 dev_err(con->ucsi->dev, "con:%d: failed to set usb role:%d\n",
1164 enum typec_role role; local
614 ucsi_read_pdos(struct ucsi_connector *con, enum typec_role role, int is_partner, u32 *pdos, int offset, int num_pdos) argument
1368 ucsi_dr_swap(struct typec_port *port, enum typec_data_role role) argument
1412 ucsi_pr_swap(struct typec_port *port, enum typec_role role) argument
[all...]
H A Ducsi.h12 #include <linux/usb/role.h>
/linux-master/arch/x86/kvm/svm/
H A Dsev.c1637 enum sev_migration_role role)
1643 if (mutex_lock_killable_nested(&vcpu->mutex, role))
1649 * Reset the role to one that avoids colliding with
1650 * the role used for the first vcpu mutex.
1652 role = SEV_NR_MIGRATION_ROLES;
1668 mutex_acquire(&vcpu->mutex.dep_map, role, 0, _THIS_IP_);
1636 sev_lock_vcpus_for_migration(struct kvm *kvm, enum sev_migration_role role) argument
/linux-master/arch/x86/kvm/mmu/
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.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/arch/x86/include/asm/
H A Dkvm_host.h309 * cannot be reused. The ability to reuse a SP is tracked by its role, which
312 * is the number of bits that are used to compute the role.
365 * including on nested transitions, if nothing in the full role changes then
369 * The properties that are tracked in the extended role but not the page role
371 * or (b) are indirectly reflected in the shadow page's role. For example,
374 * CR0.PG, CR4.PAE, and CR4.PSE are indirectly reflected in role.level.
376 * Note, SMEP and SMAP are not redundant with sm*p_andnot_wp in the page role.
2213 # define kvm_memslots_for_spte_role(kvm, role) __kvm_memslots(kvm, (role)
[all...]
/linux-master/drivers/scsi/hisi_sas/
H A Dhisi_sas_main.c1023 sas_phy->role = PHY_ROLE_INITIATOR;
/linux-master/drivers/usb/typec/
H A Dclass.c1417 int role; local
1421 dev_dbg(dev, "Preferred role only supported with DRP ports\n");
1426 dev_dbg(dev, "Setting preferred role not supported\n");
1430 role = sysfs_match_string(typec_roles, buf);
1431 if (role < 0) {
1433 role = TYPEC_NO_PREFERRED_ROLE;
1438 ret = port->ops->try_role(port, role);
1442 port->prefer_role = role;
1470 dev_dbg(dev, "data role swapping not supported\n");
1515 dev_dbg(dev, "power role swappin
1883 typec_set_data_role(struct typec_port *port, enum typec_data_role role) argument
1912 typec_set_pwr_role(struct typec_port *port, enum typec_role role) argument
1931 typec_set_vconn_role(struct typec_port *port, enum typec_role role) argument
[all...]
/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_lag.c39 if (lag->role != ICE_LAG_UNSET && lag->role != ICE_LAG_BACKUP) {
45 lag->role = ICE_LAG_PRIMARY;
59 if (lag->role != ICE_LAG_UNSET && lag->role != ICE_LAG_PRIMARY) {
65 lag->role = ICE_LAG_BACKUP;
336 const char *name, *upper, *role, *bonded, *primary; local
344 switch (lag->role) {
346 role = "NONE";
349 role
[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);

Completed in 867 milliseconds

123456789