/linux-master/drivers/mmc/host/ |
H A D | sdhci-of-at91.c | 16 #include <linux/mmc/host.h> 53 static void sdhci_at91_set_force_card_detect(struct sdhci_host *host) argument 57 mc1r = readb(host->ioaddr + SDMMC_MC1R); 59 writeb(mc1r, host->ioaddr + SDMMC_MC1R); 62 static void sdhci_at91_set_clock(struct sdhci_host *host, unsigned int clock) argument 66 host->mmc->actual_clock = 0; 76 clk = sdhci_readw(host, SDHCI_CLOCK_CONTROL); 78 sdhci_writew(host, clk, SDHCI_CLOCK_CONTROL); 83 clk = sdhci_calc_clk(host, clock, &host 100 sdhci_at91_set_uhs_signaling(struct sdhci_host *host, unsigned int timing) argument 113 sdhci_at91_reset(struct sdhci_host *host, u8 mask) argument 169 struct sdhci_host *host = dev_get_drvdata(dev); local 235 struct sdhci_host *host = dev_get_drvdata(dev); local 251 struct sdhci_host *host = dev_get_drvdata(dev); local 270 struct sdhci_host *host = dev_get_drvdata(dev); local 317 struct sdhci_host *host; local 448 struct sdhci_host *host = platform_get_drvdata(pdev); local [all...] |
H A D | sdhci-msm.c | 3 * drivers/mmc/host/sdhci-msm.c - Qualcomm SDHCI Platform driver 140 #define msm_host_readl(msm_host, host, offset) \ 141 msm_host->var_ops->msm_readl_relaxed(host, offset) 143 #define msm_host_writel(msm_host, val, host, offset) \ 144 msm_host->var_ops->msm_writel_relaxed(val, host, offset) 243 u32 (*msm_readl_relaxed)(struct sdhci_host *host, u32 offset); 244 void (*msm_writel_relaxed)(u32 val, struct sdhci_host *host, 295 static const struct sdhci_msm_offset *sdhci_priv_msm_offset(struct sdhci_host *host) argument 297 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); 307 static u32 sdhci_msm_mci_variant_readl_relaxed(struct sdhci_host *host, argument 316 sdhci_msm_v5_variant_readl_relaxed(struct sdhci_host *host, u32 offset) argument 322 sdhci_msm_mci_variant_writel_relaxed(u32 val, struct sdhci_host *host, u32 offset) argument 331 sdhci_msm_v5_variant_writel_relaxed(u32 val, struct sdhci_host *host, u32 offset) argument 337 msm_get_clock_mult_for_bus_mode(struct sdhci_host *host) argument 354 msm_set_clock_rate_for_bus_mode(struct sdhci_host *host, unsigned int clock) argument 394 msm_dll_poll_ck_out_en(struct sdhci_host *host, u8 poll) argument 421 msm_config_cm_dll_phase(struct sdhci_host *host, u8 phase) argument 491 msm_find_most_appropriate_phase(struct sdhci_host *host, u8 *phase_table, u8 total_phases) argument 593 msm_cm_dll_set_freq(struct sdhci_host *host) argument 624 msm_init_cm_dll(struct sdhci_host *host) argument 779 msm_hc_select_default(struct sdhci_host *host) argument 819 msm_hc_select_hs400(struct sdhci_host *host) argument 890 sdhci_msm_hc_select_mode(struct sdhci_host *host) argument 901 sdhci_msm_cdclp533_calibration(struct sdhci_host *host) argument 1004 sdhci_msm_cm_dll_sdc4_calibration(struct sdhci_host *host) argument 1080 sdhci_msm_hs400_dll_calibration(struct sdhci_host *host) argument 1123 sdhci_msm_is_tuning_needed(struct sdhci_host *host) argument 1141 sdhci_msm_restore_sdr_dll_config(struct sdhci_host *host) argument 1165 sdhci_msm_set_cdr(struct sdhci_host *host, bool enable) argument 1188 struct sdhci_host *host = mmc_priv(mmc); local 1298 sdhci_msm_hs400(struct sdhci_host *host, struct mmc_ios *ios) argument 1316 sdhci_msm_set_uhs_signaling(struct sdhci_host *host, unsigned int uhs) argument 1515 sdhci_msm_check_power_status(struct sdhci_host *host, u32 req_type) argument 1580 sdhci_msm_dump_pwr_ctrl_regs(struct sdhci_host *host) argument 1594 sdhci_msm_handle_pwr_irq(struct sdhci_host *host, int irq) argument 1732 struct sdhci_host *host = (struct sdhci_host *)data; local 1744 sdhci_msm_get_max_clock(struct sdhci_host *host) argument 1753 sdhci_msm_get_min_clock(struct sdhci_host *host) argument 1766 __sdhci_msm_set_clock(struct sdhci_host *host, unsigned int clock) argument 1785 sdhci_msm_set_clock(struct sdhci_host *host, unsigned int clock) argument 1865 struct sdhci_host *host = mmc_priv(cq_host->mmc); local 1917 sdhci_msm_cqe_irq(struct sdhci_host *host, u32 intmask) argument 1931 struct sdhci_host *host = mmc_priv(mmc); local 1941 struct sdhci_host *host = mmc_priv(mmc); local 1970 sdhci_msm_set_timeout(struct sdhci_host *host, struct mmc_command *cmd) argument 1995 sdhci_msm_cqe_add_host(struct sdhci_host *host, struct platform_device *pdev) argument 2073 __sdhci_msm_check_write(struct sdhci_host *host, u16 val, int reg) argument 2117 sdhci_msm_writew(struct sdhci_host *host, u16 val, int reg) argument 2129 sdhci_msm_writeb(struct sdhci_host *host, u8 val, int reg) argument 2146 struct sdhci_host *host = mmc_priv(mmc); local 2199 struct sdhci_host *host = mmc_priv(mmc); local 2252 sdhci_msm_dump_vendor_regs(struct sdhci_host *host) argument 2346 sdhci_msm_get_of_property(struct platform_device *pdev, struct sdhci_host *host) argument 2363 sdhci_msm_gcc_reset(struct device *dev, struct sdhci_host *host) argument 2403 struct sdhci_host *host; local 2673 struct sdhci_host *host = platform_get_drvdata(pdev); local 2694 struct sdhci_host *host = dev_get_drvdata(dev); local 2713 struct sdhci_host *host = dev_get_drvdata(dev); local [all...] |
H A D | meson-mx-sdhc-mmc.c | 3 * Amlogic Meson6/Meson8/Meson8b/Meson8m2 SDHC MMC host controller driver. 21 #include <linux/mmc/host.h> 68 static void meson_mx_sdhc_reset(struct meson_mx_sdhc_host *host) argument 70 regmap_write(host->regmap, MESON_SDHC_SRST, MESON_SDHC_SRST_MAIN_CTRL | 76 regmap_write(host->regmap, MESON_SDHC_SRST, 0); 82 struct meson_mx_sdhc_host *host = mmc_priv(mmc); local 85 regmap_read(host->regmap, MESON_SDHC_STAT, &stat); 90 regmap_write(host->regmap, MESON_SDHC_SRST, MESON_SDHC_SRST_RXFIFO | 94 regmap_read(host->regmap, MESON_SDHC_STAT, &stat); 97 dev_warn(mmc_dev(host 105 struct meson_mx_sdhc_host *host = mmc_priv(mmc); local 135 struct meson_mx_sdhc_host *host = mmc_priv(mmc); local 239 struct meson_mx_sdhc_host *host = mmc_priv(mmc); local 251 struct meson_mx_sdhc_host *host = mmc_priv(mmc); local 269 struct meson_mx_sdhc_host *host = mmc_priv(mmc); local 309 struct meson_mx_sdhc_host *host = mmc_priv(mmc); local 383 struct meson_mx_sdhc_host *host = mmc_priv(mmc); local 402 struct meson_mx_sdhc_host *host = mmc_priv(mmc); local 426 struct meson_mx_sdhc_host *host = mmc_priv(mmc); local 504 meson_mx_sdhc_request_done(struct meson_mx_sdhc_host *host) argument 521 meson_mx_sdhc_read_response(struct meson_mx_sdhc_host *host, u8 idx) argument 539 struct meson_mx_sdhc_host *host = data; local 573 struct meson_mx_sdhc_host *host = irq_data; local 635 struct meson_mx_sdhc_host *host = mmc_priv(mmc); local 651 struct meson_mx_sdhc_host *host = mmc_priv(mmc); local 677 struct meson_mx_sdhc_host *host = mmc_priv(mmc); local 702 struct meson_mx_sdhc_host *host = mmc_priv(mmc); local 718 struct meson_mx_sdhc_host *host = mmc_priv(mmc); local 726 struct meson_mx_sdhc_host *host = mmc_priv(mmc); local 768 struct meson_mx_sdhc_host *host; local 866 struct meson_mx_sdhc_host *host = platform_get_drvdata(pdev); local [all...] |
H A D | cqhci-crypto.h | 11 #include <linux/mmc/host.h> 17 int cqhci_crypto_init(struct cqhci_host *host); 38 static inline int cqhci_crypto_init(struct cqhci_host *host) argument
|
H A D | sdhci-dove.c | 13 #include <linux/mmc/host.h> 19 static u16 sdhci_dove_readw(struct sdhci_host *host, int reg) argument 29 ret = readw(host->ioaddr + reg); 34 static u32 sdhci_dove_readl(struct sdhci_host *host, int reg) argument 38 ret = readl(host->ioaddr + reg); 69 struct sdhci_host *host; local 73 host = sdhci_pltfm_init(pdev, &sdhci_dove_pdata, 0); 74 if (IS_ERR(host)) 75 return PTR_ERR(host); 77 pltfm_host = sdhci_priv(host); [all...] |
H A D | meson-mx-sdio.c | 25 #include <linux/mmc/host.h> 128 struct meson_mx_mmc_host *host = mmc_priv(mmc); local 131 regval = readl(host->base + reg); 135 writel(regval, host->base + reg); 138 static void meson_mx_mmc_soft_reset(struct meson_mx_mmc_host *host) argument 140 writel(MESON_MX_SDIO_IRQC_SOFT_RESET, host->base + MESON_MX_SDIO_IRQC); 158 struct meson_mx_mmc_host *host = mmc_priv(mmc); local 163 host->cmd = cmd; 216 spin_lock_irqsave(&host->irq_lock, irqflags); 218 mult = readl(host 243 meson_mx_mmc_request_done(struct meson_mx_mmc_host *host) argument 260 struct meson_mx_mmc_host *host = mmc_priv(mmc); local 339 struct meson_mx_mmc_host *host = mmc_priv(mmc); local 366 struct meson_mx_mmc_host *host = mmc_priv(mmc); local 388 meson_mx_mmc_process_cmd_irq(struct meson_mx_mmc_host *host, u32 irqs, u32 send) argument 419 struct meson_mx_mmc_host *host = (void *) data; local 443 struct meson_mx_mmc_host *host = (void *) irq_data; local 470 struct meson_mx_mmc_host *host = from_timer(host, t, cmd_timeout); local 529 meson_mx_mmc_add_host(struct meson_mx_mmc_host *host) argument 580 meson_mx_mmc_register_clks(struct meson_mx_mmc_host *host) argument 633 struct meson_mx_mmc_host *host; local 733 struct meson_mx_mmc_host *host = platform_get_drvdata(pdev); local [all...] |
H A D | sdhci-s3c.c | 2 /* linux/drivers/mmc/host/sdhci-s3c.c 27 #include <linux/mmc/host.h> 105 * @host: The SDHCI host created 117 struct sdhci_host *host; member in struct:sdhci_s3c 133 * @sdhci_quirks: sdhci host specific quirks. 145 static inline struct sdhci_s3c *to_s3c(struct sdhci_host *host) argument 147 return sdhci_priv(host); 152 * @host: The SDHCI host instanc 156 sdhci_s3c_get_max_clk(struct sdhci_host *host) argument 225 sdhci_s3c_set_clock(struct sdhci_host *host, unsigned int clock) argument 305 sdhci_s3c_get_min_clock(struct sdhci_host *host) argument 323 sdhci_cmu_get_max_clock(struct sdhci_host *host) argument 345 sdhci_cmu_get_min_clock(struct sdhci_host *host) argument 367 sdhci_cmu_set_clock(struct sdhci_host *host, unsigned int clock) argument 427 sdhci_s3c_parse_dt(struct device *dev, struct sdhci_host *host, struct s3c_sdhci_platdata *pdata) argument 457 sdhci_s3c_parse_dt(struct device *dev, struct sdhci_host *host, struct s3c_sdhci_platdata *pdata) argument 480 struct sdhci_host *host; local 672 struct sdhci_host *host = platform_get_drvdata(pdev); local 695 struct sdhci_host *host = dev_get_drvdata(dev); local 705 struct sdhci_host *host = dev_get_drvdata(dev); local 714 struct sdhci_host *host = dev_get_drvdata(dev); local 732 struct sdhci_host *host = dev_get_drvdata(dev); local [all...] |
H A D | dw_mmc-exynos.c | 11 #include <linux/mmc/host.h> 78 static inline u8 dw_mci_exynos_get_ciu_div(struct dw_mci *host) argument 80 struct dw_mci_exynos_priv_data *priv = host->priv; 89 return SDMMC_CLKSEL_GET_DIV(mci_readl(host, CLKSEL64)) + 1; 91 return SDMMC_CLKSEL_GET_DIV(mci_readl(host, CLKSEL)) + 1; 94 static void dw_mci_exynos_config_smu(struct dw_mci *host) argument 96 struct dw_mci_exynos_priv_data *priv = host->priv; 104 mci_writel(host, MPSBEGIN0, 0); 105 mci_writel(host, MPSEND0, SDMMC_ENDING_SEC_NR_MAX); 106 mci_writel(host, MPSCTRL 113 dw_mci_exynos_priv_init(struct dw_mci *host) argument 139 dw_mci_exynos_set_clksel_timing(struct dw_mci *host, u32 timing) argument 174 struct dw_mci *host = dev_get_drvdata(dev); local 214 struct dw_mci *host = dev_get_drvdata(dev); local 245 dw_mci_exynos_config_hs400(struct dw_mci *host, u32 timing) argument 278 dw_mci_exynos_adjust_clock(struct dw_mci *host, unsigned int wanted) argument 310 dw_mci_exynos_set_ios(struct dw_mci *host, struct mmc_ios *ios) argument 352 dw_mci_exynos_parse_dt(struct dw_mci *host) argument 406 dw_mci_exynos_get_clksmpl(struct dw_mci *host) argument 418 dw_mci_exynos_set_clksmpl(struct dw_mci *host, u8 sample) argument 438 dw_mci_exynos_move_next_clksmpl(struct dw_mci *host) argument 504 struct dw_mci *host = slot->host; local 535 dw_mci_exynos_prepare_hs400_tuning(struct dw_mci *host, struct mmc_ios *ios) argument 546 dw_mci_exynos_set_data_timeout(struct dw_mci *host, unsigned int timeout_ns) argument 584 dw_mci_exynos_get_drto_clks(struct dw_mci *host) argument [all...] |
H A D | rtsx_pci_sdmmc.c | 17 #include <linux/mmc/host.h> 51 static inline struct device *sdmmc_dev(struct realtek_pci_sdmmc *host) argument 53 return &(host->pdev->dev); 56 static inline void sd_clear_error(struct realtek_pci_sdmmc *host) argument 58 rtsx_pci_write_register(host->pcr, CARD_STOP, 63 static void dump_reg_range(struct realtek_pci_sdmmc *host, u16 start, u16 end) argument 75 rtsx_pci_read_register(host->pcr, start + i + j, 77 dev_dbg(sdmmc_dev(host), "0x%04X(%d): %8ph\n", 82 static void sd_print_debug_regs(struct realtek_pci_sdmmc *host) argument 84 dump_reg_range(host, 91 sd_get_cd_int(struct realtek_pci_sdmmc *host) argument 148 sd_pre_dma_transfer(struct realtek_pci_sdmmc *host, struct mmc_data *data, bool pre) argument 184 struct realtek_pci_sdmmc *host = mmc_priv(mmc); local 201 struct realtek_pci_sdmmc *host = mmc_priv(mmc); local 210 sd_send_cmd_get_rsp(struct realtek_pci_sdmmc *host, struct mmc_command *cmd) argument 328 sd_read_data(struct realtek_pci_sdmmc *host, struct mmc_command *cmd, u16 byte_cnt, u8 *buf, int buf_len, int timeout) argument 381 sd_write_data(struct realtek_pci_sdmmc *host, struct mmc_command *cmd, u16 byte_cnt, u8 *buf, int buf_len, int timeout) argument 428 sd_read_long_data(struct realtek_pci_sdmmc *host, struct mmc_request *mrq) argument 486 sd_write_long_data(struct realtek_pci_sdmmc *host, struct mmc_request *mrq) argument 543 sd_enable_initial_mode(struct realtek_pci_sdmmc *host) argument 549 sd_disable_initial_mode(struct realtek_pci_sdmmc *host) argument 555 sd_rw_multi(struct realtek_pci_sdmmc *host, struct mmc_request *mrq) argument 582 sd_normal_rw(struct realtek_pci_sdmmc *host, struct mmc_request *mrq) argument 616 sd_change_phase(struct realtek_pci_sdmmc *host, u8 sample_point, bool rx) argument 660 sd_search_final_phase(struct realtek_pci_sdmmc *host, u32 phase_map) argument 687 sd_wait_data_idle(struct realtek_pci_sdmmc *host) argument 701 sd_tuning_rx_cmd(struct realtek_pci_sdmmc *host, u8 opcode, u8 sample_point) argument 728 sd_tuning_phase(struct realtek_pci_sdmmc *host, u8 opcode, u32 *phase_map) argument 746 sd_tuning_rx(struct realtek_pci_sdmmc *host, u8 opcode) argument 799 struct realtek_pci_sdmmc *host = container_of(work, local 876 struct realtek_pci_sdmmc *host = mmc_priv(mmc); local 889 sd_set_bus_width(struct realtek_pci_sdmmc *host, unsigned char bus_width) argument 906 sd_power_on(struct realtek_pci_sdmmc *host, unsigned char power_mode) argument 980 sd_power_off(struct realtek_pci_sdmmc *host) argument 1003 sd_set_power_mode(struct realtek_pci_sdmmc *host, unsigned char power_mode) argument 1016 sd_set_timing(struct realtek_pci_sdmmc *host, unsigned char timing) argument 1090 struct realtek_pci_sdmmc *host = mmc_priv(mmc); local 1138 struct realtek_pci_sdmmc *host = mmc_priv(mmc); local 1163 struct realtek_pci_sdmmc *host = mmc_priv(mmc); local 1186 sd_wait_voltage_stable_1(struct realtek_pci_sdmmc *host) argument 1219 sd_wait_voltage_stable_2(struct realtek_pci_sdmmc *host) argument 1261 struct realtek_pci_sdmmc *host = mmc_priv(mmc); local 1313 struct realtek_pci_sdmmc *host = mmc_priv(mmc); local 1365 struct realtek_pci_sdmmc *host = mmc_priv(mmc); local 1427 init_extra_caps(struct realtek_pci_sdmmc *host) argument 1450 realtek_init_host(struct realtek_pci_sdmmc *host) argument 1480 struct realtek_pci_sdmmc *host = platform_get_drvdata(pdev); local 1489 struct realtek_pci_sdmmc *host; local 1543 struct realtek_pci_sdmmc *host = platform_get_drvdata(pdev); local [all...] |
H A D | sdhci-sprd.c | 12 #include <linux/mmc/host.h> 91 int flags; /* backup of host attribute */ 117 #define TO_SPRD_HOST(host) sdhci_pltfm_priv(sdhci_priv(host)) 119 static void sdhci_sprd_init_config(struct sdhci_host *host) argument 124 val = sdhci_readl(host, SDHCI_SPRD_REG_DEBOUNCE); 126 sdhci_writel(host, val, SDHCI_SPRD_REG_DEBOUNCE); 129 static inline u32 sdhci_sprd_readl(struct sdhci_host *host, int reg) argument 134 return readl_relaxed(host->ioaddr + reg); 137 static inline void sdhci_sprd_writel(struct sdhci_host *host, u3 argument 149 sdhci_sprd_writew(struct sdhci_host *host, u16 val, int reg) argument 158 sdhci_sprd_writeb(struct sdhci_host *host, u8 val, int reg) argument 176 sdhci_sprd_sd_clk_off(struct sdhci_host *host) argument 184 sdhci_sprd_sd_clk_on(struct sdhci_host *host) argument 194 sdhci_sprd_set_dll_invert(struct sdhci_host *host, u32 mask, bool en) argument 230 _sdhci_sprd_set_clock(struct sdhci_host *host, unsigned int clk) argument 258 sdhci_sprd_enable_phy_dll(struct sdhci_host *host) argument 291 sdhci_sprd_set_clock(struct sdhci_host *host, unsigned int clock) argument 320 sdhci_sprd_get_max_clock(struct sdhci_host *host) argument 327 sdhci_sprd_get_min_clock(struct sdhci_host *host) argument 332 sdhci_sprd_set_uhs_signaling(struct sdhci_host *host, unsigned int timing) argument 381 sdhci_sprd_hw_reset(struct sdhci_host *host) argument 402 sdhci_sprd_get_max_timeout_count(struct sdhci_host *host) argument 408 sdhci_sprd_get_ro(struct sdhci_host *host) argument 413 sdhci_sprd_request_done(struct sdhci_host *host, struct mmc_request *mrq) argument 423 sdhci_sprd_set_power(struct sdhci_host *host, unsigned char mode, unsigned short vdd) argument 464 struct sdhci_host *host = mmc_priv(mmc); local 497 struct sdhci_host *host = mmc_priv(mmc); local 549 struct sdhci_host *host = mmc_priv(mmc); local 631 struct sdhci_host *host = mmc_priv(mmc); local 734 struct sdhci_host *host; local 903 struct sdhci_host *host = platform_get_drvdata(pdev); local 924 struct sdhci_host *host = dev_get_drvdata(dev); local 939 struct sdhci_host *host = dev_get_drvdata(dev); local [all...] |
H A D | sdhci-pxav2.c | 18 #include <linux/mmc/host.h> 53 static void pxav2_reset(struct sdhci_host *host, u8 mask) argument 55 struct platform_device *pdev = to_platform_device(mmc_dev(host->mmc)); 58 sdhci_reset(host, mask); 68 tmp = readw(host->ioaddr + SD_CLOCK_BURST_SIZE_SETUP); 76 writew(tmp, host->ioaddr + SD_CLOCK_BURST_SIZE_SETUP); 80 tmp = readw(host->ioaddr + SD_FIFO_PARAM); 82 writew(tmp, host->ioaddr + SD_FIFO_PARAM); 84 tmp = readw(host->ioaddr + SD_FIFO_PARAM); 87 writew(tmp, host 92 pxav1_readw(struct sdhci_host *host, int reg) argument 101 pxav1_irq(struct sdhci_host *host, u32 intmask) argument 123 pxav1_request_done(struct sdhci_host *host, struct mmc_request *mrq) argument 157 pxav2_mmc_set_bus_width(struct sdhci_host *host, int width) argument 258 struct sdhci_host *host = NULL; local [all...] |
/linux-master/drivers/scsi/ |
H A D | a4000t.c | 40 struct Scsi_Host *host; local 53 dev_err(&pdev->dev, "Failed to allocate host data\n"); 67 host = NCR_700_detect(&a4000t_scsi_driver_template, hostdata, 69 if (!host) { 71 "No host detected; board configuration problem?\n"); 75 host->this_id = 7; 76 host->base = scsi_addr; 77 host->irq = IRQ_AMIGA_PORTS; 79 if (request_irq(host->irq, NCR_700_intr, IRQF_SHARED, "a4000t-scsi", 80 host)) { 100 struct Scsi_Host *host = platform_get_drvdata(pdev); local [all...] |
H A D | sni_53c710.c | 58 struct Scsi_Host *host; local 81 host = NCR_700_detect(&snirm710_template, hostdata, &dev->dev); 82 if (!host) 84 host->this_id = 7; 85 host->base = base; 86 host->irq = rc = platform_get_irq(dev, 0); 89 if(request_irq(host->irq, NCR_700_intr, IRQF_SHARED, "snirm710", host)) { 94 dev_set_drvdata(&dev->dev, host); 95 scsi_scan_host(host); 109 struct Scsi_Host *host = dev_get_drvdata(&dev->dev); local [all...] |
H A D | mvme16x_scsi.c | 40 struct Scsi_Host * host = NULL; local 55 "Failed to allocate host data\n"); 68 host = NCR_700_detect(&mvme16x_scsi_driver_template, hostdata, 70 if (!host) { 71 printk(KERN_ERR "mvme16x-scsi: No host detected; " 75 host->this_id = 7; 76 host->base = 0xfff47000UL; 77 host->irq = MVME16x_IRQ_SCSI; 78 if (request_irq(host->irq, NCR_700_intr, 0, "mvme16x-scsi", host)) { 108 struct Scsi_Host *host = platform_get_drvdata(dev); local [all...] |
H A D | bvme6000_scsi.c | 41 struct Scsi_Host *host; local 50 "Failed to allocate host data\n"); 63 host = NCR_700_detect(&bvme6000_scsi_driver_template, hostdata, 65 if (!host) { 66 printk(KERN_ERR "bvme6000-scsi: No host detected; " 70 host->base = BVME_NCR53C710_BASE; 71 host->this_id = 7; 72 host->irq = BVME_IRQ_SCSI; 74 host)) { 79 platform_set_drvdata(dev, host); 95 struct Scsi_Host *host = platform_get_drvdata(dev); local [all...] |
/linux-master/arch/x86/coco/tdx/ |
H A D | tdcall.S | 26 TDX_MODULE_CALL host=0 44 TDX_MODULE_CALL host=0 ret=1 62 TDX_MODULE_CALL host=0 ret=1 saved=1
|
/linux-master/drivers/mmc/core/ |
H A D | sd.c | 19 #include <linux/mmc/host.h> 26 #include "host.h" 198 mmc_hostname(card->host), csd_struct); 222 mmc_hostname(card->host), scr_struct); 250 pr_err("%s: invalid bus width\n", mmc_hostname(card->host)); 270 mmc_hostname(card->host)); 280 mmc_hostname(card->host)); 307 mmc_hostname(card->host)); 335 mmc_hostname(card->host)); 351 * If the host o 532 sd_get_host_max_current(struct mmc_host *host) argument 723 struct mmc_host *host = card->host; local 815 mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr) argument 907 mmc_sd_get_ro(struct mmc_host *host) argument 927 mmc_sd_setup_card(struct mmc_host *host, struct mmc_card *card, bool reinit) argument 1021 struct mmc_host *host = card->host; local 1307 sd_cache_enabled(struct mmc_host *host) argument 1312 sd_flush_cache(struct mmc_host *host) argument 1403 mmc_sd_init_card(struct mmc_host *host, u32 ocr, struct mmc_card *oldcard) argument 1593 mmc_sd_remove(struct mmc_host *host) argument 1602 mmc_sd_alive(struct mmc_host *host) argument 1610 mmc_sd_detect(struct mmc_host *host) argument 1699 _mmc_sd_suspend(struct mmc_host *host) argument 1727 mmc_sd_suspend(struct mmc_host *host) argument 1744 _mmc_sd_resume(struct mmc_host *host) argument 1765 mmc_sd_resume(struct mmc_host *host) argument 1774 mmc_sd_runtime_suspend(struct mmc_host *host) argument 1792 mmc_sd_runtime_resume(struct mmc_host *host) argument 1804 mmc_sd_hw_reset(struct mmc_host *host) argument 1827 mmc_attach_sd(struct mmc_host *host) argument [all...] |
H A D | queue.c | 15 #include <linux/mmc/host.h> 22 #include "host.h" 38 static inline bool mmc_cqe_can_dcmd(struct mmc_host *host) argument 40 return host->caps2 & MMC_CAP2_CQE_DCMD; 43 static enum mmc_issue_type mmc_cqe_issue_type(struct mmc_host *host, argument 54 return mmc_cqe_can_dcmd(host) ? MMC_ISSUE_DCMD : MMC_ISSUE_SYNC; 62 struct mmc_host *host = mq->card->host; local 64 if (host->cqe_enabled && !host 100 struct mmc_host *host = mq->card->host; local 125 struct mmc_host *host = card->host; local 141 struct mmc_host *host = mq->card->host; local 199 mmc_get_max_segments(struct mmc_host *host) argument 211 struct mmc_host *host = card->host; local 236 struct mmc_host *host = card->host; local 349 struct mmc_host *host = card->host; local 404 mmc_merge_capable(struct mmc_host *host) argument 421 struct mmc_host *host = card->host; local [all...] |
/linux-master/sound/soc/sunxi/ |
H A D | sun50i-dmic.c | 78 struct sun50i_dmic_dev *host = snd_soc_dai_get_drvdata(snd_soc_rtd_to_cpu(rtd, 0)); local 84 regmap_update_bits(host->regmap, SUN50I_DMIC_RXFIFO_CTL, 87 regmap_write(host->regmap, SUN50I_DMIC_CNT, SUN50I_DMIC_CNT_N); 101 struct sun50i_dmic_dev *host = snd_soc_dai_get_drvdata(cpu_dai); local 104 regmap_update_bits(host->regmap, SUN50I_DMIC_CH_NUM, 107 regmap_write(host->regmap, SUN50I_DMIC_HPF_CTRL, chan_en); 108 regmap_update_bits(host->regmap, SUN50I_DMIC_EN_CTL, 114 regmap_update_bits(host->regmap, SUN50I_DMIC_RXFIFO_CTL, 119 regmap_update_bits(host->regmap, SUN50I_DMIC_RXFIFO_CTL, 128 regmap_update_bits(host 194 struct sun50i_dmic_dev *host = snd_soc_dai_get_drvdata(dai); local 231 struct sun50i_dmic_dev *host = snd_soc_dai_get_drvdata(dai); local 282 struct sun50i_dmic_dev *host = dev_get_drvdata(dev); local 292 struct sun50i_dmic_dev *host = dev_get_drvdata(dev); local 310 struct sun50i_dmic_dev *host; local [all...] |
/linux-master/drivers/memstick/host/ |
H A D | rtsx_pci_ms.c | 33 static inline struct device *ms_dev(struct realtek_pci_ms *host) argument 35 return &(host->pdev->dev); 38 static inline void ms_clear_error(struct realtek_pci_ms *host) argument 40 rtsx_pci_write_register(host->pcr, CARD_STOP, 46 static void ms_print_debug_regs(struct realtek_pci_ms *host) argument 48 struct rtsx_pcr *pcr = host->pcr; 52 /* Print MS host internal registers */ 62 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", i, *(ptr++)); 64 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", i, *(ptr++)); 69 #define ms_print_debug_regs(host) 73 ms_power_on(struct realtek_pci_ms *host) argument 107 ms_power_off(struct realtek_pci_ms *host) argument 128 ms_transfer_data(struct realtek_pci_ms *host, unsigned char data_dir, u8 tpc, u8 cfg, struct scatterlist *sg) argument 199 ms_write_bytes(struct realtek_pci_ms *host, u8 tpc, u8 cfg, u8 cnt, u8 *data, u8 *int_reg) argument 267 ms_read_bytes(struct realtek_pci_ms *host, u8 tpc, u8 cfg, u8 cnt, u8 *data, u8 *int_reg) argument 338 rtsx_pci_ms_issue_cmd(struct realtek_pci_ms *host) argument 391 struct realtek_pci_ms *host = container_of(work, local 422 struct realtek_pci_ms *host = memstick_priv(msh); local 435 struct realtek_pci_ms *host = memstick_priv(msh); local 497 struct realtek_pci_ms *host = platform_get_drvdata(pdev); local 508 struct realtek_pci_ms *host = platform_get_drvdata(pdev); local 526 struct realtek_pci_ms *host = platform_get_drvdata(pdev); local 534 struct realtek_pci_ms *host; local 579 struct realtek_pci_ms *host = platform_get_drvdata(pdev); local [all...] |
H A D | rtsx_usb_ms.c | 42 static inline struct device *ms_dev(struct rtsx_usb_ms *host) argument 44 return &(host->pdev->dev); 47 static inline void ms_clear_error(struct rtsx_usb_ms *host) argument 49 struct rtsx_ucr *ucr = host->ucr; 60 static void ms_print_debug_regs(struct rtsx_usb_ms *host) argument 62 struct rtsx_ucr *ucr = host->ucr; 66 /* Print MS host internal registers */ 92 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", i, *(ptr++)); 94 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", i, *(ptr++)); 96 dev_dbg(ms_dev(host), " 106 ms_print_debug_regs(struct rtsx_usb_ms *host) argument 168 ms_power_on(struct rtsx_usb_ms *host) argument 208 ms_power_off(struct rtsx_usb_ms *host) argument 230 ms_transfer_data(struct rtsx_usb_ms *host, unsigned char data_dir, u8 tpc, u8 cfg, struct scatterlist *sg) argument 316 ms_write_bytes(struct rtsx_usb_ms *host, u8 tpc, u8 cfg, u8 cnt, u8 *data, u8 *int_reg) argument 383 ms_read_bytes(struct rtsx_usb_ms *host, u8 tpc, u8 cfg, u8 cnt, u8 *data, u8 *int_reg) argument 456 rtsx_usb_ms_issue_cmd(struct rtsx_usb_ms *host) argument 508 struct rtsx_usb_ms *host = container_of(work, local 543 struct rtsx_usb_ms *host = memstick_priv(msh); local 554 struct rtsx_usb_ms *host = memstick_priv(msh); local 646 struct rtsx_usb_ms *host = dev_get_drvdata(dev); local 672 struct rtsx_usb_ms *host = dev_get_drvdata(dev); local 685 struct rtsx_usb_ms *host = dev_get_drvdata(dev); local 698 struct rtsx_usb_ms *host = dev_get_drvdata(dev); local 718 struct rtsx_usb_ms *host = container_of(work, struct rtsx_usb_ms, local 759 struct rtsx_usb_ms *host; local 810 struct rtsx_usb_ms *host = platform_get_drvdata(pdev); local [all...] |
/linux-master/drivers/spi/ |
H A D | spi-cavium-thunderx.c | 23 struct spi_controller *host; local 27 host = spi_alloc_host(dev, sizeof(struct octeon_spi)); 28 if (!host) 31 p = spi_controller_get_devdata(host); 63 host->flags = SPI_CONTROLLER_HALF_DUPLEX; 64 host->num_chipselect = 4; 65 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | 67 host->transfer_one_message = octeon_spi_transfer_one_message; 68 host->bits_per_word_mask = SPI_BPW_MASK(8); 69 host 88 struct spi_controller *host = pci_get_drvdata(pdev); local [all...] |
/linux-master/drivers/mtd/nand/raw/ |
H A D | lpc32xx_slc.c | 236 static void lpc32xx_nand_setup(struct lpc32xx_nand_host *host) argument 241 writel(SLCCTRL_SW_RESET, SLC_CTRL(host->io_base)); 245 writel(0, SLC_CFG(host->io_base)); 246 writel(0, SLC_IEN(host->io_base)); 248 SLC_ICR(host->io_base)); 251 clkrate = clk_get_rate(host->clk); 256 tmp = SLCTAC_WDR(host->ncfg->wdr_clks) | 257 SLCTAC_WWIDTH(clkrate, host->ncfg->wwidth) | 258 SLCTAC_WHOLD(clkrate, host->ncfg->whold) | 259 SLCTAC_WSETUP(clkrate, host 274 struct lpc32xx_nand_host *host = nand_get_controller_data(chip); local 297 struct lpc32xx_nand_host *host = nand_get_controller_data(chip); local 309 lpc32xx_wp_enable(struct lpc32xx_nand_host *host) argument 318 lpc32xx_wp_disable(struct lpc32xx_nand_host *host) argument 351 struct lpc32xx_nand_host *host = nand_get_controller_data(chip); local 361 struct lpc32xx_nand_host *host = nand_get_controller_data(chip); local 374 struct lpc32xx_nand_host *host = nand_get_controller_data(chip); local 429 struct lpc32xx_nand_host *host = nand_get_controller_data(chip); local 489 struct lpc32xx_nand_host *host = nand_get_controller_data(chip); local 604 struct lpc32xx_nand_host *host = nand_get_controller_data(chip); local 672 struct lpc32xx_nand_host *host = nand_get_controller_data(chip); local 719 lpc32xx_nand_dma_setup(struct lpc32xx_nand_host *host) argument 772 struct lpc32xx_nand_host *host = nand_get_controller_data(chip); local 828 struct lpc32xx_nand_host *host; local 946 struct lpc32xx_nand_host *host = platform_get_drvdata(pdev); local 965 struct lpc32xx_nand_host *host = platform_get_drvdata(pdev); local 985 struct lpc32xx_nand_host *host = platform_get_drvdata(pdev); local [all...] |
H A D | fsmc_nand.c | 262 static void fsmc_nand_setup(struct fsmc_nand_data *host, argument 275 if (host->nand.options & NAND_BUSWIDTH_16) 278 writel_relaxed(value | tclr | tar, host->regs_va + FSMC_PC); 279 writel_relaxed(thiz | thold | twait | tset, host->regs_va + COMM); 280 writel_relaxed(thiz | thold | twait | tset, host->regs_va + ATTRIB); 283 static int fsmc_calc_timings(struct fsmc_nand_data *host, argument 287 unsigned long hclk = clk_get_rate(host->clk); 350 struct fsmc_nand_data *host = nand_to_fsmc(nand); local 359 ret = fsmc_calc_timings(host, sdrt, &tims); 366 fsmc_nand_setup(host, 376 struct fsmc_nand_data *host = nand_to_fsmc(chip); local 394 struct fsmc_nand_data *host = nand_to_fsmc(chip); local 442 struct fsmc_nand_data *host = nand_to_fsmc(chip); local 480 struct fsmc_nand_data *host = param; local 485 dma_xfer(struct fsmc_nand_data *host, void *buffer, int len, enum dma_data_direction direction) argument 559 fsmc_write_buf(struct fsmc_nand_data *host, const u8 *buf, int len) argument 583 fsmc_read_buf(struct fsmc_nand_data *host, u8 *buf, int len) argument 606 fsmc_read_buf_dma(struct fsmc_nand_data *host, u8 *buf, int len) argument 618 fsmc_write_buf_dma(struct fsmc_nand_data *host, const u8 *buf, int len) argument 633 struct fsmc_nand_data *host = nand_to_fsmc(chip); local 782 struct fsmc_nand_data *host = nand_to_fsmc(chip); local 864 fsmc_nand_probe_config_dt(struct platform_device *pdev, struct fsmc_nand_data *host, struct nand_chip *nand) argument 912 struct fsmc_nand_data *host = nand_to_fsmc(nand); local 1008 fsmc_nand_disable(struct fsmc_nand_data *host) argument 1023 struct fsmc_nand_data *host; local 1165 struct fsmc_nand_data *host = platform_get_drvdata(pdev); local 1186 struct fsmc_nand_data *host = dev_get_drvdata(dev); local 1196 struct fsmc_nand_data *host = dev_get_drvdata(dev); local [all...] |
/linux-master/drivers/mtd/spi-nor/controllers/ |
H A D | hisi-sfc.c | 85 struct hifmc_host *host; member in struct:hifmc_priv 103 static inline int hisi_spi_nor_wait_op_finish(struct hifmc_host *host) argument 107 return readl_poll_timeout(host->regbase + FMC_INT, reg, 137 static void hisi_spi_nor_init(struct hifmc_host *host) argument 144 writel(reg, host->regbase + FMC_SPI_TIMING_CFG); 150 struct hifmc_host *host = priv->host; local 153 mutex_lock(&host->lock); 155 ret = clk_set_rate(host->clk, priv->clkrate); 159 ret = clk_prepare_enable(host 173 struct hifmc_host *host = priv->host; local 183 struct hifmc_host *host = priv->host; local 206 struct hifmc_host *host = priv->host; local 221 struct hifmc_host *host = priv->host; local 233 struct hifmc_host *host = priv->host; local 272 struct hifmc_host *host = priv->host; local 295 struct hifmc_host *host = priv->host; local 326 hisi_spi_nor_register(struct device_node *np, struct hifmc_host *host) argument 386 hisi_spi_nor_unregister_all(struct hifmc_host *host) argument 394 hisi_spi_nor_register_all(struct hifmc_host *host) argument 424 struct hifmc_host *host; local 473 struct hifmc_host *host = platform_get_drvdata(pdev); local [all...] |