Lines Matching refs:chipnum

389 	int chipnum;  in cfi_staa_read()  local
393 chipnum = (from >> cfi->chipshift); in cfi_staa_read()
394 ofs = from - (chipnum << cfi->chipshift); in cfi_staa_read()
399 if (chipnum >= cfi->numchips) in cfi_staa_read()
407 ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf); in cfi_staa_read()
416 chipnum++; in cfi_staa_read()
615 int chipnum; in cfi_staa_write_buffers() local
618 chipnum = to >> cfi->chipshift; in cfi_staa_write_buffers()
619 ofs = to - (chipnum << cfi->chipshift); in cfi_staa_write_buffers()
623 printk("%s: chipnum[%x] wbufsize[%x]\n", __func__, chipnum, wbufsize); in cfi_staa_write_buffers()
635 ret = do_write_buffer(map, &cfi->chips[chipnum], in cfi_staa_write_buffers()
646 chipnum ++; in cfi_staa_write_buffers()
648 if (chipnum == cfi->numchips) in cfi_staa_write_buffers()
898 int chipnum, ret = 0; in cfi_staa_erase_varsize() local
945 chipnum = instr->addr >> cfi->chipshift; in cfi_staa_erase_varsize()
946 adr = instr->addr - (chipnum << cfi->chipshift); in cfi_staa_erase_varsize()
952 ret = do_erase_oneblock(map, &cfi->chips[chipnum], adr); in cfi_staa_erase_varsize()
965 chipnum++; in cfi_staa_erase_varsize()
967 if (chipnum >= cfi->numchips) in cfi_staa_erase_varsize()
1135 int chipnum, ret = 0; in cfi_staa_lock() local
1146 chipnum = ofs >> cfi->chipshift; in cfi_staa_lock()
1147 adr = ofs - (chipnum << cfi->chipshift); in cfi_staa_lock()
1157 ret = do_lock_oneblock(map, &cfi->chips[chipnum], adr); in cfi_staa_lock()
1173 chipnum++; in cfi_staa_lock()
1175 if (chipnum >= cfi->numchips) in cfi_staa_lock()
1282 int chipnum, ret = 0; in cfi_staa_unlock() local
1287 chipnum = ofs >> cfi->chipshift; in cfi_staa_unlock()
1288 adr = ofs - (chipnum << cfi->chipshift); in cfi_staa_unlock()
1305 ret = do_unlock_oneblock(map, &cfi->chips[chipnum], adr); in cfi_staa_unlock()