Home
last modified time | relevance | path

Searched refs:rec (Results 1 – 25 of 291) sorted by relevance

12345678910>>...12

/OK3568_Linux_fs/kernel/drivers/net/ethernet/aquantia/atlantic/macsec/
H A Dmacsec_api.c263 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 Dmacsec_api.h54 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 …]
/OK3568_Linux_fs/kernel/include/sound/
H A Dpcm-indirect.h28 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 …]
/OK3568_Linux_fs/kernel/sound/isa/sb/
H A Demu8000_pcm.c171 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 …]
/OK3568_Linux_fs/kernel/tools/perf/
H A Dbuiltin-record.c123 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 …]
/OK3568_Linux_fs/kernel/drivers/s390/scsi/
H A Dzfcp_dbf.c75 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 …]
/OK3568_Linux_fs/kernel/sound/core/seq/oss/
H A Dseq_oss_synth.c93 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 …]
H A Dseq_oss_timer.c35 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 …]
/OK3568_Linux_fs/u-boot/common/
H A Dbootstage.c70 struct bootstage_record *rec; in find_id() local
73 for (rec = data->record, end = rec + data->rec_count; rec < end; in find_id()
74 rec++) { in find_id()
75 if (rec->id == id) in find_id()
76 return rec; in find_id()
85 struct bootstage_record *rec; in ensure_id() local
87 rec = find_id(data, id); in ensure_id()
88 if (!rec && data->rec_count < RECORD_COUNT) { in ensure_id()
89 rec = &data->record[data->rec_count++]; in ensure_id()
90 rec->id = id; in ensure_id()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_i2c.c44 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 …]
/OK3568_Linux_fs/kernel/drivers/usb/misc/
H A Demi26.c76 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 Demi62.c84 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 …]
/OK3568_Linux_fs/external/xserver/Xext/
H A Dxselinux_hooks.c210 SELinuxLabelResource(XaceResourceAccessRec * rec, SELinuxSubjectRec * subj, in SELinuxLabelResource() argument
217 if (rec->rtype & RC_DRAWABLE && subj->win_create_sid) { in SELinuxLabelResource()
222 if (rec->parent) in SELinuxLabelResource()
223 offset = dixLookupPrivateOffset(rec->ptype); in SELinuxLabelResource()
225 if (rec->parent && offset >= 0) { in SELinuxLabelResource()
227 PrivateRec **privatePtr = DEVPRIV_AT(rec->parent, offset); in SELinuxLabelResource()
334 XaceDeviceAccessRec *rec = calldata; in SELinuxDevice() local
337 SELinuxAuditRec auditdata = {.client = rec->client,.dev = rec->dev }; in SELinuxDevice()
341 subj = dixLookupPrivate(&rec->client->devPrivates, subjectKey); in SELinuxDevice()
342 obj = dixLookupPrivate(&rec->dev->devPrivates, objectKey); in SELinuxDevice()
[all …]
H A Dsecurity.c697 XaceDeviceAccessRec *rec = calldata; in SecurityDevice() local
699 Mask requested = rec->access_mode; in SecurityDevice()
702 subj = dixLookupPrivate(&rec->client->devPrivates, stateKey); in SecurityDevice()
705 if (rec->dev != inputInfo.keyboard) in SecurityDevice()
711 "%s\n", rec->client->index, in SecurityDevice()
712 SecurityLookupRequestName(rec->client)); in SecurityDevice()
713 rec->status = BadAccess; in SecurityDevice()
741 XaceResourceAccessRec *rec = calldata; in SecurityResource() local
743 int cid = CLIENT_ID(rec->id); in SecurityResource()
744 Mask requested = rec->access_mode; in SecurityResource()
[all …]
H A Dxselinux_label.c57 SELinuxArrayGet(SELinuxArrayRec * rec, unsigned key) in SELinuxArrayGet() argument
59 return (rec->size > key) ? rec->array[key] : 0; in SELinuxArrayGet()
63 SELinuxArraySet(SELinuxArrayRec * rec, unsigned key, void *val) in SELinuxArraySet() argument
65 if (key >= rec->size) { in SELinuxArraySet()
67 rec->array = reallocarray(rec->array, key + 1, sizeof(val)); in SELinuxArraySet()
68 if (!rec->array) in SELinuxArraySet()
70 memset(rec->array + rec->size, 0, (key - rec->size + 1) * sizeof(val)); in SELinuxArraySet()
71 rec->size = key + 1; in SELinuxArraySet()
74 rec->array[key] = val; in SELinuxArraySet()
79 SELinuxArrayFree(SELinuxArrayRec * rec, int free_elements) in SELinuxArrayFree() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/radeon/
H A Dradeon_i2c.c97 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 …]
/OK3568_Linux_fs/kernel/include/rdma/
H A Dib_sa.h192 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 …]
/OK3568_Linux_fs/kernel/samples/bpf/
H A Dxdp_monitor_user.c183 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 …]
H A Dxdp_redirect_cpu_kern.c208 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 …]
H A Dxdp_monitor_kern.c163 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 …]
/OK3568_Linux_fs/kernel/sound/ppc/
H A Dpmac.c50 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 …]
/OK3568_Linux_fs/kernel/include/linux/
H A Dihex.h31 __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()
H A Dpstore.h242 pstore_ftrace_encode_cpu(struct pstore_ftrace_record *rec, unsigned int cpu) in pstore_ftrace_encode_cpu() argument
244 rec->ip |= cpu; in pstore_ftrace_encode_cpu()
248 pstore_ftrace_decode_cpu(struct pstore_ftrace_record *rec) in pstore_ftrace_decode_cpu() argument
250 return rec->ip & PSTORE_CPU_IN_IP; in pstore_ftrace_decode_cpu()
254 pstore_ftrace_read_timestamp(struct pstore_ftrace_record *rec) in pstore_ftrace_read_timestamp() argument
256 return rec->ts; in pstore_ftrace_read_timestamp()
260 pstore_ftrace_write_timestamp(struct pstore_ftrace_record *rec, u64 val) in pstore_ftrace_write_timestamp() argument
262 rec->ts = val; in pstore_ftrace_write_timestamp()
266 pstore_ftrace_encode_cpu(struct pstore_ftrace_record *rec, unsigned int cpu) in pstore_ftrace_encode_cpu() argument
268 rec->ts &= ~(TS_CPU_MASK); in pstore_ftrace_encode_cpu()
[all …]
/OK3568_Linux_fs/kernel/tools/perf/jvmti/
H A Djvmti_agent.c333 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 …]
/OK3568_Linux_fs/kernel/fs/hfs/
H A Dinode.c291 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 …]

12345678910>>...12