Lines Matching refs:sdhci_host

50 static void sdhci_enable_preset_value(struct sdhci_host *host, bool enable);
52 static bool sdhci_send_command(struct sdhci_host *host, struct mmc_command *cmd);
54 void sdhci_dumpregs(struct sdhci_host *host) in sdhci_dumpregs()
126 static void sdhci_do_enable_v4_mode(struct sdhci_host *host) in sdhci_do_enable_v4_mode()
142 void sdhci_enable_v4_mode(struct sdhci_host *host) in sdhci_enable_v4_mode()
154 static void sdhci_set_card_detection(struct sdhci_host *host, bool enable) in sdhci_set_card_detection()
176 static void sdhci_enable_card_detection(struct sdhci_host *host) in sdhci_enable_card_detection()
181 static void sdhci_disable_card_detection(struct sdhci_host *host) in sdhci_disable_card_detection()
186 static void sdhci_runtime_pm_bus_on(struct sdhci_host *host) in sdhci_runtime_pm_bus_on()
194 static void sdhci_runtime_pm_bus_off(struct sdhci_host *host) in sdhci_runtime_pm_bus_off()
202 void sdhci_reset(struct sdhci_host *host, u8 mask) in sdhci_reset()
236 static bool sdhci_do_reset(struct sdhci_host *host, u8 mask) in sdhci_do_reset()
250 static void sdhci_reset_for_all(struct sdhci_host *host) in sdhci_reset_for_all()
271 static void sdhci_reset_for_reason(struct sdhci_host *host, enum sdhci_reset_reason reason) in sdhci_reset_for_reason()
297 static void sdhci_set_default_irqs(struct sdhci_host *host) in sdhci_set_default_irqs()
313 static void sdhci_config_dma(struct sdhci_host *host) in sdhci_config_dma()
359 static void sdhci_init(struct sdhci_host *host, int soft) in sdhci_init()
386 static void sdhci_reinit(struct sdhci_host *host) in sdhci_reinit()
403 static void __sdhci_led_activate(struct sdhci_host *host) in __sdhci_led_activate()
415 static void __sdhci_led_deactivate(struct sdhci_host *host) in __sdhci_led_deactivate()
431 struct sdhci_host *host = container_of(led, struct sdhci_host, led); in sdhci_led_control()
447 static int sdhci_led_register(struct sdhci_host *host) in sdhci_led_register()
465 static void sdhci_led_unregister(struct sdhci_host *host) in sdhci_led_unregister()
473 static inline void sdhci_led_activate(struct sdhci_host *host) in sdhci_led_activate()
477 static inline void sdhci_led_deactivate(struct sdhci_host *host) in sdhci_led_deactivate()
483 static inline int sdhci_led_register(struct sdhci_host *host) in sdhci_led_register()
488 static inline void sdhci_led_unregister(struct sdhci_host *host) in sdhci_led_unregister()
492 static inline void sdhci_led_activate(struct sdhci_host *host) in sdhci_led_activate()
497 static inline void sdhci_led_deactivate(struct sdhci_host *host) in sdhci_led_deactivate()
504 static void sdhci_mod_timer(struct sdhci_host *host, struct mmc_request *mrq, in sdhci_mod_timer()
513 static void sdhci_del_timer(struct sdhci_host *host, struct mmc_request *mrq) in sdhci_del_timer()
521 static inline bool sdhci_has_requests(struct sdhci_host *host) in sdhci_has_requests()
532 static void sdhci_read_block_pio(struct sdhci_host *host) in sdhci_read_block_pio()
576 static void sdhci_write_block_pio(struct sdhci_host *host) in sdhci_write_block_pio()
621 static void sdhci_transfer_pio(struct sdhci_host *host) in sdhci_transfer_pio()
659 static int sdhci_pre_dma_transfer(struct sdhci_host *host, in sdhci_pre_dma_transfer()
726 void sdhci_adma_write_desc(struct sdhci_host *host, void **desc, in sdhci_adma_write_desc()
743 static inline void __sdhci_adma_write_desc(struct sdhci_host *host, in __sdhci_adma_write_desc()
761 static void sdhci_adma_table_pre(struct sdhci_host *host, in sdhci_adma_table_pre()
853 static void sdhci_adma_table_post(struct sdhci_host *host, in sdhci_adma_table_post()
894 static void sdhci_set_adma_addr(struct sdhci_host *host, dma_addr_t addr) in sdhci_set_adma_addr()
901 static dma_addr_t sdhci_sdma_address(struct sdhci_host *host) in sdhci_sdma_address()
909 static void sdhci_set_sdma_addr(struct sdhci_host *host, dma_addr_t addr) in sdhci_set_sdma_addr()
917 static unsigned int sdhci_target_timeout(struct sdhci_host *host, in sdhci_target_timeout()
946 static void sdhci_calc_sw_timeout(struct sdhci_host *host, in sdhci_calc_sw_timeout()
979 static u8 sdhci_calc_timeout(struct sdhci_host *host, struct mmc_command *cmd, in sdhci_calc_timeout()
1037 static void sdhci_set_transfer_irqs(struct sdhci_host *host) in sdhci_set_transfer_irqs()
1056 void sdhci_set_data_timeout_irq(struct sdhci_host *host, bool enable) in sdhci_set_data_timeout_irq()
1067 void __sdhci_set_timeout(struct sdhci_host *host, struct mmc_command *cmd) in __sdhci_set_timeout()
1084 static void sdhci_set_timeout(struct sdhci_host *host, struct mmc_command *cmd) in sdhci_set_timeout()
1092 static void sdhci_initialize_data(struct sdhci_host *host, in sdhci_initialize_data()
1107 static inline void sdhci_set_block_info(struct sdhci_host *host, in sdhci_set_block_info()
1128 static void sdhci_prepare_data(struct sdhci_host *host, struct mmc_command *cmd) in sdhci_prepare_data()
1224 static int sdhci_external_dma_init(struct sdhci_host *host) in sdhci_external_dma_init()
1254 static struct dma_chan *sdhci_external_dma_channel(struct sdhci_host *host, in sdhci_external_dma_channel()
1260 static int sdhci_external_dma_setup(struct sdhci_host *host, in sdhci_external_dma_setup()
1315 static void sdhci_external_dma_release(struct sdhci_host *host) in sdhci_external_dma_release()
1330 static void __sdhci_external_dma_prepare_data(struct sdhci_host *host, in __sdhci_external_dma_prepare_data()
1343 static void sdhci_external_dma_prepare_data(struct sdhci_host *host, in sdhci_external_dma_prepare_data()
1356 static void sdhci_external_dma_pre_transfer(struct sdhci_host *host, in sdhci_external_dma_pre_transfer()
1371 static inline int sdhci_external_dma_init(struct sdhci_host *host) in sdhci_external_dma_init()
1376 static inline void sdhci_external_dma_release(struct sdhci_host *host) in sdhci_external_dma_release()
1380 static inline void sdhci_external_dma_prepare_data(struct sdhci_host *host, in sdhci_external_dma_prepare_data()
1387 static inline void sdhci_external_dma_pre_transfer(struct sdhci_host *host, in sdhci_external_dma_pre_transfer()
1392 static inline struct dma_chan *sdhci_external_dma_channel(struct sdhci_host *host, in sdhci_external_dma_channel()
1400 void sdhci_switch_external_dma(struct sdhci_host *host, bool en) in sdhci_switch_external_dma()
1406 static inline bool sdhci_auto_cmd12(struct sdhci_host *host, in sdhci_auto_cmd12()
1413 static inline bool sdhci_auto_cmd23(struct sdhci_host *host, in sdhci_auto_cmd23()
1419 static inline bool sdhci_manual_cmd23(struct sdhci_host *host, in sdhci_manual_cmd23()
1425 static inline void sdhci_auto_cmd_select(struct sdhci_host *host, in sdhci_auto_cmd_select()
1464 static void sdhci_set_transfer_mode(struct sdhci_host *host, in sdhci_set_transfer_mode()
1505 static bool sdhci_needs_reset(struct sdhci_host *host, struct mmc_request *mrq) in sdhci_needs_reset()
1514 static void sdhci_set_mrq_done(struct sdhci_host *host, struct mmc_request *mrq) in sdhci_set_mrq_done()
1535 static void __sdhci_finish_mrq(struct sdhci_host *host, struct mmc_request *mrq) in __sdhci_finish_mrq()
1560 static void sdhci_finish_mrq(struct sdhci_host *host, struct mmc_request *mrq) in sdhci_finish_mrq()
1567 static void __sdhci_finish_data(struct sdhci_host *host, bool sw_data_timeout) in __sdhci_finish_data()
1639 static void sdhci_finish_data(struct sdhci_host *host) in sdhci_finish_data()
1644 static bool sdhci_send_command(struct sdhci_host *host, struct mmc_command *cmd) in sdhci_send_command()
1736 static bool sdhci_present_error(struct sdhci_host *host, in sdhci_present_error()
1747 static bool sdhci_send_command_retry(struct sdhci_host *host, in sdhci_send_command_retry()
1789 static void sdhci_read_rsp_136(struct sdhci_host *host, struct mmc_command *cmd) in sdhci_read_rsp_136()
1809 static void sdhci_finish_command(struct sdhci_host *host) in sdhci_finish_command()
1863 static u16 sdhci_get_preset_value(struct sdhci_host *host) in sdhci_get_preset_value()
1901 u16 sdhci_calc_clk(struct sdhci_host *host, unsigned int clock, in sdhci_calc_clk()
1993 void sdhci_enable_clk(struct sdhci_host *host, u16 clk) in sdhci_enable_clk()
2047 void sdhci_set_clock(struct sdhci_host *host, unsigned int clock) in sdhci_set_clock()
2063 static void sdhci_set_power_reg(struct sdhci_host *host, unsigned char mode, in sdhci_set_power_reg()
2076 void sdhci_set_power_noreg(struct sdhci_host *host, unsigned char mode, in sdhci_set_power_noreg()
2156 void sdhci_set_power(struct sdhci_host *host, unsigned char mode, in sdhci_set_power()
2172 void sdhci_set_power_and_bus_voltage(struct sdhci_host *host, in sdhci_set_power_and_bus_voltage()
2193 struct sdhci_host *host = mmc_priv(mmc); in sdhci_request()
2225 struct sdhci_host *host = mmc_priv(mmc); in sdhci_request_atomic()
2257 void sdhci_set_bus_width(struct sdhci_host *host, int width) in sdhci_set_bus_width()
2277 void sdhci_set_uhs_signaling(struct sdhci_host *host, unsigned timing) in sdhci_set_uhs_signaling()
2316 static bool sdhci_preset_needed(struct sdhci_host *host, unsigned char timing) in sdhci_preset_needed()
2322 static bool sdhci_presetable_values_change(struct sdhci_host *host, struct mmc_ios *ios) in sdhci_presetable_values_change()
2335 struct sdhci_host *host = mmc_priv(mmc); in sdhci_set_ios()
2496 struct sdhci_host *host = mmc_priv(mmc); in sdhci_get_cd()
2523 struct sdhci_host *host = mmc_priv(mmc); in sdhci_get_cd_nogpio()
2540 static int sdhci_check_ro(struct sdhci_host *host) in sdhci_check_ro()
2568 struct sdhci_host *host = mmc_priv(mmc); in sdhci_get_ro()
2587 struct sdhci_host *host = mmc_priv(mmc); in sdhci_hw_reset()
2593 static void sdhci_enable_sdio_irq_nolock(struct sdhci_host *host, int enable) in sdhci_enable_sdio_irq_nolock()
2608 struct sdhci_host *host = mmc_priv(mmc); in sdhci_enable_sdio_irq()
2625 struct sdhci_host *host = mmc_priv(mmc); in sdhci_ack_sdio_irq()
2636 struct sdhci_host *host = mmc_priv(mmc); in sdhci_start_signal_voltage_switch()
2730 struct sdhci_host *host = mmc_priv(mmc); in sdhci_card_busy()
2741 struct sdhci_host *host = mmc_priv(mmc); in sdhci_prepare_hs400_tuning()
2751 void sdhci_start_tuning(struct sdhci_host *host) in sdhci_start_tuning()
2776 void sdhci_end_tuning(struct sdhci_host *host) in sdhci_end_tuning()
2783 void sdhci_reset_tuning(struct sdhci_host *host) in sdhci_reset_tuning()
2794 void sdhci_abort_tuning(struct sdhci_host *host, u32 opcode) in sdhci_abort_tuning()
2813 void sdhci_send_tuning(struct sdhci_host *host, u32 opcode) in sdhci_send_tuning()
2868 static int __sdhci_execute_tuning(struct sdhci_host *host, u32 opcode) in __sdhci_execute_tuning()
2909 struct sdhci_host *host = mmc_priv(mmc); in sdhci_execute_tuning()
2976 static void sdhci_enable_preset_value(struct sdhci_host *host, bool enable) in sdhci_enable_preset_value()
3019 struct sdhci_host *host = mmc_priv(mmc); in sdhci_pre_req()
3032 static void sdhci_error_out_mrqs(struct sdhci_host *host, int err) in sdhci_error_out_mrqs()
3047 struct sdhci_host *host = mmc_priv(mmc); in sdhci_card_event()
3097 static bool sdhci_request_done(struct sdhci_host *host) in sdhci_request_done()
3219 struct sdhci_host *host = container_of(work, struct sdhci_host, in sdhci_complete_work()
3228 struct sdhci_host *host; in sdhci_timeout_timer()
3250 struct sdhci_host *host; in sdhci_timeout_data_timer()
3286 static void sdhci_cmd_irq(struct sdhci_host *host, u32 intmask, u32 *intmask_p) in sdhci_cmd_irq()
3362 static void sdhci_adma_show_error(struct sdhci_host *host) in sdhci_adma_show_error()
3394 static void sdhci_data_irq(struct sdhci_host *host, u32 intmask) in sdhci_data_irq()
3532 static inline bool sdhci_defer_done(struct sdhci_host *host, in sdhci_defer_done()
3546 struct sdhci_host *host = dev_id; in sdhci_irq()
3686 struct sdhci_host *host = dev_id; in sdhci_thread_irq()
3723 static bool sdhci_cd_irq_can_wakeup(struct sdhci_host *host) in sdhci_cd_irq_can_wakeup()
3738 static bool sdhci_enable_irq_wakeups(struct sdhci_host *host) in sdhci_enable_irq_wakeups()
3771 static void sdhci_disable_irq_wakeups(struct sdhci_host *host) in sdhci_disable_irq_wakeups()
3786 int sdhci_suspend_host(struct sdhci_host *host) in sdhci_suspend_host()
3805 int sdhci_resume_host(struct sdhci_host *host) in sdhci_resume_host()
3844 int sdhci_runtime_suspend_host(struct sdhci_host *host) in sdhci_runtime_suspend_host()
3866 int sdhci_runtime_resume_host(struct sdhci_host *host, int soft_reset) in sdhci_runtime_resume_host()
3927 struct sdhci_host *host = mmc_priv(mmc); in sdhci_cqe_enable()
3971 struct sdhci_host *host = mmc_priv(mmc); in sdhci_cqe_disable()
3991 bool sdhci_cqe_irq(struct sdhci_host *host, u32 intmask, int *cmd_error, in sdhci_cqe_irq()
4049 struct sdhci_host *sdhci_alloc_host(struct device *dev, in sdhci_alloc_host()
4053 struct sdhci_host *host; in sdhci_alloc_host()
4057 mmc = mmc_alloc_host(sizeof(struct sdhci_host) + priv_size, dev); in sdhci_alloc_host()
4091 static int sdhci_set_dma_mask(struct sdhci_host *host) in sdhci_set_dma_mask()
4121 void __sdhci_read_caps(struct sdhci_host *host, const u16 *ver, in __sdhci_read_caps()
4176 static void sdhci_allocate_bounce_buffer(struct sdhci_host *host) in sdhci_allocate_bounce_buffer()
4240 static inline bool sdhci_can_64bit_dma(struct sdhci_host *host) in sdhci_can_64bit_dma()
4253 int sdhci_setup_host(struct sdhci_host *host) in sdhci_setup_host()
4802 void sdhci_cleanup_host(struct sdhci_host *host) in sdhci_cleanup_host()
4822 int __sdhci_add_host(struct sdhci_host *host) in __sdhci_add_host()
4891 int sdhci_add_host(struct sdhci_host *host) in sdhci_add_host()
4912 void sdhci_remove_host(struct sdhci_host *host, int dead) in sdhci_remove_host()
4966 void sdhci_free_host(struct sdhci_host *host) in sdhci_free_host()