Home
last modified time | relevance | path

Searched refs:num_subdev (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/mtd/maps/
Dsa1100-flash.c35 int num_subdev; member
143 for (i = info->num_subdev - 1; i >= 0; i--) in sa1100_destroy()
206 info->num_subdev = i; in sa1100_setup_mtd()
211 if (ret != 0 && !(ret == -ENXIO && info->num_subdev > 0)) in sa1100_setup_mtd()
219 if (info->num_subdev == 1) { in sa1100_setup_mtd()
223 } else if (info->num_subdev > 1) { in sa1100_setup_mtd()
228 for (i = 0; i < info->num_subdev; i++) in sa1100_setup_mtd()
231 info->mtd = mtd_concat_create(cdev, info->num_subdev, in sa1100_setup_mtd()
/Linux-v4.19/drivers/mtd/
Dmtdconcat.c45 int num_subdev; member
53 #define SIZEOF_STRUCT_MTD_CONCAT(num_subdev) \ argument
54 ((sizeof(struct mtd_concat) + (num_subdev) * sizeof(struct mtd_info *)))
75 for (i = 0; i < concat->num_subdev; i++) { in concat_read()
127 for (i = 0; i < concat->num_subdev; i++) { in concat_write()
185 for (i = 0; i < concat->num_subdev; i++) { in concat_writev()
241 for (i = 0; i < concat->num_subdev; i++) { in concat_read_oob()
301 for (i = 0; i < concat->num_subdev; i++) { in concat_write_oob()
404 for (i = 0; i < concat->num_subdev; i++) { in concat_erase()
415 BUG_ON(i >= concat->num_subdev); in concat_erase()
[all …]