/openbmc/u-boot/board/Synology/ds414/ |
H A D | cmd_syno.c | 32 char *buf, *bufp; in do_syno_populate() local 63 sum += bufp[i]; in do_syno_populate() 64 csum += bufp[i]; in do_syno_populate() 90 for (n = 0; bufp[n] && bufp[n] != ','; n++) in do_syno_populate() 91 csum += bufp[n]; in do_syno_populate() 92 bufp[n] = '\0'; in do_syno_populate() 95 bufp = strstr(bufp + n + 1, SYNO_CHKSUM_TAG); in do_syno_populate() 96 if (!bufp) { in do_syno_populate() 102 for (n = 0; bufp[n] && bufp[n] != ','; n++) in do_syno_populate() 104 bufp[n] = '\0'; in do_syno_populate() [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | bcm-sf2-eth-gmac.c | 97 uint8_t *bufp; in dma_tx_dump() local 129 uint8_t *bufp; in dma_rx_dump() local 161 uint8_t *bufp; in dma_tx_init() local 191 bufp = dma->tx_buf; in dma_tx_init() 196 (unsigned long)bufp + in dma_tx_init() 214 uint8_t *bufp; in dma_rx_init() local 244 bufp = dma->rx_buf; in dma_rx_init() 250 (unsigned long)bufp + in dma_rx_init() 328 memcpy(bufp, packet, len); in gmac_tx_packet() 396 void *bufp, *datap; in gmac_check_rx_done() local [all …]
|
/openbmc/linux/kernel/trace/ |
H A D | trace_boot.c | 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() 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 …]
|
/openbmc/linux/fs/xfs/libxfs/ |
H A D | xfs_rtbitmap.c | 124 bufp = bp->b_addr; in xfs_rtfind_back() 129 b = &bufp[word]; in xfs_rtfind_back() 176 bufp = bp->b_addr; in xfs_rtfind_back() 178 b = &bufp[word]; in xfs_rtfind_back() 222 bufp = bp->b_addr; in xfs_rtfind_back() 224 b = &bufp[word]; in xfs_rtfind_back() 299 bufp = bp->b_addr; in xfs_rtfind_forw() 304 b = &bufp[word]; in xfs_rtfind_forw() 563 bufp = bp->b_addr; in xfs_rtmodify_range() 797 bufp = bp->b_addr; in xfs_rtcheck_range() [all …]
|
/openbmc/linux/arch/powerpc/platforms/powernv/ |
H A D | opal-core.c | 143 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 D | opal-fadump.h | 124 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 D | opal-fadump.c | 425 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()
|
/openbmc/linux/tools/perf/arch/powerpc/util/ |
H A D | header.c | 35 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()
|
/openbmc/linux/fs/freevxfs/ |
H A D | vxfs_super.c | 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->f_ffree = fs32_to_cpu(infp, raw_sb->vs_ifree); in vxfs_statfs() 87 bufp->f_namelen = VXFS_NAMELEN; in vxfs_statfs()
|
/openbmc/linux/sound/pci/emu10k1/ |
H A D | emuproc.c | 347 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 …]
|
/openbmc/linux/include/sound/ |
H A D | compress_driver.h | 222 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()
|
/openbmc/u-boot/drivers/usb/host/ |
H A D | sl811-hcd.c | 533 __u8 *bufp = data_buf; in sl811_rh_submit_urb() local 562 *(__u16 *)bufp = cpu_to_le16(1); in sl811_rh_submit_urb() 566 *(__u16 *)bufp = cpu_to_le16(0); in sl811_rh_submit_urb() 570 *(__u16 *)bufp = cpu_to_le16(0); in sl811_rh_submit_urb() 666 bufp = sl811_rh_dev_des; in sl811_rh_submit_urb() 671 bufp = sl811_rh_config_des; in sl811_rh_submit_urb() 677 bufp = data; in sl811_rh_submit_urb() 688 bufp = sl811_rh_hub_des; in sl811_rh_submit_urb() 692 bufp[0] = 0x01; in sl811_rh_submit_urb() 704 if (data != bufp) in sl811_rh_submit_urb() [all …]
|
/openbmc/u-boot/common/ |
H A D | xyzModem.c | 46 unsigned char pkt[1024], *bufp; member 337 xyz.bufp = xyz.pkt; in xyzModem_get_hdr() 459 while (*xyz.bufp++); in xyzModem_stream_open() 461 parse_num ((char *) xyz.bufp, &xyz.file_length, NULL, " "); in xyzModem_stream_open() 518 if ((xyz.bufp[xyz.len - 1] == EOF) && in xyzModem_stream_read() 519 (xyz.bufp[xyz.len - 2] == EOF) && in xyzModem_stream_read() 520 (xyz.bufp[xyz.len - 3] == EOF)) in xyzModem_stream_read() 523 && (xyz.bufp[xyz.len - 1] == EOF)) in xyzModem_stream_read() 595 memcpy (buf, xyz.bufp, len); in xyzModem_stream_read() 600 xyz.bufp += len; in xyzModem_stream_read()
|
/openbmc/linux/drivers/tty/hvc/ |
H A D | hvc_iucv.c | 153 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 …]
|
/openbmc/linux/security/integrity/ima/ |
H A D | ima_template_lib.c | 245 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 …]
|
/openbmc/linux/kernel/ |
H A D | auditfilter.c | 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() 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 …]
|
/openbmc/linux/tools/virtio/ringtest/ |
H A D | noring.c | 23 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 D | virtio_ring_0_9.c | 152 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 D | ring.c | 143 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
|
/openbmc/linux/arch/x86/crypto/ |
H A D | crc32c-pcl-intel-asm_64.S | 77 #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
|
/openbmc/linux/net/l2tp/ |
H A D | l2tp_core.c | 936 __be16 *bufp = buf; in l2tp_build_l2tpv2_header() local 946 *bufp++ = htons(flags); in l2tp_build_l2tpv2_header() 951 *bufp++ = 0; in l2tp_build_l2tpv2_header() 957 return bufp - optr; in l2tp_build_l2tpv2_header() 963 char *bufp = buf; in l2tp_build_l2tpv3_header() local 964 char *optr = bufp; in l2tp_build_l2tpv3_header() 972 bufp += 2; in l2tp_build_l2tpv3_header() 974 bufp += 2; in l2tp_build_l2tpv3_header() 978 bufp += 4; in l2tp_build_l2tpv3_header() 994 bufp += 4; in l2tp_build_l2tpv3_header() [all …]
|
/openbmc/linux/include/linux/ |
H A D | seq_buf.h | 107 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()
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | fadump.c | 772 bufp += sizeof(struct elfhdr); in fadump_update_elfcore_header() 775 phdr = (struct elf_phdr *)bufp; in fadump_update_elfcore_header() 968 elf = (struct elfhdr *) bufp; in fadump_init_elfcore_header() 969 bufp += sizeof(struct elfhdr); in fadump_init_elfcore_header() 1084 elf = (struct elfhdr *)bufp; in fadump_create_elfcore_headers() 1085 bufp += sizeof(struct elfhdr); in fadump_create_elfcore_headers() 1094 phdr = (struct elf_phdr *)bufp; in fadump_create_elfcore_headers() 1095 bufp += sizeof(struct elf_phdr); in fadump_create_elfcore_headers() 1109 phdr = (struct elf_phdr *)bufp; in fadump_create_elfcore_headers() 1110 bufp += sizeof(struct elf_phdr); in fadump_create_elfcore_headers() [all …]
|
/openbmc/qemu/hw/usb/ |
H A D | redirect.c | 486 bufp->data = data; in bufp_alloc() 487 bufp->len = len; in bufp_alloc() 488 bufp->offset = 0; in bufp_alloc() 489 bufp->status = status; in bufp_alloc() 502 g_free(bufp); in bufp_free() 2315 len = bufp->len - bufp->offset; in usbredir_put_bufpq() 2320 qemu_put_buffer(f, bufp->data + bufp->offset, len); in usbredir_put_bufpq() 2342 bufp->data = malloc(bufp->len); /* regular malloc! */ in usbredir_get_bufpq() 2347 bufp->free_on_destroy = bufp->data; in usbredir_get_bufpq() 2348 qemu_get_buffer(f, bufp->data, bufp->len); in usbredir_get_bufpq() [all …]
|
/openbmc/linux/security/keys/trusted-keys/ |
H A D | trusted_core.c | 290 char *bufp; in trusted_read() local 298 bufp = buffer; in trusted_read() 300 bufp = hex_byte_pack(bufp, p->blob[i]); in trusted_read()
|