Home
last modified time | relevance | path

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

/linux-4.1.27/sound/drivers/
Dpcm-indirect2.c41 struct snd_pcm_indirect2 *rec) in snd_pcm_indirect2_stat() argument
47 int seconds = (rec->lastbytetime - rec->firstbytetime) / HZ; in snd_pcm_indirect2_stat()
51 rec->mul_elapsed, rec->mul_elapsed_real, rec->irq_occured); in snd_pcm_indirect2_stat()
53 rec->min_multiple); in snd_pcm_indirect2_stat()
56 rec->firstbytetime, rec->lastbytetime, rec->firstzerotime); in snd_pcm_indirect2_stat()
59 rec->bytes2hw, rec->bytes2hw / 2 / 2 / runtime->rate); in snd_pcm_indirect2_stat()
62 seconds, rec->bytes2hw / seconds, in snd_pcm_indirect2_stat()
63 rec->bytes2hw / 2 / 2 / seconds); in snd_pcm_indirect2_stat()
66 rec->zeros2hw, ((rec->zeros2hw / 2 / 2) * 1000) / in snd_pcm_indirect2_stat()
68 rec->zeros2hw / (rec->hw_buffer_size / 2), in snd_pcm_indirect2_stat()
[all …]
Dpcm-indirect2.h116 struct snd_pcm_indirect2 *rec,
119 struct snd_pcm_indirect2 *rec);
123 struct snd_pcm_indirect2 *rec);
128 struct snd_pcm_indirect2 *rec);
131 struct snd_pcm_indirect2 *rec,
136 struct snd_pcm_indirect2 *rec,
Dml403-ac97cr.c416 struct snd_pcm_indirect2 *rec) in snd_ml403_ac97cr_playback_ind2_zero() argument
430 rec->hw_ready = 0; in snd_ml403_ac97cr_playback_ind2_zero()
438 struct snd_pcm_indirect2 *rec, in snd_ml403_ac97cr_playback_ind2_copy() argument
447 src = (u16 *)(substream->runtime->dma_area + rec->sw_data); in snd_ml403_ac97cr_playback_ind2_copy()
458 rec->hw_ready = 1; in snd_ml403_ac97cr_playback_ind2_copy()
460 rec->hw_ready = 0; in snd_ml403_ac97cr_playback_ind2_copy()
468 struct snd_pcm_indirect2 *rec) in snd_ml403_ac97cr_capture_ind2_null() argument
488 rec->hw_ready = 0; in snd_ml403_ac97cr_capture_ind2_null()
496 struct snd_pcm_indirect2 *rec, size_t bytes) in snd_ml403_ac97cr_capture_ind2_copy() argument
504 dst = (u16 *)(substream->runtime->dma_area + rec->sw_data); in snd_ml403_ac97cr_capture_ind2_copy()
[all …]
/linux-4.1.27/include/sound/
Dpcm-indirect.h41 struct snd_pcm_indirect *rec, size_t bytes);
48 struct snd_pcm_indirect *rec, in snd_pcm_indirect_playback_transfer() argument
53 snd_pcm_sframes_t diff = appl_ptr - rec->appl_ptr; in snd_pcm_indirect_playback_transfer()
59 rec->sw_ready += (int)frames_to_bytes(runtime, diff); in snd_pcm_indirect_playback_transfer()
60 rec->appl_ptr = appl_ptr; in snd_pcm_indirect_playback_transfer()
62 qsize = rec->hw_queue_size ? rec->hw_queue_size : rec->hw_buffer_size; in snd_pcm_indirect_playback_transfer()
63 while (rec->hw_ready < qsize && rec->sw_ready > 0) { in snd_pcm_indirect_playback_transfer()
64 unsigned int hw_to_end = rec->hw_buffer_size - rec->hw_data; in snd_pcm_indirect_playback_transfer()
65 unsigned int sw_to_end = rec->sw_buffer_size - rec->sw_data; in snd_pcm_indirect_playback_transfer()
66 unsigned int bytes = qsize - rec->hw_ready; in snd_pcm_indirect_playback_transfer()
[all …]
/linux-4.1.27/sound/isa/sb/
Demu8000_pcm.c182 static inline int emu8k_get_curpos(struct snd_emu8k_pcm *rec, int ch) in emu8k_get_curpos() argument
184 int val = EMU8000_CCCA_READ(rec->emu, ch) & 0xfffffff; in emu8k_get_curpos()
185 val -= rec->loop_start[ch] - 1; in emu8k_get_curpos()
196 struct snd_emu8k_pcm *rec = (struct snd_emu8k_pcm *)data; in emu8k_pcm_timer_func() local
199 spin_lock(&rec->timer_lock); in emu8k_pcm_timer_func()
201 ptr = emu8k_get_curpos(rec, 0); in emu8k_pcm_timer_func()
202 if (ptr < rec->last_ptr) in emu8k_pcm_timer_func()
203 delta = ptr + rec->buf_size - rec->last_ptr; in emu8k_pcm_timer_func()
205 delta = ptr - rec->last_ptr; in emu8k_pcm_timer_func()
206 rec->period_pos += delta; in emu8k_pcm_timer_func()
[all …]
Demu8000_local.h32 int snd_emu8000_sample_new(struct snd_emux *rec, struct snd_sf_sample *sp,
35 int snd_emu8000_sample_free(struct snd_emux *rec, struct snd_sf_sample *sp,
37 void snd_emu8000_sample_reset(struct snd_emux *rec);
Demu8000_patch.c147 snd_emu8000_sample_new(struct snd_emux *rec, struct snd_sf_sample *sp, in snd_emu8000_sample_new() argument
158 emu = rec->hw; in snd_emu8000_sample_new()
287 snd_emu8000_sample_free(struct snd_emux *rec, struct snd_sf_sample *sp, in snd_emu8000_sample_free() argument
302 snd_emu8000_sample_reset(struct snd_emux *rec) in snd_emu8000_sample_reset() argument
304 snd_emux_terminate_all(rec); in snd_emu8000_sample_reset()
Demu8000.c666 struct soundfont_chorus_fx rec; in snd_emu8000_load_chorus_fx() local
671 if (len < (long)sizeof(rec) || copy_from_user(&rec, buf, sizeof(rec))) in snd_emu8000_load_chorus_fx()
673 chorus_parm[mode] = rec; in snd_emu8000_load_chorus_fx()
793 struct soundfont_reverb_fx rec; in snd_emu8000_load_reverb_fx() local
799 if (len < (long)sizeof(rec) || copy_from_user(&rec, buf, sizeof(rec))) in snd_emu8000_load_reverb_fx()
801 reverb_parm[mode] = rec; in snd_emu8000_load_reverb_fx()
/linux-4.1.27/drivers/s390/scsi/
Dzfcp_dbf.c73 struct zfcp_dbf_hba *rec = &dbf->hba_buf; in zfcp_dbf_hba_fsf_res() local
77 memset(rec, 0, sizeof(*rec)); in zfcp_dbf_hba_fsf_res()
79 memcpy(rec->tag, tag, ZFCP_DBF_TAG_LEN); in zfcp_dbf_hba_fsf_res()
80 rec->id = ZFCP_DBF_HBA_RES; in zfcp_dbf_hba_fsf_res()
81 rec->fsf_req_id = req->req_id; in zfcp_dbf_hba_fsf_res()
82 rec->fsf_req_status = req->status; in zfcp_dbf_hba_fsf_res()
83 rec->fsf_cmd = req->fsf_command; in zfcp_dbf_hba_fsf_res()
84 rec->fsf_seq_no = req->seq_no; in zfcp_dbf_hba_fsf_res()
85 rec->u.res.req_issued = req->issued; in zfcp_dbf_hba_fsf_res()
86 rec->u.res.prot_status = q_pref->prot_status; in zfcp_dbf_hba_fsf_res()
[all …]
Dzfcp_dbf.h262 debug_info_t *rec; member
/linux-4.1.27/sound/core/seq/oss/
Dseq_oss_synth.c105 struct seq_oss_synth *rec; in snd_seq_oss_synth_probe() local
109 rec = kzalloc(sizeof(*rec), GFP_KERNEL); in snd_seq_oss_synth_probe()
110 if (!rec) in snd_seq_oss_synth_probe()
112 rec->seq_device = -1; in snd_seq_oss_synth_probe()
113 rec->synth_type = reg->type; in snd_seq_oss_synth_probe()
114 rec->synth_subtype = reg->subtype; in snd_seq_oss_synth_probe()
115 rec->nr_voices = reg->nvoices; in snd_seq_oss_synth_probe()
116 rec->oper = reg->oper; in snd_seq_oss_synth_probe()
117 rec->private_data = reg->private_data; in snd_seq_oss_synth_probe()
118 rec->opened = 0; in snd_seq_oss_synth_probe()
[all …]
Dseq_oss_timer.c48 struct seq_oss_timer *rec; in snd_seq_oss_timer_new() local
50 rec = kzalloc(sizeof(*rec), GFP_KERNEL); in snd_seq_oss_timer_new()
51 if (rec == NULL) in snd_seq_oss_timer_new()
54 rec->dp = dp; in snd_seq_oss_timer_new()
55 rec->cur_tick = 0; in snd_seq_oss_timer_new()
56 rec->realtime = 0; in snd_seq_oss_timer_new()
57 rec->running = 0; in snd_seq_oss_timer_new()
58 rec->oss_tempo = 60; in snd_seq_oss_timer_new()
59 rec->oss_timebase = 100; in snd_seq_oss_timer_new()
60 calc_alsa_tempo(rec); in snd_seq_oss_timer_new()
[all …]
Dseq_oss_readq.c105 union evrec rec; in snd_seq_oss_readq_puts() local
108 memset(&rec, 0, sizeof(rec)); in snd_seq_oss_readq_puts()
109 rec.c[0] = SEQ_MIDIPUTC; in snd_seq_oss_readq_puts()
110 rec.c[2] = dev; in snd_seq_oss_readq_puts()
113 rec.c[1] = *data++; in snd_seq_oss_readq_puts()
114 result = snd_seq_oss_readq_put_event(q, &rec); in snd_seq_oss_readq_puts()
155 snd_seq_oss_readq_pick(struct seq_oss_readq *q, union evrec *rec) in snd_seq_oss_readq_pick() argument
159 memcpy(rec, &q->q[q->head], sizeof(*rec)); in snd_seq_oss_readq_pick()
205 union evrec rec; in snd_seq_oss_readq_put_timestamp() local
206 memset(&rec, 0, sizeof(rec)); in snd_seq_oss_readq_put_timestamp()
[all …]
Dseq_oss_rw.c36 static int insert_queue(struct seq_oss_devinfo *dp, union evrec *rec, struct file *opt);
49 union evrec rec; in snd_seq_oss_read() local
57 err = snd_seq_oss_readq_pick(readq, &rec); in snd_seq_oss_read()
66 err = snd_seq_oss_readq_pick(readq, &rec); in snd_seq_oss_read()
72 ev_len = ev_length(&rec); in snd_seq_oss_read()
79 if (copy_to_user(buf, &rec, ev_len)) { in snd_seq_oss_read()
100 union evrec rec; in snd_seq_oss_write() local
106 if (copy_from_user(&rec, buf, SHORT_EVENT_SIZE)) { in snd_seq_oss_write()
110 if (rec.s.code == SEQ_FULLSIZE) { in snd_seq_oss_write()
116 fmt = (*(unsigned short *)rec.c) & 0xffff; in snd_seq_oss_write()
[all …]
Dseq_oss_writeq.c105 union evrec *rec; in snd_seq_oss_writeq_sync() local
114 rec = (union evrec *)&ev.data; in snd_seq_oss_writeq_sync()
115 rec->t.code = SEQ_SYNCTIMER; in snd_seq_oss_writeq_sync()
116 rec->t.time = time; in snd_seq_oss_writeq_sync()
Dseq_oss_event.c44 static int set_echo_event(struct seq_oss_devinfo *dp, union evrec *rec, struct snd_seq_event *ev);
418 set_echo_event(struct seq_oss_devinfo *dp, union evrec *rec, struct snd_seq_event *ev) in set_echo_event() argument
423 memcpy(&ev->data, rec, LONG_EVENT_SIZE); in set_echo_event()
436 union evrec *rec; in snd_seq_oss_event_input() local
444 rec = (union evrec*)&ev->data; in snd_seq_oss_event_input()
445 if (rec->s.code == SEQ_SYNCTIMER) { in snd_seq_oss_event_input()
447 snd_seq_oss_writeq_wakeup(dp->writeq, rec->t.time); in snd_seq_oss_event_input()
453 snd_seq_oss_readq_put_event(dp->readq, rec); in snd_seq_oss_event_input()
Dseq_oss_readq.h49 int snd_seq_oss_readq_pick(struct seq_oss_readq *q, union evrec *rec);
Dseq_oss_event.h108 int snd_seq_oss_process_timer_event(struct seq_oss_timer *rec, union evrec *q);
Dseq_oss_init.c61 #define call_ctl(type,rec) snd_seq_kernel_client_ctl(system_client, type, rec) argument
/linux-4.1.27/drivers/usb/misc/
Demi26.c79 const struct ihex_binrec *rec; in emi26_load_firmware() local
112 rec = (const struct ihex_binrec *)loader_fw->data; in emi26_load_firmware()
114 while (rec) { in emi26_load_firmware()
115 err = emi26_writememory(dev, be32_to_cpu(rec->addr), in emi26_load_firmware()
116 rec->data, be16_to_cpu(rec->len), in emi26_load_firmware()
120 rec = ihex_next_binrec(rec); in emi26_load_firmware()
132 rec = (const struct ihex_binrec *)bitstream_fw->data; in emi26_load_firmware()
135 addr = be32_to_cpu(rec->addr); in emi26_load_firmware()
138 while (rec && (i + be16_to_cpu(rec->len) < FW_LOAD_SIZE)) { in emi26_load_firmware()
139 memcpy(buf + i, rec->data, be16_to_cpu(rec->len)); in emi26_load_firmware()
[all …]
Demi62.c87 const struct ihex_binrec *rec; in emi62_load_firmware() local
118 rec = (const struct ihex_binrec *)loader_fw->data; in emi62_load_firmware()
121 while (rec) { in emi62_load_firmware()
122 err = emi62_writememory(dev, be32_to_cpu(rec->addr), in emi62_load_firmware()
123 rec->data, be16_to_cpu(rec->len), in emi62_load_firmware()
127 rec = ihex_next_binrec(rec); in emi62_load_firmware()
139 rec = (const struct ihex_binrec *)bitstream_fw->data; in emi62_load_firmware()
142 addr = be32_to_cpu(rec->addr); in emi62_load_firmware()
145 while (rec && (i + be16_to_cpu(rec->len) < FW_LOAD_SIZE)) { in emi62_load_firmware()
146 memcpy(buf + i, rec->data, be16_to_cpu(rec->len)); in emi62_load_firmware()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/mdc/
Dmdc_lib.c141 struct mdt_rec_create *rec; in mdc_create_pack() local
146 rec = req_capsule_client_get(&req->rq_pill, &RMF_REC_REINT); in mdc_create_pack()
149 rec->cr_opcode = REINT_CREATE; in mdc_create_pack()
150 rec->cr_fsuid = uid; in mdc_create_pack()
151 rec->cr_fsgid = gid; in mdc_create_pack()
152 rec->cr_cap = cap_effective; in mdc_create_pack()
153 rec->cr_fid1 = op_data->op_fid1; in mdc_create_pack()
154 rec->cr_fid2 = op_data->op_fid2; in mdc_create_pack()
155 rec->cr_mode = mode; in mdc_create_pack()
156 rec->cr_rdev = rdev; in mdc_create_pack()
[all …]
Dmdc_request.c392 struct mdt_rec_setxattr *rec; in mdc_xattr_common() local
396 rec = req_capsule_client_get(&req->rq_pill, &RMF_REC_REINT); in mdc_xattr_common()
397 rec->sx_opcode = REINT_SETXATTR; in mdc_xattr_common()
398 rec->sx_fsuid = from_kuid(&init_user_ns, current_fsuid()); in mdc_xattr_common()
399 rec->sx_fsgid = from_kgid(&init_user_ns, current_fsgid()); in mdc_xattr_common()
400 rec->sx_cap = cfs_curproc_cap_pack(); in mdc_xattr_common()
401 rec->sx_suppgid1 = suppgid; in mdc_xattr_common()
402 rec->sx_suppgid2 = -1; in mdc_xattr_common()
403 rec->sx_fid = *fid; in mdc_xattr_common()
404 rec->sx_valid = valid | OBD_MD_FLCTIME; in mdc_xattr_common()
[all …]
/linux-4.1.27/tools/perf/
Dbuiltin-record.c50 static int record__write(struct record *rec, void *bf, size_t size) in record__write() argument
52 if (perf_data_file__write(rec->session->file, bf, size) < 0) { in record__write()
57 rec->bytes_written += size; in record__write()
66 struct record *rec = container_of(tool, struct record, tool); in process_synthesized_event() local
67 return record__write(rec, event, event->header.size); in process_synthesized_event()
70 static int record__mmap_read(struct record *rec, int idx) in record__mmap_read() argument
72 struct perf_mmap *md = &rec->evlist->mmap[idx]; in record__mmap_read()
83 rec->samples++; in record__mmap_read()
92 if (record__write(rec, buf, size) < 0) { in record__mmap_read()
102 if (record__write(rec, buf, size) < 0) { in record__mmap_read()
[all …]
/linux-4.1.27/drivers/gpu/drm/radeon/
Dradeon_i2c.c94 struct radeon_i2c_bus_rec *rec = &i2c->rec; in pre_xfer() local
103 if (rec->hw_capable) { in pre_xfer()
116 if (rec->a_clk_reg == reg) { in pre_xfer()
128 if (ASIC_IS_DCE3(rdev) && rec->hw_capable) { in pre_xfer()
129 temp = RREG32(rec->mask_clk_reg); in pre_xfer()
131 WREG32(rec->mask_clk_reg, temp); in pre_xfer()
135 temp = RREG32(rec->a_clk_reg) & ~rec->a_clk_mask; in pre_xfer()
136 WREG32(rec->a_clk_reg, temp); in pre_xfer()
138 temp = RREG32(rec->a_data_reg) & ~rec->a_data_mask; in pre_xfer()
139 WREG32(rec->a_data_reg, temp); in pre_xfer()
[all …]
Dradeon_dp_auxch.c63 int instance = chan->rec.i2c_id & 0xf; in radeon_dp_aux_transfer_native()
99 tmp = RREG32(chan->rec.mask_clk_reg); in radeon_dp_aux_transfer_native()
101 WREG32(chan->rec.mask_clk_reg, tmp); in radeon_dp_aux_transfer_native()
107 tmp |= AUX_HPD_SEL(chan->rec.hpd); in radeon_dp_aux_transfer_native()
Datombios_dp.c112 args.v1.ucChannelID = chan->rec.i2c_id; in radeon_process_aux_ch()
115 args.v2.ucHPD_ID = chan->rec.hpd; in radeon_process_aux_ch()
234 radeon_connector->ddc_bus->rec.hpd = radeon_connector->hpd.hpd; in radeon_dp_aux_init()
367 radeon_connector->ddc_bus->rec.i2c_id, 0); in radeon_dp_getsinktype()
Dradeon_display.c759 radeon_connector->ddc_bus->rec.mask_clk_reg, in radeon_print_display_setup()
760 radeon_connector->ddc_bus->rec.mask_data_reg, in radeon_print_display_setup()
761 radeon_connector->ddc_bus->rec.a_clk_reg, in radeon_print_display_setup()
762 radeon_connector->ddc_bus->rec.a_data_reg, in radeon_print_display_setup()
763 radeon_connector->ddc_bus->rec.en_clk_reg, in radeon_print_display_setup()
764 radeon_connector->ddc_bus->rec.en_data_reg, in radeon_print_display_setup()
765 radeon_connector->ddc_bus->rec.y_clk_reg, in radeon_print_display_setup()
766 radeon_connector->ddc_bus->rec.y_data_reg); in radeon_print_display_setup()
Datombios_i2c.c84 args.ucLineNumber = chan->rec.i2c_id; in radeon_process_i2c_ch()
Dradeon_mode.h203 struct radeon_i2c_bus_rec rec; member
786 struct radeon_i2c_bus_rec *rec,
791 struct radeon_i2c_bus_rec *rec,
Dradeon_connectors.c1290 (list_radeon_connector->ddc_bus->rec.i2c_id == in radeon_dvi_detect()
1291 radeon_connector->ddc_bus->rec.i2c_id)) { in radeon_dvi_detect()
1872 if (radeon_connector->ddc_bus->rec.i2c_id == i2c_bus->i2c_id) { in radeon_add_atom_connector()
/linux-4.1.27/arch/powerpc/kernel/
Dftrace.c107 struct dyn_ftrace *rec, unsigned long addr) in __ftrace_make_nop() argument
111 unsigned long ip = rec->ip; in __ftrace_make_nop()
172 struct dyn_ftrace *rec, unsigned long addr) in __ftrace_make_nop() argument
176 unsigned long ip = rec->ip; in __ftrace_make_nop()
242 struct dyn_ftrace *rec, unsigned long addr) in ftrace_make_nop() argument
244 unsigned long ip = rec->ip; in ftrace_make_nop()
265 if (!rec->arch.mod) { in ftrace_make_nop()
270 rec->arch.mod = mod; in ftrace_make_nop()
272 if (mod != rec->arch.mod) { in ftrace_make_nop()
274 rec->arch.mod, mod); in ftrace_make_nop()
[all …]
/linux-4.1.27/sound/ppc/
Dpmac.c64 static int snd_pmac_dbdma_alloc(struct snd_pmac *chip, struct pmac_dbdma *rec, int size) in snd_pmac_dbdma_alloc() argument
68 rec->space = dma_alloc_coherent(&chip->pdev->dev, rsize, in snd_pmac_dbdma_alloc()
69 &rec->dma_base, GFP_KERNEL); in snd_pmac_dbdma_alloc()
70 if (rec->space == NULL) in snd_pmac_dbdma_alloc()
72 rec->size = size; in snd_pmac_dbdma_alloc()
73 memset(rec->space, 0, rsize); in snd_pmac_dbdma_alloc()
74 rec->cmds = (void __iomem *)DBDMA_ALIGN(rec->space); in snd_pmac_dbdma_alloc()
75 rec->addr = rec->dma_base + (unsigned long)((char *)rec->cmds - (char *)rec->space); in snd_pmac_dbdma_alloc()
80 static void snd_pmac_dbdma_free(struct snd_pmac *chip, struct pmac_dbdma *rec) in snd_pmac_dbdma_free() argument
82 if (rec->space) { in snd_pmac_dbdma_free()
[all …]
Dpmac.h175 unsigned int snd_pmac_rate_index(struct snd_pmac *chip, struct pmac_stream *rec, unsigned int rate);
/linux-4.1.27/arch/x86/kernel/
Dftrace.c138 struct dyn_ftrace *rec, unsigned long addr) in ftrace_make_nop() argument
141 unsigned long ip = rec->ip; in ftrace_make_nop()
155 return ftrace_modify_code_direct(rec->ip, old, new); in ftrace_make_nop()
162 int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) in ftrace_make_call() argument
165 unsigned long ip = rec->ip; in ftrace_make_call()
171 return ftrace_modify_code_direct(rec->ip, old, new); in ftrace_make_call()
219 int ftrace_modify_call(struct dyn_ftrace *rec, unsigned long old_addr, in ftrace_modify_call() argument
324 static int add_brk_on_call(struct dyn_ftrace *rec, unsigned long addr) in add_brk_on_call() argument
327 unsigned long ip = rec->ip; in add_brk_on_call()
331 return add_break(rec->ip, old); in add_brk_on_call()
[all …]
/linux-4.1.27/include/linux/
Dihex.h25 ihex_next_binrec(const struct ihex_binrec *rec) in ihex_next_binrec() argument
27 int next = ((be16_to_cpu(rec->len) + 5) & ~3) - 2; in ihex_next_binrec()
28 rec = (void *)&rec->data[next]; in ihex_next_binrec()
30 return be16_to_cpu(rec->len) ? rec : NULL; in ihex_next_binrec()
36 const struct ihex_binrec *rec; in ihex_validate_fw() local
39 while (ofs <= fw->size - sizeof(*rec)) { in ihex_validate_fw()
40 rec = (void *)&fw->data[ofs]; in ihex_validate_fw()
43 if (!be16_to_cpu(rec->len)) in ihex_validate_fw()
47 ofs += (sizeof(*rec) + be16_to_cpu(rec->len) + 3) & ~3; in ihex_validate_fw()
Dftrace.h288 void ftrace_bug(int err, struct dyn_ftrace *rec);
355 #define ftrace_rec_count(rec) ((rec)->flags & ~FTRACE_FL_MASK) argument
426 int ftrace_update_record(struct dyn_ftrace *rec, int enable);
427 int ftrace_test_record(struct dyn_ftrace *rec, int enable);
430 unsigned long ftrace_get_addr_new(struct dyn_ftrace *rec);
431 unsigned long ftrace_get_addr_curr(struct dyn_ftrace *rec);
516 struct dyn_ftrace *rec, unsigned long addr);
538 extern int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr);
562 extern int ftrace_modify_call(struct dyn_ftrace *rec, unsigned long old_addr,
566 static inline int ftrace_modify_call(struct dyn_ftrace *rec, unsigned long old_addr, in ftrace_modify_call() argument
Dftrace_event.h426 extern int filter_match_preds(struct event_filter *filter, void *rec);
428 extern int filter_check_discard(struct ftrace_event_file *file, void *rec,
431 extern int call_filter_check_discard(struct ftrace_event_call *call, void *rec,
435 void *rec);
/linux-4.1.27/arch/arm/kernel/
Dftrace.c54 static unsigned long ftrace_nop_replace(struct dyn_ftrace *rec) in ftrace_nop_replace() argument
56 return rec->arch.old_mcount ? OLD_NOP : NOP; in ftrace_nop_replace()
59 static unsigned long adjust_address(struct dyn_ftrace *rec, unsigned long addr) in adjust_address() argument
61 if (!rec->arch.old_mcount) in adjust_address()
72 static unsigned long ftrace_nop_replace(struct dyn_ftrace *rec) in ftrace_nop_replace() argument
77 static unsigned long adjust_address(struct dyn_ftrace *rec, unsigned long addr) in adjust_address() argument
154 int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) in ftrace_make_call() argument
157 unsigned long ip = rec->ip; in ftrace_make_call()
159 old = ftrace_nop_replace(rec); in ftrace_make_call()
160 new = ftrace_call_replace(ip, adjust_address(rec, addr)); in ftrace_make_call()
[all …]
/linux-4.1.27/fs/hfs/
Dinode.c288 hfs_cat_rec *rec; member
294 hfs_cat_rec *rec; in hfs_test_inode() local
296 rec = idata->rec; in hfs_test_inode()
297 switch (rec->type) { in hfs_test_inode()
299 return inode->i_ino == be32_to_cpu(rec->dir.DirID); in hfs_test_inode()
301 return inode->i_ino == be32_to_cpu(rec->file.FlNum); in hfs_test_inode()
315 hfs_cat_rec *rec; in hfs_read_inode() local
333 rec = idata->rec; in hfs_read_inode()
334 switch (rec->type) { in hfs_read_inode()
337 hfs_inode_read_fork(inode, rec->file.ExtRec, rec->file.LgLen, in hfs_read_inode()
[all …]
Dcatalog.c36 static int hfs_cat_build_record(hfs_cat_rec *rec, u32 cnid, struct inode *inode) in hfs_cat_build_record() argument
40 memset(rec, 0, sizeof(*rec)); in hfs_cat_build_record()
42 rec->type = HFS_CDR_DIR; in hfs_cat_build_record()
43 rec->dir.DirID = cpu_to_be32(cnid); in hfs_cat_build_record()
44 rec->dir.CrDat = mtime; in hfs_cat_build_record()
45 rec->dir.MdDat = mtime; in hfs_cat_build_record()
46 rec->dir.BkDat = 0; in hfs_cat_build_record()
47 rec->dir.UsrInfo.frView = cpu_to_be16(0xff); in hfs_cat_build_record()
51 rec->type = HFS_CDR_FIL; in hfs_cat_build_record()
52 rec->file.Flags = HFS_FIL_USED | HFS_FIL_THD; in hfs_cat_build_record()
[all …]
Dbrec.c18 u16 hfs_brec_lenoff(struct hfs_bnode *node, u16 rec, u16 *off) in hfs_brec_lenoff() argument
23 dataoff = node->tree->node_size - (rec + 2) * 2; in hfs_brec_lenoff()
30 u16 hfs_brec_keylen(struct hfs_bnode *node, u16 rec) in hfs_brec_keylen() argument
44 recoff = hfs_bnode_read_u16(node, node->tree->node_size - (rec + 1) * 2); in hfs_brec_keylen()
68 int size, key_len, rec; in hfs_brec_insert() local
86 rec = fd->record + 1; in hfs_brec_insert()
96 rec, size, end_off, end_rec_off); in hfs_brec_insert()
115 idx_rec_off = tree->node_size - (rec + 1) * 2; in hfs_brec_insert()
138 if (!rec && new_node != node) { in hfs_brec_insert()
355 int rec, rec_off, end_rec_off; in hfs_brec_update_parent() local
[all …]
Dattr.c21 hfs_cat_rec rec; in hfs_setxattr() local
35 hfs_bnode_read(fd.bnode, &rec, fd.entryoffset, in hfs_setxattr()
37 file = &rec.file; in hfs_setxattr()
52 hfs_bnode_write(fd.bnode, &rec, fd.entryoffset, in hfs_setxattr()
64 hfs_cat_rec rec; in hfs_getxattr() local
79 hfs_bnode_read(fd.bnode, &rec, fd.entryoffset, in hfs_getxattr()
82 file = &rec.file; in hfs_getxattr()
Dbfind.c46 int rec; in __hfs_brec_find() local
54 rec = (e + b) / 2; in __hfs_brec_find()
55 len = hfs_brec_lenoff(bnode, rec, &off); in __hfs_brec_find()
56 keylen = hfs_brec_keylen(bnode, rec); in __hfs_brec_find()
64 e = rec; in __hfs_brec_find()
69 b = rec + 1; in __hfs_brec_find()
71 e = rec - 1; in __hfs_brec_find()
73 if (rec != e && e >= 0) { in __hfs_brec_find()
148 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) in hfs_brec_read() argument
157 hfs_bnode_read(fd->bnode, rec, fd->entryoffset, fd->entrylength); in hfs_brec_read()
Ddir.c23 hfs_cat_rec rec; in hfs_lookup() local
32 res = hfs_brec_read(&fd, &rec, sizeof(rec)); in hfs_lookup()
42 inode = hfs_iget(dir->i_sb, &fd.search_key->cat, &rec); in hfs_lookup()
Dsuper.c388 hfs_cat_rec rec; in hfs_fill_super() local
426 if (fd.entrylength > sizeof(rec) || fd.entrylength < 0) { in hfs_fill_super()
430 hfs_bnode_read(fd.bnode, &rec, fd.entryoffset, fd.entrylength); in hfs_fill_super()
437 root_inode = hfs_iget(sb, &fd.search_key->cat, &rec); in hfs_fill_super()
/linux-4.1.27/kernel/trace/
Dftrace.c539 struct ftrace_profile *rec = v; in function_stat_next() local
542 pg = (struct ftrace_profile_page *)((unsigned long)rec & PAGE_MASK); in function_stat_next()
546 rec++; in function_stat_next()
548 if ((void *)rec >= (void *)&pg->records[pg->index]) { in function_stat_next()
552 rec = &pg->records[0]; in function_stat_next()
553 if (!rec->counter) in function_stat_next()
557 return rec; in function_stat_next()
617 struct ftrace_profile *rec = v; in function_stat_show() local
628 if (unlikely(rec->counter == 0)) { in function_stat_show()
633 kallsyms_lookup(rec->ip, NULL, NULL, NULL, str); in function_stat_show()
[all …]
Dtrace_syscalls.c551 struct syscall_trace_enter *rec; in perf_syscall_enter() local
572 size = sizeof(unsigned long) * sys_data->nb_args + sizeof(*rec); in perf_syscall_enter()
576 rec = (struct syscall_trace_enter *)perf_trace_buf_prepare(size, in perf_syscall_enter()
578 if (!rec) in perf_syscall_enter()
581 rec->nr = syscall_nr; in perf_syscall_enter()
583 (unsigned long *)&rec->args); in perf_syscall_enter()
584 perf_trace_buf_submit(rec, size, rctx, 0, 1, regs, head, NULL); in perf_syscall_enter()
625 struct syscall_trace_exit *rec; in perf_syscall_exit() local
646 size = ALIGN(sizeof(*rec) + sizeof(u32), sizeof(u64)); in perf_syscall_exit()
649 rec = (struct syscall_trace_exit *)perf_trace_buf_prepare(size, in perf_syscall_exit()
[all …]
Dtrace_events_filter.c467 struct filter_pred *op, void *rec) in process_ops() argument
490 match = pred->fn(pred, rec); in process_ops()
501 void *rec; member
518 d->match = process_ops(d->preds, pred, d->rec); in filter_match_preds_cb()
521 d->match = pred->fn(pred, d->rec); in filter_match_preds_cb()
545 int filter_match_preds(struct event_filter *filter, void *rec) in filter_match_preds() argument
552 .rec = rec, in filter_match_preds()
2276 .rec = { .a = va, .b = vb, .c = vc, .d = vd, \
2286 struct ftrace_raw_ftrace_test_filter rec; member
2412 err = filter_match_preds(filter, &d->rec); in ftrace_test_event_filter()
Dtrace_events_trigger.c66 event_triggers_call(struct ftrace_event_file *file, void *rec) in event_triggers_call() argument
76 if (!rec) { in event_triggers_call()
81 if (filter && !filter_match_preds(filter, rec)) in event_triggers_call()
Dtrace.c300 int filter_check_discard(struct ftrace_event_file *file, void *rec, in filter_check_discard() argument
305 !filter_match_preds(file->filter, rec)) { in filter_check_discard()
314 int call_filter_check_discard(struct ftrace_event_call *call, void *rec, in call_filter_check_discard() argument
319 !filter_match_preds(call->filter, rec)) { in call_filter_check_discard()
/linux-4.1.27/fs/xfs/libxfs/
Dxfs_ialloc.c82 union xfs_btree_rec rec; in xfs_inobt_update() local
84 rec.inobt.ir_startino = cpu_to_be32(irec->ir_startino); in xfs_inobt_update()
85 rec.inobt.ir_freecount = cpu_to_be32(irec->ir_freecount); in xfs_inobt_update()
86 rec.inobt.ir_free = cpu_to_be64(irec->ir_free); in xfs_inobt_update()
87 return xfs_btree_update(cur, &rec); in xfs_inobt_update()
99 union xfs_btree_rec *rec; in xfs_inobt_get_rec() local
102 error = xfs_btree_get_rec(cur, &rec, stat); in xfs_inobt_get_rec()
104 irec->ir_startino = be32_to_cpu(rec->inobt.ir_startino); in xfs_inobt_get_rec()
105 irec->ir_freecount = be32_to_cpu(rec->inobt.ir_freecount); in xfs_inobt_get_rec()
106 irec->ir_free = be64_to_cpu(rec->inobt.ir_free); in xfs_inobt_get_rec()
[all …]
Dxfs_alloc_btree.c133 union xfs_btree_rec *rec, in xfs_allocbt_update_lastrec() argument
153 len = rec->alloc.ar_blockcount; in xfs_allocbt_update_lastrec()
156 if (be32_to_cpu(rec->alloc.ar_blockcount) <= in xfs_allocbt_update_lastrec()
159 len = rec->alloc.ar_blockcount; in xfs_allocbt_update_lastrec()
208 union xfs_btree_rec *rec) in xfs_allocbt_init_key_from_rec() argument
210 ASSERT(rec->alloc.ar_startblock != 0); in xfs_allocbt_init_key_from_rec()
212 key->alloc.ar_startblock = rec->alloc.ar_startblock; in xfs_allocbt_init_key_from_rec()
213 key->alloc.ar_blockcount = rec->alloc.ar_blockcount; in xfs_allocbt_init_key_from_rec()
219 union xfs_btree_rec *rec) in xfs_allocbt_init_rec_from_key() argument
223 rec->alloc.ar_startblock = key->alloc.ar_startblock; in xfs_allocbt_init_rec_from_key()
[all …]
Dxfs_ialloc_btree.c151 union xfs_btree_rec *rec) in xfs_inobt_init_key_from_rec() argument
153 key->inobt.ir_startino = rec->inobt.ir_startino; in xfs_inobt_init_key_from_rec()
159 union xfs_btree_rec *rec) in xfs_inobt_init_rec_from_key() argument
161 rec->inobt.ir_startino = key->inobt.ir_startino; in xfs_inobt_init_rec_from_key()
167 union xfs_btree_rec *rec) in xfs_inobt_init_rec_from_cur() argument
169 rec->inobt.ir_startino = cpu_to_be32(cur->bc_rec.i.ir_startino); in xfs_inobt_init_rec_from_cur()
170 rec->inobt.ir_freecount = cpu_to_be32(cur->bc_rec.i.ir_freecount); in xfs_inobt_init_rec_from_cur()
171 rec->inobt.ir_free = cpu_to_be64(cur->bc_rec.i.ir_free); in xfs_inobt_init_rec_from_cur()
Dxfs_btree.h141 union xfs_btree_rec *rec,
153 union xfs_btree_rec *rec);
155 union xfs_btree_rec *rec);
157 union xfs_btree_rec *rec);
Dxfs_bmap_btree.c596 union xfs_btree_rec *rec) in xfs_bmbt_init_key_from_rec() argument
599 cpu_to_be64(xfs_bmbt_disk_get_startoff(&rec->bmbt)); in xfs_bmbt_init_key_from_rec()
605 union xfs_btree_rec *rec) in xfs_bmbt_init_rec_from_key() argument
609 xfs_bmbt_disk_set_allf(&rec->bmbt, be64_to_cpu(key->bmbt.br_startoff), in xfs_bmbt_init_rec_from_key()
616 union xfs_btree_rec *rec) in xfs_bmbt_init_rec_from_cur() argument
618 xfs_bmbt_disk_set_all(&rec->bmbt, &cur->bc_rec.b); in xfs_bmbt_init_rec_from_cur()
Dxfs_ialloc.h153 xfs_inobt_rec_incore_t *rec, int *stat);
Dxfs_btree.c1246 union xfs_btree_rec *rec, in xfs_btree_shift_recs() argument
1255 dst_rec = (char *)rec + (dir * cur->bc_ops->rec_len); in xfs_btree_shift_recs()
1256 memmove(dst_rec, rec, numrecs * cur->bc_ops->rec_len); in xfs_btree_shift_recs()
1907 union xfs_btree_rec *rec) in xfs_btree_update() argument
1916 XFS_BTREE_TRACE_ARGR(cur, rec); in xfs_btree_update()
1931 xfs_btree_copy_recs(cur, rp, rec, 1); in xfs_btree_update()
1939 cur->bc_ops->update_lastrec(cur, block, rec, in xfs_btree_update()
1947 cur->bc_ops->init_key_from_rec(&key, rec); in xfs_btree_update()
3115 union xfs_btree_rec rec; /* record to insert */ in xfs_btree_insert() local
3122 cur->bc_ops->init_rec_from_cur(cur, &rec); in xfs_btree_insert()
[all …]
Dxfs_alloc.c110 union xfs_btree_rec rec; in xfs_alloc_update() local
112 rec.alloc.ar_startblock = cpu_to_be32(bno); in xfs_alloc_update()
113 rec.alloc.ar_blockcount = cpu_to_be32(len); in xfs_alloc_update()
114 return xfs_btree_update(cur, &rec); in xfs_alloc_update()
127 union xfs_btree_rec *rec; in xfs_alloc_get_rec() local
130 error = xfs_btree_get_rec(cur, &rec, stat); in xfs_alloc_get_rec()
132 *bno = be32_to_cpu(rec->alloc.ar_startblock); in xfs_alloc_get_rec()
133 *len = be32_to_cpu(rec->alloc.ar_blockcount); in xfs_alloc_get_rec()
Dxfs_bmap.c168 union xfs_btree_rec rec; in xfs_bmbt_update() local
170 xfs_bmbt_disk_set_allf(&rec.bmbt, off, bno, len, state); in xfs_bmbt_update()
171 return xfs_btree_update(cur, &rec); in xfs_bmbt_update()
1572 struct xfs_bmbt_irec *rec, in xfs_bmap_last_extent() argument
1591 xfs_bmbt_get_all(xfs_iext_get_ext(ifp, nextents - 1), rec); in xfs_bmap_last_extent()
1610 struct xfs_bmbt_irec rec; in xfs_bmap_isaeof() local
1615 error = xfs_bmap_last_extent(NULL, bma->ip, whichfork, &rec, in xfs_bmap_isaeof()
1629 bma->aeof = bma->offset >= rec.br_startoff + rec.br_blockcount || in xfs_bmap_isaeof()
1630 (bma->offset >= rec.br_startoff && in xfs_bmap_isaeof()
1631 isnullstartblock(rec.br_startblock)); in xfs_bmap_isaeof()
[all …]
Dxfs_inode_fork.c53 xfs_bmbt_rec_host_t rec; in xfs_validate_extents() local
58 rec.l0 = get_unaligned(&ep->l0); in xfs_validate_extents()
59 rec.l1 = get_unaligned(&ep->l1); in xfs_validate_extents()
60 xfs_bmbt_get_all(&rec, &irec); in xfs_validate_extents()
/linux-4.1.27/drivers/gpu/drm/mga/
Dmga_warp.c56 const struct ihex_binrec *rec; in mga_warp_install_microcode() local
90 for (rec = (const struct ihex_binrec *)fw->data; in mga_warp_install_microcode()
91 rec; in mga_warp_install_microcode()
92 rec = ihex_next_binrec(rec)) { in mga_warp_install_microcode()
93 size += WARP_UCODE_SIZE(be16_to_cpu(rec->len)); in mga_warp_install_microcode()
114 for (rec = (const struct ihex_binrec *)fw->data; in mga_warp_install_microcode()
115 rec; in mga_warp_install_microcode()
116 rec = ihex_next_binrec(rec)) { in mga_warp_install_microcode()
121 src_size = be16_to_cpu(rec->len); in mga_warp_install_microcode()
123 memcpy(vcbase, rec->data, src_size); in mga_warp_install_microcode()
/linux-4.1.27/fs/ocfs2/
Dextent_map.c228 struct ocfs2_extent_rec *rec) in ocfs2_extent_map_insert_rec() argument
235 ins.ei_cpos = le32_to_cpu(rec->e_cpos); in ocfs2_extent_map_insert_rec()
237 le64_to_cpu(rec->e_blkno)); in ocfs2_extent_map_insert_rec()
238 ins.ei_clusters = le16_to_cpu(rec->e_leaf_clusters); in ocfs2_extent_map_insert_rec()
239 ins.ei_flags = rec->e_flags; in ocfs2_extent_map_insert_rec()
334 struct ocfs2_extent_rec *rec; in ocfs2_search_for_hole_index() local
337 rec = &el->l_recs[i]; in ocfs2_search_for_hole_index()
339 if (v_cluster < le32_to_cpu(rec->e_cpos)) in ocfs2_search_for_hole_index()
420 struct ocfs2_extent_rec *rec; in ocfs2_get_clusters_nocache() local
473 rec = &el->l_recs[i]; in ocfs2_get_clusters_nocache()
[all …]
Dalloc.c102 struct ocfs2_extent_rec *rec);
116 struct ocfs2_extent_rec *rec);
160 struct ocfs2_extent_rec *rec);
164 struct ocfs2_extent_rec *rec);
208 struct ocfs2_extent_rec *rec) in ocfs2_dinode_extent_map_insert() argument
212 ocfs2_extent_map_insert_rec(inode, rec); in ocfs2_dinode_extent_map_insert()
224 struct ocfs2_extent_rec *rec) in ocfs2_dinode_insert_check() argument
231 (oi->ip_clusters != le32_to_cpu(rec->e_cpos)), in ocfs2_dinode_insert_check()
236 rec->e_cpos, oi->ip_clusters); in ocfs2_dinode_insert_check()
516 struct ocfs2_extent_rec *rec) in ocfs2_et_extent_map_insert() argument
[all …]
Drefcounttree.c893 struct ocfs2_refcount_rec *rec = NULL; in ocfs2_find_refcount_rec_in_rl() local
896 rec = &rb->rf_records.rl_recs[i]; in ocfs2_find_refcount_rec_in_rl()
898 if (le64_to_cpu(rec->r_cpos) + in ocfs2_find_refcount_rec_in_rl()
899 le32_to_cpu(rec->r_clusters) <= cpos) in ocfs2_find_refcount_rec_in_rl()
901 else if (le64_to_cpu(rec->r_cpos) > cpos) in ocfs2_find_refcount_rec_in_rl()
906 *ret_rec = *rec; in ocfs2_find_refcount_rec_in_rl()
915 le64_to_cpu(rec->r_cpos) < cpos + len) in ocfs2_find_refcount_rec_in_rl()
917 cpu_to_le32(le64_to_cpu(rec->r_cpos) - cpos); in ocfs2_find_refcount_rec_in_rl()
1076 struct ocfs2_extent_rec *rec = NULL; in ocfs2_get_refcount_rec() local
1117 rec = &el->l_recs[i]; in ocfs2_get_refcount_rec()
[all …]
Dquota_local.c329 void ocfs2_free_quota_recovery(struct ocfs2_quota_recovery *rec) in ocfs2_free_quota_recovery() argument
334 free_recovery_list(&(rec->r_list[type])); in ocfs2_free_quota_recovery()
335 kfree(rec); in ocfs2_free_quota_recovery()
374 struct ocfs2_quota_recovery *rec; in ocfs2_alloc_quota_recovery() local
376 rec = kmalloc(sizeof(struct ocfs2_quota_recovery), GFP_NOFS); in ocfs2_alloc_quota_recovery()
377 if (!rec) in ocfs2_alloc_quota_recovery()
380 INIT_LIST_HEAD(&(rec->r_list[type])); in ocfs2_alloc_quota_recovery()
381 return rec; in ocfs2_alloc_quota_recovery()
400 struct ocfs2_quota_recovery *rec; in ocfs2_begin_quota_recovery() local
405 rec = ocfs2_alloc_quota_recovery(); in ocfs2_begin_quota_recovery()
[all …]
Dalloc.h247 struct ocfs2_extent_rec *rec) in ocfs2_rec_clusters() argument
257 return le32_to_cpu(rec->e_int_clusters); in ocfs2_rec_clusters()
259 return le16_to_cpu(rec->e_leaf_clusters); in ocfs2_rec_clusters()
266 static inline int ocfs2_is_empty_extent(struct ocfs2_extent_rec *rec) in ocfs2_is_empty_extent() argument
268 return !rec->e_leaf_clusters; in ocfs2_is_empty_extent()
Dmove_extents.c66 struct ocfs2_extent_rec *rec, replace_rec; in __ocfs2_move_extent() local
110 rec = &el->l_recs[index]; in __ocfs2_move_extent()
112 BUG_ON(ext_flags != rec->e_flags); in __ocfs2_move_extent()
378 struct ocfs2_chain_rec *rec; in ocfs2_find_victim_alloc_group() local
398 rec = &(cl->cl_recs[0]); in ocfs2_find_victim_alloc_group()
406 if ((vict_blkno < le64_to_cpu(rec->c_blkno)) || in ocfs2_find_victim_alloc_group()
415 rec = &(cl->cl_recs[i]); in ocfs2_find_victim_alloc_group()
416 if (!rec) in ocfs2_find_victim_alloc_group()
423 blkno = le64_to_cpu(rec->c_blkno); in ocfs2_find_victim_alloc_group()
Dquota.h90 struct ocfs2_quota_recovery *rec,
92 void ocfs2_free_quota_recovery(struct ocfs2_quota_recovery *rec);
Dfile.c1595 struct ocfs2_extent_rec *rec = NULL; in ocfs2_find_rec() local
1599 rec = &el->l_recs[i]; in ocfs2_find_rec()
1601 if (le32_to_cpu(rec->e_cpos) < pos) in ocfs2_find_rec()
1618 struct ocfs2_extent_rec *rec, in ocfs2_calc_trunc_pos() argument
1626 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_calc_trunc_pos()
1628 if (le32_to_cpu(rec->e_cpos) >= trunc_start) { in ocfs2_calc_trunc_pos()
1632 *trunc_cpos = le32_to_cpu(rec->e_cpos); in ocfs2_calc_trunc_pos()
1638 *trunc_len = *trunc_end - le32_to_cpu(rec->e_cpos); in ocfs2_calc_trunc_pos()
1639 *blkno = le64_to_cpu(rec->e_blkno); in ocfs2_calc_trunc_pos()
1640 *trunc_end = le32_to_cpu(rec->e_cpos); in ocfs2_calc_trunc_pos()
[all …]
Dioctl.c437 struct ocfs2_chain_rec *rec, in ocfs2_info_freefrag_scan_chain() argument
451 if (!le32_to_cpu(rec->c_free)) in ocfs2_info_freefrag_scan_chain()
456 blkno = le64_to_cpu(rec->c_blkno); in ocfs2_info_freefrag_scan_chain()
546 struct ocfs2_chain_rec *rec = NULL; in ocfs2_info_freefrag_scan_bitmap() local
590 rec = &(cl->cl_recs[i]); in ocfs2_info_freefrag_scan_bitmap()
593 rec, ffg, in ocfs2_info_freefrag_scan_bitmap()
Dsuballoc.c357 struct ocfs2_extent_rec *rec; in ocfs2_bg_discontig_add_extent() local
362 rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec)]; in ocfs2_bg_discontig_add_extent()
363 rec->e_blkno = cpu_to_le64(p_blkno); in ocfs2_bg_discontig_add_extent()
364 rec->e_cpos = cpu_to_le32(le16_to_cpu(bg->bg_bits) / in ocfs2_bg_discontig_add_extent()
366 rec->e_leaf_clusters = cpu_to_le16(clusters); in ocfs2_bg_discontig_add_extent()
585 struct ocfs2_extent_rec *rec; in ocfs2_bg_alloc_cleanup() local
593 rec = &el->l_recs[i]; in ocfs2_bg_alloc_cleanup()
596 le64_to_cpu(rec->e_blkno), in ocfs2_bg_alloc_cleanup()
597 le16_to_cpu(rec->e_leaf_clusters)); in ocfs2_bg_alloc_cleanup()
1627 struct ocfs2_extent_rec *rec, in ocfs2_bg_discontig_fix_by_rec() argument
[all …]
Dextent_map.h46 struct ocfs2_extent_rec *rec);
Docfs2_fs.h1475 ocfs2_get_ref_rec_low_cpos(const struct ocfs2_refcount_rec *rec) in ocfs2_get_ref_rec_low_cpos() argument
1477 return le64_to_cpu(rec->r_cpos) & OCFS2_32BIT_POS_MASK; in ocfs2_get_ref_rec_low_cpos()
Ddir.c801 struct ocfs2_extent_rec *rec = NULL; in ocfs2_dx_dir_lookup_rec() local
826 rec = &el->l_recs[i]; in ocfs2_dx_dir_lookup_rec()
828 if (le32_to_cpu(rec->e_cpos) <= major_hash) { in ocfs2_dx_dir_lookup_rec()
837 le32_to_cpu(rec->e_cpos), in ocfs2_dx_dir_lookup_rec()
838 ocfs2_rec_clusters(el, rec)); in ocfs2_dx_dir_lookup_rec()
844 *ret_phys_blkno = le64_to_cpu(rec->e_blkno); in ocfs2_dx_dir_lookup_rec()
846 *ret_cpos = le32_to_cpu(rec->e_cpos); in ocfs2_dx_dir_lookup_rec()
848 *ret_clen = le16_to_cpu(rec->e_leaf_clusters); in ocfs2_dx_dir_lookup_rec()
Dxattr.c3682 struct ocfs2_extent_rec *rec = NULL; in ocfs2_xattr_get_rec() local
3707 rec = &el->l_recs[i]; in ocfs2_xattr_get_rec()
3709 if (le32_to_cpu(rec->e_cpos) <= name_hash) { in ocfs2_xattr_get_rec()
3710 e_blkno = le64_to_cpu(rec->e_blkno); in ocfs2_xattr_get_rec()
3718 le32_to_cpu(rec->e_cpos), in ocfs2_xattr_get_rec()
3719 ocfs2_rec_clusters(el, rec)); in ocfs2_xattr_get_rec()
3724 *p_blkno = le64_to_cpu(rec->e_blkno); in ocfs2_xattr_get_rec()
3725 *num_clusters = le16_to_cpu(rec->e_leaf_clusters); in ocfs2_xattr_get_rec()
3727 *e_cpos = le32_to_cpu(rec->e_cpos); in ocfs2_xattr_get_rec()
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
Dllog.c302 struct llog_rec_hdr *rec; in llog_process_thread() local
327 for (rec = (struct llog_rec_hdr *)buf; in llog_process_thread()
328 (char *)rec < buf + LLOG_CHUNK_SIZE; in llog_process_thread()
329 rec = (struct llog_rec_hdr *)((char *)rec + rec->lrh_len)){ in llog_process_thread()
332 rec, rec->lrh_type); in llog_process_thread()
334 if (LLOG_REC_HDR_NEEDS_SWABBING(rec)) in llog_process_thread()
335 lustre_swab_llog_rec(rec); in llog_process_thread()
338 rec->lrh_type, rec->lrh_index); in llog_process_thread()
340 if (rec->lrh_index == 0) { in llog_process_thread()
347 if (rec->lrh_len == 0 || in llog_process_thread()
[all …]
Dllog_cat.c68 struct llog_logid_rec rec = { { 0 }, }; in llog_cat_new_log() local
123 rec.lid_hdr.lrh_len = sizeof(rec); in llog_cat_new_log()
124 rec.lid_hdr.lrh_index = index; in llog_cat_new_log()
125 rec.lid_hdr.lrh_type = LLOG_LOGID_MAGIC; in llog_cat_new_log()
126 rec.lid_id = loghandle->lgh_id; in llog_cat_new_log()
127 rec.lid_tail.lrt_len = sizeof(rec); in llog_cat_new_log()
128 rec.lid_tail.lrt_index = index; in llog_cat_new_log()
131 rc = llog_write_rec(env, cathandle, &rec.lid_hdr, in llog_cat_new_log()
324 struct llog_rec_hdr *rec, struct llog_cookie *reccookie, in llog_cat_add_rec() argument
330 LASSERT(rec->lrh_len <= LLOG_CHUNK_SIZE); in llog_cat_add_rec()
[all …]
Dllog_swab.c129 void lustre_swab_llog_rec(struct llog_rec_hdr *rec) in lustre_swab_llog_rec() argument
133 __swab32s(&rec->lrh_len); in lustre_swab_llog_rec()
134 __swab32s(&rec->lrh_index); in lustre_swab_llog_rec()
135 __swab32s(&rec->lrh_type); in lustre_swab_llog_rec()
136 __swab32s(&rec->lrh_id); in lustre_swab_llog_rec()
138 switch (rec->lrh_type) { in lustre_swab_llog_rec()
142 (struct llog_size_change_rec *)rec; in lustre_swab_llog_rec()
151 struct llog_unlink_rec *lur = (struct llog_unlink_rec *)rec; in lustre_swab_llog_rec()
162 (struct llog_unlink64_rec *)rec; in lustre_swab_llog_rec()
172 (struct llog_changelog_rec *)rec; in lustre_swab_llog_rec()
[all …]
Dllog_internal.h91 struct llog_rec_hdr *rec, void *data);
92 int class_config_parse_rec(struct llog_rec_hdr *rec, char *buf, int size);
Dobd_config.c1388 struct llog_rec_hdr *rec, void *data) in class_config_llog_handler() argument
1391 int cfg_len = rec->lrh_len; in class_config_llog_handler()
1392 char *cfg_buf = (char *) (rec + 1); in class_config_llog_handler()
1397 switch (rec->lrh_type) { in class_config_llog_handler()
1564 rec->lrh_type); in class_config_llog_handler()
1571 class_config_dump_handler(NULL, handle, rec, data); in class_config_llog_handler()
1623 int class_config_parse_rec(struct llog_rec_hdr *rec, char *buf, int size) in class_config_parse_rec() argument
1625 struct lustre_cfg *lcfg = (struct lustre_cfg *)(rec + 1); in class_config_parse_rec()
1630 LASSERT(rec->lrh_type == OBD_CFG_REC); in class_config_parse_rec()
1631 rc = lustre_cfg_sanity_check(lcfg, rec->lrh_len); in class_config_parse_rec()
[all …]
Ddt_object.c714 rc = iops->rec(env, it, (struct dt_rec *)tmp_entry, attr); in dt_index_page_build()
/linux-4.1.27/drivers/infiniband/core/
Dmulticast.c97 struct ib_sa_mcmember_rec rec; member
125 static void join_handler(int status, struct ib_sa_mcmember_rec *rec,
127 static void leave_handler(int status, struct ib_sa_mcmember_rec *rec,
139 ret = memcmp(mgid->raw, group->rec.mgid.raw, sizeof *mgid); in mcast_find()
164 ret = memcmp(group->rec.mgid.raw, cur_group->rec.mgid.raw, in mcast_insert()
165 sizeof group->rec.mgid); in mcast_insert()
252 return leave_state & group->rec.join_state; in get_leave_state()
338 &member->multicast.rec, in send_join()
352 struct ib_sa_mcmember_rec rec; in send_leave() local
355 rec = group->rec; in send_leave()
[all …]
Dsa_query.c529 struct ib_sa_path_rec *rec, struct ib_ah_attr *ah_attr) in ib_init_ah_from_path() argument
536 ah_attr->dlid = be16_to_cpu(rec->dlid); in ib_init_ah_from_path()
537 ah_attr->sl = rec->sl; in ib_init_ah_from_path()
538 ah_attr->src_path_bits = be16_to_cpu(rec->slid) & in ib_init_ah_from_path()
541 ah_attr->static_rate = rec->rate; in ib_init_ah_from_path()
545 if (rec->hop_limit > 1 || force_grh) { in ib_init_ah_from_path()
547 ah_attr->grh.dgid = rec->dgid; in ib_init_ah_from_path()
549 ret = ib_find_cached_gid(device, &rec->sgid, &port_num, in ib_init_ah_from_path()
555 ah_attr->grh.flow_label = be32_to_cpu(rec->flow_label); in ib_init_ah_from_path()
556 ah_attr->grh.hop_limit = rec->hop_limit; in ib_init_ah_from_path()
[all …]
Dcma.c298 struct ib_sa_mcmember_rec rec; in cma_set_qkey() local
318 ib_addr_get_mgid(&id_priv->id.route.addr.dev_addr, &rec.mgid); in cma_set_qkey()
320 id_priv->id.port_num, &rec.mgid, in cma_set_qkey()
321 &rec); in cma_set_qkey()
323 id_priv->qkey = be32_to_cpu(rec.qkey); in cma_set_qkey()
3153 status = cma_set_qkey(id_priv, be32_to_cpu(multicast->rec.qkey)); in cma_ib_mc_handler()
3156 status = ib_attach_mcast(id_priv->id.qp, &multicast->rec.mgid, in cma_ib_mc_handler()
3157 be16_to_cpu(multicast->rec.mlid)); in cma_ib_mc_handler()
3166 id_priv->id.port_num, &multicast->rec, in cma_ib_mc_handler()
3169 event.param.ud.qkey = be32_to_cpu(multicast->rec.qkey); in cma_ib_mc_handler()
[all …]
Dsa.h54 struct ib_sa_mcmember_rec *rec,
/linux-4.1.27/drivers/infiniband/hw/mlx4/
Dalias_GUID.c197 struct mlx4_sriov_alias_guid_info_rec_det *rec; in mlx4_ib_notify_slaves_on_guid_change() local
204 rec = &dev->sriov.alias_guid.ports_guid[port_num - 1]. in mlx4_ib_notify_slaves_on_guid_change()
232 required_value = *(__be64 *)&rec->all_recs[i * GUID_REC_SIZE]; in mlx4_ib_notify_slaves_on_guid_change()
238 rec->guid_indexes = rec->guid_indexes & in mlx4_ib_notify_slaves_on_guid_change()
291 struct mlx4_sriov_alias_guid_info_rec_det *rec; in aliasguid_query_handler() local
302 rec = &dev->sriov.alias_guid.ports_guid[port_index]. in aliasguid_query_handler()
308 rec->time_to_run = ktime_get_real_ns() + 1 * NSEC_PER_SEC; in aliasguid_query_handler()
322 rec = &dev->sriov.alias_guid.ports_guid[port_index]. in aliasguid_query_handler()
334 required_val = *(__be64 *)&rec->all_recs[i * GUID_REC_SIZE]; in aliasguid_query_handler()
351 if (rec->guids_retry_schedule[i] == 0) in aliasguid_query_handler()
[all …]
Dmcg.c98 struct ib_sa_mcmember_data rec; member
167 ret = memcmp(mgid->raw, group->rec.mgid.raw, sizeof *mgid); in mcast_find()
191 ret = memcmp(group->rec.mgid.raw, cur_group->rec.mgid.raw, in mcast_insert()
192 sizeof group->rec.mgid); in mcast_insert()
297 *sa_data = group->rec; in send_leave_to_wire()
337 *sa_data = group->rec; in send_reply_to_slave()
451 nzgroup = memcmp(&group->rec.mgid, &mgid0, sizeof mgid0); in release_group()
488 return leave_state & (group->rec.scope_join_state & 7); in get_leave_state()
552 if (memcmp(&group->rec.mgid, &mgid0, sizeof mgid0)) { in mlx4_ib_mcg_timeout_handler()
563 if (group->rec.scope_join_state & 7) in mlx4_ib_mcg_timeout_handler()
[all …]
/linux-4.1.27/arch/microblaze/kernel/
Dftrace.c124 struct dyn_ftrace *rec, unsigned long addr) in ftrace_make_nop() argument
146 imm = *(unsigned int *)rec->ip; in ftrace_make_nop()
149 bralid = *(unsigned int *)(rec->ip + 4); in ftrace_make_nop()
155 ret = ftrace_modify_code(rec->ip, MICROBLAZE_NOP); in ftrace_make_nop()
156 ret += ftrace_modify_code(rec->ip + 4, MICROBLAZE_NOP); in ftrace_make_nop()
158 ret = ftrace_modify_code(rec->ip, MICROBLAZE_BRI); in ftrace_make_nop()
164 int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) in ftrace_make_call() argument
168 __func__, (unsigned int)addr, (unsigned int)rec->ip, imm); in ftrace_make_call()
169 ret = ftrace_modify_code(rec->ip, imm); in ftrace_make_call()
172 ret += ftrace_modify_code(rec->ip + 4, bralid); in ftrace_make_call()
/linux-4.1.27/sound/core/seq/
Dseq_dummy.c124 struct snd_seq_dummy_port *rec; in create_port() local
126 if ((rec = kzalloc(sizeof(*rec), GFP_KERNEL)) == NULL) in create_port()
129 rec->client = my_client; in create_port()
130 rec->duplex = duplex; in create_port()
131 rec->connect = 0; in create_port()
150 pcb.private_data = rec; in create_port()
153 kfree(rec); in create_port()
156 rec->port = pinfo.addr.port; in create_port()
157 return rec; in create_port()
/linux-4.1.27/fs/pstore/
Dinternal.h23 pstore_ftrace_encode_cpu(struct pstore_ftrace_record *rec, unsigned int cpu) in pstore_ftrace_encode_cpu() argument
26 rec->cpu = cpu; in pstore_ftrace_encode_cpu()
28 rec->ip |= cpu; in pstore_ftrace_encode_cpu()
33 pstore_ftrace_decode_cpu(struct pstore_ftrace_record *rec) in pstore_ftrace_decode_cpu() argument
36 return rec->cpu; in pstore_ftrace_decode_cpu()
38 return rec->ip & PSTORE_CPU_IN_IP; in pstore_ftrace_decode_cpu()
Dftrace.c36 struct pstore_ftrace_record rec = {}; in pstore_ftrace_call() local
43 rec.ip = ip; in pstore_ftrace_call()
44 rec.parent_ip = parent_ip; in pstore_ftrace_call()
45 pstore_ftrace_encode_cpu(&rec, raw_smp_processor_id()); in pstore_ftrace_call()
46 psinfo->write_buf(PSTORE_TYPE_FTRACE, 0, NULL, 0, (void *)&rec, in pstore_ftrace_call()
47 0, sizeof(rec), psinfo); in pstore_ftrace_call()
Dinode.c108 struct pstore_ftrace_record *rec = (void *)(ps->data + data->off); in pstore_ftrace_seq_show() local
111 pstore_ftrace_decode_cpu(rec), rec->ip, rec->parent_ip, in pstore_ftrace_seq_show()
112 (void *)rec->ip, (void *)rec->parent_ip); in pstore_ftrace_seq_show()
/linux-4.1.27/arch/s390/kernel/
Dftrace.c98 int ftrace_modify_call(struct dyn_ftrace *rec, unsigned long old_addr, in ftrace_modify_call() argument
104 int ftrace_make_nop(struct module *mod, struct dyn_ftrace *rec, in ftrace_make_nop() argument
109 if (probe_kernel_read(&old, (void *) rec->ip, sizeof(old))) in ftrace_make_nop()
127 ftrace_generate_call_insn(&orig, rec->ip); in ftrace_make_nop()
133 s390_kernel_write((void *) rec->ip, &new, sizeof(new)); in ftrace_make_nop()
137 int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) in ftrace_make_call() argument
141 if (probe_kernel_read(&old, (void *) rec->ip, sizeof(old))) in ftrace_make_call()
156 ftrace_generate_call_insn(&new, rec->ip); in ftrace_make_call()
161 s390_kernel_write((void *) rec->ip, &new, sizeof(new)); in ftrace_make_call()
/linux-4.1.27/drivers/gpu/drm/i915/
Dintel_overlay.c891 struct drm_intel_overlay_put_image *rec) in check_overlay_dst() argument
895 if (rec->dst_x < mode->hdisplay && in check_overlay_dst()
896 rec->dst_x + rec->dst_width <= mode->hdisplay && in check_overlay_dst()
897 rec->dst_y < mode->vdisplay && in check_overlay_dst()
898 rec->dst_y + rec->dst_height <= mode->vdisplay) in check_overlay_dst()
904 static int check_overlay_scaling(struct put_image_params *rec) in check_overlay_scaling() argument
909 tmp = ((rec->src_scan_h << 16) / rec->dst_h) >> 16; in check_overlay_scaling()
912 tmp = ((rec->src_scan_w << 16) / rec->dst_w) >> 16; in check_overlay_scaling()
920 struct drm_intel_overlay_put_image *rec, in check_overlay_src() argument
923 int uv_hscale = uv_hsubsampling(rec->flags); in check_overlay_src()
[all …]
/linux-4.1.27/arch/ia64/kernel/
Dftrace.c129 static int ftrace_make_nop_check(struct dyn_ftrace *rec, unsigned long addr) in ftrace_make_nop_check() argument
132 unsigned long ip = rec->ip; in ftrace_make_nop_check()
136 if (rec->flags & FTRACE_FL_CONVERTED) { in ftrace_make_nop_check()
162 struct dyn_ftrace *rec, unsigned long addr) in ftrace_make_nop() argument
167 ret = ftrace_make_nop_check(rec, addr); in ftrace_make_nop()
171 return ftrace_modify_code(rec->ip, NULL, new, 0); in ftrace_make_nop()
174 int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) in ftrace_make_call() argument
176 unsigned long ip = rec->ip; in ftrace_make_call()
Dmca_drv.c726 mca_try_to_recover(void *rec, struct ia64_sal_os_state *sos) in mca_try_to_recover() argument
735 platform_err = mca_make_slidx(rec, &slidx); in mca_try_to_recover()
/linux-4.1.27/arch/tile/kernel/
Dftrace.c100 static unsigned long ftrace_nop_replace(struct dyn_ftrace *rec) in ftrace_nop_replace() argument
148 int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) in ftrace_make_call() argument
151 unsigned long ip = rec->ip; in ftrace_make_call()
153 old = ftrace_nop_replace(rec); in ftrace_make_call()
156 return ftrace_modify_code(rec->ip, old, new); in ftrace_make_call()
160 struct dyn_ftrace *rec, unsigned long addr) in ftrace_make_nop() argument
162 unsigned long ip = rec->ip; in ftrace_make_nop()
168 new = ftrace_nop_replace(rec); in ftrace_make_nop()
/linux-4.1.27/fs/hfsplus/
Dbrec.c19 u16 hfs_brec_lenoff(struct hfs_bnode *node, u16 rec, u16 *off) in hfs_brec_lenoff() argument
24 dataoff = node->tree->node_size - (rec + 2) * 2; in hfs_brec_lenoff()
31 u16 hfs_brec_keylen(struct hfs_bnode *node, u16 rec) in hfs_brec_keylen() argument
44 node->tree->node_size - (rec + 1) * 2); in hfs_brec_keylen()
66 int size, key_len, rec; in hfs_brec_insert() local
84 rec = fd->record + 1; in hfs_brec_insert()
94 rec, size, end_off, end_rec_off); in hfs_brec_insert()
115 idx_rec_off = tree->node_size - (rec + 1) * 2; in hfs_brec_insert()
138 if (!rec && new_node != node) { in hfs_brec_insert()
359 int rec, rec_off, end_rec_off; in hfs_brec_update_parent() local
[all …]
Dbfind.c117 int rec; in __hfs_brec_find() local
126 rec = (e + b) / 2; in __hfs_brec_find()
127 len = hfs_brec_lenoff(bnode, rec, &off); in __hfs_brec_find()
128 keylen = hfs_brec_keylen(bnode, rec); in __hfs_brec_find()
134 if (rec_found(bnode, fd, &b, &e, &rec)) { in __hfs_brec_find()
140 if (rec != e && e >= 0) { in __hfs_brec_find()
217 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) in hfs_brec_read() argument
226 hfs_bnode_read(fd->bnode, rec, fd->entryoffset, fd->entrylength); in hfs_brec_read()
Dhfsplus_fs.h423 u16 hfs_brec_lenoff(struct hfs_bnode *node, u16 rec, u16 *off);
424 u16 hfs_brec_keylen(struct hfs_bnode *node, u16 rec);
438 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len);
/linux-4.1.27/sound/usb/6fire/
Dfirmware.c213 struct ihex_record *rec = kmalloc(sizeof(struct ihex_record), in usb6fire_fw_ezusb_upload() local
216 if (!rec) in usb6fire_fw_ezusb_upload()
221 kfree(rec); in usb6fire_fw_ezusb_upload()
226 ret = usb6fire_fw_ihex_init(fw, rec); in usb6fire_fw_ezusb_upload()
228 kfree(rec); in usb6fire_fw_ezusb_upload()
238 kfree(rec); in usb6fire_fw_ezusb_upload()
246 while (usb6fire_fw_ihex_next_record(rec)) { /* write firmware */ in usb6fire_fw_ezusb_upload()
247 ret = usb6fire_fw_ezusb_write(device, 0xa0, rec->address, in usb6fire_fw_ezusb_upload()
248 rec->data, rec->len); in usb6fire_fw_ezusb_upload()
250 kfree(rec); in usb6fire_fw_ezusb_upload()
[all …]
/linux-4.1.27/arch/blackfin/kernel/
Dftrace.c41 int ftrace_make_nop(struct module *mod, struct dyn_ftrace *rec, in ftrace_make_nop() argument
45 return ftrace_modify_code(rec->ip, mnop, sizeof(mnop)); in ftrace_make_nop()
48 int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) in ftrace_make_call() argument
54 bfin_make_pcrel24(&call[2], rec->ip + 2, addr); in ftrace_make_call()
57 return ftrace_modify_code(rec->ip, call, sizeof(call)); in ftrace_make_call()
/linux-4.1.27/include/rdma/
Dib_sa.h301 struct ib_sa_path_rec *rec,
313 struct ib_sa_service_rec *rec,
323 struct ib_sa_mcmember_rec rec; member
360 struct ib_sa_mcmember_rec *rec,
389 union ib_gid *mgid, struct ib_sa_mcmember_rec *rec);
396 struct ib_sa_mcmember_rec *rec,
404 struct ib_sa_path_rec *rec,
411 void ib_sa_pack_path(struct ib_sa_path_rec *rec, void *attribute);
417 void ib_sa_unpack_path(void *attribute, struct ib_sa_path_rec *rec);
422 struct ib_sa_guidinfo_rec *rec,
/linux-4.1.27/drivers/staging/lustre/lnet/lnet/
Dapi-ni.c442 lnet_res_container_cleanup(struct lnet_res_container *rec) in lnet_res_container_cleanup() argument
446 if (rec->rec_type == 0) /* not set yet, it's uninitialized */ in lnet_res_container_cleanup()
449 while (!list_empty(&rec->rec_active)) { in lnet_res_container_cleanup()
450 struct list_head *e = rec->rec_active.next; in lnet_res_container_cleanup()
453 if (rec->rec_type == LNET_COOKIE_TYPE_EQ) { in lnet_res_container_cleanup()
456 } else if (rec->rec_type == LNET_COOKIE_TYPE_MD) { in lnet_res_container_cleanup()
470 count, lnet_res_type2str(rec->rec_type)); in lnet_res_container_cleanup()
474 lnet_freelist_fini(&rec->rec_freelist); in lnet_res_container_cleanup()
476 if (rec->rec_lh_hash != NULL) { in lnet_res_container_cleanup()
477 LIBCFS_FREE(rec->rec_lh_hash, in lnet_res_container_cleanup()
[all …]
/linux-4.1.27/drivers/staging/wlan-ng/
Dprism2sta.c1462 hfa384x_AssocStatus_t rec; in prism2sta_inf_assocstatus() local
1465 memcpy(&rec, &inf->info.assocstatus, sizeof(rec)); in prism2sta_inf_assocstatus()
1466 rec.assocstatus = le16_to_cpu(rec.assocstatus); in prism2sta_inf_assocstatus()
1467 rec.reason = le16_to_cpu(rec.reason); in prism2sta_inf_assocstatus()
1482 if (memcmp(rec.sta_addr, hw->authlist.addr[i], ETH_ALEN) == 0) in prism2sta_inf_assocstatus()
1486 if (rec.assocstatus != HFA384x_ASSOCSTATUS_AUTHFAIL) in prism2sta_inf_assocstatus()
1491 (rec.assocstatus == HFA384x_ASSOCSTATUS_STAASSOC || in prism2sta_inf_assocstatus()
1492 rec.assocstatus == HFA384x_ASSOCSTATUS_REASSOC); in prism2sta_inf_assocstatus()
1494 if (rec.assocstatus == HFA384x_ASSOCSTATUS_AUTHFAIL) in prism2sta_inf_assocstatus()
1538 hfa384x_authenticateStation_data_t rec; in prism2sta_inf_authreq_defer() local
[all …]
Dprism2fw.c108 hfa384x_pdrec_t *rec[HFA384x_PDA_RECS_MAX]; member
269 pda.rec[0] = (hfa384x_pdrec_t *) pda.buf; in prism2_fwapply()
270 pda.rec[0]->len = cpu_to_le16(2); /* len in words */ in prism2_fwapply()
271 pda.rec[0]->code = cpu_to_le16(HFA384x_PDR_END_OF_PDA); in prism2_fwapply()
595 pda->rec[pda->nrec] = (hfa384x_pdrec_t *) &(pda16[curroff]); in mkpdrlist()
597 if (le16_to_cpu(pda->rec[pda->nrec]->code) == in mkpdrlist()
599 memcpy(&nicid, &pda->rec[pda->nrec]->data.nicid, in mkpdrlist()
606 if (le16_to_cpu(pda->rec[pda->nrec]->code) == in mkpdrlist()
608 memcpy(&rfid, &pda->rec[pda->nrec]->data.mfisuprange, in mkpdrlist()
615 if (le16_to_cpu(pda->rec[pda->nrec]->code) == in mkpdrlist()
[all …]
/linux-4.1.27/arch/metag/kernel/
Dftrace.c97 struct dyn_ftrace *rec, unsigned long addr) in ftrace_make_nop() argument
100 unsigned long ip = rec->ip; in ftrace_make_nop()
108 int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) in ftrace_make_call() argument
111 unsigned long ip = rec->ip; in ftrace_make_call()
/linux-4.1.27/arch/frv/mb93090-mb00/
Dpci-dma-nommu.c91 struct dma_alloc_record *rec; in dma_free_coherent() local
96 list_for_each_entry(rec, &dma_alloc_list, list) { in dma_free_coherent()
97 if (rec->ofs == dma_handle) { in dma_free_coherent()
98 list_del(&rec->list); in dma_free_coherent()
99 kfree(rec); in dma_free_coherent()
/linux-4.1.27/arch/sh/kernel/
Dftrace.c253 struct dyn_ftrace *rec, unsigned long addr) in ftrace_make_nop() argument
256 unsigned long ip = rec->ip; in ftrace_make_nop()
261 return ftrace_modify_code(rec->ip, old, new); in ftrace_make_nop()
264 int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) in ftrace_make_call() argument
267 unsigned long ip = rec->ip; in ftrace_make_call()
272 return ftrace_modify_code(rec->ip, old, new); in ftrace_make_call()
/linux-4.1.27/drivers/media/usb/gspca/
Dvicam.c241 const struct ihex_binrec *rec; in sd_init() local
257 for (rec = (void *)fw->data; rec; rec = ihex_next_binrec(rec)) { in sd_init()
258 memcpy(firmware_buf, rec->data, be16_to_cpu(rec->len)); in sd_init()
260 be16_to_cpu(rec->len)); in sd_init()
/linux-4.1.27/drivers/staging/lustre/lustre/include/
Dlustre_log.h121 struct llog_rec_hdr *rec, void *data);
177 struct llog_rec_hdr *rec, struct llog_cookie *reccookie,
181 struct llog_rec_hdr *rec, struct thandle *th);
183 struct llog_rec_hdr *rec, struct llog_cookie *reccookie,
265 struct llog_rec_hdr *rec,
269 struct llog_rec_hdr *rec,
278 struct llog_rec_hdr *rec, struct thandle *th);
280 struct llog_rec_hdr *rec, struct llog_cookie *cookie,
520 struct llog_rec_hdr *rec, int idx,
523 struct llog_rec_hdr *rec, struct llog_cookie *logcookies,
[all …]
Ddt_object.h561 struct dt_rec *rec, const struct dt_key *key,
568 const struct dt_rec *rec,
572 const struct dt_rec *rec, const struct dt_key *key,
611 int (*rec)(const struct lu_env *env, member
613 struct dt_rec *rec,
1297 const struct dt_rec *rec, in dt_declare_insert() argument
1304 return dt->do_index_ops->dio_declare_insert(env, dt, rec, key, th); in dt_declare_insert()
1309 const struct dt_rec *rec, in dt_insert() argument
1318 return dt->do_index_ops->dio_insert(env, dt, rec, key, th, in dt_insert()
1433 struct dt_rec *rec, in dt_lookup() argument
[all …]
Dobd_class.h138 struct llog_rec_hdr *rec, void *data);
/linux-4.1.27/arch/arm64/kernel/
Dftrace.c70 int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) in ftrace_make_call() argument
72 unsigned long pc = rec->ip; in ftrace_make_call()
84 int ftrace_make_nop(struct module *mod, struct dyn_ftrace *rec, in ftrace_make_nop() argument
87 unsigned long pc = rec->ip; in ftrace_make_nop()
/linux-4.1.27/arch/sparc/kernel/
Dftrace.c55 int ftrace_make_nop(struct module *mod, struct dyn_ftrace *rec, unsigned long addr) in ftrace_make_nop() argument
57 unsigned long ip = rec->ip; in ftrace_make_nop()
65 int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) in ftrace_make_call() argument
67 unsigned long ip = rec->ip; in ftrace_make_call()
/linux-4.1.27/drivers/staging/lustre/lustre/include/lustre/
Dlustre_user.h797 #define CHANGELOG_REC_EXTENDED(rec) \ argument
798 (((rec)->cr_flags & CLF_VERMASK) == CLF_EXT_VERSION)
800 static inline int changelog_rec_size(struct changelog_rec *rec) in changelog_rec_size() argument
802 return CHANGELOG_REC_EXTENDED(rec) ? sizeof(struct changelog_ext_rec): in changelog_rec_size()
803 sizeof(*rec); in changelog_rec_size()
806 static inline char *changelog_rec_name(struct changelog_rec *rec) in changelog_rec_name() argument
808 return CHANGELOG_REC_EXTENDED(rec) ? in changelog_rec_name()
809 ((struct changelog_ext_rec *)rec)->cr_name: rec->cr_name; in changelog_rec_name()
812 static inline int changelog_rec_snamelen(struct changelog_ext_rec *rec) in changelog_rec_snamelen() argument
814 return rec->cr_namelen - strlen(rec->cr_name) - 1; in changelog_rec_snamelen()
[all …]
Dlustre_idl.h3019 #define REC_DATA_LEN(rec) \ argument
3020 (rec->lrh_len - sizeof(struct llog_rec_hdr) - \
3364 extern void lustre_swab_llog_rec(struct llog_rec_hdr *rec);
/linux-4.1.27/sound/pci/
Dcmipci.c739 static int set_dac_channels(struct cmipci *cm, struct cmipci_pcm *rec, int channels) in set_dac_channels() argument
742 if (!cm->can_multi_ch || !rec->ch) in set_dac_channels()
744 if (rec->fmt != 0x03) /* stereo 16bit only */ in set_dac_channels()
782 static int snd_cmipci_pcm_prepare(struct cmipci *cm, struct cmipci_pcm *rec, in snd_cmipci_pcm_prepare() argument
789 rec->fmt = 0; in snd_cmipci_pcm_prepare()
790 rec->shift = 0; in snd_cmipci_pcm_prepare()
792 rec->fmt |= 0x02; in snd_cmipci_pcm_prepare()
794 rec->shift++; /* 24/32bit */ in snd_cmipci_pcm_prepare()
797 rec->fmt |= 0x01; in snd_cmipci_pcm_prepare()
798 if (rec->is_dac && set_dac_channels(cm, rec, runtime->channels) < 0) { in snd_cmipci_pcm_prepare()
[all …]
Dintel8x0m.c721 struct ich_pcm_table *rec) in snd_intel8x0m_pcm1() argument
727 if (rec->suffix) in snd_intel8x0m_pcm1()
728 sprintf(name, "Intel ICH - %s", rec->suffix); in snd_intel8x0m_pcm1()
732 rec->playback_ops ? 1 : 0, in snd_intel8x0m_pcm1()
733 rec->capture_ops ? 1 : 0, &pcm); in snd_intel8x0m_pcm1()
737 if (rec->playback_ops) in snd_intel8x0m_pcm1()
738 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, rec->playback_ops); in snd_intel8x0m_pcm1()
739 if (rec->capture_ops) in snd_intel8x0m_pcm1()
740 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, rec->capture_ops); in snd_intel8x0m_pcm1()
745 if (rec->suffix) in snd_intel8x0m_pcm1()
[all …]
Dintel8x0.c1518 struct ich_pcm_table *rec) in snd_intel8x0_pcm1() argument
1524 if (rec->suffix) in snd_intel8x0_pcm1()
1525 sprintf(name, "Intel ICH - %s", rec->suffix); in snd_intel8x0_pcm1()
1529 rec->playback_ops ? 1 : 0, in snd_intel8x0_pcm1()
1530 rec->capture_ops ? 1 : 0, &pcm); in snd_intel8x0_pcm1()
1534 if (rec->playback_ops) in snd_intel8x0_pcm1()
1535 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, rec->playback_ops); in snd_intel8x0_pcm1()
1536 if (rec->capture_ops) in snd_intel8x0_pcm1()
1537 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, rec->capture_ops); in snd_intel8x0_pcm1()
1541 if (rec->suffix) in snd_intel8x0_pcm1()
[all …]
Drme32.c1141 struct snd_pcm_indirect *rec, size_t bytes) in snd_rme32_pb_trans_copy() argument
1144 memcpy_toio(rme32->iobase + RME32_IO_DATA_BUFFER + rec->hw_data, in snd_rme32_pb_trans_copy()
1145 substream->runtime->dma_area + rec->sw_data, bytes); in snd_rme32_pb_trans_copy()
1151 struct snd_pcm_indirect *rec, *cprec; in snd_rme32_playback_fd_ack() local
1153 rec = &rme32->playback_pcm; in snd_rme32_playback_fd_ack()
1156 rec->hw_queue_size = RME32_BUFFER_SIZE; in snd_rme32_playback_fd_ack()
1158 rec->hw_queue_size -= cprec->hw_ready; in snd_rme32_playback_fd_ack()
1160 snd_pcm_indirect_playback_transfer(substream, rec, in snd_rme32_playback_fd_ack()
1166 struct snd_pcm_indirect *rec, size_t bytes) in snd_rme32_cp_trans_copy() argument
1169 memcpy_fromio(substream->runtime->dma_area + rec->sw_data, in snd_rme32_cp_trans_copy()
[all …]
Dvia82xx.c1017 static int via_lock_rate(struct via_rate_lock *rec, int rate) in via_lock_rate() argument
1021 spin_lock_irq(&rec->lock); in via_lock_rate()
1022 if (rec->rate != rate) { in via_lock_rate()
1023 if (rec->rate && rec->used > 1) /* already set */ in via_lock_rate()
1026 rec->rate = rate; in via_lock_rate()
1030 spin_unlock_irq(&rec->lock); in via_lock_rate()
/linux-4.1.27/fs/btrfs/
Dreada.c166 struct reada_extctl *rec; in __readahead_hook() local
179 list_for_each_entry(rec, &list, list) { in __readahead_hook()
180 struct reada_control *rc = rec->rc; in __readahead_hook()
190 if (rec->generation != generation) { in __readahead_hook()
194 rec->generation, generation); in __readahead_hook()
197 if (rec->generation == generation && in __readahead_hook()
209 struct reada_extctl *rec; in __readahead_hook() local
211 rec = list_first_entry(&list, struct reada_extctl, list); in __readahead_hook()
212 list_del(&rec->list); in __readahead_hook()
213 rc = rec->rc; in __readahead_hook()
[all …]
Dextent_io.c1993 int free_io_failure(struct inode *inode, struct io_failure_record *rec) in free_io_failure() argument
1999 set_state_private(failure_tree, rec->start, 0); in free_io_failure()
2000 ret = clear_extent_bits(failure_tree, rec->start, in free_io_failure()
2001 rec->start + rec->len - 1, in free_io_failure()
2006 ret = clear_extent_bits(&BTRFS_I(inode)->io_tree, rec->start, in free_io_failure()
2007 rec->start + rec->len - 1, in free_io_failure()
2012 kfree(rec); in free_io_failure()
Dextent_io.h373 int free_io_failure(struct inode *inode, struct io_failure_record *rec);
/linux-4.1.27/drivers/staging/lustre/include/linux/lnet/
Dlib-lnet.h219 struct lnet_res_container *rec = &the_lnet.ln_eq_container; in lnet_eq_alloc() local
225 eq = (lnet_eq_t *)lnet_freelist_alloc(&rec->rec_freelist); in lnet_eq_alloc()
235 struct lnet_res_container *rec = &the_lnet.ln_eq_container; in lnet_eq_free_locked() local
238 lnet_freelist_free(&rec->rec_freelist, eq); in lnet_eq_free_locked()
253 struct lnet_res_container *rec = the_lnet.ln_md_containers[0]; in lnet_md_alloc() local
259 md = (lnet_libmd_t *)lnet_freelist_alloc(&rec->rec_freelist); in lnet_md_alloc()
272 struct lnet_res_container *rec = the_lnet.ln_md_containers[0]; in lnet_md_free_locked() local
275 lnet_freelist_free(&rec->rec_freelist, md); in lnet_md_free_locked()
290 struct lnet_res_container *rec = the_lnet.ln_me_containers[0]; in lnet_me_alloc() local
296 me = (lnet_me_t *)lnet_freelist_alloc(&rec->rec_freelist); in lnet_me_alloc()
[all …]
/linux-4.1.27/sound/soc/codecs/
Dwm0010.c355 const struct dfw_binrec *rec; in wm0010_firmware_load() local
370 rec = (const struct dfw_binrec *)fw->data; in wm0010_firmware_load()
371 inforec = (const struct dfw_inforec *)rec->data; in wm0010_firmware_load()
380 if (rec->command != DFW_CMD_INFO) { in wm0010_firmware_load()
405 offset += ((rec->length) + 8); in wm0010_firmware_load()
406 rec = (void *)&rec->data[rec->length]; in wm0010_firmware_load()
411 rec->command, rec->length); in wm0010_firmware_load()
412 len = rec->length + 8; in wm0010_firmware_load()
437 byte_swap_64((u64 *)&rec->command, img, len); in wm0010_firmware_load()
460 offset += ((rec->length) + 8); in wm0010_firmware_load()
[all …]
/linux-4.1.27/drivers/infiniband/ulp/ipoib/
Dipoib_multicast.c376 status = ipoib_mcast_join_finish(mcast, &multicast->rec); in ipoib_mcast_join_complete()
456 struct ib_sa_mcmember_rec rec = { in ipoib_mcast_join() local
464 rec.mgid = mcast->mcmember.mgid; in ipoib_mcast_join()
465 rec.port_gid = priv->local_gid; in ipoib_mcast_join()
466 rec.pkey = cpu_to_be16(priv->pkey); in ipoib_mcast_join()
486 rec.qkey = priv->broadcast->mcmember.qkey; in ipoib_mcast_join()
487 rec.mtu_selector = IB_SA_EQ; in ipoib_mcast_join()
488 rec.mtu = priv->broadcast->mcmember.mtu; in ipoib_mcast_join()
489 rec.traffic_class = priv->broadcast->mcmember.traffic_class; in ipoib_mcast_join()
490 rec.rate_selector = IB_SA_EQ; in ipoib_mcast_join()
[all …]
/linux-4.1.27/drivers/usb/serial/
Dio_edgeport.c284 const struct ihex_binrec *rec; in update_edgeport_E2PROM() local
308 rec = (const struct ihex_binrec *)fw->data; in update_edgeport_E2PROM()
309 BootMajorVersion = rec->data[0]; in update_edgeport_E2PROM()
310 BootMinorVersion = rec->data[1]; in update_edgeport_E2PROM()
311 BootBuildNumber = (rec->data[2] << 8) | rec->data[3]; in update_edgeport_E2PROM()
337 for (rec = ihex_next_binrec(rec); rec; in update_edgeport_E2PROM()
338 rec = ihex_next_binrec(rec)) { in update_edgeport_E2PROM()
339 Bootaddr = be32_to_cpu(rec->addr); in update_edgeport_E2PROM()
343 be16_to_cpu(rec->len), in update_edgeport_E2PROM()
344 &rec->data[0]); in update_edgeport_E2PROM()
[all …]
/linux-4.1.27/drivers/atm/
Dambassador.c1815 const struct ihex_binrec *rec) in loader_write() argument
1821 tb->address = rec->addr; in loader_write()
1822 tb->count = cpu_to_be32(be16_to_cpu(rec->len) / 4); in loader_write()
1823 memcpy(tb->data, rec->data, be16_to_cpu(rec->len)); in loader_write()
1830 const struct ihex_binrec *rec) in loader_verify() argument
1837 tb->address = rec->addr; in loader_verify()
1838 tb->count = cpu_to_be32(be16_to_cpu(rec->len) / 4); in loader_verify()
1840 if (!res && memcmp(tb->data, rec->data, be16_to_cpu(rec->len))) in loader_verify()
1927 const struct ihex_binrec *rec; in ucode_init() local
1938 rec = (const struct ihex_binrec *)fw->data; in ucode_init()
[all …]
/linux-4.1.27/include/linux/netfilter/
Dnf_conntrack_proto_gre.h30 __u16 rec:3, member
45 rec:3,
/linux-4.1.27/sound/pci/emu10k1/
Demu10k1_patch.c38 snd_emu10k1_sample_new(struct snd_emux *rec, struct snd_sf_sample *sp, in snd_emu10k1_sample_new() argument
48 emu = rec->hw; in snd_emu10k1_sample_new()
216 snd_emu10k1_sample_free(struct snd_emux *rec, struct snd_sf_sample *sp, in snd_emu10k1_sample_free() argument
221 emu = rec->hw; in snd_emu10k1_sample_free()
Demupcm.c1602 struct snd_pcm_indirect *rec, size_t bytes) in fx8010_pb_trans_copy() argument
1607 unsigned short *src = (unsigned short *)(substream->runtime->dma_area + rec->sw_data); in fx8010_pb_trans_copy()
/linux-4.1.27/arch/mips/kernel/
Dftrace.c192 struct dyn_ftrace *rec, unsigned long addr) in ftrace_make_nop() argument
195 unsigned long ip = rec->ip; in ftrace_make_nop()
216 int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) in ftrace_make_call() argument
219 unsigned long ip = rec->ip; in ftrace_make_call()
/linux-4.1.27/drivers/isdn/hisax/
Dnetjet.c402 u_int *pend = bcs->hw.tiger.rec + NETJET_DMA_RXSIZE - 1; in read_raw()
423 p = bcs->hw.tiger.rec; in read_raw()
594 p = cs->bcs[0].hw.tiger.rec + NETJET_DMA_RXSIZE - 1; in read_tiger()
596 p = cs->bcs[0].hw.tiger.rec + cnt - 1; in read_tiger()
936 if (!(cs->bcs[0].hw.tiger.rec = kmalloc(NETJET_DMA_RXSIZE * sizeof(unsigned int), in inittiger()
942 debugl1(cs, "tiger: rec buf %p - %p", cs->bcs[0].hw.tiger.rec, in inittiger()
943 cs->bcs[0].hw.tiger.rec + NETJET_DMA_RXSIZE - 1); in inittiger()
944 cs->bcs[1].hw.tiger.rec = cs->bcs[0].hw.tiger.rec; in inittiger()
945 memset(cs->bcs[0].hw.tiger.rec, 0xff, NETJET_DMA_RXSIZE * sizeof(unsigned int)); in inittiger()
946 outl(virt_to_bus(cs->bcs[0].hw.tiger.rec), in inittiger()
[all …]
Dhisax.h442 u_int *rec; member
/linux-4.1.27/block/partitions/
Dldm.c1300 int rec, num, group; in ldm_frag_add() local
1310 rec = get_unaligned_be16(data + 0x0C); in ldm_frag_add()
1316 if (rec >= num) { in ldm_frag_add()
1317 ldm_error("REC value (%d) exceeds NUM value (%d)", rec, num); in ldm_frag_add()
1335 f->rec = rec; in ldm_frag_add()
1340 if (rec >= f->num) { in ldm_frag_add()
1341 ldm_error("REC value (%d) exceeds NUM value (%d)", rec, f->num); in ldm_frag_add()
1344 if (f->map & (1 << rec)) { in ldm_frag_add()
1345 ldm_error ("Duplicate VBLK, part %d.", rec); in ldm_frag_add()
1349 f->map |= (1 << rec); in ldm_frag_add()
[all …]
Dldm.h108 u8 rec; /* This is record number n */ member
181 u16 rec; member
/linux-4.1.27/include/scsi/
Dfc_encode.h642 struct fc_els_rec *rec; in fc_rec_fill() local
645 rec = fc_frame_payload_get(fp, sizeof(*rec)); in fc_rec_fill()
646 memset(rec, 0, sizeof(*rec)); in fc_rec_fill()
647 rec->rec_cmd = ELS_REC; in fc_rec_fill()
648 hton24(rec->rec_s_id, lport->port_id); in fc_rec_fill()
649 rec->rec_ox_id = htons(ep->oxid); in fc_rec_fill()
650 rec->rec_rx_id = htons(ep->rxid); in fc_rec_fill()
/linux-4.1.27/drivers/net/wireless/orinoco/
Dhermes.h505 __le16 rec; in hermes_read_wordrec() local
508 err = HERMES_READ_RECORD(hw, bap, rid, &rec); in hermes_read_wordrec()
509 *word = le16_to_cpu(rec); in hermes_read_wordrec()
516 __le16 rec = cpu_to_le16(word); in hermes_write_wordrec() local
517 return HERMES_WRITE_RECORD(hw, bap, rid, &rec); in hermes_write_wordrec()
/linux-4.1.27/sound/oss/
Dmpu401.c675 static mpu_command_rec rec; in mpu_cmd() local
677 rec.cmd = cmd & 0xff; in mpu_cmd()
678 rec.nr_args = ((cmd & 0xf0) == 0xE0); in mpu_cmd()
679 rec.nr_returns = ((cmd & 0xf0) == 0xA0); in mpu_cmd()
680 rec.data[0] = data & 0xff; in mpu_cmd()
682 if ((ret = mpu401_command(dev, &rec)) < 0) in mpu_cmd()
684 return (unsigned char) rec.data[0]; in mpu_cmd()
725 mpu_command_rec rec; in mpu401_ioctl() local
742 if (copy_from_user(&rec, arg, sizeof(rec))) in mpu401_ioctl()
744 if ((ret = mpu401_command(dev, &rec)) < 0) in mpu401_ioctl()
[all …]
/linux-4.1.27/drivers/scsi/bnx2fc/
Dbnx2fc_els.c576 struct fc_els_rec rec; in bnx2fc_send_rec() local
585 memset(&rec, 0, sizeof(rec)); in bnx2fc_send_rec()
597 rec.rec_cmd = ELS_REC; in bnx2fc_send_rec()
598 hton24(rec.rec_s_id, sid); in bnx2fc_send_rec()
599 rec.rec_ox_id = htons(orig_io_req->xid); in bnx2fc_send_rec()
600 rec.rec_rx_id = htons(orig_io_req->task->rxwr_txrd.var_ctx.rx_id); in bnx2fc_send_rec()
602 rc = bnx2fc_initiate_els(tgt, ELS_REC, &rec, sizeof(rec), in bnx2fc_send_rec()
/linux-4.1.27/sound/pci/ali5451/
Dali5451.c548 static int snd_ali_find_free_channel(struct snd_ali * codec, int rec) in snd_ali_find_free_channel() argument
554 "find_free_channel: for %s\n", rec ? "rec" : "pcm"); in snd_ali_find_free_channel()
557 if (rec) { in snd_ali_find_free_channel()
924 int type, int rec, int channel) in snd_ali_alloc_voice() argument
929 dev_dbg(codec->card->dev, "alloc_voice: type=%d rec=%d\n", type, rec); in snd_ali_alloc_voice()
934 snd_ali_find_free_channel(codec,rec); in snd_ali_alloc_voice()
944 pvoice->mode = rec; in snd_ali_alloc_voice()
1027 static unsigned int snd_ali_convert_rate(unsigned int rate, int rec) in snd_ali_convert_rate() argument
1036 if (rec) { in snd_ali_convert_rate()
1493 static int snd_ali_open(struct snd_pcm_substream *substream, int rec, in snd_ali_open() argument
[all …]
/linux-4.1.27/drivers/input/misc/
Dims-pcu.c774 const struct ihex_binrec *rec = (const struct ihex_binrec *)fw->data; in ims_pcu_count_fw_records() local
777 while (rec) { in ims_pcu_count_fw_records()
779 rec = ihex_next_binrec(rec); in ims_pcu_count_fw_records()
828 const struct ihex_binrec *rec = (const struct ihex_binrec *)fw->data; in ims_pcu_flash_firmware() local
843 while (rec) { in ims_pcu_flash_firmware()
850 addr = be32_to_cpu(rec->addr) / 2; in ims_pcu_flash_firmware()
851 len = be16_to_cpu(rec->len); in ims_pcu_flash_firmware()
856 memcpy(fragment->data, rec->data, len); in ims_pcu_flash_firmware()
869 error = ims_pcu_verify_block(pcu, addr, len, rec->data); in ims_pcu_flash_firmware()
877 rec = ihex_next_binrec(rec); in ims_pcu_flash_firmware()
/linux-4.1.27/sound/mips/
Dhal2.c599 struct snd_pcm_indirect *rec, size_t bytes) in hal2_playback_transfer() argument
602 unsigned char *buf = hal2->dac.buffer + rec->hw_data; in hal2_playback_transfer()
604 memcpy(buf, substream->runtime->dma_area + rec->sw_data, bytes); in hal2_playback_transfer()
692 struct snd_pcm_indirect *rec, size_t bytes) in hal2_capture_transfer() argument
695 unsigned char *buf = hal2->adc.buffer + rec->hw_data; in hal2_capture_transfer()
698 memcpy(substream->runtime->dma_area + rec->sw_data, buf, bytes); in hal2_capture_transfer()
/linux-4.1.27/fs/xfs/
Dxfs_bmap_util.h54 int whichfork, struct xfs_bmbt_irec *rec,
Dxfs_bmap_util.c260 struct xfs_bmbt_irec rec; in xfs_bmap_eof() local
263 error = xfs_bmap_last_extent(NULL, ip, whichfork, &rec, eof); in xfs_bmap_eof()
267 *eof = endoff >= rec.br_startoff + rec.br_blockcount; in xfs_bmap_eof()
/linux-4.1.27/fs/ceph/
Dmds_client.c2729 } rec; in encode_caps_cb() local
2770 rec.v2.cap_id = cpu_to_le64(cap->cap_id); in encode_caps_cb()
2771 rec.v2.wanted = cpu_to_le32(__ceph_caps_wanted(ci)); in encode_caps_cb()
2772 rec.v2.issued = cpu_to_le32(cap->issued); in encode_caps_cb()
2773 rec.v2.snaprealm = cpu_to_le64(ci->i_snap_realm->ino); in encode_caps_cb()
2774 rec.v2.pathbase = cpu_to_le64(pathbase); in encode_caps_cb()
2775 rec.v2.flock_len = 0; in encode_caps_cb()
2776 reclen = sizeof(rec.v2); in encode_caps_cb()
2778 rec.v1.cap_id = cpu_to_le64(cap->cap_id); in encode_caps_cb()
2779 rec.v1.wanted = cpu_to_le32(__ceph_caps_wanted(ci)); in encode_caps_cb()
[all …]
/linux-4.1.27/drivers/scsi/
Daha1740.h122 :2, rec:1,:1; /* Error Recovery */
/linux-4.1.27/fs/nilfs2/
Dbmap.c155 int nilfs_bmap_insert(struct nilfs_bmap *bmap, __u64 key, unsigned long rec) in nilfs_bmap_insert() argument
160 ret = nilfs_bmap_do_insert(bmap, key, rec); in nilfs_bmap_insert()
Dbmap.h158 int nilfs_bmap_insert(struct nilfs_bmap *bmap, __u64 key, unsigned long rec);
/linux-4.1.27/arch/m68k/q40/
Dconfig.c201 int __init q40_parse_bootinfo(const struct bi_record *rec) in q40_parse_bootinfo() argument
/linux-4.1.27/arch/arm/boot/dts/
Dspear1340-evb.dts238 i2s1: i2s-rec@b2000000 {
288 i2s-rec@b2000000 {
Dspear1340.dtsi80 i2s-rec@b2000000 {
/linux-4.1.27/drivers/net/wireless/hostap/
Dhostap_hw.c807 struct hfa384x_rid_hdr rec; in hfa384x_get_rid() local
840 res = hfa384x_from_bap(dev, BAP0, &rec, sizeof(rec)); in hfa384x_get_rid()
842 if (le16_to_cpu(rec.len) == 0) { in hfa384x_get_rid()
847 rlen = (le16_to_cpu(rec.len) - 1) * 2; in hfa384x_get_rid()
879 struct hfa384x_rid_hdr rec; in hfa384x_set_rid() local
896 rec.rid = cpu_to_le16(rid); in hfa384x_set_rid()
898 rec.len = cpu_to_le16(len / 2 + len % 2 + 1); in hfa384x_set_rid()
907 res = hfa384x_to_bap(dev, BAP0, &rec, sizeof(rec)); in hfa384x_set_rid()
/linux-4.1.27/arch/cris/boot/rescue/
Dkimagerescue.S84 move.b 0x40, $r0 ; rec enable
Dhead_v10.S252 move.b 0x40, $r0 ; rec enable
/linux-4.1.27/tools/lib/traceevent/
Devent-parse.h689 int pevent_data_type(struct pevent *pevent, struct pevent_record *rec);
691 int pevent_data_pid(struct pevent *pevent, struct pevent_record *rec);
Devent-parse.c5027 int pevent_data_type(struct pevent *pevent, struct pevent_record *rec) in pevent_data_type() argument
5029 return trace_parse_common_type(pevent, rec->data); in pevent_data_type()
5051 int pevent_data_pid(struct pevent *pevent, struct pevent_record *rec) in pevent_data_pid() argument
5053 return parse_common_pid(pevent, rec->data); in pevent_data_pid()
/linux-4.1.27/arch/ia64/include/asm/sn/
Dsn_sal.h313 ia64_sn_plat_specific_err_print(int (*hook)(const char*, ...), char *rec) in ia64_sn_plat_specific_err_print() argument
321 SAL_CALL_REENTRANT(ret_stuff, SN_SAL_PRINT_ERROR, (u64)hook, (u64)rec, 0, 0, 0, 0, 0); in ia64_sn_plat_specific_err_print()
/linux-4.1.27/Documentation/arm/SA1100/
DAssabet273 Audio rec: Implemented, not heavily tested.
275 Telco audio rec: Implemented, not heavily tested.
/linux-4.1.27/kernel/events/
Dcore.c5988 } rec = { in perf_event_aux_event() local
5992 .size = sizeof(rec), in perf_event_aux_event()
6000 perf_event_header__init_id(&rec.header, &sample, event); in perf_event_aux_event()
6001 ret = perf_output_begin(&handle, event, rec.header.size); in perf_event_aux_event()
6006 perf_output_put(&handle, rec); in perf_event_aux_event()
6061 } rec; in perf_log_itrace_start() local
6073 rec.header.type = PERF_RECORD_ITRACE_START; in perf_log_itrace_start()
6074 rec.header.misc = 0; in perf_log_itrace_start()
6075 rec.header.size = sizeof(rec); in perf_log_itrace_start()
6076 rec.pid = perf_event_pid(event, current); in perf_log_itrace_start()
[all …]
/linux-4.1.27/sound/pci/cs46xx/
Dcs46xx_lib.c879 struct snd_pcm_indirect *rec, size_t bytes) in snd_cs46xx_pb_trans_copy() argument
883 memcpy(cpcm->hw_buf.area + rec->hw_data, runtime->dma_area + rec->sw_data, bytes); in snd_cs46xx_pb_trans_copy()
895 struct snd_pcm_indirect *rec, size_t bytes) in snd_cs46xx_cp_trans_copy() argument
899 memcpy(runtime->dma_area + rec->sw_data, in snd_cs46xx_cp_trans_copy()
900 chip->capt.hw_buf.area + rec->hw_data, bytes); in snd_cs46xx_cp_trans_copy()
/linux-4.1.27/Documentation/filesystems/
Dspufs.txt378 See http://www.bsc.es/projects/deepcomputing/linuxoncell/ for the rec-
495 See http://www.bsc.es/projects/deepcomputing/linuxoncell/ for the rec-
/linux-4.1.27/net/tipc/
Dlink.c1371 u32 rec = buf_seqno(skb_peek(&l_ptr->deferdq)); in tipc_link_proto_xmit() local
1372 gap = mod(rec - mod(l_ptr->next_in_no)); in tipc_link_proto_xmit()
/linux-4.1.27/Documentation/trace/
Dftrace-design.txt348 The rec->ip value is the address of the mcount call site that was collected