/net/llc/ |
D | llc_core.c | 35 struct llc_sap *sap = kzalloc(sizeof(*sap), GFP_ATOMIC); in llc_sap_alloc() local 38 if (sap) { 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->sk_laddr_hash[i], i); in llc_sap_alloc() 44 atomic_set(&sap->refcnt, 1); in llc_sap_alloc() 46 return sap; in llc_sap_alloc() 51 struct llc_sap *sap; in __llc_sap_find() local 53 list_for_each_entry(sap, &llc_sap_list, node) in __llc_sap_find() 54 if (sap->laddr.lsap == sap_value) in __llc_sap_find() [all …]
|
D | llc_sap.c | 91 void llc_sap_rtn_pdu(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_rtn_pdu() argument 116 static struct llc_sap_state_trans *llc_find_sap_trans(struct llc_sap *sap, in llc_find_sap_trans() argument 122 struct llc_sap_state *curr_state = &llc_sap_state_table[sap->state - 1]; in llc_find_sap_trans() 128 if (!next_trans[i]->ev(sap, skb)) { in llc_find_sap_trans() 144 static int llc_exec_sap_trans_actions(struct llc_sap *sap, in llc_exec_sap_trans_actions() argument 152 if ((*next_action)(sap, skb)) in llc_exec_sap_trans_actions() 166 static int llc_sap_next_state(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_next_state() argument 171 if (sap->state > LLC_NR_SAP_STATES) in llc_sap_next_state() 173 trans = llc_find_sap_trans(sap, skb); in llc_sap_next_state() 181 rc = llc_exec_sap_trans_actions(sap, trans, skb); in llc_sap_next_state() [all …]
|
D | llc_proc.c | 36 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() 99 sk = laddr_hash_next(sap, llc_sk_laddr_hashfn(sap, &llc->laddr)); in llc_seq_next() [all …]
|
D | llc_c_ac.c | 205 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 = llc->sap; in llc_conn_ac_send_frmr_rsp_f_set_x() local 291 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_send_frmr_rsp_f_set_x() 315 struct llc_sap *sap = llc->sap; in llc_conn_ac_resend_frmr_rsp_f_set_0() local 318 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_resend_frmr_rsp_f_set_0() [all …]
|
D | llc_conn.c | 472 static inline bool llc_estab_match(const struct llc_sap *sap, in llc_estab_match() argument 496 static struct sock *__llc_lookup_established(struct llc_sap *sap, in __llc_lookup_established() argument 502 int slot = llc_sk_laddr_hashfn(sap, laddr); in __llc_lookup_established() 503 struct hlist_nulls_head *laddr_hb = &sap->sk_laddr_hash[slot]; in __llc_lookup_established() 508 if (llc_estab_match(sap, daddr, laddr, rc)) { in __llc_lookup_established() 512 if (unlikely(llc_sk(rc)->sap != sap || in __llc_lookup_established() 513 !llc_estab_match(sap, daddr, laddr, rc))) { in __llc_lookup_established() 533 struct sock *llc_lookup_established(struct llc_sap *sap, in llc_lookup_established() argument 540 sk = __llc_lookup_established(sap, daddr, laddr); in llc_lookup_established() 545 static inline bool llc_listener_match(const struct llc_sap *sap, in llc_listener_match() argument [all …]
|
D | llc_s_ac.c | 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() 52 int llc_sap_action_send_ui(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_action_send_ui() argument 75 int llc_sap_action_send_xid_c(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_action_send_xid_c() argument 97 int llc_sap_action_send_xid_r(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_action_send_xid_r() argument 110 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, dsap, in llc_sap_action_send_xid_r() 129 int llc_sap_action_send_test_c(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_action_send_test_c() argument 143 int llc_sap_action_send_test_r(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_action_send_test_r() argument 159 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, dsap, in llc_sap_action_send_test_r() 177 int llc_sap_action_report_status(struct llc_sap *sap, struct sk_buff *skb) in llc_sap_action_report_status() argument [all …]
|
D | llc_s_ev.c | 23 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, struct sk_buff *skb) in llc_sap_ev_deactivation_req() argument
|
D | llc_input.c | 39 static void (*llc_type_handlers[2])(struct llc_sap *sap, 42 void llc_add_pack(int type, void (*handler)(struct llc_sap *sap, in llc_add_pack() argument 157 struct llc_sap *sap; in llc_rcv() local 163 void (*sap_handler)(struct llc_sap *sap, struct sk_buff *skb); in llc_rcv() 184 sap = llc_sap_find(pdu->dsap); in llc_rcv() 185 if (unlikely(!sap)) {/* unknown SAP */ in llc_rcv() 194 rcv = rcu_dereference(sap->rcv_func); in llc_rcv() 208 sap_handler(sap, skb); in llc_rcv() 210 llc_sap_put(sap); in llc_rcv()
|
D | af_llc.c | 61 static inline u16 llc_ui_next_link_no(int sap) in llc_ui_next_link_no() argument 63 return llc_ui_sap_link_no_max[sap]++; in llc_ui_next_link_no() 201 llc_sap_remove_socket(llc->sap, sk); in llc_ui_release() 220 struct llc_sap *sap; in llc_ui_autoport() local 226 sap = llc_sap_find(i); in llc_ui_autoport() 227 if (!sap) { in llc_ui_autoport() 231 llc_sap_put(sap); in llc_ui_autoport() 255 struct llc_sap *sap; in llc_ui_autobind() local 276 sap = llc_sap_open(llc->laddr.lsap, NULL); in llc_ui_autobind() 277 if (!sap) in llc_ui_autobind() [all …]
|
D | llc_output.c | 65 int llc_build_and_send_ui_pkt(struct llc_sap *sap, struct sk_buff *skb, in llc_build_and_send_ui_pkt() argument 69 llc_pdu_header_init(skb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_build_and_send_ui_pkt()
|
/net/sunrpc/ |
D | addr.c | 27 static size_t rpc_ntop6_noscopeid(const struct sockaddr *sap, in rpc_ntop6_noscopeid() argument 30 const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; in rpc_ntop6_noscopeid() 65 static size_t rpc_ntop6(const struct sockaddr *sap, in rpc_ntop6() argument 68 const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; in rpc_ntop6() 73 len = rpc_ntop6_noscopeid(sap, buf, buflen); in rpc_ntop6() 97 static size_t rpc_ntop6_noscopeid(const struct sockaddr *sap, in rpc_ntop6_noscopeid() argument 103 static size_t rpc_ntop6(const struct sockaddr *sap, in rpc_ntop6() argument 111 static int rpc_ntop4(const struct sockaddr *sap, in rpc_ntop4() argument 114 const struct sockaddr_in *sin = (struct sockaddr_in *)sap; in rpc_ntop4() 128 size_t rpc_ntop(const struct sockaddr *sap, char *buf, const size_t buflen) in rpc_ntop() argument [all …]
|
D | rpcb_clnt.c | 476 const struct sockaddr *sap, in rpcb_register_inet4() argument 479 const struct sockaddr_in *sin = (const struct sockaddr_in *)sap; in rpcb_register_inet4() 485 map->r_addr = rpc_sockaddr2uaddr(sap, GFP_KERNEL); in rpcb_register_inet4() 507 const struct sockaddr *sap, in rpcb_register_inet6() argument 510 const struct sockaddr_in6 *sin6 = (const struct sockaddr_in6 *)sap; in rpcb_register_inet6() 516 map->r_addr = rpc_sockaddr2uaddr(sap, GFP_KERNEL); in rpcb_register_inet6() 681 struct sockaddr *sap = (struct sockaddr *)&addr; in rpcb_getport_async() local 716 salen = rpc_peeraddr(clnt, sap, sizeof(addr)); in rpcb_getport_async() 719 switch (sap->sa_family) { in rpcb_getport_async() 747 xprt->servername, sap, salen, in rpcb_getport_async() [all …]
|
/net/irda/ircomm/ |
D | ircomm_ttp.c | 40 static int ircomm_ttp_data_indication(void *instance, void *sap, 42 static void ircomm_ttp_connect_confirm(void *instance, void *sap, 47 static void ircomm_ttp_connect_indication(void *instance, void *sap, 52 static void ircomm_ttp_flow_indication(void *instance, void *sap, 54 static void ircomm_ttp_disconnect_indication(void *instance, void *sap, 204 static int ircomm_ttp_data_indication(void *instance, void *sap, in ircomm_ttp_data_indication() argument 223 static void ircomm_ttp_connect_confirm(void *instance, void *sap, in ircomm_ttp_connect_confirm() argument 264 static void ircomm_ttp_connect_indication(void *instance, void *sap, in ircomm_ttp_connect_indication() argument 325 static void ircomm_ttp_disconnect_indication(void *instance, void *sap, in ircomm_ttp_disconnect_indication() argument 352 static void ircomm_ttp_flow_indication(void *instance, void *sap, in ircomm_ttp_flow_indication() argument
|
D | ircomm_lmp.c | 220 static int ircomm_lmp_data_indication(void *instance, void *sap, in ircomm_lmp_data_indication() argument 246 static void ircomm_lmp_connect_confirm(void *instance, void *sap, in ircomm_lmp_connect_confirm() argument 279 static void ircomm_lmp_connect_indication(void *instance, void *sap, in ircomm_lmp_connect_indication() argument 311 static void ircomm_lmp_disconnect_indication(void *instance, void *sap, in ircomm_lmp_disconnect_indication() argument
|
/net/802/ |
D | p8022.c | 31 llc_build_and_send_ui_pkt(dl->sap, skb, dest, dl->sap->laddr.lsap); in p8022_request() 48 proto->sap = llc_sap_open(type, func); in register_8022_client() 49 if (!proto->sap) { in register_8022_client() 59 llc_sap_put(proto->sap); in unregister_8022_client()
|
D | stp.c | 28 static struct llc_sap *sap __read_mostly; 71 sap = llc_sap_open(LLC_SAP_BSPAN, stp_pdu_rcv); in stp_proto_register() 72 if (!sap) { in stp_proto_register() 99 llc_sap_put(sap); in stp_proto_unregister()
|
/net/bridge/netfilter/ |
D | ebt_arp.c | 39 const __be32 *sap, *dap; in ebt_arp_mt() local 44 sap = skb_header_pointer(skb, sizeof(struct arphdr) + in ebt_arp_mt() 47 if (sap == NULL) in ebt_arp_mt() 55 FWINV(info->saddr != (*sap & info->smsk), EBT_ARP_SRC_IP)) in ebt_arp_mt() 61 FWINV(*dap != *sap, EBT_ARP_GRAT)) in ebt_arp_mt()
|
D | ebt_802_3.c | 23 if (FWINV(info->sap != hdr->llc.ui.ssap, EBT_802_3_SAP)) in ebt_802_3_mt() 25 if (FWINV(info->sap != hdr->llc.ui.dsap, EBT_802_3_SAP)) in ebt_802_3_mt()
|
/net/nfc/ |
D | llcp_core.c | 270 sdp->sap = LLCP_SDP_UNBOUND; in nfc_llcp_sdreq_timeout_work() 317 int sap, num_wks; in nfc_llcp_wks_sap() local 326 for (sap = 0; sap < num_wks; sap++) { in nfc_llcp_wks_sap() 327 if (wks[sap] == NULL) in nfc_llcp_wks_sap() 330 if (strncmp(wks[sap], service_name, service_name_len) == 0) in nfc_llcp_wks_sap() 331 return sap; in nfc_llcp_wks_sap() 1228 u8 dsap, ssap, *tlv, type, length, tid, sap; in nfc_llcp_recv_snl() local 1267 sap = 1; in nfc_llcp_recv_snl() 1274 sap = 0; in nfc_llcp_recv_snl() 1286 sap = nfc_llcp_reserve_sdp_ssap(local); in nfc_llcp_recv_snl() [all …]
|
/net/irda/irlan/ |
D | irlan_provider.c | 55 static void irlan_provider_connect_indication(void *instance, void *sap, 67 static int irlan_provider_data_indication(void *instance, void *sap, in irlan_provider_data_indication() argument 122 static void irlan_provider_connect_indication(void *instance, void *sap, in irlan_provider_connect_indication() argument 134 tsap = sap; in irlan_provider_connect_indication() 175 static void irlan_provider_disconnect_indication(void *instance, void *sap, in irlan_provider_disconnect_indication() argument 185 tsap = sap; in irlan_provider_disconnect_indication()
|
D | irlan_client.c | 57 static void irlan_client_ctrl_disconnect_indication(void *instance, void *sap, 60 static int irlan_client_ctrl_data_indication(void *instance, void *sap, 62 static void irlan_client_ctrl_connect_confirm(void *instance, void *sap, 193 static int irlan_client_ctrl_data_indication(void *instance, void *sap, in irlan_client_ctrl_data_indication() argument 218 static void irlan_client_ctrl_disconnect_indication(void *instance, void *sap, in irlan_client_ctrl_disconnect_indication() argument 229 tsap = sap; in irlan_client_ctrl_disconnect_indication() 290 static void irlan_client_ctrl_connect_confirm(void *instance, void *sap, in irlan_client_ctrl_connect_confirm() argument
|
/net/sunrpc/xprtrdma/ |
D | transport.c | 162 struct sockaddr *sap = (struct sockaddr *) in xprt_rdma_format_addresses() local 164 struct sockaddr_in *sin = (struct sockaddr_in *)sap; in xprt_rdma_format_addresses() 167 (void)rpc_ntop(sap, buf, sizeof(buf)); in xprt_rdma_format_addresses() 170 snprintf(buf, sizeof(buf), "%u", rpc_get_port(sap)); in xprt_rdma_format_addresses() 178 snprintf(buf, sizeof(buf), "%4hx", rpc_get_port(sap)); in xprt_rdma_format_addresses() 421 struct sockaddr_in *sap; in xprt_rdma_set_port() local 423 sap = (struct sockaddr_in *)&xprt->addr; in xprt_rdma_set_port() 424 sap->sin_port = htons(port); in xprt_rdma_set_port() 425 sap = (struct sockaddr_in *)&rpcx_to_rdmad(xprt).addr; in xprt_rdma_set_port() 426 sap->sin_port = htons(port); in xprt_rdma_set_port()
|
/net/ethernet/ |
D | eth.c | 187 const unsigned short *sap; in eth_type_trans() local 223 sap = skb_header_pointer(skb, 0, sizeof(*sap), &_service_access_point); in eth_type_trans() 224 if (sap && *sap == 0xFFFF) in eth_type_trans()
|
/net/irda/ |
D | irttp.c | 47 static int irttp_data_indication(void *instance, void *sap, 49 static int irttp_udata_indication(void *instance, void *sap, 51 static void irttp_disconnect_indication(void *instance, void *sap, 53 static void irttp_connect_indication(void *instance, void *sap, 56 static void irttp_connect_confirm(void *instance, void *sap, 69 static void irttp_flow_indication(void *instance, void *sap, LOCAL_FLOW flow); 873 static int irttp_udata_indication(void *instance, void *sap, in irttp_udata_indication() argument 909 static int irttp_data_indication(void *instance, void *sap, in irttp_data_indication() argument 1023 static void irttp_flow_indication(void *instance, void *sap, LOCAL_FLOW flow) in irttp_flow_indication() argument 1198 static void irttp_connect_confirm(void *instance, void *sap, in irttp_connect_confirm() argument [all …]
|
D | iriap.c | 68 static void iriap_disconnect_indication(void *instance, void *sap, 70 static void iriap_connect_indication(void *instance, void *sap, 74 static void iriap_connect_confirm(void *instance, void *sap, 78 static int iriap_data_indication(void *instance, void *sap, 300 static void iriap_disconnect_indication(void *instance, void *sap, in iriap_disconnect_indication() argument 759 static void iriap_connect_confirm(void *instance, void *sap, in iriap_connect_confirm() argument 789 static void iriap_connect_indication(void *instance, void *sap, in iriap_connect_indication() argument 837 static int iriap_data_indication(void *instance, void *sap, in iriap_data_indication() argument
|