Home
last modified time | relevance | path

Searched refs:zdesc (Results 1 – 1 of 1) sorted by relevance

/linux-6.1.9/drivers/nvme/target/
Dzns.c230 struct nvme_zone_descriptor zdesc = { }; in nvmet_bdev_report_zone_cb() local
233 zdesc.zcap = nvmet_sect_to_lba(rz->req->ns, z->capacity); in nvmet_bdev_report_zone_cb()
234 zdesc.zslba = nvmet_sect_to_lba(rz->req->ns, z->start); in nvmet_bdev_report_zone_cb()
235 zdesc.wp = nvmet_sect_to_lba(rz->req->ns, z->wp); in nvmet_bdev_report_zone_cb()
236 zdesc.za = z->reset ? 1 << 2 : 0; in nvmet_bdev_report_zone_cb()
237 zdesc.zs = z->cond << 4; in nvmet_bdev_report_zone_cb()
238 zdesc.zt = z->type; in nvmet_bdev_report_zone_cb()
240 status = nvmet_copy_to_sgl(rz->req, rz->out_buf_offset, &zdesc, in nvmet_bdev_report_zone_cb()
241 sizeof(zdesc)); in nvmet_bdev_report_zone_cb()
245 rz->out_buf_offset += sizeof(zdesc); in nvmet_bdev_report_zone_cb()