/net/batman-adv/ |
H A D | hash.c | 28 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 D | originator.h | 45 /* 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 D | hash.h | 33 * 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 D | snapshot.c | 46 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 D | msgpool.c | 36 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 D | xfrm6_mode_beet.c | 83 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 D | nfnetlink_queue_ct.c | 17 struct nf_conn *nfqnl_ct_get(struct sk_buff *entskb, size_t *size, argument 31 *size += nfq_ct->build_size(ct);
|
H A D | nf_conntrack_labels.c | 71 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 D | ssnmap.c | 47 /* 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 D | tsnmap.c | 54 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 D | core.c | 57 * @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 D | radiotap.c | 26 [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 D | addr.c | 133 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 D | netdev.c | 57 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 D | gen_stats.c | 28 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 D | iovec.c | 40 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 D | sysctl_net_core.c | 29 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 D | dn_rtmsg.c | 36 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 D | auth_null.c | 86 u32 size; local 94 size = ntohl(*p++); 95 if (size != 0) { 96 printk("RPC: bad verf size: %u\n", size);
|
/net/bridge/ |
H A D | br_ioctl.c | 63 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 D | probe.c | 76 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 D | raw.c | 106 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 D | ipx_route.c | 178 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 D | tcp_recv.c | 63 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 D | ar-connevent.c | 343 size_t size; local 355 size = sizeof(hdr) + sizeof(code); 392 kernel_sendmsg(local->socket, &msg, iov, 2, size);
|