Lines Matching refs:frame
265 m_sg = (struct mvumi_sgl *) &cmd->frame->payload[0]; in mvumi_internal_cmd_sgl()
266 cmd->frame->sg_counts = 1; in mvumi_internal_cmd_sgl()
289 cmd->frame = pci_alloc_consistent(mhba->pdev, in mvumi_create_internal_cmd()
291 if (!cmd->frame) { in mvumi_create_internal_cmd()
303 cmd->frame, cmd->frame_phys); in mvumi_create_internal_cmd()
308 cmd->frame->sg_counts = 0; in mvumi_create_internal_cmd()
320 if (cmd && cmd->frame) { in mvumi_delete_internal_cmd()
321 if (cmd->frame->sg_counts) { in mvumi_delete_internal_cmd()
322 m_sg = (struct mvumi_sgl *) &cmd->frame->payload[0]; in mvumi_delete_internal_cmd()
332 cmd->frame, cmd->frame_phys); in mvumi_delete_internal_cmd()
382 kfree(cmd->frame); in mvumi_free_cmds()
405 cmd->frame = mhba->ib_frame + i * mhba->ib_max_size; in mvumi_alloc_cmds()
409 cmd->frame = kzalloc(mhba->ib_max_size, GFP_KERNEL); in mvumi_alloc_cmds()
410 if (!cmd->frame) in mvumi_alloc_cmds()
423 kfree(cmd->frame); in mvumi_alloc_cmds()
763 if (mhba->tag_cmd[cmd->frame->tag]) { in mvumi_issue_blocked_cmd()
764 mhba->tag_cmd[cmd->frame->tag] = 0; in mvumi_issue_blocked_cmd()
766 cmd->frame->tag); in mvumi_issue_blocked_cmd()
767 tag_release_one(mhba, &mhba->tag_pool, cmd->frame->tag); in mvumi_issue_blocked_cmd()
795 struct mvumi_msg_frame *frame; in mvumi_flush_cache() local
817 frame = cmd->frame; in mvumi_flush_cache()
818 frame->req_function = CL_FUN_SCSI_CMD; in mvumi_flush_cache()
819 frame->device_id = device_id; in mvumi_flush_cache()
820 frame->cmd_flag = CMD_FLAG_NON_DATA; in mvumi_flush_cache()
821 frame->data_transfer_length = 0; in mvumi_flush_cache()
822 frame->cdb_length = MAX_COMMAND_SIZE; in mvumi_flush_cache()
823 memset(frame->cdb, 0, MAX_COMMAND_SIZE); in mvumi_flush_cache()
824 frame->cdb[0] = SCSI_CMD_MARVELL_SPECIFIC; in mvumi_flush_cache()
825 frame->cdb[1] = CDB_CORE_MODULE; in mvumi_flush_cache()
826 frame->cdb[2] = CDB_CORE_SHUTDOWN; in mvumi_flush_cache()
1451 struct mvumi_msg_frame *frame; in mvumi_inquiry() local
1468 frame = cmd->frame; in mvumi_inquiry()
1469 frame->device_id = (u16) id; in mvumi_inquiry()
1470 frame->cmd_flag = CMD_FLAG_DATA_IN; in mvumi_inquiry()
1471 frame->req_function = CL_FUN_SCSI_CMD; in mvumi_inquiry()
1472 frame->cdb_length = 6; in mvumi_inquiry()
1473 frame->data_transfer_length = MVUMI_INQUIRY_LENGTH; in mvumi_inquiry()
1474 memset(frame->cdb, 0, frame->cdb_length); in mvumi_inquiry()
1475 frame->cdb[0] = INQUIRY; in mvumi_inquiry()
1476 frame->cdb[4] = frame->data_transfer_length; in mvumi_inquiry()
1739 struct mvumi_msg_frame *frame; in mvumi_get_event() local
1747 frame = cmd->frame; in mvumi_get_event()
1748 frame->device_id = 0; in mvumi_get_event()
1749 frame->cmd_flag = CMD_FLAG_DATA_IN; in mvumi_get_event()
1750 frame->req_function = CL_FUN_SCSI_CMD; in mvumi_get_event()
1751 frame->cdb_length = MAX_COMMAND_SIZE; in mvumi_get_event()
1752 frame->data_transfer_length = sizeof(struct mvumi_event_req); in mvumi_get_event()
1753 memset(frame->cdb, 0, MAX_COMMAND_SIZE); in mvumi_get_event()
1754 frame->cdb[0] = APICDB0_EVENT; in mvumi_get_event()
1755 frame->cdb[1] = msg; in mvumi_get_event()
1762 mvumi_notification(mhba, cmd->frame->cdb[1], cmd->data_buf); in mvumi_get_event()
1866 ib_frame = cmd->frame; in mvumi_send_command()
1877 cmd->frame->tag = tag_get_one(mhba, &mhba->tag_pool); in mvumi_send_command()
1878 cmd->frame->request_id = mhba->io_seq++; in mvumi_send_command()
1879 cmd->request_id = cmd->frame->request_id; in mvumi_send_command()
1880 mhba->tag_cmd[cmd->frame->tag] = cmd; in mvumi_send_command()
2069 pframe = cmd->frame; in mvumi_build_frame()
2162 if (mhba->tag_cmd[cmd->frame->tag]) { in mvumi_timed_out()
2163 mhba->tag_cmd[cmd->frame->tag] = 0; in mvumi_timed_out()
2164 tag_release_one(mhba, &mhba->tag_pool, cmd->frame->tag); in mvumi_timed_out()