Home
last modified time | relevance | path

Searched refs:cq_host (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/mmc/host/
H A Dcqhci-core.c36 static bool cqhci_halted(struct cqhci_host *cq_host) in cqhci_halted() argument
38 return cqhci_readl(cq_host, CQHCI_CTL) & CQHCI_HALT; in cqhci_halted()
41 static inline u8 *get_desc(struct cqhci_host *cq_host, u8 tag) in get_desc() argument
43 return cq_host->desc_base + (tag * cq_host->slot_sz); in get_desc()
46 static inline u8 *get_link_desc(struct cqhci_host *cq_host, u8 tag) in get_link_desc() argument
48 u8 *desc = get_desc(cq_host, tag); in get_link_desc()
50 return desc + cq_host->task_desc_len; in get_link_desc()
53 static inline size_t get_trans_desc_offset(struct cqhci_host *cq_host, u8 tag) in get_trans_desc_offset() argument
55 return cq_host->trans_desc_len * cq_host->mmc->max_segs * tag; in get_trans_desc_offset()
58 static inline dma_addr_t get_trans_desc_dma(struct cqhci_host *cq_host, u8 tag) in get_trans_desc_dma() argument
[all …]
H A Dcqhci-crypto.c31 static void cqhci_crypto_program_key(struct cqhci_host *cq_host, in cqhci_crypto_program_key() argument
35 u32 slot_offset = cq_host->crypto_cfg_register + slot * sizeof(*cfg); in cqhci_crypto_program_key()
39 cqhci_writel(cq_host, 0, slot_offset + 16 * sizeof(cfg->reg_val[0])); in cqhci_crypto_program_key()
43 cqhci_writel(cq_host, le32_to_cpu(cfg->reg_val[i]), in cqhci_crypto_program_key()
47 cqhci_writel(cq_host, le32_to_cpu(cfg->reg_val[17]), in cqhci_crypto_program_key()
50 cqhci_writel(cq_host, le32_to_cpu(cfg->reg_val[16]), in cqhci_crypto_program_key()
59 struct cqhci_host *cq_host = cqhci_host_from_crypto_profile(profile); in cqhci_crypto_keyslot_program() local
61 cq_host->crypto_cap_array; in cqhci_crypto_keyslot_program()
70 for (i = 0; i < cq_host->crypto_capabilities.num_crypto_cap; i++) { in cqhci_crypto_keyslot_program()
94 cqhci_crypto_program_key(cq_host, &cfg, slot); in cqhci_crypto_keyslot_program()
[all …]
H A Dsdhci-pci-gli.c1730 struct cqhci_host *cq_host = mmc->cqe_private; in sdhci_gl9763e_cqe_pre_enable() local
1733 value = cqhci_readl(cq_host, CQHCI_CFG); in sdhci_gl9763e_cqe_pre_enable()
1735 cqhci_writel(cq_host, value, CQHCI_CFG); in sdhci_gl9763e_cqe_pre_enable()
1762 struct cqhci_host *cq_host = mmc->cqe_private; in sdhci_gl9763e_cqe_post_disable() local
1765 value = cqhci_readl(cq_host, CQHCI_CFG); in sdhci_gl9763e_cqe_post_disable()
1767 cqhci_writel(cq_host, value, CQHCI_CFG); in sdhci_gl9763e_cqe_post_disable()
1783 struct cqhci_host *cq_host; in gl9763e_add_host() local
1791 cq_host = devm_kzalloc(dev, sizeof(*cq_host), GFP_KERNEL); in gl9763e_add_host()
1792 if (!cq_host) { in gl9763e_add_host()
1797 cq_host->mmio = host->ioaddr + SDHCI_GLI_9763E_CQE_BASE_ADDR; in gl9763e_add_host()
[all …]
H A Dsdhci-of-dwcmshc.c615 static void dwcmshc_set_tran_desc(struct cqhci_host *cq_host, u8 **desc, in dwcmshc_set_tran_desc() argument
631 *desc += cq_host->trans_desc_len; in dwcmshc_set_tran_desc()
1847 struct cqhci_host *cq_host; in dwcmshc_cqhci_init() local
1855 cq_host = devm_kzalloc(&pdev->dev, sizeof(*cq_host), GFP_KERNEL); in dwcmshc_cqhci_init()
1856 if (!cq_host) { in dwcmshc_cqhci_init()
1874 cq_host->mmio = host->ioaddr + priv->vendor_specific_area2; in dwcmshc_cqhci_init()
1876 cq_host->ops = pltfm_data->cqhci_host_ops; in dwcmshc_cqhci_init()
1878 cq_host->ops = &dwcmshc_cqhci_ops; in dwcmshc_cqhci_init()
1884 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in dwcmshc_cqhci_init()
1886 err = cqhci_init(cq_host, host->mmc, dma64); in dwcmshc_cqhci_init()
[all …]
H A Dsdhci-of-arasan.c1837 struct cqhci_host *cq_host; in sdhci_arasan_add_host() local
1848 cq_host = devm_kzalloc(host->mmc->parent, in sdhci_arasan_add_host()
1849 sizeof(*cq_host), GFP_KERNEL); in sdhci_arasan_add_host()
1850 if (!cq_host) { in sdhci_arasan_add_host()
1855 cq_host->mmio = host->ioaddr + SDHCI_ARASAN_CQE_BASE_ADDR; in sdhci_arasan_add_host()
1856 cq_host->ops = &sdhci_arasan_cqhci_ops; in sdhci_arasan_add_host()
1860 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in sdhci_arasan_add_host()
1862 ret = cqhci_init(cq_host, host->mmc, dma64); in sdhci_arasan_add_host()