Home
last modified time | relevance | path

Searched refs:avail (Results 1 – 16 of 16) sorted by relevance

/net/rds/
Dstats.c120 unsigned int avail; in rds_stats_info() local
122 avail = len / sizeof(struct rds_info_counter); in rds_stats_info()
124 if (avail < ARRAY_SIZE(rds_stat_names)) { in rds_stats_info()
125 avail = 0; in rds_stats_info()
138 avail -= ARRAY_SIZE(rds_stat_names); in rds_stats_info()
142 lens->nr = rds_trans_stats_info_copy(iter, avail) + in rds_stats_info()
Dib_ring.c99 u32 ret = 0, avail; in rds_ib_ring_alloc() local
101 avail = ring->w_nr - __rds_ib_ring_used(ring); in rds_ib_ring_alloc()
104 ring->w_alloc_ptr, avail); in rds_ib_ring_alloc()
106 if (val && avail) { in rds_ib_ring_alloc()
107 ret = min(val, avail); in rds_ib_ring_alloc()
Dtransport.c145 unsigned int avail) in rds_trans_stats_info_copy() argument
161 part = trans->stats_info_copy(iter, avail); in rds_trans_stats_info_copy()
162 avail -= min(avail, part); in rds_trans_stats_info_copy()
Dtcp_stats.c52 unsigned int avail) in rds_tcp_stats_info_copy() argument
60 if (avail < ARRAY_SIZE(rds_tcp_stat_names)) in rds_tcp_stats_info_copy()
Dib_stats.c85 unsigned int avail) in rds_ib_stats_info_copy() argument
93 if (avail < ARRAY_SIZE(rds_ib_stat_names)) in rds_ib_stats_info_copy()
Dib_send.c359 unsigned int avail, posted, got = 0, advertise; in rds_ib_send_grab_credits() local
370 avail = IB_GET_SEND_CREDITS(oldval); in rds_ib_send_grab_credits()
373 wanted, avail, posted); in rds_ib_send_grab_credits()
376 if (avail && !posted) in rds_ib_send_grab_credits()
377 avail--; in rds_ib_send_grab_credits()
379 if (avail < wanted) { in rds_ib_send_grab_credits()
384 got = avail; in rds_ib_send_grab_credits()
Dtcp.h96 unsigned int avail);
Drds.h566 unsigned int avail);
1014 unsigned int avail);
Dib.h446 unsigned int avail);
/net/rxrpc/
Dconn_client.c602 unsigned long avail, mask; in rxrpc_activate_channels_locked() local
611 avail = bundle->avail_chans & mask; in rxrpc_activate_channels_locked()
612 if (!avail) in rxrpc_activate_channels_locked()
614 channel = __ffs(avail); in rxrpc_activate_channels_locked()
Doutput.c139 unsigned long avail = call->rtt_avail; in rxrpc_begin_rtt_probe() local
142 if (!(avail & RXRPC_CALL_RTT_AVAIL_MASK)) in rxrpc_begin_rtt_probe()
145 rtt_slot = __ffs(avail & RXRPC_CALL_RTT_AVAIL_MASK); in rxrpc_begin_rtt_probe()
Dinput.c629 unsigned long avail; in rxrpc_complete_rtt_probe() local
634 avail = READ_ONCE(call->rtt_avail); in rxrpc_complete_rtt_probe()
638 if (!test_bit(i + RXRPC_CALL_RTT_PEND_SHIFT, &avail)) in rxrpc_complete_rtt_probe()
/net/tipc/
Dlink.c902 int avail[5] = {0,}; in link_prepare_wakeup() local
908 avail[imp] = l->backlog[imp].limit - l->backlog[imp].len; in link_prepare_wakeup()
912 if (avail[imp] <= 0) in link_prepare_wakeup()
914 avail[imp]--; in link_prepare_wakeup()
/net/ipv4/
Dtcp.c484 int avail = READ_ONCE(tp->rcv_nxt) - READ_ONCE(tp->copied_seq); in tcp_stream_is_readable() local
486 if (avail > 0) { in tcp_stream_is_readable()
487 if (avail >= target) in tcp_stream_is_readable()
Dtcp_input.c4990 int avail = tp->rcv_nxt - tp->copied_seq; in tcp_data_ready() local
4992 if (avail < sk->sk_rcvlowat && !tcp_rmem_pressure(sk) && in tcp_data_ready()
/net/packet/
Daf_packet.c1248 int avail = rcvbuf - atomic_read(&sk->sk_rmem_alloc) in __packet_rcv_has_room() local
1251 if (avail > (rcvbuf >> ROOM_POW_OFF)) in __packet_rcv_has_room()
1253 else if (avail > 0) in __packet_rcv_has_room()