Home
last modified time | relevance | path

Searched refs:bufp (Results 1 – 25 of 70) sorted by relevance

123

/linux/kernel/trace/
A Dtrace_boot.c181 if (*bufp == end) in append_printf()
185 ret = vsnprintf(*bufp, end - *bufp, fmt, args); in append_printf()
186 if (ret < end - *bufp) { in append_printf()
187 *bufp += ret; in append_printf()
189 *bufp = end; in append_printf()
200 char *p = *bufp; in append_str_nospace()
210 *bufp = end; in append_str_nospace()
213 len = p - *bufp; in append_str_nospace()
214 *bufp = p; in append_str_nospace()
233 append_printf(bufp, end, ":%s", key); in trace_boot_hist_add_array()
[all …]
/linux/arch/powerpc/platforms/powernv/
A Dopal-core.c143 memset(bufp, 0, AUXV_DESC_SZ); in auxv_to_elf64_notes()
228 char *bufp; in opalcore_append_cpu_notes() local
310 char *bufp; in create_opalcore() local
356 bufp = oc_conf->opalcorebuf; in create_opalcore()
357 elf = (Elf64_Ehdr *)bufp; in create_opalcore()
358 bufp += sizeof(Elf64_Ehdr); in create_opalcore()
380 phdr = (Elf64_Phdr *)bufp; in create_opalcore()
381 bufp += sizeof(Elf64_Phdr); in create_opalcore()
394 phdr = (Elf64_Phdr *)bufp; in create_opalcore()
421 bufp = (char *)opalcore_append_cpu_notes((Elf64_Word *)bufp); in create_opalcore()
[all …]
A Dopal-fadump.h124 static inline void opal_fadump_read_regs(char *bufp, unsigned int regs_cnt, in opal_fadump_read_regs() argument
135 for (i = 0; i < regs_cnt; i++, bufp += reg_entry_size) { in opal_fadump_read_regs()
136 reg_entry = (struct hdat_fadump_reg_entry *)bufp; in opal_fadump_read_regs()
A Dopal-fadump.c425 char *bufp; in opal_fadump_build_cpu_notes() local
431 bufp = __va(fadump_conf->cpu_state_dest_vaddr); in opal_fadump_build_cpu_notes()
448 thdr = (struct hdat_fadump_thread_hdr *)bufp; in opal_fadump_build_cpu_notes()
459 for (i = 0; i < num_cpus; i++, bufp += size_per_thread) { in opal_fadump_build_cpu_notes()
460 thdr = (struct hdat_fadump_thread_hdr *)bufp; in opal_fadump_build_cpu_notes()
491 opal_fadump_read_regs((bufp + regs_offset), regs_cnt, in opal_fadump_build_cpu_notes()
/linux/fs/freevxfs/
A Dvxfs_super.c75 vxfs_statfs(struct dentry *dentry, struct kstatfs *bufp) in vxfs_statfs() argument
81 bufp->f_type = VXFS_SUPER_MAGIC; in vxfs_statfs()
82 bufp->f_bsize = dentry->d_sb->s_blocksize; in vxfs_statfs()
83 bufp->f_blocks = fs32_to_cpu(infp, raw_sb->vs_dsize); in vxfs_statfs()
84 bufp->f_bfree = fs32_to_cpu(infp, raw_sb->vs_free); in vxfs_statfs()
85 bufp->f_bavail = 0; in vxfs_statfs()
86 bufp->f_files = 0; in vxfs_statfs()
87 bufp->f_ffree = fs32_to_cpu(infp, raw_sb->vs_ifree); in vxfs_statfs()
88 bufp->f_fsid = u64_to_fsid(id); in vxfs_statfs()
89 bufp->f_namelen = VXFS_NAMELEN; in vxfs_statfs()
/linux/tools/perf/arch/powerpc/util/
A Dheader.c35 char *bufp; in get_cpuid_str() local
37 if (asprintf(&bufp, "0x%.8lx", mfspr(SPRN_PVR)) < 0) in get_cpuid_str()
38 bufp = NULL; in get_cpuid_str()
40 return bufp; in get_cpuid_str()
/linux/sound/pci/emu10k1/
A Demuproc.c351 char *bufp = buf; in snd_emu10k1_proc_acode_read() local
356 bufp += sprintf(bufp, " %-7s ", insns[(high >> 24) & 0x0f]); in snd_emu10k1_proc_acode_read()
357 bufp += disasm_audigy_reg(bufp, (high >> 12) & 0x7ff, ""); in snd_emu10k1_proc_acode_read()
358 bufp += disasm_audigy_reg(bufp, (high >> 0) & 0x7ff, ", "); in snd_emu10k1_proc_acode_read()
359 bufp += disasm_audigy_reg(bufp, (low >> 12) & 0x7ff, ", "); in snd_emu10k1_proc_acode_read()
360 bufp += disasm_audigy_reg(bufp, (low >> 0) & 0x7ff, ", "); in snd_emu10k1_proc_acode_read()
362 bufp += sprintf(bufp, " %-7s ", insns[(high >> 20) & 0x0f]); in snd_emu10k1_proc_acode_read()
363 bufp += disasm_sblive_reg(bufp, (high >> 10) & 0x3ff, ""); in snd_emu10k1_proc_acode_read()
364 bufp += disasm_sblive_reg(bufp, (high >> 0) & 0x3ff, ", "); in snd_emu10k1_proc_acode_read()
365 bufp += disasm_sblive_reg(bufp, (low >> 10) & 0x3ff, ", "); in snd_emu10k1_proc_acode_read()
[all …]
/linux/include/sound/
A Dcompress_driver.h222 struct snd_dma_buffer *bufp) in snd_compr_set_runtime_buffer() argument
226 if (bufp) { in snd_compr_set_runtime_buffer()
227 runtime->dma_buffer_p = bufp; in snd_compr_set_runtime_buffer()
228 runtime->dma_area = bufp->area; in snd_compr_set_runtime_buffer()
229 runtime->dma_addr = bufp->addr; in snd_compr_set_runtime_buffer()
230 runtime->dma_bytes = bufp->bytes; in snd_compr_set_runtime_buffer()
/linux/arch/powerpc/kernel/
A Dfadump.c762 bufp += sizeof(struct elfhdr); in fadump_update_elfcore_header()
765 phdr = (struct elf_phdr *)bufp; in fadump_update_elfcore_header()
928 elf = (struct elfhdr *) bufp; in fadump_init_elfcore_header()
929 bufp += sizeof(struct elfhdr); in fadump_init_elfcore_header()
1005 char *bufp; in fadump_populate_elfcorehdr() local
1013 elf = (struct elfhdr *)bufp; in fadump_populate_elfcorehdr()
1014 bufp += sizeof(struct elfhdr); in fadump_populate_elfcorehdr()
1023 phdr = (struct elf_phdr *)bufp; in fadump_populate_elfcorehdr()
1024 bufp += sizeof(struct elf_phdr); in fadump_populate_elfcorehdr()
1037 phdr = (struct elf_phdr *)bufp; in fadump_populate_elfcorehdr()
[all …]
/linux/drivers/tty/hvc/
A Dhvc_iucv.c153 struct iucv_tty_buffer *bufp; in alloc_tty_buffer() local
156 if (!bufp) in alloc_tty_buffer()
158 memset(bufp, 0, sizeof(*bufp)); in alloc_tty_buffer()
161 bufp->msg.length = MSG_SIZE(size); in alloc_tty_buffer()
162 bufp->mbuf = kmalloc(bufp->msg.length, flags | GFP_DMA); in alloc_tty_buffer()
163 if (!bufp->mbuf) { in alloc_tty_buffer()
167 bufp->mbuf->version = MSG_VERSION; in alloc_tty_buffer()
168 bufp->mbuf->type = MSG_TYPE_DATA; in alloc_tty_buffer()
169 bufp->mbuf->datalen = (u16) size; in alloc_tty_buffer()
171 return bufp; in alloc_tty_buffer()
[all …]
/linux/kernel/
A Dauditfilter.c144 memcpy(str, *bufp, len); in audit_unpack_string()
146 *bufp += len; in audit_unpack_string()
454 void *bufp; in audit_data_to_entry() local
464 bufp = data->buf; in audit_data_to_entry()
628 memcpy(*bufp, str, len); in audit_pack_string()
629 *bufp += len; in audit_pack_string()
638 void *bufp; in audit_krule_to_data() local
649 bufp = data->buf; in audit_krule_to_data()
667 audit_pack_string(&bufp, f->lsm_str); in audit_krule_to_data()
671 audit_pack_string(&bufp, in audit_krule_to_data()
[all …]
/linux/security/integrity/ima/
A Dima_template_lib.c245 void *bufp = bufstartp; in ima_parse_buf() local
250 if (bufp > (bufendp - sizeof(u32))) in ima_parse_buf()
254 fields[i].len = le32_to_cpu(*(__le32 *)bufp); in ima_parse_buf()
256 fields[i].len = *(u32 *)bufp; in ima_parse_buf()
258 bufp += sizeof(u32); in ima_parse_buf()
261 if (bufp > (bufendp - fields[i].len)) in ima_parse_buf()
264 fields[i].data = bufp; in ima_parse_buf()
265 bufp += fields[i].len; in ima_parse_buf()
274 if ((enforce_mask & ENFORCE_BUFEND) && bufp != bufendp) { in ima_parse_buf()
276 bufname, bufendp, bufp); in ima_parse_buf()
[all …]
A Dima_template.c425 void *bufp = buf + sizeof(*khdr); in ima_restore_measurement_list() local
462 while ((bufp < bufendp) && (count++ < khdr->count)) { in ima_restore_measurement_list()
466 ret = ima_parse_buf(bufp, bufendp, &bufp, HDR__LAST, hdr, NULL, in ima_restore_measurement_list()
/linux/arch/x86/crypto/
A Dcrc32c-pcl-intel-asm_64.S77 #define bufp rdi macro
107 mov %bufp, bufptmp # rdi = *buf
108 neg %bufp
109 and $7, %bufp # calculate the unalignment amount of
219 lea (K_table-8)(%rip), %bufp # first entry is for idx 1
221 pmovzxdq (%bufp,%rax), %xmm0 # 2 consts: K1:K2
/linux/tools/virtio/ringtest/
A Dnoring.c23 void *get_buf(unsigned *lenp, void **bufp) in get_buf() argument
64 bool use_buf(unsigned *lenp, void **bufp) in use_buf() argument
A Dvirtio_ring_0_9.c152 void *get_buf(unsigned *lenp, void **bufp) in get_buf() argument
186 *bufp = (void*)(unsigned long)ring.desc[index].addr; in get_buf()
270 bool use_buf(unsigned *lenp, void **bufp) in use_buf() argument
302 *bufp = (void *)(unsigned long)desc->addr; in use_buf()
A Dring.c143 void *get_buf(unsigned *lenp, void **bufp) in get_buf() argument
156 *bufp = data[index].buf; in get_buf()
226 bool use_buf(unsigned *lenp, void **bufp) in use_buf() argument
A Dptr_ring.c147 void *get_buf(unsigned *lenp, void **bufp) in get_buf() argument
197 bool use_buf(unsigned *lenp, void **bufp) in use_buf() argument
/linux/net/l2tp/
A Dl2tp_core.c1141 __be16 *bufp = buf; in l2tp_build_l2tpv2_header() local
1151 *bufp++ = htons(flags); in l2tp_build_l2tpv2_header()
1156 *bufp++ = 0; in l2tp_build_l2tpv2_header()
1162 return bufp - optr; in l2tp_build_l2tpv2_header()
1168 char *bufp = buf; in l2tp_build_l2tpv3_header() local
1169 char *optr = bufp; in l2tp_build_l2tpv3_header()
1177 bufp += 2; in l2tp_build_l2tpv3_header()
1179 bufp += 2; in l2tp_build_l2tpv3_header()
1183 bufp += 4; in l2tp_build_l2tpv3_header()
1199 bufp += 4; in l2tp_build_l2tpv3_header()
[all …]
/linux/include/linux/
A Dseq_buf.h119 static inline size_t seq_buf_get_buf(struct seq_buf *s, char **bufp) in seq_buf_get_buf() argument
124 *bufp = s->buffer + s->len; in seq_buf_get_buf()
128 *bufp = NULL; in seq_buf_get_buf()
/linux/lib/
A Dalloc_tag.c88 char *bufp; in allocinfo_show() local
89 size_t n = seq_get_buf(m, &bufp); in allocinfo_show()
92 seq_buf_init(&buf, bufp, n); in allocinfo_show()
/linux/security/keys/trusted-keys/
A Dtrusted_core.c294 char *bufp; in trusted_read() local
302 bufp = buffer; in trusted_read()
304 bufp = hex_byte_pack(bufp, p->blob[i]); in trusted_read()
/linux/drivers/input/touchscreen/
A Dsilead.c247 u8 *bufp, buf[SILEAD_TS_DATA_LEN]; in silead_ts_read_data() local
268 bufp = buf + SILEAD_POINT_DATA_LEN; in silead_ts_read_data()
269 for (i = 0; i < buf[0]; i++, bufp += SILEAD_POINT_DATA_LEN) { in silead_ts_read_data()
270 softbutton = (bufp[SILEAD_POINT_Y_MSB_OFF] & in silead_ts_read_data()
289 data->id[touch_nr] = (bufp[SILEAD_POINT_X_MSB_OFF] & in silead_ts_read_data()
292 get_unaligned_le16(&bufp[SILEAD_POINT_X_OFF]) & 0xfff, in silead_ts_read_data()
293 get_unaligned_le16(&bufp[SILEAD_POINT_Y_OFF]) & 0xfff); in silead_ts_read_data()
/linux/drivers/pci/hotplug/
A Dacpiphp_ibm.c85 static int ibm_get_table_from_acpi(char **bufp);
282 static int ibm_get_table_from_acpi(char **bufp) in ibm_get_table_from_acpi() argument
312 if (bufp == NULL) in ibm_get_table_from_acpi()
320 *bufp = lbuf; in ibm_get_table_from_acpi()
/linux/drivers/misc/bcm-vk/
A Dbcm_vk_dev.c549 void *bufp = NULL; in bcm_vk_load_image_by_type() local
582 bufp = dma_alloc_coherent(dev, in bcm_vk_load_image_by_type()
585 if (!bufp) { in bcm_vk_load_image_by_type()
604 bufp = dma_alloc_coherent(dev, in bcm_vk_load_image_by_type()
607 if (!bufp) { in bcm_vk_load_image_by_type()
613 bcm_vk_buf_notify(vk, bufp, boot_dma_addr, max_buf); in bcm_vk_load_image_by_type()
622 bufp, max_buf, offset); in bcm_vk_load_image_by_type()
631 bufp, in bcm_vk_load_image_by_type()
709 dev, bufp, in bcm_vk_load_image_by_type()
774 if (bufp) in bcm_vk_load_image_by_type()
[all …]

Completed in 41 milliseconds

123