Home
last modified time | relevance | path

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

/linux-6.6.21/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.c1081 struct dmae_command dmae; in bnx2x_copy32_vf_dmae() local
1094 bnx2x_prep_dmae_with_comp(bp, &dmae, DMAE_SRC_PCI, DMAE_DST_PCI); in bnx2x_copy32_vf_dmae()
1097 dmae.opcode_iov = (vfid << DMAE_COMMAND_SRC_VFID_SHIFT) | in bnx2x_copy32_vf_dmae()
1101 dmae.opcode |= (DMAE_C_DST << DMAE_COMMAND_C_FUNC_SHIFT); in bnx2x_copy32_vf_dmae()
1103 dmae.src_addr_lo = vf_addr_lo; in bnx2x_copy32_vf_dmae()
1104 dmae.src_addr_hi = vf_addr_hi; in bnx2x_copy32_vf_dmae()
1105 dmae.dst_addr_lo = U64_LO(pf_addr); in bnx2x_copy32_vf_dmae()
1106 dmae.dst_addr_hi = U64_HI(pf_addr); in bnx2x_copy32_vf_dmae()
1108 dmae.opcode_iov = (vfid << DMAE_COMMAND_DST_VFID_SHIFT) | in bnx2x_copy32_vf_dmae()
1112 dmae.opcode |= (DMAE_C_SRC << DMAE_COMMAND_C_FUNC_SHIFT); in bnx2x_copy32_vf_dmae()
[all …]
Dbnx2x_main.c404 struct dmae_command *dmae, int msglvl) in bnx2x_dp_dmae() argument
406 u32 src_type = dmae->opcode & DMAE_COMMAND_SRC; in bnx2x_dp_dmae()
409 switch (dmae->opcode & DMAE_COMMAND_DST) { in bnx2x_dp_dmae()
415 dmae->opcode, dmae->src_addr_hi, dmae->src_addr_lo, in bnx2x_dp_dmae()
416 dmae->len, dmae->dst_addr_hi, dmae->dst_addr_lo, in bnx2x_dp_dmae()
417 dmae->comp_addr_hi, dmae->comp_addr_lo, in bnx2x_dp_dmae()
418 dmae->comp_val); in bnx2x_dp_dmae()
423 dmae->opcode, dmae->src_addr_lo >> 2, in bnx2x_dp_dmae()
424 dmae->len, dmae->dst_addr_hi, dmae->dst_addr_lo, in bnx2x_dp_dmae()
425 dmae->comp_addr_hi, dmae->comp_addr_lo, in bnx2x_dp_dmae()
[all …]
Dbnx2x.h1166 struct dmae_command dmae[MAX_DMAE_C]; member
2048 void bnx2x_post_dmae(struct bnx2x *bp, struct dmae_command *dmae, int idx);
2054 void bnx2x_prep_dmae_with_comp(struct bnx2x *bp, struct dmae_command *dmae,
2056 int bnx2x_issue_dmae_with_comp(struct bnx2x *bp, struct dmae_command *dmae,
/linux-6.6.21/drivers/mmc/host/
Dmmci.c842 struct mmci_dmae_priv *dmae; in mmci_dmae_setup() local
844 dmae = devm_kzalloc(mmc_dev(host->mmc), sizeof(*dmae), GFP_KERNEL); in mmci_dmae_setup()
845 if (!dmae) in mmci_dmae_setup()
848 host->dma_priv = dmae; in mmci_dmae_setup()
850 dmae->rx_channel = dma_request_chan(mmc_dev(host->mmc), "rx"); in mmci_dmae_setup()
851 if (IS_ERR(dmae->rx_channel)) { in mmci_dmae_setup()
852 int ret = PTR_ERR(dmae->rx_channel); in mmci_dmae_setup()
853 dmae->rx_channel = NULL; in mmci_dmae_setup()
857 dmae->tx_channel = dma_request_chan(mmc_dev(host->mmc), "tx"); in mmci_dmae_setup()
858 if (IS_ERR(dmae->tx_channel)) { in mmci_dmae_setup()
[all …]