/linux-6.1.9/include/asm-generic/ |
D | local.h | 29 #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))
|
D | local64.h | 30 #define local64_read(l) local_read(&(l)->a)
|
/linux-6.1.9/Documentation/translations/zh_CN/core-api/ |
D | local_ops.rst | 117 那些本地计数器可以从外部的CPU中读取,以求得计数的总和。请注意,local_read 123 sum += local_read(&per_cpu(counters, cpu)); 125 如果你想使用远程local_read来同步CPU之间对资源的访问,必须在写入者和读取者 172 local_read(&per_cpu(counters, cpu)));
|
/linux-6.1.9/kernel/trace/ |
D | ring_buffer.c | 636 c = local_read(&t->cnt); in __rb_time_read() 637 top = local_read(&t->top); in __rb_time_read() 638 bottom = local_read(&t->bottom); in __rb_time_read() 639 msb = local_read(&t->msb); in __rb_time_read() 640 } while (c != local_read(&t->cnt)); in __rb_time_read() 691 } while (cnt != local_read(&t->cnt)); in rb_time_set() 716 cnt = local_read(&t->cnt); in rb_time_cmpxchg() 786 commit = local_read(&page->page->commit); in verify_event() 787 write = local_read(&page->write); in verify_event() 855 nest = local_read(&cpu_buffer->committing); in ring_buffer_event_time_stamp() [all …]
|
D | trace_osnoise.c | 770 int_counter = local_read(&osn_var->int_counter); in get_int_safe_duration() 779 } while (int_counter != local_read(&osn_var->int_counter)); in get_int_safe_duration() 808 int_counter = local_read(&osn_var->int_counter); in set_int_safe_time() 816 } while (int_counter != local_read(&osn_var->int_counter)); in set_int_safe_time() 831 int_counter = local_read(&osn_var->int_counter); in copy_int_safe_time() 839 } while (int_counter != local_read(&osn_var->int_counter)); in copy_int_safe_time()
|
D | ring_buffer_benchmark.c | 124 commit = local_read(&rpage->commit) & 0xfffff; in read_page()
|
/linux-6.1.9/include/linux/ |
D | part_stat.h | 78 local_read(&(part_stat_get(part, field))) 80 local_read(&(part_stat_get_cpu(part, field, cpu)))
|
/linux-6.1.9/arch/alpha/include/asm/ |
D | local.h | 14 #define local_read(l) atomic_long_read(&(l)->a) macro 71 c = local_read(l); \
|
/linux-6.1.9/arch/loongarch/include/asm/ |
D | local.h | 19 #define local_read(l) atomic_long_read(&(l)->a) macro 75 c = local_read(l); \
|
/linux-6.1.9/kernel/events/ |
D | ring_buffer.c | 47 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() 185 have_lost = local_read(&rb->lost); in __perf_output_begin() 196 offset = head = local_read(&rb->head); in __perf_output_begin() 232 if (unlikely(head - local_read(&rb->wakeup) > rb->watermark)) in __perf_output_begin()
|
/linux-6.1.9/arch/x86/include/asm/ |
D | local.h | 16 #define local_read(l) atomic_long_read(&(l)->a) macro 140 c = local_read((l)); \
|
/linux-6.1.9/arch/mips/include/asm/ |
D | local.h | 19 #define local_read(l) atomic_long_read(&(l)->a) macro 113 c = local_read(l); \
|
/linux-6.1.9/drivers/hwtracing/coresight/ |
D | coresight-stm.c | 268 if (local_read(&drvdata->mode) == CS_MODE_SYSFS) { in stm_disable() 383 if (!(drvdata && local_read(&drvdata->mode))) in stm_generic_set_options() 418 if (!(drvdata && local_read(&drvdata->mode))) in stm_generic_packet() 525 if (!local_read(&drvdata->mode)) { in port_select_show() 551 if (local_read(&drvdata->mode)) { in port_select_store() 572 if (!local_read(&drvdata->mode)) { in port_enable_show() 598 if (local_read(&drvdata->mode)) { in port_enable_store()
|
D | coresight-etm3x-core.c | 467 if (!local_read(&drvdata->mode)) in etm_get_trace_id() 652 mode = local_read(&drvdata->mode); in etm_disable() 704 if (local_read(&etmdrvdata[cpu]->mode)) in etm_starting_cpu() 716 if (local_read(&etmdrvdata[cpu]->mode)) in etm_dying_cpu()
|
D | coresight-etm4x-core.c | 937 mode = local_read(&drvdata->mode); in etm4_disable() 1547 if (local_read(&etmdrvdata[cpu]->mode)) in etm4_starting_cpu() 1559 if (local_read(&etmdrvdata[cpu]->mode)) in etm4_dying_cpu() 1720 if (local_read(&drvdata->mode) && drvdata->save_state) in etm4_cpu_save()
|
D | coresight-etm3x-sysfs.c | 724 if (!local_read(&drvdata->mode)) { in cntr_val_show() 943 if (!local_read(&drvdata->mode)) { in seq_curr_state_show()
|
/linux-6.1.9/Documentation/core-api/ |
D | local_ops.rst | 121 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)));
|
/linux-6.1.9/arch/x86/events/intel/ |
D | bts.c | 152 index = local_read(&buf->head); in bts_config_buffer() 485 old_head = local_read(&buf->head); in intel_bts_interrupt() 489 if (old_head == local_read(&buf->head)) in intel_bts_interrupt()
|
D | pt.c | 1664 to = local_read(&buf->data_size); in pt_event_snapshot_aux()
|
/linux-6.1.9/arch/powerpc/include/asm/ |
D | local.h | 20 static __inline__ long local_read(const local_t *l) in local_read() function
|
/linux-6.1.9/arch/mips/math-emu/ |
D | me-debugfs.c | 25 sum += local_read(pv); in fpuemu_stat_get()
|
/linux-6.1.9/include/linux/qed/ |
D | qed_rdma_if.h | 235 bool local_read; member
|
/linux-6.1.9/block/ |
D | blk-iocost.c | 1568 u32 this_met = local_read(&stat->missed[rw].nr_met); in ioc_lat_stat() 1569 u32 this_missed = local_read(&stat->missed[rw].nr_missed); in ioc_lat_stat()
|
/linux-6.1.9/drivers/infiniband/hw/qedr/ |
D | verbs.c | 2995 mr->hw_mr.local_read = 1; in qedr_reg_user_mr() 3094 mr->hw_mr.local_read = 1; in __qedr_alloc_mr() 3229 mr->hw_mr.local_read = 1; in qedr_get_dma_mr()
|
/linux-6.1.9/drivers/net/ethernet/qlogic/qed/ |
D | qed_rdma.c | 1517 params->local_read); in qed_rdma_register_tid()
|