Lines Matching defs:bs
566 struct sim_block_state bs;
595 bs.ctrl_num = ctl;
596 bs.chip_num = chip;
610 bs.ctrl_num = ctl;
611 bs.chip_num = chip;
624 bs.block_num = badblocks[idx];
626 bs.wearout = -1;
627 bs.state = (flagU == 0) ? NANDSIM_BAD_BLOCK :
630 err = ioctl(fd, NANDSIM_SET_BLOCK_STATE, &bs);
643 bs.block_num = blkidx;
645 bs.wearout = -1;
646 err = ioctl(fd, NANDSIM_GET_BLOCK_STATE, &bs);
653 bs.wearout,
654 (bs.state == NANDSIM_BAD_BLOCK) ? "BAD":"GOOD");
807 struct sim_block_state bs;
863 bs.ctrl_num = ctl;
864 bs.chip_num = chip;
880 bs.block_num = blkidx;
881 err = ioctl(fd, NANDSIM_GET_BLOCK_STATE, &bs);
891 bwritten = write(dumpfd, &bs, sizeof(bs));
892 if (bwritten != sizeof(bs)) {
935 struct sim_block_state bs;
978 expfilesz = cparams.blocks * (blksz + sizeof(bs)) + sizeof(cparams);
1022 if (read(dumpfd, &bs, sizeof(bs)) != sizeof(bs)) {
1029 bs.ctrl_num = ctl;
1030 bs.chip_num = chip;
1034 bs.state, bs.wearout, bs.ctrl_num, bs.chip_num);
1036 err = ioctl(fd, NANDSIM_SET_BLOCK_STATE, &bs);