Home
last modified time | relevance | path

Searched refs:chipshift (Results 1 – 14 of 14) sorted by relevance

/linux-6.1.9/drivers/mtd/chips/
Dgen_probe.c88 cfi.chipshift = cfi.cfiq->DevSize; in genprobe_ident_chips()
93 cfi.chipshift++; in genprobe_ident_chips()
95 cfi.chipshift += 2; in genprobe_ident_chips()
97 cfi.chipshift += 3; in genprobe_ident_chips()
108 max_chips = map->size >> cfi.chipshift; in genprobe_ident_chips()
129 cp->probe_chip(map, i << cfi.chipshift, chip_map, &cfi); in genprobe_ident_chips()
152 pchip->start = (i << cfi.chipshift); in genprobe_ident_chips()
Dcfi_cmdset_0020.c392 chipnum = (from >> cfi->chipshift); in cfi_staa_read()
393 ofs = from - (chipnum << cfi->chipshift); in cfi_staa_read()
401 if ((len + ofs -1) >> cfi->chipshift) in cfi_staa_read()
402 thislen = (1<<cfi->chipshift) - ofs; in cfi_staa_read()
616 chipnum = to >> cfi->chipshift; in cfi_staa_write_buffers()
617 ofs = to - (chipnum << cfi->chipshift); in cfi_staa_write_buffers()
643 if (ofs >> cfi->chipshift) { in cfi_staa_write_buffers()
942 chipnum = instr->addr >> cfi->chipshift; in cfi_staa_erase_varsize()
943 adr = instr->addr - (chipnum << cfi->chipshift); in cfi_staa_erase_varsize()
957 …(adr % (1<< cfi->chipshift) == (((unsigned long)regions[i].offset + (regions[i].erasesize * region… in cfi_staa_erase_varsize()
[all …]
Dcfi_cmdset_0001.c753 partshift = cfi->chipshift - __ffs(numparts); in cfi_intelext_partition_fixup()
776 newcfi->chipshift = partshift; in cfi_intelext_partition_fixup()
797 newcfi->numchips, 1<<(newcfi->chipshift-10)); in cfi_intelext_partition_fixup()
1398 chipnum = (from >> cfi->chipshift); in cfi_intelext_point()
1399 ofs = from - (chipnum << cfi->chipshift); in cfi_intelext_point()
1417 if ((len + ofs -1) >> cfi->chipshift) in cfi_intelext_point()
1418 thislen = (1<<cfi->chipshift) - ofs; in cfi_intelext_point()
1430 last_end += 1 << cfi->chipshift; in cfi_intelext_point()
1446 chipnum = (from >> cfi->chipshift); in cfi_intelext_unpoint()
1447 ofs = from - (chipnum << cfi->chipshift); in cfi_intelext_unpoint()
[all …]
Dcfi_probe.c126 for (i=0; i < (base >> cfi->chipshift); i++) { in cfi_probe_chip()
132 start = i << cfi->chipshift; in cfi_probe_chip()
164 set_bit((base >> cfi->chipshift), chip_map); /* Update chip map */ in cfi_probe_chip()
Dcfi_cmdset_0002.c1246 chipnum = (from >> cfi->chipshift); in cfi_amdstd_read()
1247 ofs = from - (chipnum << cfi->chipshift); in cfi_amdstd_read()
1255 if ((len + ofs -1) >> cfi->chipshift) in cfi_amdstd_read()
1256 thislen = (1<<cfi->chipshift) - ofs; in cfi_amdstd_read()
1827 chipnum = to >> cfi->chipshift; in cfi_amdstd_write_words()
1828 ofs = to - (chipnum << cfi->chipshift); in cfi_amdstd_write_words()
1872 if (ofs >> cfi->chipshift) { in cfi_amdstd_write_words()
1896 if (ofs >> cfi->chipshift) { in cfi_amdstd_write_words()
2107 chipnum = to >> cfi->chipshift; in cfi_amdstd_write_buffers()
2108 ofs = to - (chipnum << cfi->chipshift); in cfi_amdstd_write_buffers()
[all …]
Dcfi_util.c411 chipnum = ofs >> cfi->chipshift; in cfi_varsize_frob()
412 adr = ofs - (chipnum << cfi->chipshift); in cfi_varsize_frob()
431 if (adr >> cfi->chipshift) { in cfi_varsize_frob()
Djedec_probe.c2229 for (i=0; i < (base >> cfi->chipshift); i++) { in jedec_probe_chip()
2234 start = i << cfi->chipshift; in jedec_probe_chip()
2265 set_bit((base >> cfi->chipshift), chip_map); /* Update chip map */ in jedec_probe_chip()
/linux-6.1.9/drivers/mtd/lpddr/
Dlpddr_cmds.c82 chip->start += j << lpddr->chipshift; in lpddr_cmdset()
488 int chipnum = adr >> lpddr->chipshift; in do_erase_oneblock()
516 int chipnum = adr >> lpddr->chipshift; in lpddr_read()
540 int chipnum = adr >> lpddr->chipshift; in lpddr_point()
549 ofs = adr - (chipnum << lpddr->chipshift); in lpddr_point()
564 if ((len + ofs - 1) >> lpddr->chipshift) in lpddr_point()
565 thislen = (1<<lpddr->chipshift) - ofs; in lpddr_point()
581 last_end += 1 << lpddr->chipshift; in lpddr_point()
592 int chipnum = adr >> lpddr->chipshift, err = 0; in lpddr_unpoint()
596 ofs = adr - (chipnum << lpddr->chipshift); in lpddr_unpoint()
[all …]
Dqinfo_probe.c166 lpddr.chipshift = lpddr.qinfo->DevSizeShift; in lpddr_probe_chip()
178 retlpddr->chipshift = retlpddr->qinfo->DevSizeShift - in lpddr_probe_chip()
/linux-6.1.9/include/linux/mtd/
Dqinfo.h26 unsigned long chipshift; member
Ddoc2000.h189 int chipshift; member
Dcfi.h287 unsigned long chipshift; /* Because they're of the same type */ member
/linux-6.1.9/drivers/usb/storage/
Dsddr09.c109 int chipshift; /* 1<<cs bytes total capacity */ member
1169 ", %d MB", 1<<(cardinfo->chipshift - 20)); in sddr09_get_cardinfo()
1600 info->capacity = (1 << cardinfo->chipshift); in sddr09_transport()
Dalauda.c169 unsigned char chipshift; /* 1<<cs bytes total capacity */ member
422 MEDIA_INFO(us).capacity = 1 << media_info->chipshift; in alauda_init_media()