Home
last modified time | relevance | path

Searched refs:local_read (Results 1 – 22 of 22) sorted by relevance

/kernel/linux/linux-5.10/include/asm-generic/
Dlocal.h29 #define local_read(l) atomic_long_read(&(l)->a) macro
51 #define __local_inc(l) local_set((l), local_read(l) + 1)
52 #define __local_dec(l) local_set((l), local_read(l) - 1)
53 #define __local_add(i,l) local_set((l), local_read(l) + (i))
54 #define __local_sub(i,l) local_set((l), local_read(l) - (i))
Dlocal64.h30 #define local64_read(l) local_read(&(l)->a)
/kernel/linux/linux-5.10/kernel/trace/
Dring_buffer.c631 c = local_read(&t->cnt); in __rb_time_read()
632 top = local_read(&t->top); in __rb_time_read()
633 bottom = local_read(&t->bottom); in __rb_time_read()
634 } while (c != local_read(&t->cnt)); in __rb_time_read()
681 } while (cnt != local_read(&t->cnt)); in rb_time_set()
706 cnt = local_read(&t->cnt); in rb_time_cmpxchg()
775 read = local_read(&buffer->buffers[cpu]->pages_read); in ring_buffer_nr_dirty_pages()
776 cnt = local_read(&buffer->buffers[cpu]->pages_touched); in ring_buffer_nr_dirty_pages()
1732 return local_read(&bpage->entries) & RB_WRITE_MASK; in rb_page_entries()
1737 return local_read(&bpage->write) & RB_WRITE_MASK; in rb_page_write()
[all …]
Dring_buffer_benchmark.c124 commit = local_read(&rpage->commit) & 0xfffff; in read_page()
/kernel/linux/linux-5.10/include/linux/
Dpart_stat.h78 local_read(&(part_stat_get(gendiskp, field)))
80 local_read(&(part_stat_get_cpu(gendiskp, field, cpu)))
/kernel/linux/linux-5.10/arch/alpha/include/asm/
Dlocal.h14 #define local_read(l) atomic_long_read(&(l)->a) macro
71 c = local_read(l); \
/kernel/linux/linux-5.10/kernel/events/
Dring_buffer.c47 handle->wakeup = local_read(&rb->wakeup); in perf_output_get_handle()
76 head = local_read(&rb->head); in perf_output_put_handle()
125 if (unlikely(head != local_read(&rb->head))) { in perf_output_put_handle()
130 if (handle->wakeup != local_read(&rb->wakeup)) in perf_output_put_handle()
183 have_lost = local_read(&rb->lost); in __perf_output_begin()
194 offset = head = local_read(&rb->head); in __perf_output_begin()
230 if (unlikely(head - local_read(&rb->wakeup) > rb->watermark)) in __perf_output_begin()
/kernel/linux/linux-5.10/arch/x86/include/asm/
Dlocal.h16 #define local_read(l) atomic_long_read(&(l)->a) macro
140 c = local_read((l)); \
/kernel/linux/linux-5.10/arch/mips/include/asm/
Dlocal.h19 #define local_read(l) atomic_long_read(&(l)->a) macro
144 c = local_read(l); \
/kernel/linux/linux-5.10/drivers/hwtracing/coresight/
Dcoresight-stm.c267 if (local_read(&drvdata->mode) == CS_MODE_SYSFS) { in stm_disable()
382 if (!(drvdata && local_read(&drvdata->mode))) in stm_generic_set_options()
417 if (!(drvdata && local_read(&drvdata->mode))) in stm_generic_packet()
524 if (!local_read(&drvdata->mode)) { in port_select_show()
550 if (local_read(&drvdata->mode)) { in port_select_store()
571 if (!local_read(&drvdata->mode)) { in port_enable_show()
597 if (local_read(&drvdata->mode)) { in port_enable_store()
Dcoresight-etm3x-core.c462 if (!local_read(&drvdata->mode)) in etm_get_trace_id()
646 mode = local_read(&drvdata->mode); in etm_disable()
698 if (local_read(&etmdrvdata[cpu]->mode)) in etm_starting_cpu()
710 if (local_read(&etmdrvdata[cpu]->mode)) in etm_dying_cpu()
Dcoresight-etm4x-core.c592 mode = local_read(&drvdata->mode); in etm4_disable()
1131 if (local_read(&etmdrvdata[cpu]->mode)) in etm4_starting_cpu()
1143 if (local_read(&etmdrvdata[cpu]->mode)) in etm4_dying_cpu()
1412 if (local_read(&drvdata->mode)) in etm4_cpu_pm_notify()
Dcoresight-etm3x-sysfs.c724 if (!local_read(&drvdata->mode)) { in cntr_val_show()
943 if (!local_read(&drvdata->mode)) { in seq_curr_state_show()
/kernel/linux/linux-5.10/Documentation/core-api/
Dlocal_ops.rst121 the data seen by local_read across CPUs must be considered to be out of order
126 sum += local_read(&per_cpu(counters, cpu));
128 If you want to use a remote local_read to synchronize access to a resource
178 local_read(&per_cpu(counters, cpu)));
/kernel/linux/linux-5.10/arch/x86/events/intel/
Dbts.c152 index = local_read(&buf->head); in bts_config_buffer()
479 old_head = local_read(&buf->head); in intel_bts_interrupt()
483 if (old_head == local_read(&buf->head)) in intel_bts_interrupt()
Dpt.c1611 to = local_read(&buf->data_size); in pt_event_snapshot_aux()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dlocal.h20 static __inline__ long local_read(const local_t *l) in local_read() function
/kernel/linux/linux-5.10/arch/mips/math-emu/
Dme-debugfs.c25 sum += local_read(pv); in fpuemu_stat_get()
/kernel/linux/linux-5.10/include/linux/qed/
Dqed_rdma_if.h235 bool local_read; member
/kernel/linux/linux-5.10/block/
Dblk-iocost.c1527 u32 this_met = local_read(&stat->missed[rw].nr_met); in ioc_lat_stat()
1528 u32 this_missed = local_read(&stat->missed[rw].nr_missed); in ioc_lat_stat()
/kernel/linux/linux-5.10/drivers/infiniband/hw/qedr/
Dverbs.c2998 mr->hw_mr.local_read = 1; in qedr_reg_user_mr()
3093 mr->hw_mr.local_read = 1; in __qedr_alloc_mr()
3222 mr->hw_mr.local_read = 1; in qedr_get_dma_mr()
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
Dqed_rdma.c1544 params->local_read); in qed_rdma_register_tid()