Home
last modified time | relevance | path

Searched refs:proto (Results 1 – 25 of 171) sorted by relevance

1234567

/linux-2.4.37.9/net/802/
Dp8022.c40 struct datalink_proto *proto; in find_8022_client() local
42 for (proto = p8022_list; in find_8022_client()
43 ((proto != NULL) && (*(proto->type) != type)); in find_8022_client()
44 proto = proto->next) in find_8022_client()
47 return proto; in find_8022_client()
52 struct datalink_proto *proto; in p8022_rcv() local
54 proto = find_8022_client(*(skb->h.raw)); in p8022_rcv()
55 if (proto != NULL) in p8022_rcv()
60 return proto->rcvfunc(skb, dev, pt); in p8022_rcv()
111 struct datalink_proto *proto; in register_8022_client() local
[all …]
Dpsnap.c32 struct datalink_proto *proto; in find_snap_client() local
34 for (proto = snap_list; proto != NULL && memcmp(proto->type, desc, 5) ; proto = proto->next); in find_snap_client()
35 return proto; in find_snap_client()
53 struct datalink_proto *proto; in snap_rcv() local
55 proto = find_snap_client(skb->h.raw); in snap_rcv()
56 if (proto != NULL) in snap_rcv()
68 return proto->rcvfunc(skb, dev, &psnap_packet_type); in snap_rcv()
115 struct datalink_proto *proto; in register_snap_client() local
120 proto = (struct datalink_proto *) kmalloc(sizeof(*proto), GFP_ATOMIC); in register_snap_client()
121 if (proto != NULL) in register_snap_client()
[all …]
Dp8023.c40 struct datalink_proto *proto; in make_8023_client() local
42 proto = (struct datalink_proto *) kmalloc(sizeof(*proto), GFP_ATOMIC); in make_8023_client()
43 if (proto != NULL) in make_8023_client()
45 proto->type_len = 0; in make_8023_client()
46 proto->header_length = 0; in make_8023_client()
47 proto->datalink_header = p8023_datalink_header; in make_8023_client()
48 proto->string_name = "802.3"; in make_8023_client()
50 return proto; in make_8023_client()
/linux-2.4.37.9/net/ethernet/
Dpe2.c21 struct datalink_proto *proto; in make_EII_client() local
23 proto = (struct datalink_proto *) kmalloc(sizeof(*proto), GFP_ATOMIC); in make_EII_client()
24 if (proto != NULL) { in make_EII_client()
25 proto->type_len = 0; in make_EII_client()
26 proto->header_length = 0; in make_EII_client()
27 proto->datalink_header = pEII_datalink_header; in make_EII_client()
28 proto->string_name = "EtherII"; in make_EII_client()
31 return proto; in make_EII_client()
/linux-2.4.37.9/net/bluetooth/
Daf_bluetooth.c63 int bluez_sock_register(int proto, struct net_proto_family *ops) in bluez_sock_register() argument
65 if (proto < 0 || proto >= BLUEZ_MAX_PROTO) in bluez_sock_register()
68 if (bluez_proto[proto]) in bluez_sock_register()
71 bluez_proto[proto] = ops; in bluez_sock_register()
75 int bluez_sock_unregister(int proto) in bluez_sock_unregister() argument
77 if (proto < 0 || proto >= BLUEZ_MAX_PROTO) in bluez_sock_unregister()
80 if (!bluez_proto[proto]) in bluez_sock_unregister()
83 bluez_proto[proto] = NULL; in bluez_sock_unregister()
87 static int bluez_sock_create(struct socket *sock, int proto) in bluez_sock_create() argument
89 if (proto < 0 || proto >= BLUEZ_MAX_PROTO) in bluez_sock_create()
[all …]
/linux-2.4.37.9/drivers/block/paride/
Dparide.c51 { pi->proto->write_regr(pi,cont,regr,val); in pi_write_regr()
56 { return pi->proto->read_regr(pi,cont,regr); in pi_read_regr()
61 { pi->proto->write_block(pi,buf,count); in pi_write_block()
66 { pi->proto->read_block(pi,buf,count); in pi_read_block()
141 pi->proto->connect(pi); in pi_connect()
146 { pi->proto->disconnect(pi); in pi_disconnect()
168 pi->proto->release_proto(pi); in pi_release()
179 if (pi->proto->test_proto) { in pi_test_proto()
181 j = pi->proto->test_proto(pi,scratch,verbose); in pi_test_proto()
201 pi->device,pi->proto->name,pi->port, in pi_test_proto()
[all …]
/linux-2.4.37.9/drivers/net/arcnet/
Darcnet.c246 void arcnet_unregister_proto(struct ArcProto *proto) in arcnet_unregister_proto() argument
250 if (arc_proto_default == proto) in arcnet_unregister_proto()
252 if (arc_bcast_proto == proto) in arcnet_unregister_proto()
256 if (arc_proto_map[count] == proto) in arcnet_unregister_proto()
480 struct ArcProto *proto; in arcnet_header() local
507 proto = arc_proto_map[proto_num]; in arcnet_header()
509 proto_num, proto->suffix); in arcnet_header()
510 if (proto == &arc_proto_null && arc_bcast_proto != proto) { in arcnet_header()
513 proto = arc_bcast_proto; in arcnet_header()
515 return proto->build_header(skb, dev, type, _daddr); in arcnet_header()
[all …]
/linux-2.4.37.9/drivers/net/
Dpppox.c41 static struct pppox_proto *proto[PX_MAX_PROTO+1]; variable
49 if (proto[proto_num]) in register_pppox_proto()
54 proto[proto_num] = pp; in register_pppox_proto()
61 proto[proto_num] = NULL; in unregister_pppox_proto()
108 if (proto[sk->protocol]->ioctl) in pppox_ioctl()
109 err = (*proto[sk->protocol]->ioctl)(sock, cmd, arg); in pppox_ioctl()
126 if (proto[protocol] == NULL) in pppox_create()
129 err = (*proto[protocol]->create)(sock); in pppox_create()
/linux-2.4.37.9/include/asm-mips/
Dchecksum.h129 unsigned short proto, in csum_tcpudp_nofold() argument
149 "r" ((ntohs(len)<<16)+proto*256), in csum_tcpudp_nofold()
151 "r" (((proto)<<16)+len), in csum_tcpudp_nofold()
165 unsigned short proto, in csum_tcpudp_magic() argument
168 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
184 unsigned short proto, in csum_ipv6_magic() argument
239 : "=r" (sum), "=r" (proto) in csum_ipv6_magic()
241 "0" (htonl(len)), "1" (htonl(proto)), "r" (sum)); in csum_ipv6_magic()
/linux-2.4.37.9/include/asm-mips64/
Dchecksum.h137 unsigned short proto, in csum_tcpudp_nofold() argument
152 "r" (((unsigned long)ntohs(len)<<16)+proto*256), in csum_tcpudp_nofold()
154 "r" (((unsigned long)(proto)<<16)+len), in csum_tcpudp_nofold()
168 unsigned short proto, in csum_tcpudp_magic() argument
171 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
187 unsigned short proto, in csum_ipv6_magic() argument
242 : "=&r" (sum), "=&r" (proto) in csum_ipv6_magic()
244 "0" (htonl(len)), "1" (htonl(proto)), "r" (sum)); in csum_ipv6_magic()
/linux-2.4.37.9/include/asm-arm/
Dchecksum.h99 unsigned int proto, unsigned int sum) in csum_tcpudp_nofold() argument
108 : "r" (sum), "r" (daddr), "r" (saddr), "r" (ntohs(len) << 16), "Ir" (proto << 8) in csum_tcpudp_nofold()
118 unsigned int proto, unsigned int sum) in csum_tcpudp_magic() argument
130 : "r" (sum), "r" (daddr), "r" (saddr), "r" (ntohs(len)), "Ir" (proto << 8) in csum_tcpudp_magic()
149 __u32 proto, unsigned int sum);
153 unsigned short proto, unsigned int sum) in csum_ipv6_magic() argument
156 htonl(proto), sum)); in csum_ipv6_magic()
/linux-2.4.37.9/net/ipv6/
Dip6_fw.c123 int proto = 0; in ip6_fw_accept_trans() local
136 proto = hdr->nexthdr; in ip6_fw_accept_trans()
138 switch (proto) { in ip6_fw_accept_trans()
173 proto = args->fl_u.fl_o.flow->proto; in ip6_fw_accept_trans()
175 if (proto == IPPROTO_ICMPV6) { in ip6_fw_accept_trans()
184 if (proto == rl->info.proto && in ip6_fw_accept_trans()
208 int proto; in ip6_fw_accept() local
214 proto = rl->info.proto; in ip6_fw_accept()
216 switch (proto) { in ip6_fw_accept()
302 rl->info.proto = msg->proto; in ip6_fw_msg_add()
/linux-2.4.37.9/include/asm-sh64/
Dchecksum.h182 unsigned short proto, in csum_tcpudp_nofold() argument
186 unsigned long len_proto = (ntohs(len)<<16)+proto*256; in csum_tcpudp_nofold()
188 unsigned long len_proto = (proto<<16)+len; in csum_tcpudp_nofold()
206 unsigned short proto,
218 unsigned short proto, in csum_tcpudp_magic() argument
225 x = csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
247 unsigned short proto, in csum_ipv6_magic() argument
276 "r" (htonl(len)), "r" (htonl(proto)), "0" (sum)); in csum_ipv6_magic()
/linux-2.4.37.9/include/asm-sh/
Dchecksum.h128 unsigned short proto, in csum_tcpudp_nofold() argument
132 unsigned long len_proto = (ntohs(len)<<16)+proto*256; in csum_tcpudp_nofold()
134 unsigned long len_proto = (proto<<16)+len; in csum_tcpudp_nofold()
155 unsigned short proto, in csum_tcpudp_magic() argument
158 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
175 unsigned short proto, in csum_ipv6_magic() argument
202 "r" (htonl(len)), "r" (htonl(proto)), "0" (sum) in csum_ipv6_magic()
/linux-2.4.37.9/include/asm-m68k/
Dchecksum.h92 unsigned short proto, unsigned int sum) in csum_tcpudp_nofold() argument
100 : "0" (daddr), "1" (saddr), "d" (len + proto), in csum_tcpudp_nofold()
107 unsigned short proto, unsigned int sum) in csum_tcpudp_magic() argument
109 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
126 __u32 len, unsigned short proto, unsigned int sum) in csum_ipv6_magic() argument
148 : "a" (saddr), "a" (daddr), "d" (len + proto), in csum_ipv6_magic()
/linux-2.4.37.9/net/ipv4/netfilter/
Dip_conntrack_standalone.c50 struct ip_conntrack_protocol *proto) in print_tuple() argument
57 len += proto->print_tuple(buffer + len, tuple); in print_tuple()
86 struct ip_conntrack_protocol *proto in print_conntrack() local
91 proto->name, in print_conntrack()
97 len += proto->print_conntrack(buffer + len, conntrack); in print_conntrack()
100 proto); in print_conntrack()
105 proto); in print_conntrack()
410 int ip_conntrack_protocol_register(struct ip_conntrack_protocol *proto) in ip_conntrack_protocol_register() argument
417 if (((struct ip_conntrack_protocol *)i)->proto in ip_conntrack_protocol_register()
418 == proto->proto) { in ip_conntrack_protocol_register()
[all …]
/linux-2.4.37.9/include/asm-parisc/
Dchecksum.h106 unsigned short proto, in csum_tcpudp_nofold() argument
115 : "r" (daddr), "r"(saddr), "r"((proto<<16)+len), "0"(sum)); in csum_tcpudp_nofold()
126 unsigned short proto, in csum_tcpudp_magic() argument
129 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
145 unsigned short proto, in csum_ipv6_magic() argument
202 : "0" (sum), "1" (saddr), "2" (daddr), "3" (len), "r" (proto) in csum_ipv6_magic()
/linux-2.4.37.9/drivers/isdn/
Disdn_ppp.c29 static int isdn_ppp_fill_rq(unsigned char *buf, int len, int proto, int slot);
32 struct sk_buff *skb, int proto);
36 struct ippp_struct *,struct ippp_struct *,int *proto);
38 struct sk_buff *skb,int proto);
39 static struct sk_buff *isdn_ppp_compress(struct sk_buff *skb_in,int *proto,
46 static void isdn_ppp_ccp_xmit_reset(struct ippp_struct *is, int proto,
693 isdn_ppp_fill_rq(unsigned char *buf, int len, int proto, int slot) in isdn_ppp_fill_rq() argument
718 nbuf[2] = proto >> 8; in isdn_ppp_fill_rq()
719 nbuf[3] = proto & 0xff; in isdn_ppp_fill_rq()
798 int proto; in isdn_ppp_write() local
[all …]
/linux-2.4.37.9/include/asm-i386/
Dchecksum.h118 unsigned short proto, in csum_tcpudp_nofold() argument
127 : "g" (daddr), "g"(saddr), "g"((ntohs(len)<<16)+proto*256), "0"(sum)); in csum_tcpudp_nofold()
138 unsigned short proto, in csum_tcpudp_magic() argument
141 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
158 unsigned short proto, in csum_ipv6_magic() argument
175 "r"(htonl(len)), "r"(htonl(proto)), "0"(sum)); in csum_ipv6_magic()
/linux-2.4.37.9/include/asm-sparc64/
Dchecksum.h140 unsigned short proto, in csum_tcpudp_nofold() argument
149 : "r" (daddr), "r" ((proto<<16)+len), "0" (sum), "1" (saddr) in csum_tcpudp_nofold()
161 unsigned short proto, in csum_tcpudp_magic() argument
164 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
172 unsigned short proto, in csum_ipv6_magic() argument
197 "r"(htonl(proto)), "r"(sum) in csum_ipv6_magic()
/linux-2.4.37.9/include/asm-x86_64/
Dchecksum.h89 unsigned short proto, unsigned int sum) in csum_tcpudp_nofold() argument
96 : "g" (daddr), "g" (saddr), "g" ((ntohs(len)<<16)+proto*256), "0" (sum)); in csum_tcpudp_nofold()
114 unsigned short len, unsigned short proto, unsigned int sum) in csum_tcpudp_magic() argument
116 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
181 __u32 len, unsigned short proto, unsigned int sum);
/linux-2.4.37.9/include/asm-sparc/
Dchecksum.h191 unsigned short proto, in csum_tcpudp_nofold() argument
199 : "r" (daddr), "r" ((proto<<16)+len), "0" (sum), in csum_tcpudp_nofold()
212 unsigned short proto, in csum_tcpudp_magic() argument
215 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
223 unsigned short proto, in csum_ipv6_magic() argument
248 "r"(htonl(len)), "r"(htonl(proto)), "r"(sum) in csum_ipv6_magic()
/linux-2.4.37.9/drivers/net/wan/
Dhdlc_generic.c98 unsigned int proto; in hdlc_ioctl() local
110 proto = ifr->ifr_settings.type; in hdlc_ioctl()
114 proto = hdlc->proto; in hdlc_ioctl()
117 switch(proto) { in hdlc_ioctl()
144 hdlc->proto = -1; in register_hdlc_device()
/linux-2.4.37.9/include/asm-cris/
Dchecksum.h55 unsigned short proto, unsigned int sum) in csum_tcpudp_nofold() argument
66 : "0" (sum), "r" (daddr), "r" (saddr), "r" ((ntohs(len) << 16) + (proto << 8))); in csum_tcpudp_nofold()
95 unsigned short proto, in csum_tcpudp_magic() argument
98 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
/linux-2.4.37.9/arch/ia64/lib/
Dchecksum.c38 unsigned short proto, in csum_tcpudp_magic() argument
43 ((unsigned long) proto << 8)); in csum_tcpudp_magic()
49 unsigned short proto, in csum_tcpudp_nofold() argument
56 ((unsigned long) proto << 8)); in csum_tcpudp_nofold()

1234567