Lines Matching refs:rcb
54 ioarcb = &(cmd->rcb); in process_cmd_err()
324 __func__, cmd->rcb.cdb[0], room); in send_cmd_ioarrin()
333 writeq_be((u64)&cmd->rcb, &hwq->host_map->ioarrin); in send_cmd_ioarrin()
337 __func__, cmd, cmd->rcb.data_len, cmd->rcb.data_ea, rc); in send_cmd_ioarrin()
364 cmd->rcb.ioasa = &cmd->sa; in send_cmd_sq()
368 *hwq->hsq_curr = cmd->rcb; in send_cmd_sq()
380 "head=%016llx tail=%016llx\n", __func__, cmd, cmd->rcb.data_len, in send_cmd_sq()
381 cmd->rcb.data_ea, cmd->rcb.ioasa, rc, hwq->hsq_curr, in send_cmd_sq()
399 ulong timeout = msecs_to_jiffies(cmd->rcb.timeout * 2 * 1000); in wait_resp()
410 __func__, cmd->rcb.cdb[0], cmd->sa.ioasc); in wait_resp()
499 cmd->rcb.ctx_id = hwq->ctx_hndl; in send_tmf()
500 cmd->rcb.msi = SISL_MSI_RRQ_UPDATED; in send_tmf()
501 cmd->rcb.port_sel = CHAN2PORTMASK(sdev->channel); in send_tmf()
502 cmd->rcb.lun_id = lun_to_lunid(sdev->lun); in send_tmf()
503 cmd->rcb.req_flags = (SISL_REQ_FLAGS_PORT_LUN_ID | in send_tmf()
506 memcpy(cmd->rcb.cdb, &tmfcmd, sizeof(tmfcmd)); in send_tmf()
618 cmd->rcb.data_len = sg->length; in cxlflash_queuecommand()
619 cmd->rcb.data_ea = (uintptr_t)sg_virt(sg); in cxlflash_queuecommand()
627 cmd->rcb.ctx_id = hwq->ctx_hndl; in cxlflash_queuecommand()
628 cmd->rcb.msi = SISL_MSI_RRQ_UPDATED; in cxlflash_queuecommand()
629 cmd->rcb.port_sel = CHAN2PORTMASK(scp->device->channel); in cxlflash_queuecommand()
630 cmd->rcb.lun_id = lun_to_lunid(scp->device->lun); in cxlflash_queuecommand()
635 cmd->rcb.req_flags = req_flags; in cxlflash_queuecommand()
636 memcpy(cmd->rcb.cdb, scp->cmnd, sizeof(cmd->rcb.cdb)); in cxlflash_queuecommand()
1400 cmd = container_of(ioarcb, struct afu_cmd, rcb); in process_hrrq()
2304 static int send_afu_cmd(struct afu *afu, struct sisl_ioarcb *rcb) in send_afu_cmd() argument
2334 memcpy(&cmd->rcb, rcb, sizeof(*rcb)); in send_afu_cmd()
2339 cmd->rcb.ctx_id = hwq->ctx_hndl; in send_afu_cmd()
2342 __func__, afu, cmd, cmd->rcb.cdb[0], nretry); in send_afu_cmd()
2372 if (rcb->ioasa) in send_afu_cmd()
2373 *rcb->ioasa = cmd->sa; in send_afu_cmd()
2402 struct sisl_ioarcb rcb = { 0 }; in cxlflash_afu_sync() local
2407 rcb.req_flags = SISL_REQ_FLAGS_AFU_CMD; in cxlflash_afu_sync()
2408 rcb.msi = SISL_MSI_RRQ_UPDATED; in cxlflash_afu_sync()
2409 rcb.timeout = MC_AFU_SYNC_TIMEOUT; in cxlflash_afu_sync()
2411 rcb.cdb[0] = SISL_AFU_CMD_SYNC; in cxlflash_afu_sync()
2412 rcb.cdb[1] = mode; in cxlflash_afu_sync()
2413 put_unaligned_be16(ctx, &rcb.cdb[2]); in cxlflash_afu_sync()
2414 put_unaligned_be32(res, &rcb.cdb[4]); in cxlflash_afu_sync()
2416 return send_afu_cmd(afu, &rcb); in cxlflash_afu_sync()
3311 struct sisl_ioarcb rcb; in cxlflash_lun_provision() local
3361 memset(&rcb, 0, sizeof(rcb)); in cxlflash_lun_provision()
3363 rcb.req_flags = SISL_REQ_FLAGS_AFU_CMD; in cxlflash_lun_provision()
3364 rcb.lun_id = lun_id; in cxlflash_lun_provision()
3365 rcb.msi = SISL_MSI_RRQ_UPDATED; in cxlflash_lun_provision()
3366 rcb.timeout = MC_LUN_PROV_TIMEOUT; in cxlflash_lun_provision()
3367 rcb.ioasa = &asa; in cxlflash_lun_provision()
3369 rcb.cdb[0] = SISL_AFU_CMD_LUN_PROVISION; in cxlflash_lun_provision()
3370 rcb.cdb[1] = type; in cxlflash_lun_provision()
3371 rcb.cdb[2] = port; in cxlflash_lun_provision()
3372 put_unaligned_be64(size, &rcb.cdb[8]); in cxlflash_lun_provision()
3374 rc = send_afu_cmd(afu, &rcb); in cxlflash_lun_provision()
3405 struct sisl_ioarcb rcb; in cxlflash_afu_debug() local
3446 memset(&rcb, 0, sizeof(rcb)); in cxlflash_afu_debug()
3449 rcb.req_flags = req_flags; in cxlflash_afu_debug()
3450 rcb.msi = SISL_MSI_RRQ_UPDATED; in cxlflash_afu_debug()
3451 rcb.timeout = MC_AFU_DEBUG_TIMEOUT; in cxlflash_afu_debug()
3452 rcb.ioasa = &asa; in cxlflash_afu_debug()
3455 rcb.data_len = ulen; in cxlflash_afu_debug()
3456 rcb.data_ea = (uintptr_t)kbuf; in cxlflash_afu_debug()
3459 rcb.cdb[0] = SISL_AFU_CMD_DEBUG; in cxlflash_afu_debug()
3460 memcpy(&rcb.cdb[4], afu_dbg->afu_subcmd, in cxlflash_afu_debug()
3463 rc = send_afu_cmd(afu, &rcb); in cxlflash_afu_debug()