Home
last modified time | relevance | path

Searched refs:role (Results 1 – 22 of 22) sorted by relevance

/net/bridge/
Dbr_mrp_switchdev.c66 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()
Dbr_mrp_netlink.c109 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 …]
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);
Dbr_mrp.c618 enum br_mrp_port_role_type role) in br_mrp_set_port_role() argument
630 switch (role) { in br_mrp_set_port_role()
641 br_mrp_port_switchdev_set_role(p, role); in br_mrp_set_port_role()
672 struct br_mrp_ring_role *role) in br_mrp_set_ring_role() argument
674 struct br_mrp *mrp = br_mrp_find_id(br, role->ring_id); in br_mrp_set_ring_role()
680 mrp->ring_role = role->ring_role; in br_mrp_set_ring_role()
683 support = br_mrp_switchdev_set_ring_role(br, mrp, role->ring_role); in br_mrp_set_ring_role()
758 int br_mrp_set_in_role(struct net_bridge *br, struct br_mrp_in_role *role) in br_mrp_set_in_role() argument
760 struct br_mrp *mrp = br_mrp_find_id(br, role->ring_id); in br_mrp_set_in_role()
767 if (!br_mrp_get_port(br, role->i_ifindex)) in br_mrp_set_in_role()
[all …]
/net/netfilter/
Dnf_conntrack_proto_dccp.c409 ct->proto.dccp.role[IP_CT_DIR_ORIGINAL] = CT_DCCP_ROLE_CLIENT; in dccp_new()
410 ct->proto.dccp.role[IP_CT_DIR_REPLY] = CT_DCCP_ROLE_SERVER; in dccp_new()
520 enum ct_dccp_roles role; in nf_conntrack_dccp_packet() local
549 role = ct->proto.dccp.role[dir]; in nf_conntrack_dccp_packet()
551 new_state = dccp_state_table[role][type][old_state]; in nf_conntrack_dccp_packet()
556 role == CT_DCCP_ROLE_SERVER) { in nf_conntrack_dccp_packet()
559 ct->proto.dccp.role[dir] = CT_DCCP_ROLE_CLIENT; in nf_conntrack_dccp_packet()
560 ct->proto.dccp.role[!dir] = CT_DCCP_ROLE_SERVER; in nf_conntrack_dccp_packet()
582 ct->proto.dccp.role[!dir] = CT_DCCP_ROLE_CLIENT; in nf_conntrack_dccp_packet()
583 ct->proto.dccp.role[dir] = CT_DCCP_ROLE_SERVER; in nf_conntrack_dccp_packet()
[all …]
/net/bluetooth/bnep/
Dbnep.h112 __u16 role; member
123 __u16 role; member
148 unsigned int role; member
Dcore.c601 s->role = req->role; in bnep_add_connection()
683 ci->role = s->role; in __bnep_copy_ci()
/net/bluetooth/
Dhci_conn.c223 conn->role = HCI_ROLE_MASTER; in hci_acl_create_connection()
263 if (conn->type == ACL_LINK && conn->role == HCI_ROLE_MASTER && in hci_disconnect()
539 if (conn->role == HCI_ROLE_SLAVE) { in le_conn_timeout()
552 u8 role) in hci_conn_add() argument
566 conn->role = role; in hci_conn_add()
583 if (conn->role == HCI_ROLE_MASTER) in hci_conn_add()
1044 u8 role, bdaddr_t *direct_rpa) in hci_connect_le() argument
1099 conn = hci_conn_add(hdev, LE_LINK, dst, role); in hci_connect_le()
1123 if (conn->role == HCI_ROLE_SLAVE) { in hci_connect_le()
1568 int hci_conn_switch_role(struct hci_conn *conn, __u8 role) in hci_conn_switch_role() argument
[all …]
Dsmp.c916 if (hcon->role == HCI_ROLE_MASTER) in tk_request()
1752 if (conn->hcon->role != HCI_ROLE_SLAVE) in smp_cmd_pairing_req()
1943 if (conn->hcon->role != HCI_ROLE_MASTER) in smp_cmd_pairing_rsp()
2201 hcon->role)) { in smp_cmd_pairing_random()
2250 key = hci_find_ltk(hcon->hdev, &hcon->dst, hcon->dst_type, hcon->role); in smp_ltk_encrypt()
2283 hci_find_ltk(hcon->hdev, &hcon->dst, hcon->dst_type, hcon->role)) in smp_sufficient_security()
2306 if (hcon->role != HCI_ROLE_MASTER) in smp_cmd_security_req()
2380 if (hcon->role == HCI_ROLE_MASTER) in smp_conn_security()
2424 if (hcon->role == HCI_ROLE_MASTER) { in smp_conn_security()
3094 if (hcon->role != HCI_ROLE_MASTER) in bredr_pairing()
Damp.c110 u8 role = out ? HCI_ROLE_MASTER : HCI_ROLE_SLAVE; in phylink_add() local
112 hcon = hci_conn_add(hdev, AMP_LINK, dst, role); in phylink_add()
Dhci_event.c135 conn->role = rp->role; in hci_cc_role_discovery()
2867 cp.role = 0x00; /* Become central */ in hci_conn_request_evt()
2869 cp.role = 0x01; /* Remain peripheral */ in hci_conn_request_evt()
3859 conn->role = ev->role; in hci_role_change_evt()
3863 hci_role_switch_cfm(conn, ev->status, ev->role); in hci_role_change_evt()
5264 bdaddr_t *local_rpa, u8 role, u16 handle, in le_conn_complete_evt() argument
5282 conn = hci_conn_add(hdev, LE_LINK, bdaddr, role); in le_conn_complete_evt()
5432 NULL, ev->role, le16_to_cpu(ev->handle), in hci_le_conn_complete_evt()
5446 &ev->local_rpa, ev->role, le16_to_cpu(ev->handle), in hci_le_enh_conn_complete_evt()
5979 ltk = hci_find_ltk(hdev, &conn->dst, conn->dst_type, conn->role); in hci_le_ltk_request_evt()
[all …]
Dhci_core.c2488 u8 addr_type, u8 role) in hci_find_ltk() argument
2497 if (smp_ltk_is_sc(k) || ltk_role(k->type) == role) { in hci_find_ltk()
2635 u8 role = ltk_role(type); in hci_add_ltk() local
2637 old_key = hci_find_ltk(hdev, bdaddr, addr_type, role); in hci_add_ltk()
Dsco.c765 cp.role = 0x00; /* Ignored */ in sco_conn_defer_accept()
Dmgmt.c7329 u8 status, flags, role, addr[7], hash[16], rand[16]; in read_local_oob_ext_data() local
7426 role = 0x02; in read_local_oob_ext_data()
7428 role = 0x01; in read_local_oob_ext_data()
7431 &role, sizeof(role)); in read_local_oob_ext_data()
Dl2cap_core.c1726 if (hcon->role == HCI_ROLE_SLAVE && in l2cap_le_conn_ready()
5600 if (hcon->role != HCI_ROLE_MASTER) in l2cap_conn_param_update_req()
/net/smc/
Dsmc_core.c88 (!lgr->is_smcd && lgr->role == SMC_CLNT) ? in smc_lgr_schedule_free_work()
134 if (conn->lgr->role == SMC_CLNT) { in smcr_lgr_conn_assign_link()
297 if (nla_put_u8(skb, SMC_NLA_LGR_R_ROLE, lgr->role)) in smc_nl_fill_lgr()
817 lgr->role = smc->listen_smc ? SMC_SERV : SMC_CLNT; in smc_lgr_create()
1527 if (lgr->role == SMC_SERV) { in smcr_link_down()
1649 enum smc_lgr_role role, u32 clcqpn) in smcr_lgr_match() argument
1654 lgr->role != role) in smcr_lgr_match()
1660 if ((lgr->role == SMC_SERV || lgr->lnk[i].peer_qpn == clcqpn) && in smcr_lgr_match()
1680 enum smc_lgr_role role; in smc_conn_create() local
1689 role = smc->listen_smc ? SMC_SERV : SMC_CLNT; in smc_conn_create()
[all …]
Dsmc_diag.c149 .role = smc->conn.lgr->role, in __smc_diag_dump()
Dsmc_llc.c205 flow_type, lgr->role); in smc_llc_flow_parallel()
321 flow->type, lgr->role, in smc_llc_wait()
739 if (lgr->role == SMC_CLNT) in smc_llc_add_link_cont()
1267 if (lgr->role == SMC_CLNT) in smc_llc_add_link_work()
1447 if (lgr->role == SMC_CLNT) in smc_llc_delete_link_work()
1557 if (lgr->role == SMC_CLNT) { in smc_llc_event_handler()
Dsmc_core.h249 enum smc_lgr_role role; member
Dsmc_ib.c135 if (lgr->role == SMC_SERV) { in smc_ib_ready_link()
/net/batman-adv/
Dtp_meter.c814 if (unlikely(tp_vars->role != BATADV_TP_SENDER)) { in batadv_tp_send()
984 tp_vars->role = BATADV_TP_SENDER; in batadv_tp_start()
1351 tp_vars->role = BATADV_TP_RECEIVER; in batadv_tp_init_recv()
1413 if (unlikely(tp_vars->role != BATADV_TP_RECEIVER)) { in batadv_tp_recv_msg()
1416 tp_vars->role); in batadv_tp_recv_msg()
Dtypes.h1391 enum batadv_tp_meter_role role; member