Lines Matching refs:f

33 ssize_t flash_device_read (file_t *f, void *buffer, size_t size) {  in flash_device_read()  argument
36 hal_partition_t in_partition = (hal_partition_t)f->node->i_arg; in flash_device_read()
37 size_t offset = f->offset; in flash_device_read()
44 ddkc_dbg("f->offset:%d, buffer:%p, size:%d\r\n", f->offset, buffer, size); in flash_device_read()
45 ret = hal_flash_read(in_partition, &f->offset, buffer, size); in flash_device_read()
49 if ((f->offset - offset) != size) { in flash_device_read()
53 s = f->offset - offset; in flash_device_read()
61 ssize_t flash_device_write (file_t *f, const void *buffer, size_t size) { in flash_device_write() argument
64 hal_partition_t in_partition = (hal_partition_t)f->node->i_arg; in flash_device_write()
65 size_t offset = f->offset; in flash_device_write()
72 ret = hal_flash_write(in_partition, &f->offset, buffer, size); in flash_device_write()
73 ddkc_dbg("f->offset:%d, ret:%d\r\n", f->offset, ret); in flash_device_write()
78 if ((f->offset - offset) != size) { in flash_device_write()
82 s = f->offset - offset; in flash_device_write()
87 static uint32_t flash_device_lseek(file_t *f, int64_t off, int32_t whence){ in flash_device_lseek() argument
88 ddkc_dbg("f->offset:%x, off:%llx, whence:%d\r\n", f->offset, off, whence); in flash_device_lseek()
91 off = f->offset + off; in flash_device_lseek()
95 f->offset = off; in flash_device_lseek()
105 int flash_device_ioctl (file_t *f, int cmd, unsigned long arg) { in flash_device_ioctl() argument
107 hal_partition_t in_partition = (hal_partition_t)f->node->i_arg; in flash_device_ioctl()
108 uint32_t offset = f->offset; in flash_device_ioctl()
114 … ddkc_warn("i_name:%s, flash:%d, cmd:%d, arg:0x%lx\r\n", f->node->i_name, in_partition, cmd, arg); in flash_device_ioctl()
122 …LASH_ERASE_FLASH i_name:%s, flash:%d, cmd:%d, off_set:0x%x, size:0x%x\r\n", f->node->i_name, in_pa… in flash_device_ioctl()
133 …ddkc_dbg("IOC_FLASH_INFO_GET i_name:%s, flash:%d, cmd:%d\r\n", f->node->i_name, in_partition, cmd); in flash_device_ioctl()
145 …ddkc_dbg("i_name:%s, flash:%d, cmd:%d, off_set:0x%x, size:0x%x\r\n", f->node->i_name, in_partition… in flash_device_ioctl()
155 …H_DISABLE_SECURE i_name:%s, flash:%d, cmd:%d, off_set:0x%x, size:0x%x\r\n", f->node->i_name, in_pa… in flash_device_ioctl()
186 int flash_device_open (inode_t *node, file_t *f) { in flash_device_open() argument
191 int flash_device_close (file_t *f) { in flash_device_close() argument
192 ddkc_dbg("close %s done\r\n", f->node->i_name); in flash_device_close()