Searched refs:total (Results 1 - 16 of 16) sorted by relevance

/net/rds/
H A Dtransport.c115 unsigned int total = 0; local
130 total += part;
135 return total;
H A Dinfo.c170 int total; local
222 total = lens.nr * lens.each;
226 if (total > len) {
227 len = total;
230 len = total;
H A Daf_rds.c472 unsigned int total = 0; local
483 total++;
484 if (total <= len)
494 lens->nr = total;
H A Dconnection.c381 unsigned int total = 0; local
401 total++;
402 if (total <= len)
413 lens->nr = total;
/net/atm/
H A Daddr.c138 int total = 0, error; local
147 total += sizeof(struct sockaddr_atmsvc);
148 tmp_buf = tmp_bufp = kmalloc(total, GFP_ATOMIC);
156 error = total > size ? -E2BIG : total;
157 if (copy_to_user(buf, tmp_buf, total < size ? total : size))
/net/wimax/
H A Dstack.c428 unsigned int cnt, total; local
430 for (total = cnt = 0; cnt < addr_len; cnt++)
431 total += scnprintf(addr_str + total, addr_str_size - total,
434 return total;
/net/core/
H A Ddev_ioctl.c73 int total; local
90 total = 0;
98 done = gifconf_list[i](dev, pos + total,
99 len - total);
102 total += done;
110 ifc.ifc_len = total;
/net/ipv4/
H A Dinetpeer.c46 * also be removed if the pool is overloaded i.e. if the total amount of
90 bp->total = 0;
418 base->total--;
431 if (base->total >= inet_peer_threshold)
436 base->total / inet_peer_threshold * HZ;
521 base->total++;
598 base->total = 0;
/net/wireless/
H A Dutil.c1218 int total = 1; local
1327 total++;
1331 if (total == 1 && !radar_detect)
1341 if (total > c->max_interfaces)
/net/irda/
H A Daf_irda.c2266 int offset, total; local
2302 /* Write total list length back to client */
2311 total = offset + (list.len * sizeof(struct irda_device_info));
2312 if (total > len)
2313 total = len;
2314 if (copy_to_user(optval+offset, discoveries, total - offset))
2317 /* Write total number of bytes used back to client */
2318 if (put_user(total, optlen))
/net/xfrm/
H A Dxfrm_policy.c455 static void xfrm_byidx_resize(struct net *net, int total) argument
480 static inline int xfrm_bydst_should_resize(struct net *net, int dir, int *total) argument
485 if (total)
486 *total += cnt;
495 static inline int xfrm_byidx_should_resize(struct net *net, int total) argument
500 total > hmask)
525 int dir, total; local
529 total = 0;
531 if (xfrm_bydst_should_resize(net, dir, &total))
534 if (xfrm_byidx_should_resize(net, total))
[all...]
/net/batman-adv/
H A Dtranslation-table.c1387 uint16_t total = 0, total_one; local
1428 total ^= total_one;
1433 return total;
1439 uint16_t total = 0, total_one; local
1460 total ^= total_one;
1465 return total;
/net/bridge/netfilter/
H A Debtables.c870 k = 0; /* holds the total nr. of entries, should equal
1845 u32 buf_kern_len; /* total size of kernel buffer */
2023 unsigned int *total,
2033 if (*total < sizeof(struct ebt_entries))
2037 *total -= sizeof(struct ebt_entries);
2040 if (*total < sizeof(*entry) || entry->next_offset < sizeof(*entry))
2103 BUG_ON(*total < startoff);
2104 *total -= startoff;
2022 size_entry_mwt(struct ebt_entry *entry, const unsigned char *base, unsigned int *total, struct ebt_entries_buf_state *state) argument
/net/mac80211/
H A Dtrace.h464 __field(unsigned int, total)
471 __entry->total = *total_flags;
476 LOCAL_PR_FMT " changed:%#x total:%#x",
477 LOCAL_PR_ARG, __entry->changed, __entry->total
H A Dtx.c323 int total = 0, purged = 0; local
343 total += skb_queue_len(&ps->bc_buf);
355 total += skb_queue_len(&sta->ps_tx_buf[ac]);
364 local->total_ps_buffered = total;
/net/tipc/
H A Dlink.c1035 * inclusive total message length. Very time critical.
1062 * inclusive total message length.
1096 * except for total message length.
1179 * inclusive total message length.
2400 * The buffer is complete, inclusive total message length.
2821 * percent - convert count to a percentage of total (rounding up or down)
2823 static u32 percent(u32 count, u32 total) argument
2825 return (count * 100 + (total / 2)) / total;

Completed in 290 milliseconds