Lines Matching defs:rtype

2634 	enum spdk_nvme_reservation_type		rtype;
2667 {"rtype", offsetof(struct _nvmf_ns_reservation, rtype), spdk_json_decode_uint32, true},
2734 info->rtype = res.rtype;
2792 ns->rtype = info->rtype;
2797 if (info->rtype) {
2799 info->holder_uuid, info->rtype, info->crkey);
2864 spdk_json_write_named_uint32(w, "rtype", info->rtype);
2900 if (ns->rtype) {
2901 info.rtype = ns->rtype;
3021 return (ns->rtype == SPDK_NVME_RESERVE_WRITE_EXCLUSIVE_ALL_REGS ||
3022 ns->rtype == SPDK_NVME_RESERVE_EXCLUSIVE_ACCESS_ALL_REGS);
3065 ns->rtype = 0;
3079 assert(ns->rtype == 0);
3151 enum spdk_nvme_reservation_type rtype,
3154 ns->rtype = rtype;
3167 uint8_t rrega, iekey, cptpl, rtype;
3246 rtype = ns->rtype;
3253 if (!ns->rtype && num_hostid && (rtype == SPDK_NVME_RESERVE_WRITE_EXCLUSIVE_REG_ONLY ||
3254 rtype == SPDK_NVME_RESERVE_EXCLUSIVE_ACCESS_REG_ONLY)) {
3313 uint8_t racqa, iekey, rtype;
3327 rtype = cmd->cdw10_bits.resv_acquire.rtype;
3341 racqa, iekey, rtype, key.crkey, key.prkey);
3343 if (iekey || rtype > SPDK_NVME_RESERVE_EXCLUSIVE_ACCESS_ALL_REGS) {
3365 if (nvmf_ns_reservation_registrant_is_holder(ns, reg) && ns->rtype == rtype) {
3370 nvmf_ns_reservation_acquire_reservation(ns, key.crkey, rtype, reg);
3372 SPDK_ERRLOG("Invalid rtype or current registrant is not holder\n");
3394 ns->rtype = rtype;
3401 nvmf_ns_reservation_acquire_reservation(ns, key.crkey, rtype, reg);
3476 uint8_t rrela, iekey, rtype;
3486 rtype = cmd->cdw10_bits.resv_release.rtype;
3499 "CRKEY 0x%"PRIx64"\n", rrela, iekey, rtype, crkey);
3528 if (ns->rtype != rtype) {
3540 rtype = ns->rtype;
3543 if (num_hostid && rtype != SPDK_NVME_RESERVE_WRITE_EXCLUSIVE &&
3544 rtype != SPDK_NVME_RESERVE_EXCLUSIVE_ACCESS) {
3610 status_data.data.rtype = ns->rtype;