Home
last modified time | relevance | path

Searched refs:spn (Results 1 – 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/include/uapi/linux/
Dphonet.h138 static inline void pn_sockaddr_set_addr(struct sockaddr_pn *spn, __u8 addr) in pn_sockaddr_set_addr() argument
140 spn->spn_dev &= 0x03; in pn_sockaddr_set_addr()
141 spn->spn_dev |= addr & 0xfc; in pn_sockaddr_set_addr()
144 static inline void pn_sockaddr_set_port(struct sockaddr_pn *spn, __u16 port) in pn_sockaddr_set_port() argument
146 spn->spn_dev &= 0xfc; in pn_sockaddr_set_port()
147 spn->spn_dev |= (port >> 8) & 0x03; in pn_sockaddr_set_port()
148 spn->spn_obj = port & 0xff; in pn_sockaddr_set_port()
151 static inline void pn_sockaddr_set_object(struct sockaddr_pn *spn, in pn_sockaddr_set_object() argument
154 spn->spn_dev = pn_dev(handle); in pn_sockaddr_set_object()
155 spn->spn_obj = pn_obj(handle); in pn_sockaddr_set_object()
[all …]
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dphonet.h92 static inline void pn_sockaddr_set_addr(struct sockaddr_pn *spn, __u8 addr) in pn_sockaddr_set_addr() argument
94 spn->spn_dev &= 0x03; in pn_sockaddr_set_addr()
95 spn->spn_dev |= addr & 0xfc; in pn_sockaddr_set_addr()
97 static inline void pn_sockaddr_set_port(struct sockaddr_pn *spn, __u16 port) in pn_sockaddr_set_port() argument
99 spn->spn_dev &= 0xfc; in pn_sockaddr_set_port()
100 spn->spn_dev |= (port >> 8) & 0x03; in pn_sockaddr_set_port()
101 spn->spn_obj = port & 0xff; in pn_sockaddr_set_port()
103 static inline void pn_sockaddr_set_object(struct sockaddr_pn *spn, in pn_sockaddr_set_object() argument
106 spn->spn_dev = pn_dev(handle); in pn_sockaddr_set_object()
107 spn->spn_obj = pn_obj(handle); in pn_sockaddr_set_object()
[all …]
/kernel/linux/linux-5.10/Documentation/networking/
Dphonet.rst175 struct sockaddr_spn spn;
179 memset(&spn, 0, sizeof(spn));
180 spn.spn_family = AF_PHONET;
181 spn.spn_obj = ...;
182 spn.spn_dev = ...;
183 spn.spn_resource = 0xD9;
184 connect(fd, (struct sockaddr *)&spn, sizeof(spn));
/kernel/linux/linux-5.10/net/phonet/
Dsocket.c66 struct sock *pn_find_sock_by_sa(struct net *net, const struct sockaddr_pn *spn) in pn_find_sock_by_sa() argument
70 u16 obj = pn_sockaddr_get_object(spn); in pn_find_sock_by_sa()
71 u8 res = spn->spn_resource; in pn_find_sock_by_sa()
160 struct sockaddr_pn *spn = (struct sockaddr_pn *)addr; in pn_socket_bind() local
170 if (spn->spn_family != AF_PHONET) in pn_socket_bind()
191 pn->resource = spn->spn_resource; in pn_socket_bind()
222 struct sockaddr_pn *spn = (struct sockaddr_pn *)addr; in pn_socket_connect() local
231 if (spn->spn_family != AF_PHONET) in pn_socket_connect()
251 pn->dobject = pn_sockaddr_get_object(spn); in pn_socket_connect()
252 pn->resource = pn_sockaddr_get_resource(spn); in pn_socket_connect()
/kernel/linux/linux-5.10/include/scsi/
Dfc_encode.h34 struct fc_ns_rspn spn; member
170 hton24(ct->payload.spn.fr_fid.fp_fid, lport->port_id); in fc_ct_ns_fill()
171 strncpy(ct->payload.spn.fr_name, in fc_ct_ns_fill()
173 ct->payload.spn.fr_name_len = len; in fc_ct_ns_fill()
/kernel/linux/linux-5.10/drivers/scsi/bfa/
Dbfa_fc.h1355 u8 spn[256]; /* symbolic port name */ member
1420 char spn[255]; /* Symbolic Port Name */ member
Dbfa_fcbuild.c1137 strlcpy(rspnid->spn, name, sizeof(rspnid->spn)); in fc_rspnid_build()
1138 rspnid->spn_len = (u8) strlen(rspnid->spn); in fc_rspnid_build()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gvt/
Dgtt.c762 struct intel_vgpu_ppgtt_spt *spt, *spn; in ppgtt_free_all_spt() local
774 list_for_each_entry_safe(spt, spn, &all_spt, post_shadow_list) in ppgtt_free_all_spt()