| /linux/drivers/net/ethernet/aquantia/atlantic/macsec/ |
| H A D | macsec_api.c | 263 const struct aq_mss_ingress_prectlf_record *rec, in set_ingress_prectlf_record() argument 273 packed_record[0] = rec->sa_da[0] & 0xFFFF; in set_ingress_prectlf_record() 274 packed_record[1] = (rec->sa_da[0] >> 16) & 0xFFFF; in set_ingress_prectlf_record() 275 packed_record[2] = rec->sa_da[1] & 0xFFFF; in set_ingress_prectlf_record() 276 packed_record[3] = rec->eth_type & 0xFFFF; in set_ingress_prectlf_record() 277 packed_record[4] = rec->match_mask & 0xFFFF; in set_ingress_prectlf_record() 278 packed_record[5] = rec->match_type & 0xF; in set_ingress_prectlf_record() 279 packed_record[5] |= (rec->action & 0x1) << 4; in set_ingress_prectlf_record() 287 const struct aq_mss_ingress_prectlf_record *rec, in aq_mss_set_ingress_prectlf_record() argument 290 return AQ_API_CALL_SAFE(set_ingress_prectlf_record, hw, rec, in aq_mss_set_ingress_prectlf_record() [all …]
|
| H A D | macsec_api.h | 54 struct aq_mss_egress_ctlf_record *rec, 63 const struct aq_mss_egress_ctlf_record *rec, 72 struct aq_mss_egress_class_record *rec, 81 const struct aq_mss_egress_class_record *rec, 90 struct aq_mss_egress_sc_record *rec, 99 const struct aq_mss_egress_sc_record *rec, 108 struct aq_mss_egress_sa_record *rec, 117 const struct aq_mss_egress_sa_record *rec, 126 struct aq_mss_egress_sakey_record *rec, 135 const struct aq_mss_egress_sakey_record *rec, [all …]
|
| /linux/include/sound/ |
| H A D | pcm-indirect.h | 28 struct snd_pcm_indirect *rec, size_t bytes); 35 struct snd_pcm_indirect *rec, in snd_pcm_indirect_playback_transfer() argument 40 snd_pcm_sframes_t diff = appl_ptr - rec->appl_ptr; in snd_pcm_indirect_playback_transfer() 48 rec->sw_ready += (int)frames_to_bytes(runtime, diff); in snd_pcm_indirect_playback_transfer() 49 rec->appl_ptr = appl_ptr; in snd_pcm_indirect_playback_transfer() 51 qsize = rec->hw_queue_size ? rec->hw_queue_size : rec->hw_buffer_size; in snd_pcm_indirect_playback_transfer() 52 while (rec->hw_ready < qsize && rec->sw_ready > 0) { in snd_pcm_indirect_playback_transfer() 53 unsigned int hw_to_end = rec->hw_buffer_size - rec->hw_data; in snd_pcm_indirect_playback_transfer() 54 unsigned int sw_to_end = rec->sw_buffer_size - rec->sw_data; in snd_pcm_indirect_playback_transfer() 55 unsigned int bytes = qsize - rec->hw_ready; in snd_pcm_indirect_playback_transfer() [all …]
|
| /linux/tools/testing/selftests/net/bench/page_pool/ |
| H A D | time_bench.c | 111 bool time_bench_calc_stats(struct time_bench_record *rec) in time_bench_calc_stats() argument 122 if (rec->flags & TIME_BENCH_LOOP) { in time_bench_calc_stats() 123 if (rec->invoked_cnt < 1000) { in time_bench_calc_stats() 125 rec->invoked_cnt); in time_bench_calc_stats() 128 if (rec->invoked_cnt > ((1ULL << 32) - 1)) { in time_bench_calc_stats() 131 rec->invoked_cnt); in time_bench_calc_stats() 134 invoked_cnt = (uint32_t)rec->invoked_cnt; in time_bench_calc_stats() 138 if (rec->flags & TIME_BENCH_TSC) { in time_bench_calc_stats() 139 rec->tsc_interval = rec->tsc_stop - rec->tsc_start; in time_bench_calc_stats() 140 if (rec->tsc_interval == 0) { in time_bench_calc_stats() [all …]
|
| H A D | bench_page_pool_simple.c | 47 static int time_bench_for_loop(struct time_bench_record *rec, void *data) in time_bench_for_loop() argument 52 time_bench_start(rec); in time_bench_for_loop() 54 for (i = 0; i < rec->loops; i++) { in time_bench_for_loop() 58 time_bench_stop(rec, loops_cnt); in time_bench_for_loop() 62 static int time_bench_atomic_inc(struct time_bench_record *rec, void *data) in time_bench_atomic_inc() argument 70 time_bench_start(rec); in time_bench_atomic_inc() 72 for (i = 0; i < rec->loops; i++) { in time_bench_atomic_inc() 77 time_bench_stop(rec, loops_cnt); in time_bench_atomic_inc() 85 static int time_bench_lock(struct time_bench_record *rec, void *data) in time_bench_lock() argument 93 time_bench_start(rec); in time_bench_lock() [all …]
|
| H A D | time_bench.h | 64 struct time_bench_record rec; member 202 int (*func)(struct time_bench_record *rec, void *data)); 203 bool time_bench_calc_stats(struct time_bench_record *rec); 214 static __always_inline void time_bench_start(struct time_bench_record *rec) in time_bench_start() argument 217 ktime_get_real_ts64(&rec->ts_start); in time_bench_start() 218 if (rec->flags & TIME_BENCH_PMU) { in time_bench_start() 219 rec->pmc_inst_start = pmc_inst(); in time_bench_start() 220 rec->pmc_clk_start = pmc_clk(); in time_bench_start() 222 rec->tsc_start = tsc_start_clock(); in time_bench_start() 225 static __always_inline void time_bench_stop(struct time_bench_record *rec, in time_bench_stop() argument [all …]
|
| /linux/sound/isa/sb/ |
| H A D | emu8000_pcm.c | 171 static inline int emu8k_get_curpos(struct snd_emu8k_pcm *rec, int ch) in emu8k_get_curpos() argument 173 int val = EMU8000_CCCA_READ(rec->emu, ch) & 0xfffffff; in emu8k_get_curpos() 174 val -= rec->loop_start[ch] - 1; in emu8k_get_curpos() 185 struct snd_emu8k_pcm *rec = timer_container_of(rec, t, timer); in emu8k_pcm_timer_func() local 189 scoped_guard(spinlock, &rec->timer_lock) { in emu8k_pcm_timer_func() 191 ptr = emu8k_get_curpos(rec, 0); in emu8k_pcm_timer_func() 192 if (ptr < rec->last_ptr) in emu8k_pcm_timer_func() 193 delta = ptr + rec->buf_size - rec->last_ptr; in emu8k_pcm_timer_func() 195 delta = ptr - rec->last_ptr; in emu8k_pcm_timer_func() 196 rec->period_pos += delta; in emu8k_pcm_timer_func() [all …]
|
| /linux/tools/perf/ |
| H A D | builtin-record.c | 117 struct record *rec; 220 static int record__threads_enabled(struct record *rec) in record__threads_enabled() 222 return rec->opts.threads_spec; 225 static bool switch_output_signal(struct record *rec) in switch_output_signal() 227 return rec->switch_output.signal && in switch_output_signal() 231 static bool switch_output_size(struct record *rec) in switch_output_size() 233 return rec->switch_output.size && in switch_output_size() 235 (rec->bytes_written >= rec->switch_output.size); 238 static bool switch_output_time(struct record *rec) in switch_output_time() 115 struct record *rec; global() member 218 record__threads_enabled(struct record * rec) record__threads_enabled() argument 223 switch_output_signal(struct record * rec) switch_output_signal() argument 229 switch_output_size(struct record * rec) switch_output_size() argument 236 switch_output_time(struct record * rec) switch_output_time() argument 242 record__bytes_written(struct record * rec) record__bytes_written() argument 247 record__output_max_size_exceeded(struct record * rec) record__output_max_size_exceeded() argument 253 record__write(struct record * rec,struct mmap * map __maybe_unused,void * bf,size_t size) record__write() argument 399 struct record *rec; global() member 453 record__aio_push(struct record * rec,struct mmap * map,off_t * off) record__aio_push() argument 500 record__aio_mmap_read_sync(struct record * rec) record__aio_mmap_read_sync() argument 560 record__aio_enabled(struct record * rec) record__aio_enabled() argument 621 record__comp_enabled(struct record * rec) record__comp_enabled() argument 631 struct record *rec = container_of(tool, struct record, tool); process_synthesized_event() local 652 struct record *rec = to; record__pushfn() local 738 struct record *rec = container_of(tool, struct record, tool); record__process_auxtrace() local 771 record__auxtrace_mmap_read(struct record * rec,struct mmap * map) record__auxtrace_mmap_read() argument 789 record__auxtrace_mmap_read_snapshot(struct record * rec,struct mmap * map) record__auxtrace_mmap_read_snapshot() argument 808 record__auxtrace_read_snapshot_all(struct record * rec) record__auxtrace_read_snapshot_all() argument 828 record__read_auxtrace_snapshot(struct record * rec,bool on_exit) record__read_auxtrace_snapshot() argument 841 record__auxtrace_snapshot_exit(struct record * rec) record__auxtrace_snapshot_exit() argument 857 record__auxtrace_init(struct record * rec) record__auxtrace_init() argument 912 record__config_off_cpu(struct record * rec) record__config_off_cpu() argument 917 record__tracking_system_wide(struct record * rec) record__tracking_system_wide() argument 936 record__config_tracking_events(struct record * rec) record__config_tracking_events() argument 1136 record__free_thread_data(struct record * rec) record__free_thread_data() argument 1154 record__map_thread_evlist_pollfd_indexes(struct record * rec,int evlist_pollfd_index,int thread_pollfd_index) record__map_thread_evlist_pollfd_indexes() argument 1168 record__update_evlist_pollfd_from_thread(struct record * rec,struct evlist * evlist,struct record_thread * thread_data) record__update_evlist_pollfd_from_thread() argument 1192 record__dup_non_perf_events(struct record * rec,struct evlist * evlist,struct record_thread * thread_data) record__dup_non_perf_events() argument 1218 record__alloc_thread_data(struct record * rec,struct evlist * evlist) record__alloc_thread_data() argument 1282 record__mmap_evlist(struct record * rec,struct evlist * evlist) record__mmap_evlist() argument 1340 record__mmap(struct record * rec) record__mmap() argument 1345 record__open(struct record * rec) record__open() argument 1480 set_timestamp_boundary(struct record * rec,u64 sample_time) set_timestamp_boundary() argument 1495 struct record *rec = container_of(tool, struct record, tool); process_sample_event() local 1506 process_buildids(struct record * rec) process_buildids() argument 1576 record__adjust_affinity(struct record * rec,struct mmap * map) record__adjust_affinity() argument 1635 record__mmap_read_evlist(struct record * rec,struct evlist * evlist,bool overwrite,bool synch) record__mmap_read_evlist() argument 1719 record__mmap_read_all(struct record * rec,bool synch) record__mmap_read_all() argument 1799 record__init_features(struct record * rec) record__init_features() argument 1835 record__finish_output(struct record * rec) record__finish_output() argument 1865 record__synthesize_workload(struct record * rec,bool tail) record__synthesize_workload() argument 1887 write_finished_init(struct record * rec,bool tail) write_finished_init() argument 1898 record__switch_output(struct record * rec,bool at_exit) record__switch_output() argument 1971 __record__save_lost_samples(struct record * rec,struct evsel * evsel,struct perf_record_lost_samples * lost,int cpu_idx,int thread_idx,u64 lost_count,u16 misc_flag) __record__save_lost_samples() argument 1995 record__read_lost_samples(struct record * rec) record__read_lost_samples() argument 2075 record__pick_pc(struct record * rec) record__pick_pc() argument 2083 record__synthesize(struct record * rec,bool tail) record__synthesize() argument 2215 struct record *rec = data; record__process_signal_event() local 2220 record__setup_sb_evlist(struct record * rec) record__setup_sb_evlist() argument 2258 record__init_clock(struct record * rec) record__init_clock() argument 2296 hit_auxtrace_snapshot_trigger(struct record * rec) hit_auxtrace_snapshot_trigger() argument 2324 record__start_threads(struct record * rec) record__start_threads() argument 2387 record__stop_threads(struct record * rec) record__stop_threads() argument 2413 record__waking(struct record * rec) record__waking() argument 2425 __cmd_record(struct record * rec,int argc,const char ** argv) __cmd_record() argument 3040 struct record *rec = cb; perf_record_config() local 3080 struct record *rec = (struct record *)opt->value; record__parse_event_enable_time() local 3277 switch_output_size_warn(struct record * rec) switch_output_size_warn() argument 3294 switch_output_setup(struct record * rec) switch_output_setup() argument 3405 struct record *rec = container_of(tool, struct record, tool); process_timestamp_boundary() local 3731 record__free_thread_masks(struct record * rec,int nr_threads) record__free_thread_masks() argument 3742 record__alloc_thread_masks(struct record * rec,int nr_threads,int nr_bits) record__alloc_thread_masks() argument 3768 record__init_thread_cpu_masks(struct record * rec,struct perf_cpu_map * cpus) record__init_thread_cpu_masks() argument 3793 record__init_thread_masks_spec(struct record * rec,struct perf_cpu_map * cpus,const char ** maps_spec,const char ** affinity_spec,u32 nr_spec) record__init_thread_masks_spec() argument 3907 record__init_thread_core_masks(struct record * rec,struct perf_cpu_map * cpus) record__init_thread_core_masks() argument 3925 record__init_thread_package_masks(struct record * rec,struct perf_cpu_map * cpus) record__init_thread_package_masks() argument 3943 record__init_thread_numa_masks(struct record * rec,struct perf_cpu_map * cpus) record__init_thread_numa_masks() argument 3975 record__init_thread_user_masks(struct record * rec,struct perf_cpu_map * cpus) record__init_thread_user_masks() argument 4045 record__init_thread_default_masks(struct record * rec,struct perf_cpu_map * cpus) record__init_thread_default_masks() argument 4061 record__init_thread_masks(struct record * rec) record__init_thread_masks() argument 4100 struct record *rec = &record; cmd_record() local 4436 struct record *rec = &record; snapshot_sig_handler() local 4446 struct record *rec = &record; alarm_sig_handler() local [all...] |
| /linux/sound/core/seq/oss/ |
| H A D | seq_oss_synth.c | 86 struct seq_oss_synth *rec; in snd_seq_oss_synth_probe() local 89 rec = kzalloc_obj(*rec); in snd_seq_oss_synth_probe() 90 if (!rec) in snd_seq_oss_synth_probe() 92 rec->seq_device = -1; in snd_seq_oss_synth_probe() 93 rec->synth_type = reg->type; in snd_seq_oss_synth_probe() 94 rec->synth_subtype = reg->subtype; in snd_seq_oss_synth_probe() 95 rec->nr_voices = reg->nvoices; in snd_seq_oss_synth_probe() 96 rec->oper = reg->oper; in snd_seq_oss_synth_probe() 97 rec->private_data = reg->private_data; in snd_seq_oss_synth_probe() 98 rec->opened = 0; in snd_seq_oss_synth_probe() [all …]
|
| H A D | seq_oss_timer.c | 35 struct seq_oss_timer *rec; in snd_seq_oss_timer_new() local 37 rec = kzalloc_obj(*rec); in snd_seq_oss_timer_new() 38 if (rec == NULL) in snd_seq_oss_timer_new() 41 rec->dp = dp; in snd_seq_oss_timer_new() 42 rec->cur_tick = 0; in snd_seq_oss_timer_new() 43 rec->realtime = 0; in snd_seq_oss_timer_new() 44 rec->running = 0; in snd_seq_oss_timer_new() 45 rec->oss_tempo = 60; in snd_seq_oss_timer_new() 46 rec->oss_timebase = 100; in snd_seq_oss_timer_new() 47 calc_alsa_tempo(rec); in snd_seq_oss_timer_new() [all …]
|
| H A D | seq_oss_readq.c | 86 union evrec rec; 89 memset(&rec, 0, sizeof(rec)); in snd_seq_oss_readq_puts() 90 rec.c[0] = SEQ_MIDIPUTC; in snd_seq_oss_readq_puts() 91 rec.c[2] = dev; in snd_seq_oss_readq_puts() local 94 rec.c[1] = *data++; in snd_seq_oss_readq_puts() 95 result = snd_seq_oss_readq_put_event(q, &rec); in snd_seq_oss_readq_puts() 173 snd_seq_oss_readq_pick(struct seq_oss_readq *q, union evrec *rec) 177 memcpy(rec, &q->q[q->head], sizeof(*rec)); in snd_seq_oss_readq_wait() 163 snd_seq_oss_readq_pick(struct seq_oss_readq * q,union evrec * rec) snd_seq_oss_readq_pick() argument 213 union evrec rec; snd_seq_oss_readq_put_timestamp() local [all...] |
| H A D | seq_oss_rw.c | 23 static int insert_queue(struct seq_oss_devinfo *dp, union evrec *rec, struct file *opt); 36 union evrec rec; in snd_seq_oss_read() local 44 err = snd_seq_oss_readq_pick(readq, &rec); in snd_seq_oss_read() 53 err = snd_seq_oss_readq_pick(readq, &rec); in snd_seq_oss_read() 59 ev_len = ev_length(&rec); in snd_seq_oss_read() 67 if (copy_to_user(buf, &rec, ev_len)) { in snd_seq_oss_read() 88 union evrec rec; in snd_seq_oss_write() 94 if (copy_from_user(&rec, buf, SHORT_EVENT_SIZE)) { in snd_seq_oss_write() 98 if (rec.s.code == SEQ_FULLSIZE) { in snd_seq_oss_write() 104 fmt = (*(unsigned short *)rec in snd_seq_oss_write() 87 union evrec rec; snd_seq_oss_write() local 152 insert_queue(struct seq_oss_devinfo * dp,union evrec * rec,struct file * opt) insert_queue() argument [all...] |
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_i2c.c | 43 struct amdgpu_i2c_bus_rec *rec = &i2c->rec; in amdgpu_i2c_pre_xfer() local 49 if (rec->hw_capable) { in amdgpu_i2c_pre_xfer() 50 temp = RREG32(rec->mask_clk_reg); in amdgpu_i2c_pre_xfer() 52 WREG32(rec->mask_clk_reg, temp); in amdgpu_i2c_pre_xfer() 56 temp = RREG32(rec->a_clk_reg) & ~rec->a_clk_mask; in amdgpu_i2c_pre_xfer() 57 WREG32(rec->a_clk_reg, temp); in amdgpu_i2c_pre_xfer() 59 temp = RREG32(rec->a_data_reg) & ~rec->a_data_mask; in amdgpu_i2c_pre_xfer() 60 WREG32(rec->a_data_reg, temp); in amdgpu_i2c_pre_xfer() 63 temp = RREG32(rec->en_clk_reg) & ~rec->en_clk_mask; in amdgpu_i2c_pre_xfer() 64 WREG32(rec->en_clk_reg, temp); in amdgpu_i2c_pre_xfer() [all …]
|
| /linux/drivers/usb/misc/ |
| H A D | emi26.c | 76 const struct ihex_binrec *rec; in emi26_load_firmware() local 109 rec = (const struct ihex_binrec *)loader_fw->data; in emi26_load_firmware() 111 while (rec) { in emi26_load_firmware() 112 err = emi26_writememory(dev, be32_to_cpu(rec->addr), in emi26_load_firmware() 113 rec->data, be16_to_cpu(rec->len), in emi26_load_firmware() 117 rec = ihex_next_binrec(rec); in emi26_load_firmware() 129 rec = (const struct ihex_binrec *)bitstream_fw->data; in emi26_load_firmware() 132 addr = be32_to_cpu(rec->addr); in emi26_load_firmware() 135 while (rec && (i + be16_to_cpu(rec->len) < FW_LOAD_SIZE)) { in emi26_load_firmware() 136 memcpy(buf + i, rec->data, be16_to_cpu(rec->len)); in emi26_load_firmware() [all …]
|
| H A D | emi62.c | 84 const struct ihex_binrec *rec; in emi62_load_firmware() local 115 rec = (const struct ihex_binrec *)loader_fw->data; in emi62_load_firmware() 118 while (rec) { in emi62_load_firmware() 119 err = emi62_writememory(dev, be32_to_cpu(rec->addr), in emi62_load_firmware() 120 rec->data, be16_to_cpu(rec->len), in emi62_load_firmware() 124 rec = ihex_next_binrec(rec); in emi62_load_firmware() 136 rec = (const struct ihex_binrec *)bitstream_fw->data; in emi62_load_firmware() 139 addr = be32_to_cpu(rec->addr); in emi62_load_firmware() 142 while (rec && (i + be16_to_cpu(rec->len) < FW_LOAD_SIZE)) { in emi62_load_firmware() 143 memcpy(buf + i, rec->data, be16_to_cpu(rec->len)); in emi62_load_firmware() [all …]
|
| /linux/samples/bpf/ |
| H A D | xdp_sample.bpf.c | 70 struct datarec *rec; in xdp_redirect_collect_stat() local 79 rec = bpf_map_lookup_elem(&redir_err_cnt, &idx); in xdp_redirect_collect_stat() 80 if (!rec) in xdp_redirect_collect_stat() 83 NO_TEAR_INC(rec->dropped); in xdp_redirect_collect_stat() 85 NO_TEAR_INC(rec->processed); in xdp_redirect_collect_stat() 132 struct datarec *rec; in BPF_PROG() local 139 rec = bpf_map_lookup_elem(&cpumap_enqueue_cnt, &idx); in BPF_PROG() 140 if (!rec) in BPF_PROG() 142 NO_TEAR_ADD(rec->processed, processed); in BPF_PROG() 143 NO_TEAR_ADD(rec->dropped, drops); in BPF_PROG() [all …]
|
| H A D | xdp_sample_user.c | 340 static void map_collect_percpu(struct datarec *values, struct record *rec) in map_collect_percpu() argument 353 rec->timestamp = gettime(); in map_collect_percpu() 357 rec->cpu[i].processed = READ_ONCE(values[i].processed); in map_collect_percpu() 358 rec->cpu[i].dropped = READ_ONCE(values[i].dropped); in map_collect_percpu() 359 rec->cpu[i].issue = READ_ONCE(values[i].issue); in map_collect_percpu() 360 rec->cpu[i].xdp_pass = READ_ONCE(values[i].xdp_pass); in map_collect_percpu() 361 rec->cpu[i].xdp_drop = READ_ONCE(values[i].xdp_drop); in map_collect_percpu() 362 rec->cpu[i].xdp_redirect = READ_ONCE(values[i].xdp_redirect); in map_collect_percpu() 364 sum_processed += rec->cpu[i].processed; in map_collect_percpu() 365 sum_dropped += rec->cpu[i].dropped; in map_collect_percpu() [all …]
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | radeon_i2c.c | 89 struct radeon_i2c_bus_rec *rec = &i2c->rec; in pre_xfer() local 98 if (rec->hw_capable) { in pre_xfer() 111 if (rec->a_clk_reg == reg) { in pre_xfer() 123 if (ASIC_IS_DCE3(rdev) && rec->hw_capable) { in pre_xfer() 124 temp = RREG32(rec->mask_clk_reg); in pre_xfer() 126 WREG32(rec->mask_clk_reg, temp); in pre_xfer() 130 temp = RREG32(rec->a_clk_reg) & ~rec->a_clk_mask; in pre_xfer() 131 WREG32(rec->a_clk_reg, temp); in pre_xfer() 133 temp = RREG32(rec->a_data_reg) & ~rec->a_data_mask; in pre_xfer() 134 WREG32(rec->a_data_reg, temp); in pre_xfer() [all …]
|
| /linux/arch/powerpc/kernel/trace/ |
| H A D | ftrace.c | 150 static unsigned long ftrace_get_ool_stub(struct dyn_ftrace *rec) in ftrace_get_ool_stub() argument 153 return rec->arch.ool_stub; in ftrace_get_ool_stub() 159 static int ftrace_get_call_inst(struct dyn_ftrace *rec, unsigned long addr, ppc_inst_t *call_inst) in ftrace_get_call_inst() argument 165 ip = ftrace_get_ool_stub(rec) + MCOUNT_INSN_SIZE; /* second instruction in stub */ in ftrace_get_call_inst() 167 ip = rec->ip; in ftrace_get_call_inst() 174 ip, rec->ip, addr); in ftrace_get_call_inst() 190 pr_err("0x%lx (0x%lx): No ftrace stubs reachable\n", ip, rec->ip); in ftrace_get_call_inst() 198 static int ftrace_init_ool_stub(struct module *mod, struct dyn_ftrace *rec) in ftrace_init_ool_stub() argument 217 WARN_ON(rec->arch.ool_stub); in ftrace_init_ool_stub() 219 if (is_kernel_inittext(rec->ip)) { in ftrace_init_ool_stub() [all …]
|
| /linux/sound/ppc/ |
| H A D | pmac.c | 50 static int snd_pmac_dbdma_alloc(struct snd_pmac *chip, struct pmac_dbdma *rec, int size) in snd_pmac_dbdma_alloc() argument 54 rec->space = dma_alloc_coherent(&chip->pdev->dev, rsize, in snd_pmac_dbdma_alloc() 55 &rec->dma_base, GFP_KERNEL); in snd_pmac_dbdma_alloc() 56 if (rec->space == NULL) in snd_pmac_dbdma_alloc() 58 rec->size = size; in snd_pmac_dbdma_alloc() 59 memset(rec->space, 0, rsize); in snd_pmac_dbdma_alloc() 60 rec->cmds = (void __iomem *)DBDMA_ALIGN(rec->space); in snd_pmac_dbdma_alloc() 61 rec->addr = rec->dma_base + (unsigned long)((char *)rec->cmds - (char *)rec->space); in snd_pmac_dbdma_alloc() 66 static void snd_pmac_dbdma_free(struct snd_pmac *chip, struct pmac_dbdma *rec) in snd_pmac_dbdma_free() argument 68 if (rec->space) { in snd_pmac_dbdma_free() [all …]
|
| /linux/include/linux/ |
| H A D | pstore.h | 240 pstore_ftrace_encode_cpu(struct pstore_ftrace_record *rec, unsigned int cpu) in pstore_ftrace_encode_cpu() argument 242 rec->ip |= cpu; in pstore_ftrace_encode_cpu() 246 pstore_ftrace_decode_cpu(struct pstore_ftrace_record *rec) in pstore_ftrace_decode_cpu() argument 248 return rec->ip & PSTORE_CPU_IN_IP; in pstore_ftrace_decode_cpu() 252 pstore_ftrace_read_timestamp(struct pstore_ftrace_record *rec) in pstore_ftrace_read_timestamp() argument 254 return rec->ts; in pstore_ftrace_read_timestamp() 258 pstore_ftrace_write_timestamp(struct pstore_ftrace_record *rec, u64 val) in pstore_ftrace_write_timestamp() argument 260 rec->ts = val; in pstore_ftrace_write_timestamp() 264 pstore_ftrace_encode_cpu(struct pstore_ftrace_record *rec, unsigned int cpu) in pstore_ftrace_encode_cpu() argument 266 rec->ts &= ~(TS_CPU_MASK); in pstore_ftrace_encode_cpu() [all …]
|
| H A D | ihex.h | 31 __ihex_next_binrec(const struct ihex_binrec *rec) in __ihex_next_binrec() argument 33 const void *p = rec; in __ihex_next_binrec() 35 return p + ALIGN(ihex_binrec_size(rec), 4); in __ihex_next_binrec() 39 ihex_next_binrec(const struct ihex_binrec *rec) in ihex_next_binrec() argument 41 rec = __ihex_next_binrec(rec); in ihex_next_binrec() 43 return be16_to_cpu(rec->len) ? rec : NULL; in ihex_next_binrec() 49 const struct ihex_binrec *end, *rec; in ihex_validate_fw() local 51 rec = (const void *)fw->data; in ihex_validate_fw() 54 for (; rec <= end; rec = __ihex_next_binrec(rec)) { in ihex_validate_fw() 56 if (rec == end && !be16_to_cpu(rec->len)) in ihex_validate_fw()
|
| /linux/tools/perf/jvmti/ |
| H A D | jvmti_agent.c | 333 struct jr_code_close rec; in jvmti_close() local 341 rec.p.id = JIT_CODE_CLOSE; in jvmti_close() 342 rec.p.total_size = sizeof(rec); in jvmti_close() 344 rec.p.timestamp = perf_get_timestamp(); in jvmti_close() 346 if (!fwrite(&rec, sizeof(rec), 1, fp)) in jvmti_close() 363 struct jr_code_load rec; in jvmti_write_code() local 379 rec.p.id = JIT_CODE_LOAD; in jvmti_write_code() 380 rec.p.total_size = sizeof(rec) + sym_len; in jvmti_write_code() 381 rec.p.timestamp = perf_get_timestamp(); in jvmti_write_code() 383 rec.code_size = size; in jvmti_write_code() [all …]
|
| /linux/fs/ntfs3/ |
| H A D | record.c | 37 struct MFT_REC *rec = mi->mrec; in mi_new_attt_id() local 41 id = rec->next_attr_id; in mi_new_attt_id() 44 rec->next_attr_id = cpu_to_le16(free_id + 1); in mi_new_attt_id() 57 rec->next_attr_id = cpu_to_le16(max_id + 1); in mi_new_attt_id() 118 struct MFT_REC *rec = mi->mrec; in mi_read() local 133 err = ntfs_read_bh(sbi, run, vbo, &rec->rhdr, bpr, &mi->nb); in mi_read() 162 err = ntfs_read_bh(sbi, run, vbo, &rec->rhdr, bpr, &mi->nb); in mi_read() 175 if (le32_to_cpu(rec->total) != bpr) { in mi_read() 201 const struct MFT_REC *rec = mi->mrec; in mi_enum_attr() local 202 u32 used = le32_to_cpu(rec->used); in mi_enum_attr() [all …]
|
| /linux/arch/s390/kernel/ |
| H A D | ftrace.c | 76 int ftrace_init_nop(struct module *mod, struct dyn_ftrace *rec) in ftrace_init_nop() argument 107 if (copy_from_kernel_nofault(&old, (void *)rec->ip, sizeof(old))) in ftrace_init_nop() 117 tmp.rest_of_intercepted_function = rec->ip + sizeof(struct ftrace_insn); in ftrace_init_nop() 121 disp = ((char *)trampoline - (char *)rec->ip) / 2; in ftrace_init_nop() 122 insn = (struct ftrace_insn *)rec->ip; in ftrace_init_nop() 128 static struct ftrace_hotpatch_trampoline *ftrace_get_trampoline(struct dyn_ftrace *rec) in ftrace_get_trampoline() argument 135 if (copy_from_kernel_nofault(&insn, (void *)rec->ip, sizeof(insn))) in ftrace_get_trampoline() 138 trampoline = (void *)(rec->ip + disp); in ftrace_get_trampoline() 172 static int ftrace_modify_trampoline_call(struct dyn_ftrace *rec, in ftrace_modify_trampoline_call() argument 179 trampoline = ftrace_get_trampoline(rec); in ftrace_modify_trampoline_call() [all …]
|