Lines Matching refs:cond
143 zone->cond = BLK_ZONE_COND_NOT_WP; in null_init_zoned_dev()
160 zone->cond = BLK_ZONE_COND_EMPTY; in null_init_zoned_dev()
225 blkz.cond = zone->cond; in null_report_zones()
262 switch (zone->cond) { in __null_close_zone()
279 zone->cond = BLK_ZONE_COND_EMPTY; in __null_close_zone()
281 zone->cond = BLK_ZONE_COND_CLOSED; in __null_close_zone()
303 if (zone->cond == BLK_ZONE_COND_IMP_OPEN) { in null_close_imp_open_zone()
359 switch (zone->cond) { in null_check_zone_resources()
382 trace_nullb_zone_op(cmd, zno, zone->cond); in null_zone_write()
392 if (zone->cond == BLK_ZONE_COND_FULL || in null_zone_write()
393 zone->cond == BLK_ZONE_COND_READONLY || in null_zone_write()
394 zone->cond == BLK_ZONE_COND_OFFLINE) { in null_zone_write()
422 if (zone->cond == BLK_ZONE_COND_CLOSED || in null_zone_write()
423 zone->cond == BLK_ZONE_COND_EMPTY) { in null_zone_write()
431 if (zone->cond == BLK_ZONE_COND_CLOSED) { in null_zone_write()
434 } else if (zone->cond == BLK_ZONE_COND_EMPTY) { in null_zone_write()
438 if (zone->cond != BLK_ZONE_COND_EXP_OPEN) in null_zone_write()
439 zone->cond = BLK_ZONE_COND_IMP_OPEN; in null_zone_write()
451 if (zone->cond == BLK_ZONE_COND_EXP_OPEN) in null_zone_write()
453 else if (zone->cond == BLK_ZONE_COND_IMP_OPEN) in null_zone_write()
455 zone->cond = BLK_ZONE_COND_FULL; in null_zone_write()
477 switch (zone->cond) { in null_open_zone()
501 zone->cond = BLK_ZONE_COND_EXP_OPEN; in null_open_zone()
535 switch (zone->cond) { in null_finish_zone()
561 zone->cond = BLK_ZONE_COND_FULL; in null_finish_zone()
578 switch (zone->cond) { in null_reset_zone()
599 zone->cond = BLK_ZONE_COND_EMPTY; in null_reset_zone()
623 if (zone->cond != BLK_ZONE_COND_EMPTY && in null_zone_mgmt()
624 zone->cond != BLK_ZONE_COND_READONLY && in null_zone_mgmt()
625 zone->cond != BLK_ZONE_COND_OFFLINE) { in null_zone_mgmt()
627 trace_nullb_zone_op(cmd, i, zone->cond); in null_zone_mgmt()
639 if (zone->cond == BLK_ZONE_COND_READONLY || in null_zone_mgmt()
640 zone->cond == BLK_ZONE_COND_OFFLINE) { in null_zone_mgmt()
664 trace_nullb_zone_op(cmd, zone_no, zone->cond); in null_zone_mgmt()
693 if (zone->cond == BLK_ZONE_COND_OFFLINE) in null_process_zoned_cmd()
707 struct nullb_zone *zone, enum blk_zone_cond cond) in null_set_zone_cond() argument
709 if (WARN_ON_ONCE(cond != BLK_ZONE_COND_READONLY && in null_set_zone_cond()
710 cond != BLK_ZONE_COND_OFFLINE)) in null_set_zone_cond()
722 if (zone->cond == cond) { in null_set_zone_cond()
723 zone->cond = BLK_ZONE_COND_EMPTY; in null_set_zone_cond()
728 if (zone->cond != BLK_ZONE_COND_READONLY && in null_set_zone_cond()
729 zone->cond != BLK_ZONE_COND_OFFLINE) in null_set_zone_cond()
731 zone->cond = cond; in null_set_zone_cond()
743 size_t count, enum blk_zone_cond cond) in zone_cond_store() argument
774 null_set_zone_cond(dev, &dev->zones[zone_no], cond); in zone_cond_store()