Lines Matching full:fa

51 void flash_area_close(const struct flash_area *fa)  in flash_area_close()  argument
56 int flash_area_read(const struct flash_area *fa, off_t off, void *dst, in flash_area_read() argument
59 if (!is_in_flash_area_bounds(fa, off, len)) { in flash_area_read()
63 return flash_read(fa->fa_dev, fa->fa_off + off, dst, len); in flash_area_read()
66 int flash_area_write(const struct flash_area *fa, off_t off, const void *src, in flash_area_write() argument
69 if (!is_in_flash_area_bounds(fa, off, len)) { in flash_area_write()
73 return flash_write(fa->fa_dev, fa->fa_off + off, (void *)src, len); in flash_area_write()
76 int flash_area_erase(const struct flash_area *fa, off_t off, size_t len) in flash_area_erase() argument
78 if (!is_in_flash_area_bounds(fa, off, len)) { in flash_area_erase()
82 return flash_erase(fa->fa_dev, fa->fa_off + off, len); in flash_area_erase()
85 int flash_area_flatten(const struct flash_area *fa, off_t off, size_t len) in flash_area_flatten() argument
87 if (!is_in_flash_area_bounds(fa, off, len)) { in flash_area_flatten()
91 return flash_flatten(fa->fa_dev, fa->fa_off + off, len); in flash_area_flatten()
94 uint32_t flash_area_align(const struct flash_area *fa) in flash_area_align() argument
96 return flash_get_write_block_size(fa->fa_dev); in flash_area_align()
99 int flash_area_has_driver(const struct flash_area *fa) in flash_area_has_driver() argument
101 if (!device_is_ready(fa->fa_dev)) { in flash_area_has_driver()
108 const struct device *flash_area_get_device(const struct flash_area *fa) in flash_area_get_device() argument
110 return fa->fa_dev; in flash_area_get_device()
114 const char *flash_area_label(const struct flash_area *fa) in flash_area_label() argument
116 return fa->fa_label; in flash_area_label()
120 uint8_t flash_area_erased_val(const struct flash_area *fa) in flash_area_erased_val() argument
124 param = flash_get_parameters(fa->fa_dev); in flash_area_erased_val()