Home
last modified time | relevance | path

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

123

/linux-6.15/arch/x86/lib/
H A Dcrc32c-3way.S61 #define bufp %rsi macro
87 movq (bufp), %rax
88 add n_misaligned_q, bufp
129 crc32q (bufp), crc0_q
132 crc32q 8(bufp), crc0_q
135 crc32q 16(bufp), crc0_q
138 crc32q 24(bufp), crc0_q
141 add $32, bufp
150 crc32q (bufp), crc0_q
153 add $8, bufp
[all …]
/linux-6.15/kernel/trace/
H 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-6.15/arch/powerpc/platforms/powernv/
H 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 …]
H 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()
H 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-6.15/fs/freevxfs/
H 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-6.15/sound/pci/emu10k1/
H A Demuproc.c352 char *bufp = buf; in snd_emu10k1_proc_acode_read() local
357 bufp += sprintf(bufp, " %-7s ", insns[(high >> 24) & 0x0f]); in snd_emu10k1_proc_acode_read()
358 bufp += disasm_audigy_reg(bufp, (high >> 12) & 0x7ff, ""); in snd_emu10k1_proc_acode_read()
359 bufp += disasm_audigy_reg(bufp, (high >> 0) & 0x7ff, ", "); in snd_emu10k1_proc_acode_read()
360 bufp += disasm_audigy_reg(bufp, (low >> 12) & 0x7ff, ", "); in snd_emu10k1_proc_acode_read()
361 bufp += disasm_audigy_reg(bufp, (low >> 0) & 0x7ff, ", "); in snd_emu10k1_proc_acode_read()
363 bufp += sprintf(bufp, " %-7s ", insns[(high >> 20) & 0x0f]); in snd_emu10k1_proc_acode_read()
364 bufp += disasm_sblive_reg(bufp, (high >> 10) & 0x3ff, ""); in snd_emu10k1_proc_acode_read()
365 bufp += disasm_sblive_reg(bufp, (high >> 0) & 0x3ff, ", "); in snd_emu10k1_proc_acode_read()
366 bufp += disasm_sblive_reg(bufp, (low >> 10) & 0x3ff, ", "); in snd_emu10k1_proc_acode_read()
[all …]
/linux-6.15/tools/perf/arch/powerpc/util/
H A Dheader.c47 char *bufp; in get_cpuid_str() local
67 if (asprintf(&bufp, "0x%.8lx", pvr) < 0) in get_cpuid_str()
68 bufp = NULL; in get_cpuid_str()
70 return bufp; in get_cpuid_str()
/linux-6.15/include/sound/
H A Dcompress_driver.h267 struct snd_dma_buffer *bufp) in snd_compr_set_runtime_buffer() argument
271 if (bufp) { in snd_compr_set_runtime_buffer()
272 runtime->dma_buffer_p = bufp; in snd_compr_set_runtime_buffer()
273 runtime->dma_area = bufp->area; in snd_compr_set_runtime_buffer()
274 runtime->dma_addr = bufp->addr; in snd_compr_set_runtime_buffer()
275 runtime->dma_bytes = bufp->bytes; in snd_compr_set_runtime_buffer()
/linux-6.15/arch/powerpc/kernel/
H A Dfadump.c764 bufp += sizeof(struct elfhdr); in fadump_update_elfcore_header()
767 phdr = (struct elf_phdr *)bufp; in fadump_update_elfcore_header()
930 elf = (struct elfhdr *) bufp; in fadump_init_elfcore_header()
931 bufp += sizeof(struct elfhdr); in fadump_init_elfcore_header()
1007 char *bufp; in fadump_populate_elfcorehdr() local
1015 elf = (struct elfhdr *)bufp; in fadump_populate_elfcorehdr()
1016 bufp += sizeof(struct elfhdr); in fadump_populate_elfcorehdr()
1025 phdr = (struct elf_phdr *)bufp; in fadump_populate_elfcorehdr()
1026 bufp += sizeof(struct elf_phdr); in fadump_populate_elfcorehdr()
1039 phdr = (struct elf_phdr *)bufp; in fadump_populate_elfcorehdr()
[all …]
/linux-6.15/drivers/tty/hvc/
H A Dhvc_iucv.c154 struct iucv_tty_buffer *bufp; in alloc_tty_buffer() local
157 if (!bufp) in alloc_tty_buffer()
159 memset(bufp, 0, sizeof(*bufp)); in alloc_tty_buffer()
162 bufp->msg.length = MSG_SIZE(size); in alloc_tty_buffer()
163 bufp->mbuf = kmalloc(bufp->msg.length, flags | GFP_DMA); in alloc_tty_buffer()
164 if (!bufp->mbuf) { in alloc_tty_buffer()
168 bufp->mbuf->version = MSG_VERSION; in alloc_tty_buffer()
169 bufp->mbuf->type = MSG_TYPE_DATA; in alloc_tty_buffer()
170 bufp->mbuf->datalen = (u16) size; in alloc_tty_buffer()
172 return bufp; in alloc_tty_buffer()
[all …]
/linux-6.15/kernel/
H 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-6.15/security/integrity/ima/
H 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 …]
H 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-6.15/tools/virtio/ringtest/
H 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
H 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()
H 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
H 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-6.15/net/l2tp/
H 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-6.15/include/linux/
H 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-6.15/security/keys/trusted-keys/
H 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-6.15/drivers/hwtracing/coresight/
H A Dcoresight-tmc-core.c184 char *bufp; in tmc_prepare_crashdata() local
217 CORESIGHT_BARRIER_PKT_SIZE, &bufp); in tmc_prepare_crashdata()
219 coresight_insert_barrier_packet(bufp); in tmc_prepare_crashdata()
307 char *bufp; in tmc_read() local
311 actual = tmc_get_sysfs_trace(drvdata, *ppos, len, &bufp); in tmc_read()
315 if (copy_to_user(data, bufp, actual)) { in tmc_read()
379 char *bufp; in tmc_crashdata_read() local
385 actual = tmc_get_resvbuf_trace(drvdata, *ppos, len, &bufp); in tmc_crashdata_read()
389 if (copy_to_user(data, bufp, actual)) { in tmc_crashdata_read()
/linux-6.15/drivers/input/touchscreen/
H 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-6.15/drivers/pci/hotplug/
H 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-6.15/drivers/misc/bcm-vk/
H 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 …]

123