Home
last modified time | relevance | path

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

/linux-4.4.14/fs/xfs/libxfs/
Dxfs_rtbitmap.c94 xfs_rtword_t *bufp; /* starting word in buffer */ in xfs_rtfind_back() local
112 bufp = bp->b_addr; in xfs_rtfind_back()
117 b = &bufp[word]; in xfs_rtfind_back()
164 bufp = bp->b_addr; in xfs_rtfind_back()
166 b = &bufp[word]; in xfs_rtfind_back()
210 bufp = bp->b_addr; in xfs_rtfind_back()
212 b = &bufp[word]; in xfs_rtfind_back()
269 xfs_rtword_t *bufp; /* starting word in buffer */ in xfs_rtfind_forw() local
287 bufp = bp->b_addr; in xfs_rtfind_forw()
292 b = &bufp[word]; in xfs_rtfind_forw()
[all …]
/linux-4.4.14/fs/freevxfs/
Dvxfs_super.c109 vxfs_statfs(struct dentry *dentry, struct kstatfs *bufp) in vxfs_statfs() argument
113 bufp->f_type = VXFS_SUPER_MAGIC; in vxfs_statfs()
114 bufp->f_bsize = dentry->d_sb->s_blocksize; in vxfs_statfs()
115 bufp->f_blocks = infp->vsi_raw->vs_dsize; in vxfs_statfs()
116 bufp->f_bfree = infp->vsi_raw->vs_free; in vxfs_statfs()
117 bufp->f_bavail = 0; in vxfs_statfs()
118 bufp->f_files = 0; in vxfs_statfs()
119 bufp->f_ffree = infp->vsi_raw->vs_ifree; in vxfs_statfs()
120 bufp->f_namelen = VXFS_NAMELEN; in vxfs_statfs()
/linux-4.4.14/fs/proc/
Dkcore.c292 static char *storenote(struct memelfnote *men, char *bufp) in storenote() argument
296 #define DUMP_WRITE(addr,nr) do { memcpy(bufp,addr,nr); bufp += nr; } while(0) in storenote()
306 bufp = (char*) roundup((unsigned long)bufp,4); in storenote()
308 bufp = (char*) roundup((unsigned long)bufp,4); in storenote()
312 return bufp; in storenote()
319 static void elf_kcore_store_hdr(char *bufp, int nphdr, int dataoff) in elf_kcore_store_hdr() argument
330 elf = (struct elfhdr *) bufp; in elf_kcore_store_hdr()
331 bufp += sizeof(struct elfhdr); in elf_kcore_store_hdr()
354 nhdr = (struct elf_phdr *) bufp; in elf_kcore_store_hdr()
355 bufp += sizeof(struct elf_phdr); in elf_kcore_store_hdr()
[all …]
/linux-4.4.14/arch/x86/kernel/
Dcrash.c67 void *bufp; member
376 phdr = ced->bufp; in prepare_elf64_ram_headers_callback()
377 ced->bufp += sizeof(Elf64_Phdr); in prepare_elf64_ram_headers_callback()
410 unsigned char *buf, *bufp; in prepare_elf64_headers() local
435 bufp = buf; in prepare_elf64_headers()
436 ehdr = (Elf64_Ehdr *)bufp; in prepare_elf64_headers()
437 bufp += sizeof(Elf64_Ehdr); in prepare_elf64_headers()
453 phdr = (Elf64_Phdr *)bufp; in prepare_elf64_headers()
454 bufp += sizeof(Elf64_Phdr); in prepare_elf64_headers()
463 phdr = (Elf64_Phdr *)bufp; in prepare_elf64_headers()
[all …]
/linux-4.4.14/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-4.4.14/kernel/
Dauditfilter.c136 char *audit_unpack_string(void **bufp, size_t *remain, size_t len) in audit_unpack_string() argument
140 if (!*bufp || (len == 0) || (len > *remain)) in audit_unpack_string()
153 memcpy(str, *bufp, len); in audit_unpack_string()
155 *bufp += len; in audit_unpack_string()
424 void *bufp; in audit_data_to_entry() local
434 bufp = data->buf; in audit_data_to_entry()
492 str = audit_unpack_string(&bufp, &remain, f->val); in audit_data_to_entry()
513 str = audit_unpack_string(&bufp, &remain, f->val); in audit_data_to_entry()
525 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()
[all …]
Daudit.c972 void *bufp = data; in audit_receive_msg() local
980 memcpy(sizes, bufp, 2 * sizeof(u32)); in audit_receive_msg()
981 bufp += 2 * sizeof(u32); in audit_receive_msg()
983 old = audit_unpack_string(&bufp, &msglen, sizes[0]); in audit_receive_msg()
988 new = audit_unpack_string(&bufp, &msglen, sizes[1]); in audit_receive_msg()
/linux-4.4.14/arch/powerpc/kernel/
Dfadump.c527 static void fadump_update_elfcore_header(char *bufp) in fadump_update_elfcore_header() argument
532 elf = (struct elfhdr *)bufp; in fadump_update_elfcore_header()
533 bufp += sizeof(struct elfhdr); in fadump_update_elfcore_header()
536 phdr = (struct elf_phdr *)bufp; in fadump_update_elfcore_header()
763 static int fadump_init_elfcore_header(char *bufp) in fadump_init_elfcore_header() argument
767 elf = (struct elfhdr *) bufp; in fadump_init_elfcore_header()
768 bufp += sizeof(struct elfhdr); in fadump_init_elfcore_header()
836 static int fadump_create_elfcore_headers(char *bufp) in fadump_create_elfcore_headers() argument
842 fadump_init_elfcore_header(bufp); in fadump_create_elfcore_headers()
843 elf = (struct elfhdr *)bufp; in fadump_create_elfcore_headers()
[all …]
/linux-4.4.14/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
220 lea (K_table-8)(%rip), bufp # first entry is for idx 1
222 pmovzxdq (bufp,%rax), %xmm0 # 2 consts: K1:K2
/linux-4.4.14/drivers/hwtracing/coresight/
Dcoresight-tmc.c290 char *bufp; in tmc_etb_dump_hw() local
304 bufp = drvdata->buf; in tmc_etb_dump_hw()
310 memcpy(bufp, &read_data, 4); in tmc_etb_dump_hw()
311 bufp += 4; in tmc_etb_dump_hw()
510 char *bufp = drvdata->buf + *ppos; in tmc_read() local
516 if (bufp == (char *)(drvdata->vaddr + drvdata->size)) in tmc_read()
517 bufp = drvdata->vaddr; in tmc_read()
518 else if (bufp > (char *)(drvdata->vaddr + drvdata->size)) in tmc_read()
519 bufp -= drvdata->size; in tmc_read()
520 if ((bufp + len) > (char *)(drvdata->vaddr + drvdata->size)) in tmc_read()
[all …]
/linux-4.4.14/include/linux/
Dseq_buf.h81 static inline size_t seq_buf_get_buf(struct seq_buf *s, char **bufp) in seq_buf_get_buf() argument
86 *bufp = s->buffer + s->len; in seq_buf_get_buf()
90 *bufp = NULL; in seq_buf_get_buf()
Dseq_file.h68 static inline size_t seq_get_buf(struct seq_file *m, char **bufp) in seq_get_buf() argument
72 *bufp = m->buf + m->count; in seq_get_buf()
74 *bufp = NULL; in seq_get_buf()
Dtty.h440 extern int tty_read_raw_data(struct tty_struct *tty, unsigned char *bufp,
/linux-4.4.14/net/l2tp/
Dl2tp_core.c982 __be16 *bufp = buf; in l2tp_build_l2tpv2_header() local
992 *bufp++ = htons(flags); in l2tp_build_l2tpv2_header()
993 *bufp++ = htons(tunnel_id); in l2tp_build_l2tpv2_header()
994 *bufp++ = htons(session_id); in l2tp_build_l2tpv2_header()
996 *bufp++ = htons(session->ns); in l2tp_build_l2tpv2_header()
997 *bufp++ = 0; in l2tp_build_l2tpv2_header()
1004 return bufp - optr; in l2tp_build_l2tpv2_header()
1010 char *bufp = buf; in l2tp_build_l2tpv3_header() local
1011 char *optr = bufp; in l2tp_build_l2tpv3_header()
1018 *((__be16 *) bufp) = htons(flags); in l2tp_build_l2tpv3_header()
[all …]
/linux-4.4.14/drivers/isdn/hysdn/
Dhysdn_boot.c72 unsigned char *bufp = boot->buf.BootBuf; in DecryptBuf() local
76 *bufp++ ^= (unsigned char)boot->Cryptor; in DecryptBuf()
271 pof_write_open(hysdn_card *card, unsigned char **bufp) in pof_write_open() argument
304 *bufp = boot->buf.BootBuf; /* point to buffer */ in pof_write_open()
/linux-4.4.14/drivers/pci/hotplug/
Dacpiphp_ibm.c99 static int ibm_get_table_from_acpi(char **bufp);
283 static int ibm_get_table_from_acpi(char **bufp) in ibm_get_table_from_acpi() argument
313 if (bufp == NULL) in ibm_get_table_from_acpi()
321 *bufp = lbuf; in ibm_get_table_from_acpi()
/linux-4.4.14/drivers/usb/host/
Dehci-sched.c1242 uframe->bufp = (buf & ~(u64)0x0fff); in itd_sched_init()
1244 if (unlikely ((uframe->bufp != (buf & ~(u64)0x0fff)))) in itd_sched_init()
1725 itd->hw_bufp[pg] |= cpu_to_hc32(ehci, uf->bufp & ~(u32)0); in itd_patch()
1726 itd->hw_bufp_hi[pg] |= cpu_to_hc32(ehci, (u32)(uf->bufp >> 32)); in itd_patch()
1730 u64 bufp = uf->bufp + 4096; in itd_patch() local
1733 itd->hw_bufp[pg] |= cpu_to_hc32(ehci, bufp & ~(u32)0); in itd_patch()
1734 itd->hw_bufp_hi[pg] |= cpu_to_hc32(ehci, (u32)(bufp >> 32)); in itd_patch()
2041 packet->bufp = buf; in sitd_sched_init()
2135 u64 bufp = uf->bufp; in sitd_patch() local
2143 bufp = uf->bufp; in sitd_patch()
[all …]
Dfotg210.h475 u64 bufp; /* itd->hw_bufp{,_hi}[pg] |= */ member
Dfotg210-hcd.c4087 uframe->bufp = (buf & ~(u64)0x0fff); in itd_sched_init()
4089 if (unlikely((uframe->bufp != (buf & ~(u64)0x0fff)))) in itd_sched_init()
4343 itd->hw_bufp[pg] |= cpu_to_hc32(fotg210, uf->bufp & ~(u32)0); in itd_patch()
4344 itd->hw_bufp_hi[pg] |= cpu_to_hc32(fotg210, (u32)(uf->bufp >> 32)); in itd_patch()
4348 u64 bufp = uf->bufp + 4096; in itd_patch() local
4351 itd->hw_bufp[pg] |= cpu_to_hc32(fotg210, bufp & ~(u32)0); in itd_patch()
4352 itd->hw_bufp_hi[pg] |= cpu_to_hc32(fotg210, (u32)(bufp >> 32)); in itd_patch()
Dehci.h449 u64 bufp; /* itd->hw_bufp{,_hi}[pg] |= */ member
/linux-4.4.14/drivers/message/fusion/
Dmptctl.h104 void __user *bufp; /* Pointer to firmware buffer */ member
111 u32 bufp; member
Dmptctl.c769 return mptctl_do_fw_download(kfwdl.iocnum, kfwdl.bufp, kfwdl.fwlen); in mptctl_fw_download()
2864 kfw.bufp = compat_ptr(kfw32.bufp); in compat_mptfwxfer_ioctl()
2866 ret = mptctl_do_fw_download(kfw.iocnum, kfw.bufp, kfw.fwlen); in compat_mptfwxfer_ioctl()
/linux-4.4.14/sound/hda/
Dhdac_stream.c621 unsigned int byte_size, struct snd_dma_buffer *bufp) in snd_hdac_dsp_prepare() argument
638 byte_size, bufp); in snd_hdac_dsp_prepare()
655 err = setup_bdle(bus, bufp, azx_dev, &bdl, 0, byte_size, 0); in snd_hdac_dsp_prepare()
664 bus->io_ops->dma_free_pages(bus, bufp); in snd_hdac_dsp_prepare()
/linux-4.4.14/drivers/media/dvb-core/
Ddvb_filter.c397 static u8 *skip_pes_header(u8 **bufp)
399 u8 *inbuf = *bufp;
429 *bufp = buf;
/linux-4.4.14/drivers/parport/
Dparport_ip32.c1126 u8 *bufp = buf; in parport_ip32_epp_read() local
1128 *bufp++ = readb(eppreg); in parport_ip32_epp_read()
1165 const u8 *bufp = buf; in parport_ip32_epp_write() local
1167 writeb(*bufp++, eppreg); in parport_ip32_epp_write()
1396 const u8 *bufp = buf; in parport_ip32_fifo_write_block_pio() local
1412 writeb(*bufp, priv->regs.fifo); in parport_ip32_fifo_write_block_pio()
1413 bufp++, left--; in parport_ip32_fifo_write_block_pio()
1415 writesb(priv->regs.fifo, bufp, count); in parport_ip32_fifo_write_block_pio()
1416 bufp += count, left -= count; in parport_ip32_fifo_write_block_pio()
Dparport_pc.c474 const unsigned char *bufp = buf; in parport_pc_fifo_write_block_pio() local
544 outsb(fifo, bufp, n); in parport_pc_fifo_write_block_pio()
545 bufp += n; in parport_pc_fifo_write_block_pio()
559 byte = *bufp++; in parport_pc_fifo_write_block_pio()
/linux-4.4.14/include/sound/
Dpcm.h1106 struct snd_dma_buffer *bufp) in snd_pcm_set_runtime_buffer() argument
1109 if (bufp) { in snd_pcm_set_runtime_buffer()
1110 runtime->dma_buffer_p = bufp; in snd_pcm_set_runtime_buffer()
1111 runtime->dma_area = bufp->area; in snd_pcm_set_runtime_buffer()
1112 runtime->dma_addr = bufp->addr; in snd_pcm_set_runtime_buffer()
1113 runtime->dma_bytes = bufp->bytes; in snd_pcm_set_runtime_buffer()
Dhdaudio.h502 unsigned int byte_size, struct snd_dma_buffer *bufp);
514 unsigned int byte_size, struct snd_dma_buffer *bufp) in snd_hdac_dsp_prepare() argument
/linux-4.4.14/drivers/usb/core/
Dhcd.c476 const u8 *bufp; in rh_call_control() local
505 bufp = tbuf; in rh_call_control()
561 bufp = usb3_rh_dev_descriptor; in rh_call_control()
564 bufp = usb25_rh_dev_descriptor; in rh_call_control()
567 bufp = usb2_rh_dev_descriptor; in rh_call_control()
570 bufp = usb11_rh_dev_descriptor; in rh_call_control()
583 bufp = ss_rh_config_descriptor; in rh_call_control()
588 bufp = hs_rh_config_descriptor; in rh_call_control()
592 bufp = fs_rh_config_descriptor; in rh_call_control()
690 memcpy (ubuf, bufp, len); in rh_call_control()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
Dcore.c112 char *buf, *bufp; in _brcmf_set_multicast_list() local
131 bufp = buf; in _brcmf_set_multicast_list()
134 memcpy(bufp, &cnt_le, sizeof(cnt_le)); in _brcmf_set_multicast_list()
135 bufp += sizeof(cnt_le); in _brcmf_set_multicast_list()
140 memcpy(bufp, ha->addr, ETH_ALEN); in _brcmf_set_multicast_list()
141 bufp += ETH_ALEN; in _brcmf_set_multicast_list()
/linux-4.4.14/security/keys/encrypted-keys/
Dencrypted.c278 char *ascii_buf, *bufp; in datablob_format() local
294 bufp = &ascii_buf[len]; in datablob_format()
296 bufp = hex_byte_pack(bufp, iv[i]); in datablob_format()
/linux-4.4.14/sound/pci/hda/
Dhda_codec.h507 struct snd_dma_buffer *bufp);
515 struct snd_dma_buffer *bufp) in snd_hda_codec_load_dsp_prepare() argument
Dhda_controller.c819 struct snd_dma_buffer *bufp) in snd_hda_codec_load_dsp_prepare() argument
837 err = snd_hdac_dsp_prepare(hstr, format, byte_size, bufp); in snd_hda_codec_load_dsp_prepare()
/linux-4.4.14/drivers/spi/
Dspi-pl022.c886 void *bufp = buffer; in setup_dma_scatter() local
898 if (bytesleft < (PAGE_SIZE - offset_in_page(bufp))) in setup_dma_scatter()
901 mapbytes = PAGE_SIZE - offset_in_page(bufp); in setup_dma_scatter()
902 sg_set_page(sg, virt_to_page(bufp), in setup_dma_scatter()
903 mapbytes, offset_in_page(bufp)); in setup_dma_scatter()
904 bufp += mapbytes; in setup_dma_scatter()
908 bufp, mapbytes, bytesleft); in setup_dma_scatter()
/linux-4.4.14/drivers/net/ethernet/smsc/
Dsmsc911x.c709 ulong bufp; in smsc911x_phy_check_loopbackpkt() local
731 bufp = (ulong)pdata->loopback_tx_pkt & (~0x3); in smsc911x_phy_check_loopbackpkt()
736 pdata->ops->tx_writefifo(pdata, (unsigned int *)bufp, wrsz); in smsc911x_phy_check_loopbackpkt()
775 bufp = (ulong)pdata->loopback_rx_pkt; in smsc911x_phy_check_loopbackpkt()
780 pdata->ops->rx_readfifo(pdata, (unsigned int *)bufp, rdsz); in smsc911x_phy_check_loopbackpkt()
1688 ulong bufp; in smsc911x_hard_start_xmit() local
1707 bufp = (ulong)skb->data & (~0x3); in smsc911x_hard_start_xmit()
1712 pdata->ops->tx_writefifo(pdata, (unsigned int *)bufp, wrsz); in smsc911x_hard_start_xmit()
/linux-4.4.14/security/keys/
Dtrusted.c1092 char *bufp; in trusted_read() local
1104 bufp = ascii_buf; in trusted_read()
1106 bufp = hex_byte_pack(bufp, p->blob[i]); in trusted_read()
/linux-4.4.14/drivers/net/ethernet/
Ddnet.c535 unsigned int *bufp; in dnet_start_xmit() local
550 bufp = (unsigned int *)(((unsigned long) skb->data) & ~0x3UL); in dnet_start_xmit()
559 dnet_writel(bp, *bufp++, TX_DATA_FIFO); in dnet_start_xmit()
/linux-4.4.14/drivers/net/ethernet/dec/tulip/
Dde2104x.c1792 void *bufp; in de21041_get_srom_info() local
1853 bufp = ((void *)il) + sizeof(*il); in de21041_get_srom_info()
1855 struct de_srom_media_block *ib = bufp; in de21041_get_srom_info()
1891 bufp += sizeof (ib->opts); in de21041_get_srom_info()
1897 bufp += sizeof(ib->csr13) + sizeof(ib->csr14) + in de21041_get_srom_info()
1911 if (bufp > ((void *)&ee_data[DE_EEPROM_SIZE - 3])) in de21041_get_srom_info()
/linux-4.4.14/drivers/usb/gadget/udc/
Dnet2272.c407 u16 *bufp; in net2272_write_packet() local
419 bufp = (u16 *)buf; in net2272_write_packet()
423 writew(*bufp++, ep_data); in net2272_write_packet()
426 buf = (u8 *)bufp; in net2272_write_packet()
516 u16 *bufp; in net2272_read_packet() local
535 bufp = (u16 *)buf; in net2272_read_packet()
538 *bufp++ = readw(ep_data); in net2272_read_packet()
/linux-4.4.14/drivers/staging/iio/light/
Dtsl2583.c789 static int taos_tsl258x_device(unsigned char *bufp) in taos_tsl258x_device() argument
791 return ((bufp[TSL258X_CHIPID] & 0xf0) == 0x90); in taos_tsl258x_device()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_main.c4544 char *bufp = buf; in print_port_info() local
4557 bufp += sprintf(bufp, "100/"); in print_port_info()
4559 bufp += sprintf(bufp, "1000/"); in print_port_info()
4561 bufp += sprintf(bufp, "10G/"); in print_port_info()
4563 bufp += sprintf(bufp, "40G/"); in print_port_info()
4564 if (bufp != buf) in print_port_info()
4565 --bufp; in print_port_info()
4566 sprintf(bufp, "BASE-%s", t4_get_port_type_description(pi->port_type)); in print_port_info()
Dt4_hw.c2541 u32 *bufp = (u32 *)((char *)buf + reg); in t4_get_regs() local
2546 while (reg <= last_reg && bufp < buf_end) { in t4_get_regs()
2547 *bufp++ = t4_read_reg(adap, reg); in t4_get_regs()
/linux-4.4.14/include/uapi/linux/
Dsoundcard.h1180 unsigned char *bufp=buf;\
1186 _seqbuf[_seqbufptr+ii+2] = bufp[ii];\
/linux-4.4.14/tools/perf/util/
Dunwind-libunwind.c409 char __maybe_unused *bufp, size_t __maybe_unused buf_len, in get_proc_name() argument
/linux-4.4.14/drivers/block/
Dskd_main.c1647 u8 *bufp = NULL; in skd_sg_io_copy_buffer() local
1672 bufp = page_address(page); in skd_sg_io_copy_buffer()
1681 rc = __copy_from_user(bufp, curiov.iov_base, nbytes); in skd_sg_io_copy_buffer()
1683 rc = __copy_to_user(curiov.iov_base, bufp, nbytes); in skd_sg_io_copy_buffer()
/linux-4.4.14/drivers/scsi/qla2xxx/
Dqla_def.h711 void *bufp; member
724 void *bufp; member
/linux-4.4.14/drivers/net/wireless/ath/ath10k/
Dwmi.h3727 char bufp[WMI_MAX_DEBUG_MESG]; member