Lines Matching defs:al
353 static int nvmet_auth_challenge(struct nvmet_req *req, void *d, int al)
363 if (al < data_size) {
364 pr_debug("%s: buffer too small (al %d need %d)\n", __func__,
365 al, data_size);
393 static int nvmet_auth_success1(struct nvmet_req *req, void *d, int al)
399 WARN_ON(al < sizeof(*data));
420 static void nvmet_auth_failure1(struct nvmet_req *req, void *d, int al)
424 WARN_ON(al < sizeof(*data));
436 u32 al;
457 al = le32_to_cpu(req->cmd->auth_receive.al);
458 if (!al) {
461 offsetof(struct nvmf_auth_receive_command, al);
464 if (!nvmet_check_transfer_len(req, al)) {
465 pr_debug("%s: transfer length mismatch (%u)\n", __func__, al);
469 d = kmalloc(al, GFP_KERNEL);
478 if (nvmet_auth_challenge(req, d, al) < 0) {
487 status = nvmet_auth_success1(req, d, al);
491 nvmet_auth_failure1(req, d, al);
501 nvmet_auth_failure1(req, d, al);
510 nvmet_auth_failure1(req, d, al);
515 status = nvmet_copy_to_sgl(req, 0, d, al);