Home
last modified time | relevance | path

Searched refs:read_offset (Results 1 – 25 of 44) sorted by relevance

12

/linux-6.3-rc2/arch/powerpc/platforms/cell/
A Daxon_msi.c71 u32 read_offset; member
106 while (msic->read_offset != write_offset && retry < 100) { in axon_msi_cascade()
107 idx = msic->read_offset / sizeof(__le32); in axon_msi_cascade()
112 write_offset, msic->read_offset, msi); in axon_msi_cascade()
136 msic->read_offset += MSIC_FIFO_ENTRY_SIZE; in axon_msi_cascade()
137 msic->read_offset &= MSIC_FIFO_SIZE_MASK; in axon_msi_cascade()
143 msic->read_offset += MSIC_FIFO_ENTRY_SIZE; in axon_msi_cascade()
144 msic->read_offset &= MSIC_FIFO_SIZE_MASK; in axon_msi_cascade()
397 msic->read_offset = dcr_read(msic->dcr_host, MSIC_WRITE_OFFSET_REG) in axon_msi_probe()
/linux-6.3-rc2/drivers/gpu/drm/i915/gt/uc/
A Dintel_guc_log.c378 unsigned int buffer_size, read_offset, write_offset, bytes_to_copy, full_cnt; in _guc_log_copy_debuglogs_for_relay() local
422 read_offset = log_buf_state_local.read_ptr; in _guc_log_copy_debuglogs_for_relay()
451 read_offset = 0; in _guc_log_copy_debuglogs_for_relay()
453 } else if (unlikely((read_offset > buffer_size) || in _guc_log_copy_debuglogs_for_relay()
457 read_offset = 0; in _guc_log_copy_debuglogs_for_relay()
462 if (read_offset > write_offset) { in _guc_log_copy_debuglogs_for_relay()
464 bytes_to_copy = buffer_size - read_offset; in _guc_log_copy_debuglogs_for_relay()
466 bytes_to_copy = write_offset - read_offset; in _guc_log_copy_debuglogs_for_relay()
468 i915_memcpy_from_wc(dst_data + read_offset, in _guc_log_copy_debuglogs_for_relay()
469 src_data + read_offset, bytes_to_copy); in _guc_log_copy_debuglogs_for_relay()
A Dintel_guc_capture.c1368 unsigned int buffer_size, read_offset, write_offset, full_count; in __guc_capture_process_output() local
1390 read_offset = log_buf_state_local.read_ptr; in __guc_capture_process_output()
1402 read_offset = 0; in __guc_capture_process_output()
1404 } else if (unlikely((read_offset > buffer_size) || in __guc_capture_process_output()
1408 read_offset = 0; in __guc_capture_process_output()
1413 buf.rd = read_offset; in __guc_capture_process_output()
/linux-6.3-rc2/tools/testing/selftests/powerpc/
A Dutils.c70 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.3-rc2/drivers/fsi/
A Dfsi-occ.c72 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.3-rc2/drivers/rtc/
A Drtc-meson.c262 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()
A Drtc-zynqmp.c254 .read_offset = xlnx_rtc_read_offset,
A Drtc-optee.c186 .read_offset = optee_rtc_readoffset,
A Dinterface.c1042 if (!rtc->ops->read_offset) in rtc_read_offset()
1046 ret = rtc->ops->read_offset(rtc->dev.parent, offset); in rtc_read_offset()
A Drtc-tps65910.c361 .read_offset = tps65910_read_offset,
A Drtc-pcf2123.c368 .read_offset = pcf2123_read_offset,
A Drtc-pcf8523.c381 .read_offset = pcf8523_rtc_read_offset,
/linux-6.3-rc2/drivers/input/mouse/
A Dcyapa_gen6.c561 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.3-rc2/drivers/net/ethernet/netronome/nfp/
A Dnfp_asm.h404 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.3-rc2/drivers/media/pci/saa7134/
A Dsaa7134-alsa.c599 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.3-rc2/kernel/
A Drelay.c960 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.3-rc2/drivers/gpu/drm/etnaviv/
A Detnaviv_gem_submit.c328 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.3-rc2/drivers/bus/mhi/ep/
A Dmain.c294 size_t tr_len, read_offset, write_offset; in mhi_ep_read_channel() local
325 read_offset = mhi_chan->tre_size - mhi_chan->tre_bytes_left; in mhi_ep_read_channel()
327 read_addr = mhi_chan->tre_loc + read_offset; in mhi_ep_read_channel()
455 u32 buf_left, read_offset; in mhi_ep_queue_skb() local
487 read_offset = skb->len - buf_left; in mhi_ep_queue_skb()
488 read_addr = skb->data + read_offset; in mhi_ep_queue_skb()
/linux-6.3-rc2/include/uapi/drm/
A Detnaviv_drm.h178 __u32 read_offset; /* in, offset from read_bo */ member
/linux-6.3-rc2/include/linux/
A Drtc.h67 int (*read_offset)(struct device *, long *offset); member
/linux-6.3-rc2/drivers/mailbox/
A Dbcm-flexrm-mailbox.c982 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.3-rc2/drivers/net/ethernet/atheros/atl1e/
A Datl1e_main.c759 rx_page_desc[i].rx_page[j].read_offset = 0; in atl1e_init_ring_ptrs()
1407 if (likely(rx_page->read_offset < write_offset)) { in atl1e_clean_rx_irq()
1414 rx_page->read_offset); in atl1e_clean_rx_irq()
1471 rx_page->read_offset += in atl1e_clean_rx_irq()
1477 if (rx_page->read_offset >= rx_ring->page_size) { in atl1e_clean_rx_irq()
1482 rx_page->read_offset = in atl1e_clean_rx_irq()
1492 } while (rx_page->read_offset < write_offset); in atl1e_clean_rx_irq()
A Datl1e.h386 u32 read_offset; /* the offset where we have read */ member
/linux-6.3-rc2/drivers/input/touchscreen/
A Dcyttsp4_core.c203 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.3-rc2/drivers/scsi/lpfc/
A Dlpfc_bsg.h316 uint32_t read_offset; member

Completed in 54 milliseconds

12