Lines Matching refs:dmae
392 struct dmae_command *dmae, int msglvl) in bnx2x_dp_dmae() argument
394 u32 src_type = dmae->opcode & DMAE_COMMAND_SRC; in bnx2x_dp_dmae()
397 switch (dmae->opcode & DMAE_COMMAND_DST) { in bnx2x_dp_dmae()
403 dmae->opcode, dmae->src_addr_hi, dmae->src_addr_lo, in bnx2x_dp_dmae()
404 dmae->len, dmae->dst_addr_hi, dmae->dst_addr_lo, in bnx2x_dp_dmae()
405 dmae->comp_addr_hi, dmae->comp_addr_lo, in bnx2x_dp_dmae()
406 dmae->comp_val); in bnx2x_dp_dmae()
411 dmae->opcode, dmae->src_addr_lo >> 2, in bnx2x_dp_dmae()
412 dmae->len, dmae->dst_addr_hi, dmae->dst_addr_lo, in bnx2x_dp_dmae()
413 dmae->comp_addr_hi, dmae->comp_addr_lo, in bnx2x_dp_dmae()
414 dmae->comp_val); in bnx2x_dp_dmae()
421 dmae->opcode, dmae->src_addr_hi, dmae->src_addr_lo, in bnx2x_dp_dmae()
422 dmae->len, dmae->dst_addr_lo >> 2, in bnx2x_dp_dmae()
423 dmae->comp_addr_hi, dmae->comp_addr_lo, in bnx2x_dp_dmae()
424 dmae->comp_val); in bnx2x_dp_dmae()
429 dmae->opcode, dmae->src_addr_lo >> 2, in bnx2x_dp_dmae()
430 dmae->len, dmae->dst_addr_lo >> 2, in bnx2x_dp_dmae()
431 dmae->comp_addr_hi, dmae->comp_addr_lo, in bnx2x_dp_dmae()
432 dmae->comp_val); in bnx2x_dp_dmae()
439 dmae->opcode, dmae->src_addr_hi, dmae->src_addr_lo, in bnx2x_dp_dmae()
440 dmae->len, dmae->comp_addr_hi, dmae->comp_addr_lo, in bnx2x_dp_dmae()
441 dmae->comp_val); in bnx2x_dp_dmae()
446 dmae->opcode, dmae->src_addr_lo >> 2, in bnx2x_dp_dmae()
447 dmae->len, dmae->comp_addr_hi, dmae->comp_addr_lo, in bnx2x_dp_dmae()
448 dmae->comp_val); in bnx2x_dp_dmae()
454 i, *(((u32 *)dmae) + i)); in bnx2x_dp_dmae()
458 void bnx2x_post_dmae(struct bnx2x *bp, struct dmae_command *dmae, int idx) in bnx2x_post_dmae() argument
465 REG_WR(bp, cmd_offset + i*4, *(((u32 *)dmae) + i)); in bnx2x_post_dmae()
507 struct dmae_command *dmae, in bnx2x_prep_dmae_with_comp() argument
510 memset(dmae, 0, sizeof(struct dmae_command)); in bnx2x_prep_dmae_with_comp()
513 dmae->opcode = bnx2x_dmae_opcode(bp, src_type, dst_type, in bnx2x_prep_dmae_with_comp()
517 dmae->comp_addr_lo = U64_LO(bnx2x_sp_mapping(bp, wb_comp)); in bnx2x_prep_dmae_with_comp()
518 dmae->comp_addr_hi = U64_HI(bnx2x_sp_mapping(bp, wb_comp)); in bnx2x_prep_dmae_with_comp()
519 dmae->comp_val = DMAE_COMP_VAL; in bnx2x_prep_dmae_with_comp()
523 int bnx2x_issue_dmae_with_comp(struct bnx2x *bp, struct dmae_command *dmae, in bnx2x_issue_dmae_with_comp() argument
529 bnx2x_dp_dmae(bp, dmae, BNX2X_MSG_DMAE); in bnx2x_issue_dmae_with_comp()
542 bnx2x_post_dmae(bp, dmae, INIT_DMAE_C(bp)); in bnx2x_issue_dmae_with_comp()
574 struct dmae_command dmae; in bnx2x_write_dmae() local
587 bnx2x_prep_dmae_with_comp(bp, &dmae, DMAE_SRC_PCI, DMAE_DST_GRC); in bnx2x_write_dmae()
590 dmae.src_addr_lo = U64_LO(dma_addr); in bnx2x_write_dmae()
591 dmae.src_addr_hi = U64_HI(dma_addr); in bnx2x_write_dmae()
592 dmae.dst_addr_lo = dst_addr >> 2; in bnx2x_write_dmae()
593 dmae.dst_addr_hi = 0; in bnx2x_write_dmae()
594 dmae.len = len32; in bnx2x_write_dmae()
597 rc = bnx2x_issue_dmae_with_comp(bp, &dmae, bnx2x_sp(bp, wb_comp)); in bnx2x_write_dmae()
609 struct dmae_command dmae; in bnx2x_read_dmae() local
626 bnx2x_prep_dmae_with_comp(bp, &dmae, DMAE_SRC_GRC, DMAE_DST_PCI); in bnx2x_read_dmae()
629 dmae.src_addr_lo = src_addr >> 2; in bnx2x_read_dmae()
630 dmae.src_addr_hi = 0; in bnx2x_read_dmae()
631 dmae.dst_addr_lo = U64_LO(bnx2x_sp_mapping(bp, wb_data)); in bnx2x_read_dmae()
632 dmae.dst_addr_hi = U64_HI(bnx2x_sp_mapping(bp, wb_data)); in bnx2x_read_dmae()
633 dmae.len = len32; in bnx2x_read_dmae()
636 rc = bnx2x_issue_dmae_with_comp(bp, &dmae, bnx2x_sp(bp, wb_comp)); in bnx2x_read_dmae()