Lines Matching refs:dev

11 static inline int z_vrfy_flash_read(const struct device *dev, off_t offset,  in z_vrfy_flash_read()  argument
14 K_OOPS(K_SYSCALL_DRIVER_FLASH(dev, read)); in z_vrfy_flash_read()
16 return z_impl_flash_read((const struct device *)dev, offset, in z_vrfy_flash_read()
22 static inline int z_vrfy_flash_write(const struct device *dev, off_t offset, in z_vrfy_flash_write() argument
25 K_OOPS(K_SYSCALL_DRIVER_FLASH(dev, write)); in z_vrfy_flash_write()
27 return z_impl_flash_write((const struct device *)dev, offset, in z_vrfy_flash_write()
32 static inline int z_vrfy_flash_erase(const struct device *dev, off_t offset, in z_vrfy_flash_erase() argument
35 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_FLASH)); in z_vrfy_flash_erase()
36 return z_impl_flash_erase((const struct device *)dev, offset, size); in z_vrfy_flash_erase()
40 static inline int z_vrfy_flash_get_size(const struct device *dev, uint64_t *size) in z_vrfy_flash_get_size() argument
42 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_FLASH)); in z_vrfy_flash_get_size()
44 return z_impl_flash_get_size((const struct device *)dev, size); in z_vrfy_flash_get_size()
48 static inline size_t z_vrfy_flash_get_write_block_size(const struct device *dev) in z_vrfy_flash_get_write_block_size() argument
50 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_FLASH)); in z_vrfy_flash_get_write_block_size()
51 return z_impl_flash_get_write_block_size(dev); in z_vrfy_flash_get_write_block_size()
55 static inline const struct flash_parameters *z_vrfy_flash_get_parameters(const struct device *dev) in z_vrfy_flash_get_parameters() argument
57 K_OOPS(K_SYSCALL_DRIVER_FLASH(dev, get_parameters)); in z_vrfy_flash_get_parameters()
58 return z_impl_flash_get_parameters(dev); in z_vrfy_flash_get_parameters()
62 int z_vrfy_flash_fill(const struct device *dev, uint8_t val, off_t offset, in z_vrfy_flash_fill() argument
65 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_FLASH)); in z_vrfy_flash_fill()
66 return z_impl_flash_fill(dev, val, offset, size); in z_vrfy_flash_fill()
70 int z_vrfy_flash_flatten(const struct device *dev, off_t offset, size_t size) in z_vrfy_flash_flatten() argument
72 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_FLASH)); in z_vrfy_flash_flatten()
73 return z_impl_flash_flatten(dev, offset, size); in z_vrfy_flash_flatten()
79 static inline int z_vrfy_flash_get_page_info_by_offs(const struct device *dev, in z_vrfy_flash_get_page_info_by_offs() argument
83 K_OOPS(K_SYSCALL_DRIVER_FLASH(dev, page_layout)); in z_vrfy_flash_get_page_info_by_offs()
85 return z_impl_flash_get_page_info_by_offs((const struct device *)dev, in z_vrfy_flash_get_page_info_by_offs()
91 static inline int z_vrfy_flash_get_page_info_by_idx(const struct device *dev, in z_vrfy_flash_get_page_info_by_idx() argument
95 K_OOPS(K_SYSCALL_DRIVER_FLASH(dev, page_layout)); in z_vrfy_flash_get_page_info_by_idx()
97 return z_impl_flash_get_page_info_by_idx((const struct device *)dev, in z_vrfy_flash_get_page_info_by_idx()
103 static inline size_t z_vrfy_flash_get_page_count(const struct device *dev) in z_vrfy_flash_get_page_count() argument
105 K_OOPS(K_SYSCALL_DRIVER_FLASH(dev, page_layout)); in z_vrfy_flash_get_page_count()
106 return z_impl_flash_get_page_count((const struct device *)dev); in z_vrfy_flash_get_page_count()
114 static inline int z_vrfy_flash_sfdp_read(const struct device *dev, in z_vrfy_flash_sfdp_read() argument
118 K_OOPS(K_SYSCALL_DRIVER_FLASH(dev, sfdp_read)); in z_vrfy_flash_sfdp_read()
120 return z_impl_flash_sfdp_read(dev, offset, data, len); in z_vrfy_flash_sfdp_read()
124 static inline int z_vrfy_flash_read_jedec_id(const struct device *dev, in z_vrfy_flash_read_jedec_id() argument
127 K_OOPS(K_SYSCALL_DRIVER_FLASH(dev, read_jedec_id)); in z_vrfy_flash_read_jedec_id()
129 return z_impl_flash_read_jedec_id(dev, id); in z_vrfy_flash_read_jedec_id()
137 static inline int z_vrfy_flash_ex_op(const struct device *dev, uint16_t code, in z_vrfy_flash_ex_op() argument
140 K_OOPS(K_SYSCALL_DRIVER_FLASH(dev, ex_op)); in z_vrfy_flash_ex_op()
148 return z_impl_flash_ex_op(dev, code, in, out); in z_vrfy_flash_ex_op()