Lines Matching full:room
446 /* guess how much room is left in the device's ring buffer, and if we in keyspan_pda_write()
448 what is left. If our write will result in no room left, ask the in keyspan_pda_write()
449 device to give us an interrupt when the room available rises above in keyspan_pda_write()
461 the device is full (wait until it says there is room) in keyspan_pda_write()
479 device how much room it really has. This is done only on in keyspan_pda_write()
482 u8 *room; in keyspan_pda_write() local
484 room = kmalloc(1, GFP_KERNEL); in keyspan_pda_write()
485 if (!room) { in keyspan_pda_write()
495 0, /* value: 0 means "remaining room" */ in keyspan_pda_write()
497 room, in keyspan_pda_write()
501 dev_dbg(&port->dev, "roomquery says %d\n", *room); in keyspan_pda_write()
502 priv->tx_room = *room; in keyspan_pda_write()
504 kfree(room); in keyspan_pda_write()
537 /* There wasn't any room left, so we are throttled until in keyspan_pda_write()
571 int room = 0; in keyspan_pda_write_room() local
575 room = priv->tx_room; in keyspan_pda_write_room()
578 return room; in keyspan_pda_write_room()
616 u8 *room; in keyspan_pda_open() local
620 /* find out how much room is in the Tx ring */ in keyspan_pda_open()
621 room = kmalloc(1, GFP_KERNEL); in keyspan_pda_open()
622 if (!room) in keyspan_pda_open()
631 room, in keyspan_pda_open()
644 priv->tx_room = *room; in keyspan_pda_open()
645 priv->tx_throttled = *room ? 0 : 1; in keyspan_pda_open()
654 kfree(room); in keyspan_pda_open()