Lines Matching refs:ms_dev
54 static inline struct device *ms_dev(struct rtsx_usb_ms *host) in ms_dev() function
104 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", i, *(ptr++)); in ms_print_debug_regs()
106 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", i, *(ptr++)); in ms_print_debug_regs()
108 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", i, *(ptr++)); in ms_print_debug_regs()
110 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", CARD_DATA_SOURCE, *(ptr++)); in ms_print_debug_regs()
111 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", CARD_SELECT, *(ptr++)); in ms_print_debug_regs()
112 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", CARD_CLK_EN, *(ptr++)); in ms_print_debug_regs()
113 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", CARD_PWR_CTL, *(ptr++)); in ms_print_debug_regs()
185 dev_dbg(ms_dev(host), "%s\n", __func__); in ms_power_on()
225 dev_dbg(ms_dev(host), "%s\n", __func__); in ms_power_off()
253 dev_dbg(ms_dev(host), "%s: tpc = 0x%02x, data_dir = %s, length = %d\n", in ms_transfer_data()
334 dev_dbg(ms_dev(host), "%s: tpc = 0x%02x\n", __func__, tpc); in ms_write_bytes()
367 dev_dbg(ms_dev(host), "MS_TRANS_CFG: 0x%02x\n", val); in ms_write_bytes()
402 dev_dbg(ms_dev(host), "%s: tpc = 0x%02x\n", __func__, tpc); in ms_read_bytes()
435 dev_dbg(ms_dev(host), "MS_TRANS_CFG: 0x%02x\n", val); in ms_read_bytes()
474 dev_dbg(ms_dev(host), "%s\n", __func__); in rtsx_usb_ms_issue_cmd()
512 dev_dbg(ms_dev(host), "int_reg: 0x%02x\n", req->int_reg); in rtsx_usb_ms_issue_cmd()
527 pm_runtime_get_sync(ms_dev(host)); in rtsx_usb_ms_handle_req()
530 dev_dbg(ms_dev(host), "next req %d\n", rc); in rtsx_usb_ms_handle_req()
544 dev_dbg(ms_dev(host), "req result %d\n", in rtsx_usb_ms_handle_req()
548 pm_runtime_put(ms_dev(host)); in rtsx_usb_ms_handle_req()
557 dev_dbg(ms_dev(host), "--> %s\n", __func__); in rtsx_usb_ms_request()
572 dev_dbg(ms_dev(host), "%s: param = %d, value = %d\n", in rtsx_usb_ms_set_param()
575 pm_runtime_get_sync(ms_dev(host)); in rtsx_usb_ms_set_param()
588 pm_runtime_get_sync(ms_dev(host)); in rtsx_usb_ms_set_param()
593 pm_runtime_put_noidle(ms_dev(host)); in rtsx_usb_ms_set_param()
595 pm_runtime_put(ms_dev(host)); in rtsx_usb_ms_set_param()
627 dev_dbg(ms_dev(host), "switch clock failed\n"); in rtsx_usb_ms_set_param()
641 pm_runtime_put(ms_dev(host)); in rtsx_usb_ms_set_param()
647 dev_dbg(ms_dev(host), "%s: return = %d\n", __func__, err); in rtsx_usb_ms_set_param()
657 dev_dbg(ms_dev(host), "--> %s\n", __func__); in rtsx_usb_ms_suspend()
668 dev_dbg(ms_dev(host), "--> %s\n", __func__); in rtsx_usb_ms_resume()
688 pm_runtime_get_sync(ms_dev(host)); in rtsx_usb_detect_ms_card()
706 dev_dbg(ms_dev(host), "MS slot change detected\n"); in rtsx_usb_detect_ms_card()
711 pm_runtime_put(ms_dev(host)); in rtsx_usb_detect_ms_card()
807 if (pm_runtime_active(ms_dev(host))) in rtsx_usb_ms_drv_remove()
808 pm_runtime_put(ms_dev(host)); in rtsx_usb_ms_drv_remove()