/openbmc/u-boot/board/Synology/ds414/ |
H A D | cmd_syno.c | 32 char *buf, *bufp; in do_syno_populate() local 62 for (i = 0, bufp = buf + n * 7; i < ETH_ALEN; i++) { in do_syno_populate() 63 sum += bufp[i]; in do_syno_populate() 64 csum += bufp[i]; in do_syno_populate() 65 ethaddr[i] = bufp[i]; in do_syno_populate() 69 if (csum != bufp[i]) { /* seventh byte is checksum value */ in do_syno_populate() 89 snp = bufp = buf + 32 + strlen(SYNO_SN_TAG); 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() [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | bcm-sf2-eth-gmac.c | 97 uint8_t *bufp; in dma_tx_dump() local 120 bufp = (uint8_t *)(dma->tx_buf + i * TX_BUF_SIZE_ALIGNED); in dma_tx_dump() 121 printf("buf%d:0x%x; ", i, (uint32_t)bufp); in dma_tx_dump() 129 uint8_t *bufp; in dma_rx_dump() local 151 bufp = dma->rx_buf + i * RX_BUF_SIZE_ALIGNED; in dma_rx_dump() 152 printf("buf%d:0x%x; ", i, (uint32_t)bufp); in dma_rx_dump() 161 uint8_t *bufp; in dma_tx_init() local 175 bufp = dma->tx_buf + i * TX_BUF_SIZE_ALIGNED; in dma_tx_init() 177 memset((void *)bufp, 0, TX_BUF_SIZE_ALIGNED); in dma_tx_init() 185 descp->addrlow = (uint32_t)bufp; in dma_tx_init() [all …]
|
/openbmc/linux/kernel/trace/ |
H A D | trace_boot.c | 176 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 …]
|
/openbmc/linux/arch/powerpc/platforms/powernv/ |
H A D | opal-core.c | 140 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 …]
|
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/fs/xfs/libxfs/ |
H A D | xfs_rtbitmap.c | 106 xfs_rtword_t *bufp; /* starting word in buffer */ in xfs_rtfind_back() local 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() 281 xfs_rtword_t *bufp; /* starting word in buffer */ in xfs_rtfind_forw() local 301 bufp = bp->b_addr; in xfs_rtfind_forw() 306 b = &bufp[word]; in xfs_rtfind_forw() [all …]
|
/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/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/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/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() 574 *(__u32 *)bufp = cpu_to_le32(0); in sl811_rh_submit_urb() 578 *(__u32 *)bufp = cpu_to_le32(rh_status.wPortChange<<16 | rh_status.wPortStatus); 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() [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 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 …]
|
/openbmc/linux/kernel/ |
H A D | auditfilter.c | 127 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() 544 str = audit_unpack_string(&bufp, &remain, f_val); in audit_data_to_entry() 557 str = audit_unpack_string(&bufp, &remain, f_val); in audit_data_to_entry() 577 str = audit_unpack_string(&bufp, &remain, f_val); in audit_data_to_entry() [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/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() 947 *bufp++ = htons(tunnel_id); in l2tp_build_l2tpv2_header() 948 *bufp++ = htons(session_id); in l2tp_build_l2tpv2_header() 950 *bufp++ = htons(session->ns); 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() 971 *((__be16 *)bufp) = htons(flags); in l2tp_build_l2tpv3_header() [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/powerpc/kernel/ |
H A D | fadump.c | 759 void __init fadump_update_elfcore_header(char *bufp) in fadump_update_elfcore_header() argument 763 bufp += sizeof(struct elfhdr); in fadump_update_elfcore_header() 766 phdr = (struct elf_phdr *)bufp; in fadump_update_elfcore_header() 955 static int fadump_init_elfcore_header(char *bufp) in fadump_init_elfcore_header() argument 959 elf = (struct elfhdr *) bufp; in fadump_init_elfcore_header() 960 bufp += sizeof(struct elfhdr); in fadump_init_elfcore_header() 1067 static int fadump_create_elfcore_headers(char *bufp) in fadump_create_elfcore_headers() argument 1074 fadump_init_elfcore_header(bufp); in fadump_create_elfcore_headers() 1075 elf = (struct elfhdr *)bufp; in fadump_create_elfcore_headers() 1076 bufp += sizeof(struct elfhdr); in fadump_create_elfcore_headers() [all …]
|
/openbmc/qemu/hw/usb/ |
H A D | redirect.c | 466 struct buf_packet *bufp; in bufp_alloc() local 485 bufp = g_new(struct buf_packet, 1); in bufp_alloc() 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() 490 bufp->free_on_destroy = free_on_destroy; in bufp_alloc() 491 QTAILQ_INSERT_TAIL(&dev->endpoint[EP2I(ep)].bufpq, bufp, next); in bufp_alloc() 496 static void bufp_free(USBRedirDevice *dev, struct buf_packet *bufp, in bufp_free() argument 499 QTAILQ_REMOVE(&dev->endpoint[EP2I(ep)].bufpq, bufp, next); in bufp_free() [all …]
|
/openbmc/linux/include/linux/ |
H A D | seq_buf.h | 116 static inline size_t seq_buf_get_buf(struct seq_buf *s, char **bufp) in seq_buf_get_buf() argument 121 *bufp = s->buffer + s->len; in seq_buf_get_buf() 125 *bufp = NULL; in seq_buf_get_buf()
|
/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()
|