Lines Matching refs:cmd

333 	struct mmc_command *cmd;  member
686 if (vub300->cmd) { in vub300_pollwork_thread()
717 if (vub300->cmd) { in vub300_deadwork_thread()
747 } else if (vub300->cmd) { in vub300_inactivity_timer_expired()
809 vub300->cmd->error = in command_res_completed()
813 vub300->cmd->error = in command_res_completed()
892 struct mmc_command *cmd = vub300->cmd; in send_command() local
898 switch (cmd->opcode) { in send_command()
902 if (0x00000000 == (0x00000003 & cmd->arg)) in send_command()
904 else if (0x00000002 == (0x00000003 & cmd->arg)) in send_command()
909 0x00000003 & cmd->arg); in send_command()
941 cmd->error = -EINVAL; in send_command()
947 switch (cmd->opcode) { in send_command()
1006 vub300->fbs[i] = 0xFFFF & cmd->arg; in send_command()
1040 snoop_block_size_and_bus_width(vub300, cmd->arg); in send_command()
1057 cmd->error = -EINVAL; in send_command()
1071 vub300->cmnd.head.command_index = cmd->opcode; in send_command()
1072 vub300->cmnd.head.arguments[0] = cmd->arg >> 24; in send_command()
1073 vub300->cmnd.head.arguments[1] = cmd->arg >> 16; in send_command()
1074 vub300->cmnd.head.arguments[2] = cmd->arg >> 8; in send_command()
1075 vub300->cmnd.head.arguments[3] = cmd->arg >> 0; in send_command()
1076 if (cmd->opcode == 52) { in send_command()
1077 int fn = 0x7 & (cmd->arg >> 28); in send_command()
1097 } else if (cmd->opcode == 53) { in send_command()
1098 int fn = 0x7 & (cmd->arg >> 28); in send_command()
1169 cmd->error = retval; in send_command()
1431 struct mmc_command *cmd, struct mmc_data *data) in __command_read_data() argument
1448 cmd->error = result; in __command_read_data()
1459 cmd->error = vub300->sg_request.status; in __command_read_data()
1478 cmd->error = result; in __command_read_data()
1483 cmd->error = -EREMOTEIO; in __command_read_data()
1495 cmd->error = -ENOMEM; in __command_read_data()
1503 struct mmc_command *cmd, struct mmc_data *data) in __command_write_data() argument
1524 cmd->error = result; in __command_write_data()
1547 cmd->error = result; in __command_write_data()
1553 cmd->error = -ENOMEM; in __command_write_data()
1566 cmd->error = result; in __command_write_data()
1574 if (cmd->error) { in __command_write_data()
1579 cmd->error = vub300->sg_request.status; in __command_write_data()
1591 struct mmc_command *cmd, in __vub300_command_response() argument
1606 cmd->error = -ETIMEDOUT; in __vub300_command_response()
1617 cmd->error = respretval; in __vub300_command_response()
1618 } else if (cmd->error) { in __vub300_command_response()
1625 cmd->error = -EPROTO == vub300->command_out_urb->status ? in __vub300_command_response()
1629 cmd->error = -EPROTO == vub300->command_res_urb->status ? in __vub300_command_response()
1637 cmd->error = in __vub300_command_response()
1654 cmd->error = 0; in __vub300_command_response()
1679 cmd->error = 0; in __vub300_command_response()
1704 cmd->error = 0; in __vub300_command_response()
1706 cmd->error = -EINVAL; in __vub300_command_response()
1711 struct mmc_command *cmd) in construct_request_response() argument
1719 cmd->resp[words] = (r[1 + (words << 2)] << 24) in construct_request_response()
1723 cmd->resp[words] = (r[1 + (words << 2)] << 24) in construct_request_response()
1726 cmd->resp[words] = (r[1 + (words << 2)] << 24); in construct_request_response()
1729 cmd->resp[words] = (r[1 + (words << 2)] << 24) in construct_request_response()
1734 if ((cmd->opcode == 53) && (0x000000FF & cmd->resp[0])) in construct_request_response()
1735 cmd->resp[0] &= 0xFFFFFF00; in construct_request_response()
1748 struct mmc_command *cmd = vub300->cmd; in vub300_cmndwork_thread() local
1769 data_length = __command_read_data(vub300, cmd, data); in vub300_cmndwork_thread()
1771 data_length = __command_write_data(vub300, cmd, data); in vub300_cmndwork_thread()
1772 __vub300_command_response(vub300, cmd, data, data_length); in vub300_cmndwork_thread()
1774 vub300->cmd = NULL; in vub300_cmndwork_thread()
1776 if (cmd->error) { in vub300_cmndwork_thread()
1777 if (cmd->error == -ENOMEDIUM) in vub300_cmndwork_thread()
1784 construct_request_response(vub300, cmd); in vub300_cmndwork_thread()
1795 struct mmc_command *cmd, u8 Function) in examine_cyclic_buffer() argument
1798 u8 cmd0 = 0xFF & (cmd->arg >> 24); in examine_cyclic_buffer()
1799 u8 cmd1 = 0xFF & (cmd->arg >> 16); in examine_cyclic_buffer()
1800 u8 cmd2 = 0xFF & (cmd->arg >> 8); in examine_cyclic_buffer()
1801 u8 cmd3 = 0xFF & (cmd->arg >> 0); in examine_cyclic_buffer()
1809 cmd->resp[1] = checksum << 24; in examine_cyclic_buffer()
1810 cmd->resp[0] = (rf->Respond_Byte[0] << 24) in examine_cyclic_buffer()
1831 cmd->resp[1] = checksum << 24; in examine_cyclic_buffer()
1832 cmd->resp[0] = (r->Respond_Byte[0] << 24) in examine_cyclic_buffer()
1852 struct mmc_command *cmd) in satisfy_request_from_offloaded_data() argument
1857 u8 func = FUN(cmd); in satisfy_request_from_offloaded_data()
1858 u32 reg = REG(cmd); in satisfy_request_from_offloaded_data()
1864 } else if ((0x80000000 & cmd->arg) == 0x80000000) { in satisfy_request_from_offloaded_data()
1878 cmd->resp[1] = checksum << 24; in satisfy_request_from_offloaded_data()
1879 cmd->resp[0] = (rsp0 << 24) in satisfy_request_from_offloaded_data()
1895 return examine_cyclic_buffer(vub300, cmd, func); in satisfy_request_from_offloaded_data()
1900 struct mmc_command *cmd = req->cmd; in vub300_mmc_request() local
1903 cmd->error = -ESHUTDOWN; in vub300_mmc_request()
1909 cmd->error = -ENOMEDIUM; in vub300_mmc_request()
1914 cmd->error = -ENOMEDIUM; in vub300_mmc_request()
1919 cmd->error = vub300->usb_transport_fail; in vub300_mmc_request()
1924 cmd->error = -ENODEV; in vub300_mmc_request()
1935 if (cmd->opcode == 52 && in vub300_mmc_request()
1936 satisfy_request_from_offloaded_data(vub300, cmd)) { in vub300_mmc_request()
1937 cmd->error = 0; in vub300_mmc_request()
1943 vub300->cmd = cmd; in vub300_mmc_request()