sap              1407 drivers/media/dvb-frontends/drx39xyj/drx_driver.h 		bool sap;		  /*< sap / bilingual detection      */
sap               227 drivers/media/pci/cx88/cx88-dsp.c 	s32 sap = freq_magnitude(x, N, FREQ_BTSC_SAP);
sap               232 drivers/media/pci/cx88/cx88-dsp.c 		dual_ref, dual, sap_ref, sap);
sap               162 drivers/media/pci/cx88/cx88-tvaudio.c static void set_audio_standard_BTSC(struct cx88_core *core, unsigned int sap,
sap               259 drivers/media/pci/cx88/cx88-tvaudio.c 	if (sap) {
sap                37 drivers/net/netdevsim/ipsec.c 		struct nsim_sa *sap = &ipsec->sa[i];
sap                39 drivers/net/netdevsim/ipsec.c 		if (!sap->used)
sap                44 drivers/net/netdevsim/ipsec.c 			      i, (sap->rx ? 'r' : 't'), sap->ipaddr[0],
sap                45 drivers/net/netdevsim/ipsec.c 			      sap->ipaddr[1], sap->ipaddr[2], sap->ipaddr[3]);
sap                48 drivers/net/netdevsim/ipsec.c 			      i, be32_to_cpu(sap->xs->id.spi),
sap                49 drivers/net/netdevsim/ipsec.c 			      sap->xs->id.proto, sap->salt, sap->crypt);
sap                52 drivers/net/netdevsim/ipsec.c 			      i, sap->key[0], sap->key[1],
sap                53 drivers/net/netdevsim/ipsec.c 			      sap->key[2], sap->key[3]);
sap                55 fs/lockd/host.c 	const struct sockaddr	*sap;		/* address to search for */
sap                75 fs/lockd/host.c static unsigned int __nlm_hash_addr4(const struct sockaddr *sap)
sap                77 fs/lockd/host.c 	const struct sockaddr_in *sin = (struct sockaddr_in *)sap;
sap                81 fs/lockd/host.c static unsigned int __nlm_hash_addr6(const struct sockaddr *sap)
sap                83 fs/lockd/host.c 	const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap;
sap                91 fs/lockd/host.c static unsigned int nlm_hash_address(const struct sockaddr *sap)
sap                95 fs/lockd/host.c 	switch (sap->sa_family) {
sap                97 fs/lockd/host.c 		hash = __nlm_hash_addr4(sap);
sap               100 fs/lockd/host.c 		hash = __nlm_hash_addr6(sap);
sap               121 fs/lockd/host.c 		nsm = nsm_get_handle(ni->net, ni->sap, ni->salen,
sap               137 fs/lockd/host.c 	memcpy(nlm_addr(host), ni->sap, ni->salen);
sap               216 fs/lockd/host.c struct nlm_host *nlmclnt_lookup_host(const struct sockaddr *sap,
sap               227 fs/lockd/host.c 		.sap		= sap,
sap               248 fs/lockd/host.c 	chain = &nlm_client_hosts[nlm_hash_address(sap)];
sap               252 fs/lockd/host.c 		if (!rpc_cmp_addr(nlm_addr(host), sap))
sap               340 fs/lockd/host.c 		.sap		= svc_addr(rqstp),
sap               359 fs/lockd/host.c 	chain = &nlm_server_hosts[nlm_hash_address(ni.sap)];
sap               363 fs/lockd/host.c 		if (!rpc_cmp_addr(nlm_addr(host), ni.sap))
sap               223 fs/lockd/mon.c 					const struct sockaddr *sap)
sap               228 fs/lockd/mon.c 		if (rpc_cmp_addr(nsm_addr(nsm), sap))
sap               272 fs/lockd/mon.c static struct nsm_handle *nsm_create_handle(const struct sockaddr *sap,
sap               285 fs/lockd/mon.c 	memcpy(nsm_addr(new), sap, salen);
sap               315 fs/lockd/mon.c 				  const struct sockaddr *sap,
sap               338 fs/lockd/mon.c 		cached = nsm_lookup_addr(&ln->nsm_handles, sap);
sap               361 fs/lockd/mon.c 	new = nsm_create_handle(sap, salen, hostname, hostname_len);
sap               284 fs/nfs/client.c 	const struct sockaddr *sap = data->addr;
sap               317 fs/nfs/client.c 		if (!rpc_cmp_addr_port(sap, clap))
sap               321 fs/nfs/client.c 							   sap))
sap              2237 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_ntop4(const struct sockaddr *sap, char *buf, const size_t buflen)
sap              2239 fs/nfs/flexfilelayout/flexfilelayout.c 	const struct sockaddr_in *sin = (struct sockaddr_in *)sap;
sap              2245 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_ntop6_noscopeid(const struct sockaddr *sap, char *buf,
sap              2248 fs/nfs/flexfilelayout/flexfilelayout.c 	const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap;
sap              2287 fs/nfs/flexfilelayout/flexfilelayout.c 	struct sockaddr *sap = (struct sockaddr *)&da->da_addr;
sap              2295 fs/nfs/flexfilelayout/flexfilelayout.c 	switch (sap->sa_family) {
sap              2297 fs/nfs/flexfilelayout/flexfilelayout.c 		if (ff_layout_ntop4(sap, addrbuf, sizeof(addrbuf)) == 0)
sap              2299 fs/nfs/flexfilelayout/flexfilelayout.c 		port = ntohs(((struct sockaddr_in *)sap)->sin_port);
sap              2304 fs/nfs/flexfilelayout/flexfilelayout.c 		if (ff_layout_ntop6_noscopeid(sap, addrbuf, sizeof(addrbuf)) == 0)
sap              2306 fs/nfs/flexfilelayout/flexfilelayout.c 		port = ntohs(((struct sockaddr_in6 *)sap)->sin6_port);
sap               127 fs/nfs/internal.h 	struct sockaddr		*sap;
sap               181 fs/nfs/internal.h 					struct sockaddr *sap, size_t salen,
sap               161 fs/nfs/mount_clnt.c 		.address	= info->sap,
sap               246 fs/nfs/mount_clnt.c 		.address	= info->sap,
sap               401 fs/nfs/nfs4client.c 		struct sockaddr *sap = (struct sockaddr *)&cb_addr;
sap               403 fs/nfs/nfs4client.c 		error = rpc_localaddr(clp->cl_rpcclient, sap, sizeof(cb_addr));
sap               406 fs/nfs/nfs4client.c 		error = rpc_ntop(sap, buf, sizeof(buf));
sap              1254 fs/nfs/nfs4client.c 		       struct sockaddr *sap, size_t salen, struct net *net)
sap              1261 fs/nfs/nfs4client.c 		.dstaddr	= sap,
sap              1283 fs/nfs/nfs4client.c 	error = nfs4_set_client(server, hostname, sap, salen, buf,
sap               429 fs/nfs/nfs4namespace.c 	struct sockaddr *sap;
sap               434 fs/nfs/nfs4namespace.c 	sap = kmalloc(addr_bufsize, GFP_KERNEL);
sap               435 fs/nfs/nfs4namespace.c 	if (sap == NULL)
sap               450 fs/nfs/nfs4namespace.c 						sap, addr_bufsize, net);
sap               453 fs/nfs/nfs4namespace.c 		rpc_set_port(sap, NFS_PORT);
sap               460 fs/nfs/nfs4namespace.c 		error = nfs4_update_server(server, hostname, sap, salen, net);
sap               466 fs/nfs/nfs4namespace.c 	kfree(sap);
sap               538 fs/nfs/super.c 	struct sockaddr *sap = (struct sockaddr *) &nfss->mountd_address;
sap               541 fs/nfs/super.c 	switch (sap->sa_family) {
sap               570 fs/nfs/super.c 	struct sockaddr *sap = (struct sockaddr *)&nfss->mountd_address;
sap               575 fs/nfs/super.c 	switch (sap->sa_family) {
sap               577 fs/nfs/super.c 		struct sockaddr_in *sin = (struct sockaddr_in *)sap;
sap               582 fs/nfs/super.c 		struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap;
sap               998 fs/nfs/super.c static void nfs_set_port(struct sockaddr *sap, int *port,
sap              1004 fs/nfs/super.c 	rpc_set_port(sap, *port);
sap              1769 fs/nfs/super.c 		.sap		= (struct sockaddr *)
sap              1801 fs/nfs/super.c 		memcpy(request.sap, &args->nfs_server.address,
sap              1806 fs/nfs/super.c 	nfs_set_port(request.sap, &args->mount_server.port, 0);
sap              2012 fs/nfs/super.c 	struct sockaddr *sap = (struct sockaddr *)&args->nfs_server.address;
sap              2072 fs/nfs/super.c 		memcpy(sap, &data->addr, sizeof(data->addr));
sap              2075 fs/nfs/super.c 		if (sap->sa_family != AF_INET ||
sap              2076 fs/nfs/super.c 		    !nfs_verify_server_address(sap))
sap              2182 fs/nfs/super.c 	struct sockaddr *sap = (struct sockaddr *)&args->nfs_server.address;
sap              2187 fs/nfs/super.c 	if (!nfs_verify_server_address(sap))
sap              2211 fs/nfs/super.c 	nfs_set_port(sap, &args->nfs_server.port, port);
sap              2843 fs/nfs/super.c 	struct sockaddr *sap = (struct sockaddr *)&args->nfs_server.address;
sap              2859 fs/nfs/super.c 		if (copy_from_user(sap, data->host_addr, data->host_addrlen))
sap              2861 fs/nfs/super.c 		if (!nfs_verify_server_address(sap))
sap              2863 fs/nfs/super.c 		args->nfs_server.port = ntohs(((struct sockaddr_in *)sap)->sin_port);
sap               258 fs/nfsd/nfsctl.c 	struct sockaddr *sap = (struct sockaddr *)&address;
sap               274 fs/nfsd/nfsctl.c 	if (rpc_pton(net, fo_path, size, sap, salen) == 0)
sap               277 fs/nfsd/nfsctl.c 	return nlmsvc_unlock_all_by_ip(sap);
sap               103 include/linux/atmdev.h 	struct atm_sap	sap;		/* SAP */
sap               227 include/linux/lockd/lockd.h struct nlm_host  *nlmclnt_lookup_host(const struct sockaddr *sap,
sap               255 include/linux/lockd/lockd.h 					const struct sockaddr *sap,
sap               309 include/linux/lockd/lockd.h static inline int __nlm_privileged_request4(const struct sockaddr *sap)
sap               311 include/linux/lockd/lockd.h 	const struct sockaddr_in *sin = (struct sockaddr_in *)sap;
sap               320 include/linux/lockd/lockd.h static inline int __nlm_privileged_request6(const struct sockaddr *sap)
sap               322 include/linux/lockd/lockd.h 	const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap;
sap               333 include/linux/lockd/lockd.h static inline int __nlm_privileged_request6(const struct sockaddr *sap)
sap               347 include/linux/lockd/lockd.h 	const struct sockaddr *sap = svc_addr(rqstp);
sap               349 include/linux/lockd/lockd.h 	switch (sap->sa_family) {
sap               351 include/linux/lockd/lockd.h 		return __nlm_privileged_request4(sap);
sap               353 include/linux/lockd/lockd.h 		return __nlm_privileged_request6(sap);
sap                23 include/linux/sunrpc/addr.h static inline unsigned short rpc_get_port(const struct sockaddr *sap)
sap                25 include/linux/sunrpc/addr.h 	switch (sap->sa_family) {
sap                27 include/linux/sunrpc/addr.h 		return ntohs(((struct sockaddr_in *)sap)->sin_port);
sap                29 include/linux/sunrpc/addr.h 		return ntohs(((struct sockaddr_in6 *)sap)->sin6_port);
sap                34 include/linux/sunrpc/addr.h static inline void rpc_set_port(struct sockaddr *sap,
sap                37 include/linux/sunrpc/addr.h 	switch (sap->sa_family) {
sap                39 include/linux/sunrpc/addr.h 		((struct sockaddr_in *)sap)->sin_port = htons(port);
sap                42 include/linux/sunrpc/addr.h 		((struct sockaddr_in6 *)sap)->sin6_port = htons(port);
sap               231 include/linux/sunrpc/clnt.h 			const struct sockaddr *sap);
sap                73 include/linux/sunrpc/xprtmultipath.h 		const struct sockaddr *sap);
sap                 8 include/net/datalink.h 	struct llc_sap   *sap;
sap                73 include/net/llc.h struct hlist_head *llc_sk_dev_hash(struct llc_sap *sap, int ifindex)
sap                75 include/net/llc.h 	return &sap->sk_dev_hash[ifindex % LLC_SK_DEV_HASH_ENTRIES];
sap                79 include/net/llc.h u32 llc_sk_laddr_hashfn(struct llc_sap *sap, const struct llc_addr *laddr)
sap                86 include/net/llc.h struct hlist_nulls_head *llc_sk_laddr_hash(struct llc_sap *sap,
sap                89 include/net/llc.h 	return &sap->sk_laddr_hash[llc_sk_laddr_hashfn(sap, laddr)];
sap               105 include/net/llc.h 		  void (*handler)(struct llc_sap *sap, struct sk_buff *skb));
sap               115 include/net/llc.h static inline void llc_sap_hold(struct llc_sap *sap)
sap               117 include/net/llc.h 	refcount_inc(&sap->refcnt);
sap               120 include/net/llc.h static inline bool llc_sap_hold_safe(struct llc_sap *sap)
sap               122 include/net/llc.h 	return refcount_inc_not_zero(&sap->refcnt);
sap               125 include/net/llc.h void llc_sap_close(struct llc_sap *sap);
sap               127 include/net/llc.h static inline void llc_sap_put(struct llc_sap *sap)
sap               129 include/net/llc.h 	if (refcount_dec_and_test(&sap->refcnt))
sap               130 include/net/llc.h 		llc_sap_close(sap);
sap               135 include/net/llc.h int llc_build_and_send_ui_pkt(struct llc_sap *sap, struct sk_buff *skb,
sap               138 include/net/llc.h void llc_sap_handler(struct llc_sap *sap, struct sk_buff *skb);
sap               139 include/net/llc.h void llc_conn_handler(struct llc_sap *sap, struct sk_buff *skb);
sap                37 include/net/llc_conn.h 	struct llc_sap	    *sap;		/* pointer to parent SAP */
sap               112 include/net/llc_conn.h struct sock *llc_lookup_established(struct llc_sap *sap, struct llc_addr *daddr,
sap               114 include/net/llc_conn.h void llc_sap_add_socket(struct llc_sap *sap, struct sock *sk);
sap               115 include/net/llc_conn.h void llc_sap_remove_socket(struct llc_sap *sap, struct sock *sk);
sap                26 include/net/llc_s_ac.h typedef int (*llc_sap_action_t)(struct llc_sap *sap, struct sk_buff *skb);
sap                28 include/net/llc_s_ac.h int llc_sap_action_unitdata_ind(struct llc_sap *sap, struct sk_buff *skb);
sap                29 include/net/llc_s_ac.h int llc_sap_action_send_ui(struct llc_sap *sap, struct sk_buff *skb);
sap                30 include/net/llc_s_ac.h int llc_sap_action_send_xid_c(struct llc_sap *sap, struct sk_buff *skb);
sap                31 include/net/llc_s_ac.h int llc_sap_action_send_xid_r(struct llc_sap *sap, struct sk_buff *skb);
sap                32 include/net/llc_s_ac.h int llc_sap_action_send_test_c(struct llc_sap *sap, struct sk_buff *skb);
sap                33 include/net/llc_s_ac.h int llc_sap_action_send_test_r(struct llc_sap *sap, struct sk_buff *skb);
sap                34 include/net/llc_s_ac.h int llc_sap_action_report_status(struct llc_sap *sap, struct sk_buff *skb);
sap                35 include/net/llc_s_ac.h int llc_sap_action_xid_ind(struct llc_sap *sap, struct sk_buff *skb);
sap                36 include/net/llc_s_ac.h int llc_sap_action_test_ind(struct llc_sap *sap, struct sk_buff *skb);
sap                54 include/net/llc_s_ev.h typedef int (*llc_sap_ev_t)(struct llc_sap *sap, struct sk_buff *skb);
sap                56 include/net/llc_s_ev.h int llc_sap_ev_activation_req(struct llc_sap *sap, struct sk_buff *skb);
sap                57 include/net/llc_s_ev.h int llc_sap_ev_rx_ui(struct llc_sap *sap, struct sk_buff *skb);
sap                58 include/net/llc_s_ev.h int llc_sap_ev_unitdata_req(struct llc_sap *sap, struct sk_buff *skb);
sap                59 include/net/llc_s_ev.h int llc_sap_ev_xid_req(struct llc_sap *sap, struct sk_buff *skb);
sap                60 include/net/llc_s_ev.h int llc_sap_ev_rx_xid_c(struct llc_sap *sap, struct sk_buff *skb);
sap                61 include/net/llc_s_ev.h int llc_sap_ev_rx_xid_r(struct llc_sap *sap, struct sk_buff *skb);
sap                62 include/net/llc_s_ev.h int llc_sap_ev_test_req(struct llc_sap *sap, struct sk_buff *skb);
sap                63 include/net/llc_s_ev.h int llc_sap_ev_rx_test_c(struct llc_sap *sap, struct sk_buff *skb);
sap                64 include/net/llc_s_ev.h int llc_sap_ev_rx_test_r(struct llc_sap *sap, struct sk_buff *skb);
sap                65 include/net/llc_s_ev.h int llc_sap_ev_deactivation_req(struct llc_sap *sap, struct sk_buff *skb);
sap                22 include/net/llc_sap.h void llc_sap_rtn_pdu(struct llc_sap *sap, struct sk_buff *skb);
sap                28 include/net/llc_sap.h void llc_build_and_send_test_pkt(struct llc_sap *sap, struct sk_buff *skb,
sap                30 include/net/llc_sap.h void llc_build_and_send_xid_pkt(struct llc_sap *sap, struct sk_buff *skb,
sap              1752 include/trace/events/rpcrdma.h 		const struct sockaddr *sap
sap              1755 include/trace/events/rpcrdma.h 	TP_ARGS(event, sap),
sap              1767 include/trace/events/rpcrdma.h 			 "%pISpc", sap);
sap              1780 include/trace/events/rpcrdma.h 		const struct sockaddr *sap
sap              1783 include/trace/events/rpcrdma.h 	TP_ARGS(event, sap),
sap              1795 include/trace/events/rpcrdma.h 			 "%pISpc", sap);
sap                36 include/uapi/linux/atmsvc.h 	struct atm_sap sap;		/* SAP */
sap                58 include/uapi/linux/netfilter_bridge/ebt_802_3.h 	__u8  sap;
sap                28 net/802/p8022.c 	llc_build_and_send_ui_pkt(dl->sap, skb, dest, dl->sap->laddr.lsap);
sap                45 net/802/p8022.c 		proto->sap = llc_sap_open(type, func);
sap                46 net/802/p8022.c 		if (!proto->sap) {
sap                56 net/802/p8022.c 	llc_sap_put(proto->sap);
sap                25 net/802/stp.c  static struct llc_sap *sap __read_mostly;
sap                68 net/802/stp.c  		sap = llc_sap_open(LLC_SAP_BSPAN, stp_pdu_rcv);
sap                69 net/802/stp.c  		if (!sap) {
sap                96 net/802/stp.c  		llc_sap_put(sap);
sap               578 net/atm/lec.c  	return ((vcc->sap.blli[0].l3.tr9577.snap[4] == LEC_DATA_DIRECT_8023) ||
sap               579 net/atm/lec.c  		(vcc->sap.blli[0].l3.tr9577.snap[4] == LEC_DATA_DIRECT_8025));
sap               162 net/atm/signaling.c 		msg->sap = vcc->sap;
sap               379 net/atm/svc.c  		new_vcc->sap = msg->sap;
sap               467 net/atm/svc.c  		if (copy_from_user(&vcc->sap, optval, optlen)) {
sap               517 net/atm/svc.c  	if (copy_to_user(optval, &ATM_SD(sock)->sap, sizeof(struct atm_sap))) {
sap                30 net/bridge/netfilter/ebt_802_3.c 		if (NF_INVF(info, EBT_802_3_SAP, info->sap != hdr->llc.ui.ssap))
sap                32 net/bridge/netfilter/ebt_802_3.c 		if (NF_INVF(info, EBT_802_3_SAP, info->sap != hdr->llc.ui.dsap))
sap                40 net/bridge/netfilter/ebt_arp.c 		const __be32 *sap, *dap;
sap                45 net/bridge/netfilter/ebt_arp.c 		sap = skb_header_pointer(skb, sizeof(struct arphdr) +
sap                48 net/bridge/netfilter/ebt_arp.c 		if (sap == NULL)
sap                57 net/bridge/netfilter/ebt_arp.c 			    info->saddr != (*sap & info->smsk)))
sap                64 net/bridge/netfilter/ebt_arp.c 		    NF_INVF(info, EBT_ARP_GRAT, *dap != *sap))
sap               158 net/ethernet/eth.c 	const unsigned short *sap;
sap               201 net/ethernet/eth.c 	sap = skb_header_pointer(skb, 0, sizeof(*sap), &_service_access_point);
sap               202 net/ethernet/eth.c 	if (sap && *sap == 0xFFFF)
sap                63 net/llc/af_llc.c static inline u16 llc_ui_next_link_no(int sap)
sap                65 net/llc/af_llc.c 	return llc_ui_sap_link_no_max[sap]++;
sap               207 net/llc/af_llc.c 		struct llc_sap *sap = llc->sap;
sap               212 net/llc/af_llc.c 		llc_sap_hold(sap);
sap               213 net/llc/af_llc.c 		llc_sap_remove_socket(llc->sap, sk);
sap               215 net/llc/af_llc.c 		llc_sap_put(sap);
sap               236 net/llc/af_llc.c 	struct llc_sap *sap;
sap               242 net/llc/af_llc.c 			sap = llc_sap_find(i);
sap               243 net/llc/af_llc.c 			if (!sap) {
sap               247 net/llc/af_llc.c 			llc_sap_put(sap);
sap               271 net/llc/af_llc.c 	struct llc_sap *sap;
sap               292 net/llc/af_llc.c 	sap = llc_sap_open(llc->laddr.lsap, NULL);
sap               293 net/llc/af_llc.c 	if (!sap)
sap               298 net/llc/af_llc.c 	llc_sap_add_socket(sap, sk);
sap               324 net/llc/af_llc.c 	struct llc_sap *sap;
sap               365 net/llc/af_llc.c 	sap = llc_sap_find(addr->sllc_sap);
sap               366 net/llc/af_llc.c 	if (!sap) {
sap               367 net/llc/af_llc.c 		sap = llc_sap_open(addr->sllc_sap, NULL);
sap               369 net/llc/af_llc.c 		if (!sap)
sap               384 net/llc/af_llc.c 		ask = llc_lookup_established(sap, &daddr, &laddr);
sap               394 net/llc/af_llc.c 	llc_sap_add_socket(sap, sk);
sap               398 net/llc/af_llc.c 	llc_sap_put(sap);
sap               480 net/llc/af_llc.c 	llc->link   = llc_ui_next_link_no(llc->sap->laddr.lsap);
sap               948 net/llc/af_llc.c 		llc_build_and_send_ui_pkt(llc->sap, skb, addr->sllc_mac,
sap               954 net/llc/af_llc.c 		llc_build_and_send_test_pkt(llc->sap, skb, addr->sllc_mac,
sap               960 net/llc/af_llc.c 		llc_build_and_send_xid_pkt(llc->sap, skb, addr->sllc_mac,
sap              1010 net/llc/af_llc.c 		if (!llc->sap)
sap              1012 net/llc/af_llc.c 		sllc.sllc_sap = llc->sap->laddr.lsap;
sap               205 net/llc/llc_c_ac.c 		struct llc_sap *sap = llc->sap;
sap               207 net/llc/llc_c_ac.c 		llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap,
sap               230 net/llc/llc_c_ac.c 		struct llc_sap *sap = llc->sap;
sap               234 net/llc/llc_c_ac.c 		llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap,
sap               256 net/llc/llc_c_ac.c 		struct llc_sap *sap = llc->sap;
sap               258 net/llc/llc_c_ac.c 		llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap,
sap               289 net/llc/llc_c_ac.c 		struct llc_sap *sap = llc->sap;
sap               291 net/llc/llc_c_ac.c 		llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap,
sap               315 net/llc/llc_c_ac.c 		struct llc_sap *sap = llc->sap;
sap               318 net/llc/llc_c_ac.c 		llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap,
sap               345 net/llc/llc_c_ac.c 		struct llc_sap *sap = llc->sap;
sap               348 net/llc/llc_c_ac.c 		llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap,
sap               368 net/llc/llc_c_ac.c 	struct llc_sap *sap = llc->sap;
sap               370 net/llc/llc_c_ac.c 	llc_pdu_header_init(skb, LLC_PDU_TYPE_I, sap->laddr.lsap,
sap               386 net/llc/llc_c_ac.c 	struct llc_sap *sap = llc->sap;
sap               388 net/llc/llc_c_ac.c 	llc_pdu_header_init(skb, LLC_PDU_TYPE_I, sap->laddr.lsap,
sap               404 net/llc/llc_c_ac.c 	struct llc_sap *sap = llc->sap;
sap               406 net/llc/llc_c_ac.c 	llc_pdu_header_init(skb, LLC_PDU_TYPE_I, sap->laddr.lsap,
sap               437 net/llc/llc_c_ac.c 		struct llc_sap *sap = llc->sap;
sap               439 net/llc/llc_c_ac.c 		llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap,
sap               472 net/llc/llc_c_ac.c 		struct llc_sap *sap = llc->sap;
sap               474 net/llc/llc_c_ac.c 		llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap,
sap               496 net/llc/llc_c_ac.c 		struct llc_sap *sap = llc->sap;
sap               498 net/llc/llc_c_ac.c 		llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap,
sap               520 net/llc/llc_c_ac.c 		struct llc_sap *sap = llc->sap;
sap               522 net/llc/llc_c_ac.c 		llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap,
sap               544 net/llc/llc_c_ac.c 		struct llc_sap *sap = llc->sap;
sap               546 net/llc/llc_c_ac.c 		llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap,
sap               568 net/llc/llc_c_ac.c 		struct llc_sap *sap = llc->sap;
sap               570 net/llc/llc_c_ac.c 		llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap,
sap               592 net/llc/llc_c_ac.c 		struct llc_sap *sap = llc->sap;
sap               594 net/llc/llc_c_ac.c 		llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap,
sap               628 net/llc/llc_c_ac.c 		struct llc_sap *sap = llc->sap;
sap               630 net/llc/llc_c_ac.c 		llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap,
sap               652 net/llc/llc_c_ac.c 		struct llc_sap *sap = llc->sap;
sap               654 net/llc/llc_c_ac.c 		llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap,
sap               676 net/llc/llc_c_ac.c 		struct llc_sap *sap = llc->sap;
sap               679 net/llc/llc_c_ac.c 		llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap,
sap               701 net/llc/llc_c_ac.c 		struct llc_sap *sap = llc->sap;
sap               703 net/llc/llc_c_ac.c 		llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap,
sap               725 net/llc/llc_c_ac.c 		struct llc_sap *sap = llc->sap;
sap               727 net/llc/llc_c_ac.c 		llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap,
sap               749 net/llc/llc_c_ac.c 		struct llc_sap *sap = llc->sap;
sap               751 net/llc/llc_c_ac.c 		llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap,
sap               783 net/llc/llc_c_ac.c 		struct llc_sap *sap = llc->sap;
sap               788 net/llc/llc_c_ac.c 		llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap,
sap               813 net/llc/llc_c_ac.c 		struct llc_sap *sap = llc->sap;
sap               816 net/llc/llc_c_ac.c 		llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap,
sap               915 net/llc/llc_c_ac.c 	struct llc_sap *sap = llc->sap;
sap               917 net/llc/llc_c_ac.c 	llc_pdu_header_init(skb, LLC_PDU_TYPE_I, sap->laddr.lsap,
sap               973 net/llc/llc_c_ac.c 		struct llc_sap *sap = llc->sap;
sap               975 net/llc/llc_c_ac.c 		llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap,
sap               453 net/llc/llc_conn.c static inline bool llc_estab_match(const struct llc_sap *sap,
sap               477 net/llc/llc_conn.c static struct sock *__llc_lookup_established(struct llc_sap *sap,
sap               483 net/llc/llc_conn.c 	int slot = llc_sk_laddr_hashfn(sap, laddr);
sap               484 net/llc/llc_conn.c 	struct hlist_nulls_head *laddr_hb = &sap->sk_laddr_hash[slot];
sap               489 net/llc/llc_conn.c 		if (llc_estab_match(sap, daddr, laddr, rc)) {
sap               493 net/llc/llc_conn.c 			if (unlikely(llc_sk(rc)->sap != sap ||
sap               494 net/llc/llc_conn.c 				     !llc_estab_match(sap, daddr, laddr, rc))) {
sap               514 net/llc/llc_conn.c struct sock *llc_lookup_established(struct llc_sap *sap,
sap               521 net/llc/llc_conn.c 	sk = __llc_lookup_established(sap, daddr, laddr);
sap               526 net/llc/llc_conn.c static inline bool llc_listener_match(const struct llc_sap *sap,
sap               537 net/llc/llc_conn.c static struct sock *__llc_lookup_listener(struct llc_sap *sap,
sap               542 net/llc/llc_conn.c 	int slot = llc_sk_laddr_hashfn(sap, laddr);
sap               543 net/llc/llc_conn.c 	struct hlist_nulls_head *laddr_hb = &sap->sk_laddr_hash[slot];
sap               548 net/llc/llc_conn.c 		if (llc_listener_match(sap, laddr, rc)) {
sap               552 net/llc/llc_conn.c 			if (unlikely(llc_sk(rc)->sap != sap ||
sap               553 net/llc/llc_conn.c 				     !llc_listener_match(sap, laddr, rc))) {
sap               583 net/llc/llc_conn.c static struct sock *llc_lookup_listener(struct llc_sap *sap,
sap               587 net/llc/llc_conn.c 	struct sock *rc = __llc_lookup_listener(sap, laddr);
sap               590 net/llc/llc_conn.c 		rc = __llc_lookup_listener(sap, &null_addr);
sap               595 net/llc/llc_conn.c static struct sock *__llc_lookup(struct llc_sap *sap,
sap               599 net/llc/llc_conn.c 	struct sock *sk = __llc_lookup_established(sap, daddr, laddr);
sap               601 net/llc/llc_conn.c 	return sk ? : llc_lookup_listener(sap, laddr);
sap               694 net/llc/llc_conn.c void llc_sap_add_socket(struct llc_sap *sap, struct sock *sk)
sap               697 net/llc/llc_conn.c 	struct hlist_head *dev_hb = llc_sk_dev_hash(sap, llc->dev->ifindex);
sap               698 net/llc/llc_conn.c 	struct hlist_nulls_head *laddr_hb = llc_sk_laddr_hash(sap, &llc->laddr);
sap               700 net/llc/llc_conn.c 	llc_sap_hold(sap);
sap               701 net/llc/llc_conn.c 	llc_sk(sk)->sap = sap;
sap               703 net/llc/llc_conn.c 	spin_lock_bh(&sap->sk_lock);
sap               705 net/llc/llc_conn.c 	sap->sk_count++;
sap               708 net/llc/llc_conn.c 	spin_unlock_bh(&sap->sk_lock);
sap               719 net/llc/llc_conn.c void llc_sap_remove_socket(struct llc_sap *sap, struct sock *sk)
sap               723 net/llc/llc_conn.c 	spin_lock_bh(&sap->sk_lock);
sap               726 net/llc/llc_conn.c 	sap->sk_count--;
sap               727 net/llc/llc_conn.c 	spin_unlock_bh(&sap->sk_lock);
sap               728 net/llc/llc_conn.c 	llc_sap_put(sap);
sap               763 net/llc/llc_conn.c 	llc_sap_add_socket(llc->sap, newsk);
sap               764 net/llc/llc_conn.c 	llc_sap_hold(llc->sap);
sap               769 net/llc/llc_conn.c void llc_conn_handler(struct llc_sap *sap, struct sk_buff *skb)
sap               779 net/llc/llc_conn.c 	sk = __llc_lookup(sap, &saddr, &daddr);
sap                35 net/llc/llc_core.c 	struct llc_sap *sap = kzalloc(sizeof(*sap), GFP_ATOMIC);
sap                38 net/llc/llc_core.c 	if (sap) {
sap                40 net/llc/llc_core.c 		sap->state = LLC_SAP_STATE_ACTIVE;
sap                41 net/llc/llc_core.c 		spin_lock_init(&sap->sk_lock);
sap                43 net/llc/llc_core.c 			INIT_HLIST_NULLS_HEAD(&sap->sk_laddr_hash[i], i);
sap                44 net/llc/llc_core.c 		refcount_set(&sap->refcnt, 1);
sap                46 net/llc/llc_core.c 	return sap;
sap                51 net/llc/llc_core.c 	struct llc_sap *sap;
sap                53 net/llc/llc_core.c 	list_for_each_entry(sap, &llc_sap_list, node)
sap                54 net/llc/llc_core.c 		if (sap->laddr.lsap == sap_value)
sap                56 net/llc/llc_core.c 	sap = NULL;
sap                58 net/llc/llc_core.c 	return sap;
sap                72 net/llc/llc_core.c 	struct llc_sap *sap;
sap                75 net/llc/llc_core.c 	sap = __llc_sap_find(sap_value);
sap                76 net/llc/llc_core.c 	if (!sap || !llc_sap_hold_safe(sap))
sap                77 net/llc/llc_core.c 		sap = NULL;
sap                79 net/llc/llc_core.c 	return sap;
sap                97 net/llc/llc_core.c 	struct llc_sap *sap = NULL;
sap               102 net/llc/llc_core.c 	sap = llc_sap_alloc();
sap               103 net/llc/llc_core.c 	if (!sap)
sap               105 net/llc/llc_core.c 	sap->laddr.lsap = lsap;
sap               106 net/llc/llc_core.c 	sap->rcv_func	= func;
sap               107 net/llc/llc_core.c 	list_add_tail_rcu(&sap->node, &llc_sap_list);
sap               110 net/llc/llc_core.c 	return sap;
sap               122 net/llc/llc_core.c void llc_sap_close(struct llc_sap *sap)
sap               124 net/llc/llc_core.c 	WARN_ON(sap->sk_count);
sap               127 net/llc/llc_core.c 	list_del_rcu(&sap->node);
sap               130 net/llc/llc_core.c 	kfree_rcu(sap, rcu);
sap                91 net/llc/llc_if.c 	laddr.lsap = llc->sap->laddr.lsap;
sap                95 net/llc/llc_if.c 	existing = llc_lookup_established(llc->sap, &daddr, &laddr);
sap                39 net/llc/llc_input.c static void (*llc_type_handlers[2])(struct llc_sap *sap,
sap                42 net/llc/llc_input.c void llc_add_pack(int type, void (*handler)(struct llc_sap *sap,
sap               157 net/llc/llc_input.c 	struct llc_sap *sap;
sap               163 net/llc/llc_input.c 	void (*sap_handler)(struct llc_sap *sap, struct sk_buff *skb);
sap               184 net/llc/llc_input.c 	sap = llc_sap_find(pdu->dsap);
sap               185 net/llc/llc_input.c 	if (unlikely(!sap)) {/* unknown SAP */
sap               194 net/llc/llc_input.c 	rcv = rcu_dereference(sap->rcv_func);
sap               208 net/llc/llc_input.c 		sap_handler(sap, skb);
sap               210 net/llc/llc_input.c 	llc_sap_put(sap);
sap                58 net/llc/llc_output.c int llc_build_and_send_ui_pkt(struct llc_sap *sap, struct sk_buff *skb,
sap                62 net/llc/llc_output.c 	llc_pdu_header_init(skb, LLC_PDU_TYPE_U, sap->laddr.lsap,
sap                36 net/llc/llc_proc.c 	struct llc_sap *sap;
sap                40 net/llc/llc_proc.c 	list_for_each_entry_rcu(sap, &llc_sap_list, node) {
sap                41 net/llc/llc_proc.c 		spin_lock_bh(&sap->sk_lock);
sap                43 net/llc/llc_proc.c 			struct hlist_nulls_head *head = &sap->sk_laddr_hash[i];
sap                52 net/llc/llc_proc.c 		spin_unlock_bh(&sap->sk_lock);
sap                67 net/llc/llc_proc.c static struct sock *laddr_hash_next(struct llc_sap *sap, int bucket)
sap                73 net/llc/llc_proc.c 		sk_nulls_for_each(sk, node, &sap->sk_laddr_hash[bucket])
sap                84 net/llc/llc_proc.c 	struct llc_sap *sap;
sap                98 net/llc/llc_proc.c 	sap = llc->sap;
sap                99 net/llc/llc_proc.c 	sk = laddr_hash_next(sap, llc_sk_laddr_hashfn(sap, &llc->laddr));
sap               102 net/llc/llc_proc.c 	spin_unlock_bh(&sap->sk_lock);
sap               103 net/llc/llc_proc.c 	list_for_each_entry_continue_rcu(sap, &llc_sap_list, node) {
sap               104 net/llc/llc_proc.c 		spin_lock_bh(&sap->sk_lock);
sap               105 net/llc/llc_proc.c 		sk = laddr_hash_next(sap, -1);
sap               108 net/llc/llc_proc.c 		spin_unlock_bh(&sap->sk_lock);
sap               119 net/llc/llc_proc.c 		struct llc_sap *sap = llc->sap;
sap               121 net/llc/llc_proc.c 		spin_unlock_bh(&sap->sk_lock);
sap               148 net/llc/llc_proc.c 	seq_printf(seq, "@%02X ", llc->sap->laddr.lsap);
sap                37 net/llc/llc_s_ac.c int llc_sap_action_unitdata_ind(struct llc_sap *sap, struct sk_buff *skb)
sap                39 net/llc/llc_s_ac.c 	llc_sap_rtn_pdu(sap, skb);
sap                52 net/llc/llc_s_ac.c int llc_sap_action_send_ui(struct llc_sap *sap, struct sk_buff *skb)
sap                77 net/llc/llc_s_ac.c int llc_sap_action_send_xid_c(struct llc_sap *sap, struct sk_buff *skb)
sap               101 net/llc/llc_s_ac.c int llc_sap_action_send_xid_r(struct llc_sap *sap, struct sk_buff *skb)
sap               114 net/llc/llc_s_ac.c 	llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, dsap,
sap               133 net/llc/llc_s_ac.c int llc_sap_action_send_test_c(struct llc_sap *sap, struct sk_buff *skb)
sap               149 net/llc/llc_s_ac.c int llc_sap_action_send_test_r(struct llc_sap *sap, struct sk_buff *skb)
sap               165 net/llc/llc_s_ac.c 	llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, dsap,
sap               183 net/llc/llc_s_ac.c int llc_sap_action_report_status(struct llc_sap *sap, struct sk_buff *skb)
sap               196 net/llc/llc_s_ac.c int llc_sap_action_xid_ind(struct llc_sap *sap, struct sk_buff *skb)
sap               198 net/llc/llc_s_ac.c 	llc_sap_rtn_pdu(sap, skb);
sap               210 net/llc/llc_s_ac.c int llc_sap_action_test_ind(struct llc_sap *sap, struct sk_buff *skb)
sap               212 net/llc/llc_s_ac.c 	llc_sap_rtn_pdu(sap, skb);
sap                23 net/llc/llc_s_ev.c int llc_sap_ev_activation_req(struct llc_sap *sap, struct sk_buff *skb)
sap                31 net/llc/llc_s_ev.c int llc_sap_ev_rx_ui(struct llc_sap *sap, struct sk_buff *skb)
sap                41 net/llc/llc_s_ev.c int llc_sap_ev_unitdata_req(struct llc_sap *sap, struct sk_buff *skb)
sap                51 net/llc/llc_s_ev.c int llc_sap_ev_xid_req(struct llc_sap *sap, struct sk_buff *skb)
sap                60 net/llc/llc_s_ev.c int llc_sap_ev_rx_xid_c(struct llc_sap *sap, struct sk_buff *skb)
sap                70 net/llc/llc_s_ev.c int llc_sap_ev_rx_xid_r(struct llc_sap *sap, struct sk_buff *skb)
sap                80 net/llc/llc_s_ev.c int llc_sap_ev_test_req(struct llc_sap *sap, struct sk_buff *skb)
sap                89 net/llc/llc_s_ev.c int llc_sap_ev_rx_test_c(struct llc_sap *sap, struct sk_buff *skb)
sap                99 net/llc/llc_s_ev.c int llc_sap_ev_rx_test_r(struct llc_sap *sap, struct sk_buff *skb)
sap               109 net/llc/llc_s_ev.c int llc_sap_ev_deactivation_req(struct llc_sap *sap, struct sk_buff *skb)
sap                91 net/llc/llc_sap.c void llc_sap_rtn_pdu(struct llc_sap *sap, struct sk_buff *skb)
sap               116 net/llc/llc_sap.c static struct llc_sap_state_trans *llc_find_sap_trans(struct llc_sap *sap,
sap               122 net/llc/llc_sap.c 	struct llc_sap_state *curr_state = &llc_sap_state_table[sap->state - 1];
sap               128 net/llc/llc_sap.c 		if (!next_trans[i]->ev(sap, skb)) {
sap               144 net/llc/llc_sap.c static int llc_exec_sap_trans_actions(struct llc_sap *sap,
sap               152 net/llc/llc_sap.c 		if ((*next_action)(sap, skb))
sap               166 net/llc/llc_sap.c static int llc_sap_next_state(struct llc_sap *sap, struct sk_buff *skb)
sap               171 net/llc/llc_sap.c 	if (sap->state > LLC_NR_SAP_STATES)
sap               173 net/llc/llc_sap.c 	trans = llc_find_sap_trans(sap, skb);
sap               181 net/llc/llc_sap.c 	rc = llc_exec_sap_trans_actions(sap, trans, skb);
sap               187 net/llc/llc_sap.c 	sap->state = trans->next_state;
sap               203 net/llc/llc_sap.c static void llc_sap_state_process(struct llc_sap *sap, struct sk_buff *skb)
sap               208 net/llc/llc_sap.c 	llc_sap_next_state(sap, skb);
sap               230 net/llc/llc_sap.c void llc_build_and_send_test_pkt(struct llc_sap *sap,
sap               235 net/llc/llc_sap.c 	ev->saddr.lsap = sap->laddr.lsap;
sap               243 net/llc/llc_sap.c 	llc_sap_state_process(sap, skb);
sap               256 net/llc/llc_sap.c void llc_build_and_send_xid_pkt(struct llc_sap *sap, struct sk_buff *skb,
sap               261 net/llc/llc_sap.c 	ev->saddr.lsap = sap->laddr.lsap;
sap               269 net/llc/llc_sap.c 	llc_sap_state_process(sap, skb);
sap               279 net/llc/llc_sap.c static void llc_sap_rcv(struct llc_sap *sap, struct sk_buff *skb,
sap               290 net/llc/llc_sap.c 	llc_sap_state_process(sap, skb);
sap               293 net/llc/llc_sap.c static inline bool llc_dgram_match(const struct llc_sap *sap,
sap               312 net/llc/llc_sap.c static struct sock *llc_lookup_dgram(struct llc_sap *sap,
sap               317 net/llc/llc_sap.c 	int slot = llc_sk_laddr_hashfn(sap, laddr);
sap               318 net/llc/llc_sap.c 	struct hlist_nulls_head *laddr_hb = &sap->sk_laddr_hash[slot];
sap               323 net/llc/llc_sap.c 		if (llc_dgram_match(sap, laddr, rc)) {
sap               327 net/llc/llc_sap.c 			if (unlikely(llc_sk(rc)->sap != sap ||
sap               328 net/llc/llc_sap.c 				     !llc_dgram_match(sap, laddr, rc))) {
sap               348 net/llc/llc_sap.c static inline bool llc_mcast_match(const struct llc_sap *sap,
sap               360 net/llc/llc_sap.c static void llc_do_mcast(struct llc_sap *sap, struct sk_buff *skb,
sap               373 net/llc/llc_sap.c 		llc_sap_rcv(sap, skb1, stack[i]);
sap               386 net/llc/llc_sap.c static void llc_sap_mcast(struct llc_sap *sap,
sap               394 net/llc/llc_sap.c 	struct hlist_head *dev_hb = llc_sk_dev_hash(sap, skb->dev->ifindex);
sap               396 net/llc/llc_sap.c 	spin_lock_bh(&sap->sk_lock);
sap               401 net/llc/llc_sap.c 		if (!llc_mcast_match(sap, laddr, skb, sk))
sap               408 net/llc/llc_sap.c 			llc_do_mcast(sap, skb, stack, i);
sap               412 net/llc/llc_sap.c 	spin_unlock_bh(&sap->sk_lock);
sap               414 net/llc/llc_sap.c 	llc_do_mcast(sap, skb, stack, i);
sap               418 net/llc/llc_sap.c void llc_sap_handler(struct llc_sap *sap, struct sk_buff *skb)
sap               426 net/llc/llc_sap.c 		llc_sap_mcast(sap, &laddr, skb);
sap               429 net/llc/llc_sap.c 		struct sock *sk = llc_lookup_dgram(sap, &laddr);
sap               431 net/llc/llc_sap.c 			llc_sap_rcv(sap, skb, sk);
sap                44 net/nfc/llcp.h 	u8 sap;
sap               231 net/nfc/llcp.h struct nfc_llcp_sdp_tlv *nfc_llcp_build_sdres_tlv(u8 tid, u8 sap);
sap               106 net/nfc/llcp_commands.c struct nfc_llcp_sdp_tlv *nfc_llcp_build_sdres_tlv(u8 tid, u8 sap)
sap               116 net/nfc/llcp_commands.c 	value[1] = sap;
sap               126 net/nfc/llcp_commands.c 	sdres->sap = sap;
sap               259 net/nfc/llcp_core.c 		sdp->sap = LLCP_SDP_UNBOUND;
sap               306 net/nfc/llcp_core.c 	int sap, num_wks;
sap               315 net/nfc/llcp_core.c 	for (sap = 0; sap < num_wks; sap++) {
sap               316 net/nfc/llcp_core.c 		if (wks[sap] == NULL)
sap               319 net/nfc/llcp_core.c 		if (strncmp(wks[sap], service_name, service_name_len) == 0)
sap               320 net/nfc/llcp_core.c 			return sap;
sap              1232 net/nfc/llcp_core.c 	u8 dsap, ssap, *tlv, type, length, tid, sap;
sap              1271 net/nfc/llcp_core.c 				sap = 1;
sap              1278 net/nfc/llcp_core.c 				sap = 0;
sap              1290 net/nfc/llcp_core.c 				sap = nfc_llcp_reserve_sdp_ssap(local);
sap              1292 net/nfc/llcp_core.c 				pr_debug("Reserving %d\n", sap);
sap              1294 net/nfc/llcp_core.c 				if (sap == LLCP_SAP_MAX) {
sap              1295 net/nfc/llcp_core.c 					sap = 0;
sap              1300 net/nfc/llcp_core.c 					&local->local_sdp_cnt[sap -
sap              1305 net/nfc/llcp_core.c 				llcp_sock->ssap = sap;
sap              1306 net/nfc/llcp_core.c 				llcp_sock->reserved_ssap = sap;
sap              1308 net/nfc/llcp_core.c 				sap = llcp_sock->ssap;
sap              1311 net/nfc/llcp_core.c 			pr_debug("%p %d\n", llcp_sock, sap);
sap              1314 net/nfc/llcp_core.c 			sdp = nfc_llcp_build_sdres_tlv(tid, sap);
sap              1331 net/nfc/llcp_core.c 				sdp->sap = tlv[3];
sap              1334 net/nfc/llcp_core.c 					 sdp->uri, sdp->sap);
sap               396 net/nfc/netlink.c 		pr_debug("uri: %s, sap: %d\n", sdres->uri, sdres->sap);
sap               404 net/nfc/netlink.c 		if (nla_put_u8(msg, NFC_SDP_ATTR_SAP, sdres->sap))
sap                28 net/sunrpc/addr.c static size_t rpc_ntop6_noscopeid(const struct sockaddr *sap,
sap                31 net/sunrpc/addr.c 	const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap;
sap                66 net/sunrpc/addr.c static size_t rpc_ntop6(const struct sockaddr *sap,
sap                69 net/sunrpc/addr.c 	const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap;
sap                74 net/sunrpc/addr.c 	len = rpc_ntop6_noscopeid(sap, buf, buflen);
sap                98 net/sunrpc/addr.c static size_t rpc_ntop6_noscopeid(const struct sockaddr *sap,
sap               104 net/sunrpc/addr.c static size_t rpc_ntop6(const struct sockaddr *sap,
sap               112 net/sunrpc/addr.c static int rpc_ntop4(const struct sockaddr *sap,
sap               115 net/sunrpc/addr.c 	const struct sockaddr_in *sin = (struct sockaddr_in *)sap;
sap               129 net/sunrpc/addr.c size_t rpc_ntop(const struct sockaddr *sap, char *buf, const size_t buflen)
sap               131 net/sunrpc/addr.c 	switch (sap->sa_family) {
sap               133 net/sunrpc/addr.c 		return rpc_ntop4(sap, buf, buflen);
sap               135 net/sunrpc/addr.c 		return rpc_ntop6(sap, buf, buflen);
sap               143 net/sunrpc/addr.c 			struct sockaddr *sap, const size_t salen)
sap               145 net/sunrpc/addr.c 	struct sockaddr_in *sin = (struct sockaddr_in *)sap;
sap               151 net/sunrpc/addr.c 	memset(sap, 0, sizeof(struct sockaddr_in));
sap               204 net/sunrpc/addr.c 			struct sockaddr *sap, const size_t salen)
sap               206 net/sunrpc/addr.c 	struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap;
sap               214 net/sunrpc/addr.c 	memset(sap, 0, sizeof(struct sockaddr_in6));
sap               227 net/sunrpc/addr.c 			struct sockaddr *sap, const size_t salen)
sap               249 net/sunrpc/addr.c 		struct sockaddr *sap, const size_t salen)
sap               255 net/sunrpc/addr.c 			return rpc_pton6(net, buf, buflen, sap, salen);
sap               256 net/sunrpc/addr.c 	return rpc_pton4(buf, buflen, sap, salen);
sap               269 net/sunrpc/addr.c char *rpc_sockaddr2uaddr(const struct sockaddr *sap, gfp_t gfp_flags)
sap               275 net/sunrpc/addr.c 	switch (sap->sa_family) {
sap               277 net/sunrpc/addr.c 		if (rpc_ntop4(sap, addrbuf, sizeof(addrbuf)) == 0)
sap               279 net/sunrpc/addr.c 		port = ntohs(((struct sockaddr_in *)sap)->sin_port);
sap               282 net/sunrpc/addr.c 		if (rpc_ntop6_noscopeid(sap, addrbuf, sizeof(addrbuf)) == 0)
sap               284 net/sunrpc/addr.c 		port = ntohs(((struct sockaddr_in6 *)sap)->sin6_port);
sap               315 net/sunrpc/addr.c 			  const size_t uaddr_len, struct sockaddr *sap,
sap               344 net/sunrpc/addr.c 	if (rpc_pton(net, buf, strlen(buf), sap, salen) == 0)
sap               347 net/sunrpc/addr.c 	switch (sap->sa_family) {
sap               349 net/sunrpc/addr.c 		((struct sockaddr_in *)sap)->sin_port = htons(port);
sap               352 net/sunrpc/addr.c 		((struct sockaddr_in6 *)sap)->sin6_port = htons(port);
sap              1331 net/sunrpc/clnt.c static int rpc_sockname(struct net *net, struct sockaddr *sap, size_t salen,
sap              1337 net/sunrpc/clnt.c 	err = __sock_create(net, sap->sa_family,
sap              1344 net/sunrpc/clnt.c 	switch (sap->sa_family) {
sap              1364 net/sunrpc/clnt.c 	err = kernel_connect(sock, sap, salen, 0);
sap              1440 net/sunrpc/clnt.c 	struct sockaddr *sap = (struct sockaddr *)&address;
sap              1449 net/sunrpc/clnt.c 	memcpy(sap, &xprt->addr, salen);
sap              1453 net/sunrpc/clnt.c 	rpc_set_port(sap, 0);
sap              1454 net/sunrpc/clnt.c 	err = rpc_sockname(net, sap, salen, buf);
sap              1458 net/sunrpc/clnt.c 		return rpc_anyaddr(sap->sa_family, buf, buflen);
sap              3008 net/sunrpc/clnt.c 				   const struct sockaddr *sap)
sap              3015 net/sunrpc/clnt.c 	ret = rpc_xprt_switch_has_addr(xps, sap);
sap               481 net/sunrpc/rpcb_clnt.c 			       const struct sockaddr *sap,
sap               484 net/sunrpc/rpcb_clnt.c 	const struct sockaddr_in *sin = (const struct sockaddr_in *)sap;
sap               490 net/sunrpc/rpcb_clnt.c 	map->r_addr = rpc_sockaddr2uaddr(sap, GFP_KERNEL);
sap               512 net/sunrpc/rpcb_clnt.c 			       const struct sockaddr *sap,
sap               515 net/sunrpc/rpcb_clnt.c 	const struct sockaddr_in6 *sin6 = (const struct sockaddr_in6 *)sap;
sap               521 net/sunrpc/rpcb_clnt.c 	map->r_addr = rpc_sockaddr2uaddr(sap, GFP_KERNEL);
sap               687 net/sunrpc/rpcb_clnt.c 	struct sockaddr *sap = (struct sockaddr *)&addr;
sap               721 net/sunrpc/rpcb_clnt.c 	salen = rpc_peeraddr(clnt, sap, sizeof(addr));
sap               724 net/sunrpc/rpcb_clnt.c 	switch (sap->sa_family) {
sap               752 net/sunrpc/rpcb_clnt.c 				xprt->servername, sap, salen,
sap               780 net/sunrpc/rpcb_clnt.c 		map->r_addr = rpc_sockaddr2uaddr(sap, GFP_NOFS);
sap               964 net/sunrpc/rpcb_clnt.c 	struct sockaddr *sap = (struct sockaddr *)&address;
sap               995 net/sunrpc/rpcb_clnt.c 				sap, sizeof(address)) == 0)
sap               997 net/sunrpc/rpcb_clnt.c 	rpcb->r_port = rpc_get_port(sap);
sap               200 net/sunrpc/svc_xprt.c 	struct sockaddr *sap;
sap               205 net/sunrpc/svc_xprt.c 		sap = (struct sockaddr *)&sin;
sap               210 net/sunrpc/svc_xprt.c 		sap = (struct sockaddr *)&sin6;
sap               218 net/sunrpc/svc_xprt.c 	return xcl->xcl_ops->xpo_create(serv, net, sap, len, flags);
sap               257 net/sunrpc/xprtmultipath.c 			      const struct sockaddr *sap)
sap               262 net/sunrpc/xprtmultipath.c 	if (xps == NULL || sap == NULL)
sap               267 net/sunrpc/xprtmultipath.c 		if (rpc_cmp_addr_port(sap, (struct sockaddr *)&pos->addr)) {
sap               242 net/sunrpc/xprtrdma/svc_rdma_transport.c 	struct sockaddr *sap = (struct sockaddr *)&cma_id->route.addr.src_addr;
sap               244 net/sunrpc/xprtrdma/svc_rdma_transport.c 	trace_svcrdma_cm_event(event, sap);
sap               267 net/sunrpc/xprtrdma/svc_rdma_transport.c 	struct sockaddr *sap = (struct sockaddr *)&cma_id->route.addr.dst_addr;
sap               271 net/sunrpc/xprtrdma/svc_rdma_transport.c 	trace_svcrdma_cm_event(event, sap);
sap               397 net/sunrpc/xprtrdma/svc_rdma_transport.c 	RPC_IFDEBUG(struct sockaddr *sap);
sap               533 net/sunrpc/xprtrdma/svc_rdma_transport.c 	sap = (struct sockaddr *)&newxprt->sc_cm_id->route.addr.src_addr;
sap               534 net/sunrpc/xprtrdma/svc_rdma_transport.c 	dprintk("    local address   : %pIS:%u\n", sap, rpc_get_port(sap));
sap               535 net/sunrpc/xprtrdma/svc_rdma_transport.c 	sap = (struct sockaddr *)&newxprt->sc_cm_id->route.addr.dst_addr;
sap               536 net/sunrpc/xprtrdma/svc_rdma_transport.c 	dprintk("    remote address  : %pIS:%u\n", sap, rpc_get_port(sap));
sap               160 net/sunrpc/xprtrdma/transport.c xprt_rdma_format_addresses4(struct rpc_xprt *xprt, struct sockaddr *sap)
sap               162 net/sunrpc/xprtrdma/transport.c 	struct sockaddr_in *sin = (struct sockaddr_in *)sap;
sap               172 net/sunrpc/xprtrdma/transport.c xprt_rdma_format_addresses6(struct rpc_xprt *xprt, struct sockaddr *sap)
sap               174 net/sunrpc/xprtrdma/transport.c 	struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap;
sap               184 net/sunrpc/xprtrdma/transport.c xprt_rdma_format_addresses(struct rpc_xprt *xprt, struct sockaddr *sap)
sap               188 net/sunrpc/xprtrdma/transport.c 	switch (sap->sa_family) {
sap               190 net/sunrpc/xprtrdma/transport.c 		xprt_rdma_format_addresses4(xprt, sap);
sap               193 net/sunrpc/xprtrdma/transport.c 		xprt_rdma_format_addresses6(xprt, sap);
sap               200 net/sunrpc/xprtrdma/transport.c 	(void)rpc_ntop(sap, buf, sizeof(buf));
sap               203 net/sunrpc/xprtrdma/transport.c 	snprintf(buf, sizeof(buf), "%u", rpc_get_port(sap));
sap               206 net/sunrpc/xprtrdma/transport.c 	snprintf(buf, sizeof(buf), "%4hx", rpc_get_port(sap));
sap               316 net/sunrpc/xprtrdma/transport.c 	struct sockaddr *sap;
sap               339 net/sunrpc/xprtrdma/transport.c 	sap = args->dstaddr;
sap               345 net/sunrpc/xprtrdma/transport.c 	memcpy(&xprt->addr, sap, xprt->addrlen);
sap               347 net/sunrpc/xprtrdma/transport.c 	if (rpc_get_port(sap))
sap               349 net/sunrpc/xprtrdma/transport.c 	xprt_rdma_format_addresses(xprt, sap);
sap               453 net/sunrpc/xprtrdma/transport.c 	struct sockaddr *sap = (struct sockaddr *)&xprt->addr;
sap               462 net/sunrpc/xprtrdma/transport.c 	rpc_set_port(sap, port);
sap               596 net/sunrpc/xprtrdma/xprt_rdma.h void xprt_rdma_format_addresses(struct rpc_xprt *xprt, struct sockaddr *sap);
sap               248 net/sunrpc/xprtsock.c 	struct sockaddr *sap = xs_addr(xprt);
sap               254 net/sunrpc/xprtsock.c 	switch (sap->sa_family) {
sap               262 net/sunrpc/xprtsock.c 		(void)rpc_ntop(sap, buf, sizeof(buf));
sap               269 net/sunrpc/xprtsock.c 		(void)rpc_ntop(sap, buf, sizeof(buf));
sap               284 net/sunrpc/xprtsock.c 	struct sockaddr *sap = xs_addr(xprt);
sap               287 net/sunrpc/xprtsock.c 	snprintf(buf, sizeof(buf), "%u", rpc_get_port(sap));
sap               290 net/sunrpc/xprtsock.c 	snprintf(buf, sizeof(buf), "%4hx", rpc_get_port(sap));
sap              2826 net/sunrpc/xprtsock.c static int xs_init_anyaddr(const int family, struct sockaddr *sap)
sap              2841 net/sunrpc/xprtsock.c 		memcpy(sap, &sin, sizeof(sin));
sap              2844 net/sunrpc/xprtsock.c 		memcpy(sap, &sin6, sizeof(sin6));
sap               485 security/smack/smack_access.c int smk_netlbl_mls(int level, char *catset, struct netlbl_lsm_secattr *sap,
sap               494 security/smack/smack_access.c 	sap->flags |= NETLBL_SECATTR_MLS_CAT;
sap               495 security/smack/smack_access.c 	sap->attr.mls.lvl = level;
sap               496 security/smack/smack_access.c 	sap->attr.mls.cat = NULL;
sap               502 security/smack/smack_access.c 			rc = netlbl_catmap_setbit(&sap->attr.mls.cat,
sap               505 security/smack/smack_access.c 				netlbl_catmap_free(sap->attr.mls.cat);
sap              2359 security/smack/smack_lsm.c 	struct in6_addr *sap = &sip->sin6_addr;
sap              2382 security/smack/smack_lsm.c 			if ((sap->s6_addr16[i] & snp->smk_mask.s6_addr16[i]) !=
sap              2447 security/smack/smack_lsm.c static int smack_netlabel_send(struct sock *sk, struct sockaddr_in *sap)
sap              2457 security/smack/smack_lsm.c 	hkp = smack_ipv4host_label(sap);
sap              2463 security/smack/smack_lsm.c 		ad.a.u.net->family = sap->sin_family;
sap              2464 security/smack/smack_lsm.c 		ad.a.u.net->dport = sap->sin_port;
sap              2465 security/smack/smack_lsm.c 		ad.a.u.net->v4info.daddr = sap->sin_addr.s_addr;
sap              2825 security/smack/smack_lsm.c static int smack_socket_connect(struct socket *sock, struct sockaddr *sap,
sap              2837 security/smack/smack_lsm.c 	if (IS_ENABLED(CONFIG_IPV6) && sap->sa_family == AF_INET6) {
sap              2838 security/smack/smack_lsm.c 		struct sockaddr_in6 *sip = (struct sockaddr_in6 *)sap;
sap              2856 security/smack/smack_lsm.c 	if (sap->sa_family != AF_INET || addrlen < sizeof(struct sockaddr_in))
sap              2858 security/smack/smack_lsm.c 	rc = smack_netlabel_send(sock->sk, (struct sockaddr_in *)sap);
sap              3660 security/smack/smack_lsm.c 	struct sockaddr_in6 *sap = (struct sockaddr_in6 *) msg->msg_name;
sap              3684 security/smack/smack_lsm.c 		    sap->sin6_family != AF_INET6)
sap              3687 security/smack/smack_lsm.c 		rsp = smack_ipv6host_label(sap);
sap              3689 security/smack/smack_lsm.c 			rc = smk_ipv6_check(ssp->smk_out, rsp, sap,
sap              3693 security/smack/smack_lsm.c 		rc = smk_ipv6_port_check(sock->sk, sap, SMK_SENDING);
sap              3708 security/smack/smack_lsm.c static struct smack_known *smack_from_secattr(struct netlbl_lsm_secattr *sap,
sap              3716 security/smack/smack_lsm.c 	if ((sap->flags & NETLBL_SECATTR_MLS_LVL) != 0) {
sap              3729 security/smack/smack_lsm.c 			if (sap->attr.mls.lvl != skp->smk_netlabel.attr.mls.lvl)
sap              3734 security/smack/smack_lsm.c 			if ((sap->flags & NETLBL_SECATTR_MLS_CAT) == 0) {
sap              3741 security/smack/smack_lsm.c 				acat = netlbl_catmap_walk(sap->attr.mls.cat,
sap              3763 security/smack/smack_lsm.c 	if ((sap->flags & NETLBL_SECATTR_SECID) != 0)
sap              3767 security/smack/smack_lsm.c 		return smack_from_secid(sap->attr.secid);