Lines Matching defs:sb
123 struct sockbuf *sb;
128 sb = &(tp->t_inpcb->inp_socket->so_snd);
129 if (sb->sb_hiwat > tp->snd_ssthresh &&
130 (sb->sb_flags & SB_AUTOSIZE) != 0) {
131 if (sb->sb_idealsize > tp->snd_ssthresh) {
132 SET_SNDSB_IDEAL_SIZE(sb, tp->snd_ssthresh);
134 sb->sb_flags |= SB_TRIM;
139 struct sockbuf *sb;
140 sb = &(tp->t_inpcb->inp_socket->so_snd);
141 if ((sb->sb_flags & (SB_TRIM|SB_AUTOSIZE)) == (SB_TRIM|SB_AUTOSIZE)) {
146 SET_SNDSB_IDEAL_SIZE(sb, tp->snd_ssthresh);
147 if (sb->sb_hiwat <= sb->sb_idealsize) {
148 sbreserve(sb, sb->sb_idealsize);
149 sb->sb_flags &= ~SB_TRIM;