Home
last modified time | relevance | path

Searched refs:bufp (Results 1 - 25 of 139) sorted by relevance

123456

/kernel/linux/linux-6.6/kernel/trace/
H A 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 in append_str_nospace()
219 trace_boot_hist_add_array(struct xbc_node *hnode, char **bufp, char *end, const char *key) trace_boot_hist_add_array() argument
247 trace_boot_hist_add_one_handler(struct xbc_node *hnode, char **bufp, char *end, const char *handler, const char *param) trace_boot_hist_add_one_handler() argument
298 trace_boot_hist_add_handlers(struct xbc_node *hnode, char **bufp, char *end, const char *param) trace_boot_hist_add_handlers() argument
[all...]
/kernel/linux/linux-5.10/fs/xfs/libxfs/
H A 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[wor in xfs_rtfind_forw()
543 xfs_rtword_t *bufp; /* starting word in buffer */ xfs_rtmodify_range() local
777 xfs_rtword_t *bufp; /* starting word in buffer */ xfs_rtcheck_range() local
[all...]
/kernel/linux/linux-6.6/fs/xfs/libxfs/
H A 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[wor in xfs_rtfind_forw()
543 xfs_rtword_t *bufp; /* starting word in buffer */ xfs_rtmodify_range() local
777 xfs_rtword_t *bufp; /* starting word in buffer */ xfs_rtcheck_range() local
[all...]
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
H A 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()
310 char *bufp; create_opalcore() local
[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()
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/
H A 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()
310 char *bufp; create_opalcore() local
[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()
/kernel/linux/linux-5.10/fs/freevxfs/
H A Dvxfs_super.c83 * @bufp: output buffer
86 * vxfs_statfs fills the statfs buffer @bufp with information
99 vxfs_statfs(struct dentry *dentry, struct kstatfs *bufp) in vxfs_statfs() argument
104 bufp->f_type = VXFS_SUPER_MAGIC; in vxfs_statfs()
105 bufp->f_bsize = dentry->d_sb->s_blocksize; in vxfs_statfs()
106 bufp->f_blocks = fs32_to_cpu(infp, raw_sb->vs_dsize); in vxfs_statfs()
107 bufp->f_bfree = fs32_to_cpu(infp, raw_sb->vs_free); in vxfs_statfs()
108 bufp->f_bavail = 0; in vxfs_statfs()
109 bufp->f_files = 0; in vxfs_statfs()
110 bufp in vxfs_statfs()
[all...]
/kernel/linux/linux-6.6/fs/freevxfs/
H A Dvxfs_super.c59 * @bufp: output buffer
62 * vxfs_statfs fills the statfs buffer @bufp with information
75 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 in vxfs_statfs()
[all...]
/kernel/linux/linux-5.10/tools/perf/arch/powerpc/util/
H A 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()
/kernel/linux/linux-6.6/tools/perf/arch/powerpc/util/
H A 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()
/kernel/linux/linux-5.10/include/sound/
H A Dcompress_driver.h201 * @bufp: the buffer information, NULL to clear
203 * Copy the buffer information to runtime buffer when @bufp is non-NULL.
208 struct snd_dma_buffer *bufp) in snd_compr_set_runtime_buffer()
212 if (bufp) { in snd_compr_set_runtime_buffer()
213 runtime->dma_buffer_p = bufp; in snd_compr_set_runtime_buffer()
214 runtime->dma_area = bufp->area; in snd_compr_set_runtime_buffer()
215 runtime->dma_addr = bufp->addr; in snd_compr_set_runtime_buffer()
216 runtime->dma_bytes = bufp->bytes; in snd_compr_set_runtime_buffer()
207 snd_compr_set_runtime_buffer(struct snd_compr_stream *stream, struct snd_dma_buffer *bufp) snd_compr_set_runtime_buffer() argument
/kernel/linux/linux-6.6/include/sound/
H A Dcompress_driver.h215 * @bufp: the buffer information, NULL to clear
217 * Copy the buffer information to runtime buffer when @bufp is non-NULL.
222 struct snd_dma_buffer *bufp) in snd_compr_set_runtime_buffer()
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()
221 snd_compr_set_runtime_buffer(struct snd_compr_stream *stream, struct snd_dma_buffer *bufp) snd_compr_set_runtime_buffer() argument
/kernel/linux/linux-6.6/sound/pci/emu10k1/
H A 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 in snd_emu10k1_proc_acode_read()
[all...]
/kernel/linux/linux-6.6/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...]
/kernel/linux/linux-5.10/drivers/tty/hvc/
H A Dhvc_iucv.c154 struct iucv_tty_buffer *bufp; in alloc_tty_buffer() local
156 bufp = mempool_alloc(hvc_iucv_mempool, flags); in alloc_tty_buffer()
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()
165 mempool_free(bufp, hvc_iucv_mempoo in alloc_tty_buffer()
179 destroy_tty_buffer(struct iucv_tty_buffer *bufp) destroy_tty_buffer() argument
[all...]
/kernel/linux/linux-6.6/drivers/tty/hvc/
H A 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_mempoo in alloc_tty_buffer()
178 destroy_tty_buffer(struct iucv_tty_buffer *bufp) destroy_tty_buffer() argument
[all...]
/kernel/linux/linux-5.10/security/integrity/ima/
H A Dima_template_lib.c183 void *bufp = bufstartp; in ima_parse_buf() local
188 if (bufp > (bufendp - sizeof(u32))) in ima_parse_buf()
191 fields[i].len = *(u32 *)bufp; in ima_parse_buf()
195 bufp += sizeof(u32); in ima_parse_buf()
198 if (bufp > (bufendp - fields[i].len)) in ima_parse_buf()
201 fields[i].data = bufp; in ima_parse_buf()
202 bufp += fields[i].len; in ima_parse_buf()
211 if ((enforce_mask & ENFORCE_BUFEND) && bufp != bufendp) { in ima_parse_buf()
213 bufname, bufendp, bufp); in ima_parse_buf()
221 *bufcurp = bufp; in ima_parse_buf()
[all...]
/kernel/linux/linux-5.10/kernel/
H A Dauditfilter.c125 char *audit_unpack_string(void **bufp, size_t *remain, size_t len) in audit_unpack_string() argument
129 if (!*bufp || (len == 0) || (len > *remain)) in audit_unpack_string()
142 memcpy(str, *bufp, len); in audit_unpack_string()
144 *bufp += len; in audit_unpack_string()
446 void *bufp; in audit_data_to_entry() local
456 bufp = data->buf; in audit_data_to_entry()
516 str = audit_unpack_string(&bufp, &remain, f_val); in audit_data_to_entry()
535 str = audit_unpack_string(&bufp, &remain, f_val); in audit_data_to_entry()
548 str = audit_unpack_string(&bufp, &remain, f_val); in audit_data_to_entry()
568 str = audit_unpack_string(&bufp, in audit_data_to_entry()
615 audit_pack_string(void **bufp, const char *str) audit_pack_string() argument
629 void *bufp; audit_krule_to_data() local
[all...]
/kernel/linux/linux-6.6/kernel/
H A 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, in audit_data_to_entry()
623 audit_pack_string(void **bufp, const char *str) audit_pack_string() argument
637 void *bufp; audit_krule_to_data() local
[all...]
/kernel/linux/linux-5.10/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
/kernel/linux/linux-6.6/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
/kernel/linux/linux-5.10/net/l2tp/
H A 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) in l2tp_build_l2tpv3_header()
[all...]
/kernel/linux/linux-6.6/net/l2tp/
H A 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) in l2tp_build_l2tpv3_header()
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dseq_buf.h77 * @bufp: the beginning of the buffer is stored here
82 static inline size_t seq_buf_get_buf(struct seq_buf *s, char **bufp) in seq_buf_get_buf() argument
87 *bufp = s->buffer + s->len; in seq_buf_get_buf()
91 *bufp = NULL; in seq_buf_get_buf()

Completed in 16 milliseconds

123456