Home
last modified time | relevance | path

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

/linux-6.6.21/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 …]
/linux-6.6.21/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));
/linux-6.6.21/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()
/linux-6.6.21/drivers/scsi/libfc/
Dfc_encode.h35 struct fc_ns_rspn spn; member
142 hton24(ct->payload.spn.fr_fid.fp_fid, lport->port_id); in fc_ct_ns_fill()
143 strncpy(ct->payload.spn.fr_name, in fc_ct_ns_fill()
145 ct->payload.spn.fr_name_len = len; in fc_ct_ns_fill()
/linux-6.6.21/drivers/scsi/bfa/
Dbfa_fc.h1340 u8 spn[256]; /* symbolic port name */ member
1405 char spn[255]; /* Symbolic Port Name */ member
Dbfa_fcbuild.c1137 strscpy(rspnid->spn, name, sizeof(rspnid->spn)); in fc_rspnid_build()
1138 rspnid->spn_len = (u8) strlen(rspnid->spn); in fc_rspnid_build()
/linux-6.6.21/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()