Lines Matching +full:0 +full:x55
70 for (i = 0xFD40; i <= 0xFD44; i++) in ms_print_debug_regs()
71 rtsx_usb_add_cmd(ucr, READ_REG_CMD, i, 0, 0); in ms_print_debug_regs()
74 for (i = 0xFD51; i <= 0xFD56; i++) in ms_print_debug_regs()
75 rtsx_usb_add_cmd(ucr, READ_REG_CMD, i, 0, 0); in ms_print_debug_regs()
78 for (i = 0xFD60; i <= 0xFD65; i++) in ms_print_debug_regs()
79 rtsx_usb_add_cmd(ucr, READ_REG_CMD, i, 0, 0); in ms_print_debug_regs()
82 rtsx_usb_add_cmd(ucr, READ_REG_CMD, CARD_DATA_SOURCE, 0, 0); in ms_print_debug_regs()
83 rtsx_usb_add_cmd(ucr, READ_REG_CMD, CARD_SELECT, 0, 0); in ms_print_debug_regs()
84 rtsx_usb_add_cmd(ucr, READ_REG_CMD, CARD_CLK_EN, 0, 0); in ms_print_debug_regs()
85 rtsx_usb_add_cmd(ucr, READ_REG_CMD, CARD_PWR_CTL, 0, 0); in ms_print_debug_regs()
91 for (i = 0xFD40; i <= 0xFD44; i++) in ms_print_debug_regs()
92 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", i, *(ptr++)); in ms_print_debug_regs()
93 for (i = 0xFD51; i <= 0xFD56; i++) in ms_print_debug_regs()
94 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", i, *(ptr++)); in ms_print_debug_regs()
95 for (i = 0xFD60; i <= 0xFD65; i++) in ms_print_debug_regs()
96 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", i, *(ptr++)); in ms_print_debug_regs()
98 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", CARD_DATA_SOURCE, *(ptr++)); in ms_print_debug_regs()
99 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", CARD_SELECT, *(ptr++)); in ms_print_debug_regs()
100 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", CARD_CLK_EN, *(ptr++)); in ms_print_debug_regs()
101 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", CARD_PWR_CTL, *(ptr++)); in ms_print_debug_regs()
116 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL1, 0xFF, 0x55); in ms_pull_ctl_disable_lqfp48()
117 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL2, 0xFF, 0x55); in ms_pull_ctl_disable_lqfp48()
118 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL3, 0xFF, 0x95); in ms_pull_ctl_disable_lqfp48()
119 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL4, 0xFF, 0x55); in ms_pull_ctl_disable_lqfp48()
120 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL5, 0xFF, 0x55); in ms_pull_ctl_disable_lqfp48()
121 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL6, 0xFF, 0xA5); in ms_pull_ctl_disable_lqfp48()
130 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL1, 0xFF, 0x65); in ms_pull_ctl_disable_qfn24()
131 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL2, 0xFF, 0x55); in ms_pull_ctl_disable_qfn24()
132 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL3, 0xFF, 0x95); in ms_pull_ctl_disable_qfn24()
133 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL4, 0xFF, 0x55); in ms_pull_ctl_disable_qfn24()
134 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL5, 0xFF, 0x56); in ms_pull_ctl_disable_qfn24()
135 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL6, 0xFF, 0x59); in ms_pull_ctl_disable_qfn24()
144 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL1, 0xFF, 0x55); in ms_pull_ctl_enable_lqfp48()
145 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL2, 0xFF, 0x55); in ms_pull_ctl_enable_lqfp48()
146 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL3, 0xFF, 0x95); in ms_pull_ctl_enable_lqfp48()
147 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL4, 0xFF, 0x55); in ms_pull_ctl_enable_lqfp48()
148 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL5, 0xFF, 0x55); in ms_pull_ctl_enable_lqfp48()
149 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL6, 0xFF, 0xA5); in ms_pull_ctl_enable_lqfp48()
158 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL1, 0xFF, 0x65); in ms_pull_ctl_enable_qfn24()
159 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL2, 0xFF, 0x55); in ms_pull_ctl_enable_qfn24()
160 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL3, 0xFF, 0x95); in ms_pull_ctl_enable_qfn24()
161 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL4, 0xFF, 0x55); in ms_pull_ctl_enable_qfn24()
162 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL5, 0xFF, 0x55); in ms_pull_ctl_enable_qfn24()
163 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL6, 0xFF, 0x59); in ms_pull_ctl_enable_qfn24()
176 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_SELECT, 0x07, MS_MOD_SEL); in ms_power_on()
182 if (err < 0) in ms_power_on()
189 if (err < 0) in ms_power_on()
217 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_CLK_EN, MS_CLK_EN, 0); in ms_power_off()
218 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_OE, MS_OUTPUT_EN, 0); in ms_power_off()
221 if (err < 0) in ms_power_off()
241 dev_dbg(ms_dev(host), "%s: tpc = 0x%02x, data_dir = %s, length = %d\n", in ms_transfer_data()
265 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_transfer_data()
268 0xFF, (u8)(sec_cnt >> 8)); in ms_transfer_data()
270 0xFF, (u8)sec_cnt); in ms_transfer_data()
272 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_TRANS_CFG, 0xFF, cfg); in ms_transfer_data()
275 0xFF, (u8)(length >> 24)); in ms_transfer_data()
277 0xFF, (u8)(length >> 16)); in ms_transfer_data()
279 0xFF, (u8)(length >> 8)); in ms_transfer_data()
280 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MC_DMA_TC0, 0xFF, in ms_transfer_data()
283 0x03 | DMA_PACK_SIZE_MASK, dma_dir | DMA_EN | DMA_512); in ms_transfer_data()
285 0x01, RING_BUFFER); in ms_transfer_data()
288 0xFF, MS_TRANSFER_START | trans_mode); in ms_transfer_data()
305 if (ucr->rsp_buf[0] & MS_TRANSFER_ERR || in ms_transfer_data()
310 return 0; in ms_transfer_data()
322 dev_dbg(ms_dev(host), "%s: tpc = 0x%02x\n", __func__, tpc); in ms_write_bytes()
326 for (i = 0; i < cnt; i++) in ms_write_bytes()
328 PPBUF_BASE2 + i, 0xFF, data[i]); in ms_write_bytes()
332 PPBUF_BASE2 + i, 0xFF, 0xFF); in ms_write_bytes()
334 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_write_bytes()
335 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_BYTE_CNT, 0xFF, cnt); in ms_write_bytes()
336 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_TRANS_CFG, 0xFF, cfg); in ms_write_bytes()
338 0x01, PINGPONG_BUFFER); in ms_write_bytes()
341 0xFF, MS_TRANSFER_START | MS_TM_WRITE_BYTES); in ms_write_bytes()
344 rtsx_usb_add_cmd(ucr, READ_REG_CMD, MS_TRANS_CFG, 0, 0); in ms_write_bytes()
351 if (err || (ucr->rsp_buf[0] & MS_TRANSFER_ERR)) { in ms_write_bytes()
355 dev_dbg(ms_dev(host), "MS_TRANS_CFG: 0x%02x\n", val); in ms_write_bytes()
358 *int_reg = val & 0x0F; in ms_write_bytes()
364 if (!(tpc & 0x08)) { in ms_write_bytes()
368 if (!(val & 0x80)) { in ms_write_bytes()
378 *int_reg = ucr->rsp_buf[1] & 0x0F; in ms_write_bytes()
380 return 0; in ms_write_bytes()
390 dev_dbg(ms_dev(host), "%s: tpc = 0x%02x\n", __func__, tpc); in ms_read_bytes()
394 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_read_bytes()
395 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_BYTE_CNT, 0xFF, cnt); in ms_read_bytes()
396 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_TRANS_CFG, 0xFF, cfg); in ms_read_bytes()
398 0x01, PINGPONG_BUFFER); in ms_read_bytes()
401 0xFF, MS_TRANSFER_START | MS_TM_READ_BYTES); in ms_read_bytes()
404 for (i = 0; i < cnt - 1; i++) in ms_read_bytes()
405 rtsx_usb_add_cmd(ucr, READ_REG_CMD, PPBUF_BASE2 + i, 0, 0); in ms_read_bytes()
407 rtsx_usb_add_cmd(ucr, READ_REG_CMD, PPBUF_BASE2 + cnt, 0, 0); in ms_read_bytes()
410 PPBUF_BASE2 + cnt - 1, 0, 0); in ms_read_bytes()
412 rtsx_usb_add_cmd(ucr, READ_REG_CMD, MS_TRANS_CFG, 0, 0); in ms_read_bytes()
419 if (err || (ucr->rsp_buf[0] & MS_TRANSFER_ERR)) { in ms_read_bytes()
423 dev_dbg(ms_dev(host), "MS_TRANS_CFG: 0x%02x\n", val); in ms_read_bytes()
426 *int_reg = val & 0x0F; in ms_read_bytes()
432 if (!(tpc & 0x08)) { in ms_read_bytes()
436 if (!(val & 0x80)) { in ms_read_bytes()
446 for (i = 0; i < cnt; i++) in ms_read_bytes()
451 *int_reg = *ptr & 0x0F; in ms_read_bytes()
453 return 0; in ms_read_bytes()
459 int err = 0; in rtsx_usb_ms_issue_cmd()
460 u8 cfg = 0, int_reg; in rtsx_usb_ms_issue_cmd()
480 if (err < 0) in rtsx_usb_ms_issue_cmd()
487 if (err < 0) in rtsx_usb_ms_issue_cmd()
500 dev_dbg(ms_dev(host), "int_reg: 0x%02x\n", req->int_reg); in rtsx_usb_ms_issue_cmd()
503 return 0; in rtsx_usb_ms_issue_cmd()
556 unsigned int clock = 0; in rtsx_usb_ms_set_param()
557 u8 ssc_depth = 0; in rtsx_usb_ms_set_param()
594 err = rtsx_usb_write_register(ucr, MS_CFG, 0x5A, in rtsx_usb_ms_set_param()
596 if (err < 0) in rtsx_usb_ms_set_param()
602 err = rtsx_usb_write_register(ucr, MS_CFG, 0x5A, in rtsx_usb_ms_set_param()
605 if (err < 0) in rtsx_usb_ms_set_param()
614 if (err < 0) { in rtsx_usb_ms_set_param()
667 return 0; in rtsx_usb_ms_suspend()
678 return 0; in rtsx_usb_ms_resume()
688 return 0; in rtsx_usb_ms_runtime_suspend()
693 return 0; in rtsx_usb_ms_runtime_suspend()
702 return 0; in rtsx_usb_ms_runtime_resume()
706 return 0; in rtsx_usb_ms_runtime_resume()
800 return 0; in rtsx_usb_ms_drv_probe()