Lines Matching refs:dcmd

1306 	struct megasas_dcmd_frame *dcmd;  in megasas_sync_pd_seq_num()  local
1323 dcmd = &cmd->frame->dcmd; in megasas_sync_pd_seq_num()
1326 memset(dcmd->mbox.b, 0, MFI_MBOX_SIZE); in megasas_sync_pd_seq_num()
1329 dcmd->mbox.b[0] = MEGASAS_DCMD_MBOX_PEND_FLAG; in megasas_sync_pd_seq_num()
1330 dcmd->flags = MFI_FRAME_DIR_WRITE; in megasas_sync_pd_seq_num()
1333 dcmd->flags = MFI_FRAME_DIR_READ; in megasas_sync_pd_seq_num()
1336 dcmd->cmd = MFI_CMD_DCMD; in megasas_sync_pd_seq_num()
1337 dcmd->cmd_status = 0xFF; in megasas_sync_pd_seq_num()
1338 dcmd->sge_count = 1; in megasas_sync_pd_seq_num()
1339 dcmd->timeout = 0; in megasas_sync_pd_seq_num()
1340 dcmd->pad_0 = 0; in megasas_sync_pd_seq_num()
1341 dcmd->data_xfer_len = cpu_to_le32(pd_seq_map_sz); in megasas_sync_pd_seq_num()
1342 dcmd->opcode = cpu_to_le32(MR_DCMD_SYSTEM_PD_MAP_GET_INFO); in megasas_sync_pd_seq_num()
1344 megasas_set_dma_settings(instance, dcmd, pd_seq_h, pd_seq_map_sz); in megasas_sync_pd_seq_num()
1397 struct megasas_dcmd_frame *dcmd; in megasas_get_ld_map_info() local
1417 dcmd = &cmd->frame->dcmd; in megasas_get_ld_map_info()
1431 memset(dcmd->mbox.b, 0, MFI_MBOX_SIZE); in megasas_get_ld_map_info()
1432 dcmd->cmd = MFI_CMD_DCMD; in megasas_get_ld_map_info()
1433 dcmd->cmd_status = 0xFF; in megasas_get_ld_map_info()
1434 dcmd->sge_count = 1; in megasas_get_ld_map_info()
1435 dcmd->flags = MFI_FRAME_DIR_READ; in megasas_get_ld_map_info()
1436 dcmd->timeout = 0; in megasas_get_ld_map_info()
1437 dcmd->pad_0 = 0; in megasas_get_ld_map_info()
1438 dcmd->data_xfer_len = cpu_to_le32(size_map_info); in megasas_get_ld_map_info()
1439 dcmd->opcode = cpu_to_le32(MR_DCMD_LD_MAP_GET_INFO); in megasas_get_ld_map_info()
1441 megasas_set_dma_settings(instance, dcmd, ci_h, size_map_info); in megasas_get_ld_map_info()
1487 struct megasas_dcmd_frame *dcmd; in megasas_sync_map_info() local
1515 dcmd = &cmd->frame->dcmd; in megasas_sync_map_info()
1517 memset(dcmd->mbox.b, 0, MFI_MBOX_SIZE); in megasas_sync_map_info()
1535 dcmd->cmd = MFI_CMD_DCMD; in megasas_sync_map_info()
1536 dcmd->cmd_status = 0xFF; in megasas_sync_map_info()
1537 dcmd->sge_count = 1; in megasas_sync_map_info()
1538 dcmd->flags = MFI_FRAME_DIR_WRITE; in megasas_sync_map_info()
1539 dcmd->timeout = 0; in megasas_sync_map_info()
1540 dcmd->pad_0 = 0; in megasas_sync_map_info()
1541 dcmd->data_xfer_len = cpu_to_le32(size_map_info); in megasas_sync_map_info()
1542 dcmd->mbox.b[0] = num_lds; in megasas_sync_map_info()
1543 dcmd->mbox.b[1] = MEGASAS_DCMD_MBOX_PEND_FLAG; in megasas_sync_map_info()
1544 dcmd->opcode = cpu_to_le32(MR_DCMD_LD_MAP_GET_INFO); in megasas_sync_map_info()
1546 megasas_set_dma_settings(instance, dcmd, ci_h, size_map_info); in megasas_sync_map_info()
4325 opcode = le32_to_cpu(cmd_mfi->frame->dcmd.opcode); in megasas_refire_mgmt_cmd()
4328 cmd_mfi->frame->dcmd.cmd_status = MFI_STAT_OK; in megasas_refire_mgmt_cmd()
4364 le32_to_cpu(cmd_mfi->frame->dcmd.opcode)); in megasas_refire_mgmt_cmd()
4412 le32_to_cpu(cmd_mfi->frame->dcmd.opcode)); in megasas_return_polled_cmds()