Lines Matching refs:rcb

319 					    __func__, cmd->rcb.cdb[0], room);  in send_cmd_ioarrin()
328 writeq_be((u64)&cmd->rcb, &hwq->host_map->ioarrin); in send_cmd_ioarrin()
332 __func__, cmd, cmd->rcb.data_len, cmd->rcb.data_ea, rc); in send_cmd_ioarrin()
359 cmd->rcb.ioasa = &cmd->sa; in send_cmd_sq()
363 *hwq->hsq_curr = cmd->rcb; in send_cmd_sq()
375 "head=%016llx tail=%016llx\n", __func__, cmd, cmd->rcb.data_len, in send_cmd_sq()
376 cmd->rcb.data_ea, cmd->rcb.ioasa, rc, hwq->hsq_curr, in send_cmd_sq()
394 ulong timeout = msecs_to_jiffies(cmd->rcb.timeout * 2 * 1000); in wait_resp()
405 __func__, cmd->rcb.cdb[0], cmd->sa.ioasc); in wait_resp()
494 cmd->rcb.ctx_id = hwq->ctx_hndl; in send_tmf()
495 cmd->rcb.msi = SISL_MSI_RRQ_UPDATED; in send_tmf()
496 cmd->rcb.port_sel = CHAN2PORTMASK(sdev->channel); in send_tmf()
497 cmd->rcb.lun_id = lun_to_lunid(sdev->lun); in send_tmf()
498 cmd->rcb.req_flags = (SISL_REQ_FLAGS_PORT_LUN_ID | in send_tmf()
501 memcpy(cmd->rcb.cdb, &tmfcmd, sizeof(tmfcmd)); in send_tmf()
613 cmd->rcb.data_len = sg->length; in cxlflash_queuecommand()
614 cmd->rcb.data_ea = (uintptr_t)sg_virt(sg); in cxlflash_queuecommand()
622 cmd->rcb.ctx_id = hwq->ctx_hndl; in cxlflash_queuecommand()
623 cmd->rcb.msi = SISL_MSI_RRQ_UPDATED; in cxlflash_queuecommand()
624 cmd->rcb.port_sel = CHAN2PORTMASK(scp->device->channel); in cxlflash_queuecommand()
625 cmd->rcb.lun_id = lun_to_lunid(scp->device->lun); in cxlflash_queuecommand()
630 cmd->rcb.req_flags = req_flags; in cxlflash_queuecommand()
631 memcpy(cmd->rcb.cdb, scp->cmnd, sizeof(cmd->rcb.cdb)); in cxlflash_queuecommand()
1395 cmd = container_of(ioarcb, struct afu_cmd, rcb); in process_hrrq()
2276 static int send_afu_cmd(struct afu *afu, struct sisl_ioarcb *rcb) in send_afu_cmd() argument
2306 memcpy(&cmd->rcb, rcb, sizeof(*rcb)); in send_afu_cmd()
2311 cmd->rcb.ctx_id = hwq->ctx_hndl; in send_afu_cmd()
2314 __func__, afu, cmd, cmd->rcb.cdb[0], nretry); in send_afu_cmd()
2344 if (rcb->ioasa) in send_afu_cmd()
2345 *rcb->ioasa = cmd->sa; in send_afu_cmd()
2374 struct sisl_ioarcb rcb = { 0 }; in cxlflash_afu_sync() local
2379 rcb.req_flags = SISL_REQ_FLAGS_AFU_CMD; in cxlflash_afu_sync()
2380 rcb.msi = SISL_MSI_RRQ_UPDATED; in cxlflash_afu_sync()
2381 rcb.timeout = MC_AFU_SYNC_TIMEOUT; in cxlflash_afu_sync()
2383 rcb.cdb[0] = SISL_AFU_CMD_SYNC; in cxlflash_afu_sync()
2384 rcb.cdb[1] = mode; in cxlflash_afu_sync()
2385 put_unaligned_be16(ctx, &rcb.cdb[2]); in cxlflash_afu_sync()
2386 put_unaligned_be32(res, &rcb.cdb[4]); in cxlflash_afu_sync()
2388 return send_afu_cmd(afu, &rcb); in cxlflash_afu_sync()
3287 struct sisl_ioarcb rcb; in cxlflash_lun_provision() local
3337 memset(&rcb, 0, sizeof(rcb)); in cxlflash_lun_provision()
3339 rcb.req_flags = SISL_REQ_FLAGS_AFU_CMD; in cxlflash_lun_provision()
3340 rcb.lun_id = lun_id; in cxlflash_lun_provision()
3341 rcb.msi = SISL_MSI_RRQ_UPDATED; in cxlflash_lun_provision()
3342 rcb.timeout = MC_LUN_PROV_TIMEOUT; in cxlflash_lun_provision()
3343 rcb.ioasa = &asa; in cxlflash_lun_provision()
3345 rcb.cdb[0] = SISL_AFU_CMD_LUN_PROVISION; in cxlflash_lun_provision()
3346 rcb.cdb[1] = type; in cxlflash_lun_provision()
3347 rcb.cdb[2] = port; in cxlflash_lun_provision()
3348 put_unaligned_be64(size, &rcb.cdb[8]); in cxlflash_lun_provision()
3350 rc = send_afu_cmd(afu, &rcb); in cxlflash_lun_provision()
3381 struct sisl_ioarcb rcb; in cxlflash_afu_debug() local
3422 memset(&rcb, 0, sizeof(rcb)); in cxlflash_afu_debug()
3425 rcb.req_flags = req_flags; in cxlflash_afu_debug()
3426 rcb.msi = SISL_MSI_RRQ_UPDATED; in cxlflash_afu_debug()
3427 rcb.timeout = MC_AFU_DEBUG_TIMEOUT; in cxlflash_afu_debug()
3428 rcb.ioasa = &asa; in cxlflash_afu_debug()
3431 rcb.data_len = ulen; in cxlflash_afu_debug()
3432 rcb.data_ea = (uintptr_t)kbuf; in cxlflash_afu_debug()
3435 rcb.cdb[0] = SISL_AFU_CMD_DEBUG; in cxlflash_afu_debug()
3436 memcpy(&rcb.cdb[4], afu_dbg->afu_subcmd, in cxlflash_afu_debug()
3439 rc = send_afu_cmd(afu, &rcb); in cxlflash_afu_debug()