Home
last modified time | relevance | path

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

123

/linux-6.6.21/kernel/trace/
Dtrace_boot.c176 append_printf(char **bufp, char *end, const char *fmt, ...) in append_printf() argument
181 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()
198 append_str_nospace(char **bufp, char *end, const char *str) in append_str_nospace() argument
200 char *p = *bufp; in append_str_nospace()
210 *bufp = end; in append_str_nospace()
213 len = p - *bufp; in append_str_nospace()
[all …]
/linux-6.6.21/fs/xfs/libxfs/
Dxfs_rtbitmap.c105 xfs_rtword_t *bufp; /* starting word in buffer */ in xfs_rtfind_back() local
123 bufp = bp->b_addr; in xfs_rtfind_back()
128 b = &bufp[word]; in xfs_rtfind_back()
175 bufp = bp->b_addr; in xfs_rtfind_back()
177 b = &bufp[word]; in xfs_rtfind_back()
221 bufp = bp->b_addr; in xfs_rtfind_back()
223 b = &bufp[word]; in xfs_rtfind_back()
280 xfs_rtword_t *bufp; /* starting word in buffer */ in xfs_rtfind_forw() local
298 bufp = bp->b_addr; in xfs_rtfind_forw()
303 b = &bufp[word]; in xfs_rtfind_forw()
[all …]
/linux-6.6.21/arch/powerpc/platforms/powernv/
Dopal-core.c140 Elf64_Off *bufp = (Elf64_Off *)oc_conf->auxv_buf; in auxv_to_elf64_notes() local
143 memset(bufp, 0, AUXV_DESC_SZ); in auxv_to_elf64_notes()
146 bufp[idx++] = cpu_to_be64(AT_ENTRY); in auxv_to_elf64_notes()
147 bufp[idx++] = cpu_to_be64(opal_boot_entry); in auxv_to_elf64_notes()
150 bufp[idx++] = cpu_to_be64(AT_NULL); in auxv_to_elf64_notes()
228 char *bufp; in opalcore_append_cpu_notes() local
232 bufp = __va(oc_conf->cpu_state_destination_vaddr); in opalcore_append_cpu_notes()
239 thdr = (struct hdat_fadump_thread_hdr *)bufp; in opalcore_append_cpu_notes()
258 for (i = 0; i < oc_conf->num_cpus; i++, bufp += size_per_thread) { in opalcore_append_cpu_notes()
259 thdr = (struct hdat_fadump_thread_hdr *)bufp; in opalcore_append_cpu_notes()
[all …]
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()
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.6.21/tools/perf/arch/powerpc/util/
Dheader.c35 char *bufp; in get_cpuid_str() local
37 if (asprintf(&bufp, "%.8lx", mfspr(SPRN_PVR)) < 0) in get_cpuid_str()
38 bufp = NULL; in get_cpuid_str()
40 return bufp; in get_cpuid_str()
/linux-6.6.21/sound/pci/emu10k1/
Demuproc.c347 char *bufp = buf; in snd_emu10k1_proc_acode_read() local
352 bufp += sprintf(bufp, " %-7s ", insns[(high >> 24) & 0x0f]); in snd_emu10k1_proc_acode_read()
353 bufp += disasm_audigy_reg(bufp, (high >> 12) & 0x7ff, ""); in snd_emu10k1_proc_acode_read()
354 bufp += disasm_audigy_reg(bufp, (high >> 0) & 0x7ff, ", "); in snd_emu10k1_proc_acode_read()
355 bufp += disasm_audigy_reg(bufp, (low >> 12) & 0x7ff, ", "); in snd_emu10k1_proc_acode_read()
356 bufp += disasm_audigy_reg(bufp, (low >> 0) & 0x7ff, ", "); in snd_emu10k1_proc_acode_read()
358 bufp += sprintf(bufp, " %-7s ", insns[(high >> 20) & 0x0f]); in snd_emu10k1_proc_acode_read()
359 bufp += disasm_sblive_reg(bufp, (high >> 10) & 0x3ff, ""); in snd_emu10k1_proc_acode_read()
360 bufp += disasm_sblive_reg(bufp, (high >> 0) & 0x3ff, ", "); in snd_emu10k1_proc_acode_read()
361 bufp += disasm_sblive_reg(bufp, (low >> 10) & 0x3ff, ", "); in snd_emu10k1_proc_acode_read()
[all …]
/linux-6.6.21/fs/freevxfs/
Dvxfs_super.c75 vxfs_statfs(struct dentry *dentry, struct kstatfs *bufp) in vxfs_statfs() argument
80 bufp->f_type = VXFS_SUPER_MAGIC; in vxfs_statfs()
81 bufp->f_bsize = dentry->d_sb->s_blocksize; in vxfs_statfs()
82 bufp->f_blocks = fs32_to_cpu(infp, raw_sb->vs_dsize); in vxfs_statfs()
83 bufp->f_bfree = fs32_to_cpu(infp, raw_sb->vs_free); in vxfs_statfs()
84 bufp->f_bavail = 0; in vxfs_statfs()
85 bufp->f_files = 0; in vxfs_statfs()
86 bufp->f_ffree = fs32_to_cpu(infp, raw_sb->vs_ifree); in vxfs_statfs()
87 bufp->f_namelen = VXFS_NAMELEN; in vxfs_statfs()
/linux-6.6.21/include/sound/
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-6.6.21/drivers/tty/hvc/
Dhvc_iucv.c153 struct iucv_tty_buffer *bufp; in alloc_tty_buffer() local
155 bufp = mempool_alloc(hvc_iucv_mempool, flags); in alloc_tty_buffer()
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()
164 mempool_free(bufp, hvc_iucv_mempool); 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()
[all …]
/linux-6.6.21/kernel/
Dauditfilter.c127 char *audit_unpack_string(void **bufp, size_t *remain, size_t len) in audit_unpack_string() argument
131 if (!*bufp || (len == 0) || (len > *remain)) in audit_unpack_string()
144 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()
524 str = audit_unpack_string(&bufp, &remain, f_val); in audit_data_to_entry()
543 str = audit_unpack_string(&bufp, &remain, f_val); in audit_data_to_entry()
556 str = audit_unpack_string(&bufp, &remain, f_val); in audit_data_to_entry()
576 str = audit_unpack_string(&bufp, &remain, f_val); in audit_data_to_entry()
[all …]
/linux-6.6.21/security/integrity/ima/
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 …]
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.6.21/arch/x86/crypto/
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-6.6.21/tools/virtio/ringtest/
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
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()
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
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.6.21/net/l2tp/
Dl2tp_core.c931 __be16 *bufp = buf; in l2tp_build_l2tpv2_header() local
941 *bufp++ = htons(flags); in l2tp_build_l2tpv2_header()
942 *bufp++ = htons(tunnel_id); in l2tp_build_l2tpv2_header()
943 *bufp++ = htons(session_id); in l2tp_build_l2tpv2_header()
945 *bufp++ = htons(session->ns); in l2tp_build_l2tpv2_header()
946 *bufp++ = 0; in l2tp_build_l2tpv2_header()
952 return bufp - optr; in l2tp_build_l2tpv2_header()
958 char *bufp = buf; in l2tp_build_l2tpv3_header() local
959 char *optr = bufp; in l2tp_build_l2tpv3_header()
966 *((__be16 *)bufp) = htons(flags); in l2tp_build_l2tpv3_header()
[all …]
/linux-6.6.21/arch/powerpc/kernel/
Dfadump.c768 void __init fadump_update_elfcore_header(char *bufp) in fadump_update_elfcore_header() argument
772 bufp += sizeof(struct elfhdr); in fadump_update_elfcore_header()
775 phdr = (struct elf_phdr *)bufp; in fadump_update_elfcore_header()
964 static int fadump_init_elfcore_header(char *bufp) in fadump_init_elfcore_header() argument
968 elf = (struct elfhdr *) bufp; in fadump_init_elfcore_header()
969 bufp += sizeof(struct elfhdr); in fadump_init_elfcore_header()
1076 static int fadump_create_elfcore_headers(char *bufp) in fadump_create_elfcore_headers() argument
1083 fadump_init_elfcore_header(bufp); in fadump_create_elfcore_headers()
1084 elf = (struct elfhdr *)bufp; in fadump_create_elfcore_headers()
1085 bufp += sizeof(struct elfhdr); in fadump_create_elfcore_headers()
[all …]
/linux-6.6.21/include/linux/
Dseq_buf.h107 static inline size_t seq_buf_get_buf(struct seq_buf *s, char **bufp) in seq_buf_get_buf() argument
112 *bufp = s->buffer + s->len; in seq_buf_get_buf()
116 *bufp = NULL; in seq_buf_get_buf()
/linux-6.6.21/security/keys/trusted-keys/
Dtrusted_core.c290 char *bufp; in trusted_read() local
298 bufp = buffer; in trusted_read()
300 bufp = hex_byte_pack(bufp, p->blob[i]); in trusted_read()
/linux-6.6.21/drivers/input/touchscreen/
Dsilead.c248 u8 *bufp, buf[SILEAD_TS_DATA_LEN]; in silead_ts_read_data() local
269 bufp = buf + SILEAD_POINT_DATA_LEN; in silead_ts_read_data()
270 for (i = 0; i < buf[0]; i++, bufp += SILEAD_POINT_DATA_LEN) { in silead_ts_read_data()
271 softbutton = (bufp[SILEAD_POINT_Y_MSB_OFF] & in silead_ts_read_data()
290 data->id[touch_nr] = (bufp[SILEAD_POINT_X_MSB_OFF] & in silead_ts_read_data()
293 get_unaligned_le16(&bufp[SILEAD_POINT_X_OFF]) & 0xfff, in silead_ts_read_data()
294 get_unaligned_le16(&bufp[SILEAD_POINT_Y_OFF]) & 0xfff); in silead_ts_read_data()
/linux-6.6.21/drivers/pci/hotplug/
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.6.21/drivers/misc/bcm-vk/
Dbcm_vk_dev.c533 static void bcm_vk_buf_notify(struct bcm_vk *vk, void *bufp, in bcm_vk_buf_notify() argument
549 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()
[all …]

123