Searched refs:dmae (Results 1 – 5 of 5) sorted by relevance
/Linux-v5.4/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_stats.c | 154 struct dmae_command *dmae = &bp->stats_dmae; in bnx2x_hw_stats_post() local 173 memset(dmae, 0, sizeof(struct dmae_command)); in bnx2x_hw_stats_post() 174 dmae->opcode = opcode; in bnx2x_hw_stats_post() 175 dmae->src_addr_lo = U64_LO(bnx2x_sp_mapping(bp, dmae[0])); in bnx2x_hw_stats_post() 176 dmae->src_addr_hi = U64_HI(bnx2x_sp_mapping(bp, dmae[0])); in bnx2x_hw_stats_post() 177 dmae->dst_addr_lo = (DMAE_REG_CMD_MEM + in bnx2x_hw_stats_post() 180 dmae->dst_addr_hi = 0; in bnx2x_hw_stats_post() 181 dmae->len = sizeof(struct dmae_command) >> 2; in bnx2x_hw_stats_post() 183 dmae->len--; in bnx2x_hw_stats_post() 184 dmae->comp_addr_lo = dmae_reg_go_c[loader_idx + 1] >> 2; in bnx2x_hw_stats_post() [all …]
|
D | bnx2x_vfpf.c | 1079 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 …]
|
D | bnx2x_main.c | 390 struct dmae_command *dmae, int msglvl) in bnx2x_dp_dmae() argument 392 u32 src_type = dmae->opcode & DMAE_COMMAND_SRC; in bnx2x_dp_dmae() 395 switch (dmae->opcode & DMAE_COMMAND_DST) { in bnx2x_dp_dmae() 401 dmae->opcode, dmae->src_addr_hi, dmae->src_addr_lo, in bnx2x_dp_dmae() 402 dmae->len, dmae->dst_addr_hi, dmae->dst_addr_lo, in bnx2x_dp_dmae() 403 dmae->comp_addr_hi, dmae->comp_addr_lo, in bnx2x_dp_dmae() 404 dmae->comp_val); in bnx2x_dp_dmae() 409 dmae->opcode, dmae->src_addr_lo >> 2, in bnx2x_dp_dmae() 410 dmae->len, dmae->dst_addr_hi, dmae->dst_addr_lo, in bnx2x_dp_dmae() 411 dmae->comp_addr_hi, dmae->comp_addr_lo, in bnx2x_dp_dmae() [all …]
|
D | bnx2x.h | 1160 struct dmae_command dmae[MAX_DMAE_C]; member 2036 void bnx2x_post_dmae(struct bnx2x *bp, struct dmae_command *dmae, int idx); 2042 void bnx2x_prep_dmae_with_comp(struct bnx2x *bp, struct dmae_command *dmae, 2044 int bnx2x_issue_dmae_with_comp(struct bnx2x *bp, struct dmae_command *dmae,
|
/Linux-v5.4/drivers/mmc/host/ |
D | mmci.c | 635 struct mmci_dmae_priv *dmae; in mmci_dmae_setup() local 637 dmae = devm_kzalloc(mmc_dev(host->mmc), sizeof(*dmae), GFP_KERNEL); in mmci_dmae_setup() 638 if (!dmae) in mmci_dmae_setup() 641 host->dma_priv = dmae; in mmci_dmae_setup() 643 dmae->rx_channel = dma_request_slave_channel(mmc_dev(host->mmc), in mmci_dmae_setup() 645 dmae->tx_channel = dma_request_slave_channel(mmc_dev(host->mmc), in mmci_dmae_setup() 653 if (dmae->rx_channel && !dmae->tx_channel) in mmci_dmae_setup() 654 dmae->tx_channel = dmae->rx_channel; in mmci_dmae_setup() 656 if (dmae->rx_channel) in mmci_dmae_setup() 657 rxname = dma_chan_name(dmae->rx_channel); in mmci_dmae_setup() [all …]
|