Lines Matching refs:to
49 static int _block2mtd_erase(struct block2mtd_dev *dev, loff_t to, size_t len)
53 int index = to >> PAGE_SHIFT; // page index
147 /* write data to the underlying device */
149 loff_t to, size_t len, size_t *retlen)
153 int index = to >> PAGE_SHIFT; // page index
154 int offset = to & ~PAGE_MASK; // page offset
191 static int block2mtd_write(struct mtd_info *mtd, loff_t to, size_t len,
199 if (to >= mtd->size)
201 if (to + len > mtd->size)
202 len = mtd->size - to;
205 err = _block2mtd_write(dev, buf, to, len, retlen);
257 to resolve the device name by other means. */
273 ERROR("attempting to use an MTD device as a block device");
317 /* This function works similar to reguler strtoul. In addition, it
334 /* By dwmw2 editorial decree, "ki", "Mi" or "Gi" are to be used. */
437 called so early that it is not possible to resolve
438 the device (even kmalloc() fails). Deter that work to
449 MODULE_PARM_DESC(block2mtd, "Device to use. \"block2mtd=<dev>[,<erasesize>]\"");