Lines Matching full:ns

24 	struct nvme_namespace *ns = CONTAINER_OF(disk->name,  in nvme_disk_read()  local
39 payload_size = num_sector * nvme_namespace_get_sector_size(ns); in nvme_disk_read()
48 nvme_namespace_read_cmd(&request->cmd, ns->id, in nvme_disk_read()
54 nvme_cmd_qpair_submit_request(ns->ctrlr->ioq, request); in nvme_disk_read()
59 start_sector, num_sector, ns->name); in nvme_disk_read()
73 struct nvme_namespace *ns = CONTAINER_OF(disk->name, in nvme_disk_write() local
88 payload_size = num_sector * nvme_namespace_get_sector_size(ns); in nvme_disk_write()
97 nvme_namespace_write_cmd(&request->cmd, ns->id, in nvme_disk_write()
103 nvme_cmd_qpair_submit_request(ns->ctrlr->ioq, request); in nvme_disk_write()
108 start_sector, num_sector, ns->name); in nvme_disk_write()
117 static int nvme_disk_flush(struct nvme_namespace *ns) in nvme_disk_flush() argument
128 nvme_namespace_flush_cmd(&request->cmd, ns->id); in nvme_disk_flush()
133 nvme_cmd_qpair_submit_request(ns->ctrlr->ioq, request); in nvme_disk_flush()
137 LOG_ERR("Flushing disk %s failed", ns->name); in nvme_disk_flush()
147 struct nvme_namespace *ns = CONTAINER_OF(disk->name, in nvme_disk_ioctl() local
160 *(uint32_t *)buff = nvme_namespace_get_num_sectors(ns); in nvme_disk_ioctl()
169 *(uint32_t *)buff = nvme_namespace_get_sector_size(ns); in nvme_disk_ioctl()
178 *(uint32_t *)buff = nvme_namespace_get_sector_size(ns); in nvme_disk_ioctl()
183 ret = nvme_disk_flush(ns); in nvme_disk_ioctl()
209 int nvme_namespace_disk_setup(struct nvme_namespace *ns, in nvme_namespace_disk_setup() argument
212 disk->name = ns->name; in nvme_namespace_disk_setup()
214 disk->dev = ns->ctrlr->dev; in nvme_namespace_disk_setup()