Lines Matching refs:chipnum
1385 int chipnum; in cfi_intelext_point() local
1394 chipnum = (from >> cfi->chipshift); in cfi_intelext_point()
1395 ofs = from - (chipnum << cfi->chipshift); in cfi_intelext_point()
1397 *virt = map->virt + cfi->chips[chipnum].start + ofs; in cfi_intelext_point()
1399 *phys = map->phys + cfi->chips[chipnum].start + ofs; in cfi_intelext_point()
1404 if (chipnum >= cfi->numchips) in cfi_intelext_point()
1409 last_end = cfi->chips[chipnum].start; in cfi_intelext_point()
1410 else if (cfi->chips[chipnum].start != last_end) in cfi_intelext_point()
1418 ret = do_point_onechip(map, &cfi->chips[chipnum], ofs, thislen); in cfi_intelext_point()
1427 chipnum++; in cfi_intelext_point()
1437 int chipnum, err = 0; in cfi_intelext_unpoint() local
1442 chipnum = (from >> cfi->chipshift); in cfi_intelext_unpoint()
1443 ofs = from - (chipnum << cfi->chipshift); in cfi_intelext_unpoint()
1449 chip = &cfi->chips[chipnum]; in cfi_intelext_unpoint()
1450 if (chipnum >= cfi->numchips) in cfi_intelext_unpoint()
1473 chipnum++; in cfi_intelext_unpoint()
1516 int chipnum; in cfi_intelext_read() local
1520 chipnum = (from >> cfi->chipshift); in cfi_intelext_read()
1521 ofs = from - (chipnum << cfi->chipshift); in cfi_intelext_read()
1526 if (chipnum >= cfi->numchips) in cfi_intelext_read()
1534 ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf); in cfi_intelext_read()
1543 chipnum++; in cfi_intelext_read()
1628 int chipnum; in cfi_intelext_write_words() local
1631 chipnum = to >> cfi->chipshift; in cfi_intelext_write_words()
1632 ofs = to - (chipnum << cfi->chipshift); in cfi_intelext_write_words()
1645 ret = do_write_oneword(map, &cfi->chips[chipnum], in cfi_intelext_write_words()
1656 chipnum ++; in cfi_intelext_write_words()
1658 if (chipnum == cfi->numchips) in cfi_intelext_write_words()
1666 ret = do_write_oneword(map, &cfi->chips[chipnum], in cfi_intelext_write_words()
1677 chipnum ++; in cfi_intelext_write_words()
1679 if (chipnum == cfi->numchips) in cfi_intelext_write_words()
1690 ret = do_write_oneword(map, &cfi->chips[chipnum], in cfi_intelext_write_words()
1875 int chipnum; in cfi_intelext_writev() local
1885 chipnum = to >> cfi->chipshift; in cfi_intelext_writev()
1886 ofs = to - (chipnum << cfi->chipshift); in cfi_intelext_writev()
1895 ret = do_write_buffer(map, &cfi->chips[chipnum], in cfi_intelext_writev()
1905 chipnum ++; in cfi_intelext_writev()
1907 if (chipnum == cfi->numchips) in cfi_intelext_writev()