Lines Matching refs:rcb
58 ioarcb = &(cmd->rcb); in process_cmd_err()
328 __func__, cmd->rcb.cdb[0], room); in send_cmd_ioarrin()
337 writeq_be((u64)&cmd->rcb, &hwq->host_map->ioarrin); in send_cmd_ioarrin()
341 __func__, cmd, cmd->rcb.data_len, cmd->rcb.data_ea, rc); in send_cmd_ioarrin()
368 cmd->rcb.ioasa = &cmd->sa; in send_cmd_sq()
372 *hwq->hsq_curr = cmd->rcb; in send_cmd_sq()
384 "head=%016llx tail=%016llx\n", __func__, cmd, cmd->rcb.data_len, in send_cmd_sq()
385 cmd->rcb.data_ea, cmd->rcb.ioasa, rc, hwq->hsq_curr, in send_cmd_sq()
403 ulong timeout = msecs_to_jiffies(cmd->rcb.timeout * 2 * 1000); in wait_resp()
414 __func__, cmd->rcb.cdb[0], cmd->sa.ioasc); in wait_resp()
503 cmd->rcb.ctx_id = hwq->ctx_hndl; in send_tmf()
504 cmd->rcb.msi = SISL_MSI_RRQ_UPDATED; in send_tmf()
505 cmd->rcb.port_sel = CHAN2PORTMASK(sdev->channel); in send_tmf()
506 cmd->rcb.lun_id = lun_to_lunid(sdev->lun); in send_tmf()
507 cmd->rcb.req_flags = (SISL_REQ_FLAGS_PORT_LUN_ID | in send_tmf()
510 memcpy(cmd->rcb.cdb, &tmfcmd, sizeof(tmfcmd)); in send_tmf()
622 cmd->rcb.data_len = sg->length; in cxlflash_queuecommand()
623 cmd->rcb.data_ea = (uintptr_t)sg_virt(sg); in cxlflash_queuecommand()
631 cmd->rcb.ctx_id = hwq->ctx_hndl; in cxlflash_queuecommand()
632 cmd->rcb.msi = SISL_MSI_RRQ_UPDATED; in cxlflash_queuecommand()
633 cmd->rcb.port_sel = CHAN2PORTMASK(scp->device->channel); in cxlflash_queuecommand()
634 cmd->rcb.lun_id = lun_to_lunid(scp->device->lun); in cxlflash_queuecommand()
639 cmd->rcb.req_flags = req_flags; in cxlflash_queuecommand()
640 memcpy(cmd->rcb.cdb, scp->cmnd, sizeof(cmd->rcb.cdb)); in cxlflash_queuecommand()
1397 cmd = container_of(ioarcb, struct afu_cmd, rcb); in process_hrrq()
2301 static int send_afu_cmd(struct afu *afu, struct sisl_ioarcb *rcb) in send_afu_cmd() argument
2331 memcpy(&cmd->rcb, rcb, sizeof(*rcb)); in send_afu_cmd()
2336 cmd->rcb.ctx_id = hwq->ctx_hndl; in send_afu_cmd()
2339 __func__, afu, cmd, cmd->rcb.cdb[0], nretry); in send_afu_cmd()
2369 if (rcb->ioasa) in send_afu_cmd()
2370 *rcb->ioasa = cmd->sa; in send_afu_cmd()
2399 struct sisl_ioarcb rcb = { 0 }; in cxlflash_afu_sync() local
2404 rcb.req_flags = SISL_REQ_FLAGS_AFU_CMD; in cxlflash_afu_sync()
2405 rcb.msi = SISL_MSI_RRQ_UPDATED; in cxlflash_afu_sync()
2406 rcb.timeout = MC_AFU_SYNC_TIMEOUT; in cxlflash_afu_sync()
2408 rcb.cdb[0] = SISL_AFU_CMD_SYNC; in cxlflash_afu_sync()
2409 rcb.cdb[1] = mode; in cxlflash_afu_sync()
2410 put_unaligned_be16(ctx, &rcb.cdb[2]); in cxlflash_afu_sync()
2411 put_unaligned_be32(res, &rcb.cdb[4]); in cxlflash_afu_sync()
2413 return send_afu_cmd(afu, &rcb); in cxlflash_afu_sync()
3314 struct sisl_ioarcb rcb; in cxlflash_lun_provision() local
3364 memset(&rcb, 0, sizeof(rcb)); in cxlflash_lun_provision()
3366 rcb.req_flags = SISL_REQ_FLAGS_AFU_CMD; in cxlflash_lun_provision()
3367 rcb.lun_id = lun_id; in cxlflash_lun_provision()
3368 rcb.msi = SISL_MSI_RRQ_UPDATED; in cxlflash_lun_provision()
3369 rcb.timeout = MC_LUN_PROV_TIMEOUT; in cxlflash_lun_provision()
3370 rcb.ioasa = &asa; in cxlflash_lun_provision()
3372 rcb.cdb[0] = SISL_AFU_CMD_LUN_PROVISION; in cxlflash_lun_provision()
3373 rcb.cdb[1] = type; in cxlflash_lun_provision()
3374 rcb.cdb[2] = port; in cxlflash_lun_provision()
3375 put_unaligned_be64(size, &rcb.cdb[8]); in cxlflash_lun_provision()
3377 rc = send_afu_cmd(afu, &rcb); in cxlflash_lun_provision()
3408 struct sisl_ioarcb rcb; in cxlflash_afu_debug() local
3449 memset(&rcb, 0, sizeof(rcb)); in cxlflash_afu_debug()
3452 rcb.req_flags = req_flags; in cxlflash_afu_debug()
3453 rcb.msi = SISL_MSI_RRQ_UPDATED; in cxlflash_afu_debug()
3454 rcb.timeout = MC_AFU_DEBUG_TIMEOUT; in cxlflash_afu_debug()
3455 rcb.ioasa = &asa; in cxlflash_afu_debug()
3458 rcb.data_len = ulen; in cxlflash_afu_debug()
3459 rcb.data_ea = (uintptr_t)kbuf; in cxlflash_afu_debug()
3462 rcb.cdb[0] = SISL_AFU_CMD_DEBUG; in cxlflash_afu_debug()
3463 memcpy(&rcb.cdb[4], afu_dbg->afu_subcmd, in cxlflash_afu_debug()
3466 rc = send_afu_cmd(afu, &rcb); in cxlflash_afu_debug()