• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/mtd/

Lines Matching defs:to

26  * Subdev points to an array of pointers to struct mtd_info objects
37 * how to calculate the size required for the above structure,
38 * including the pointer array subdev points to:
44 * Given a pointer to the MTD object in the mtd_concat structure,
45 * we can retrieve the pointer to that structure with this macro.
51 * effective address and pass through to the subdevice.
109 concat_write(struct mtd_info *mtd, loff_t to, size_t len,
125 if (to >= subdev->size) {
127 to -= subdev->size;
130 if (to + len > subdev->size)
131 size = subdev->size - to;
138 err = subdev->write(subdev, to, size, &retsize, buf);
150 to = 0;
157 unsigned long count, loff_t to, size_t * retlen)
176 if ((to + total_len) > mtd->size)
181 loff_t __to = to;
197 if (to >= subdev->size) {
198 to -= subdev->size;
202 size = min(total_len, (size_t)(subdev->size - to));
219 entry_high - entry_low + 1, to, &retsize);
236 to = 0;
301 concat_write_oob(struct mtd_info *mtd, loff_t to, struct mtd_oob_ops *ops)
315 if (to >= subdev->size) {
316 to -= subdev->size;
321 if (to + devops.len > subdev->size)
322 devops.len = subdev->size - to;
324 err = subdev->write_oob(subdev, to, &devops);
341 to = 0;
399 * Check for proper erase block alignment of the to-be-erased area.
400 * It is easier to do this based on the super device's erase
416 * Find the erase region where the to-be-erased area begins:
424 * to-be-erased area begins. Verify that the starting
425 * offset is aligned to this region's erase size:
431 * now find the erase region where the to-be-erased area ends:
438 * check if the ending offset is aligned to this region's erase size
447 /* make a local copy of instr to avoid modifying the caller's struct */
457 * find the subdevice where the to-be-erased area begins, adjust
458 * starting offset to be relative to the subdevice start
479 /* limit length to subdevice's size: */
499 * erase->addr specifies the offset of the area to be
502 * for the first subdevice where blocks need to be erased.
686 * num_devs MTD devices. A pointer to the new device object is
687 * stored to *new_dev upon success. This function does _not_
690 struct mtd_info *mtd_concat_create(struct mtd_info *subdev[], /* subdevices to concatenate */
751 * Expect all flags except MTD_WRITEABLE to be
844 * space to store the data describing the variable erase regions