Home
last modified time | relevance | path

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

/f-stack/freebsd/netinet/
H A Daccf_dns.c107 if (sbavail(sb) < 2) in skippacket()
114 q.len = sbavail(sb); in skippacket()
H A Daccf_http.c162 cc = sbavail(&so->so_rcv) - 1; in sohashttpget()
209 cc = sbavail(&so->so_rcv); in soparsehttpvers()
297 ccleft = sbavail(&so->so_rcv); in soishttpconnected()
H A Dtcp_output.c403 len = ((int32_t)min(sbavail(&so->so_snd), sendwin) - in tcp_output()
413 len = ((int32_t)min(sbavail(&so->so_snd), tp->snd_wnd) - in tcp_output()
499 (off < (int) sbavail(&so->so_snd))) { in tcp_output()
616 (uint32_t)len + (uint32_t)off >= sbavail(&so->so_snd) && in tcp_output()
751 if (sbavail(&so->so_snd) && !tcp_timer_active(tp, TT_REXMT) && in tcp_output()
941 sbavail(&so->so_snd)) { in tcp_output()
1541 ulmin(sbavail(&so->so_snd) - off, sendwin); in tcp_output()
1564 } else if (len == 0 && sbavail(&so->so_snd) && in tcp_output()
H A Dtcp_input.c1868 if (sbavail(&so->so_snd)) in tcp_do_segment()
2740 avail = sbavail(&so->so_snd) - in tcp_do_segment()
2909 if (acked > sbavail(&so->so_snd)) { in tcp_do_segment()
2910 if (tp->snd_wnd >= sbavail(&so->so_snd)) in tcp_do_segment()
2911 tp->snd_wnd -= sbavail(&so->so_snd); in tcp_do_segment()
2915 (int)sbavail(&so->so_snd)); in tcp_do_segment()
3040 if (th->th_urp + sbavail(&so->so_rcv) > sb_max) { in tcp_do_segment()
3062 so->so_oobmark = sbavail(&so->so_rcv) + in tcp_do_segment()
H A Dtcp_subr.c723 if ((!TCPS_HAVEESTABLISHED(tp->t_state) || sbavail(&so->so_snd) || in tcp_default_fb_init()
733 (int32_t)sbavail(&so->so_snd)) in tcp_default_fb_init()
H A Dtcp_usrreq.c1319 tp->snd_up = tp->snd_una + sbavail(&so->so_snd); in tcp_usr_send()
/f-stack/freebsd/kern/
H A Duipc_socket.c1957 m, sbavail(&so->so_rcv)));
2464 if (sbavail(sb) > 0)
2476 if (sbavail(sb) > 0)
2483 if (sbavail(sb) == 0 &&
2493 sbavail(sb) >= sb->sb_lowat ||
2494 sbavail(sb) >= uio->uio_resid ||
2495 sbavail(sb) >= sb->sb_hiwat) ) {
2501 (sbavail(sb) >= uio->uio_resid || sbavail(sb) >= sb->sb_hiwat))
2523 len = min(uio->uio_resid, sbavail(sb));
2660 KASSERT(sbavail(&so->so_rcv) == 0,
[all …]
H A Dsys_socket.c217 *(int *)data = sbavail(&so->so_rcv); in soo_ioctl()
226 *(int *)data = sbavail(&so->so_snd); in soo_ioctl()
330 if ((sb->sb_state & SBS_CANTRCVMORE) == 0 || sbavail(sb)) in soo_stat()
332 ub->st_size = sbavail(sb) - sb->sb_ctl; in soo_stat()
H A Duipc_usrreq.c971 sbcc = sbavail(&so->so_rcv); in uipc_rcvd()
1139 sbcc = sbavail(&so2->so_rcv); in uipc_send()
/f-stack/freebsd/netinet/tcp_stacks/
H A Dbbr.c8825 if (sbavail(&so->so_snd)) { in bbr_fastack()
9375 if (sbavail(&so->so_snd)) { in bbr_do_established()
9471 if (sbavail(&so->so_snd)) { in bbr_do_close_wait()
12187 (sbavail(sb))) { in bbr_output_wtime()
12447 avail = sbavail(sb); in bbr_output_wtime()
12546 if (sbavail(sb) == 0) in bbr_output_wtime()
13247 if ((sb_offset > sbavail(sb)) || ((len + sb_offset) > sbavail(sb))) { in bbr_output_wtime()
13271 len = sbavail(sb); in bbr_output_wtime()
13287 if (len > sbavail(sb)) in bbr_output_wtime()
13288 len = sbavail(sb); in bbr_output_wtime()
[all …]
H A Drack.c9151 if (sbavail(&so->so_snd)) { in rack_fastack()
9677 if (sbavail(&so->so_snd)) { in rack_do_established()
9772 if (sbavail(&so->so_snd)) { in rack_do_close_wait()
9923 if (sbavail(&so->so_snd)) { in rack_do_fin_wait_1()
10032 if (sbavail(&so->so_snd)) { in rack_do_closing()
10141 if (sbavail(&so->so_snd)) { in rack_do_lastack()
12105 sbavail(sb)) { in rack_output()
12309 avail = sbavail(sb); in rack_output()
12946 sbavail(sb) && in rack_output()
12956 if ((sbavail(sb) == 0) && in rack_output()
[all …]
/f-stack/tools/compat/include/sys/
H A Dsockbuf.h199 sbavail(struct sockbuf *sb) in sbavail() function
H A Dsocketvar.h272 (sbavail(&(so)->so_rcv) >= (so)->so_rcv.sb_lowat || (so)->so_error)
/f-stack/freebsd/sys/
H A Dsockbuf.h199 sbavail(struct sockbuf *sb) in sbavail() function
H A Dsocketvar.h272 (sbavail(&(so)->so_rcv) >= (so)->so_rcv.sb_lowat || (so)->so_error)
/f-stack/freebsd/netgraph/bluetooth/socket/
H A Dng_btsocket_sco.c905 if (sbavail(&pcb->so->so_snd) > 0) in ng_btsocket_sco_default_msg_input()
1746 sbavail(&pcb->so->so_snd) > 0) { in ng_btsocket_sco_send2()
H A Dng_btsocket_l2cap.c1197 if (sbavail(&pcb->so->so_snd) > 0) { in ng_btsocket_l2cap_process_l2ca_write_rsp()
2650 if (sbavail(&pcb->so->so_snd) == 0) in ng_btsocket_l2cap_send2()
H A Dng_btsocket_rfcomm.c3263 length = min(pcb->mtu, sbavail(&pcb->so->so_snd)); in ng_btsocket_rfcomm_pcb_send()