Searched refs:total (Results 1 - 18 of 18) 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.c387 unsigned int total = 0; local
407 total++;
408 if (total <= len)
419 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.c451 unsigned int cnt, total; local
453 for (total = cnt = 0; cnt < addr_len; cnt++)
454 total += scnprintf(addr_str + total, addr_str_size - total,
457 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.c33 * also be removed if the pool is overloaded i.e. if the total amount of
75 bp->total = 0;
378 base->total--;
391 if (base->total >= inet_peer_threshold)
396 base->total / inet_peer_threshold * HZ;
475 base->total++;
552 base->total = 0;
/net/tipc/
H A Dserver.c582 int total = 0; local
586 for (id = 0; total < s->idr_in_use; id++) {
589 total++;
H A Dlink.c2194 * percent - convert count to a percentage of total (rounding up or down)
2196 static u32 percent(u32 count, u32 total) argument
2198 return (count * 100 + (total / 2)) / total;
/net/irda/
H A Daf_irda.c2257 int offset, total; local
2293 /* Write total list length back to client */
2302 total = offset + (list.len * sizeof(struct irda_device_info));
2303 if (total > len)
2304 total = len;
2305 if (copy_to_user(optval+offset, discoveries, total - offset))
2308 /* Write total number of bytes used back to client */
2309 if (put_user(total, optlen))
/net/xfrm/
H A Dxfrm_policy.c489 static void xfrm_byidx_resize(struct net *net, int total) argument
514 static inline int xfrm_bydst_should_resize(struct net *net, int dir, int *total) argument
519 if (total)
520 *total += cnt;
529 static inline int xfrm_byidx_should_resize(struct net *net, int total) argument
534 total > hmask)
559 int dir, total; local
563 total = 0;
565 if (xfrm_bydst_should_resize(net, dir, &total))
568 if (xfrm_byidx_should_resize(net, total))
[all...]
/net/bridge/netfilter/
H A Debtables.c868 k = 0; /* holds the total nr. of entries, should equal
1853 u32 buf_kern_len; /* total size of kernel buffer */
2031 unsigned int *total,
2041 if (*total < sizeof(struct ebt_entries))
2045 *total -= sizeof(struct ebt_entries);
2048 if (*total < sizeof(*entry) || entry->next_offset < sizeof(*entry))
2111 BUG_ON(*total < startoff);
2112 *total -= startoff;
2030 size_entry_mwt(struct ebt_entry *entry, const unsigned char *base, unsigned int *total, struct ebt_entries_buf_state *state) argument
/net/wireless/
H A Dutil.c1399 int total = 1; local
1489 total++;
1492 if (total == 1 && !radar_detect)
/net/netfilter/
H A Dnf_tables_api.c885 struct nft_stats *cpu_stats, total; local
891 memset(&total, 0, sizeof(total));
899 total.pkts += pkts;
900 total.bytes += bytes;
906 if (nla_put_be64(skb, NFTA_COUNTER_PACKETS, cpu_to_be64(total.pkts)) ||
907 nla_put_be64(skb, NFTA_COUNTER_BYTES, cpu_to_be64(total.bytes)))
2116 * given policy. The total memory use might not be known if no size is
/net/mac80211/
H A Dtrace.h471 __field(unsigned int, total)
478 __entry->total = *total_flags;
483 LOCAL_PR_FMT " changed:%#x total:%#x",
484 LOCAL_PR_ARG, __entry->changed, __entry->total
H A Dtx.c341 int total = 0, purged = 0; local
361 total += skb_queue_len(&ps->bc_buf);
373 total += skb_queue_len(&sta->ps_tx_buf[ac]);
382 local->total_ps_buffered = total;
H A Dutil.c2424 * @mpdu_len: total MPDU length (including FCS)
3003 int total = 1; local
3058 total++;
3061 if (total == 1 && !radar_detect)

Completed in 329 milliseconds