Lines Matching defs:fs
80 struct fs_cfg *fs;
110 fs = &m_fs_cfg[partition_offset];
111 addr = ((fs->block_start + block) * c->block_size) + off;
131 struct fs_cfg *fs;
263 struct fs_cfg *fs;
282 fs = &m_fs_cfg[partition_offset];
283 addr = ((fs->block_start + block) * c->block_size);
294 static uint32_t fsdrv_readdrs(const struct DeviceResourceNode *node, struct fs_cfg *fs)
306 if (fs == NULL) {
307 PRINT_ERR("fs is null\n");
336 ret = iface->GetStringArrayElem(node, "mount_points", i, &fs[i].mount_point, NULL);
342 fs[i].lfs_cfg.context = (void *)fs[i].mount_point;
344 ret = iface->GetUint32ArrayElem(node, "block_size", i, &fs[i].lfs_cfg.block_size, NULL);
350 ret = iface->GetUint32ArrayElem(node, "block_count", i, &fs[i].lfs_cfg.block_count, NULL);
356 ret = iface->GetUint32ArrayElem(node, "block_start", i, &fs[i].block_start, NULL);
365 if (fs[i].mount_point == NULL) {
369 PRINT_LOG("fs[%d]:\n", i);
370 PRINT_LOG(" mount_points = %s\n", fs[i].mount_point);
371 PRINT_LOG(" context = %s\n", (char *)fs[i].lfs_cfg.context);
372 PRINT_LOG(" block_size = %d\n", fs[i].lfs_cfg.block_size);
373 PRINT_LOG(" block_count = %d\n", fs[i].lfs_cfg.block_count);
374 PRINT_LOG(" block_start = %d\n", fs[i].block_start);
377 if (fs[i].lfs_cfg.block_size != block_size) {
379 i, fs[i].lfs_cfg.block_size, block_size);
383 address_start = (uint32_t)(fs[i].block_start * fs[i].lfs_cfg.block_size);
390 address_end = (uint32_t)((fs[i].block_start + fs[i].lfs_cfg.block_count) * fs[i].lfs_cfg.block_size);
446 printf("%s: mount fs on '%s' %s\n", __func__, m_fs_cfg[i].mount_point, (result == 0) ? "succeed" : "failed");