Lines Matching refs: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()
429 adr -= word_gap; in do_write_buffer()
470 send_pfow_command(map, LPDDR_BUFF_PROGRAM, adr, wbufsize, NULL); in do_write_buffer()
475 map->name, ret, adr); in do_write_buffer()
484 static int do_erase_oneblock(struct mtd_info *mtd, loff_t adr) in do_erase_oneblock() argument
488 int chipnum = adr >> lpddr->chipshift; in do_erase_oneblock()
498 send_pfow_command(map, LPDDR_BLOCK_ERASE, adr, 0, NULL); in do_erase_oneblock()
503 map->name, ret, adr); in do_erase_oneblock()
511 static int lpddr_read(struct mtd_info *mtd, loff_t adr, size_t len, in lpddr_read() argument
516 int chipnum = adr >> lpddr->chipshift; in lpddr_read()
527 map_copy_from(map, buf, adr, len); in lpddr_read()
535 static int lpddr_point(struct mtd_info *mtd, loff_t adr, size_t len, in lpddr_point() argument
540 int chipnum = adr >> lpddr->chipshift; in lpddr_point()
549 ofs = adr - (chipnum << lpddr->chipshift); in lpddr_point()
588 static int lpddr_unpoint (struct mtd_info *mtd, loff_t adr, size_t len) in lpddr_unpoint() argument
592 int chipnum = adr >> lpddr->chipshift, err = 0; in lpddr_unpoint()
596 ofs = adr - (chipnum << lpddr->chipshift); in lpddr_unpoint()
716 static int do_xxlock(struct mtd_info *mtd, loff_t adr, uint32_t len, int thunk) in do_xxlock() argument
721 int chipnum = adr >> lpddr->chipshift; in do_xxlock()
732 send_pfow_command(map, LPDDR_LOCK_BLOCK, adr, adr + len, NULL); in do_xxlock()
735 send_pfow_command(map, LPDDR_UNLOCK_BLOCK, adr, adr + len, NULL); in do_xxlock()