Home
last modified time | relevance | path

Searched refs:read_count (Results 1 – 21 of 21) sorted by relevance

/drivers/gpu/drm/mediatek/
Dmtk_hdmi_ddc.c121 u32 remain_count, ack_count, ack_final, read_count, temp_count; in mtk_hdmi_ddc_read_msg() local
144 read_count = 8; in mtk_hdmi_ddc_read_msg()
148 read_count = remain_count; in mtk_hdmi_ddc_read_msg()
153 DDCM_PGLEN_OFFSET, read_count - 1); in mtk_hdmi_ddc_read_msg()
163 if (((ack_final == 1) && (temp_count != (read_count - 1))) || in mtk_hdmi_ddc_read_msg()
164 ((ack_final == 0) && (temp_count != read_count))) { in mtk_hdmi_ddc_read_msg()
169 for (i = read_count; i >= 1; i--) { in mtk_hdmi_ddc_read_msg()
186 remain_count -= read_count; in mtk_hdmi_ddc_read_msg()
187 index += read_count; in mtk_hdmi_ddc_read_msg()
/drivers/char/ipmi/
Dipmi_bt_sm.c101 int read_count; member
219 bt->read_count = 5; in force_result()
273 msg_len = bt->read_count - 2; /* account for length & seq */ in bt_get_result()
363 bt->read_count = bt->read_data[0]; in read_all_bytes()
365 if (bt->read_count < 4 || bt->read_count >= IPMI_MAX_MSG_LENGTH) { in read_all_bytes()
368 bt->read_count); in read_all_bytes()
372 for (i = 1; i <= bt->read_count; i++) in read_all_bytes()
374 bt->read_count++; /* Account internally for length byte */ in read_all_bytes()
377 int max = bt->read_count; in read_all_bytes()
385 printk(KERN_CONT "%s\n", bt->read_count == max ? "" : " ..."); in read_all_bytes()
[all …]
/drivers/net/ethernet/sfc/
Dtx.c83 tx_queue->queue, tx_queue->read_count); in efx_dequeue_buffer()
162 txq1->old_read_count = ACCESS_ONCE(txq1->read_count); in efx_tx_maybe_stop_queue()
163 txq2->old_read_count = ACCESS_ONCE(txq2->read_count); in efx_tx_maybe_stop_queue()
496 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers()
512 ++tx_queue->read_count; in efx_dequeue_buffers()
513 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers()
652 fill_level = max(tx_queue->insert_count - tx_queue->read_count, in efx_xmit_done()
653 txq2->insert_count - txq2->read_count); in efx_xmit_done()
659 if ((int)(tx_queue->read_count - tx_queue->old_write_count) >= 0) { in efx_xmit_done()
661 if (tx_queue->read_count == tx_queue->old_write_count) { in efx_xmit_done()
[all …]
Dnet_driver.h247 unsigned int read_count ____cacheline_aligned_in_smp;
Dfarch.c851 tx_packets = ((tx_ev_desc_ptr - tx_queue->read_count) & in efx_farch_handle_tx_event()
Def10.c2970 tx_descs = ((tx_ev_desc_ptr + 1 - tx_queue->read_count) & in efx_ef10_handle_tx_event()
/drivers/usb/misc/
Drio500.c366 ssize_t read_count; in read_rio() local
385 read_count = 0; in read_rio()
391 return read_count ? read_count : -EINTR; in read_rio()
438 read_count += this_read; in read_rio()
443 return read_count; in read_rio()
Dchaoskey.c436 ssize_t read_count = 0; in chaoskey_read() local
486 read_count += this_time; in chaoskey_read()
492 if (read_count) { in chaoskey_read()
493 usb_dbg(dev->interface, "read %zu bytes", read_count); in chaoskey_read()
494 return read_count; in chaoskey_read()
/drivers/media/usb/em28xx/
Dem28xx-input.c55 unsigned int read_count:7; member
206 poll_result->read_count = (msg[0] & 0x7f); in default_polling_getkey()
248 poll_result->read_count = (msg[0] & 0x7f); in em2874_polling_getkey()
326 if (unlikely(poll_result.read_count != ir->last_readcount)) { in em28xx_ir_handle_key()
328 poll_result.toggle_bit, poll_result.read_count, in em28xx_ir_handle_key()
350 ir->last_readcount = poll_result.read_count; in em28xx_ir_handle_key()
/drivers/media/pci/saa7134/
Dsaa7134-alsa.c163 if (dev->dmasound.read_count >= dev->dmasound.blksize * (dev->dmasound.blocks-2)) { in saa7134_irq_alsa_done()
165 dev->dmasound.read_count, in saa7134_irq_alsa_done()
178 dev->dmasound.blksize, dev->dmasound.read_count); in saa7134_irq_alsa_done()
182 dev->dmasound.read_count += dev->dmasound.blksize; in saa7134_irq_alsa_done()
186 if (dev->dmasound.read_count >= snd_pcm_lib_period_bytes(dev->dmasound.substream)) { in saa7134_irq_alsa_done()
610 if (dev->dmasound.read_count) { in snd_card_saa7134_capture_pointer()
611 dev->dmasound.read_count -= snd_pcm_lib_period_bytes(substream); in snd_card_saa7134_capture_pointer()
823 dev->dmasound.read_count = 0; in snd_card_saa7134_capture_open()
Dsaa7134.h531 unsigned int read_count; member
/drivers/clocksource/
Dsh_cmt.c87 unsigned long (*read_count)(void __iomem *base, unsigned long offs); member
190 .read_count = sh_cmt_read16,
200 .read_count = sh_cmt_read32,
210 .read_count = sh_cmt_read32,
220 .read_count = sh_cmt_read32,
230 .read_count = sh_cmt_read32,
269 return ch->cmt->info->read_count(ch->ioctrl, CMCNT); in sh_cmt_read_cmcnt()
/drivers/char/xilinx_hwicap/
Dbuffer_icap.c331 s32 read_count = 0; in buffer_icap_get_configuration() local
356 read_count++; in buffer_icap_get_configuration()
/drivers/tty/serial/
Dioc3_serial.c1397 int read_count = 0, read_room, flip = 0; in receive_chars() local
1411 read_count = do_read(the_port, ch, MAX_CHARS); in receive_chars()
1412 if (read_count > 0) { in receive_chars()
1415 read_count); in receive_chars()
1416 the_port->icount.rx += read_count; in receive_chars()
1423 return read_count; in receive_chars()
Dioc4_serial.c2345 int read_count, request_count = IOC4_MAX_CHARS; in receive_chars() local
2360 read_count = do_read(the_port, ch, request_count); in receive_chars()
2361 if (read_count > 0) { in receive_chars()
2362 tty_insert_flip_string(&state->port, ch, read_count); in receive_chars()
2363 icount->rx += read_count; in receive_chars()
/drivers/misc/mic/scif/
Dscif_api.c1013 int curr_recv_len = 0, remaining_len = len, read_count; in _scif_recv() local
1022 read_count = scif_rb_count(&qp->inbound_q, remaining_len); in _scif_recv()
1023 if (read_count) { in _scif_recv()
1029 curr_recv_len = min(remaining_len, read_count); in _scif_recv()
/drivers/media/common/siano/
Dsmscoreapi.h1060 u32 read_count; /* number of bytes to read */ member
1066 u32 read_count; /* number of bytes read */ member
/drivers/net/ethernet/qlogic/qed/
Dqed_dcbx.c374 int read_count = 0; in qed_dcbx_copy_mib() local
392 read_count++; in qed_dcbx_copy_mib()
397 type, read_count, prefix_seq_num, suffix_seq_num); in qed_dcbx_copy_mib()
399 (read_count < QED_DCBX_MAX_MIB_READ_TRY)); in qed_dcbx_copy_mib()
401 if (read_count >= QED_DCBX_MAX_MIB_READ_TRY) { in qed_dcbx_copy_mib()
404 type, read_count, prefix_seq_num, suffix_seq_num); in qed_dcbx_copy_mib()
/drivers/scsi/
Dosst.h584 int read_count; member
Dosst.c1254 STp->read_count++; in osst_get_logical_frame()
4901 if (STp->read_count) in os_scsi_tape_flush()
4902 printk(" in %d frames read", STp->read_count); in os_scsi_tape_flush()
4908 STp->read_count = 0; in os_scsi_tape_flush()
/drivers/char/pcmcia/
Dsynclink_cs.c833 unsigned char fifo_count, read_count, i; in rx_ready_hdlc() local
861 read_count = 1; in rx_ready_hdlc()
864 read_count = 2; in rx_ready_hdlc()
867 fifo_count -= read_count; in rx_ready_hdlc()
869 buf->status = data[--read_count]; in rx_ready_hdlc()
871 for (i = 0; i < read_count; i++) { in rx_ready_hdlc()