ucr                26 drivers/memstick/host/rtsx_usb_ms.c 	struct rtsx_ucr	*ucr;
ucr                49 drivers/memstick/host/rtsx_usb_ms.c 	struct rtsx_ucr *ucr = host->ucr;
ucr                50 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_ep0_write_register(ucr, CARD_STOP,
ucr                54 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_clear_dma_err(ucr);
ucr                55 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_clear_fsm_err(ucr);
ucr                62 drivers/memstick/host/rtsx_usb_ms.c 	struct rtsx_ucr *ucr = host->ucr;
ucr                67 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_init_cmd(ucr);
ucr                71 drivers/memstick/host/rtsx_usb_ms.c 		rtsx_usb_add_cmd(ucr, READ_REG_CMD, i, 0, 0);
ucr                75 drivers/memstick/host/rtsx_usb_ms.c 		rtsx_usb_add_cmd(ucr, READ_REG_CMD, i, 0, 0);
ucr                79 drivers/memstick/host/rtsx_usb_ms.c 		rtsx_usb_add_cmd(ucr, READ_REG_CMD, i, 0, 0);
ucr                82 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, READ_REG_CMD, CARD_DATA_SOURCE, 0, 0);
ucr                83 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, READ_REG_CMD, CARD_SELECT, 0, 0);
ucr                84 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, READ_REG_CMD, CARD_CLK_EN, 0, 0);
ucr                85 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, READ_REG_CMD, CARD_PWR_CTL, 0, 0);
ucr                87 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_send_cmd(ucr, MODE_CR, 100);
ucr                88 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_get_rsp(ucr, 21, 100);
ucr                90 drivers/memstick/host/rtsx_usb_ms.c 	ptr = ucr->rsp_buf;
ucr               112 drivers/memstick/host/rtsx_usb_ms.c static int ms_pull_ctl_disable_lqfp48(struct rtsx_ucr *ucr)
ucr               114 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_init_cmd(ucr);
ucr               116 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL1, 0xFF, 0x55);
ucr               117 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL2, 0xFF, 0x55);
ucr               118 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL3, 0xFF, 0x95);
ucr               119 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL4, 0xFF, 0x55);
ucr               120 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL5, 0xFF, 0x55);
ucr               121 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL6, 0xFF, 0xA5);
ucr               123 drivers/memstick/host/rtsx_usb_ms.c 	return rtsx_usb_send_cmd(ucr, MODE_C, 100);
ucr               126 drivers/memstick/host/rtsx_usb_ms.c static int ms_pull_ctl_disable_qfn24(struct rtsx_ucr *ucr)
ucr               128 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_init_cmd(ucr);
ucr               130 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL1, 0xFF, 0x65);
ucr               131 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL2, 0xFF, 0x55);
ucr               132 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL3, 0xFF, 0x95);
ucr               133 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL4, 0xFF, 0x55);
ucr               134 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL5, 0xFF, 0x56);
ucr               135 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL6, 0xFF, 0x59);
ucr               137 drivers/memstick/host/rtsx_usb_ms.c 	return rtsx_usb_send_cmd(ucr, MODE_C, 100);
ucr               140 drivers/memstick/host/rtsx_usb_ms.c static int ms_pull_ctl_enable_lqfp48(struct rtsx_ucr *ucr)
ucr               142 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_init_cmd(ucr);
ucr               144 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL1, 0xFF, 0x55);
ucr               145 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL2, 0xFF, 0x55);
ucr               146 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL3, 0xFF, 0x95);
ucr               147 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL4, 0xFF, 0x55);
ucr               148 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL5, 0xFF, 0x55);
ucr               149 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL6, 0xFF, 0xA5);
ucr               151 drivers/memstick/host/rtsx_usb_ms.c 	return rtsx_usb_send_cmd(ucr, MODE_C, 100);
ucr               154 drivers/memstick/host/rtsx_usb_ms.c static int ms_pull_ctl_enable_qfn24(struct rtsx_ucr *ucr)
ucr               156 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_init_cmd(ucr);
ucr               158 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL1, 0xFF, 0x65);
ucr               159 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL2, 0xFF, 0x55);
ucr               160 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL3, 0xFF, 0x95);
ucr               161 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL4, 0xFF, 0x55);
ucr               162 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL5, 0xFF, 0x55);
ucr               163 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL6, 0xFF, 0x59);
ucr               165 drivers/memstick/host/rtsx_usb_ms.c 	return rtsx_usb_send_cmd(ucr, MODE_C, 100);
ucr               170 drivers/memstick/host/rtsx_usb_ms.c 	struct rtsx_ucr *ucr = host->ucr;
ucr               175 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_init_cmd(ucr);
ucr               176 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_SELECT, 0x07, MS_MOD_SEL);
ucr               177 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_SHARE_MODE,
ucr               179 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_CLK_EN,
ucr               181 drivers/memstick/host/rtsx_usb_ms.c 	err = rtsx_usb_send_cmd(ucr, MODE_C, 100);
ucr               185 drivers/memstick/host/rtsx_usb_ms.c 	if (CHECK_PKG(ucr, LQFP48))
ucr               186 drivers/memstick/host/rtsx_usb_ms.c 		err = ms_pull_ctl_enable_lqfp48(ucr);
ucr               188 drivers/memstick/host/rtsx_usb_ms.c 		err = ms_pull_ctl_enable_qfn24(ucr);
ucr               192 drivers/memstick/host/rtsx_usb_ms.c 	err = rtsx_usb_write_register(ucr, CARD_PWR_CTL,
ucr               199 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_init_cmd(ucr);
ucr               200 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PWR_CTL,
ucr               202 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_OE,
ucr               205 drivers/memstick/host/rtsx_usb_ms.c 	return rtsx_usb_send_cmd(ucr, MODE_C, 100);
ucr               210 drivers/memstick/host/rtsx_usb_ms.c 	struct rtsx_ucr *ucr = host->ucr;
ucr               215 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_init_cmd(ucr);
ucr               217 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_CLK_EN, MS_CLK_EN, 0);
ucr               218 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_OE, MS_OUTPUT_EN, 0);
ucr               220 drivers/memstick/host/rtsx_usb_ms.c 	err = rtsx_usb_send_cmd(ucr, MODE_C, 100);
ucr               224 drivers/memstick/host/rtsx_usb_ms.c 	if (CHECK_PKG(ucr, LQFP48))
ucr               225 drivers/memstick/host/rtsx_usb_ms.c 		return ms_pull_ctl_disable_lqfp48(ucr);
ucr               227 drivers/memstick/host/rtsx_usb_ms.c 	return ms_pull_ctl_disable_qfn24(ucr);
ucr               233 drivers/memstick/host/rtsx_usb_ms.c 	struct rtsx_ucr *ucr = host->ucr;
ucr               252 drivers/memstick/host/rtsx_usb_ms.c 		pipe = usb_rcvbulkpipe(ucr->pusb_dev, EP_BULK_IN);
ucr               260 drivers/memstick/host/rtsx_usb_ms.c 		pipe = usb_sndbulkpipe(ucr->pusb_dev, EP_BULK_OUT);
ucr               263 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_init_cmd(ucr);
ucr               265 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_TPC, 0xFF, tpc);
ucr               267 drivers/memstick/host/rtsx_usb_ms.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_SECTOR_CNT_H,
ucr               269 drivers/memstick/host/rtsx_usb_ms.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_SECTOR_CNT_L,
ucr               272 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_TRANS_CFG, 0xFF, cfg);
ucr               274 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MC_DMA_TC3,
ucr               276 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MC_DMA_TC2,
ucr               278 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MC_DMA_TC1,
ucr               280 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MC_DMA_TC0, 0xFF,
ucr               282 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MC_DMA_CTL,
ucr               284 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_DATA_SOURCE,
ucr               287 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_TRANSFER,
ucr               289 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, CHECK_REG_CMD, MS_TRANSFER,
ucr               292 drivers/memstick/host/rtsx_usb_ms.c 	err = rtsx_usb_send_cmd(ucr, flag | STAGE_MS_STATUS, 100);
ucr               296 drivers/memstick/host/rtsx_usb_ms.c 	err = rtsx_usb_transfer_data(ucr, pipe, sg, length,
ucr               301 drivers/memstick/host/rtsx_usb_ms.c 	err = rtsx_usb_get_rsp(ucr, 3, 15000);
ucr               305 drivers/memstick/host/rtsx_usb_ms.c 	if (ucr->rsp_buf[0] & MS_TRANSFER_ERR ||
ucr               306 drivers/memstick/host/rtsx_usb_ms.c 	    ucr->rsp_buf[1] & (MS_CRC16_ERR | MS_RDY_TIMEOUT)) {
ucr               319 drivers/memstick/host/rtsx_usb_ms.c 	struct rtsx_ucr *ucr = host->ucr;
ucr               324 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_init_cmd(ucr);
ucr               327 drivers/memstick/host/rtsx_usb_ms.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD,
ucr               331 drivers/memstick/host/rtsx_usb_ms.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD,
ucr               334 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_TPC, 0xFF, tpc);
ucr               335 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_BYTE_CNT, 0xFF, cnt);
ucr               336 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_TRANS_CFG, 0xFF, cfg);
ucr               337 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_DATA_SOURCE,
ucr               340 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_TRANSFER,
ucr               342 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, CHECK_REG_CMD, MS_TRANSFER,
ucr               344 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, READ_REG_CMD, MS_TRANS_CFG, 0, 0);
ucr               346 drivers/memstick/host/rtsx_usb_ms.c 	err = rtsx_usb_send_cmd(ucr, MODE_CR, 100);
ucr               350 drivers/memstick/host/rtsx_usb_ms.c 	err = rtsx_usb_get_rsp(ucr, 2, 5000);
ucr               351 drivers/memstick/host/rtsx_usb_ms.c 	if (err || (ucr->rsp_buf[0] & MS_TRANSFER_ERR)) {
ucr               354 drivers/memstick/host/rtsx_usb_ms.c 		rtsx_usb_ep0_read_register(ucr, MS_TRANS_CFG, &val);
ucr               378 drivers/memstick/host/rtsx_usb_ms.c 		*int_reg = ucr->rsp_buf[1] & 0x0F;
ucr               386 drivers/memstick/host/rtsx_usb_ms.c 	struct rtsx_ucr *ucr = host->ucr;
ucr               392 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_init_cmd(ucr);
ucr               394 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_TPC, 0xFF, tpc);
ucr               395 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_BYTE_CNT, 0xFF, cnt);
ucr               396 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_TRANS_CFG, 0xFF, cfg);
ucr               397 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_DATA_SOURCE,
ucr               400 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_TRANSFER,
ucr               402 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, CHECK_REG_CMD, MS_TRANSFER,
ucr               405 drivers/memstick/host/rtsx_usb_ms.c 		rtsx_usb_add_cmd(ucr, READ_REG_CMD, PPBUF_BASE2 + i, 0, 0);
ucr               407 drivers/memstick/host/rtsx_usb_ms.c 		rtsx_usb_add_cmd(ucr, READ_REG_CMD, PPBUF_BASE2 + cnt, 0, 0);
ucr               409 drivers/memstick/host/rtsx_usb_ms.c 		rtsx_usb_add_cmd(ucr, READ_REG_CMD,
ucr               412 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_add_cmd(ucr, READ_REG_CMD, MS_TRANS_CFG, 0, 0);
ucr               414 drivers/memstick/host/rtsx_usb_ms.c 	err = rtsx_usb_send_cmd(ucr, MODE_CR, 100);
ucr               418 drivers/memstick/host/rtsx_usb_ms.c 	err = rtsx_usb_get_rsp(ucr, cnt + 2, 5000);
ucr               419 drivers/memstick/host/rtsx_usb_ms.c 	if (err || (ucr->rsp_buf[0] & MS_TRANSFER_ERR)) {
ucr               422 drivers/memstick/host/rtsx_usb_ms.c 		rtsx_usb_ep0_read_register(ucr, MS_TRANS_CFG, &val);
ucr               445 drivers/memstick/host/rtsx_usb_ms.c 	ptr = ucr->rsp_buf + 1;
ucr               510 drivers/memstick/host/rtsx_usb_ms.c 	struct rtsx_ucr *ucr = host->ucr;
ucr               521 drivers/memstick/host/rtsx_usb_ms.c 				mutex_lock(&ucr->dev_mutex);
ucr               523 drivers/memstick/host/rtsx_usb_ms.c 				if (rtsx_usb_card_exclusive_check(ucr,
ucr               530 drivers/memstick/host/rtsx_usb_ms.c 				mutex_unlock(&ucr->dev_mutex);
ucr               555 drivers/memstick/host/rtsx_usb_ms.c 	struct rtsx_ucr *ucr = host->ucr;
ucr               564 drivers/memstick/host/rtsx_usb_ms.c 	mutex_lock(&ucr->dev_mutex);
ucr               566 drivers/memstick/host/rtsx_usb_ms.c 	err = rtsx_usb_card_exclusive_check(ucr, RTSX_USB_MS_CARD);
ucr               594 drivers/memstick/host/rtsx_usb_ms.c 			err = rtsx_usb_write_register(ucr, MS_CFG, 0x5A,
ucr               602 drivers/memstick/host/rtsx_usb_ms.c 			err = rtsx_usb_write_register(ucr, MS_CFG, 0x5A,
ucr               612 drivers/memstick/host/rtsx_usb_ms.c 		err = rtsx_usb_switch_clock(ucr, clock,
ucr               628 drivers/memstick/host/rtsx_usb_ms.c 	mutex_unlock(&ucr->dev_mutex);
ucr               720 drivers/memstick/host/rtsx_usb_ms.c 	struct rtsx_ucr *ucr = host->ucr;
ucr               728 drivers/memstick/host/rtsx_usb_ms.c 	mutex_lock(&ucr->dev_mutex);
ucr               731 drivers/memstick/host/rtsx_usb_ms.c 	err = rtsx_usb_read_register(ucr, CARD_INT_PEND, &val);
ucr               733 drivers/memstick/host/rtsx_usb_ms.c 		mutex_unlock(&ucr->dev_mutex);
ucr               738 drivers/memstick/host/rtsx_usb_ms.c 	rtsx_usb_write_register(ucr, CARD_INT_PEND,
ucr               742 drivers/memstick/host/rtsx_usb_ms.c 	mutex_unlock(&ucr->dev_mutex);
ucr               760 drivers/memstick/host/rtsx_usb_ms.c 	struct rtsx_ucr *ucr;
ucr               763 drivers/memstick/host/rtsx_usb_ms.c 	ucr = usb_get_intfdata(to_usb_interface(pdev->dev.parent));
ucr               764 drivers/memstick/host/rtsx_usb_ms.c 	if (!ucr)
ucr               775 drivers/memstick/host/rtsx_usb_ms.c 	host->ucr = ucr;
ucr                34 drivers/misc/cardreader/rtsx_usb.c 	struct rtsx_ucr *ucr = from_timer(ucr, t, sg_timer);
ucr                36 drivers/misc/cardreader/rtsx_usb.c 	dev_dbg(&ucr->pusb_intf->dev, "%s: sg transfer timed out", __func__);
ucr                37 drivers/misc/cardreader/rtsx_usb.c 	usb_sg_cancel(&ucr->current_sg);
ucr                40 drivers/misc/cardreader/rtsx_usb.c static int rtsx_usb_bulk_transfer_sglist(struct rtsx_ucr *ucr,
ucr                46 drivers/misc/cardreader/rtsx_usb.c 	dev_dbg(&ucr->pusb_intf->dev, "%s: xfer %u bytes, %d entries\n",
ucr                48 drivers/misc/cardreader/rtsx_usb.c 	ret = usb_sg_init(&ucr->current_sg, ucr->pusb_dev, pipe, 0,
ucr                53 drivers/misc/cardreader/rtsx_usb.c 	ucr->sg_timer.expires = jiffies + msecs_to_jiffies(timeout);
ucr                54 drivers/misc/cardreader/rtsx_usb.c 	add_timer(&ucr->sg_timer);
ucr                55 drivers/misc/cardreader/rtsx_usb.c 	usb_sg_wait(&ucr->current_sg);
ucr                56 drivers/misc/cardreader/rtsx_usb.c 	if (!del_timer_sync(&ucr->sg_timer))
ucr                59 drivers/misc/cardreader/rtsx_usb.c 		ret = ucr->current_sg.status;
ucr                62 drivers/misc/cardreader/rtsx_usb.c 		*act_len = ucr->current_sg.bytes;
ucr                67 drivers/misc/cardreader/rtsx_usb.c int rtsx_usb_transfer_data(struct rtsx_ucr *ucr, unsigned int pipe,
ucr                75 drivers/misc/cardreader/rtsx_usb.c 		return rtsx_usb_bulk_transfer_sglist(ucr, pipe,
ucr                79 drivers/misc/cardreader/rtsx_usb.c 		return usb_bulk_msg(ucr->pusb_dev, pipe, buf, len, act_len,
ucr                84 drivers/misc/cardreader/rtsx_usb.c static inline void rtsx_usb_seq_cmd_hdr(struct rtsx_ucr *ucr,
ucr                87 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_cmd_hdr_tag(ucr);
ucr                89 drivers/misc/cardreader/rtsx_usb.c 	ucr->cmd_buf[PACKET_TYPE] = seq_type;
ucr                90 drivers/misc/cardreader/rtsx_usb.c 	ucr->cmd_buf[5] = (u8)(len >> 8);
ucr                91 drivers/misc/cardreader/rtsx_usb.c 	ucr->cmd_buf[6] = (u8)len;
ucr                92 drivers/misc/cardreader/rtsx_usb.c 	ucr->cmd_buf[8] = (u8)(addr >> 8);
ucr                93 drivers/misc/cardreader/rtsx_usb.c 	ucr->cmd_buf[9] = (u8)addr;
ucr                96 drivers/misc/cardreader/rtsx_usb.c 		ucr->cmd_buf[STAGE_FLAG] = 0;
ucr                98 drivers/misc/cardreader/rtsx_usb.c 		ucr->cmd_buf[STAGE_FLAG] = STAGE_R;
ucr               101 drivers/misc/cardreader/rtsx_usb.c static int rtsx_usb_seq_write_register(struct rtsx_ucr *ucr,
ucr               112 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_seq_cmd_hdr(ucr, addr, len, SEQ_WRITE);
ucr               113 drivers/misc/cardreader/rtsx_usb.c 	memcpy(ucr->cmd_buf + SEQ_WRITE_DATA_OFFSET, data, len);
ucr               115 drivers/misc/cardreader/rtsx_usb.c 	return rtsx_usb_transfer_data(ucr,
ucr               116 drivers/misc/cardreader/rtsx_usb.c 			usb_sndbulkpipe(ucr->pusb_dev, EP_BULK_OUT),
ucr               117 drivers/misc/cardreader/rtsx_usb.c 			ucr->cmd_buf, cmd_len, 0, NULL, 100);
ucr               120 drivers/misc/cardreader/rtsx_usb.c static int rtsx_usb_seq_read_register(struct rtsx_ucr *ucr,
ucr               132 drivers/misc/cardreader/rtsx_usb.c 		rtsx_usb_seq_cmd_hdr(ucr, addr, len, SEQ_READ);
ucr               133 drivers/misc/cardreader/rtsx_usb.c 		ret = rtsx_usb_transfer_data(ucr,
ucr               134 drivers/misc/cardreader/rtsx_usb.c 				usb_sndbulkpipe(ucr->pusb_dev, EP_BULK_OUT),
ucr               135 drivers/misc/cardreader/rtsx_usb.c 				ucr->cmd_buf, 12, 0, NULL, 100);
ucr               139 drivers/misc/cardreader/rtsx_usb.c 		ret = rtsx_usb_transfer_data(ucr,
ucr               140 drivers/misc/cardreader/rtsx_usb.c 				usb_rcvbulkpipe(ucr->pusb_dev, EP_BULK_IN),
ucr               148 drivers/misc/cardreader/rtsx_usb.c 		ret = rtsx_usb_read_register(ucr, addr + rsp_len + i,
ucr               157 drivers/misc/cardreader/rtsx_usb.c int rtsx_usb_read_ppbuf(struct rtsx_ucr *ucr, u8 *buf, int buf_len)
ucr               159 drivers/misc/cardreader/rtsx_usb.c 	return rtsx_usb_seq_read_register(ucr, PPBUF_BASE2, (u16)buf_len, buf);
ucr               163 drivers/misc/cardreader/rtsx_usb.c int rtsx_usb_write_ppbuf(struct rtsx_ucr *ucr, u8 *buf, int buf_len)
ucr               165 drivers/misc/cardreader/rtsx_usb.c 	return rtsx_usb_seq_write_register(ucr, PPBUF_BASE2, (u16)buf_len, buf);
ucr               169 drivers/misc/cardreader/rtsx_usb.c int rtsx_usb_ep0_write_register(struct rtsx_ucr *ucr, u16 addr,
ucr               178 drivers/misc/cardreader/rtsx_usb.c 	return usb_control_msg(ucr->pusb_dev,
ucr               179 drivers/misc/cardreader/rtsx_usb.c 			usb_sndctrlpipe(ucr->pusb_dev, 0), RTSX_USB_REQ_REG_OP,
ucr               185 drivers/misc/cardreader/rtsx_usb.c int rtsx_usb_ep0_read_register(struct rtsx_ucr *ucr, u16 addr, u8 *data)
ucr               201 drivers/misc/cardreader/rtsx_usb.c 	ret = usb_control_msg(ucr->pusb_dev,
ucr               202 drivers/misc/cardreader/rtsx_usb.c 			usb_rcvctrlpipe(ucr->pusb_dev, 0), RTSX_USB_REQ_REG_OP,
ucr               212 drivers/misc/cardreader/rtsx_usb.c void rtsx_usb_add_cmd(struct rtsx_ucr *ucr, u8 cmd_type, u16 reg_addr,
ucr               217 drivers/misc/cardreader/rtsx_usb.c 	if (ucr->cmd_idx < (IOBUF_SIZE - CMD_OFFSET) / 4) {
ucr               218 drivers/misc/cardreader/rtsx_usb.c 		i = CMD_OFFSET + ucr->cmd_idx * 4;
ucr               220 drivers/misc/cardreader/rtsx_usb.c 		ucr->cmd_buf[i++] = ((cmd_type & 0x03) << 6) |
ucr               222 drivers/misc/cardreader/rtsx_usb.c 		ucr->cmd_buf[i++] = (u8)reg_addr;
ucr               223 drivers/misc/cardreader/rtsx_usb.c 		ucr->cmd_buf[i++] = mask;
ucr               224 drivers/misc/cardreader/rtsx_usb.c 		ucr->cmd_buf[i++] = data;
ucr               226 drivers/misc/cardreader/rtsx_usb.c 		ucr->cmd_idx++;
ucr               231 drivers/misc/cardreader/rtsx_usb.c int rtsx_usb_send_cmd(struct rtsx_ucr *ucr, u8 flag, int timeout)
ucr               235 drivers/misc/cardreader/rtsx_usb.c 	ucr->cmd_buf[CNT_H] = (u8)(ucr->cmd_idx >> 8);
ucr               236 drivers/misc/cardreader/rtsx_usb.c 	ucr->cmd_buf[CNT_L] = (u8)(ucr->cmd_idx);
ucr               237 drivers/misc/cardreader/rtsx_usb.c 	ucr->cmd_buf[STAGE_FLAG] = flag;
ucr               239 drivers/misc/cardreader/rtsx_usb.c 	ret = rtsx_usb_transfer_data(ucr,
ucr               240 drivers/misc/cardreader/rtsx_usb.c 			usb_sndbulkpipe(ucr->pusb_dev, EP_BULK_OUT),
ucr               241 drivers/misc/cardreader/rtsx_usb.c 			ucr->cmd_buf, ucr->cmd_idx * 4 + CMD_OFFSET,
ucr               244 drivers/misc/cardreader/rtsx_usb.c 		rtsx_usb_clear_fsm_err(ucr);
ucr               252 drivers/misc/cardreader/rtsx_usb.c int rtsx_usb_get_rsp(struct rtsx_ucr *ucr, int rsp_len, int timeout)
ucr               259 drivers/misc/cardreader/rtsx_usb.c 	return rtsx_usb_transfer_data(ucr,
ucr               260 drivers/misc/cardreader/rtsx_usb.c 			usb_rcvbulkpipe(ucr->pusb_dev, EP_BULK_IN),
ucr               261 drivers/misc/cardreader/rtsx_usb.c 			ucr->rsp_buf, rsp_len, 0, NULL, timeout);
ucr               265 drivers/misc/cardreader/rtsx_usb.c static int rtsx_usb_get_status_with_bulk(struct rtsx_ucr *ucr, u16 *status)
ucr               269 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_init_cmd(ucr);
ucr               270 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, READ_REG_CMD, CARD_EXIST, 0x00, 0x00);
ucr               271 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, READ_REG_CMD, OCPSTAT, 0x00, 0x00);
ucr               272 drivers/misc/cardreader/rtsx_usb.c 	ret = rtsx_usb_send_cmd(ucr, MODE_CR, 100);
ucr               276 drivers/misc/cardreader/rtsx_usb.c 	ret = rtsx_usb_get_rsp(ucr, 2, 100);
ucr               280 drivers/misc/cardreader/rtsx_usb.c 	*status = ((ucr->rsp_buf[0] >> 2) & 0x0f) |
ucr               281 drivers/misc/cardreader/rtsx_usb.c 		  ((ucr->rsp_buf[1] & 0x03) << 4);
ucr               286 drivers/misc/cardreader/rtsx_usb.c int rtsx_usb_get_card_status(struct rtsx_ucr *ucr, u16 *status)
ucr               299 drivers/misc/cardreader/rtsx_usb.c 		ret = usb_control_msg(ucr->pusb_dev,
ucr               300 drivers/misc/cardreader/rtsx_usb.c 				usb_rcvctrlpipe(ucr->pusb_dev, 0),
ucr               308 drivers/misc/cardreader/rtsx_usb.c 		ret = rtsx_usb_get_status_with_bulk(ucr, status);
ucr               319 drivers/misc/cardreader/rtsx_usb.c static int rtsx_usb_write_phy_register(struct rtsx_ucr *ucr, u8 addr, u8 val)
ucr               321 drivers/misc/cardreader/rtsx_usb.c 	dev_dbg(&ucr->pusb_intf->dev, "Write 0x%x to phy register 0x%x\n",
ucr               324 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_init_cmd(ucr);
ucr               326 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, HS_VSTAIN, 0xFF, val);
ucr               327 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, HS_VCONTROL, 0xFF, addr & 0x0F);
ucr               328 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, HS_VLOADM, 0xFF, 0x00);
ucr               329 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, HS_VLOADM, 0xFF, 0x00);
ucr               330 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, HS_VLOADM, 0xFF, 0x01);
ucr               331 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, HS_VCONTROL,
ucr               333 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, HS_VLOADM, 0xFF, 0x00);
ucr               334 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, HS_VLOADM, 0xFF, 0x00);
ucr               335 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, HS_VLOADM, 0xFF, 0x01);
ucr               337 drivers/misc/cardreader/rtsx_usb.c 	return rtsx_usb_send_cmd(ucr, MODE_C, 100);
ucr               340 drivers/misc/cardreader/rtsx_usb.c int rtsx_usb_write_register(struct rtsx_ucr *ucr, u16 addr, u8 mask, u8 data)
ucr               342 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_init_cmd(ucr);
ucr               343 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, addr, mask, data);
ucr               344 drivers/misc/cardreader/rtsx_usb.c 	return rtsx_usb_send_cmd(ucr, MODE_C, 100);
ucr               348 drivers/misc/cardreader/rtsx_usb.c int rtsx_usb_read_register(struct rtsx_ucr *ucr, u16 addr, u8 *data)
ucr               355 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_init_cmd(ucr);
ucr               356 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, READ_REG_CMD, addr, 0, 0);
ucr               357 drivers/misc/cardreader/rtsx_usb.c 	ret = rtsx_usb_send_cmd(ucr, MODE_CR, 100);
ucr               361 drivers/misc/cardreader/rtsx_usb.c 	ret = rtsx_usb_get_rsp(ucr, 1, 100);
ucr               366 drivers/misc/cardreader/rtsx_usb.c 		*data = ucr->rsp_buf[0];
ucr               389 drivers/misc/cardreader/rtsx_usb.c int rtsx_usb_switch_clock(struct rtsx_ucr *ucr, unsigned int card_clock,
ucr               396 drivers/misc/cardreader/rtsx_usb.c 		ucr->cur_clk = 0;
ucr               408 drivers/misc/cardreader/rtsx_usb.c 	ret = rtsx_usb_write_register(ucr, SD_CFG1,
ucr               414 drivers/misc/cardreader/rtsx_usb.c 	dev_dbg(&ucr->pusb_intf->dev,
ucr               419 drivers/misc/cardreader/rtsx_usb.c 	dev_dbg(&ucr->pusb_intf->dev,
ucr               421 drivers/misc/cardreader/rtsx_usb.c 			card_clock, ucr->cur_clk);
ucr               423 drivers/misc/cardreader/rtsx_usb.c 	if (card_clock == ucr->cur_clk)
ucr               442 drivers/misc/cardreader/rtsx_usb.c 	dev_dbg(&ucr->pusb_intf->dev, "n = %d, div = %d\n", n, div);
ucr               448 drivers/misc/cardreader/rtsx_usb.c 	dev_dbg(&ucr->pusb_intf->dev, "ssc_depth = %d\n", ssc_depth);
ucr               450 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_init_cmd(ucr);
ucr               451 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CLK_DIV, CLK_CHANGE, CLK_CHANGE);
ucr               452 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CLK_DIV,
ucr               454 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SSC_CTL1, SSC_RSTB, 0);
ucr               455 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SSC_CTL2,
ucr               457 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SSC_DIV_N_0, 0xFF, n);
ucr               458 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SSC_CTL1, SSC_RSTB, SSC_RSTB);
ucr               460 drivers/misc/cardreader/rtsx_usb.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_VPCLK0_CTL,
ucr               462 drivers/misc/cardreader/rtsx_usb.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_VPCLK0_CTL,
ucr               466 drivers/misc/cardreader/rtsx_usb.c 	ret = rtsx_usb_send_cmd(ucr, MODE_C, 2000);
ucr               470 drivers/misc/cardreader/rtsx_usb.c 	ret = rtsx_usb_write_register(ucr, SSC_CTL1, 0xff,
ucr               478 drivers/misc/cardreader/rtsx_usb.c 	ret = rtsx_usb_write_register(ucr, CLK_DIV, CLK_CHANGE, 0);
ucr               482 drivers/misc/cardreader/rtsx_usb.c 	ucr->cur_clk = card_clock;
ucr               488 drivers/misc/cardreader/rtsx_usb.c int rtsx_usb_card_exclusive_check(struct rtsx_ucr *ucr, int card)
ucr               497 drivers/misc/cardreader/rtsx_usb.c 	ret = rtsx_usb_get_card_status(ucr, &val);
ucr               512 drivers/misc/cardreader/rtsx_usb.c static int rtsx_usb_reset_chip(struct rtsx_ucr *ucr)
ucr               517 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_init_cmd(ucr);
ucr               519 drivers/misc/cardreader/rtsx_usb.c 	if (CHECK_PKG(ucr, LQFP48)) {
ucr               520 drivers/misc/cardreader/rtsx_usb.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PWR_CTL,
ucr               522 drivers/misc/cardreader/rtsx_usb.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PWR_CTL,
ucr               524 drivers/misc/cardreader/rtsx_usb.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL1,
ucr               526 drivers/misc/cardreader/rtsx_usb.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL5,
ucr               528 drivers/misc/cardreader/rtsx_usb.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL6,
ucr               532 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SYS_DUMMY0, NYET_MSAK, NYET_EN);
ucr               533 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CD_DEGLITCH_WIDTH, 0xFF, 0x08);
ucr               534 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD,
ucr               536 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD30_DRIVE_SEL,
ucr               538 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD,
ucr               540 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, LDO_POWER_CFG, 0xE0, 0x0);
ucr               542 drivers/misc/cardreader/rtsx_usb.c 	if (ucr->is_rts5179)
ucr               543 drivers/misc/cardreader/rtsx_usb.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD,
ucr               546 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_DMA1_CTL,
ucr               548 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_INT_PEND,
ucr               552 drivers/misc/cardreader/rtsx_usb.c 	ret = rtsx_usb_send_cmd(ucr, MODE_C, 100);
ucr               557 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_read_register(ucr, CFG_MODE, &val);
ucr               559 drivers/misc/cardreader/rtsx_usb.c 		ret = rtsx_usb_write_phy_register(ucr, 0xC2, 0x7C);
ucr               567 drivers/misc/cardreader/rtsx_usb.c static int rtsx_usb_init_chip(struct rtsx_ucr *ucr)
ucr               572 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_clear_fsm_err(ucr);
ucr               575 drivers/misc/cardreader/rtsx_usb.c 	ret = rtsx_usb_write_register(ucr,
ucr               581 drivers/misc/cardreader/rtsx_usb.c 	ret = rtsx_usb_write_register(ucr, CLK_DIV, CLK_CHANGE, 0x00);
ucr               586 drivers/misc/cardreader/rtsx_usb.c 	ret = rtsx_usb_read_register(ucr, HW_VERSION, &val);
ucr               590 drivers/misc/cardreader/rtsx_usb.c 	ucr->ic_version = val & HW_VER_MASK;
ucr               593 drivers/misc/cardreader/rtsx_usb.c 	ret = rtsx_usb_read_register(ucr, CARD_SHARE_MODE, &val);
ucr               598 drivers/misc/cardreader/rtsx_usb.c 		ucr->package = LQFP48;
ucr               599 drivers/misc/cardreader/rtsx_usb.c 		dev_dbg(&ucr->pusb_intf->dev, "Package: LQFP48\n");
ucr               601 drivers/misc/cardreader/rtsx_usb.c 		ucr->package = QFN24;
ucr               602 drivers/misc/cardreader/rtsx_usb.c 		dev_dbg(&ucr->pusb_intf->dev, "Package: QFN24\n");
ucr               606 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_read_register(ucr, CFG_MODE_1, &val);
ucr               608 drivers/misc/cardreader/rtsx_usb.c 		ucr->is_rts5179 = true;
ucr               609 drivers/misc/cardreader/rtsx_usb.c 		dev_dbg(&ucr->pusb_intf->dev, "Device is rts5179\n");
ucr               611 drivers/misc/cardreader/rtsx_usb.c 		ucr->is_rts5179 = false;
ucr               614 drivers/misc/cardreader/rtsx_usb.c 	return rtsx_usb_reset_chip(ucr);
ucr               621 drivers/misc/cardreader/rtsx_usb.c 	struct rtsx_ucr *ucr;
ucr               628 drivers/misc/cardreader/rtsx_usb.c 	ucr = devm_kzalloc(&intf->dev, sizeof(*ucr), GFP_KERNEL);
ucr               629 drivers/misc/cardreader/rtsx_usb.c 	if (!ucr)
ucr               632 drivers/misc/cardreader/rtsx_usb.c 	ucr->pusb_dev = usb_dev;
ucr               634 drivers/misc/cardreader/rtsx_usb.c 	ucr->iobuf = usb_alloc_coherent(ucr->pusb_dev, IOBUF_SIZE,
ucr               635 drivers/misc/cardreader/rtsx_usb.c 			GFP_KERNEL, &ucr->iobuf_dma);
ucr               636 drivers/misc/cardreader/rtsx_usb.c 	if (!ucr->iobuf)
ucr               639 drivers/misc/cardreader/rtsx_usb.c 	usb_set_intfdata(intf, ucr);
ucr               641 drivers/misc/cardreader/rtsx_usb.c 	ucr->vendor_id = id->idVendor;
ucr               642 drivers/misc/cardreader/rtsx_usb.c 	ucr->product_id = id->idProduct;
ucr               643 drivers/misc/cardreader/rtsx_usb.c 	ucr->cmd_buf = ucr->rsp_buf = ucr->iobuf;
ucr               645 drivers/misc/cardreader/rtsx_usb.c 	mutex_init(&ucr->dev_mutex);
ucr               647 drivers/misc/cardreader/rtsx_usb.c 	ucr->pusb_intf = intf;
ucr               650 drivers/misc/cardreader/rtsx_usb.c 	ret = rtsx_usb_init_chip(ucr);
ucr               655 drivers/misc/cardreader/rtsx_usb.c 	timer_setup(&ucr->sg_timer, rtsx_usb_sg_timed_out, 0);
ucr               670 drivers/misc/cardreader/rtsx_usb.c 	usb_free_coherent(ucr->pusb_dev, IOBUF_SIZE, ucr->iobuf,
ucr               671 drivers/misc/cardreader/rtsx_usb.c 			ucr->iobuf_dma);
ucr               677 drivers/misc/cardreader/rtsx_usb.c 	struct rtsx_ucr *ucr = (struct rtsx_ucr *)usb_get_intfdata(intf);
ucr               683 drivers/misc/cardreader/rtsx_usb.c 	usb_set_intfdata(ucr->pusb_intf, NULL);
ucr               684 drivers/misc/cardreader/rtsx_usb.c 	usb_free_coherent(ucr->pusb_dev, IOBUF_SIZE, ucr->iobuf,
ucr               685 drivers/misc/cardreader/rtsx_usb.c 			ucr->iobuf_dma);
ucr               691 drivers/misc/cardreader/rtsx_usb.c 	struct rtsx_ucr *ucr =
ucr               699 drivers/misc/cardreader/rtsx_usb.c 		if (mutex_trylock(&ucr->dev_mutex)) {
ucr               700 drivers/misc/cardreader/rtsx_usb.c 			rtsx_usb_get_card_status(ucr, &val);
ucr               701 drivers/misc/cardreader/rtsx_usb.c 			mutex_unlock(&ucr->dev_mutex);
ucr               729 drivers/misc/cardreader/rtsx_usb.c 	struct rtsx_ucr *ucr =
ucr               732 drivers/misc/cardreader/rtsx_usb.c 	rtsx_usb_reset_chip(ucr);
ucr               748 drivers/misc/cardreader/rtsx_usb.c 	struct rtsx_ucr *ucr = (struct rtsx_ucr *)usb_get_intfdata(intf);
ucr               750 drivers/misc/cardreader/rtsx_usb.c 	mutex_lock(&ucr->dev_mutex);
ucr               756 drivers/misc/cardreader/rtsx_usb.c 	struct rtsx_ucr *ucr = (struct rtsx_ucr *)usb_get_intfdata(intf);
ucr               758 drivers/misc/cardreader/rtsx_usb.c 	mutex_unlock(&ucr->dev_mutex);
ucr                35 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_ucr	*ucr;
ucr                66 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_ucr *ucr = host->ucr;
ucr                67 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_ep0_write_register(ucr, CARD_STOP,
ucr                71 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_clear_dma_err(ucr);
ucr                72 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_clear_fsm_err(ucr);
ucr                78 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_ucr *ucr = host->ucr;
ucr                81 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_ep0_read_register(ucr, SD_STAT1, &val);
ucr                83 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_ep0_read_register(ucr, SD_STAT2, &val);
ucr                85 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_ep0_read_register(ucr, SD_BUS_STAT, &val);
ucr                95 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_ucr *ucr = host->ucr;
ucr               102 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_init_cmd(ucr);
ucr               111 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD,
ucr               113 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD,
ucr               115 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD,
ucr               117 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD,
ucr               119 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD,
ucr               125 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_BYTE_CNT_L, 0xFF, (u8)byte_cnt);
ucr               126 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_BYTE_CNT_H,
ucr               128 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_BLOCK_CNT_L, 0xFF, 1);
ucr               129 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_BLOCK_CNT_H, 0xFF, 0);
ucr               131 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_CFG2, 0xFF,
ucr               135 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD,
ucr               138 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_TRANSFER,
ucr               140 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, CHECK_REG_CMD, SD_TRANSFER,
ucr               144 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, READ_REG_CMD, SD_CMD1, 0, 0);
ucr               145 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, READ_REG_CMD, SD_CMD2, 0, 0);
ucr               146 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, READ_REG_CMD, SD_CMD3, 0, 0);
ucr               147 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, READ_REG_CMD, SD_CMD4, 0, 0);
ucr               150 drivers/mmc/host/rtsx_usb_sdmmc.c 	err = rtsx_usb_send_cmd(ucr, MODE_CR, timeout);
ucr               157 drivers/mmc/host/rtsx_usb_sdmmc.c 	err = rtsx_usb_get_rsp(ucr, !cmd ? 1 : 5, timeout);
ucr               158 drivers/mmc/host/rtsx_usb_sdmmc.c 	if (err || (ucr->rsp_buf[0] & SD_TRANSFER_ERR)) {
ucr               164 drivers/mmc/host/rtsx_usb_sdmmc.c 				ucr->rsp_buf[0]);
ucr               175 drivers/mmc/host/rtsx_usb_sdmmc.c 		cmd->resp[0] = get_unaligned_be32(ucr->rsp_buf + 1);
ucr               182 drivers/mmc/host/rtsx_usb_sdmmc.c 		err = rtsx_usb_read_ppbuf(ucr, buf, byte_cnt - (byte_cnt % 2));
ucr               191 drivers/mmc/host/rtsx_usb_sdmmc.c 			return rtsx_usb_read_register(ucr,
ucr               202 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_ucr *ucr = host->ucr;
ucr               210 drivers/mmc/host/rtsx_usb_sdmmc.c 		err = rtsx_usb_write_ppbuf(ucr, buf, buf_len);
ucr               220 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_init_cmd(ucr);
ucr               225 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD,
ucr               227 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD,
ucr               229 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD,
ucr               231 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD,
ucr               233 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD,
ucr               237 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_BYTE_CNT_L, 0xFF, (u8)byte_cnt);
ucr               238 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_BYTE_CNT_H,
ucr               240 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_BLOCK_CNT_L, 0xFF, 1);
ucr               241 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_BLOCK_CNT_H, 0xFF, 0);
ucr               243 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_CFG2, 0xFF,
ucr               246 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD,
ucr               249 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_TRANSFER, 0xFF,
ucr               251 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, CHECK_REG_CMD, SD_TRANSFER,
ucr               255 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, READ_REG_CMD, SD_CMD1, 0, 0);
ucr               256 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, READ_REG_CMD, SD_CMD2, 0, 0);
ucr               257 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, READ_REG_CMD, SD_CMD3, 0, 0);
ucr               258 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, READ_REG_CMD, SD_CMD4, 0, 0);
ucr               261 drivers/mmc/host/rtsx_usb_sdmmc.c 	err = rtsx_usb_send_cmd(ucr, MODE_CR, timeout);
ucr               268 drivers/mmc/host/rtsx_usb_sdmmc.c 	err = rtsx_usb_get_rsp(ucr, !cmd ? 1 : 5, timeout);
ucr               277 drivers/mmc/host/rtsx_usb_sdmmc.c 		cmd->resp[0] = get_unaligned_be32(ucr->rsp_buf + 1);
ucr               288 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_ucr *ucr = host->ucr;
ucr               338 drivers/mmc/host/rtsx_usb_sdmmc.c 		err = rtsx_usb_write_register(ucr, SD_BUS_STAT,
ucr               345 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_init_cmd(ucr);
ucr               347 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_CMD0, 0xFF, 0x40 | cmd_idx);
ucr               348 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_CMD1, 0xFF, (u8)(arg >> 24));
ucr               349 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_CMD2, 0xFF, (u8)(arg >> 16));
ucr               350 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_CMD3, 0xFF, (u8)(arg >> 8));
ucr               351 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_CMD4, 0xFF, (u8)arg);
ucr               353 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_CFG2, 0xFF, rsp_type);
ucr               354 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_DATA_SOURCE,
ucr               356 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_TRANSFER,
ucr               358 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, CHECK_REG_CMD, SD_TRANSFER,
ucr               365 drivers/mmc/host/rtsx_usb_sdmmc.c 			rtsx_usb_add_cmd(ucr, READ_REG_CMD, (u16)i, 0, 0);
ucr               370 drivers/mmc/host/rtsx_usb_sdmmc.c 			rtsx_usb_add_cmd(ucr, READ_REG_CMD, (u16)i, 0, 0);
ucr               375 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, READ_REG_CMD, SD_STAT1, 0, 0);
ucr               377 drivers/mmc/host/rtsx_usb_sdmmc.c 	err = rtsx_usb_send_cmd(ucr, MODE_CR, 100);
ucr               384 drivers/mmc/host/rtsx_usb_sdmmc.c 	err = rtsx_usb_get_rsp(ucr, len, timeout);
ucr               385 drivers/mmc/host/rtsx_usb_sdmmc.c 	if (err || (ucr->rsp_buf[0] & SD_TRANSFER_ERR)) {
ucr               392 drivers/mmc/host/rtsx_usb_sdmmc.c 					ucr->rsp_buf[0]);
ucr               408 drivers/mmc/host/rtsx_usb_sdmmc.c 	ptr = ucr->rsp_buf + 1;
ucr               451 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_ucr *ucr = host->ucr;
ucr               474 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_init_cmd(ucr);
ucr               476 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_BYTE_CNT_L, 0xFF, 0x00);
ucr               477 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_BYTE_CNT_H, 0xFF, 0x02);
ucr               478 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_BLOCK_CNT_L,
ucr               480 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_BLOCK_CNT_H,
ucr               483 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_DATA_SOURCE,
ucr               486 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MC_DMA_TC3,
ucr               488 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MC_DMA_TC2,
ucr               490 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MC_DMA_TC1,
ucr               492 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MC_DMA_TC0,
ucr               496 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MC_DMA_CTL,
ucr               501 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MC_DMA_CTL,
ucr               506 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_CFG2, 0xFF, cfg2);
ucr               507 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_TRANSFER, 0xFF,
ucr               509 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, CHECK_REG_CMD, SD_TRANSFER,
ucr               512 drivers/mmc/host/rtsx_usb_sdmmc.c 	err = rtsx_usb_send_cmd(ucr, flag, 100);
ucr               517 drivers/mmc/host/rtsx_usb_sdmmc.c 		pipe = usb_rcvbulkpipe(ucr->pusb_dev, EP_BULK_IN);
ucr               519 drivers/mmc/host/rtsx_usb_sdmmc.c 		pipe = usb_sndbulkpipe(ucr->pusb_dev, EP_BULK_OUT);
ucr               521 drivers/mmc/host/rtsx_usb_sdmmc.c 	err = rtsx_usb_transfer_data(ucr, pipe, data->sg, data_len,
ucr               530 drivers/mmc/host/rtsx_usb_sdmmc.c 	return rtsx_usb_get_rsp(ucr, 1, 2000);
ucr               535 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_write_register(host->ucr, SD_CFG1,
ucr               541 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_write_register(host->ucr, SD_CFG1,
ucr               581 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_ucr *ucr = host->ucr;
ucr               587 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_init_cmd(ucr);
ucr               589 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CLK_DIV, CLK_CHANGE, CLK_CHANGE);
ucr               592 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_VPCLK0_CTL,
ucr               595 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_VPCLK1_CTL,
ucr               598 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_VPCLK0_CTL, PHASE_NOT_RESET, 0);
ucr               599 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_VPCLK0_CTL,
ucr               601 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CLK_DIV, CLK_CHANGE, 0);
ucr               602 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_CFG1, SD_ASYNC_FIFO_RST, 0);
ucr               604 drivers/mmc/host/rtsx_usb_sdmmc.c 	err = rtsx_usb_send_cmd(ucr, MODE_C, 100);
ucr               661 drivers/mmc/host/rtsx_usb_sdmmc.c 		err = rtsx_usb_ep0_read_register(host->ucr,
ucr               755 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_ucr *ucr = host->ucr;
ucr               762 drivers/mmc/host/rtsx_usb_sdmmc.c 	mutex_lock(&ucr->dev_mutex);
ucr               765 drivers/mmc/host/rtsx_usb_sdmmc.c 	err = rtsx_usb_get_card_status(ucr, &val);
ucr               767 drivers/mmc/host/rtsx_usb_sdmmc.c 	mutex_unlock(&ucr->dev_mutex);
ucr               783 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_ucr *ucr = host->ucr;
ucr               790 drivers/mmc/host/rtsx_usb_sdmmc.c 	mutex_lock(&ucr->dev_mutex);
ucr               793 drivers/mmc/host/rtsx_usb_sdmmc.c 	err = rtsx_usb_get_card_status(ucr, &val);
ucr               795 drivers/mmc/host/rtsx_usb_sdmmc.c 	mutex_unlock(&ucr->dev_mutex);
ucr               814 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_ucr *ucr = host->ucr;
ucr               831 drivers/mmc/host/rtsx_usb_sdmmc.c 	mutex_lock(&ucr->dev_mutex);
ucr               851 drivers/mmc/host/rtsx_usb_sdmmc.c 				rtsx_usb_write_register(ucr, MC_FIFO_CTL,
ucr               866 drivers/mmc/host/rtsx_usb_sdmmc.c 	mutex_unlock(&ucr->dev_mutex);
ucr               897 drivers/mmc/host/rtsx_usb_sdmmc.c 		err = rtsx_usb_write_register(host->ucr, SD_CFG1,
ucr               903 drivers/mmc/host/rtsx_usb_sdmmc.c static int sd_pull_ctl_disable_lqfp48(struct rtsx_ucr *ucr)
ucr               905 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_init_cmd(ucr);
ucr               907 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL1, 0xFF, 0x55);
ucr               908 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL2, 0xFF, 0x55);
ucr               909 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL3, 0xFF, 0x95);
ucr               910 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL4, 0xFF, 0x55);
ucr               911 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL5, 0xFF, 0x55);
ucr               912 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL6, 0xFF, 0xA5);
ucr               914 drivers/mmc/host/rtsx_usb_sdmmc.c 	return rtsx_usb_send_cmd(ucr, MODE_C, 100);
ucr               917 drivers/mmc/host/rtsx_usb_sdmmc.c static int sd_pull_ctl_disable_qfn24(struct rtsx_ucr *ucr)
ucr               919 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_init_cmd(ucr);
ucr               921 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL1, 0xFF, 0x65);
ucr               922 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL2, 0xFF, 0x55);
ucr               923 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL3, 0xFF, 0x95);
ucr               924 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL4, 0xFF, 0x55);
ucr               925 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL5, 0xFF, 0x56);
ucr               926 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL6, 0xFF, 0x59);
ucr               928 drivers/mmc/host/rtsx_usb_sdmmc.c 	return rtsx_usb_send_cmd(ucr, MODE_C, 100);
ucr               931 drivers/mmc/host/rtsx_usb_sdmmc.c static int sd_pull_ctl_enable_lqfp48(struct rtsx_ucr *ucr)
ucr               933 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_init_cmd(ucr);
ucr               935 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL1, 0xFF, 0xAA);
ucr               936 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL2, 0xFF, 0xAA);
ucr               937 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL3, 0xFF, 0xA9);
ucr               938 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL4, 0xFF, 0x55);
ucr               939 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL5, 0xFF, 0x55);
ucr               940 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL6, 0xFF, 0xA5);
ucr               942 drivers/mmc/host/rtsx_usb_sdmmc.c 	return rtsx_usb_send_cmd(ucr, MODE_C, 100);
ucr               945 drivers/mmc/host/rtsx_usb_sdmmc.c static int sd_pull_ctl_enable_qfn24(struct rtsx_ucr *ucr)
ucr               947 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_init_cmd(ucr);
ucr               949 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL1, 0xFF, 0xA5);
ucr               950 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL2, 0xFF, 0x9A);
ucr               951 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL3, 0xFF, 0xA5);
ucr               952 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL4, 0xFF, 0x9A);
ucr               953 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL5, 0xFF, 0x65);
ucr               954 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PULL_CTL6, 0xFF, 0x5A);
ucr               956 drivers/mmc/host/rtsx_usb_sdmmc.c 	return rtsx_usb_send_cmd(ucr, MODE_C, 100);
ucr               961 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_ucr *ucr = host->ucr;
ucr               965 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_init_cmd(ucr);
ucr               966 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_SELECT, 0x07, SD_MOD_SEL);
ucr               967 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_SHARE_MODE,
ucr               969 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_CLK_EN,
ucr               971 drivers/mmc/host/rtsx_usb_sdmmc.c 	err = rtsx_usb_send_cmd(ucr, MODE_C, 100);
ucr               975 drivers/mmc/host/rtsx_usb_sdmmc.c 	if (CHECK_PKG(ucr, LQFP48))
ucr               976 drivers/mmc/host/rtsx_usb_sdmmc.c 		err = sd_pull_ctl_enable_lqfp48(ucr);
ucr               978 drivers/mmc/host/rtsx_usb_sdmmc.c 		err = sd_pull_ctl_enable_qfn24(ucr);
ucr               982 drivers/mmc/host/rtsx_usb_sdmmc.c 	err = rtsx_usb_write_register(ucr, CARD_PWR_CTL,
ucr               989 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_init_cmd(ucr);
ucr               990 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PWR_CTL,
ucr               992 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_OE,
ucr               995 drivers/mmc/host/rtsx_usb_sdmmc.c 	return rtsx_usb_send_cmd(ucr, MODE_C, 100);
ucr              1000 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_ucr *ucr = host->ucr;
ucr              1004 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_init_cmd(ucr);
ucr              1006 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_CLK_EN, SD_CLK_EN, 0);
ucr              1007 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_OE, SD_OUTPUT_EN, 0);
ucr              1008 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PWR_CTL,
ucr              1010 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_PWR_CTL,
ucr              1013 drivers/mmc/host/rtsx_usb_sdmmc.c 	err = rtsx_usb_send_cmd(ucr, MODE_C, 100);
ucr              1017 drivers/mmc/host/rtsx_usb_sdmmc.c 	if (CHECK_PKG(ucr, LQFP48))
ucr              1018 drivers/mmc/host/rtsx_usb_sdmmc.c 			return sd_pull_ctl_disable_lqfp48(ucr);
ucr              1019 drivers/mmc/host/rtsx_usb_sdmmc.c 	return sd_pull_ctl_disable_qfn24(ucr);
ucr              1050 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_ucr *ucr = host->ucr;
ucr              1055 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_init_cmd(ucr);
ucr              1060 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_CFG1,
ucr              1063 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_CLK_SOURCE, 0xFF,
ucr              1070 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_CFG1,
ucr              1073 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_CLK_SOURCE, 0xFF,
ucr              1075 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_PUSH_POINT_CTL,
ucr              1077 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_SAMPLE_POINT_CTL,
ucr              1084 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_CFG1,
ucr              1086 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_CLK_SOURCE, 0xFF,
ucr              1088 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_PUSH_POINT_CTL,
ucr              1090 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_SAMPLE_POINT_CTL,
ucr              1095 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD,
ucr              1097 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CARD_CLK_SOURCE, 0xFF,
ucr              1099 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD,
ucr              1101 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_SAMPLE_POINT_CTL,
ucr              1106 drivers/mmc/host/rtsx_usb_sdmmc.c 	err = rtsx_usb_send_cmd(ucr, MODE_C, 100);
ucr              1114 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_ucr *ucr = host->ucr;
ucr              1117 drivers/mmc/host/rtsx_usb_sdmmc.c 	mutex_lock(&ucr->dev_mutex);
ucr              1145 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_switch_clock(host->ucr, host->clock, host->ssc_depth,
ucr              1148 drivers/mmc/host/rtsx_usb_sdmmc.c 	mutex_unlock(&ucr->dev_mutex);
ucr              1155 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_ucr *ucr = host->ucr;
ucr              1167 drivers/mmc/host/rtsx_usb_sdmmc.c 	mutex_lock(&ucr->dev_mutex);
ucr              1169 drivers/mmc/host/rtsx_usb_sdmmc.c 	err = rtsx_usb_card_exclusive_check(ucr, RTSX_USB_SD_CARD);
ucr              1171 drivers/mmc/host/rtsx_usb_sdmmc.c 		mutex_unlock(&ucr->dev_mutex);
ucr              1178 drivers/mmc/host/rtsx_usb_sdmmc.c 	rtsx_usb_init_cmd(ucr);
ucr              1181 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_PAD_CTL,
ucr              1183 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, LDO_POWER_CFG,
ucr              1186 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_BUS_STAT,
ucr              1189 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_PAD_CTL,
ucr              1191 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, LDO_POWER_CFG,
ucr              1195 drivers/mmc/host/rtsx_usb_sdmmc.c 	err = rtsx_usb_send_cmd(ucr, MODE_C, 100);
ucr              1196 drivers/mmc/host/rtsx_usb_sdmmc.c 	mutex_unlock(&ucr->dev_mutex);
ucr              1204 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_ucr *ucr = host->ucr;
ucr              1212 drivers/mmc/host/rtsx_usb_sdmmc.c 	mutex_lock(&ucr->dev_mutex);
ucr              1214 drivers/mmc/host/rtsx_usb_sdmmc.c 	err = rtsx_usb_write_register(ucr, SD_BUS_STAT,
ucr              1222 drivers/mmc/host/rtsx_usb_sdmmc.c 	err = rtsx_usb_read_register(ucr, SD_BUS_STAT, &stat);
ucr              1226 drivers/mmc/host/rtsx_usb_sdmmc.c 	err = rtsx_usb_write_register(ucr, SD_BUS_STAT,
ucr              1229 drivers/mmc/host/rtsx_usb_sdmmc.c 	mutex_unlock(&ucr->dev_mutex);
ucr              1244 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_ucr *ucr = host->ucr;
ucr              1250 drivers/mmc/host/rtsx_usb_sdmmc.c 	mutex_lock(&ucr->dev_mutex);
ucr              1255 drivers/mmc/host/rtsx_usb_sdmmc.c 	mutex_unlock(&ucr->dev_mutex);
ucr              1288 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_ucr *ucr = host->ucr;
ucr              1291 drivers/mmc/host/rtsx_usb_sdmmc.c 	mutex_lock(&ucr->dev_mutex);
ucr              1297 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_turn_off_led(ucr);
ucr              1299 drivers/mmc/host/rtsx_usb_sdmmc.c 		rtsx_usb_turn_on_led(ucr);
ucr              1302 drivers/mmc/host/rtsx_usb_sdmmc.c 	mutex_unlock(&ucr->dev_mutex);
ucr              1337 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_ucr *ucr;
ucr              1342 drivers/mmc/host/rtsx_usb_sdmmc.c 	ucr = usb_get_intfdata(to_usb_interface(pdev->dev.parent));
ucr              1343 drivers/mmc/host/rtsx_usb_sdmmc.c 	if (!ucr)
ucr              1353 drivers/mmc/host/rtsx_usb_sdmmc.c 	host->ucr = ucr;
ucr               368 drivers/tty/serial/imx.c 			       struct imx_port_ucrs *ucr)
ucr               371 drivers/tty/serial/imx.c 	ucr->ucr1 = imx_uart_readl(sport, UCR1);
ucr               372 drivers/tty/serial/imx.c 	ucr->ucr2 = imx_uart_readl(sport, UCR2);
ucr               373 drivers/tty/serial/imx.c 	ucr->ucr3 = imx_uart_readl(sport, UCR3);
ucr               377 drivers/tty/serial/imx.c 				  struct imx_port_ucrs *ucr)
ucr               380 drivers/tty/serial/imx.c 	imx_uart_writel(sport, ucr->ucr1, UCR1);
ucr               381 drivers/tty/serial/imx.c 	imx_uart_writel(sport, ucr->ucr2, UCR2);
ucr               382 drivers/tty/serial/imx.c 	imx_uart_writel(sport, ucr->ucr3, UCR3);
ucr                37 include/linux/rtsx_usb.h #define CHECK_PKG(ucr, pkg)	((ucr)->package == (pkg))
ucr                68 include/linux/rtsx_usb.h extern int rtsx_usb_get_card_status(struct rtsx_ucr *ucr, u16 *status);
ucr                70 include/linux/rtsx_usb.h extern int rtsx_usb_read_register(struct rtsx_ucr *ucr, u16 addr, u8 *data);
ucr                71 include/linux/rtsx_usb.h extern int rtsx_usb_write_register(struct rtsx_ucr *ucr, u16 addr, u8 mask,
ucr                74 include/linux/rtsx_usb.h extern int rtsx_usb_ep0_write_register(struct rtsx_ucr *ucr, u16 addr, u8 mask,
ucr                76 include/linux/rtsx_usb.h extern int rtsx_usb_ep0_read_register(struct rtsx_ucr *ucr, u16 addr,
ucr                79 include/linux/rtsx_usb.h extern void rtsx_usb_add_cmd(struct rtsx_ucr *ucr, u8 cmd_type,
ucr                81 include/linux/rtsx_usb.h extern int rtsx_usb_send_cmd(struct rtsx_ucr *ucr, u8 flag, int timeout);
ucr                82 include/linux/rtsx_usb.h extern int rtsx_usb_get_rsp(struct rtsx_ucr *ucr, int rsp_len, int timeout);
ucr                83 include/linux/rtsx_usb.h extern int rtsx_usb_transfer_data(struct rtsx_ucr *ucr, unsigned int pipe,
ucr                87 include/linux/rtsx_usb.h extern int rtsx_usb_read_ppbuf(struct rtsx_ucr *ucr, u8 *buf, int buf_len);
ucr                88 include/linux/rtsx_usb.h extern int rtsx_usb_write_ppbuf(struct rtsx_ucr *ucr, u8 *buf, int buf_len);
ucr                89 include/linux/rtsx_usb.h extern int rtsx_usb_switch_clock(struct rtsx_ucr *ucr, unsigned int card_clock,
ucr                91 include/linux/rtsx_usb.h extern int rtsx_usb_card_exclusive_check(struct rtsx_ucr *ucr, int card);
ucr               130 include/linux/rtsx_usb.h #define rtsx_usb_cmd_hdr_tag(ucr)		\
ucr               132 include/linux/rtsx_usb.h 		ucr->cmd_buf[0] = 'R';		\
ucr               133 include/linux/rtsx_usb.h 		ucr->cmd_buf[1] = 'T';		\
ucr               134 include/linux/rtsx_usb.h 		ucr->cmd_buf[2] = 'C';		\
ucr               135 include/linux/rtsx_usb.h 		ucr->cmd_buf[3] = 'R';		\
ucr               138 include/linux/rtsx_usb.h static inline void rtsx_usb_init_cmd(struct rtsx_ucr *ucr)
ucr               140 include/linux/rtsx_usb.h 	rtsx_usb_cmd_hdr_tag(ucr);
ucr               141 include/linux/rtsx_usb.h 	ucr->cmd_idx = 0;
ucr               142 include/linux/rtsx_usb.h 	ucr->cmd_buf[PACKET_TYPE] = BATCH_CMD;
ucr               595 include/linux/rtsx_usb.h static inline int rtsx_usb_turn_on_led(struct rtsx_ucr *ucr)
ucr               597 include/linux/rtsx_usb.h 	return  rtsx_usb_ep0_write_register(ucr, CARD_GPIO, 0x03, 0x02);
ucr               600 include/linux/rtsx_usb.h static inline int rtsx_usb_turn_off_led(struct rtsx_ucr *ucr)
ucr               602 include/linux/rtsx_usb.h 	return rtsx_usb_ep0_write_register(ucr, CARD_GPIO, 0x03, 0x03);
ucr               606 include/linux/rtsx_usb.h static inline void rtsx_usb_clear_fsm_err(struct rtsx_ucr *ucr)
ucr               608 include/linux/rtsx_usb.h 	rtsx_usb_ep0_write_register(ucr, SFSM_ED, 0xf8, 0xf8);
ucr               611 include/linux/rtsx_usb.h static inline void rtsx_usb_clear_dma_err(struct rtsx_ucr *ucr)
ucr               613 include/linux/rtsx_usb.h 	rtsx_usb_ep0_write_register(ucr, MC_FIFO_CTL,
ucr               615 include/linux/rtsx_usb.h 	rtsx_usb_ep0_write_register(ucr, MC_DMA_RST, DMA_RESET, DMA_RESET);