Home
last modified time | relevance | path

Searched refs:room (Results 1 – 25 of 34) sorted by relevance

12

/drivers/usb/serial/
Dkeyspan_pda.c80 u8 *room; in keyspan_pda_get_write_room() local
83 room = kmalloc(1, GFP_KERNEL); in keyspan_pda_get_write_room()
84 if (!room) in keyspan_pda_get_write_room()
94 room, in keyspan_pda_get_write_room()
104 dev_dbg(&port->dev, "roomquery says %d\n", *room); in keyspan_pda_get_write_room()
105 rc = *room; in keyspan_pda_get_write_room()
107 kfree(room); in keyspan_pda_get_write_room()
467 int room; in keyspan_pda_write_start() local
486 room = priv->tx_room; in keyspan_pda_write_start()
489 if (!test_bit(0, &port->write_urbs_free) || count == 0 || room == 0) { in keyspan_pda_write_start()
[all …]
Dgeneric.c237 unsigned int room; in usb_serial_generic_write_room() local
243 room = kfifo_avail(&port->write_fifo); in usb_serial_generic_write_room()
246 dev_dbg(&port->dev, "%s - returns %u\n", __func__, room); in usb_serial_generic_write_room()
247 return room; in usb_serial_generic_write_room()
Dmos7840.c819 unsigned int room = 0; in mos7840_write_room() local
825 room += URB_TRANSFER_BUFFER_SIZE; in mos7840_write_room()
829 room = (room == 0) ? 0 : room - URB_TRANSFER_BUFFER_SIZE + 1; in mos7840_write_room()
830 dev_dbg(&mos7840_port->port->dev, "%s - returns %u\n", __func__, room); in mos7840_write_room()
831 return room; in mos7840_write_room()
Ddigi_acceleport.c1027 unsigned int room; in digi_write_room() local
1032 room = 0; in digi_write_room()
1034 room = port->bulk_out_size - 2 - priv->dp_out_buf_len; in digi_write_room()
1037 dev_dbg(&port->dev, "digi_write_room: port=%d, room=%u\n", priv->dp_port_num, room); in digi_write_room()
1038 return room; in digi_write_room()
Dcypress_m8.c796 unsigned int room; in cypress_write_room() local
800 room = kfifo_avail(&priv->write_fifo); in cypress_write_room()
803 dev_dbg(&port->dev, "%s - returns %u\n", __func__, room); in cypress_write_room()
804 return room; in cypress_write_room()
Doti6858.c369 unsigned int room; in oti6858_write_room() local
373 room = kfifo_avail(&port->write_fifo); in oti6858_write_room()
376 return room; in oti6858_write_room()
Dmos7720.c1031 unsigned int room = 0; in mos7720_write_room() local
1038 room += URB_TRANSFER_BUFFER_SIZE; in mos7720_write_room()
1041 dev_dbg(&port->dev, "%s - returns %u\n", __func__, room); in mos7720_write_room()
1042 return room; in mos7720_write_room()
/drivers/tty/ipwireless/
Dtty.c193 int room, ret; in ipw_write() local
204 room = IPWIRELESS_TX_QUEUE_SIZE - tty->tx_bytes_queued; in ipw_write()
205 if (room < 0) in ipw_write()
206 room = 0; in ipw_write()
208 if (count > room) in ipw_write()
209 count = room; in ipw_write()
233 int room; in ipw_write_room() local
242 room = IPWIRELESS_TX_QUEUE_SIZE - tty->tx_bytes_queued; in ipw_write_room()
243 if (room < 0) in ipw_write_room()
244 room = 0; in ipw_write_room()
[all …]
/drivers/net/caif/
Dcaif_serial.c212 int tty_wr, len, room; in handle_tx() local
226 room = tty_write_room(tty); in handle_tx()
227 if (!room) in handle_tx()
229 if (room > ser_write_chunk) in handle_tx()
230 room = ser_write_chunk; in handle_tx()
231 if (len > room) in handle_tx()
232 len = room; in handle_tx()
/drivers/tty/serial/
Dmen_z135_uart.c249 int room; in men_z135_handle_rx() local
262 room = tty_buffer_request_room(tport, size); in men_z135_handle_rx()
263 if (room != size) in men_z135_handle_rx()
266 room); in men_z135_handle_rx()
268 if (room == 0) in men_z135_handle_rx()
271 memcpy_fromio(uart->rxbuf, port->membase + MEN_Z135_RX_RAM, room); in men_z135_handle_rx()
274 iowrite32(room, port->membase + MEN_Z135_RX_CTRL); in men_z135_handle_rx()
276 copied = tty_insert_flip_string(tport, uart->rxbuf, room); in men_z135_handle_rx()
277 if (copied != room) in men_z135_handle_rx()
280 copied, room); in men_z135_handle_rx()
Dpch_uart.c629 int room; in dma_push_rx() local
633 room = tty_buffer_request_room(tport, size); in dma_push_rx()
635 if (room < size) in dma_push_rx()
637 size - room); in dma_push_rx()
638 if (!room) in dma_push_rx()
643 port->icount.rx += room; in dma_push_rx()
645 return room; in dma_push_rx()
/drivers/comedi/drivers/
Damplc_pci224.c511 unsigned int room; in pci224_ao_handle_fifo() local
519 room = PCI224_FIFO_ROOM_EMPTY; in pci224_ao_handle_fifo()
529 room = PCI224_FIFO_ROOM_ONETOHALF; in pci224_ao_handle_fifo()
532 room = PCI224_FIFO_ROOM_HALFTOFULL; in pci224_ao_handle_fifo()
535 room = PCI224_FIFO_ROOM_FULL; in pci224_ao_handle_fifo()
538 if (room >= PCI224_FIFO_ROOM_ONETOHALF) { in pci224_ao_handle_fifo()
547 room /= cmd->chanlist_len; in pci224_ao_handle_fifo()
550 if (num_scans > room) in pci224_ao_handle_fifo()
551 num_scans = room; in pci224_ao_handle_fifo()
Damplc_pci230.c1099 unsigned int room; in pci230_handle_ao_fifo() local
1130 room = PCI230P2_DAC_FIFOROOM_FULL; in pci230_handle_ao_fifo()
1132 room = PCI230P2_DAC_FIFOROOM_HALFTOFULL; in pci230_handle_ao_fifo()
1134 room = PCI230P2_DAC_FIFOROOM_EMPTY; in pci230_handle_ao_fifo()
1136 room = PCI230P2_DAC_FIFOROOM_ONETOHALF; in pci230_handle_ao_fifo()
1138 room /= cmd->chanlist_len; in pci230_handle_ao_fifo()
1140 if (num_scans > room) in pci230_handle_ao_fifo()
1141 num_scans = room; in pci230_handle_ao_fifo()
/drivers/tty/
Dn_tty.c1635 int room, n, rcvd = 0, overflow; in n_tty_receive_buf_common() local
1655 room = N_TTY_BUF_SIZE - (ldata->read_head - tail); in n_tty_receive_buf_common()
1657 room = (room + 2) / 3; in n_tty_receive_buf_common()
1658 room--; in n_tty_receive_buf_common()
1659 if (room <= 0) { in n_tty_receive_buf_common()
1661 if (overflow && room < 0) in n_tty_receive_buf_common()
1663 room = overflow; in n_tty_receive_buf_common()
1664 WRITE_ONCE(ldata->no_room, flow && !room); in n_tty_receive_buf_common()
1668 n = min(count, room); in n_tty_receive_buf_common()
1683 tty->receive_room = room; in n_tty_receive_buf_common()
Dmips_ejtag_fdc.c847 unsigned int room; in mips_ejtag_fdc_tty_write_room() local
851 room = priv->xmit_size - dport->xmit_cnt; in mips_ejtag_fdc_tty_write_room()
854 return room; in mips_ejtag_fdc_tty_write_room()
/drivers/misc/ti-st/
Dst_core.c156 int room = skb_tailroom(st_gdata->rx_skb); in st_check_data_len() local
158 pr_debug("len %d room %d", len, room); in st_check_data_len()
168 } else if (len > room) { in st_check_data_len()
174 room); in st_check_data_len()
Dst_kim.c89 register int room = skb_tailroom(kim_gdata->rx_skb); in kim_check_data_len() local
91 pr_debug("len %d room %d", len, room); in kim_check_data_len()
95 } else if (len > room) { in kim_check_data_len()
101 room); in kim_check_data_len()
/drivers/net/usb/
Drndis_host.c543 int room = skb_headroom(skb); in rndis_tx_fixup() local
546 if (unlikely((sizeof *hdr) <= room)) in rndis_tx_fixup()
550 room += skb_tailroom(skb); in rndis_tx_fixup()
551 if (likely((sizeof *hdr) <= room)) { in rndis_tx_fixup()
/drivers/staging/greybus/
Duart.c447 int room; in gb_tty_write_room() local
450 room = kfifo_avail(&gb_tty->write_fifo); in gb_tty_write_room()
453 room -= GB_UART_WRITE_ROOM_MARGIN; in gb_tty_write_room()
454 if (room < 0) in gb_tty_write_room()
457 return room; in gb_tty_write_room()
/drivers/usb/host/
Dxhci-dbgtty.c247 unsigned int room; in dbc_tty_write_room() local
250 room = kfifo_avail(&port->write_fifo); in dbc_tty_write_room()
253 return room; in dbc_tty_write_room()
/drivers/spi/
Dspi-dw-core.c549 u32 room, entries, sts; in dw_spi_write_then_read() local
577 room = min(dws->fifo_len - entries, len); in dw_spi_write_then_read()
578 for (; room; --room, --len) in dw_spi_write_then_read()
/drivers/isdn/capi/
Dcapi.c1179 unsigned int room; in capinc_tty_write_room() local
1181 room = CAPINC_MAX_SENDQUEUE-skb_queue_len(&mp->outqueue); in capinc_tty_write_room()
1182 room *= CAPI_MAX_BLKSIZE; in capinc_tty_write_room()
1183 pr_debug("capinc_tty_write_room = %u\n", room); in capinc_tty_write_room()
1184 return room; in capinc_tty_write_room()
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtxrx.h454 u16 room = sq->reserved_room + mlx5e_stop_room_for_wqe(wqe_size); in mlx5e_icosq_can_post_wqe() local
456 return mlx5e_wqc_has_room_for(&sq->wq, sq->cc, sq->pc, room); in mlx5e_icosq_can_post_wqe()
/drivers/staging/qlge/
DTODO12 head room but only puts data in the frags.
/drivers/usb/gadget/function/
Du_serial.c784 unsigned int room = 0; in gs_write_room() local
788 room = kfifo_avail(&port->port_write_buf); in gs_write_room()
792 port->port_num, tty, room); in gs_write_room()
794 return room; in gs_write_room()

12