Lines Matching refs:ms_dev

42 static inline struct device *ms_dev(struct rtsx_usb_ms *host)  in ms_dev()  function
92 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", i, *(ptr++)); in ms_print_debug_regs()
94 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", i, *(ptr++)); 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()
173 dev_dbg(ms_dev(host), "%s\n", __func__); in ms_power_on()
213 dev_dbg(ms_dev(host), "%s\n", __func__); in ms_power_off()
241 dev_dbg(ms_dev(host), "%s: tpc = 0x%02x, data_dir = %s, length = %d\n", in ms_transfer_data()
322 dev_dbg(ms_dev(host), "%s: tpc = 0x%02x\n", __func__, tpc); in ms_write_bytes()
355 dev_dbg(ms_dev(host), "MS_TRANS_CFG: 0x%02x\n", val); in ms_write_bytes()
390 dev_dbg(ms_dev(host), "%s: tpc = 0x%02x\n", __func__, tpc); in ms_read_bytes()
423 dev_dbg(ms_dev(host), "MS_TRANS_CFG: 0x%02x\n", val); in ms_read_bytes()
462 dev_dbg(ms_dev(host), "%s\n", __func__); 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()
515 pm_runtime_get_sync(ms_dev(host)); in rtsx_usb_ms_handle_req()
518 dev_dbg(ms_dev(host), "next req %d\n", rc); in rtsx_usb_ms_handle_req()
532 dev_dbg(ms_dev(host), "req result %d\n", in rtsx_usb_ms_handle_req()
536 pm_runtime_put_sync(ms_dev(host)); in rtsx_usb_ms_handle_req()
545 dev_dbg(ms_dev(host), "--> %s\n", __func__); in rtsx_usb_ms_request()
560 dev_dbg(ms_dev(host), "%s: param = %d, value = %d\n", in rtsx_usb_ms_set_param()
563 pm_runtime_get_sync(ms_dev(host)); in rtsx_usb_ms_set_param()
576 pm_runtime_get_noresume(ms_dev(host)); in rtsx_usb_ms_set_param()
579 pm_runtime_put_noidle(ms_dev(host)); in rtsx_usb_ms_set_param()
583 pm_runtime_put_noidle(ms_dev(host)); in rtsx_usb_ms_set_param()
615 dev_dbg(ms_dev(host), "switch clock failed\n"); in rtsx_usb_ms_set_param()
629 pm_runtime_put_sync(ms_dev(host)); in rtsx_usb_ms_set_param()
639 dev_dbg(ms_dev(host), "%s: return = %d\n", __func__, err); in rtsx_usb_ms_set_param()
727 pm_runtime_get_sync(ms_dev(host)); in rtsx_usb_ms_poll_card()
745 dev_dbg(ms_dev(host), "MS slot change detected\n"); in rtsx_usb_ms_poll_card()
750 pm_runtime_put_sync(ms_dev(host)); in rtsx_usb_ms_poll_card()
790 pm_runtime_get_noresume(ms_dev(host)); in rtsx_usb_ms_drv_probe()
791 pm_runtime_set_active(ms_dev(host)); in rtsx_usb_ms_drv_probe()
792 pm_runtime_enable(ms_dev(host)); in rtsx_usb_ms_drv_probe()
798 pm_runtime_put(ms_dev(host)); in rtsx_usb_ms_drv_probe()
802 pm_runtime_disable(ms_dev(host)); in rtsx_usb_ms_drv_probe()
803 pm_runtime_put_noidle(ms_dev(host)); in rtsx_usb_ms_drv_probe()
819 dev_dbg(ms_dev(host), in rtsx_usb_ms_drv_remove()
834 if (pm_runtime_active(ms_dev(host))) in rtsx_usb_ms_drv_remove()
835 pm_runtime_put(ms_dev(host)); in rtsx_usb_ms_drv_remove()
837 pm_runtime_disable(ms_dev(host)); in rtsx_usb_ms_drv_remove()
839 dev_dbg(ms_dev(host), in rtsx_usb_ms_drv_remove()