Home
last modified time | relevance | path

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

12345

/OK3568_Linux_fs/u-boot/board/Synology/ds414/
H A Dcmd_syno.c34 char *buf, *bufp; in do_syno_populate() local
64 for (i = 0, bufp = buf + n * 7; i < ETH_ALEN; i++) { in do_syno_populate()
65 sum += bufp[i]; in do_syno_populate()
66 csum += bufp[i]; in do_syno_populate()
67 ethaddr[i] = bufp[i]; in do_syno_populate()
71 if (csum != bufp[i]) { /* seventh byte is checksum value */ in do_syno_populate()
91 snp = bufp = buf + 32 + strlen(SYNO_SN_TAG); in do_syno_populate()
92 for (n = 0; bufp[n] && bufp[n] != ','; n++) in do_syno_populate()
93 csum += bufp[n]; in do_syno_populate()
94 bufp[n] = '\0'; in do_syno_populate()
[all …]
/OK3568_Linux_fs/u-boot/drivers/net/
H A Dbcm-sf2-eth-gmac.c98 uint8_t *bufp; in dma_tx_dump() local
121 bufp = (uint8_t *)(dma->tx_buf + i * TX_BUF_SIZE_ALIGNED); in dma_tx_dump()
122 printf("buf%d:0x%x; ", i, (uint32_t)bufp); in dma_tx_dump()
130 uint8_t *bufp; in dma_rx_dump() local
152 bufp = dma->rx_buf + i * RX_BUF_SIZE_ALIGNED; in dma_rx_dump()
153 printf("buf%d:0x%x; ", i, (uint32_t)bufp); in dma_rx_dump()
162 uint8_t *bufp; in dma_tx_init() local
176 bufp = dma->tx_buf + i * TX_BUF_SIZE_ALIGNED; in dma_tx_init()
178 memset((void *)bufp, 0, TX_BUF_SIZE_ALIGNED); in dma_tx_init()
186 descp->addrlow = (uint32_t)bufp; in dma_tx_init()
[all …]
/OK3568_Linux_fs/kernel/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[word]; in xfs_rtfind_forw()
[all …]
/OK3568_Linux_fs/kernel/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()
[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()
/OK3568_Linux_fs/external/recovery/mtdutils/
H A Dmounts.c57 const char *bufp; in scan_mounted_volumes() local
108 bufp = buf; in scan_mounted_volumes()
118 matches = sscanf(bufp, "%63s %63s %63s %127s", in scan_mounted_volumes()
134 printf("matches was %d on <<%.40s>>\n", matches, bufp); in scan_mounted_volumes()
139 while (nbytes > 0 && *bufp != '\n') { in scan_mounted_volumes()
140 bufp++; in scan_mounted_volumes()
144 bufp++; in scan_mounted_volumes()
/OK3568_Linux_fs/external/rk_pcba_test/pcba_minui/mtdutils/
H A Dmounts.c63 const char *bufp; in scan_mounted_volumes() local
114 bufp = buf; in scan_mounted_volumes()
124 matches = sscanf(bufp, "%63s %63s %63s %127s", in scan_mounted_volumes()
140 printf("matches was %d on <<%.40s>>\n", matches, bufp); in scan_mounted_volumes()
145 while (nbytes > 0 && *bufp != '\n') { in scan_mounted_volumes()
146 bufp++; in scan_mounted_volumes()
150 bufp++; in scan_mounted_volumes()
/OK3568_Linux_fs/kernel/fs/freevxfs/
H A Dvxfs_super.c100 vxfs_statfs(struct dentry *dentry, struct kstatfs *bufp) in vxfs_statfs() argument
105 bufp->f_type = VXFS_SUPER_MAGIC; in vxfs_statfs()
106 bufp->f_bsize = dentry->d_sb->s_blocksize; in vxfs_statfs()
107 bufp->f_blocks = fs32_to_cpu(infp, raw_sb->vs_dsize); in vxfs_statfs()
108 bufp->f_bfree = fs32_to_cpu(infp, raw_sb->vs_free); in vxfs_statfs()
109 bufp->f_bavail = 0; in vxfs_statfs()
110 bufp->f_files = 0; in vxfs_statfs()
111 bufp->f_ffree = fs32_to_cpu(infp, raw_sb->vs_ifree); in vxfs_statfs()
112 bufp->f_namelen = VXFS_NAMELEN; in vxfs_statfs()
/OK3568_Linux_fs/kernel/include/sound/
H A Dcompress_driver.h216 struct snd_dma_buffer *bufp) in snd_compr_set_runtime_buffer() argument
220 if (bufp) { in snd_compr_set_runtime_buffer()
221 runtime->dma_buffer_p = bufp; in snd_compr_set_runtime_buffer()
222 runtime->dma_area = bufp->area; in snd_compr_set_runtime_buffer()
223 runtime->dma_addr = bufp->addr; in snd_compr_set_runtime_buffer()
224 runtime->dma_bytes = bufp->bytes; in snd_compr_set_runtime_buffer()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/u-boot/drivers/usb/host/
H A Dsl811-hcd.c534 __u8 *bufp = data_buf; in sl811_rh_submit_urb() local
563 *(__u16 *)bufp = cpu_to_le16(1); in sl811_rh_submit_urb()
567 *(__u16 *)bufp = cpu_to_le16(0); in sl811_rh_submit_urb()
571 *(__u16 *)bufp = cpu_to_le16(0); in sl811_rh_submit_urb()
575 *(__u32 *)bufp = cpu_to_le32(0); in sl811_rh_submit_urb()
579 *(__u32 *)bufp = cpu_to_le32(rh_status.wPortChange<<16 | rh_status.wPortStatus); in sl811_rh_submit_urb()
667 bufp = sl811_rh_dev_des; in sl811_rh_submit_urb()
672 bufp = sl811_rh_config_des; in sl811_rh_submit_urb()
678 bufp = data; in sl811_rh_submit_urb()
689 bufp = sl811_rh_hub_des; in sl811_rh_submit_urb()
[all …]
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/u-boot/common/
H A DxyzModem.c46 unsigned char pkt[1024], *bufp; member
336 xyz.bufp = xyz.pkt; in xyzModem_get_hdr()
458 while (*xyz.bufp++); in xyzModem_stream_open()
460 parse_num ((char *) xyz.bufp, &xyz.file_length, NULL, " "); in xyzModem_stream_open()
517 if ((xyz.bufp[xyz.len - 1] == EOF) && in xyzModem_stream_read()
518 (xyz.bufp[xyz.len - 2] == EOF) && in xyzModem_stream_read()
519 (xyz.bufp[xyz.len - 3] == EOF)) in xyzModem_stream_read()
522 && (xyz.bufp[xyz.len - 1] == EOF)) in xyzModem_stream_read()
594 memcpy (buf, xyz.bufp, len); in xyzModem_stream_read()
599 xyz.bufp += len; in xyzModem_stream_read()
/OK3568_Linux_fs/kernel/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_mempool); 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()
[all …]
/OK3568_Linux_fs/kernel/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, &remain, f_val); in audit_data_to_entry()
[all …]
/OK3568_Linux_fs/kernel/arch/x86/crypto/
H A 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
220 lea (K_table-8)(%rip), %bufp # first entry is for idx 1
222 pmovzxdq (%bufp,%rax), %xmm0 # 2 consts: K1:K2
/OK3568_Linux_fs/kernel/net/l2tp/
H A Dl2tp_core.c933 __be16 *bufp = buf; in l2tp_build_l2tpv2_header() local
943 *bufp++ = htons(flags); in l2tp_build_l2tpv2_header()
944 *bufp++ = htons(tunnel_id); in l2tp_build_l2tpv2_header()
945 *bufp++ = htons(session_id); in l2tp_build_l2tpv2_header()
947 *bufp++ = htons(session->ns); in l2tp_build_l2tpv2_header()
948 *bufp++ = 0; in l2tp_build_l2tpv2_header()
954 return bufp - optr; in l2tp_build_l2tpv2_header()
960 char *bufp = buf; in l2tp_build_l2tpv3_header() local
961 char *optr = bufp; in l2tp_build_l2tpv3_header()
968 *((__be16 *)bufp) = htons(flags); in l2tp_build_l2tpv3_header()
[all …]
/OK3568_Linux_fs/kernel/arch/powerpc/kernel/
H A Dfadump.c755 void fadump_update_elfcore_header(char *bufp) in fadump_update_elfcore_header() argument
759 bufp += sizeof(struct elfhdr); in fadump_update_elfcore_header()
762 phdr = (struct elf_phdr *)bufp; in fadump_update_elfcore_header()
951 static int fadump_init_elfcore_header(char *bufp) in fadump_init_elfcore_header() argument
955 elf = (struct elfhdr *) bufp; in fadump_init_elfcore_header()
956 bufp += sizeof(struct elfhdr); in fadump_init_elfcore_header()
1060 static int fadump_create_elfcore_headers(char *bufp) in fadump_create_elfcore_headers() argument
1067 fadump_init_elfcore_header(bufp); in fadump_create_elfcore_headers()
1068 elf = (struct elfhdr *)bufp; in fadump_create_elfcore_headers()
1069 bufp += sizeof(struct elfhdr); in fadump_create_elfcore_headers()
[all …]
/OK3568_Linux_fs/buildroot/package/mkpimage/
H A Dmkpimage.c179 uint8_t *bufp, *sumendp; in add_socfpga_header() local
238 for (bufp = (uint8_t*)header; bufp < sumendp; bufp++) in add_socfpga_header()
239 checksum += *bufp; in add_socfpga_header()
/OK3568_Linux_fs/kernel/include/linux/
H A Dseq_buf.h82 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()
/OK3568_Linux_fs/kernel/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
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/
H A Dsilead.c137 u8 *bufp, buf[SILEAD_TS_DATA_LEN]; in silead_ts_read_data() local
155 bufp = buf + SILEAD_POINT_DATA_LEN; in silead_ts_read_data()
156 for (i = 0; i < buf[0]; i++, bufp += SILEAD_POINT_DATA_LEN) { in silead_ts_read_data()
157 softbutton = (bufp[SILEAD_POINT_Y_MSB_OFF] & in silead_ts_read_data()
176 data->id[touch_nr] = (bufp[SILEAD_POINT_X_MSB_OFF] & in silead_ts_read_data()
179 get_unaligned_le16(&bufp[SILEAD_POINT_X_OFF]) & 0xfff, in silead_ts_read_data()
180 get_unaligned_le16(&bufp[SILEAD_POINT_Y_OFF]) & 0xfff); in silead_ts_read_data()

12345