Lines Matching +full:0 +full:x80042000
169 SDRT_UNSPECIFIED = 0,
182 #define RESPONSE_INTERRUPT 0x01
183 #define RESPONSE_ERROR 0x02
184 #define RESPONSE_STATUS 0x03
185 #define RESPONSE_IRQ_DISABLED 0x05
186 #define RESPONSE_IRQ_ENABLED 0x06
187 #define RESPONSE_PIGGYBACKED 0x07
188 #define RESPONSE_NO_INTERRUPT 0x08
189 #define RESPONSE_PIG_DISABLED 0x09
190 #define RESPONSE_PIG_ENABLED 0x0A
191 #define SD_ERROR_1BIT_TIMEOUT 0x01
192 #define SD_ERROR_4BIT_TIMEOUT 0x02
193 #define SD_ERROR_1BIT_CRC_WRONG 0x03
194 #define SD_ERROR_4BIT_CRC_WRONG 0x04
195 #define SD_ERROR_1BIT_CRC_ERROR 0x05
196 #define SD_ERROR_4BIT_CRC_ERROR 0x06
197 #define SD_ERROR_NO_CMD_ENDBIT 0x07
198 #define SD_ERROR_NO_1BIT_DATEND 0x08
199 #define SD_ERROR_NO_4BIT_DATEND 0x09
200 #define SD_ERROR_1BIT_UNEXPECTED_TIMEOUT 0x0A
201 #define SD_ERROR_4BIT_UNEXPECTED_TIMEOUT 0x0B
202 #define SD_ERROR_ILLEGAL_COMMAND 0x0C
203 #define SD_ERROR_NO_DEVICE 0x0D
204 #define SD_ERROR_TRANSFER_LENGTH 0x0E
205 #define SD_ERROR_1BIT_DATA_TIMEOUT 0x0F
206 #define SD_ERROR_4BIT_DATA_TIMEOUT 0x10
207 #define SD_ERROR_ILLEGAL_STATE 0x11
208 #define SD_ERROR_UNKNOWN_ERROR 0x12
209 #define SD_ERROR_RESERVED_ERROR 0x13
210 #define SD_ERROR_INVALID_FUNCTION 0x14
211 #define SD_ERROR_OUT_OF_RANGE 0x15
212 #define SD_ERROR_STAT_CMD 0x16
213 #define SD_ERROR_STAT_DATA 0x17
214 #define SD_ERROR_STAT_CMD_TIMEOUT 0x18
215 #define SD_ERROR_SDCRDY_STUCK 0x19
216 #define SD_ERROR_UNHANDLED 0x1A
217 #define SD_ERROR_OVERRUN 0x1B
218 #define SD_ERROR_PIO_TIMEOUT 0x1C
220 #define FUN(c) (0x000007 & (c->arg>>28))
221 #define REG(c) (0x01FFFF & (c->arg>>9))
254 static int firmware_rom_wait_states = 0x04;
256 static int firmware_rom_wait_states = 0x1C;
263 #define ELAN_VENDOR_ID 0x2201
264 #define VUB300_VENDOR_ID 0x0424
265 #define VUB300_PRODUCT_ID 0x012C
367 #define GET_SYSTEM_PORT_STATUS 0
467 vub300->command_res_urb->actual_length = 0; in irqpoll_out_completed()
481 int timeout = 0xFFFF & (0x0001FFFF - firmware_irqpoll_timeout); in send_irqpoll()
484 vub300->cmnd.poll.port_number = 0; in send_irqpoll()
486 vub300->cmnd.poll.poll_timeout_lsb = 0xFF & (unsigned)timeout; in send_irqpoll()
487 vub300->cmnd.poll.poll_timeout_msb = 0xFF & (unsigned)(timeout >> 8); in send_irqpoll()
493 if (0 > retval) { in send_irqpoll()
507 (0x0001 & vub300->system_port_status.port_flags) ? 1 : 0; in new_system_port_status()
509 (0x0010 & vub300->system_port_status.port_flags) ? 1 : 0; in new_system_port_status()
513 vub300->bus_width = 0; in new_system_port_status()
518 vub300->vub_name[0] = 0; in new_system_port_status()
522 vub300->card_present = 0; in new_system_port_status()
523 mmc_detect_change(vub300->mmc, 0); in new_system_port_status()
543 u32 Register = ((0x03 & register_access->command_byte[0]) << 15) in add_offloaded_reg()
544 | ((0xFF & register_access->command_byte[1]) << 7) in add_offloaded_reg()
545 | ((0xFE & register_access->command_byte[2]) >> 1); in add_offloaded_reg()
546 u8 func = ((0x70 & register_access->command_byte[0]) >> 4); in add_offloaded_reg()
548 u8 i = 0; in add_offloaded_reg()
549 while (0 < regs-- && 1 == vub300->sdio_register[i].activate) { in add_offloaded_reg()
552 if (vub300->sdio_register[i].prepared == 0) in add_offloaded_reg()
575 usb_control_msg(vub300->udev, usb_rcvctrlpipe(vub300->udev, 0), in check_vub300_port_status()
578 0x0000, 0x0000, &vub300->system_port_status, in check_vub300_port_status()
587 if (vub300->command_res_urb->actual_length == 0) in __vub300_irqpoll_response()
614 int ri = 0; in __vub300_irqpoll_response()
632 int ri = 0; in __vub300_irqpoll_response()
642 vub300->irq_disabled = 0; in __vub300_irqpoll_response()
665 } else if (commretval == 0) { in __do_poll()
669 } else { /* commretval > 0 */ in __do_poll()
796 } else if (vub300->command_res_urb->actual_length == 0) { in command_res_completed()
803 } else if (vub300->resp.common.header_type != 0x02) { in command_res_completed()
832 vub300->command_res_urb->actual_length = 0; in command_out_completed()
834 if (ret == 0) { in command_out_completed()
855 if ((0xFBFFFE00 & cmd_arg) == 0x80022200) in snoop_block_size_and_bus_width()
856 vub300->fbs[1] = (cmd_arg << 8) | (0x00FF & vub300->fbs[1]); in snoop_block_size_and_bus_width()
857 else if ((0xFBFFFE00 & cmd_arg) == 0x80022000) in snoop_block_size_and_bus_width()
858 vub300->fbs[1] = (0xFF & cmd_arg) | (0xFF00 & vub300->fbs[1]); in snoop_block_size_and_bus_width()
859 else if ((0xFBFFFE00 & cmd_arg) == 0x80042200) in snoop_block_size_and_bus_width()
860 vub300->fbs[2] = (cmd_arg << 8) | (0x00FF & vub300->fbs[2]); in snoop_block_size_and_bus_width()
861 else if ((0xFBFFFE00 & cmd_arg) == 0x80042000) in snoop_block_size_and_bus_width()
862 vub300->fbs[2] = (0xFF & cmd_arg) | (0xFF00 & vub300->fbs[2]); in snoop_block_size_and_bus_width()
863 else if ((0xFBFFFE00 & cmd_arg) == 0x80062200) in snoop_block_size_and_bus_width()
864 vub300->fbs[3] = (cmd_arg << 8) | (0x00FF & vub300->fbs[3]); in snoop_block_size_and_bus_width()
865 else if ((0xFBFFFE00 & cmd_arg) == 0x80062000) in snoop_block_size_and_bus_width()
866 vub300->fbs[3] = (0xFF & cmd_arg) | (0xFF00 & vub300->fbs[3]); in snoop_block_size_and_bus_width()
867 else if ((0xFBFFFE00 & cmd_arg) == 0x80082200) in snoop_block_size_and_bus_width()
868 vub300->fbs[4] = (cmd_arg << 8) | (0x00FF & vub300->fbs[4]); in snoop_block_size_and_bus_width()
869 else if ((0xFBFFFE00 & cmd_arg) == 0x80082000) in snoop_block_size_and_bus_width()
870 vub300->fbs[4] = (0xFF & cmd_arg) | (0xFF00 & vub300->fbs[4]); in snoop_block_size_and_bus_width()
871 else if ((0xFBFFFE00 & cmd_arg) == 0x800A2200) in snoop_block_size_and_bus_width()
872 vub300->fbs[5] = (cmd_arg << 8) | (0x00FF & vub300->fbs[5]); in snoop_block_size_and_bus_width()
873 else if ((0xFBFFFE00 & cmd_arg) == 0x800A2000) in snoop_block_size_and_bus_width()
874 vub300->fbs[5] = (0xFF & cmd_arg) | (0xFF00 & vub300->fbs[5]); in snoop_block_size_and_bus_width()
875 else if ((0xFBFFFE00 & cmd_arg) == 0x800C2200) in snoop_block_size_and_bus_width()
876 vub300->fbs[6] = (cmd_arg << 8) | (0x00FF & vub300->fbs[6]); in snoop_block_size_and_bus_width()
877 else if ((0xFBFFFE00 & cmd_arg) == 0x800C2000) in snoop_block_size_and_bus_width()
878 vub300->fbs[6] = (0xFF & cmd_arg) | (0xFF00 & vub300->fbs[6]); in snoop_block_size_and_bus_width()
879 else if ((0xFBFFFE00 & cmd_arg) == 0x800E2200) in snoop_block_size_and_bus_width()
880 vub300->fbs[7] = (cmd_arg << 8) | (0x00FF & vub300->fbs[7]); in snoop_block_size_and_bus_width()
881 else if ((0xFBFFFE00 & cmd_arg) == 0x800E2000) in snoop_block_size_and_bus_width()
882 vub300->fbs[7] = (0xFF & cmd_arg) | (0xFF00 & vub300->fbs[7]); in snoop_block_size_and_bus_width()
883 else if ((0xFBFFFE03 & cmd_arg) == 0x80000E00) in snoop_block_size_and_bus_width()
885 else if ((0xFBFFFE03 & cmd_arg) == 0x80000E02) in snoop_block_size_and_bus_width()
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()
940 vub300->resp_len = 0; in send_command()
945 vub300->app_spec = 0; in send_command()
948 case 0: in send_command()
950 vub300->resp_len = 0; in send_command()
966 vub300->resp_len = 0; in send_command()
1002 vub300->resp_len = 0; in send_command()
1005 for (i = 0; i < ARRAY_SIZE(vub300->fbs); i++) in send_command()
1006 vub300->fbs[i] = 0xFFFF & cmd->arg; in send_command()
1056 vub300->resp_len = 0; in send_command()
1067 vub300->cmnd.head.header_type = 0x00; in send_command()
1068 vub300->cmnd.head.port_number = 0; /* "0" means port 1 */ in send_command()
1069 vub300->cmnd.head.command_type = 0x00; /* standard read command */ in send_command()
1072 vub300->cmnd.head.arguments[0] = cmd->arg >> 24; in send_command()
1075 vub300->cmnd.head.arguments[3] = cmd->arg >> 0; in send_command()
1077 int fn = 0x7 & (cmd->arg >> 28); in send_command()
1078 vub300->cmnd.head.block_count[0] = 0; in send_command()
1079 vub300->cmnd.head.block_count[1] = 0; in send_command()
1080 vub300->cmnd.head.block_size[0] = (vub300->fbs[fn] >> 8) & 0xFF; in send_command()
1081 vub300->cmnd.head.block_size[1] = (vub300->fbs[fn] >> 0) & 0xFF; in send_command()
1082 vub300->cmnd.head.command_type = 0x00; in send_command()
1083 vub300->cmnd.head.transfer_size[0] = 0; in send_command()
1084 vub300->cmnd.head.transfer_size[1] = 0; in send_command()
1085 vub300->cmnd.head.transfer_size[2] = 0; in send_command()
1086 vub300->cmnd.head.transfer_size[3] = 0; in send_command()
1088 vub300->cmnd.head.block_count[0] = 0; in send_command()
1089 vub300->cmnd.head.block_count[1] = 0; in send_command()
1090 vub300->cmnd.head.block_size[0] = (vub300->fbs[0] >> 8) & 0xFF; in send_command()
1091 vub300->cmnd.head.block_size[1] = (vub300->fbs[0] >> 0) & 0xFF; in send_command()
1092 vub300->cmnd.head.command_type = 0x00; in send_command()
1093 vub300->cmnd.head.transfer_size[0] = 0; in send_command()
1094 vub300->cmnd.head.transfer_size[1] = 0; in send_command()
1095 vub300->cmnd.head.transfer_size[2] = 0; in send_command()
1096 vub300->cmnd.head.transfer_size[3] = 0; in send_command()
1098 int fn = 0x7 & (cmd->arg >> 28); in send_command()
1099 if (0x08 & vub300->cmnd.head.arguments[0]) { /* BLOCK MODE */ in send_command()
1100 vub300->cmnd.head.block_count[0] = in send_command()
1101 (data->blocks >> 8) & 0xFF; in send_command()
1103 (data->blocks >> 0) & 0xFF; in send_command()
1104 vub300->cmnd.head.block_size[0] = in send_command()
1105 (data->blksz >> 8) & 0xFF; in send_command()
1107 (data->blksz >> 0) & 0xFF; in send_command()
1109 vub300->cmnd.head.block_count[0] = 0; in send_command()
1110 vub300->cmnd.head.block_count[1] = 0; in send_command()
1111 vub300->cmnd.head.block_size[0] = in send_command()
1112 (vub300->datasize >> 8) & 0xFF; in send_command()
1114 (vub300->datasize >> 0) & 0xFF; in send_command()
1117 (MMC_DATA_READ & data->flags) ? 0x00 : 0x80; in send_command()
1118 vub300->cmnd.head.transfer_size[0] = in send_command()
1119 (vub300->datasize >> 24) & 0xFF; in send_command()
1121 (vub300->datasize >> 16) & 0xFF; in send_command()
1123 (vub300->datasize >> 8) & 0xFF; in send_command()
1125 (vub300->datasize >> 0) & 0xFF; in send_command()
1127 vub300->cmnd.head.block_count[0] = 0; in send_command()
1128 vub300->cmnd.head.block_count[1] = 0; in send_command()
1131 vub300->cmnd.head.block_count[0] = (data->blocks >> 8) & 0xFF; in send_command()
1132 vub300->cmnd.head.block_count[1] = (data->blocks >> 0) & 0xFF; in send_command()
1133 vub300->cmnd.head.block_size[0] = (data->blksz >> 8) & 0xFF; in send_command()
1134 vub300->cmnd.head.block_size[1] = (data->blksz >> 0) & 0xFF; in send_command()
1136 (MMC_DATA_READ & data->flags) ? 0x00 : 0x80; in send_command()
1137 vub300->cmnd.head.transfer_size[0] = in send_command()
1138 (vub300->datasize >> 24) & 0xFF; in send_command()
1140 (vub300->datasize >> 16) & 0xFF; in send_command()
1142 (vub300->datasize >> 8) & 0xFF; in send_command()
1144 (vub300->datasize >> 0) & 0xFF; in send_command()
1145 if (vub300->datasize < vub300->fbs[0]) { in send_command()
1146 vub300->cmnd.head.block_count[0] = 0; in send_command()
1147 vub300->cmnd.head.block_count[1] = 0; in send_command()
1150 if (vub300->cmnd.head.block_size[0] || vub300->cmnd.head.block_size[1]) { in send_command()
1152 (vub300->cmnd.head.block_size[0] << 8); in send_command()
1155 vub300->cmnd.head.block_boundary[0] = in send_command()
1156 (block_boundary >> 8) & 0xFF; in send_command()
1158 (block_boundary >> 0) & 0xFF; in send_command()
1160 vub300->cmnd.head.block_boundary[0] = 0; in send_command()
1161 vub300->cmnd.head.block_boundary[1] = 0; in send_command()
1168 if (retval < 0) { in send_command()
1193 return 0xFFC0 & (0x3F + number); in roundup_to_multiple_of_64()
1202 u8 register_count = 0; in __download_offload_pseudocode()
1203 u16 ts = 0; in __download_offload_pseudocode()
1204 u16 interrupt_size = 0; in __download_offload_pseudocode()
1234 memset(xfer_buffer + interrupt_size, 0, in __download_offload_pseudocode()
1240 usb_sndctrlpipe(vub300->udev, 0), in __download_offload_pseudocode()
1243 USB_RECIP_DEVICE, 0x0000, 0x0000, in __download_offload_pseudocode()
1246 if (retval < 0) in __download_offload_pseudocode()
1277 memset(xfer_buffer + ts, 0, in __download_offload_pseudocode()
1283 usb_sndctrlpipe(vub300->udev, 0), in __download_offload_pseudocode()
1286 USB_RECIP_DEVICE, 0x0000, 0x0000, in __download_offload_pseudocode()
1289 if (retval < 0) in __download_offload_pseudocode()
1313 int i = 0; in __download_offload_pseudocode()
1315 unsigned int func_num = 0; in __download_offload_pseudocode()
1328 vub300->sdio_register[i].prepared = 0; in __download_offload_pseudocode()
1360 int n = 0; in download_offload_pseudocode()
1362 for (n = 0; n < sdio_funcs; n++) { in download_offload_pseudocode()
1372 if (retval < 0) { in download_offload_pseudocode()
1376 if (retval < 0) { in download_offload_pseudocode()
1403 vub300->urb = usb_alloc_urb(0, GFP_KERNEL); in vub300_usb_bulk_msg()
1410 vub300->urb->actual_length = 0; in vub300_usb_bulk_msg()
1441 pipe, 0, data->sg, in __command_read_data()
1442 data->sg_len, 0, GFP_KERNEL); in __command_read_data()
1443 if (result < 0) { in __command_read_data()
1447 data->bytes_xfered = 0; in __command_read_data()
1448 return 0; in __command_read_data()
1456 if (vub300->sg_request.status < 0) { in __command_read_data()
1458 data->bytes_xfered = 0; in __command_read_data()
1459 return 0; in __command_read_data()
1471 int actual_length = 0; in __command_read_data()
1475 if (result < 0) { in __command_read_data()
1477 data->bytes_xfered = 0; in __command_read_data()
1479 return 0; in __command_read_data()
1482 data->bytes_xfered = 0; in __command_read_data()
1484 return 0; in __command_read_data()
1494 data->bytes_xfered = 0; in __command_read_data()
1495 return 0; in __command_read_data()
1506 int modulo_64_length = linear_length & 0x003F; in __command_write_data()
1507 int modulo_512_length = linear_length & 0x01FF; in __command_write_data()
1514 memset(vub300->padded_buffer + linear_length, 0, in __command_write_data()
1521 if (result < 0) { in __command_write_data()
1523 data->bytes_xfered = 0; in __command_write_data()
1527 } else if ((!vub300->large_usb_packets && (0 < modulo_64_length)) || in __command_write_data()
1537 memset(buf + linear_length, 0, in __command_write_data()
1544 if (result < 0) { in __command_write_data()
1546 data->bytes_xfered = 0; in __command_write_data()
1552 data->bytes_xfered = 0; in __command_write_data()
1559 pipe, 0, data->sg, in __command_write_data()
1560 data->sg_len, 0, GFP_KERNEL); in __command_write_data()
1561 if (result < 0) { in __command_write_data()
1565 data->bytes_xfered = 0; in __command_write_data()
1573 data->bytes_xfered = 0; in __command_write_data()
1576 if (vub300->sg_request.status < 0) { in __command_write_data()
1578 data->bytes_xfered = 0; in __command_write_data()
1598 if (respretval == 0) { /* TIMED OUT */ in __vub300_command_response()
1607 if (result == 0) { in __vub300_command_response()
1611 } else if (respretval < 0) { in __vub300_command_response()
1629 } else if (vub300->resp.common.header_type == 0x00) { in __vub300_command_response()
1644 int ri = 0; in __vub300_command_response()
1651 vub300->resp.common.header_type = 0x00; in __vub300_command_response()
1652 cmd->error = 0; in __vub300_command_response()
1658 int ri = 0; in __vub300_command_response()
1668 vub300_queue_poll_work(vub300, 0); in __vub300_command_response()
1676 vub300->resp.common.header_type = 0x00; in __vub300_command_response()
1677 cmd->error = 0; in __vub300_command_response()
1683 int ri = 0; in __vub300_command_response()
1693 vub300_queue_poll_work(vub300, 0); in __vub300_command_response()
1697 vub300->irq_disabled = 0; in __vub300_command_response()
1701 vub300->resp.common.header_type = 0x00; in __vub300_command_response()
1702 cmd->error = 0; in __vub300_command_response()
1729 while (words-- > 0) { in construct_request_response()
1733 | (r[4 + (words << 2)] << 0); 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()
1754 if (likely(vub300->vub_name[0]) || !vub300->mmc->card) { in vub300_cmndwork_thread()
1760 } else if (0 == vub300->mmc->card->sdio_funcs) { in vub300_cmndwork_thread()
1768 data_length = 0; in vub300_cmndwork_thread()
1786 vub300->resp_len = 0; in vub300_cmndwork_thread()
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()
1805 if (cmd0 == rf->command_byte[0] && in examine_cyclic_buffer()
1809 u8 checksum = 0x00; in examine_cyclic_buffer()
1811 cmd->resp[0] = (rf->Respond_Byte[0] << 24) in examine_cyclic_buffer()
1814 | (rf->Respond_Byte[3] << 0); in examine_cyclic_buffer()
1823 while (0 < register_count) { in examine_cyclic_buffer()
1827 if (cmd0 == r->command_byte[0] && in examine_cyclic_buffer()
1831 u8 checksum = 0x00; in examine_cyclic_buffer()
1833 cmd->resp[0] = (r->Respond_Byte[0] << 24) in examine_cyclic_buffer()
1836 | (r->Respond_Byte[3] << 0); in examine_cyclic_buffer()
1848 return 0; in examine_cyclic_buffer()
1857 u8 i = 0; in satisfy_request_from_offloaded_data()
1860 while (0 < regs--) { in satisfy_request_from_offloaded_data()
1864 return 0; in satisfy_request_from_offloaded_data()
1865 } else if ((0x80000000 & cmd->arg) == 0x80000000) { in satisfy_request_from_offloaded_data()
1870 vub300->sdio_register[i].prepared = 0; in satisfy_request_from_offloaded_data()
1871 return 0; in satisfy_request_from_offloaded_data()
1873 u8 checksum = 0x00; in satisfy_request_from_offloaded_data()
1874 u8 rsp0 = 0x00; in satisfy_request_from_offloaded_data()
1875 u8 rsp1 = 0x00; in satisfy_request_from_offloaded_data()
1878 vub300->sdio_register[i].prepared = 0; in satisfy_request_from_offloaded_data()
1880 cmd->resp[0] = (rsp0 << 24) in satisfy_request_from_offloaded_data()
1883 | (rsp3 << 0); in satisfy_request_from_offloaded_data()
1891 if (vub300->total_offload_count == 0) in satisfy_request_from_offloaded_data()
1892 return 0; in satisfy_request_from_offloaded_data()
1893 else if (vub300->fn[func].offload_count == 0) in satisfy_request_from_offloaded_data()
1894 return 0; in satisfy_request_from_offloaded_data()
1938 cmd->error = 0; in vub300_mmc_request()
1950 vub300->datasize = 0; in vub300_mmc_request()
1982 kHzClock = 0; in __set_clock_speed()
1986 for (i = 0; i < buf_array_size; i++) { in __set_clock_speed()
1992 usb_control_msg(vub300->udev, usb_sndctrlpipe(vub300->udev, 0), in __set_clock_speed()
1995 0x00, 0x00, buf, buf_array_size, 1000); in __set_clock_speed()
2013 vub300->card_powered = 0; in vub300_mmc_set_ios()
2014 usb_control_msg(vub300->udev, usb_sndctrlpipe(vub300->udev, 0), in vub300_mmc_set_ios()
2017 0x0000, 0x0000, NULL, 0, 1000); in vub300_mmc_set_ios()
2021 usb_control_msg(vub300->udev, usb_sndctrlpipe(vub300->udev, 0), in vub300_mmc_set_ios()
2024 0x0001, 0x0000, NULL, 0, 1000); in vub300_mmc_set_ios()
2059 vub300->irq_disabled = 0; in vub300_enable_sdio_irq()
2061 vub300_queue_poll_work(vub300, 0); in vub300_enable_sdio_irq()
2066 vub300_queue_poll_work(vub300, 0); in vub300_enable_sdio_irq()
2071 vub300->irq_enabled = 0; in vub300_enable_sdio_irq()
2106 command_out_urb = usb_alloc_urb(0, GFP_KERNEL); in vub300_probe()
2111 command_res_urb = usb_alloc_urb(0, GFP_KERNEL); in vub300_probe()
2124 mmc->caps = 0; in vub300_probe()
2154 mmc->ocr_avail = 0; in vub300_probe()
2175 vub300->card_powered = 0; in vub300_probe()
2176 vub300->bus_width = 0; in vub300_probe()
2177 vub300->cmnd.head.block_size[0] = 0x00; in vub300_probe()
2178 vub300->cmnd.head.block_size[1] = 0x00; in vub300_probe()
2179 vub300->app_spec = 0; in vub300_probe()
2184 vub300->usb_timed_out = 0; in vub300_probe()
2185 vub300->dynamic_register_count = 0; in vub300_probe()
2187 for (i = 0; i < ARRAY_SIZE(vub300->fn); i++) { in vub300_probe()
2188 vub300->fn[i].offload_point = 0; in vub300_probe()
2189 vub300->fn[i].offload_count = 0; in vub300_probe()
2192 vub300->total_offload_count = 0; in vub300_probe()
2193 vub300->irq_enabled = 0; in vub300_probe()
2194 vub300->irq_disabled = 0; in vub300_probe()
2195 vub300->irqs_queued = 0; in vub300_probe()
2197 for (i = 0; i < ARRAY_SIZE(vub300->sdio_register); i++) in vub300_probe()
2198 vub300->sdio_register[i++].activate = 0; in vub300_probe()
2202 vub300->cmnd_res_ep = 0; in vub300_probe()
2203 vub300->cmnd_out_ep = 0; in vub300_probe()
2204 vub300->data_inp_ep = 0; in vub300_probe()
2205 vub300->data_out_ep = 0; in vub300_probe()
2207 for (i = 0; i < ARRAY_SIZE(vub300->fbs); i++) in vub300_probe()
2219 vub300->large_usb_packets = 0; in vub300_probe()
2221 for (i = 0; i < iface_desc->desc.bNumEndpoints; ++i) { in vub300_probe()
2277 usb_control_msg(vub300->udev, usb_rcvctrlpipe(vub300->udev, 0), in vub300_probe()
2280 0x0000, 0x0000, &vub300->hc_info, in vub300_probe()
2282 if (retval < 0) in vub300_probe()
2285 usb_control_msg(vub300->udev, usb_sndctrlpipe(vub300->udev, 0), in vub300_probe()
2288 firmware_rom_wait_states, 0x0000, NULL, 0, 1000); in vub300_probe()
2289 if (retval < 0) in vub300_probe()
2299 usb_control_msg(vub300->udev, usb_rcvctrlpipe(vub300->udev, 0), in vub300_probe()
2302 0x0000, 0x0000, &vub300->system_port_status, in vub300_probe()
2304 if (retval < 0) { in vub300_probe()
2308 (0x0001 & vub300->system_port_status.port_flags) ? 1 : 0; in vub300_probe()
2310 (0x0010 & vub300->system_port_status.port_flags) ? 1 : 0; in vub300_probe()
2320 timer_setup(&vub300->sg_transfer_timer, vub300_sg_timed_out, 0); in vub300_probe()
2323 vub300_inactivity_timer_expired, 0); in vub300_probe()
2340 return 0; in vub300_probe()
2384 return 0; in vub300_suspend()
2389 return 0; in vub300_resume()
2399 return 0; in vub300_pre_reset()
2408 return 0; in vub300_post_reset()
2428 firmware_rom_wait_states, 0x0FFFF & firmware_irqpoll_timeout); in vub300_init()
2452 return 0; in vub300_init()