• Home
  • Raw
  • Download

Lines Matching refs:chipnum

1014 	int chipnum;  in cfi_amdstd_read()  local
1018 chipnum = (from >> cfi->chipshift); in cfi_amdstd_read()
1019 ofs = from - (chipnum << cfi->chipshift); in cfi_amdstd_read()
1024 if (chipnum >= cfi->numchips) in cfi_amdstd_read()
1032 ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf); in cfi_amdstd_read()
1041 chipnum++; in cfi_amdstd_read()
1095 int chipnum; in cfi_amdstd_secsi_read() local
1100 chipnum=from>>3; in cfi_amdstd_secsi_read()
1106 if (chipnum >= cfi->numchips) in cfi_amdstd_secsi_read()
1114 ret = do_read_secsi_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf); in cfi_amdstd_secsi_read()
1123 chipnum++; in cfi_amdstd_secsi_read()
1244 int chipnum; in cfi_amdstd_write_words() local
1248 chipnum = to >> cfi->chipshift; in cfi_amdstd_write_words()
1249 ofs = to - (chipnum << cfi->chipshift); in cfi_amdstd_write_words()
1250 chipstart = cfi->chips[chipnum].start; in cfi_amdstd_write_words()
1260 mutex_lock(&cfi->chips[chipnum].mutex); in cfi_amdstd_write_words()
1262 if (cfi->chips[chipnum].state != FL_READY) { in cfi_amdstd_write_words()
1264 add_wait_queue(&cfi->chips[chipnum].wq, &wait); in cfi_amdstd_write_words()
1266 mutex_unlock(&cfi->chips[chipnum].mutex); in cfi_amdstd_write_words()
1269 remove_wait_queue(&cfi->chips[chipnum].wq, &wait); in cfi_amdstd_write_words()
1276 mutex_unlock(&cfi->chips[chipnum].mutex); in cfi_amdstd_write_words()
1283 ret = do_write_oneword(map, &cfi->chips[chipnum], in cfi_amdstd_write_words()
1294 chipnum ++; in cfi_amdstd_write_words()
1296 if (chipnum == cfi->numchips) in cfi_amdstd_write_words()
1307 ret = do_write_oneword(map, &cfi->chips[chipnum], in cfi_amdstd_write_words()
1318 chipnum ++; in cfi_amdstd_write_words()
1320 if (chipnum == cfi->numchips) in cfi_amdstd_write_words()
1322 chipstart = cfi->chips[chipnum].start; in cfi_amdstd_write_words()
1331 mutex_lock(&cfi->chips[chipnum].mutex); in cfi_amdstd_write_words()
1333 if (cfi->chips[chipnum].state != FL_READY) { in cfi_amdstd_write_words()
1335 add_wait_queue(&cfi->chips[chipnum].wq, &wait); in cfi_amdstd_write_words()
1337 mutex_unlock(&cfi->chips[chipnum].mutex); in cfi_amdstd_write_words()
1340 remove_wait_queue(&cfi->chips[chipnum].wq, &wait); in cfi_amdstd_write_words()
1346 mutex_unlock(&cfi->chips[chipnum].mutex); in cfi_amdstd_write_words()
1350 ret = do_write_oneword(map, &cfi->chips[chipnum], in cfi_amdstd_write_words()
1484 int chipnum; in cfi_amdstd_write_buffers() local
1487 chipnum = to >> cfi->chipshift; in cfi_amdstd_write_buffers()
1488 ofs = to - (chipnum << cfi->chipshift); in cfi_amdstd_write_buffers()
1495 ret = cfi_amdstd_write_words(mtd, ofs + (chipnum<<cfi->chipshift), in cfi_amdstd_write_buffers()
1504 chipnum ++; in cfi_amdstd_write_buffers()
1506 if (chipnum == cfi->numchips) in cfi_amdstd_write_buffers()
1521 ret = do_write_buffer(map, &cfi->chips[chipnum], in cfi_amdstd_write_buffers()
1532 chipnum ++; in cfi_amdstd_write_buffers()
1534 if (chipnum == cfi->numchips) in cfi_amdstd_write_buffers()
1542 ret = cfi_amdstd_write_words(mtd, ofs + (chipnum<<cfi->chipshift), in cfi_amdstd_write_buffers()
1692 int chipnum; in cfi_amdstd_panic_write() local
1694 chipnum = to >> cfi->chipshift; in cfi_amdstd_panic_write()
1695 ofs = to - (chipnum << cfi->chipshift); in cfi_amdstd_panic_write()
1696 chipstart = cfi->chips[chipnum].start; in cfi_amdstd_panic_write()
1705 ret = cfi_amdstd_panic_wait(map, &cfi->chips[chipnum], bus_ofs); in cfi_amdstd_panic_write()
1717 ret = do_panic_write_oneword(map, &cfi->chips[chipnum], in cfi_amdstd_panic_write()
1728 chipnum++; in cfi_amdstd_panic_write()
1730 if (chipnum == cfi->numchips) in cfi_amdstd_panic_write()
1741 ret = do_panic_write_oneword(map, &cfi->chips[chipnum], in cfi_amdstd_panic_write()
1752 chipnum++; in cfi_amdstd_panic_write()
1754 if (chipnum == cfi->numchips) in cfi_amdstd_panic_write()
1757 chipstart = cfi->chips[chipnum].start; in cfi_amdstd_panic_write()
1765 ret = cfi_amdstd_panic_wait(map, &cfi->chips[chipnum], ofs); in cfi_amdstd_panic_write()
1773 ret = do_panic_write_oneword(map, &cfi->chips[chipnum], in cfi_amdstd_panic_write()