Lines Matching full:cn

924 nvmft_handoff(struct ctl_nvmf *cn)  in nvmft_handoff()  argument
934 handoff = &cn->data.handoff; in nvmft_handoff()
937 cn->status = CTL_NVMF_ERROR; in nvmft_handoff()
938 snprintf(cn->error_str, sizeof(cn->error_str), in nvmft_handoff()
946 cn->status = CTL_NVMF_ERROR; in nvmft_handoff()
947 snprintf(cn->error_str, sizeof(cn->error_str), in nvmft_handoff()
953 cn->status = CTL_NVMF_ERROR; in nvmft_handoff()
954 snprintf(cn->error_str, sizeof(cn->error_str), in nvmft_handoff()
963 cn->status = CTL_NVMF_ERROR; in nvmft_handoff()
964 snprintf(cn->error_str, sizeof(cn->error_str), in nvmft_handoff()
970 cn->status = CTL_NVMF_ERROR; in nvmft_handoff()
971 snprintf(cn->error_str, sizeof(cn->error_str), in nvmft_handoff()
982 cn->status = CTL_NVMF_ERROR; in nvmft_handoff()
983 snprintf(cn->error_str, sizeof(cn->error_str), in nvmft_handoff()
990 cn->status = CTL_NVMF_ERROR; in nvmft_handoff()
991 snprintf(cn->error_str, sizeof(cn->error_str), in nvmft_handoff()
997 cn->status = CTL_NVMF_OK; in nvmft_handoff()
1005 nvmft_list(struct ctl_nvmf *cn) in nvmft_list() argument
1013 lp = &cn->data.list; in nvmft_list()
1018 cn->status = CTL_NVMF_ERROR; in nvmft_list()
1019 snprintf(cn->error_str, sizeof(cn->error_str), in nvmft_list()
1045 cn->status = CTL_NVMF_LIST_NEED_MORE_SPACE; in nvmft_list()
1046 snprintf(cn->error_str, sizeof(cn->error_str), in nvmft_list()
1054 cn->status = CTL_NVMF_ERROR; in nvmft_list()
1055 snprintf(cn->error_str, sizeof(cn->error_str), in nvmft_list()
1060 cn->status = CTL_NVMF_OK; in nvmft_list()
1065 nvmft_terminate(struct ctl_nvmf *cn) in nvmft_terminate() argument
1072 tp = &cn->data.terminate; in nvmft_terminate()
1100 cn->status = CTL_NVMF_ASSOCIATION_NOT_FOUND; in nvmft_terminate()
1101 snprintf(cn->error_str, sizeof(cn->error_str), in nvmft_terminate()
1105 cn->status = CTL_NVMF_OK; in nvmft_terminate()
1112 struct ctl_nvmf *cn; in nvmft_ioctl() local
1133 cn = (struct ctl_nvmf *)data; in nvmft_ioctl()
1134 switch (cn->type) { in nvmft_ioctl()
1136 nvmft_handoff(cn); in nvmft_ioctl()
1139 nvmft_list(cn); in nvmft_ioctl()
1142 nvmft_terminate(cn); in nvmft_ioctl()
1145 cn->status = CTL_NVMF_ERROR; in nvmft_ioctl()
1146 snprintf(cn->error_str, sizeof(cn->error_str), in nvmft_ioctl()
1147 "Invalid NVMeoF request type %d", cn->type); in nvmft_ioctl()