Lines Matching refs:to

25  * Subdev points to an array of pointers to struct mtd_info objects
36 * how to calculate the size required for the above structure,
37 * including the pointer array subdev points to:
43 * Given a pointer to the MTD object in the mtd_concat structure,
44 * we can retrieve the pointer to that structure with this macro.
50 * effective address and pass through to the subdevice.
106 concat_panic_write(struct mtd_info *mtd, loff_t to, size_t len,
116 if (to >= subdev->size) {
117 to -= subdev->size;
120 if (to + len > subdev->size)
121 size = subdev->size - to;
125 err = mtd_panic_write(subdev, to, size, &retsize, buf);
140 to = 0;
147 concat_write(struct mtd_info *mtd, loff_t to, size_t len,
158 if (to >= subdev->size) {
160 to -= subdev->size;
163 if (to + len > subdev->size)
164 size = subdev->size - to;
168 err = mtd_write(subdev, to, size, &retsize, buf);
179 to = 0;
186 unsigned long count, loff_t to, size_t * retlen)
201 uint64_t __to = to;
216 if (to >= subdev->size) {
217 to -= subdev->size;
221 size = min_t(uint64_t, total_len, subdev->size - to);
235 entry_high - entry_low + 1, to, &retsize);
252 to = 0;
317 concat_write_oob(struct mtd_info *mtd, loff_t to, struct mtd_oob_ops *ops)
331 if (to >= subdev->size) {
332 to -= subdev->size;
337 if (to + devops.len > subdev->size)
338 devops.len = subdev->size - to;
340 err = mtd_write_oob(subdev, to, &devops);
358 to = 0;
372 * Check for proper erase block alignment of the to-be-erased area.
373 * It is easier to do this based on the super device's erase
389 * Find the erase region where the to-be-erased area begins:
397 * to-be-erased area begins. Verify that the starting
398 * offset is aligned to this region's erase size:
404 * now find the erase region where the to-be-erased area ends:
411 * check if the ending offset is aligned to this region's erase size
418 /* make a local copy of instr to avoid modifying the caller's struct */
428 * find the subdevice where the to-be-erased area begins, adjust
429 * starting offset to be relative to the subdevice start
450 /* limit length to subdevice's size: */
466 * erase->addr specifies the offset of the area to be
469 * for the first subdevice where blocks need to be erased.
633 * num_devs MTD devices. A pointer to the new device object is
634 * stored to *new_dev upon success. This function does _not_
637 struct mtd_info *mtd_concat_create(struct mtd_info *subdev[], /* subdevices to concatenate */
715 * Expect all flags except MTD_WRITEABLE to be
818 * space to store the data describing the variable erase regions