/linux-6.6.21/arch/powerpc/platforms/cell/ |
D | axon_msi.c | 72 u32 read_offset; member 107 while (msic->read_offset != write_offset && retry < 100) { in axon_msi_cascade() 108 idx = msic->read_offset / sizeof(__le32); in axon_msi_cascade() 113 write_offset, msic->read_offset, msi); in axon_msi_cascade() 137 msic->read_offset += MSIC_FIFO_ENTRY_SIZE; in axon_msi_cascade() 138 msic->read_offset &= MSIC_FIFO_SIZE_MASK; in axon_msi_cascade() 144 msic->read_offset += MSIC_FIFO_ENTRY_SIZE; in axon_msi_cascade() 145 msic->read_offset &= MSIC_FIFO_SIZE_MASK; in axon_msi_cascade() 398 msic->read_offset = dcr_read(msic->dcr_host, MSIC_WRITE_OFFSET_REG) in axon_msi_probe()
|
/linux-6.6.21/drivers/gpu/drm/i915/gt/uc/ |
D | intel_guc_log.c | 377 unsigned int buffer_size, read_offset, write_offset, bytes_to_copy, full_cnt; in _guc_log_copy_debuglogs_for_relay() local 421 read_offset = log_buf_state_local.read_ptr; in _guc_log_copy_debuglogs_for_relay() 450 read_offset = 0; in _guc_log_copy_debuglogs_for_relay() 452 } else if (unlikely((read_offset > buffer_size) || in _guc_log_copy_debuglogs_for_relay() 456 read_offset = 0; in _guc_log_copy_debuglogs_for_relay() 461 if (read_offset > write_offset) { in _guc_log_copy_debuglogs_for_relay() 463 bytes_to_copy = buffer_size - read_offset; in _guc_log_copy_debuglogs_for_relay() 465 bytes_to_copy = write_offset - read_offset; in _guc_log_copy_debuglogs_for_relay() 467 i915_memcpy_from_wc(dst_data + read_offset, in _guc_log_copy_debuglogs_for_relay() 468 src_data + read_offset, bytes_to_copy); in _guc_log_copy_debuglogs_for_relay()
|
D | intel_guc_capture.c | 1299 unsigned int buffer_size, read_offset, write_offset, full_count; in __guc_capture_process_output() local 1320 read_offset = log_buf_state_local.read_ptr; in __guc_capture_process_output() 1332 read_offset = 0; in __guc_capture_process_output() 1334 } else if (unlikely((read_offset > buffer_size) || in __guc_capture_process_output() 1337 read_offset, buffer_size); in __guc_capture_process_output() 1339 read_offset = 0; in __guc_capture_process_output() 1344 buf.rd = read_offset; in __guc_capture_process_output()
|
/linux-6.6.21/tools/testing/selftests/powerpc/ |
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-6.6.21/drivers/fsi/ |
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-6.6.21/drivers/rtc/ |
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()
|
D | rtc-zynqmp.c | 254 .read_offset = xlnx_rtc_read_offset,
|
D | rtc-optee.c | 186 .read_offset = optee_rtc_readoffset,
|
D | interface.c | 1042 if (!rtc->ops->read_offset) in rtc_read_offset() 1046 ret = rtc->ops->read_offset(rtc->dev.parent, offset); in rtc_read_offset()
|
D | rtc-tps65910.c | 361 .read_offset = tps65910_read_offset,
|
D | rtc-pcf2123.c | 368 .read_offset = pcf2123_read_offset,
|
D | rtc-rzn1.c | 324 .read_offset = rzn1_rtc_read_offset,
|
/linux-6.6.21/drivers/input/mouse/ |
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-6.6.21/drivers/net/ethernet/netronome/nfp/ |
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-6.6.21/kernel/ |
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-6.6.21/drivers/media/pci/saa7134/ |
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-6.6.21/drivers/gpu/drm/etnaviv/ |
D | etnaviv_gem_submit.c | 328 if (r->read_offset == 0) { in submit_perfmon_validate() 333 if (r->read_offset >= bo->obj->base.size - sizeof(u32)) { in submit_perfmon_validate() 352 submit->pmrs[i].offset = r->read_offset; in submit_perfmon_validate()
|
/linux-6.6.21/drivers/bus/mhi/ep/ |
D | main.c | 326 size_t tr_len, read_offset, write_offset; in mhi_ep_read_channel() local 356 read_offset = mhi_chan->tre_size - mhi_chan->tre_bytes_left; in mhi_ep_read_channel() 359 buf_info.host_addr = mhi_chan->tre_loc + read_offset; in mhi_ep_read_channel() 489 u32 buf_left, read_offset; in mhi_ep_queue_skb() local 519 read_offset = skb->len - buf_left; in mhi_ep_queue_skb() 521 buf_info.dev_addr = skb->data + read_offset; in mhi_ep_queue_skb()
|
/linux-6.6.21/include/uapi/drm/ |
D | etnaviv_drm.h | 178 __u32 read_offset; /* in, offset from read_bo */ member
|
/linux-6.6.21/drivers/mailbox/ |
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-6.6.21/include/linux/ |
D | rtc.h | 67 int (*read_offset)(struct device *, long *offset); member
|
/linux-6.6.21/drivers/net/ethernet/atheros/atl1e/ |
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()
|
D | atl1e.h | 386 u32 read_offset; /* the offset where we have read */ member
|
/linux-6.6.21/drivers/input/touchscreen/ |
D | cyttsp4_core.c | 203 int read_offset; in cyttsp4_si_get_cydata() local 227 read_offset = si->si_ofs.cydata_ofs; in cyttsp4_si_get_cydata() 230 rc = cyttsp4_adap_read(cd, read_offset, in cyttsp4_si_get_cydata() 249 read_offset += offsetof(struct cyttsp4_cydata, mfgid_sz) in cyttsp4_si_get_cydata() 253 rc = cyttsp4_adap_read(cd, read_offset, si->si_ptrs.cydata->mfgid_sz, in cyttsp4_si_get_cydata() 261 read_offset += si->si_ptrs.cydata->mfgid_sz; in cyttsp4_si_get_cydata() 264 rc = cyttsp4_adap_read(cd, read_offset, in cyttsp4_si_get_cydata()
|
/linux-6.6.21/drivers/scsi/lpfc/ |
D | lpfc_bsg.h | 316 uint32_t read_offset; member
|