Lines Matching defs:room

150  * 16), TAIL room that was unusable (and thus is marked with a message
156 * | TAIL room |
296 * Calculate how much tail room is available
303 * | tail room |
311 * | head room |
316 * buffer) if there is no head room. In this case, tail_room would be
345 * @try_head: specify either to allocate head room or tail room space
348 * The caller must always try to allocate tail room space first by
350 * is not enough tail room space but there is enough head room space,
352 * room space, by calling this routine again with try_head = 1.
366 * | tail room | | data |
370 * | data | | room |
374 * | head room | | data |
379 * We can allocate only from 'room'. In Case B, it is simple; in case
380 * A, we only try from the tail room; if it is not enough, we just
382 * skip the tail room and try to allocate from the head.
389 * N ___________ tail room is zero
398 * | head room |
400 * During such a time, where tail room is zero in the TX FIFO and if there
415 * is no tail room to accommodate the payload and calls
438 size_t room, tail_room, needed_size;
442 room = I2400M_TX_BUF_SIZE - (i2400m->tx_in - i2400m->tx_out);
443 if (room < needed_size) { /* this takes care of Case B */
452 * If the tail room space is not enough to push the message
454 * 1. There is enough head room space to accommodate
456 * 2. There is not enough space in the head room and
457 * in tail room of the TX FIFO to accommodate the message.
460 * into the head room space.
464 if (room - tail_room >= needed_size) {
490 * Tail room can get to be zero if a message was opened when there was
694 * room for the message in the queue).