Lines Matching refs:space_left
7168 uint32_t space_left, uint32_t frag_point, int eeor_on) in sctp_can_we_split_this() argument
7180 if (space_left >= length) { in sctp_can_we_split_this()
7197 return (space_left); in sctp_can_we_split_this()
7208 if ((length <= space_left) || in sctp_can_we_split_this()
7209 ((length - space_left) < SCTP_BASE_SYSCTL(sctp_min_residual))) { in sctp_can_we_split_this()
7217 if (space_left >= min(SCTP_BASE_SYSCTL(sctp_min_split_point), frag_point)) { in sctp_can_we_split_this()
7219 return (min(space_left, frag_point)); in sctp_can_we_split_this()
7229 uint32_t space_left, in sctp_move_to_outqueue() argument
7362 to_move = sctp_can_we_split_this(stcb, length, space_left, frag_point, eeor_mode); in sctp_move_to_outqueue()
7703 uint32_t space_left, moved, total_moved; in sctp_fill_outqueue() local
7712 space_left = net->mtu - SCTP_MIN_V4_OVERHEAD; in sctp_fill_outqueue()
7717 space_left = net->mtu - SCTP_MIN_OVERHEAD; in sctp_fill_outqueue()
7722 space_left = net->mtu; in sctp_fill_outqueue()
7726 space_left -= SCTP_DATA_CHUNK_OVERHEAD(stcb); in sctp_fill_outqueue()
7729 space_left &= 0xfffffffc; in sctp_fill_outqueue()
7733 while ((space_left > 0) && (strq != NULL)) { in sctp_fill_outqueue()
7734 moved = sctp_move_to_outqueue(stcb, net, strq, space_left, in sctp_fill_outqueue()
7742 if (space_left >= moved) { in sctp_fill_outqueue()
7743 space_left -= moved; in sctp_fill_outqueue()
7745 space_left = 0; in sctp_fill_outqueue()
7747 if (space_left >= SCTP_DATA_CHUNK_OVERHEAD(stcb)) { in sctp_fill_outqueue()
7748 space_left -= SCTP_DATA_CHUNK_OVERHEAD(stcb); in sctp_fill_outqueue()
7750 space_left = 0; in sctp_fill_outqueue()
7752 space_left &= 0xfffffffc; in sctp_fill_outqueue()