Searched refs:proto (Results 1 - 25 of 1026) sorted by relevance

1234567891011>>

/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dproto.c15 #include "proto.h"
22 struct brcmf_proto *proto; local
26 proto = kzalloc(sizeof(*proto), GFP_ATOMIC);
27 if (!proto)
30 drvr->proto = proto;
39 bphy_err(drvr, "Unsupported proto type %d\n",
43 if (!proto->tx_queue_data || (proto
[all...]
H A Dproto.h61 return drvr->proto->hdrpull(drvr, do_fws, skb, ifp);
67 return drvr->proto->query_dcmd(drvr, ifidx, cmd, buf, len,fwerr);
73 return drvr->proto->set_dcmd(drvr, ifidx, cmd, buf, len, fwerr);
79 return drvr->proto->tx_queue_data(drvr, ifidx, skb);
85 return drvr->proto->txdata(drvr, ifidx, offset, skb);
91 drvr->proto->configure_addr_mode(drvr, ifidx, addr_mode);
96 drvr->proto->delete_peer(drvr, ifidx, peer);
101 drvr->proto->add_tdls_peer(drvr, ifidx, peer);
114 ifp->drvr->proto->rxreorder(ifp, skb);
120 if (!drvr->proto
[all...]
/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
H A Dbrcms_trace_events.h27 #define TRACE_EVENT(name, proto, ...) \
28 static inline void trace_ ## name(proto) {}
32 #define DEFINE_EVENT(evt_class, name, proto, ...) \
33 static inline void trace_ ## name(proto) {}
/linux-master/net/802/
H A Dp8022.c38 struct datalink_proto *proto; local
40 proto = kmalloc(sizeof(*proto), GFP_ATOMIC);
41 if (proto) {
42 proto->type[0] = type;
43 proto->header_length = 3;
44 proto->request = p8022_request;
45 proto->sap = llc_sap_open(type, func);
46 if (!proto->sap) {
47 kfree(proto);
54 unregister_8022_client(struct datalink_proto *proto) argument
[all...]
H A Dpsnap.c31 struct datalink_proto *proto = NULL, *p; local
35 proto = p;
39 return proto;
49 struct datalink_proto *proto; local
58 proto = find_snap_client(skb_transport_header(skb));
59 if (proto) {
63 rc = proto->rcvfunc(skb, dev, &snap_packet_type, orig_dev);
67 if (unlikely(!proto))
128 struct datalink_proto *proto = NULL; local
135 proto
152 unregister_snap_client(struct datalink_proto *proto) argument
[all...]
H A Dstp.c35 const struct stp_proto *proto; local
43 proto = rcu_dereference(garp_protos[eh->h_dest[5] -
45 if (proto &&
46 !ether_addr_equal(eh->h_dest, proto->group_address))
49 proto = rcu_dereference(stp_proto);
51 if (!proto)
54 proto->rcv(proto, skb, dev);
62 int stp_proto_register(const struct stp_proto *proto) argument
74 if (is_zero_ether_addr(proto
85 stp_proto_unregister(const struct stp_proto *proto) argument
[all...]
/linux-master/include/net/
H A Dproto_memory.h17 proto_memory_pressure(const struct proto *prot)
42 proto_memory_allocated(const struct proto *prot)
53 static inline void proto_memory_pcpu_drain(struct proto *proto) argument
55 int val = this_cpu_xchg(*proto->per_cpu_fw_alloc, 0);
58 atomic_long_add(val, proto->memory_allocated);
64 struct proto *proto = sk->sk_prot; local
66 val = this_cpu_add_return(*proto->per_cpu_fw_alloc, val);
69 proto_memory_pcpu_drain(proto);
75 struct proto *proto = sk->sk_prot; local
[all...]
H A Dstp.h14 int stp_proto_register(const struct stp_proto *proto);
15 void stp_proto_unregister(const struct stp_proto *proto);
H A Dpsnap.h15 void unregister_snap_client(struct datalink_proto *proto);
/linux-master/arch/microblaze/include/asm/
H A Dchecksum.h17 __u8 proto, __wsum sum)
26 "d" ((len + proto) << 8)
28 "d" (len + proto)
16 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, __u8 proto, __wsum sum) argument
/linux-master/include/linux/netfilter/ipset/
H A Dip_set_getport.h10 __be16 *port, u8 *proto);
14 __be16 *port, u8 *proto);
17 __be16 *port, u8 *proto)
23 static inline bool ip_set_proto_with_ports(u8 proto) argument
25 switch (proto) {
16 ip_set_get_ip6_port(const struct sk_buff *skb, bool src, __be16 *port, u8 *proto) argument
/linux-master/net/nfc/
H A Daf_nfc.c18 static int nfc_sock_create(struct net *net, struct socket *sock, int proto, argument
26 if (proto < 0 || proto >= NFC_SOCKPROTO_MAX)
30 if (proto_tab[proto] && try_module_get(proto_tab[proto]->owner)) {
31 rc = proto_tab[proto]->create(net, sock, proto_tab[proto], kern);
32 module_put(proto_tab[proto]->owner);
52 rc = proto_register(nfc_proto->proto, 0);
64 proto_unregister(nfc_proto->proto);
[all...]
/linux-master/include/trace/
H A Dbpf_probe.h45 #define __BPF_DECLARE_TRACE(call, proto, args) \
47 __bpf_trace_##call(void *__data, proto) \
53 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \
54 __BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args))
61 #define __DEFINE_EVENT(template, call, proto, args, size) \
66 typedef void (*btf_trace_##call)(void *__data, proto); \
82 #define __CHECK_WRITABLE_BUF_SIZE(call, proto, args, size) \
89 FIRST(proto); \
94 #define DEFINE_EVENT_WRITABLE(template, call, proto, args, size) \
95 __CHECK_WRITABLE_BUF_SIZE(call, PARAMS(proto), PARAM
[all...]
H A Ddefine_trace.h27 #define TRACE_EVENT(name, proto, args, tstruct, assign, print) \
28 DEFINE_TRACE(name, PARAMS(proto), PARAMS(args))
31 #define TRACE_EVENT_CONDITION(name, proto, args, cond, tstruct, assign, print) \
33 PARAMS(proto), \
40 #define TRACE_EVENT_FN(name, proto, args, tstruct, \
42 DEFINE_TRACE_FN(name, reg, unreg, PARAMS(proto), PARAMS(args))
45 #define TRACE_EVENT_FN_COND(name, proto, args, cond, tstruct, \
47 DEFINE_TRACE_FN(name, reg, unreg, PARAMS(proto), PARAMS(args))
50 #define TRACE_EVENT_NOP(name, proto, args, struct, assign, print)
53 #define DEFINE_EVENT_NOP(template, name, proto, arg
[all...]
/linux-master/Documentation/networking/mac80211_hwsim/
H A Dwpa_supplicant.conf7 proto=WPA2
/linux-master/include/linux/
H A Dppp_defs.h17 * @proto: PPP protocol
19 * Assumes proto is not compressed.
23 static inline bool ppp_proto_is_valid(u16 proto) argument
25 return !!((proto & 0x0101) == 0x0001);
H A Dtracepoint.h229 #define __DECLARE_TRACE_RCU(name, proto, args, cond) \
230 static inline void trace_##name##_rcuidle(proto) \
238 #define __DECLARE_TRACE_RCU(name, proto, args, cond)
252 #define __DECLARE_TRACE(name, proto, args, cond, data_proto) \
256 static inline void trace_##name(proto) \
267 __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args), \
303 #define DEFINE_TRACE_FN(_name, _reg, _unreg, proto, args) \
307 int __traceiter_##_name(void *__data, proto); \
308 void __probestub_##_name(void *__data, proto); \
321 int __traceiter_##_name(void *__data, proto) \
[all...]
/linux-master/drivers/s390/net/
H A Dqeth_l3.h33 enum qeth_prot_versions proto; member in struct:qeth_ipaddr
48 enum qeth_prot_versions proto)
52 addr->proto = proto;
60 if (a1->proto != a2->proto)
62 if (a1->proto == QETH_PROT_IPV6)
71 * so 'proto' and 'addr' match for sure.
82 if (a1->proto == QETH_PROT_IPV6)
89 if (addr->proto
46 qeth_l3_init_ipaddr(struct qeth_ipaddr *addr, enum qeth_ip_types type, enum qeth_prot_versions proto) argument
97 enum qeth_prot_versions proto; member in struct:qeth_ipato_entry
[all...]
/linux-master/tools/testing/selftests/net/
H A Dgro.sh10 proto="ipv4"
49 for proto in "${PROTOS[@]}"; do
51 echo "running test ${proto} ${test}" >&2
52 exit_code=$(run_test $proto $test)
54 failed_tests+=("${proto}_${test}")
84 proto="${OPTARG}"
103 run_test "${proto}" "${test}"
H A Dreuseport_addr_any.c34 static void build_rcv_fd(int family, int proto, int *rcv_fds, int count, argument
75 rcv_fds[i] = socket(family, proto, 0);
87 if (proto == SOCK_STREAM && listen(rcv_fds[i], 10))
89 else if (proto == SOCK_DCCP) {
101 static int connect_and_send(int family, int proto) argument
147 fd = socket(family, proto, 0);
151 if (proto == SOCK_DCCP &&
168 static int receive_once(int epfd, int proto) argument
178 if (proto == SOCK_STREAM || proto
194 test(int *rcv_fds, int count, int family, int proto, int fd) argument
221 run_one_test(int fam_send, int fam_rcv, int proto, const char *addr_str) argument
244 test_proto(int proto, const char *proto_str) argument
[all...]
/linux-master/drivers/net/wan/
H A Dhdlc.c17 * - proto->open(), close(), start(), stop() calls are serialized.
19 * - proto->start() and stop() are called with spin_lock_irq held.
63 BUG_ON(!hdlc->proto->netif_rx);
64 return hdlc->proto->netif_rx(skb);
71 if (hdlc->proto->xmit)
72 return hdlc->proto->xmit(skb, dev);
82 if (hdlc->proto->start)
83 hdlc->proto->start(dev);
90 if (hdlc->proto->stop)
91 hdlc->proto
201 struct hdlc_proto *proto = first_proto; local
272 attach_hdlc_protocol(struct net_device *dev, struct hdlc_proto *proto, size_t size) argument
323 register_hdlc_protocol(struct hdlc_proto *proto) argument
332 unregister_hdlc_protocol(struct hdlc_proto *proto) argument
[all...]
/linux-master/arch/csky/include/asm/
H A Dchecksum.h26 unsigned short len, unsigned short proto, __wsum sum)
37 "r"(proto + len),
39 "r"((proto + len) << 8),
25 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, unsigned short len, unsigned short proto, __wsum sum) argument
/linux-master/net/ipv4/
H A Dxfrm4_state.c15 .proto = IPPROTO_IPIP,
/linux-master/arch/nios2/include/asm/
H A Dchecksum.h41 __u32 len, __u8 proto,
55 : "r" (daddr), "r" ((len + proto) << 8),
64 __u32 len, __u8 proto,
67 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum));
40 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, __u8 proto, __wsum sum) argument
63 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, __u8 proto, __wsum sum) argument
/linux-master/include/uapi/linux/
H A Dif_arcnet.h60 __u8 proto; /* protocol ID field - varies */ member in struct:arc_rfc1201
71 __u8 proto; /* ARC_P_RFC1051_ARP/RFC1051_IP */ member in struct:arc_rfc1051
81 __u8 proto; /* Always ARC_P_ETHER */ member in struct:arc_eth_encap
88 __u8 proto; member in struct:arc_cap

Completed in 200 milliseconds

1234567891011>>