Lines Matching defs:len
44 static int cfi_staa_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
45 static int cfi_staa_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
249 static inline int do_read_onechip(struct map_info *map, struct flchip *chip, loff_t adr, size_t len, u_char *buf)
362 map_copy_from(map, buf, adr, len);
384 static int cfi_staa_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)
396 while (len) {
402 if ((len + ofs -1) >> cfi->chipshift)
405 thislen = len;
412 len -= thislen;
422 unsigned long adr, const u_char *buf, int len)
521 map_write(map, CMD(len/map_bankwidth(map)-1), cmd_adr );
524 for (z = 0; z < len;
608 size_t len, size_t *retlen, const u_char *buf)
623 printk("%s: ofs[%x] len[%x]\n", __func__, ofs, len);
627 while (len > 0) {
631 if (size > len)
632 size = len;
642 len -= size;
895 unsigned long adr, len;
932 while (i<mtd->numeraseregions && (instr->addr + instr->len) >= regions[i].offset)
940 if ((instr->addr + instr->len) & (regions[i].erasesize-1))
945 len = instr->len;
949 while(len) {
956 len -= regions[i].erasesize;
1127 static int cfi_staa_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
1140 if (len & (mtd->erasesize -1))
1146 while(len) {
1166 len -= mtd->erasesize;
1273 static int cfi_staa_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
1289 unsigned long temp_len = len;