Lines Matching defs:host
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() local
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()
571 static void sdhci_write_block_pio(struct sdhci_host *host) in sdhci_write_block_pio()
611 static void sdhci_transfer_pio(struct sdhci_host *host) in sdhci_transfer_pio()
649 static int sdhci_pre_dma_transfer(struct sdhci_host *host, in sdhci_pre_dma_transfer()
714 void sdhci_adma_write_desc(struct sdhci_host *host, void **desc, in sdhci_adma_write_desc()
731 static inline void __sdhci_adma_write_desc(struct sdhci_host *host, in __sdhci_adma_write_desc()
749 static void sdhci_adma_table_pre(struct sdhci_host *host, in sdhci_adma_table_pre()
840 static void sdhci_adma_table_post(struct sdhci_host *host, in sdhci_adma_table_post()
880 static void sdhci_set_adma_addr(struct sdhci_host *host, dma_addr_t addr) in sdhci_set_adma_addr()
887 static dma_addr_t sdhci_sdma_address(struct sdhci_host *host) in sdhci_sdma_address()
895 static void sdhci_set_sdma_addr(struct sdhci_host *host, dma_addr_t addr) in sdhci_set_sdma_addr()
903 static unsigned int sdhci_target_timeout(struct sdhci_host *host, in sdhci_target_timeout()
932 static void sdhci_calc_sw_timeout(struct sdhci_host *host, in sdhci_calc_sw_timeout()
965 static u8 sdhci_calc_timeout(struct sdhci_host *host, struct mmc_command *cmd, in sdhci_calc_timeout()
1023 static void sdhci_set_transfer_irqs(struct sdhci_host *host) in sdhci_set_transfer_irqs()
1042 void sdhci_set_data_timeout_irq(struct sdhci_host *host, bool enable) in sdhci_set_data_timeout_irq()
1053 void __sdhci_set_timeout(struct sdhci_host *host, struct mmc_command *cmd) in __sdhci_set_timeout()
1070 static void sdhci_set_timeout(struct sdhci_host *host, struct mmc_command *cmd) in sdhci_set_timeout()
1078 static void sdhci_initialize_data(struct sdhci_host *host, in sdhci_initialize_data()
1093 static inline void sdhci_set_block_info(struct sdhci_host *host, in sdhci_set_block_info()
1114 static void sdhci_prepare_data(struct sdhci_host *host, struct mmc_command *cmd) in sdhci_prepare_data()
1210 static int sdhci_external_dma_init(struct sdhci_host *host) in sdhci_external_dma_init()
1240 static struct dma_chan *sdhci_external_dma_channel(struct sdhci_host *host, in sdhci_external_dma_channel()
1246 static int sdhci_external_dma_setup(struct sdhci_host *host, in sdhci_external_dma_setup()
1301 static void sdhci_external_dma_release(struct sdhci_host *host) in sdhci_external_dma_release()
1316 static void __sdhci_external_dma_prepare_data(struct sdhci_host *host, in __sdhci_external_dma_prepare_data()
1329 static void sdhci_external_dma_prepare_data(struct sdhci_host *host, in sdhci_external_dma_prepare_data()
1342 static void sdhci_external_dma_pre_transfer(struct sdhci_host *host, in sdhci_external_dma_pre_transfer()
1357 static inline int sdhci_external_dma_init(struct sdhci_host *host) in sdhci_external_dma_init()
1362 static inline void sdhci_external_dma_release(struct sdhci_host *host) in sdhci_external_dma_release()
1366 static inline void sdhci_external_dma_prepare_data(struct sdhci_host *host, in sdhci_external_dma_prepare_data()
1373 static inline void sdhci_external_dma_pre_transfer(struct sdhci_host *host, in sdhci_external_dma_pre_transfer()
1378 static inline struct dma_chan *sdhci_external_dma_channel(struct sdhci_host *host, in sdhci_external_dma_channel()
1386 void sdhci_switch_external_dma(struct sdhci_host *host, bool en) in sdhci_switch_external_dma()
1392 static inline bool sdhci_auto_cmd12(struct sdhci_host *host, in sdhci_auto_cmd12()
1399 static inline bool sdhci_auto_cmd23(struct sdhci_host *host, in sdhci_auto_cmd23()
1405 static inline bool sdhci_manual_cmd23(struct sdhci_host *host, in sdhci_manual_cmd23()
1411 static inline void sdhci_auto_cmd_select(struct sdhci_host *host, in sdhci_auto_cmd_select()
1450 static void sdhci_set_transfer_mode(struct sdhci_host *host, in sdhci_set_transfer_mode()
1491 static bool sdhci_needs_reset(struct sdhci_host *host, struct mmc_request *mrq) in sdhci_needs_reset()
1500 static void sdhci_set_mrq_done(struct sdhci_host *host, struct mmc_request *mrq) in sdhci_set_mrq_done()
1521 static void __sdhci_finish_mrq(struct sdhci_host *host, struct mmc_request *mrq) in __sdhci_finish_mrq()
1546 static void sdhci_finish_mrq(struct sdhci_host *host, struct mmc_request *mrq) in sdhci_finish_mrq()
1553 static void __sdhci_finish_data(struct sdhci_host *host, bool sw_data_timeout) in __sdhci_finish_data()
1625 static void sdhci_finish_data(struct sdhci_host *host) in sdhci_finish_data()
1630 static bool sdhci_send_command(struct sdhci_host *host, struct mmc_command *cmd) in sdhci_send_command()
1721 static bool sdhci_present_error(struct sdhci_host *host, in sdhci_present_error()
1732 static bool sdhci_send_command_retry(struct sdhci_host *host, in sdhci_send_command_retry()
1774 static void sdhci_read_rsp_136(struct sdhci_host *host, struct mmc_command *cmd) in sdhci_read_rsp_136()
1794 static void sdhci_finish_command(struct sdhci_host *host) in sdhci_finish_command()
1848 static u16 sdhci_get_preset_value(struct sdhci_host *host) in sdhci_get_preset_value()
1886 u16 sdhci_calc_clk(struct sdhci_host *host, unsigned int clock, in sdhci_calc_clk()
1978 void sdhci_enable_clk(struct sdhci_host *host, u16 clk) in sdhci_enable_clk()
2032 void sdhci_set_clock(struct sdhci_host *host, unsigned int clock) in sdhci_set_clock()
2048 static void sdhci_set_power_reg(struct sdhci_host *host, unsigned char mode, in sdhci_set_power_reg()
2061 void sdhci_set_power_noreg(struct sdhci_host *host, unsigned char mode, in sdhci_set_power_noreg()
2141 void sdhci_set_power(struct sdhci_host *host, unsigned char mode, in sdhci_set_power()
2157 void sdhci_set_power_and_bus_voltage(struct sdhci_host *host, in sdhci_set_power_and_bus_voltage()
2178 struct sdhci_host *host = mmc_priv(mmc); in sdhci_request() local
2210 struct sdhci_host *host = mmc_priv(mmc); in sdhci_request_atomic() local
2242 void sdhci_set_bus_width(struct sdhci_host *host, int width) in sdhci_set_bus_width()
2262 void sdhci_set_uhs_signaling(struct sdhci_host *host, unsigned timing) in sdhci_set_uhs_signaling()
2301 static bool sdhci_preset_needed(struct sdhci_host *host, unsigned char timing) in sdhci_preset_needed()
2307 static bool sdhci_presetable_values_change(struct sdhci_host *host, struct mmc_ios *ios) in sdhci_presetable_values_change()
2320 struct sdhci_host *host = mmc_priv(mmc); in sdhci_set_ios() local
2472 struct sdhci_host *host = mmc_priv(mmc); in sdhci_get_cd() local
2499 struct sdhci_host *host = mmc_priv(mmc); in sdhci_get_cd_nogpio() local
2516 static int sdhci_check_ro(struct sdhci_host *host) in sdhci_check_ro()
2547 struct sdhci_host *host = mmc_priv(mmc); in sdhci_get_ro() local
2566 struct sdhci_host *host = mmc_priv(mmc); in sdhci_hw_reset() local
2572 static void sdhci_enable_sdio_irq_nolock(struct sdhci_host *host, int enable) in sdhci_enable_sdio_irq_nolock()
2587 struct sdhci_host *host = mmc_priv(mmc); in sdhci_enable_sdio_irq() local
2604 struct sdhci_host *host = mmc_priv(mmc); in sdhci_ack_sdio_irq() local
2615 struct sdhci_host *host = mmc_priv(mmc); in sdhci_start_signal_voltage_switch() local
2709 struct sdhci_host *host = mmc_priv(mmc); in sdhci_card_busy() local
2720 struct sdhci_host *host = mmc_priv(mmc); in sdhci_prepare_hs400_tuning() local
2730 void sdhci_start_tuning(struct sdhci_host *host) in sdhci_start_tuning()
2755 void sdhci_end_tuning(struct sdhci_host *host) in sdhci_end_tuning()
2762 void sdhci_reset_tuning(struct sdhci_host *host) in sdhci_reset_tuning()
2773 void sdhci_abort_tuning(struct sdhci_host *host, u32 opcode) in sdhci_abort_tuning()
2792 void sdhci_send_tuning(struct sdhci_host *host, u32 opcode) in sdhci_send_tuning()
2847 static int __sdhci_execute_tuning(struct sdhci_host *host, u32 opcode) in __sdhci_execute_tuning()
2888 struct sdhci_host *host = mmc_priv(mmc); in sdhci_execute_tuning() local
2955 static void sdhci_enable_preset_value(struct sdhci_host *host, bool enable) in sdhci_enable_preset_value()
2998 struct sdhci_host *host = mmc_priv(mmc); in sdhci_pre_req() local
3011 static void sdhci_error_out_mrqs(struct sdhci_host *host, int err) in sdhci_error_out_mrqs()
3026 struct sdhci_host *host = mmc_priv(mmc); in sdhci_card_event() local
3076 static bool sdhci_request_done(struct sdhci_host *host) in sdhci_request_done()
3198 struct sdhci_host *host = container_of(work, struct sdhci_host, in sdhci_complete_work() local
3207 struct sdhci_host *host; in sdhci_timeout_timer() local
3229 struct sdhci_host *host; in sdhci_timeout_data_timer() local
3265 static void sdhci_cmd_irq(struct sdhci_host *host, u32 intmask, u32 *intmask_p) in sdhci_cmd_irq()
3341 static void sdhci_adma_show_error(struct sdhci_host *host) in sdhci_adma_show_error()
3373 static void sdhci_data_irq(struct sdhci_host *host, u32 intmask) in sdhci_data_irq()
3513 static inline bool sdhci_defer_done(struct sdhci_host *host, in sdhci_defer_done()
3527 struct sdhci_host *host = dev_id; in sdhci_irq() local
3667 struct sdhci_host *host = dev_id; in sdhci_thread_irq() local
3704 static bool sdhci_cd_irq_can_wakeup(struct sdhci_host *host) in sdhci_cd_irq_can_wakeup()
3719 static bool sdhci_enable_irq_wakeups(struct sdhci_host *host) in sdhci_enable_irq_wakeups()
3752 static void sdhci_disable_irq_wakeups(struct sdhci_host *host) in sdhci_disable_irq_wakeups()
3767 int sdhci_suspend_host(struct sdhci_host *host) in sdhci_suspend_host()
3786 int sdhci_resume_host(struct sdhci_host *host) in sdhci_resume_host()
3825 int sdhci_runtime_suspend_host(struct sdhci_host *host) in sdhci_runtime_suspend_host()
3847 int sdhci_runtime_resume_host(struct sdhci_host *host, int soft_reset) in sdhci_runtime_resume_host()
3908 struct sdhci_host *host = mmc_priv(mmc); in sdhci_cqe_enable() local
3952 struct sdhci_host *host = mmc_priv(mmc); in sdhci_cqe_disable() local
3972 bool sdhci_cqe_irq(struct sdhci_host *host, u32 intmask, int *cmd_error, in sdhci_cqe_irq()
4034 struct sdhci_host *host; in sdhci_alloc_host() local
4072 static int sdhci_set_dma_mask(struct sdhci_host *host) in sdhci_set_dma_mask()
4102 void __sdhci_read_caps(struct sdhci_host *host, const u16 *ver, in __sdhci_read_caps()
4154 static void sdhci_allocate_bounce_buffer(struct sdhci_host *host) in sdhci_allocate_bounce_buffer()
4218 static inline bool sdhci_can_64bit_dma(struct sdhci_host *host) in sdhci_can_64bit_dma()
4231 int sdhci_setup_host(struct sdhci_host *host) in sdhci_setup_host()
4780 void sdhci_cleanup_host(struct sdhci_host *host) in sdhci_cleanup_host()
4800 int __sdhci_add_host(struct sdhci_host *host) in __sdhci_add_host()
4869 int sdhci_add_host(struct sdhci_host *host) in sdhci_add_host()
4890 void sdhci_remove_host(struct sdhci_host *host, int dead) in sdhci_remove_host()
4944 void sdhci_free_host(struct sdhci_host *host) in sdhci_free_host()