Home
last modified time | relevance | path

Searched refs:dmae (Results 1 – 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_stats.c156 struct dmae_command *dmae = &bp->stats_dmae; in bnx2x_hw_stats_post() local
175 memset(dmae, 0, sizeof(struct dmae_command)); in bnx2x_hw_stats_post()
176 dmae->opcode = opcode; in bnx2x_hw_stats_post()
177 dmae->src_addr_lo = U64_LO(bnx2x_sp_mapping(bp, dmae[0])); in bnx2x_hw_stats_post()
178 dmae->src_addr_hi = U64_HI(bnx2x_sp_mapping(bp, dmae[0])); in bnx2x_hw_stats_post()
179 dmae->dst_addr_lo = (DMAE_REG_CMD_MEM + in bnx2x_hw_stats_post()
182 dmae->dst_addr_hi = 0; in bnx2x_hw_stats_post()
183 dmae->len = sizeof(struct dmae_command) >> 2; in bnx2x_hw_stats_post()
185 dmae->len--; in bnx2x_hw_stats_post()
186 dmae->comp_addr_lo = dmae_reg_go_c[loader_idx + 1] >> 2; in bnx2x_hw_stats_post()
[all …]
Dbnx2x_vfpf.c1079 struct dmae_command dmae; in bnx2x_copy32_vf_dmae() local
1092 bnx2x_prep_dmae_with_comp(bp, &dmae, DMAE_SRC_PCI, DMAE_DST_PCI); in bnx2x_copy32_vf_dmae()
1095 dmae.opcode_iov = (vfid << DMAE_COMMAND_SRC_VFID_SHIFT) | in bnx2x_copy32_vf_dmae()
1099 dmae.opcode |= (DMAE_C_DST << DMAE_COMMAND_C_FUNC_SHIFT); in bnx2x_copy32_vf_dmae()
1101 dmae.src_addr_lo = vf_addr_lo; in bnx2x_copy32_vf_dmae()
1102 dmae.src_addr_hi = vf_addr_hi; in bnx2x_copy32_vf_dmae()
1103 dmae.dst_addr_lo = U64_LO(pf_addr); in bnx2x_copy32_vf_dmae()
1104 dmae.dst_addr_hi = U64_HI(pf_addr); in bnx2x_copy32_vf_dmae()
1106 dmae.opcode_iov = (vfid << DMAE_COMMAND_DST_VFID_SHIFT) | in bnx2x_copy32_vf_dmae()
1110 dmae.opcode |= (DMAE_C_SRC << DMAE_COMMAND_C_FUNC_SHIFT); in bnx2x_copy32_vf_dmae()
[all …]
Dbnx2x_main.c405 struct dmae_command *dmae, int msglvl) in bnx2x_dp_dmae() argument
407 u32 src_type = dmae->opcode & DMAE_COMMAND_SRC; in bnx2x_dp_dmae()
410 switch (dmae->opcode & DMAE_COMMAND_DST) { in bnx2x_dp_dmae()
416 dmae->opcode, dmae->src_addr_hi, dmae->src_addr_lo, in bnx2x_dp_dmae()
417 dmae->len, dmae->dst_addr_hi, dmae->dst_addr_lo, in bnx2x_dp_dmae()
418 dmae->comp_addr_hi, dmae->comp_addr_lo, in bnx2x_dp_dmae()
419 dmae->comp_val); in bnx2x_dp_dmae()
424 dmae->opcode, dmae->src_addr_lo >> 2, in bnx2x_dp_dmae()
425 dmae->len, dmae->dst_addr_hi, dmae->dst_addr_lo, in bnx2x_dp_dmae()
426 dmae->comp_addr_hi, dmae->comp_addr_lo, in bnx2x_dp_dmae()
[all …]
Dbnx2x.h1166 struct dmae_command dmae[MAX_DMAE_C]; member
2047 void bnx2x_post_dmae(struct bnx2x *bp, struct dmae_command *dmae, int idx);
2053 void bnx2x_prep_dmae_with_comp(struct bnx2x *bp, struct dmae_command *dmae,
2055 int bnx2x_issue_dmae_with_comp(struct bnx2x *bp, struct dmae_command *dmae,
/kernel/linux/linux-5.10/drivers/mmc/host/
Dmmci.c739 struct mmci_dmae_priv *dmae; in mmci_dmae_setup() local
741 dmae = devm_kzalloc(mmc_dev(host->mmc), sizeof(*dmae), GFP_KERNEL); in mmci_dmae_setup()
742 if (!dmae) in mmci_dmae_setup()
745 host->dma_priv = dmae; in mmci_dmae_setup()
747 dmae->rx_channel = dma_request_chan(mmc_dev(host->mmc), "rx"); in mmci_dmae_setup()
748 if (IS_ERR(dmae->rx_channel)) { in mmci_dmae_setup()
749 int ret = PTR_ERR(dmae->rx_channel); in mmci_dmae_setup()
750 dmae->rx_channel = NULL; in mmci_dmae_setup()
754 dmae->tx_channel = dma_request_chan(mmc_dev(host->mmc), "tx"); in mmci_dmae_setup()
755 if (IS_ERR(dmae->tx_channel)) { in mmci_dmae_setup()
[all …]
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0030_linux_drivers_pci_misc_nvmem_of_mtd_mmc.patch6352 host->dma_priv = dmae;
6354 - dmae->rx_channel = dma_request_chan(mmc_dev(host->mmc), "rx");
6355 - if (IS_ERR(dmae->rx_channel)) {
6356 - int ret = PTR_ERR(dmae->rx_channel);
6357 - dmae->rx_channel = NULL;
6361 - dmae->tx_channel = dma_request_chan(mmc_dev(host->mmc), "tx");
6362 - if (IS_ERR(dmae->tx_channel)) {
6363 - if (PTR_ERR(dmae->tx_channel) == -EPROBE_DEFER)
6366 - dmae->tx_channel = NULL;
6368 + dmae->rx_channel = dma_request_slave_channel(mmc_dev(host->mmc),
[all …]