Lines Matching full:io
17 #define FLASH_IO(_io) CONTAINER_OF(_io, struct bt_mesh_blob_io_flash, io)
40 static int io_open(const struct bt_mesh_blob_io *io, in io_open() argument
44 struct bt_mesh_blob_io_flash *flash = FLASH_IO(io); in io_open()
51 static void io_close(const struct bt_mesh_blob_io *io, in io_close() argument
54 struct bt_mesh_blob_io_flash *flash = FLASH_IO(io); in io_close()
59 static int block_start(const struct bt_mesh_blob_io *io, in block_start() argument
63 struct bt_mesh_blob_io_flash *flash = FLASH_IO(io); in block_start()
95 static int rd_chunk(const struct bt_mesh_blob_io *io, in rd_chunk() argument
100 struct bt_mesh_blob_io_flash *flash = FLASH_IO(io); in rd_chunk()
107 static int wr_chunk(const struct bt_mesh_blob_io *io, in wr_chunk() argument
112 struct bt_mesh_blob_io_flash *flash = FLASH_IO(io); in wr_chunk()
151 flash->io.open = io_open; in bt_mesh_blob_io_flash_init()
152 flash->io.close = io_close; in bt_mesh_blob_io_flash_init()
153 flash->io.block_start = block_start; in bt_mesh_blob_io_flash_init()
154 flash->io.block_end = NULL; in bt_mesh_blob_io_flash_init()
155 flash->io.rd = rd_chunk; in bt_mesh_blob_io_flash_init()
156 flash->io.wr = wr_chunk; in bt_mesh_blob_io_flash_init()