Lines Matching full:adr
19 static int lpddr_read(struct mtd_info *mtd, loff_t adr, size_t len,
28 static int lpddr_point(struct mtd_info *mtd, loff_t adr, size_t len,
30 static int lpddr_unpoint(struct mtd_info *mtd, loff_t adr, size_t len);
404 unsigned long adr, const struct kvec **pvec, in do_write_buffer() argument
423 word_gap = (-adr & (map_bankwidth(map)-1)); in do_write_buffer()
426 adr -= word_gap; in do_write_buffer()
467 send_pfow_command(map, LPDDR_BUFF_PROGRAM, adr, wbufsize, NULL); in do_write_buffer()
472 map->name, ret, adr); in do_write_buffer()
481 static int do_erase_oneblock(struct mtd_info *mtd, loff_t adr) in do_erase_oneblock() argument
485 int chipnum = adr >> lpddr->chipshift; in do_erase_oneblock()
495 send_pfow_command(map, LPDDR_BLOCK_ERASE, adr, 0, NULL); in do_erase_oneblock()
500 map->name, ret, adr); in do_erase_oneblock()
508 static int lpddr_read(struct mtd_info *mtd, loff_t adr, size_t len, in lpddr_read() argument
513 int chipnum = adr >> lpddr->chipshift; in lpddr_read()
524 map_copy_from(map, buf, adr, len); in lpddr_read()
532 static int lpddr_point(struct mtd_info *mtd, loff_t adr, size_t len, in lpddr_point() argument
537 int chipnum = adr >> lpddr->chipshift; in lpddr_point()
546 ofs = adr - (chipnum << lpddr->chipshift); in lpddr_point()
585 static int lpddr_unpoint (struct mtd_info *mtd, loff_t adr, size_t len) in lpddr_unpoint() argument
589 int chipnum = adr >> lpddr->chipshift, err = 0; in lpddr_unpoint()
593 ofs = adr - (chipnum << lpddr->chipshift); in lpddr_unpoint()
713 static int do_xxlock(struct mtd_info *mtd, loff_t adr, uint32_t len, int thunk) in do_xxlock() argument
718 int chipnum = adr >> lpddr->chipshift; in do_xxlock()
729 send_pfow_command(map, LPDDR_LOCK_BLOCK, adr, adr + len, NULL); in do_xxlock()
732 send_pfow_command(map, LPDDR_UNLOCK_BLOCK, adr, adr + len, NULL); in do_xxlock()