Lines Matching defs:from
5 * Largely derived from at91_dataflash.c:
223 * Read from the DataFlash device.
224 * from : Start offset in flash device
229 static int dataflash_read(struct mtd_info *mtd, loff_t from, size_t len,
240 (unsigned int)from, (unsigned int)(from + len));
243 addr = (((unsigned)from / priv->page_size) << priv->page_offset)
244 + ((unsigned)from % priv->page_size);
281 (unsigned)from, (unsigned)(from + len),
340 * support boot-from-DataFlash.)
440 * Unless the user block changed from all-ones, we can't
496 loff_t from, size_t len, size_t *retlen, u_char *buf)
501 /* 64 bytes, from 0..63 ... start at 64 on-chip */
503 status = otp_read(priv->spi, 64, buf, from, len);
513 loff_t from, size_t len, size_t *retlen, u_char *buf)
518 /* 64 bytes, from 0..63 ... start at 0 on-chip */
520 status = otp_read(priv->spi, 0, buf, from, len);
530 loff_t from, size_t len, size_t *retlen, u_char *buf)
539 if (from >= 64) {
549 if ((from + len) > 64)
550 len = 64 - from;
559 memcpy(scratch + 4 + from, buf, len);