Searched refs:spn (Results 1 – 6 of 6) sorted by relevance
/linux-2.6.39/include/linux/ ! |
D | phonet.h | 134 static inline void pn_sockaddr_set_addr(struct sockaddr_pn *spn, __u8 addr) in pn_sockaddr_set_addr() argument 136 spn->spn_dev &= 0x03; in pn_sockaddr_set_addr() 137 spn->spn_dev |= addr & 0xfc; in pn_sockaddr_set_addr() 140 static inline void pn_sockaddr_set_port(struct sockaddr_pn *spn, __u16 port) in pn_sockaddr_set_port() argument 142 spn->spn_dev &= 0xfc; in pn_sockaddr_set_port() 143 spn->spn_dev |= (port >> 8) & 0x03; in pn_sockaddr_set_port() 144 spn->spn_obj = port & 0xff; in pn_sockaddr_set_port() 147 static inline void pn_sockaddr_set_object(struct sockaddr_pn *spn, in pn_sockaddr_set_object() argument 150 spn->spn_dev = pn_dev(handle); in pn_sockaddr_set_object() 151 spn->spn_obj = pn_obj(handle); in pn_sockaddr_set_object() [all …]
|
/linux-2.6.39/Documentation/networking/ ! |
D | phonet.txt | 166 struct sockaddr_spn spn; 170 memset(&spn, 0, sizeof(spn)); 171 spn.spn_family = AF_PHONET; 172 spn.spn_obj = ...; 173 spn.spn_dev = ...; 174 spn.spn_resource = 0xD9; 175 connect(fd, (struct sockaddr *)&spn, sizeof(spn));
|
/linux-2.6.39/net/phonet/ ! |
D | socket.c | 76 struct sock *pn_find_sock_by_sa(struct net *net, const struct sockaddr_pn *spn) in pn_find_sock_by_sa() argument 81 u16 obj = pn_sockaddr_get_object(spn); in pn_find_sock_by_sa() 82 u8 res = spn->spn_resource; in pn_find_sock_by_sa() 171 struct sockaddr_pn *spn = (struct sockaddr_pn *)addr; in pn_socket_bind() local 181 if (spn->spn_family != AF_PHONET) in pn_socket_bind() 202 pn->resource = spn->spn_resource; in pn_socket_bind() 233 struct sockaddr_pn *spn = (struct sockaddr_pn *)addr; in pn_socket_connect() local 242 if (spn->spn_family != AF_PHONET) in pn_socket_connect() 262 pn->dobject = pn_sockaddr_get_object(spn); in pn_socket_connect() 263 pn->resource = pn_sockaddr_get_resource(spn); in pn_socket_connect()
|
/linux-2.6.39/include/scsi/ ! |
D | fc_encode.h | 45 struct fc_ns_rspn spn; member 168 hton24(ct->payload.spn.fr_fid.fp_fid, lport->port_id); in fc_ct_fill() 169 strncpy(ct->payload.spn.fr_name, in fc_ct_fill() 171 ct->payload.spn.fr_name_len = len; in fc_ct_fill()
|
/linux-2.6.39/drivers/scsi/bfa/ ! |
D | bfa_fc.h | 1365 u8 spn[256]; /* symbolic port name */ member 1421 char spn[255]; /* Symbolic Port Name */ member
|
D | bfa_fcbuild.c | 1216 strncpy((char *)rspnid->spn, (char *)name, rspnid->spn_len); in fc_rspnid_build()
|