Home
last modified time | relevance | path

Searched refs:sap (Results 1 - 25 of 136) sorted by relevance

123456

/kernel/linux/linux-5.10/net/llc/
H A Dllc_core.c2 * llc_core.c - Minimum needed routines for sap handling and module init/exit
29 * llc_sap_alloc - allocates and initializes sap.
31 * Allocates and initializes sap.
35 struct llc_sap *sap = kzalloc(sizeof(*sap), GFP_ATOMIC); in llc_sap_alloc() local
38 if (sap) { in llc_sap_alloc()
39 /* sap->laddr.mac - leave as a null, it's filled by bind */ in llc_sap_alloc()
40 sap->state = LLC_SAP_STATE_ACTIVE; in llc_sap_alloc()
41 spin_lock_init(&sap->sk_lock); in llc_sap_alloc()
43 INIT_HLIST_NULLS_HEAD(&sap in llc_sap_alloc()
51 struct llc_sap *sap; __llc_sap_find() local
72 struct llc_sap *sap; llc_sap_find() local
97 struct llc_sap *sap = NULL; llc_sap_open() local
122 llc_sap_close(struct llc_sap *sap) llc_sap_close() argument
[all...]
H A Dllc_sap.c89 * @sap: pointer to SAP
92 void llc_sap_rtn_pdu(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_rtn_pdu() argument
110 * @sap: pointer to SAP
117 static struct llc_sap_state_trans *llc_find_sap_trans(struct llc_sap *sap, in llc_find_sap_trans() argument
123 struct llc_sap_state *curr_state = &llc_sap_state_table[sap->state - 1]; in llc_find_sap_trans()
129 if (!next_trans[i]->ev(sap, skb)) { in llc_find_sap_trans()
138 * @sap: pointer to SAP
145 static int llc_exec_sap_trans_actions(struct llc_sap *sap, in llc_exec_sap_trans_actions() argument
153 if ((*next_action)(sap, skb)) in llc_exec_sap_trans_actions()
160 * @sap
167 llc_sap_next_state(struct llc_sap *sap, struct sk_buff *skb) llc_sap_next_state() argument
204 llc_sap_state_process(struct llc_sap *sap, struct sk_buff *skb) llc_sap_state_process() argument
231 llc_build_and_send_test_pkt(struct llc_sap *sap, struct sk_buff *skb, u8 *dmac, u8 dsap) llc_build_and_send_test_pkt() argument
257 llc_build_and_send_xid_pkt(struct llc_sap *sap, struct sk_buff *skb, u8 *dmac, u8 dsap) llc_build_and_send_xid_pkt() argument
281 llc_sap_rcv(struct llc_sap *sap, struct sk_buff *skb, struct sock *sk) llc_sap_rcv() argument
295 llc_dgram_match(const struct llc_sap *sap, const struct llc_addr *laddr, const struct sock *sk) llc_dgram_match() argument
314 llc_lookup_dgram(struct llc_sap *sap, const struct llc_addr *laddr) llc_lookup_dgram() argument
350 llc_mcast_match(const struct llc_sap *sap, const struct llc_addr *laddr, const struct sk_buff *skb, const struct sock *sk) llc_mcast_match() argument
362 llc_do_mcast(struct llc_sap *sap, struct sk_buff *skb, struct sock **stack, int count) llc_do_mcast() argument
389 llc_sap_mcast(struct llc_sap *sap, const struct llc_addr *laddr, struct sk_buff *skb) llc_sap_mcast() argument
421 llc_sap_handler(struct llc_sap *sap, struct sk_buff *skb) llc_sap_handler() argument
[all...]
H A Dllc_proc.c36 struct llc_sap *sap; in llc_get_sk_idx() local
40 list_for_each_entry_rcu(sap, &llc_sap_list, node) { in llc_get_sk_idx()
41 spin_lock_bh(&sap->sk_lock); in llc_get_sk_idx()
43 struct hlist_nulls_head *head = &sap->sk_laddr_hash[i]; in llc_get_sk_idx()
52 spin_unlock_bh(&sap->sk_lock); in llc_get_sk_idx()
67 static struct sock *laddr_hash_next(struct llc_sap *sap, int bucket) in laddr_hash_next() argument
73 sk_nulls_for_each(sk, node, &sap->sk_laddr_hash[bucket]) in laddr_hash_next()
84 struct llc_sap *sap; in llc_seq_next() local
98 sap = llc->sap; in llc_seq_next()
119 struct llc_sap *sap = llc->sap; llc_seq_stop() local
[all...]
H A Dllc_s_ac.c2 * llc_s_ac.c - actions performed during sap state transition.
5 * Functions in this module are implementation of sap component actions.
7 * All functions have one sap and one event as input argument. All of
31 * @sap: SAP
37 int llc_sap_action_unitdata_ind(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_action_unitdata_ind() argument
39 llc_sap_rtn_pdu(sap, skb); in llc_sap_action_unitdata_ind()
45 * @sap: SAP
52 int llc_sap_action_send_ui(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_action_send_ui() argument
70 * @sap: SAP
77 int llc_sap_action_send_xid_c(struct llc_sap *sap, struc argument
101 llc_sap_action_send_xid_r(struct llc_sap *sap, struct sk_buff *skb) llc_sap_action_send_xid_r() argument
133 llc_sap_action_send_test_c(struct llc_sap *sap, struct sk_buff *skb) llc_sap_action_send_test_c() argument
149 llc_sap_action_send_test_r(struct llc_sap *sap, struct sk_buff *skb) llc_sap_action_send_test_r() argument
186 llc_sap_action_report_status(struct llc_sap *sap, struct sk_buff *skb) llc_sap_action_report_status() argument
199 llc_sap_action_xid_ind(struct llc_sap *sap, struct sk_buff *skb) llc_sap_action_xid_ind() argument
213 llc_sap_action_test_ind(struct llc_sap *sap, struct sk_buff *skb) llc_sap_action_test_ind() argument
[all...]
H A Dllc_conn.c453 static inline bool llc_estab_match(const struct llc_sap *sap, in llc_estab_match() argument
467 * __llc_lookup_established - Finds connection for the remote/local sap/mac
468 * @sap: SAP
473 * mac, remote sap, local mac, and local sap. Returns pointer for
477 static struct sock *__llc_lookup_established(struct llc_sap *sap, in __llc_lookup_established() argument
483 int slot = llc_sk_laddr_hashfn(sap, laddr); in __llc_lookup_established()
484 struct hlist_nulls_head *laddr_hb = &sap->sk_laddr_hash[slot]; in __llc_lookup_established()
489 if (llc_estab_match(sap, daddr, laddr, rc)) { in __llc_lookup_established()
493 if (unlikely(llc_sk(rc)->sap ! in __llc_lookup_established()
514 llc_lookup_established(struct llc_sap *sap, struct llc_addr *daddr, struct llc_addr *laddr) llc_lookup_established() argument
526 llc_listener_match(const struct llc_sap *sap, const struct llc_addr *laddr, const struct sock *sk) llc_listener_match() argument
537 __llc_lookup_listener(struct llc_sap *sap, struct llc_addr *laddr) __llc_lookup_listener() argument
583 llc_lookup_listener(struct llc_sap *sap, struct llc_addr *laddr) llc_lookup_listener() argument
595 __llc_lookup(struct llc_sap *sap, struct llc_addr *daddr, struct llc_addr *laddr) __llc_lookup() argument
694 llc_sap_add_socket(struct llc_sap *sap, struct sock *sk) llc_sap_add_socket() argument
719 llc_sap_remove_socket(struct llc_sap *sap, struct sock *sk) llc_sap_remove_socket() argument
769 llc_conn_handler(struct llc_sap *sap, struct sk_buff *skb) llc_conn_handler() argument
[all...]
H A Dllc_s_ev.c23 int llc_sap_ev_activation_req(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_ev_activation_req() argument
31 int llc_sap_ev_rx_ui(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_ev_rx_ui() argument
41 int llc_sap_ev_unitdata_req(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_ev_unitdata_req() argument
51 int llc_sap_ev_xid_req(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_ev_xid_req() argument
60 int llc_sap_ev_rx_xid_c(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_ev_rx_xid_c() argument
70 int llc_sap_ev_rx_xid_r(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_ev_rx_xid_r() argument
80 int llc_sap_ev_test_req(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_ev_test_req() argument
89 int llc_sap_ev_rx_test_c(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_ev_rx_test_c() argument
99 int llc_sap_ev_rx_test_r(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_ev_rx_test_r() argument
109 int llc_sap_ev_deactivation_req(struct llc_sap *sap, struc argument
[all...]
H A Dllc_c_ac.c205 struct llc_sap *sap = llc->sap; in llc_conn_ac_send_disc_cmd_p_set_x() local
207 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_send_disc_cmd_p_set_x()
230 struct llc_sap *sap = llc->sap; in llc_conn_ac_send_dm_rsp_f_set_p() local
234 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_send_dm_rsp_f_set_p()
256 struct llc_sap *sap = llc->sap; in llc_conn_ac_send_dm_rsp_f_set_1() local
258 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_send_dm_rsp_f_set_1()
289 struct llc_sap *sap in llc_conn_ac_send_frmr_rsp_f_set_x() local
315 struct llc_sap *sap = llc->sap; llc_conn_ac_resend_frmr_rsp_f_set_0() local
345 struct llc_sap *sap = llc->sap; llc_conn_ac_resend_frmr_rsp_f_set_p() local
368 struct llc_sap *sap = llc->sap; llc_conn_ac_send_i_cmd_p_set_1() local
386 struct llc_sap *sap = llc->sap; llc_conn_ac_send_i_cmd_p_set_0() local
404 struct llc_sap *sap = llc->sap; llc_conn_ac_send_i_xxx_x_set_0() local
437 struct llc_sap *sap = llc->sap; llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr() local
472 struct llc_sap *sap = llc->sap; llc_conn_ac_send_rej_cmd_p_set_1() local
496 struct llc_sap *sap = llc->sap; llc_conn_ac_send_rej_rsp_f_set_1() local
520 struct llc_sap *sap = llc->sap; llc_conn_ac_send_rej_xxx_x_set_0() local
544 struct llc_sap *sap = llc->sap; llc_conn_ac_send_rnr_cmd_p_set_1() local
568 struct llc_sap *sap = llc->sap; llc_conn_ac_send_rnr_rsp_f_set_1() local
592 struct llc_sap *sap = llc->sap; llc_conn_ac_send_rnr_xxx_x_set_0() local
628 struct llc_sap *sap = llc->sap; llc_conn_ac_opt_send_rnr_xxx_x_set_0() local
652 struct llc_sap *sap = llc->sap; llc_conn_ac_send_rr_cmd_p_set_1() local
676 struct llc_sap *sap = llc->sap; llc_conn_ac_send_rr_rsp_f_set_1() local
701 struct llc_sap *sap = llc->sap; llc_conn_ac_send_ack_rsp_f_set_1() local
725 struct llc_sap *sap = llc->sap; llc_conn_ac_send_rr_xxx_x_set_0() local
749 struct llc_sap *sap = llc->sap; llc_conn_ac_send_ack_xxx_x_set_0() local
783 struct llc_sap *sap = llc->sap; llc_conn_ac_send_sabme_cmd_p_set_x() local
813 struct llc_sap *sap = llc->sap; llc_conn_ac_send_ua_rsp_f_set_p() local
915 struct llc_sap *sap = llc->sap; llc_conn_ac_send_i_rsp_f_set_ackpf() local
973 struct llc_sap *sap = llc->sap; llc_conn_ac_send_rr_rsp_f_set_ackpf() local
[all...]
/kernel/linux/linux-6.6/net/llc/
H A Dllc_core.c2 * llc_core.c - Minimum needed routines for sap handling and module init/exit
29 * llc_sap_alloc - allocates and initializes sap.
31 * Allocates and initializes sap.
35 struct llc_sap *sap = kzalloc(sizeof(*sap), GFP_ATOMIC); in llc_sap_alloc() local
38 if (sap) { in llc_sap_alloc()
39 /* sap->laddr.mac - leave as a null, it's filled by bind */ in llc_sap_alloc()
40 sap->state = LLC_SAP_STATE_ACTIVE; in llc_sap_alloc()
41 spin_lock_init(&sap->sk_lock); in llc_sap_alloc()
43 INIT_HLIST_NULLS_HEAD(&sap in llc_sap_alloc()
51 struct llc_sap *sap; __llc_sap_find() local
72 struct llc_sap *sap; llc_sap_find() local
97 struct llc_sap *sap = NULL; llc_sap_open() local
122 llc_sap_close(struct llc_sap *sap) llc_sap_close() argument
[all...]
H A Dllc_sap.c89 * @sap: pointer to SAP
92 void llc_sap_rtn_pdu(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_rtn_pdu() argument
110 * @sap: pointer to SAP
117 static struct llc_sap_state_trans *llc_find_sap_trans(struct llc_sap *sap, in llc_find_sap_trans() argument
123 struct llc_sap_state *curr_state = &llc_sap_state_table[sap->state - 1]; in llc_find_sap_trans()
129 if (!next_trans[i]->ev(sap, skb)) { in llc_find_sap_trans()
138 * @sap: pointer to SAP
145 static int llc_exec_sap_trans_actions(struct llc_sap *sap, in llc_exec_sap_trans_actions() argument
153 if ((*next_action)(sap, skb)) in llc_exec_sap_trans_actions()
160 * @sap
167 llc_sap_next_state(struct llc_sap *sap, struct sk_buff *skb) llc_sap_next_state() argument
204 llc_sap_state_process(struct llc_sap *sap, struct sk_buff *skb) llc_sap_state_process() argument
231 llc_build_and_send_test_pkt(struct llc_sap *sap, struct sk_buff *skb, u8 *dmac, u8 dsap) llc_build_and_send_test_pkt() argument
257 llc_build_and_send_xid_pkt(struct llc_sap *sap, struct sk_buff *skb, u8 *dmac, u8 dsap) llc_build_and_send_xid_pkt() argument
281 llc_sap_rcv(struct llc_sap *sap, struct sk_buff *skb, struct sock *sk) llc_sap_rcv() argument
295 llc_dgram_match(const struct llc_sap *sap, const struct llc_addr *laddr, const struct sock *sk, const struct net *net) llc_dgram_match() argument
317 llc_lookup_dgram(struct llc_sap *sap, const struct llc_addr *laddr, const struct net *net) llc_lookup_dgram() argument
354 llc_mcast_match(const struct llc_sap *sap, const struct llc_addr *laddr, const struct sk_buff *skb, const struct sock *sk) llc_mcast_match() argument
366 llc_do_mcast(struct llc_sap *sap, struct sk_buff *skb, struct sock **stack, int count) llc_do_mcast() argument
393 llc_sap_mcast(struct llc_sap *sap, const struct llc_addr *laddr, struct sk_buff *skb) llc_sap_mcast() argument
425 llc_sap_handler(struct llc_sap *sap, struct sk_buff *skb) llc_sap_handler() argument
[all...]
H A Dllc_proc.c36 struct llc_sap *sap; in llc_get_sk_idx() local
40 list_for_each_entry_rcu(sap, &llc_sap_list, node) { in llc_get_sk_idx()
41 spin_lock_bh(&sap->sk_lock); in llc_get_sk_idx()
43 struct hlist_nulls_head *head = &sap->sk_laddr_hash[i]; in llc_get_sk_idx()
52 spin_unlock_bh(&sap->sk_lock); in llc_get_sk_idx()
67 static struct sock *laddr_hash_next(struct llc_sap *sap, int bucket) in laddr_hash_next() argument
73 sk_nulls_for_each(sk, node, &sap->sk_laddr_hash[bucket]) in laddr_hash_next()
84 struct llc_sap *sap; in llc_seq_next() local
98 sap = llc->sap; in llc_seq_next()
119 struct llc_sap *sap = llc->sap; llc_seq_stop() local
[all...]
H A Dllc_s_ac.c2 * llc_s_ac.c - actions performed during sap state transition.
5 * Functions in this module are implementation of sap component actions.
7 * All functions have one sap and one event as input argument. All of
31 * @sap: SAP
37 int llc_sap_action_unitdata_ind(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_action_unitdata_ind() argument
39 llc_sap_rtn_pdu(sap, skb); in llc_sap_action_unitdata_ind()
45 * @sap: SAP
52 int llc_sap_action_send_ui(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_action_send_ui() argument
70 * @sap: SAP
77 int llc_sap_action_send_xid_c(struct llc_sap *sap, struc argument
101 llc_sap_action_send_xid_r(struct llc_sap *sap, struct sk_buff *skb) llc_sap_action_send_xid_r() argument
133 llc_sap_action_send_test_c(struct llc_sap *sap, struct sk_buff *skb) llc_sap_action_send_test_c() argument
149 llc_sap_action_send_test_r(struct llc_sap *sap, struct sk_buff *skb) llc_sap_action_send_test_r() argument
186 llc_sap_action_report_status(struct llc_sap *sap, struct sk_buff *skb) llc_sap_action_report_status() argument
199 llc_sap_action_xid_ind(struct llc_sap *sap, struct sk_buff *skb) llc_sap_action_xid_ind() argument
213 llc_sap_action_test_ind(struct llc_sap *sap, struct sk_buff *skb) llc_sap_action_test_ind() argument
[all...]
H A Dllc_conn.c454 static inline bool llc_estab_match(const struct llc_sap *sap, in llc_estab_match() argument
470 * __llc_lookup_established - Finds connection for the remote/local sap/mac
471 * @sap: SAP
477 * mac, remote sap, local mac, and local sap. Returns pointer for
481 static struct sock *__llc_lookup_established(struct llc_sap *sap, in __llc_lookup_established() argument
488 int slot = llc_sk_laddr_hashfn(sap, laddr); in __llc_lookup_established()
489 struct hlist_nulls_head *laddr_hb = &sap->sk_laddr_hash[slot]; in __llc_lookup_established()
494 if (llc_estab_match(sap, daddr, laddr, rc, net)) { in __llc_lookup_established()
498 if (unlikely(llc_sk(rc)->sap ! in __llc_lookup_established()
519 llc_lookup_established(struct llc_sap *sap, struct llc_addr *daddr, struct llc_addr *laddr, const struct net *net) llc_lookup_established() argument
532 llc_listener_match(const struct llc_sap *sap, const struct llc_addr *laddr, const struct sock *sk, const struct net *net) llc_listener_match() argument
545 __llc_lookup_listener(struct llc_sap *sap, struct llc_addr *laddr, const struct net *net) __llc_lookup_listener() argument
593 llc_lookup_listener(struct llc_sap *sap, struct llc_addr *laddr, const struct net *net) llc_lookup_listener() argument
606 __llc_lookup(struct llc_sap *sap, struct llc_addr *daddr, struct llc_addr *laddr, const struct net *net) __llc_lookup() argument
706 llc_sap_add_socket(struct llc_sap *sap, struct sock *sk) llc_sap_add_socket() argument
731 llc_sap_remove_socket(struct llc_sap *sap, struct sock *sk) llc_sap_remove_socket() argument
781 llc_conn_handler(struct llc_sap *sap, struct sk_buff *skb) llc_conn_handler() argument
[all...]
H A Dllc_s_ev.c23 int llc_sap_ev_activation_req(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_ev_activation_req() argument
31 int llc_sap_ev_rx_ui(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_ev_rx_ui() argument
41 int llc_sap_ev_unitdata_req(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_ev_unitdata_req() argument
51 int llc_sap_ev_xid_req(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_ev_xid_req() argument
60 int llc_sap_ev_rx_xid_c(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_ev_rx_xid_c() argument
70 int llc_sap_ev_rx_xid_r(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_ev_rx_xid_r() argument
80 int llc_sap_ev_test_req(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_ev_test_req() argument
89 int llc_sap_ev_rx_test_c(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_ev_rx_test_c() argument
99 int llc_sap_ev_rx_test_r(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_ev_rx_test_r() argument
109 int llc_sap_ev_deactivation_req(struct llc_sap *sap, struc argument
[all...]
H A Dllc_c_ac.c205 struct llc_sap *sap = llc->sap; in llc_conn_ac_send_disc_cmd_p_set_x() local
207 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_send_disc_cmd_p_set_x()
230 struct llc_sap *sap = llc->sap; in llc_conn_ac_send_dm_rsp_f_set_p() local
234 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_send_dm_rsp_f_set_p()
256 struct llc_sap *sap = llc->sap; in llc_conn_ac_send_dm_rsp_f_set_1() local
258 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_send_dm_rsp_f_set_1()
289 struct llc_sap *sap in llc_conn_ac_send_frmr_rsp_f_set_x() local
315 struct llc_sap *sap = llc->sap; llc_conn_ac_resend_frmr_rsp_f_set_0() local
345 struct llc_sap *sap = llc->sap; llc_conn_ac_resend_frmr_rsp_f_set_p() local
368 struct llc_sap *sap = llc->sap; llc_conn_ac_send_i_cmd_p_set_1() local
386 struct llc_sap *sap = llc->sap; llc_conn_ac_send_i_cmd_p_set_0() local
404 struct llc_sap *sap = llc->sap; llc_conn_ac_send_i_xxx_x_set_0() local
437 struct llc_sap *sap = llc->sap; llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr() local
472 struct llc_sap *sap = llc->sap; llc_conn_ac_send_rej_cmd_p_set_1() local
496 struct llc_sap *sap = llc->sap; llc_conn_ac_send_rej_rsp_f_set_1() local
520 struct llc_sap *sap = llc->sap; llc_conn_ac_send_rej_xxx_x_set_0() local
544 struct llc_sap *sap = llc->sap; llc_conn_ac_send_rnr_cmd_p_set_1() local
568 struct llc_sap *sap = llc->sap; llc_conn_ac_send_rnr_rsp_f_set_1() local
592 struct llc_sap *sap = llc->sap; llc_conn_ac_send_rnr_xxx_x_set_0() local
628 struct llc_sap *sap = llc->sap; llc_conn_ac_opt_send_rnr_xxx_x_set_0() local
652 struct llc_sap *sap = llc->sap; llc_conn_ac_send_rr_cmd_p_set_1() local
676 struct llc_sap *sap = llc->sap; llc_conn_ac_send_rr_rsp_f_set_1() local
701 struct llc_sap *sap = llc->sap; llc_conn_ac_send_ack_rsp_f_set_1() local
725 struct llc_sap *sap = llc->sap; llc_conn_ac_send_rr_xxx_x_set_0() local
749 struct llc_sap *sap = llc->sap; llc_conn_ac_send_ack_xxx_x_set_0() local
783 struct llc_sap *sap = llc->sap; llc_conn_ac_send_sabme_cmd_p_set_x() local
813 struct llc_sap *sap = llc->sap; llc_conn_ac_send_ua_rsp_f_set_p() local
915 struct llc_sap *sap = llc->sap; llc_conn_ac_send_i_rsp_f_set_ackpf() local
973 struct llc_sap *sap = llc->sap; llc_conn_ac_send_rr_rsp_f_set_ackpf() local
[all...]
/kernel/linux/linux-5.10/net/sunrpc/
H A Daddr.c28 static size_t rpc_ntop6_noscopeid(const struct sockaddr *sap, in rpc_ntop6_noscopeid() argument
31 const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; in rpc_ntop6_noscopeid()
66 static size_t rpc_ntop6(const struct sockaddr *sap, in rpc_ntop6() argument
69 const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; in rpc_ntop6()
74 len = rpc_ntop6_noscopeid(sap, buf, buflen); in rpc_ntop6()
98 static size_t rpc_ntop6_noscopeid(const struct sockaddr *sap, in rpc_ntop6_noscopeid() argument
104 static size_t rpc_ntop6(const struct sockaddr *sap, in rpc_ntop6() argument
112 static int rpc_ntop4(const struct sockaddr *sap, in rpc_ntop4() argument
115 const struct sockaddr_in *sin = (struct sockaddr_in *)sap; in rpc_ntop4()
122 * @sap
129 rpc_ntop(const struct sockaddr *sap, char *buf, const size_t buflen) rpc_ntop() argument
142 rpc_pton4(const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) rpc_pton4() argument
199 rpc_pton6(struct net *net, const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) rpc_pton6() argument
222 rpc_pton6(struct net *net, const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) rpc_pton6() argument
244 rpc_pton(struct net *net, const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) rpc_pton() argument
265 rpc_sockaddr2uaddr(const struct sockaddr *sap, gfp_t gfp_flags) rpc_sockaddr2uaddr() argument
310 rpc_uaddr2sockaddr(struct net *net, const char *uaddr, const size_t uaddr_len, struct sockaddr *sap, const size_t salen) rpc_uaddr2sockaddr() argument
[all...]
/kernel/linux/linux-6.6/net/sunrpc/
H A Daddr.c28 static size_t rpc_ntop6_noscopeid(const struct sockaddr *sap, in rpc_ntop6_noscopeid() argument
31 const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; in rpc_ntop6_noscopeid()
66 static size_t rpc_ntop6(const struct sockaddr *sap, in rpc_ntop6() argument
69 const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; in rpc_ntop6()
74 len = rpc_ntop6_noscopeid(sap, buf, buflen); in rpc_ntop6()
98 static size_t rpc_ntop6_noscopeid(const struct sockaddr *sap, in rpc_ntop6_noscopeid() argument
104 static size_t rpc_ntop6(const struct sockaddr *sap, in rpc_ntop6() argument
112 static int rpc_ntop4(const struct sockaddr *sap, in rpc_ntop4() argument
115 const struct sockaddr_in *sin = (struct sockaddr_in *)sap; in rpc_ntop4()
122 * @sap
129 rpc_ntop(const struct sockaddr *sap, char *buf, const size_t buflen) rpc_ntop() argument
142 rpc_pton4(const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) rpc_pton4() argument
199 rpc_pton6(struct net *net, const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) rpc_pton6() argument
222 rpc_pton6(struct net *net, const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) rpc_pton6() argument
244 rpc_pton(struct net *net, const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) rpc_pton() argument
265 rpc_sockaddr2uaddr(const struct sockaddr *sap, gfp_t gfp_flags) rpc_sockaddr2uaddr() argument
310 rpc_uaddr2sockaddr(struct net *net, const char *uaddr, const size_t uaddr_len, struct sockaddr *sap, const size_t salen) rpc_uaddr2sockaddr() argument
[all...]
/kernel/linux/linux-5.10/include/net/
H A Dllc.h46 * @station - station this sap belongs to
47 * @state - sap state
73 struct hlist_head *llc_sk_dev_hash(struct llc_sap *sap, int ifindex) in llc_sk_dev_hash() argument
77 return &sap->sk_dev_hash[bucket]; in llc_sk_dev_hash()
81 u32 llc_sk_laddr_hashfn(struct llc_sap *sap, const struct llc_addr *laddr) in llc_sk_laddr_hashfn() argument
88 struct hlist_nulls_head *llc_sk_laddr_hash(struct llc_sap *sap, in llc_sk_laddr_hash() argument
91 return &sap->sk_laddr_hash[llc_sk_laddr_hashfn(sap, laddr)]; in llc_sk_laddr_hash()
107 void (*handler)(struct llc_sap *sap, struct sk_buff *skb));
117 static inline void llc_sap_hold(struct llc_sap *sap) in llc_sap_hold() argument
122 llc_sap_hold_safe(struct llc_sap *sap) llc_sap_hold_safe() argument
129 llc_sap_put(struct llc_sap *sap) llc_sap_put() argument
[all...]
H A Dllc_s_ac.h26 typedef int (*llc_sap_action_t)(struct llc_sap *sap, struct sk_buff *skb);
28 int llc_sap_action_unitdata_ind(struct llc_sap *sap, struct sk_buff *skb);
29 int llc_sap_action_send_ui(struct llc_sap *sap, struct sk_buff *skb);
30 int llc_sap_action_send_xid_c(struct llc_sap *sap, struct sk_buff *skb);
31 int llc_sap_action_send_xid_r(struct llc_sap *sap, struct sk_buff *skb);
32 int llc_sap_action_send_test_c(struct llc_sap *sap, struct sk_buff *skb);
33 int llc_sap_action_send_test_r(struct llc_sap *sap, struct sk_buff *skb);
34 int llc_sap_action_report_status(struct llc_sap *sap, struct sk_buff *skb);
35 int llc_sap_action_xid_ind(struct llc_sap *sap, struct sk_buff *skb);
36 int llc_sap_action_test_ind(struct llc_sap *sap, struc
[all...]
H A Dllc_s_ev.h54 typedef int (*llc_sap_ev_t)(struct llc_sap *sap, struct sk_buff *skb);
56 int llc_sap_ev_activation_req(struct llc_sap *sap, struct sk_buff *skb);
57 int llc_sap_ev_rx_ui(struct llc_sap *sap, struct sk_buff *skb);
58 int llc_sap_ev_unitdata_req(struct llc_sap *sap, struct sk_buff *skb);
59 int llc_sap_ev_xid_req(struct llc_sap *sap, struct sk_buff *skb);
60 int llc_sap_ev_rx_xid_c(struct llc_sap *sap, struct sk_buff *skb);
61 int llc_sap_ev_rx_xid_r(struct llc_sap *sap, struct sk_buff *skb);
62 int llc_sap_ev_test_req(struct llc_sap *sap, struct sk_buff *skb);
63 int llc_sap_ev_rx_test_c(struct llc_sap *sap, struct sk_buff *skb);
64 int llc_sap_ev_rx_test_r(struct llc_sap *sap, struc
[all...]
/kernel/linux/linux-6.6/include/net/
H A Dllc.h46 * @station - station this sap belongs to
47 * @state - sap state
73 struct hlist_head *llc_sk_dev_hash(struct llc_sap *sap, int ifindex) in llc_sk_dev_hash() argument
77 return &sap->sk_dev_hash[bucket]; in llc_sk_dev_hash()
81 u32 llc_sk_laddr_hashfn(struct llc_sap *sap, const struct llc_addr *laddr) in llc_sk_laddr_hashfn() argument
88 struct hlist_nulls_head *llc_sk_laddr_hash(struct llc_sap *sap, in llc_sk_laddr_hash() argument
91 return &sap->sk_laddr_hash[llc_sk_laddr_hashfn(sap, laddr)]; in llc_sk_laddr_hash()
107 void (*handler)(struct llc_sap *sap, struct sk_buff *skb));
117 static inline void llc_sap_hold(struct llc_sap *sap) in llc_sap_hold() argument
122 llc_sap_hold_safe(struct llc_sap *sap) llc_sap_hold_safe() argument
129 llc_sap_put(struct llc_sap *sap) llc_sap_put() argument
[all...]
H A Dllc_s_ac.h30 typedef int (*llc_sap_action_t)(struct llc_sap *sap, struct sk_buff *skb);
32 int llc_sap_action_unitdata_ind(struct llc_sap *sap, struct sk_buff *skb);
33 int llc_sap_action_send_ui(struct llc_sap *sap, struct sk_buff *skb);
34 int llc_sap_action_send_xid_c(struct llc_sap *sap, struct sk_buff *skb);
35 int llc_sap_action_send_xid_r(struct llc_sap *sap, struct sk_buff *skb);
36 int llc_sap_action_send_test_c(struct llc_sap *sap, struct sk_buff *skb);
37 int llc_sap_action_send_test_r(struct llc_sap *sap, struct sk_buff *skb);
38 int llc_sap_action_report_status(struct llc_sap *sap, struct sk_buff *skb);
39 int llc_sap_action_xid_ind(struct llc_sap *sap, struct sk_buff *skb);
40 int llc_sap_action_test_ind(struct llc_sap *sap, struc
[all...]
H A Dllc_s_ev.h55 typedef int (*llc_sap_ev_t)(struct llc_sap *sap, struct sk_buff *skb);
57 int llc_sap_ev_activation_req(struct llc_sap *sap, struct sk_buff *skb);
58 int llc_sap_ev_rx_ui(struct llc_sap *sap, struct sk_buff *skb);
59 int llc_sap_ev_unitdata_req(struct llc_sap *sap, struct sk_buff *skb);
60 int llc_sap_ev_xid_req(struct llc_sap *sap, struct sk_buff *skb);
61 int llc_sap_ev_rx_xid_c(struct llc_sap *sap, struct sk_buff *skb);
62 int llc_sap_ev_rx_xid_r(struct llc_sap *sap, struct sk_buff *skb);
63 int llc_sap_ev_test_req(struct llc_sap *sap, struct sk_buff *skb);
64 int llc_sap_ev_rx_test_c(struct llc_sap *sap, struct sk_buff *skb);
65 int llc_sap_ev_rx_test_r(struct llc_sap *sap, struc
[all...]
/kernel/linux/linux-5.10/drivers/net/netdevsim/
H A Dipsec.c37 struct nsim_sa *sap = &ipsec->sa[i]; in nsim_dbg_netdev_ops_read() local
39 if (!sap->used) in nsim_dbg_netdev_ops_read()
44 i, (sap->rx ? 'r' : 't'), sap->ipaddr[0], in nsim_dbg_netdev_ops_read()
45 sap->ipaddr[1], sap->ipaddr[2], sap->ipaddr[3]); in nsim_dbg_netdev_ops_read()
48 i, be32_to_cpu(sap->xs->id.spi), in nsim_dbg_netdev_ops_read()
49 sap->xs->id.proto, sap in nsim_dbg_netdev_ops_read()
[all...]
/kernel/linux/linux-6.6/drivers/net/netdevsim/
H A Dipsec.c37 struct nsim_sa *sap = &ipsec->sa[i]; in nsim_dbg_netdev_ops_read() local
39 if (!sap->used) in nsim_dbg_netdev_ops_read()
44 i, (sap->rx ? 'r' : 't'), sap->ipaddr[0], in nsim_dbg_netdev_ops_read()
45 sap->ipaddr[1], sap->ipaddr[2], sap->ipaddr[3]); in nsim_dbg_netdev_ops_read()
48 i, be32_to_cpu(sap->xs->id.spi), in nsim_dbg_netdev_ops_read()
49 sap->xs->id.proto, sap in nsim_dbg_netdev_ops_read()
[all...]
/kernel/linux/linux-5.10/include/linux/sunrpc/
H A Daddr.h23 static inline unsigned short rpc_get_port(const struct sockaddr *sap) in rpc_get_port() argument
25 switch (sap->sa_family) { in rpc_get_port()
27 return ntohs(((struct sockaddr_in *)sap)->sin_port); in rpc_get_port()
29 return ntohs(((struct sockaddr_in6 *)sap)->sin6_port); in rpc_get_port()
34 static inline void rpc_set_port(struct sockaddr *sap, in rpc_set_port() argument
37 switch (sap->sa_family) { in rpc_set_port()
39 ((struct sockaddr_in *)sap)->sin_port = htons(port); in rpc_set_port()
42 ((struct sockaddr_in6 *)sap)->sin6_port = htons(port); in rpc_set_port()

Completed in 17 milliseconds

123456