Lines Matching refs:pt

236 	struct nvme_pt_command	pt;  in resvacquire()  local
253 memset(&pt, 0, sizeof(pt)); in resvacquire()
254 pt.cmd.opc = NVME_OPC_RESERVATION_ACQUIRE; in resvacquire()
255 pt.cmd.nsid = htole32(nsid); in resvacquire()
256 pt.cmd.cdw10 = htole32((acquire_opt.racqa & 7) | in resvacquire()
258 pt.buf = &data; in resvacquire()
259 pt.len = sizeof(data); in resvacquire()
260 pt.is_read = 0; in resvacquire()
262 if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0) in resvacquire()
265 if (nvme_completion_is_error(&pt.cpl)) in resvacquire()
275 struct nvme_pt_command pt; in resvregister() local
292 memset(&pt, 0, sizeof(pt)); in resvregister()
293 pt.cmd.opc = NVME_OPC_RESERVATION_REGISTER; in resvregister()
294 pt.cmd.nsid = htole32(nsid); in resvregister()
295 pt.cmd.cdw10 = htole32((register_opt.rrega & 7) | in resvregister()
297 pt.buf = &data; in resvregister()
298 pt.len = sizeof(data); in resvregister()
299 pt.is_read = 0; in resvregister()
301 if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0) in resvregister()
304 if (nvme_completion_is_error(&pt.cpl)) in resvregister()
314 struct nvme_pt_command pt; in resvrelease() local
330 memset(&pt, 0, sizeof(pt)); in resvrelease()
331 pt.cmd.opc = NVME_OPC_RESERVATION_RELEASE; in resvrelease()
332 pt.cmd.nsid = htole32(nsid); in resvrelease()
333 pt.cmd.cdw10 = htole32((release_opt.rrela & 7) | in resvrelease()
335 pt.buf = &data; in resvrelease()
336 pt.len = sizeof(data); in resvrelease()
337 pt.is_read = 0; in resvrelease()
339 if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0) in resvrelease()
342 if (nvme_completion_is_error(&pt.cpl)) in resvrelease()
352 struct nvme_pt_command pt; in resvreport() local
370 memset(&pt, 0, sizeof(pt)); in resvreport()
371 pt.cmd.opc = NVME_OPC_RESERVATION_REPORT; in resvreport()
372 pt.cmd.nsid = htole32(nsid); in resvreport()
373 pt.cmd.cdw10 = htole32(sizeof(data) / 4 - 1); in resvreport()
374 pt.cmd.cdw11 = htole32(report_opt.eds); /* EDS */ in resvreport()
375 pt.buf = &data; in resvreport()
376 pt.len = sizeof(data); in resvreport()
377 pt.is_read = 1; in resvreport()
379 if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0) in resvreport()
382 if (nvme_completion_is_error(&pt.cpl)) in resvreport()