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()
1429 struct mmc_command *cmd, struct mmc_data *data) in __command_read_data() argument
1446 cmd->error = result; in __command_read_data()
1457 cmd->error = vub300->sg_request.status; in __command_read_data()
1476 cmd->error = result; in __command_read_data()
1481 cmd->error = -EREMOTEIO; in __command_read_data()
1493 cmd->error = -ENOMEM; in __command_read_data()
1501 struct mmc_command *cmd, struct mmc_data *data) in __command_write_data() argument
1522 cmd->error = result; in __command_write_data()
1545 cmd->error = result; in __command_write_data()
1551 cmd->error = -ENOMEM; in __command_write_data()
1564 cmd->error = result; in __command_write_data()
1572 if (cmd->error) { in __command_write_data()
1577 cmd->error = vub300->sg_request.status; in __command_write_data()
1589 struct mmc_command *cmd, in __vub300_command_response() argument
1604 cmd->error = -ETIMEDOUT; in __vub300_command_response()
1615 cmd->error = respretval; in __vub300_command_response()
1616 } else if (cmd->error) { in __vub300_command_response()
1623 cmd->error = -EPROTO == vub300->command_out_urb->status ? in __vub300_command_response()
1627 cmd->error = -EPROTO == vub300->command_res_urb->status ? in __vub300_command_response()
1635 cmd->error = in __vub300_command_response()
1652 cmd->error = 0; in __vub300_command_response()
1677 cmd->error = 0; in __vub300_command_response()
1702 cmd->error = 0; in __vub300_command_response()
1704 cmd->error = -EINVAL; in __vub300_command_response()
1709 struct mmc_command *cmd) in construct_request_response() argument
1720 cmd->resp[words] = (r[1 + (words << 2)] << 24) in construct_request_response()
1724 cmd->resp[words] = (r[1 + (words << 2)] << 24) in construct_request_response()
1727 cmd->resp[words] = (r[1 + (words << 2)] << 24); in construct_request_response()
1730 cmd->resp[words] = (r[1 + (words << 2)] << 24) in construct_request_response()
1735 if ((cmd->opcode == 53) && (0x000000FF & cmd->resp[0])) in construct_request_response()
1736 cmd->resp[0] &= 0xFFFFFF00; in construct_request_response()
1749 struct mmc_command *cmd = vub300->cmd; in vub300_cmndwork_thread() local
1770 data_length = __command_read_data(vub300, cmd, data); in vub300_cmndwork_thread()
1772 data_length = __command_write_data(vub300, cmd, data); in vub300_cmndwork_thread()
1773 __vub300_command_response(vub300, cmd, data, data_length); in vub300_cmndwork_thread()
1775 vub300->cmd = NULL; in vub300_cmndwork_thread()
1777 if (cmd->error) { in vub300_cmndwork_thread()
1778 if (cmd->error == -ENOMEDIUM) in vub300_cmndwork_thread()
1785 construct_request_response(vub300, cmd); in vub300_cmndwork_thread()
1796 struct mmc_command *cmd, u8 Function) in examine_cyclic_buffer() argument
1799 u8 cmd0 = 0xFF & (cmd->arg >> 24); in examine_cyclic_buffer()
1800 u8 cmd1 = 0xFF & (cmd->arg >> 16); in examine_cyclic_buffer()
1801 u8 cmd2 = 0xFF & (cmd->arg >> 8); in examine_cyclic_buffer()
1802 u8 cmd3 = 0xFF & (cmd->arg >> 0); in examine_cyclic_buffer()
1810 cmd->resp[1] = checksum << 24; in examine_cyclic_buffer()
1811 cmd->resp[0] = (rf->Respond_Byte[0] << 24) in examine_cyclic_buffer()
1832 cmd->resp[1] = checksum << 24; in examine_cyclic_buffer()
1833 cmd->resp[0] = (r->Respond_Byte[0] << 24) in examine_cyclic_buffer()
1853 struct mmc_command *cmd) in satisfy_request_from_offloaded_data() argument
1858 u8 func = FUN(cmd); in satisfy_request_from_offloaded_data()
1859 u32 reg = REG(cmd); in satisfy_request_from_offloaded_data()
1865 } else if ((0x80000000 & cmd->arg) == 0x80000000) { in satisfy_request_from_offloaded_data()
1879 cmd->resp[1] = checksum << 24; in satisfy_request_from_offloaded_data()
1880 cmd->resp[0] = (rsp0 << 24) in satisfy_request_from_offloaded_data()
1896 return examine_cyclic_buffer(vub300, cmd, func); in satisfy_request_from_offloaded_data()
1901 struct mmc_command *cmd = req->cmd; in vub300_mmc_request() local
1904 cmd->error = -ESHUTDOWN; in vub300_mmc_request()
1910 cmd->error = -ENOMEDIUM; in vub300_mmc_request()
1915 cmd->error = -ENOMEDIUM; in vub300_mmc_request()
1920 cmd->error = vub300->usb_transport_fail; in vub300_mmc_request()
1925 cmd->error = -ENODEV; in vub300_mmc_request()
1936 if (cmd->opcode == 52 && in vub300_mmc_request()
1937 satisfy_request_from_offloaded_data(vub300, cmd)) { in vub300_mmc_request()
1938 cmd->error = 0; in vub300_mmc_request()
1944 vub300->cmd = cmd; in vub300_mmc_request()