Lines Matching refs:dmae_info

454 	p_hwfn->dmae_info.p_dmae_cmd->opcode = cpu_to_le32(opcode);  in qed_dmae_opcode()
455 p_hwfn->dmae_info.p_dmae_cmd->opcode_b = cpu_to_le16(opcode_b); in qed_dmae_opcode()
467 struct dmae_cmd *p_command = p_hwfn->dmae_info.p_dmae_cmd; in qed_dmae_post_command()
468 u8 idx_cmd = p_hwfn->dmae_info.channel, i; in qed_dmae_post_command()
524 dma_addr_t *p_addr = &p_hwfn->dmae_info.completion_word_phys_addr; in qed_dmae_info_alloc()
525 struct dmae_cmd **p_cmd = &p_hwfn->dmae_info.p_dmae_cmd; in qed_dmae_info_alloc()
526 u32 **p_buff = &p_hwfn->dmae_info.p_intermediate_buffer; in qed_dmae_info_alloc()
527 u32 **p_comp = &p_hwfn->dmae_info.p_completion_word; in qed_dmae_info_alloc()
534 p_addr = &p_hwfn->dmae_info.dmae_cmd_phys_addr; in qed_dmae_info_alloc()
541 p_addr = &p_hwfn->dmae_info.intermediate_buffer_phys_addr; in qed_dmae_info_alloc()
548 p_hwfn->dmae_info.channel = p_hwfn->rel_pf_id; in qed_dmae_info_alloc()
561 mutex_lock(&p_hwfn->dmae_info.mutex); in qed_dmae_info_free()
563 if (p_hwfn->dmae_info.p_completion_word) { in qed_dmae_info_free()
564 p_phys = p_hwfn->dmae_info.completion_word_phys_addr; in qed_dmae_info_free()
567 p_hwfn->dmae_info.p_completion_word, p_phys); in qed_dmae_info_free()
568 p_hwfn->dmae_info.p_completion_word = NULL; in qed_dmae_info_free()
571 if (p_hwfn->dmae_info.p_dmae_cmd) { in qed_dmae_info_free()
572 p_phys = p_hwfn->dmae_info.dmae_cmd_phys_addr; in qed_dmae_info_free()
575 p_hwfn->dmae_info.p_dmae_cmd, p_phys); in qed_dmae_info_free()
576 p_hwfn->dmae_info.p_dmae_cmd = NULL; in qed_dmae_info_free()
579 if (p_hwfn->dmae_info.p_intermediate_buffer) { in qed_dmae_info_free()
580 p_phys = p_hwfn->dmae_info.intermediate_buffer_phys_addr; in qed_dmae_info_free()
583 p_hwfn->dmae_info.p_intermediate_buffer, in qed_dmae_info_free()
585 p_hwfn->dmae_info.p_intermediate_buffer = NULL; in qed_dmae_info_free()
588 mutex_unlock(&p_hwfn->dmae_info.mutex); in qed_dmae_info_free()
597 while (*p_hwfn->dmae_info.p_completion_word != DMAE_COMPLETION_VAL) { in qed_dmae_operation_wait()
602 *p_hwfn->dmae_info.p_completion_word, in qed_dmae_operation_wait()
615 *p_hwfn->dmae_info.p_completion_word = 0; in qed_dmae_operation_wait()
628 dma_addr_t phys = p_hwfn->dmae_info.intermediate_buffer_phys_addr; in qed_dmae_execute_sub_operation()
629 struct dmae_cmd *cmd = p_hwfn->dmae_info.p_dmae_cmd; in qed_dmae_execute_sub_operation()
642 memcpy(&p_hwfn->dmae_info.p_intermediate_buffer[0], in qed_dmae_execute_sub_operation()
680 &p_hwfn->dmae_info.p_intermediate_buffer[0], in qed_dmae_execute_sub_operation()
693 dma_addr_t phys = p_hwfn->dmae_info.completion_word_phys_addr; in qed_dmae_execute_command()
695 struct dmae_cmd *cmd = p_hwfn->dmae_info.p_dmae_cmd; in qed_dmae_execute_command()
777 mutex_lock(&p_hwfn->dmae_info.mutex); in qed_dmae_host2grc()
785 mutex_unlock(&p_hwfn->dmae_info.mutex); in qed_dmae_host2grc()
800 mutex_lock(&p_hwfn->dmae_info.mutex); in qed_dmae_grc2host()
807 mutex_unlock(&p_hwfn->dmae_info.mutex); in qed_dmae_grc2host()
820 mutex_lock(&(p_hwfn->dmae_info.mutex)); in qed_dmae_host2host()
828 mutex_unlock(&(p_hwfn->dmae_info.mutex)); in qed_dmae_host2host()