Home
last modified time | relevance | path

Searched refs:file_buf (Results 1 – 3 of 3) sorted by relevance

/openbmc/skeleton/op-flasher/
H A Dflasher_obj.c47 static uint8_t file_buf[FILE_BUF_SIZE] __aligned(0x1000); variable
126 len = read(fd, file_buf, FILE_BUF_SIZE); in program_file()
137 rc = blocklevel_write(bl, start, file_buf, len); in program_file()
/openbmc/u-boot/fs/zfs/
H A Dzfs.c146 char *file_buf; member
1835 free(data->file_buf); in zfs_unmount()
2080 if (data->file_buf == NULL) { in zfs_read()
2081 data->file_buf = malloc(SPA_MAXBLOCKSIZE); in zfs_read()
2082 if (!data->file_buf) in zfs_read()
2092 memmove(buf, data->file_buf + file->offset - data->file_start, in zfs_read()
2115 free(data->file_buf); in zfs_read()
2116 data->file_buf = 0; in zfs_read()
2120 data->file_buf = t; in zfs_read()
2129 memmove(buf, data->file_buf + file->offset + red in zfs_read()
/openbmc/linux/drivers/mtd/nand/raw/
H A Dnandsim.c355 void *file_buf; member
563 ns->file_buf = kmalloc(ns->geom.pgszoob, GFP_KERNEL); in ns_alloc_device()
564 if (!ns->file_buf) { in ns_alloc_device()
613 kfree(ns->file_buf); in ns_free_device()
1508 pg_off = ns->file_buf + NS_PAGE_BYTE_SHIFT(ns); in ns_prog_page()
1512 memset(ns->file_buf, 0xff, ns->geom.pgszoob); in ns_prog_page()
1525 tx = ns_write_file(ns, ns->cfile, ns->file_buf, in ns_prog_page()