Searched refs:space_at_end (Results 1 – 2 of 2) sorted by relevance
1604 int space_at_end, space_at_start; in mbox_write() local1656 space_at_end = mbox_consumer - mbox_producer - MBOX_ALIGN_BYTES; in mbox_write()1657 if (space_at_end < 0) in mbox_write()1658 space_at_end = 0; in mbox_write()1661 space_at_end = mbox_len - mbox_producer; in mbox_write()1663 space_at_end -= MBOX_ALIGN_BYTES; in mbox_write()1670 f, space_at_end, space_at_start); in mbox_write()1672 free_space = space_at_end + space_at_start; in mbox_write()1696 if (space_at_end >= frag_header_size) { in mbox_write()1709 space_at_end -= frag_header_size; in mbox_write()[all …]
1053 int size, space, space_at_end; in circular_buffer_write() local1067 space_at_end = end - wr; in circular_buffer_write()1069 if (rd > wr || rd <= wr && space_at_end >= len) { /* one piece */ in circular_buffer_write()1075 if (space_at_end) { in circular_buffer_write()1077 wr, buf, space_at_end); in circular_buffer_write()1080 if (len - space_at_end) { in circular_buffer_write()1082 begin, buf+space_at_end, len-space_at_end); in circular_buffer_write()