/linux/drivers/gpu/drm/imagination/ |
H A D | pvr_cccb.c | 29 WRITE_ONCE(ctrl->read_offset, 0); in cccb_ctrl_init() 111 u32 read_offset, remaining; in pvr_cccb_cmdseq_fits() local 114 read_offset = READ_ONCE(ctrl->read_offset); in pvr_cccb_cmdseq_fits() 124 if (get_ccb_space(pvr_cccb->write_offset, read_offset, pvr_cccb->size) >= size) in pvr_cccb_cmdseq_fits() 160 u32 required_size, cccb_space, read_offset; in pvr_cccb_write_command_with_header() local 176 read_offset = READ_ONCE(ctrl->read_offset); in pvr_cccb_write_command_with_header() 177 cccb_space = get_ccb_space(pvr_cccb->write_offset, read_offset, pvr_cccb->size); in pvr_cccb_write_command_with_header()
|
H A D | pvr_rogue_fwif_shared.h | 125 u32 read_offset; member
|
H A D | pvr_rogue_fwif_shared_check.h | 29 OFFSET_CHECK(struct rogue_fwif_cccb_ctl, read_offset, 4);
|
/linux/tools/testing/selftests/powerpc/ |
H A D | utils.c | 70 size_t read_offset = 0; in read_file_alloc() local 88 if (read_offset >= buffer_len / 2) { in read_file_alloc() 100 rc = read(fd, buffer + read_offset, buffer_len - read_offset); in read_file_alloc() 109 read_offset += rc; in read_file_alloc() 114 *len = read_offset; in read_file_alloc()
|
/linux/drivers/fsi/ |
H A D | fsi-occ.c | 72 size_t read_offset; member 122 if (WARN_ON_ONCE(client->read_offset > client->data_size)) { in occ_read() 128 rc = min(len, client->data_size - client->read_offset); in occ_read() 129 if (copy_to_user(buf, client->buffer + client->read_offset, rc)) in occ_read() 132 client->read_offset += rc; in occ_read() 187 client->read_offset = 0; in occ_write()
|
/linux/drivers/rtc/ |
H A D | rtc-meson.c | 262 unsigned int read_offset, read_size; in meson_rtc_regmem_read() local 264 read_offset = RTC_REGMEM_0 + (offset / 4); in meson_rtc_regmem_read() 267 return regmap_bulk_read(rtc->serial, read_offset, buf, read_size); in meson_rtc_regmem_read()
|
H A D | rtc-zynqmp.c | 254 .read_offset = xlnx_rtc_read_offset,
|
H A D | interface.c | 1048 if (!rtc->ops->read_offset) in rtc_read_offset() 1052 ret = rtc->ops->read_offset(rtc->dev.parent, offset); in rtc_read_offset()
|
H A D | rtc-optee.c | 186 .read_offset = optee_rtc_readoffset,
|
H A D | rtc-rzn1.c | 300 .read_offset = rzn1_rtc_read_offset,
|
H A D | rtc-pcf2123.c | 368 .read_offset = pcf2123_read_offset,
|
H A D | rtc-tps6594.c | 356 .read_offset = tps6594_rtc_read_offset,
|
H A D | rtc-tps65910.c | 361 .read_offset = tps65910_read_offset,
|
/linux/drivers/input/mouse/ |
H A D | cyapa_gen6.c | 561 u16 read_offset, u16 read_len, u8 data_id, in cyapa_pip_retrieve_data_structure() argument 566 __le16 read_offset; in cyapa_pip_retrieve_data_structure() member 579 put_unaligned_le16(read_offset, &cmd.read_offset); in cyapa_pip_retrieve_data_structure()
|
/linux/kernel/ |
H A D | relay.c | 960 size_t read_subbuf, read_offset, write_subbuf, write_offset; in relay_file_read_subbuf_avail() local 966 read_offset = read_pos % subbuf_size; in relay_file_read_subbuf_avail() 970 if (read_offset + padding < write_offset) in relay_file_read_subbuf_avail() 971 avail = write_offset - (read_offset + padding); in relay_file_read_subbuf_avail() 973 avail = (subbuf_size - padding) - read_offset; in relay_file_read_subbuf_avail()
|
/linux/drivers/gpu/drm/i915/gt/uc/ |
H A D | intel_guc_capture.c | 1295 unsigned int buffer_size, read_offset, write_offset, full_count; in __guc_capture_process_output() local 1316 read_offset = log_buf_state_local.read_ptr; in __guc_capture_process_output() 1328 read_offset = 0; in __guc_capture_process_output() 1330 } else if (unlikely((read_offset > buffer_size) || in __guc_capture_process_output() 1333 read_offset, buffer_size); in __guc_capture_process_output() 1335 read_offset = 0; in __guc_capture_process_output() 1340 buf.rd = read_offset; in __guc_capture_process_output()
|
/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_asm.h | 404 static inline u32 nfp_get_ind_csr_ctx_ptr_offs(u32 read_offset) in nfp_get_ind_csr_ctx_ptr_offs() argument 406 return (read_offset & ~NFP_IND_ME_CTX_PTR_BASE_MASK) | NFP_CSR_CTX_PTR; in nfp_get_ind_csr_ctx_ptr_offs()
|
/linux/drivers/media/pci/saa7134/ |
H A D | saa7134-alsa.c | 599 dev->dmasound.read_offset += snd_pcm_lib_period_bytes(substream); in snd_card_saa7134_capture_pointer() 600 if (dev->dmasound.read_offset == dev->dmasound.bufsize) in snd_card_saa7134_capture_pointer() 601 dev->dmasound.read_offset = 0; in snd_card_saa7134_capture_pointer() 604 return bytes_to_frames(runtime, dev->dmasound.read_offset); in snd_card_saa7134_capture_pointer() 810 dev->dmasound.read_offset = 0; in snd_card_saa7134_capture_open()
|
/linux/drivers/bus/mhi/ep/ |
H A D | main.c | 406 size_t tr_len, read_offset, write_offset; in mhi_ep_read_channel() local 438 read_offset = mhi_chan->tre_size - mhi_chan->tre_bytes_left; in mhi_ep_read_channel() 445 buf_info.host_addr = mhi_chan->tre_loc + read_offset; in mhi_ep_read_channel() 556 u32 buf_left, read_offset; in mhi_ep_queue_skb() local 585 read_offset = skb->len - buf_left; in mhi_ep_queue_skb() 587 buf_info.dev_addr = skb->data + read_offset; in mhi_ep_queue_skb()
|
/linux/include/uapi/drm/ |
H A D | etnaviv_drm.h | 178 __u32 read_offset; /* in, offset from read_bo */ member
|
/linux/drivers/mailbox/ |
H A D | bcm-flexrm-mailbox.c | 982 u32 read_offset, write_offset; in flexrm_new_request() local 1011 read_offset = readl_relaxed(ring->regs + RING_BD_READ_PTR); in flexrm_new_request() 1013 read_offset *= RING_DESC_SIZE; in flexrm_new_request() 1014 read_offset += (u32)(BD_START_ADDR_DECODE(val) - ring->bd_dma_base); in flexrm_new_request() 1032 if (write_offset == read_offset) in flexrm_new_request()
|
/linux/drivers/net/ethernet/atheros/atl1e/ |
H A D | atl1e_main.c | 759 rx_page_desc[i].rx_page[j].read_offset = 0; in atl1e_init_ring_ptrs() 1410 if (likely(rx_page->read_offset < write_offset)) { in atl1e_clean_rx_irq() 1417 rx_page->read_offset); in atl1e_clean_rx_irq() 1474 rx_page->read_offset += in atl1e_clean_rx_irq() 1480 if (rx_page->read_offset >= rx_ring->page_size) { in atl1e_clean_rx_irq() 1485 rx_page->read_offset = in atl1e_clean_rx_irq() 1495 } while (rx_page->read_offset < write_offset); in atl1e_clean_rx_irq()
|
H A D | atl1e.h | 386 u32 read_offset; /* the offset where we have read */ member
|
/linux/include/linux/ |
H A D | rtc.h | 67 int (*read_offset)(struct device *, long *offset); member
|
/linux/drivers/scsi/lpfc/ |
H A D | lpfc_bsg.h | 316 uint32_t read_offset; member
|