Home
last modified time | relevance | path

Searched refs:sbavail (Results 1 – 24 of 24) sorted by relevance

/freebsd/sys/netinet/
H A Daccf_dns.c105 if (sbavail(sb) < 2) in skippacket()
112 q.len = sbavail(sb); in skippacket()
H A Daccf_http.c160 cc = sbavail(&so->so_rcv) - 1; in sohashttpget()
207 cc = sbavail(&so->so_rcv); in soparsehttpvers()
295 ccleft = sbavail(&so->so_rcv); in soishttpconnected()
H A Daccf_tls.c90 avail = sbavail(sb); in so_hastls()
H A Dtcp_output.c396 len = ((int32_t)min(sbavail(&so->so_snd), sendwin) - in tcp_default_output()
406 len = ((int32_t)min(sbavail(&so->so_snd), tp->snd_wnd) - in tcp_default_output()
498 (off < (int) sbavail(&so->so_snd)) && in tcp_default_output()
613 (uint32_t)len + (uint32_t)off >= sbavail(&so->so_snd) && in tcp_default_output()
747 if (sbavail(&so->so_snd) && !tcp_timer_active(tp, TT_REXMT) && in tcp_default_output()
946 sbavail(&so->so_snd)) { in tcp_default_output()
1575 ulmin(sbavail(&so->so_snd) - off, sendwin); in tcp_default_output()
1598 } else if (len == 0 && sbavail(&so->so_snd) && in tcp_default_output()
H A Dtcp_input.c1878 if (sbavail(&so->so_snd) == 0) in tcp_do_segment()
1894 (sbavail(&so->so_snd) >= in tcp_do_segment()
2768 avail = sbavail(&so->so_snd); in tcp_do_segment()
2952 acked == sbavail(&so->so_snd)) || in tcp_do_segment()
2953 acked > sbavail(&so->so_snd)) in tcp_do_segment()
2986 if (acked > sbavail(&so->so_snd)) { in tcp_do_segment()
2987 if (tp->snd_wnd >= sbavail(&so->so_snd)) in tcp_do_segment()
2988 tp->snd_wnd -= sbavail(&so->so_snd); in tcp_do_segment()
2992 (int)sbavail(&so->so_snd)); in tcp_do_segment()
3113 if (th->th_urp + sbavail(&so->so_rcv) > sb_max) { in tcp_do_segment()
[all …]
H A Dsctp_os_bsd.h369 #define SCTP_SBAVAIL(sb) sbavail(sb)
H A Dtcp_subr.c1067 if ((!TCPS_HAVEESTABLISHED(tp->t_state) || sbavail(&so->so_snd) || in tcp_default_fb_init()
1077 (int32_t)sbavail(&so->so_snd)) in tcp_default_fb_init()
H A Dtcp_usrreq.c1185 tp->snd_up = tp->snd_una + sbavail(&so->so_snd); in tcp_usr_send()
/freebsd/sys/ofed/drivers/infiniband/ulp/sdp/
H A Dsdp_main.c1262 if (sbavail(sb)) in sdp_sorecv()
1270 if (sbavail(sb) == 0 && in sdp_sorecv()
1281 if (sbavail(sb)) in sdp_sorecv()
1293 if (sbavail(sb)) in sdp_sorecv()
1300 if (sbavail(sb) && !(flags & MSG_WAITALL) && in sdp_sorecv()
1303 sbavail(sb) >= sb->sb_lowat || in sdp_sorecv()
1304 sbavail(sb) >= uio->uio_resid || in sdp_sorecv()
1305 sbavail(sb) >= sb->sb_hiwat) ) { in sdp_sorecv()
1311 (sbavail(sb) >= uio->uio_resid || sbavail(sb) >= sb->sb_lowat)) in sdp_sorecv()
1325 KASSERT(sbavail(sb), ("%s: sockbuf empty", __func__)); in sdp_sorecv()
[all …]
/freebsd/sys/kern/
H A Duipc_socket.c2121 m, sbavail(&so->so_rcv)));
2641 if (sbavail(sb) > 0)
2653 if (sbavail(sb) > 0)
2660 if (sbavail(sb) == 0 &&
2670 sbavail(sb) >= sb->sb_lowat ||
2671 sbavail(sb) >= uio->uio_resid ||
2672 sbavail(sb) >= sb->sb_hiwat) ) {
2678 (sbavail(sb) >= uio->uio_resid || sbavail(sb) >= sb->sb_hiwat))
2700 len = min(uio->uio_resid, sbavail(sb));
2836 KASSERT(sbavail(&so->so_rcv) == 0,
[all …]
H A Dsys_socket.c204 *(int *)data = sbavail(&so->so_rcv) - so->so_rcv.sb_ctl; in soo_ioctl()
214 *(int *)data = sbavail(&so->so_snd); in soo_ioctl()
316 if ((sb->sb_state & SBS_CANTRCVMORE) == 0 || sbavail(sb)) in soo_stat()
318 ub->st_size = sbavail(sb) - sb->sb_ctl; in soo_stat()
H A Duipc_usrreq.c912 sbcc = sbavail(&so->so_rcv); in uipc_rcvd()
1027 sbcc = sbavail(&so2->so_rcv); in uipc_send()
/freebsd/sys/netinet/tcp_stacks/
H A Dbbr.c8175 sbavail(&so->so_snd) && in bbr_process_data()
8615 sbavail(&so->so_snd) && in bbr_fastack()
8707 if (sbavail(&so->so_snd)) { in bbr_fastack()
12025 (sbavail(sb))) { in bbr_output_wtime()
12288 avail = sbavail(sb); in bbr_output_wtime()
12387 if (sbavail(sb) == 0) in bbr_output_wtime()
13083 if ((sb_offset > sbavail(sb)) || ((len + sb_offset) > sbavail(sb))) { in bbr_output_wtime()
13107 len = sbavail(sb); in bbr_output_wtime()
13122 if (len > sbavail(sb)) in bbr_output_wtime()
13123 len = sbavail(sb); in bbr_output_wtime()
[all …]
H A Drack.c13508 if (sbavail(&so->so_snd)) { in rack_fastack()
14077 if (sbavail(&so->so_snd)) { in rack_do_established()
14178 if (sbavail(&so->so_snd)) { in rack_do_close_wait()
14334 if (sbavail(&so->so_snd)) { in rack_do_fin_wait_1()
14441 if (sbavail(&so->so_snd)) { in rack_do_closing()
14549 if (sbavail(&so->so_snd)) { in rack_do_lastack()
14659 if (sbavail(&so->so_snd)) { in rack_do_fin_wait_2()
21296 avail = sbavail(sb); in rack_output()
22034 sbavail(sb) && in rack_output()
22045 if ((sbavail(sb) == 0) && in rack_output()
[all …]
/freebsd/sys/sys/
H A Dsockbuf.h255 sbavail(struct sockbuf *sb) in sbavail() function
H A Dsocketvar.h326 (sbavail(&(so)->so_rcv) >= (so)->so_rcv.sb_lowat || \
/freebsd/sys/dev/cxgbe/tom/
H A Dt4_ddp.c2360 KASSERT(toep->ddp.active_count == 0 || sbavail(sb) == 0, in aio_ddp_requeue()
2365 if (so->so_error && sbavail(sb) == 0) { in aio_ddp_requeue()
2396 if (sb->sb_state & SBS_CANTRCVMORE && sbavail(sb) == 0) { in aio_ddp_requeue()
2408 if (sbavail(sb) == 0 && (toep->ddp.flags & DDP_ON) == 0) { in aio_ddp_requeue()
2451 if (so->so_error && sbavail(sb) == 0) { in aio_ddp_requeue()
2470 if (sb->sb_state & SBS_CANTRCVMORE && sbavail(sb) == 0) { in aio_ddp_requeue()
2595 if (sbavail(sb) != 0) in aio_ddp_requeue()
H A Dt4_cpl_io.c1787 sbavail(sb) != 0) { in do_rx_data()
/freebsd/sys/dev/iscsi/
H A Dicl_soft.c754 available = sbavail(&so->so_rcv); in icl_receive_thread()
759 available = sbavail(&so->so_rcv); in icl_receive_thread()
/freebsd/sys/netgraph/bluetooth/socket/
H A Dng_btsocket_sco.c904 if (sbavail(&pcb->so->so_snd) > 0) in ng_btsocket_sco_default_msg_input()
1728 sbavail(&pcb->so->so_snd) > 0) { in ng_btsocket_sco_send2()
H A Dng_btsocket_l2cap.c1196 if (sbavail(&pcb->so->so_snd) > 0) { in ng_btsocket_l2cap_process_l2ca_write_rsp()
2637 if (sbavail(&pcb->so->so_snd) == 0) in ng_btsocket_l2cap_send2()
H A Dng_btsocket_rfcomm.c3252 length = min(pcb->mtu, sbavail(&pcb->so->so_snd)); in ng_btsocket_rfcomm_pcb_send()
/freebsd/sys/cam/ctl/
H A Dctl_ha.c222 while (sbavail(&so->so_rcv) < next || softc->ha_disconnect) { in ctl_ha_rx_thread()
/freebsd/sys/dev/nvmf/
H A Dnvmf_tcp.c1113 avail = sbavail(&so->so_rcv); in nvmf_tcp_receive()