Home
last modified time | relevance | path

Searched refs:kbuf (Results 1 – 21 of 21) sorted by relevance

/drivers/char/xilinx_hwicap/
Dxilinx_hwicap.c356 u32 *kbuf; in hwicap_read() local
384 kbuf = (u32 *) get_zeroed_page(GFP_KERNEL); in hwicap_read()
385 if (!kbuf) { in hwicap_read()
410 kbuf, words); in hwicap_read()
414 free_page((unsigned long)kbuf); in hwicap_read()
419 if (copy_to_user(buf, kbuf, bytes_to_read)) { in hwicap_read()
420 free_page((unsigned long)kbuf); in hwicap_read()
425 kbuf, in hwicap_read()
428 free_page((unsigned long)kbuf); in hwicap_read()
443 u32 *kbuf; in hwicap_write() local
[all …]
/drivers/mtd/
Dmtdchar.c159 char *kbuf; in mtdchar_read() local
173 kbuf = mtd_kmalloc_up_to(mtd, &size); in mtdchar_read()
174 if (!kbuf) in mtdchar_read()
183 &retlen, kbuf); in mtdchar_read()
187 &retlen, kbuf); in mtdchar_read()
194 ops.datbuf = kbuf; in mtdchar_read()
203 ret = mtd_read(mtd, *ppos, len, &retlen, kbuf); in mtdchar_read()
216 if (copy_to_user(buf, kbuf, retlen)) { in mtdchar_read()
217 kfree(kbuf); in mtdchar_read()
229 kfree(kbuf); in mtdchar_read()
[all …]
Dmtdcore.c1229 void *kbuf; in mtd_kmalloc_up_to() local
1234 kbuf = kmalloc(*size, flags); in mtd_kmalloc_up_to()
1235 if (kbuf) in mtd_kmalloc_up_to()
1236 return kbuf; in mtd_kmalloc_up_to()
/drivers/char/
Dmem.c418 char *kbuf; /* k-addr because vread() takes vmlist_lock rwlock */ in read_kmem() local
448 kbuf = xlate_dev_kmem_ptr((void *)p); in read_kmem()
450 if (copy_to_user(buf, kbuf, sz)) in read_kmem()
465 kbuf = (char *)__get_free_page(GFP_KERNEL); in read_kmem()
466 if (!kbuf) in read_kmem()
474 sz = vread(kbuf, (char *)p, sz); in read_kmem()
477 if (copy_to_user(buf, kbuf, sz)) { in read_kmem()
488 free_page((unsigned long)kbuf); in read_kmem()
554 char *kbuf; /* k-addr because vwrite() takes vmlist_lock rwlock */ in write_kmem() local
569 kbuf = (char *)__get_free_page(GFP_KERNEL); in write_kmem()
[all …]
Dlp.c299 char *kbuf = lp_table[minor].lp_buffer; in lp_write() local
320 if (copy_from_user (kbuf, buf, copy_size)) { in lp_write()
339 written = parport_write (port, kbuf, copy_size); in lp_write()
387 if (copy_from_user(kbuf, buf, copy_size)) { in lp_write()
419 char *kbuf = lp_table[minor].lp_buffer; in lp_read() local
443 retval = parport_read (port, kbuf, count); in lp_read()
481 if (retval > 0 && copy_to_user (buf, kbuf, retval)) in lp_read()
/drivers/net/wireless/ath/wil6210/
Ddebugfs.c583 char *kbuf = kmalloc(len + 1, GFP_KERNEL); in wil_write_file_rxon() local
585 if (!kbuf) in wil_write_file_rxon()
587 if (copy_from_user(kbuf, buf, len)) { in wil_write_file_rxon()
588 kfree(kbuf); in wil_write_file_rxon()
592 kbuf[len] = '\0'; in wil_write_file_rxon()
593 rc = kstrtol(kbuf, 0, &channel); in wil_write_file_rxon()
594 kfree(kbuf); in wil_write_file_rxon()
632 char *kbuf = kmalloc(len + 1, GFP_KERNEL); in wil_write_back() local
636 if (!kbuf) in wil_write_back()
639 rc = simple_write_to_buffer(kbuf, len, ppos, buf, len); in wil_write_back()
[all …]
/drivers/staging/goldfish/
Dgoldfish_audio.c156 char *kbuf; in goldfish_audio_write() local
168 kbuf = data->write_buffer1; in goldfish_audio_write()
170 kbuf = data->write_buffer2; in goldfish_audio_write()
173 if (copy_from_user(kbuf, buf, copy)) { in goldfish_audio_write()
183 if (kbuf == data->write_buffer1) { in goldfish_audio_write()
/drivers/misc/
Dpti.c613 void *kbuf; in pti_char_write() local
621 kbuf = kmalloc(size, GFP_KERNEL); in pti_char_write()
622 if (kbuf == NULL) { in pti_char_write()
634 if (copy_from_user(kbuf, tmp, size)) { in pti_char_write()
635 kfree(kbuf); in pti_char_write()
639 pti_write_to_aperture(mc, kbuf, size); in pti_char_write()
645 kfree(kbuf); in pti_char_write()
/drivers/fpga/
Dzynq-fpga.c289 char *kbuf; in zynq_fpga_ops_write() local
298 kbuf = dma_alloc_coherent(priv->dev, count, &dma_addr, GFP_KERNEL); in zynq_fpga_ops_write()
299 if (!kbuf) in zynq_fpga_ops_write()
302 memcpy(kbuf, buf, count); in zynq_fpga_ops_write()
341 dma_free_coherent(priv->dev, in_count, kbuf, dma_addr); in zynq_fpga_ops_write()
/drivers/md/bcache/
Ddebug.c166 char kbuf[80]; in bch_dump_read() local
189 bch_extent_to_text(kbuf, sizeof(kbuf), &w->key); in bch_dump_read()
190 i->bytes = snprintf(i->buf, PAGE_SIZE, "%s\n", kbuf); in bch_dump_read()
/drivers/gpu/vga/
Dvgaarb.c919 char *kbuf, *curr_pos; in vga_arb_write() local
926 kbuf = kmalloc(count + 1, GFP_KERNEL); in vga_arb_write()
927 if (!kbuf) in vga_arb_write()
930 if (copy_from_user(kbuf, buf, count)) { in vga_arb_write()
931 kfree(kbuf); in vga_arb_write()
934 curr_pos = kbuf; in vga_arb_write()
935 kbuf[count] = '\0'; /* Just to make sure... */ in vga_arb_write()
1156 kfree(kbuf); in vga_arb_write()
1160 kfree(kbuf); in vga_arb_write()
/drivers/xen/
Devtchn.c272 evtchn_port_t *kbuf = (evtchn_port_t *)__get_free_page(GFP_KERNEL); in evtchn_write() local
275 if (kbuf == NULL) in evtchn_write()
289 if (copy_from_user(kbuf, buf, count) != 0) in evtchn_write()
295 unsigned port = kbuf[i]; in evtchn_write()
310 free_page((unsigned long)kbuf); in evtchn_write()
/drivers/net/wan/
Dcosa.c790 char *kbuf; in cosa_read() local
826 kbuf = chan->rxdata; in cosa_read()
831 if (copy_to_user(buf, kbuf, count)) { in cosa_read()
832 kfree(kbuf); in cosa_read()
835 kfree(kbuf); in cosa_read()
865 char *kbuf; in cosa_write() local
879 kbuf = kmalloc(count, GFP_KERNEL|GFP_DMA); in cosa_write()
880 if (kbuf == NULL) { in cosa_write()
884 if (copy_from_user(kbuf, buf, count)) { in cosa_write()
886 kfree(kbuf); in cosa_write()
[all …]
/drivers/media/pci/ttpci/
Dav7110_av.c455 kb = av7110->kbuf[type]; in ts_play()
490 if (!av7110->kbuf[type]) in dvb_play()
507 if (copy_from_user(av7110->kbuf[type], buf, n)) in dvb_play()
509 av7110_ipack_instant_repack(av7110->kbuf[type], n, in dvb_play()
523 if (!av7110->kbuf[type]) in dvb_play_kernel()
553 if (!av7110->kbuf[type]) in dvb_aplay()
569 if (copy_from_user(av7110->kbuf[type], buf, n)) in dvb_aplay()
571 av7110_ipack_instant_repack(av7110->kbuf[type], n, in dvb_aplay()
1626 av7110->kbuf[0] = (u8 *)(av7110->iobuf + AVOUTLEN + AOUTLEN + BMPLEN); in av7110_av_init()
1627 av7110->kbuf[1] = av7110->kbuf[0] + 2 * IPACKS; in av7110_av_init()
Dav7110.h216 u8 *kbuf[2]; member
/drivers/staging/lustre/lustre/ptlrpc/
Dlproc_ptlrpc.c1224 char *kbuf = NULL; in lprocfs_wr_import() local
1234 kbuf = kzalloc(count + 1, GFP_NOFS); in lprocfs_wr_import()
1235 if (!kbuf) in lprocfs_wr_import()
1238 if (copy_from_user(kbuf, buffer, count)) { in lprocfs_wr_import()
1243 kbuf[count] = 0; in lprocfs_wr_import()
1246 if (strncmp(prefix, kbuf, prefix_len) != 0) { in lprocfs_wr_import()
1251 uuid = kbuf + prefix_len; in lprocfs_wr_import()
1278 kfree(kbuf); in lprocfs_wr_import()
/drivers/hwtracing/stm/
Dcore.c434 char *kbuf; in stm_char_write() local
454 kbuf = kmalloc(count + 1, GFP_KERNEL); in stm_char_write()
455 if (!kbuf) in stm_char_write()
458 err = copy_from_user(kbuf, buf, count); in stm_char_write()
460 kfree(kbuf); in stm_char_write()
464 stm_write(stm->data, stmf->output.master, stmf->output.channel, kbuf, in stm_char_write()
467 kfree(kbuf); in stm_char_write()
/drivers/net/wireless/mwifiex/
Ddebugfs.c886 char kbuf[16]; in mwifiex_timeshare_coex_write() local
892 memset(kbuf, 0, sizeof(kbuf)); in mwifiex_timeshare_coex_write()
894 if (copy_from_user(&kbuf, ubuf, min_t(size_t, sizeof(kbuf) - 1, count))) in mwifiex_timeshare_coex_write()
897 if (strtobool(kbuf, &timeshare_coex)) in mwifiex_timeshare_coex_write()
/drivers/usb/gadget/legacy/
Dinode.c1825 char *kbuf; in dev_config() local
1847 kbuf = memdup_user(buf, length); in dev_config()
1848 if (IS_ERR(kbuf)) in dev_config()
1849 return PTR_ERR(kbuf); in dev_config()
1854 kfree(kbuf); in dev_config()
1857 dev->buf = kbuf; in dev_config()
1860 dev->config = (void *) kbuf; in dev_config()
1865 kbuf += total; in dev_config()
1869 if (kbuf [1] == USB_DT_CONFIG) { in dev_config()
1870 dev->hs_config = (void *) kbuf; in dev_config()
[all …]
/drivers/s390/char/
Dvmur.c234 void *kbuf; in alloc_chan_prog() local
253 kbuf = kmalloc(reclen, GFP_KERNEL | GFP_DMA); in alloc_chan_prog()
254 if (!kbuf) { in alloc_chan_prog()
258 cpa[i].cda = (u32)(addr_t) kbuf; in alloc_chan_prog()
259 if (copy_from_user(kbuf, ubuf, reclen)) { in alloc_chan_prog()
/drivers/media/usb/stkwebcam/
Dstk-webcam.c424 void *kbuf; in stk_prepare_iso() local
444 kbuf = kzalloc(ISO_BUFFER_SIZE, GFP_KERNEL); in stk_prepare_iso()
445 if (kbuf == NULL) { in stk_prepare_iso()
450 dev->isobufs[i].data = kbuf; in stk_prepare_iso()