/Linux-v5.10/include/sound/ |
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-v5.10/drivers/net/ethernet/aquantia/atlantic/macsec/ |
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 …]
|
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-v5.10/sound/isa/sb/ |
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 = from_timer(rec, t, timer); in emu8k_pcm_timer_func() local 188 spin_lock(&rec->timer_lock); in emu8k_pcm_timer_func() 190 ptr = emu8k_get_curpos(rec, 0); in emu8k_pcm_timer_func() 191 if (ptr < rec->last_ptr) in emu8k_pcm_timer_func() 192 delta = ptr + rec->buf_size - rec->last_ptr; in emu8k_pcm_timer_func() 194 delta = ptr - rec->last_ptr; in emu8k_pcm_timer_func() 195 rec->period_pos += delta; in emu8k_pcm_timer_func() [all …]
|
/Linux-v5.10/tools/perf/ |
D | builtin-record.c | 123 static bool switch_output_signal(struct record *rec) in switch_output_signal() argument 125 return rec->switch_output.signal && in switch_output_signal() 129 static bool switch_output_size(struct record *rec) in switch_output_size() argument 131 return rec->switch_output.size && in switch_output_size() 133 (rec->bytes_written >= rec->switch_output.size); in switch_output_size() 136 static bool switch_output_time(struct record *rec) in switch_output_time() argument 138 return rec->switch_output.time && in switch_output_time() 142 static bool record__output_max_size_exceeded(struct record *rec) in record__output_max_size_exceeded() argument 144 return rec->output_max_size && in record__output_max_size_exceeded() 145 (rec->bytes_written >= rec->output_max_size); in record__output_max_size_exceeded() [all …]
|
/Linux-v5.10/drivers/s390/scsi/ |
D | zfcp_dbf.c | 75 struct zfcp_dbf_hba *rec = &dbf->hba_buf; in zfcp_dbf_hba_fsf_res() local 79 memset(rec, 0, sizeof(*rec)); in zfcp_dbf_hba_fsf_res() 81 memcpy(rec->tag, tag, ZFCP_DBF_TAG_LEN); in zfcp_dbf_hba_fsf_res() 82 rec->id = ZFCP_DBF_HBA_RES; in zfcp_dbf_hba_fsf_res() 83 rec->fsf_req_id = req->req_id; in zfcp_dbf_hba_fsf_res() 84 rec->fsf_req_status = req->status; in zfcp_dbf_hba_fsf_res() 85 rec->fsf_cmd = q_head->fsf_command; in zfcp_dbf_hba_fsf_res() 86 rec->fsf_seq_no = q_pref->req_seq_no; in zfcp_dbf_hba_fsf_res() 87 rec->u.res.req_issued = req->issued; in zfcp_dbf_hba_fsf_res() 88 rec->u.res.prot_status = q_pref->prot_status; in zfcp_dbf_hba_fsf_res() [all …]
|
/Linux-v5.10/sound/core/seq/oss/ |
D | seq_oss_synth.c | 93 struct seq_oss_synth *rec; in snd_seq_oss_synth_probe() local 97 rec = kzalloc(sizeof(*rec), GFP_KERNEL); in snd_seq_oss_synth_probe() 98 if (!rec) in snd_seq_oss_synth_probe() 100 rec->seq_device = -1; in snd_seq_oss_synth_probe() 101 rec->synth_type = reg->type; in snd_seq_oss_synth_probe() 102 rec->synth_subtype = reg->subtype; in snd_seq_oss_synth_probe() 103 rec->nr_voices = reg->nvoices; in snd_seq_oss_synth_probe() 104 rec->oper = reg->oper; in snd_seq_oss_synth_probe() 105 rec->private_data = reg->private_data; in snd_seq_oss_synth_probe() 106 rec->opened = 0; in snd_seq_oss_synth_probe() [all …]
|
D | seq_oss_timer.c | 35 struct seq_oss_timer *rec; in snd_seq_oss_timer_new() local 37 rec = kzalloc(sizeof(*rec), GFP_KERNEL); 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 …]
|
D | seq_oss_readq.c | 91 union evrec rec; in snd_seq_oss_readq_puts() local 94 memset(&rec, 0, sizeof(rec)); in snd_seq_oss_readq_puts() 95 rec.c[0] = SEQ_MIDIPUTC; in snd_seq_oss_readq_puts() 96 rec.c[2] = dev; in snd_seq_oss_readq_puts() 99 rec.c[1] = *data++; in snd_seq_oss_readq_puts() 100 result = snd_seq_oss_readq_put_event(q, &rec); in snd_seq_oss_readq_puts() 169 snd_seq_oss_readq_pick(struct seq_oss_readq *q, union evrec *rec) in snd_seq_oss_readq_pick() argument 173 memcpy(rec, &q->q[q->head], sizeof(*rec)); in snd_seq_oss_readq_pick() 219 union evrec rec; in snd_seq_oss_readq_put_timestamp() local 220 memset(&rec, 0, sizeof(rec)); in snd_seq_oss_readq_put_timestamp() [all …]
|
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() 66 if (copy_to_user(buf, &rec, ev_len)) { in snd_seq_oss_read() 87 union evrec rec; in snd_seq_oss_write() local 93 if (copy_from_user(&rec, buf, SHORT_EVENT_SIZE)) { in snd_seq_oss_write() 97 if (rec.s.code == SEQ_FULLSIZE) { in snd_seq_oss_write() 103 fmt = (*(unsigned short *)rec.c) & 0xffff; in snd_seq_oss_write() [all …]
|
/Linux-v5.10/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_i2c.c | 44 struct amdgpu_i2c_bus_rec *rec = &i2c->rec; in amdgpu_i2c_pre_xfer() local 50 if (rec->hw_capable) { in amdgpu_i2c_pre_xfer() 51 temp = RREG32(rec->mask_clk_reg); in amdgpu_i2c_pre_xfer() 53 WREG32(rec->mask_clk_reg, temp); in amdgpu_i2c_pre_xfer() 57 temp = RREG32(rec->a_clk_reg) & ~rec->a_clk_mask; in amdgpu_i2c_pre_xfer() 58 WREG32(rec->a_clk_reg, temp); in amdgpu_i2c_pre_xfer() 60 temp = RREG32(rec->a_data_reg) & ~rec->a_data_mask; in amdgpu_i2c_pre_xfer() 61 WREG32(rec->a_data_reg, temp); in amdgpu_i2c_pre_xfer() 64 temp = RREG32(rec->en_clk_reg) & ~rec->en_clk_mask; in amdgpu_i2c_pre_xfer() 65 WREG32(rec->en_clk_reg, temp); in amdgpu_i2c_pre_xfer() [all …]
|
/Linux-v5.10/drivers/usb/misc/ |
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 …]
|
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-v5.10/drivers/gpu/drm/radeon/ |
D | radeon_i2c.c | 97 struct radeon_i2c_bus_rec *rec = &i2c->rec; in pre_xfer() local 106 if (rec->hw_capable) { in pre_xfer() 119 if (rec->a_clk_reg == reg) { in pre_xfer() 131 if (ASIC_IS_DCE3(rdev) && rec->hw_capable) { in pre_xfer() 132 temp = RREG32(rec->mask_clk_reg); in pre_xfer() 134 WREG32(rec->mask_clk_reg, temp); in pre_xfer() 138 temp = RREG32(rec->a_clk_reg) & ~rec->a_clk_mask; in pre_xfer() 139 WREG32(rec->a_clk_reg, temp); in pre_xfer() 141 temp = RREG32(rec->a_data_reg) & ~rec->a_data_mask; in pre_xfer() 142 WREG32(rec->a_data_reg, temp); in pre_xfer() [all …]
|
/Linux-v5.10/include/rdma/ |
D | ib_sa.h | 192 sa_conv_pathrec_to_gid_type(struct sa_path_rec *rec) in sa_conv_pathrec_to_gid_type() argument 194 switch (rec->rec_type) { in sa_conv_pathrec_to_gid_type() 426 u8 port_num, struct sa_path_rec *rec, 435 struct ib_sa_service_rec *rec, 444 struct ib_sa_mcmember_rec rec; member 481 struct ib_sa_mcmember_rec *rec, 510 union ib_gid *mgid, struct ib_sa_mcmember_rec *rec); 517 struct ib_sa_mcmember_rec *rec, 523 struct sa_path_rec *rec, 531 void ib_sa_pack_path(struct sa_path_rec *rec, void *attribute); [all …]
|
/Linux-v5.10/samples/bpf/ |
D | xdp_monitor_user.c | 183 static bool map_collect_record(int fd, __u32 key, struct record *rec) in map_collect_record() argument 200 rec->timestamp = gettime(); in map_collect_record() 204 rec->cpu[i].processed = values[i].processed; in map_collect_record() 206 rec->cpu[i].dropped = values[i].dropped; in map_collect_record() 208 rec->cpu[i].info = values[i].info; in map_collect_record() 210 rec->cpu[i].err = values[i].err; in map_collect_record() 213 rec->total.processed = sum_processed; in map_collect_record() 214 rec->total.dropped = sum_dropped; in map_collect_record() 215 rec->total.info = sum_info; in map_collect_record() 216 rec->total.err = sum_err; in map_collect_record() [all …]
|
D | xdp_redirect_cpu_kern.c | 208 struct datarec *rec; in xdp_prognum0_no_touch() local 220 rec = bpf_map_lookup_elem(&rx_cnt, &key); in xdp_prognum0_no_touch() 221 if (!rec) in xdp_prognum0_no_touch() 223 rec->processed++; in xdp_prognum0_no_touch() 226 rec->issue++; in xdp_prognum0_no_touch() 239 struct datarec *rec; in xdp_prognum1_touch_data() local 256 rec = bpf_map_lookup_elem(&rx_cnt, &key); in xdp_prognum1_touch_data() 257 if (!rec) in xdp_prognum1_touch_data() 259 rec->processed++; in xdp_prognum1_touch_data() 264 rec->dropped++; in xdp_prognum1_touch_data() [all …]
|
D | xdp_monitor_kern.c | 163 struct datarec *rec; in trace_xdp_cpumap_enqueue() local 168 rec = bpf_map_lookup_elem(&cpumap_enqueue_cnt, &to_cpu); in trace_xdp_cpumap_enqueue() 169 if (!rec) in trace_xdp_cpumap_enqueue() 171 rec->processed += ctx->processed; in trace_xdp_cpumap_enqueue() 172 rec->dropped += ctx->drops; in trace_xdp_cpumap_enqueue() 176 rec->info += 1; in trace_xdp_cpumap_enqueue() 197 struct datarec *rec; in trace_xdp_cpumap_kthread() local 200 rec = bpf_map_lookup_elem(&cpumap_kthread_cnt, &key); in trace_xdp_cpumap_kthread() 201 if (!rec) in trace_xdp_cpumap_kthread() 203 rec->processed += ctx->processed; in trace_xdp_cpumap_kthread() [all …]
|
D | xdp_redirect_cpu_user.c | 198 static bool map_collect_percpu(int fd, __u32 key, struct record *rec) in map_collect_percpu() argument 217 rec->timestamp = gettime(); in map_collect_percpu() 221 rec->cpu[i].processed = values[i].processed; in map_collect_percpu() 223 rec->cpu[i].dropped = values[i].dropped; in map_collect_percpu() 225 rec->cpu[i].issue = values[i].issue; in map_collect_percpu() 227 rec->cpu[i].xdp_pass = values[i].xdp_pass; in map_collect_percpu() 229 rec->cpu[i].xdp_drop = values[i].xdp_drop; in map_collect_percpu() 231 rec->cpu[i].xdp_redirect = values[i].xdp_redirect; in map_collect_percpu() 234 rec->total.processed = sum_processed; in map_collect_percpu() 235 rec->total.dropped = sum_dropped; in map_collect_percpu() [all …]
|
/Linux-v5.10/include/linux/ |
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()
|
D | pstore.h | 236 pstore_ftrace_encode_cpu(struct pstore_ftrace_record *rec, unsigned int cpu) in pstore_ftrace_encode_cpu() argument 238 rec->ip |= cpu; in pstore_ftrace_encode_cpu() 242 pstore_ftrace_decode_cpu(struct pstore_ftrace_record *rec) in pstore_ftrace_decode_cpu() argument 244 return rec->ip & PSTORE_CPU_IN_IP; in pstore_ftrace_decode_cpu() 248 pstore_ftrace_read_timestamp(struct pstore_ftrace_record *rec) in pstore_ftrace_read_timestamp() argument 250 return rec->ts; in pstore_ftrace_read_timestamp() 254 pstore_ftrace_write_timestamp(struct pstore_ftrace_record *rec, u64 val) in pstore_ftrace_write_timestamp() argument 256 rec->ts = val; in pstore_ftrace_write_timestamp() 260 pstore_ftrace_encode_cpu(struct pstore_ftrace_record *rec, unsigned int cpu) in pstore_ftrace_encode_cpu() argument 262 rec->ts &= ~(TS_CPU_MASK); in pstore_ftrace_encode_cpu() [all …]
|
/Linux-v5.10/sound/ppc/ |
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-v5.10/tools/perf/jvmti/ |
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-v5.10/fs/hfs/ |
D | inode.c | 291 hfs_cat_rec *rec; member 297 hfs_cat_rec *rec; in hfs_test_inode() local 299 rec = idata->rec; in hfs_test_inode() 300 switch (rec->type) { in hfs_test_inode() 302 return inode->i_ino == be32_to_cpu(rec->dir.DirID); in hfs_test_inode() 304 return inode->i_ino == be32_to_cpu(rec->file.FlNum); in hfs_test_inode() 318 hfs_cat_rec *rec; in hfs_read_inode() local 337 rec = idata->rec; in hfs_read_inode() 338 switch (rec->type) { in hfs_read_inode() 341 hfs_inode_read_fork(inode, rec->file.ExtRec, rec->file.LgLen, in hfs_read_inode() [all …]
|
/Linux-v5.10/arch/arm/kernel/ |
D | ftrace.c | 49 static unsigned long ftrace_nop_replace(struct dyn_ftrace *rec) in ftrace_nop_replace() argument 54 static unsigned long adjust_address(struct dyn_ftrace *rec, unsigned long addr) in adjust_address() argument 123 int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) in ftrace_make_call() argument 126 unsigned long ip = rec->ip; in ftrace_make_call() 128 old = ftrace_nop_replace(rec); in ftrace_make_call() 130 new = ftrace_call_replace(ip, adjust_address(rec, addr)); in ftrace_make_call() 132 return ftrace_modify_code(rec->ip, old, new, true); in ftrace_make_call() 137 int ftrace_modify_call(struct dyn_ftrace *rec, unsigned long old_addr, in ftrace_modify_call() argument 141 unsigned long ip = rec->ip; in ftrace_modify_call() 143 old = ftrace_call_replace(ip, adjust_address(rec, old_addr)); in ftrace_modify_call() [all …]
|