Searched refs:datbuf_len (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/mtd/ |
H A D | mtdchar.c | 600 size_t datbuf_len, oobbuf_len; in mtdchar_write_ioctl() local 624 datbuf_len = min_t(size_t, req.len, mtd->erasesize); in mtdchar_write_ioctl() 625 if (datbuf_len > 0) { in mtdchar_write_ioctl() 626 datbuf = kvmalloc(datbuf_len, GFP_KERNEL); in mtdchar_write_ioctl() 643 .len = min_t(size_t, req.len, datbuf_len), in mtdchar_write_ioctl() 698 size_t datbuf_len, oobbuf_len; in mtdchar_read_ioctl() local 732 datbuf_len = min_t(size_t, req.len, mtd->erasesize); in mtdchar_read_ioctl() 733 if (datbuf_len > 0) { in mtdchar_read_ioctl() 734 datbuf = kvmalloc(datbuf_len, GFP_KERNEL); in mtdchar_read_ioctl() 754 .len = min_t(size_t, req.len, datbuf_len), in mtdchar_read_ioctl()
|