Searched defs:size (Results 1 - 25 of 168) sorted by relevance

1234567

/net/batman-adv/
H A Dhash.c28 for (i = 0; i < hash->size; i++) {
43 struct batadv_hashtable *batadv_hash_new(uint32_t size) argument
51 hash->table = kmalloc(sizeof(*hash->table) * size, GFP_ATOMIC);
55 hash->list_locks = kmalloc(sizeof(*hash->list_locks) * size,
60 hash->size = size;
76 for (i = 0; i < hash->size; i++)
H A Doriginator.h45 /* hashfunction to choose an entry in a hash table of given size
48 static inline uint32_t batadv_choose_orig(const void *data, uint32_t size) argument
64 return hash % size;
78 index = batadv_choose_orig(data, hash->size);
H A Dhash.h33 * argument and the size the second
41 uint32_t size; /* size of hashtable */ member in struct:batadv_hashtable
45 struct batadv_hashtable *batadv_hash_new(uint32_t size);
67 for (i = 0; i < hash->size; i++) {
88 * @size: number of bytes to be hashed
93 uint32_t size)
98 for (i = 0; i < size; i++) {
132 index = choose(data, hash->size);
172 index = choose(data, hash->size);
92 batadv_hash_bytes(uint32_t hash, const void *data, uint32_t size) argument
[all...]
/net/ceph/
H A Dsnapshot.c46 size_t size; local
48 size = sizeof (struct ceph_snap_context);
49 size += snap_count * sizeof (snapc->snaps[0]);
50 snapc = kzalloc(size, gfp_flags);
H A Dmsgpool.c36 int front_len, int size, bool blocking, const char *name)
41 pool->pool = mempool_create(size, msgpool_alloc, msgpool_free, pool);
60 dout("msgpool_get %s need front %d, pool size is %d\n",
35 ceph_msgpool_init(struct ceph_msgpool *pool, int type, int front_len, int size, bool blocking, const char *name) argument
/net/ipv6/
H A Dxfrm6_mode_beet.c83 int size = sizeof(struct ipv6hdr); local
86 err = skb_cow_head(skb, size + skb->mac_len);
90 __skb_push(skb, size);
97 ip6h->payload_len = htons(skb->len - size);
/net/netfilter/
H A Dnfnetlink_queue_ct.c17 struct nf_conn *nfqnl_ct_get(struct sk_buff *entskb, size_t *size, argument
31 *size += nfq_ct->build_size(ct);
H A Dnf_conntrack_labels.c71 unsigned int size, i; local
78 size = labels->words * sizeof(long);
79 if (size < (words32 * sizeof(u32)))
80 words32 = size / sizeof(u32);
88 size /= sizeof(u32);
89 for (i = words32; i < size; i++) /* pad */
/net/sctp/
H A Dssnmap.c47 /* Storage size needed for map includes 2 headers and then the
63 int size; local
65 size = sctp_ssnmap_size(in, out);
66 if (size <= KMALLOC_MAX_SIZE)
67 retval = kmalloc(size, gfp);
70 __get_free_pages(gfp, get_order(size));
82 if (size <= KMALLOC_MAX_SIZE)
85 free_pages((unsigned long)retval, get_order(size));
111 size_t size; local
113 size
120 int size; local
[all...]
H A Dtsnmap.c54 static int sctp_tsnmap_grow(struct sctp_tsnmap *map, u16 size);
230 /* If our gap is larger then the map size, just
235 /* If the gap is smaller than the map size,
363 static int sctp_tsnmap_grow(struct sctp_tsnmap *map, u16 size) argument
369 if (size > SCTP_TSN_MAP_SIZE)
372 inc = ALIGN((size - map->len), BITS_PER_LONG) + SCTP_TSN_MAP_INCREMENT;
/net/tipc/
H A Dcore.c57 * @size: message size (including TIPC header)
59 * Returns a new buffer with data pointers set to the specified size.
64 struct sk_buff *tipc_buf_acquire(u32 size) argument
67 unsigned int buf_size = (BUF_HEADROOM + size + 3) & ~3u;
72 skb_put(skb, size);
/net/wireless/
H A Dradiotap.c26 [IEEE80211_RADIOTAP_TSFT] = { .align = 8, .size = 8, },
27 [IEEE80211_RADIOTAP_FLAGS] = { .align = 1, .size = 1, },
28 [IEEE80211_RADIOTAP_RATE] = { .align = 1, .size = 1, },
29 [IEEE80211_RADIOTAP_CHANNEL] = { .align = 2, .size = 4, },
30 [IEEE80211_RADIOTAP_FHSS] = { .align = 2, .size = 2, },
31 [IEEE80211_RADIOTAP_DBM_ANTSIGNAL] = { .align = 1, .size = 1, },
32 [IEEE80211_RADIOTAP_DBM_ANTNOISE] = { .align = 1, .size = 1, },
33 [IEEE80211_RADIOTAP_LOCK_QUALITY] = { .align = 2, .size = 2, },
34 [IEEE80211_RADIOTAP_TX_ATTENUATION] = { .align = 2, .size = 2, },
35 [IEEE80211_RADIOTAP_DB_TX_ATTENUATION] = { .align = 2, .size
207 int pad, align, size, subns; local
[all...]
/net/atm/
H A Daddr.c133 size_t size, enum atm_addr_type_t atype)
156 error = total > size ? -E2BIG : total;
157 if (copy_to_user(buf, tmp_buf, total < size ? total : size))
132 atm_get_addr(struct atm_dev *dev, struct sockaddr_atmsvc __user * buf, size_t size, enum atm_addr_type_t atype) argument
/net/bluetooth/bnep/
H A Dnetdev.c57 int size; local
61 size = sizeof(*r) + (BNEP_MAX_MULTICAST_FILTERS + 1) * ETH_ALEN * 2;
62 skb = alloc_skb(size, GFP_ATOMIC);
/net/core/
H A Dgen_stats.c28 gnet_stats_copy(struct gnet_dump *d, int type, void *buf, int size) argument
30 if (nla_put(d->skb, type, size, buf))
H A Diovec.c40 int size, ct, err; local
56 size = m->msg_iovlen * sizeof(struct iovec);
57 if (copy_from_user(iov, (void __user __force *) m->msg_iov, size))
H A Dsysctl_net_core.c29 unsigned int orig_size, size; local
32 .data = &size,
33 .maxlen = sizeof(size),
43 size = orig_size = orig_sock_table ? orig_sock_table->mask + 1 : 0;
48 if (size) {
49 if (size > 1<<30) {
54 size = roundup_pow_of_two(size);
55 if (size != orig_size) {
57 vmalloc(RPS_SOCK_FLOW_TABLE_SIZE(size));
[all...]
/net/decnet/netfilter/
H A Ddn_rtmsg.c36 size_t size; local
42 size = NLMSG_ALIGN(rt_skb->len) +
44 skb = nlmsg_new(size, GFP_ATOMIC);
50 nlh = nlmsg_put(skb, 0, 0, 0, size, 0);
/net/sunrpc/
H A Dauth_null.c86 u32 size; local
94 size = ntohl(*p++);
95 if (size != 0) {
96 printk("RPC: bad verf size: %u\n", size);
/net/bridge/
H A Dbr_ioctl.c63 size_t size; local
65 /* Clamp size to PAGE_SIZE, test maxnum to avoid overflow */
69 size = maxnum * sizeof(struct __fdb_entry);
71 buf = kmalloc(size, GFP_USER);
/net/dccp/
H A Dprobe.c76 struct msghdr *msg, size_t size)
89 &inet->inet_daddr, ntohs(inet->inet_dport), size,
97 size);
203 MODULE_PARM_DESC(bufsize, "Log buffer size (default 64k)");
75 jdccp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t size) argument
/net/ieee802154/
H A Draw.c106 size_t size)
135 if (size > mtu) {
136 pr_debug("size = %Zu, mtu = %u\n", size, mtu);
143 skb = sock_alloc_send_skb(sk, hlen + tlen + size,
153 err = memcpy_fromiovec(skb_put(skb, size), msg->msg_iov, size);
167 return err ?: size;
105 raw_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t size) argument
/net/ipx/
H A Dipx_route.c178 size_t size; local
197 size = sizeof(struct ipxhdr) + len + ipx_offset;
199 skb = sock_alloc_send_skb(sk, size, noblock, &rc);
/net/rds/
H A Dtcp_recv.c63 size_t size)
71 if (size == 0)
86 to_copy = min(tmp.iov_len, size);
89 rdsdebug("ret %d size %zu skb %p skb_off %lu "
91 ret, size, skb, skb_off, skb->len,
102 size -= to_copy;
105 if (size == 0)
115 * bitmap. They must add up to the exact size of the congestion bitmap. We
62 rds_tcp_inc_copy_to_user(struct rds_incoming *inc, struct iovec *first_iov, size_t size) argument
/net/rxrpc/
H A Dar-connevent.c343 size_t size; local
355 size = sizeof(hdr) + sizeof(code);
392 kernel_sendmsg(local->socket, &msg, iov, 2, size);

Completed in 394 milliseconds

1234567