• Home
  • Raw
  • Download

Lines Matching refs:SD

91 #define SD(name) SEND_DMA_##name  macro
93 (SD(ENG_ERR_STATUS_SDMA_WRONG_DW_ERR_SMASK) \
94 | SD(ENG_ERR_STATUS_SDMA_GEN_MISMATCH_ERR_SMASK) \
95 | SD(ENG_ERR_STATUS_SDMA_TOO_LONG_ERR_SMASK) \
96 | SD(ENG_ERR_STATUS_SDMA_TAIL_OUT_OF_BOUNDS_ERR_SMASK) \
97 | SD(ENG_ERR_STATUS_SDMA_FIRST_DESC_ERR_SMASK) \
98 | SD(ENG_ERR_STATUS_SDMA_MEM_READ_ERR_SMASK) \
99 | SD(ENG_ERR_STATUS_SDMA_HALT_ERR_SMASK) \
100 | SD(ENG_ERR_STATUS_SDMA_LENGTH_MISMATCH_ERR_SMASK) \
101 | SD(ENG_ERR_STATUS_SDMA_PACKET_DESC_OVERFLOW_ERR_SMASK) \
102 | SD(ENG_ERR_STATUS_SDMA_HEADER_SELECT_ERR_SMASK) \
103 | SD(ENG_ERR_STATUS_SDMA_HEADER_ADDRESS_ERR_SMASK) \
104 | SD(ENG_ERR_STATUS_SDMA_HEADER_LENGTH_ERR_SMASK) \
105 | SD(ENG_ERR_STATUS_SDMA_TIMEOUT_ERR_SMASK) \
106 | SD(ENG_ERR_STATUS_SDMA_DESC_TABLE_UNC_ERR_SMASK) \
107 | SD(ENG_ERR_STATUS_SDMA_ASSEMBLY_UNC_ERR_SMASK) \
108 | SD(ENG_ERR_STATUS_SDMA_PACKET_TRACKING_UNC_ERR_SMASK) \
109 | SD(ENG_ERR_STATUS_SDMA_HEADER_STORAGE_UNC_ERR_SMASK) \
110 | SD(ENG_ERR_STATUS_SDMA_HEADER_REQUEST_FIFO_UNC_ERR_SMASK))
359 reg &= SD(DESC_CNT_CNT_MASK); in sdma_set_desc_cnt()
360 reg <<= SD(DESC_CNT_CNT_SHIFT); in sdma_set_desc_cnt()
361 write_sde_csr(sde, SD(DESC_CNT), reg); in sdma_set_desc_cnt()
469 statuscsr = read_sde_csr(sde, SD(STATUS)); in sdma_err_halt_wait()
470 statuscsr &= SD(STATUS_ENG_HALTED_SMASK); in sdma_err_halt_wait()
560 statuscsr = read_sde_csr(sde, SD(STATUS)); in sdma_hw_clean_up_task()
561 statuscsr &= SD(STATUS_ENG_CLEANED_UP_SMASK); in sdma_hw_clean_up_task()
1458 get_kctxt_csr_addr(dd, this_idx, SD(TAIL)); in sdma_init()
1718 (u16)read_sde_csr(sde, SD(HEAD)); in sdma_gethead()
1875 hwhead = (u16)read_sde_csr(sde, SD(HEAD)); in sdma_make_progress()
1929 if (status & ~SD(ENG_ERR_STATUS_SDMA_HALT_ERR_SMASK)) { in sdma_engine_error()
1957 set_senddmactrl |= SD(CTRL_SDMA_ENABLE_SMASK); in sdma_sendctrl()
1959 clr_senddmactrl |= SD(CTRL_SDMA_ENABLE_SMASK); in sdma_sendctrl()
1962 set_senddmactrl |= SD(CTRL_SDMA_INT_ENABLE_SMASK); in sdma_sendctrl()
1964 clr_senddmactrl |= SD(CTRL_SDMA_INT_ENABLE_SMASK); in sdma_sendctrl()
1967 set_senddmactrl |= SD(CTRL_SDMA_HALT_SMASK); in sdma_sendctrl()
1969 clr_senddmactrl |= SD(CTRL_SDMA_HALT_SMASK); in sdma_sendctrl()
1977 write_sde_csr(sde, SD(CTRL), in sdma_sendctrl()
1979 SD(CTRL_SDMA_CLEANUP_SMASK)); in sdma_sendctrl()
1981 write_sde_csr(sde, SD(CTRL), sde->p_senddmactrl); in sdma_sendctrl()
2002 write_sde_csr(sde, SD(LEN_GEN), in sdma_setlengen()
2003 (sde->descq_cnt / 64) << SD(LEN_GEN_LENGTH_SHIFT)); in sdma_setlengen()
2004 write_sde_csr(sde, SD(LEN_GEN), in sdma_setlengen()
2005 ((sde->descq_cnt / 64) << SD(LEN_GEN_LENGTH_SHIFT)) | in sdma_setlengen()
2006 (4ULL << SD(LEN_GEN_GENERATION_SHIFT))); in sdma_setlengen()
2033 reg = SD(ENG_ERR_CLEAR_SDMA_HEADER_REQUEST_FIFO_UNC_ERR_MASK) << in sdma_hw_start_up()
2034 SD(ENG_ERR_CLEAR_SDMA_HEADER_REQUEST_FIFO_UNC_ERR_SHIFT); in sdma_hw_start_up()
2035 write_sde_csr(sde, SD(ENG_ERR_CLEAR), reg); in sdma_hw_start_up()
2047 write_sde_csr(sde, SD(CHECK_ENABLE), in set_sdma_integrity()
2064 write_sde_csr(sde, SD(BASE_ADDR), sde->descq_phys); in init_sdma_regs()
2067 write_sde_csr(sde, SD(RELOAD_CNT), idle_cnt); in init_sdma_regs()
2068 write_sde_csr(sde, SD(DESC_CNT), 0); in init_sdma_regs()
2069 write_sde_csr(sde, SD(HEAD_ADDR), sde->head_phys); in init_sdma_regs()
2070 write_sde_csr(sde, SD(MEMORY), in init_sdma_regs()
2071 ((u64)credits << SD(MEMORY_SDMA_MEMORY_CNT_SHIFT)) | in init_sdma_regs()
2073 SD(MEMORY_SDMA_MEMORY_INDEX_SHIFT))); in init_sdma_regs()
2074 write_sde_csr(sde, SD(ENG_ERR_MASK), ~0ull); in init_sdma_regs()
2078 write_sde_csr(sde, SD(CHECK_OPCODE), in init_sdma_regs()
2107 sdma_dumpstate_helper(SD(CTRL)); in sdma_dumpstate()
2108 sdma_dumpstate_helper(SD(STATUS)); in sdma_dumpstate()
2109 sdma_dumpstate_helper0(SD(ERR_STATUS)); in sdma_dumpstate()
2110 sdma_dumpstate_helper0(SD(ERR_MASK)); in sdma_dumpstate()
2111 sdma_dumpstate_helper(SD(ENG_ERR_STATUS)); in sdma_dumpstate()
2112 sdma_dumpstate_helper(SD(ENG_ERR_MASK)); in sdma_dumpstate()
2120 sdma_dumpstate_helper(SD(TAIL)); in sdma_dumpstate()
2121 sdma_dumpstate_helper(SD(HEAD)); in sdma_dumpstate()
2122 sdma_dumpstate_helper(SD(PRIORITY_THLD)); in sdma_dumpstate()
2123 sdma_dumpstate_helper(SD(IDLE_CNT)); in sdma_dumpstate()
2124 sdma_dumpstate_helper(SD(RELOAD_CNT)); in sdma_dumpstate()
2125 sdma_dumpstate_helper(SD(DESC_CNT)); in sdma_dumpstate()
2126 sdma_dumpstate_helper(SD(DESC_FETCHED_CNT)); in sdma_dumpstate()
2127 sdma_dumpstate_helper(SD(MEMORY)); in sdma_dumpstate()
2128 sdma_dumpstate_helper0(SD(ENGINES)); in sdma_dumpstate()
2129 sdma_dumpstate_helper0(SD(MEM_SIZE)); in sdma_dumpstate()
2131 sdma_dumpstate_helper(SD(BASE_ADDR)); in sdma_dumpstate()
2132 sdma_dumpstate_helper(SD(LEN_GEN)); in sdma_dumpstate()
2133 sdma_dumpstate_helper(SD(HEAD_ADDR)); in sdma_dumpstate()
2134 sdma_dumpstate_helper(SD(CHECK_ENABLE)); in sdma_dumpstate()
2135 sdma_dumpstate_helper(SD(CHECK_VL)); in sdma_dumpstate()
2136 sdma_dumpstate_helper(SD(CHECK_JOB_KEY)); in sdma_dumpstate()
2137 sdma_dumpstate_helper(SD(CHECK_PARTITION_KEY)); in sdma_dumpstate()
2138 sdma_dumpstate_helper(SD(CHECK_SLID)); in sdma_dumpstate()
2139 sdma_dumpstate_helper(SD(CHECK_OPCODE)); in sdma_dumpstate()
2225 (unsigned long long)read_sde_csr(sde, SD(CTRL)), in sdma_seqfile_dump_sde()
2226 (unsigned long long)read_sde_csr(sde, SD(STATUS)), in sdma_seqfile_dump_sde()
2227 (unsigned long long)read_sde_csr(sde, SD(ENG_ERR_STATUS)), in sdma_seqfile_dump_sde()
2228 (unsigned long long)read_sde_csr(sde, SD(TAIL)), tail, in sdma_seqfile_dump_sde()
2229 (unsigned long long)read_sde_csr(sde, SD(HEAD)), head, in sdma_seqfile_dump_sde()
2231 (unsigned long long)read_sde_csr(sde, SD(MEMORY)), in sdma_seqfile_dump_sde()
2232 (unsigned long long)read_sde_csr(sde, SD(LEN_GEN)), in sdma_seqfile_dump_sde()
2233 (unsigned long long)read_sde_csr(sde, SD(RELOAD_CNT)), in sdma_seqfile_dump_sde()
3185 sreg = ((mask & SD(CHECK_SLID_MASK_MASK)) << in sdma_update_lmc()
3186 SD(CHECK_SLID_MASK_SHIFT)) | in sdma_update_lmc()
3187 (((lid & mask) & SD(CHECK_SLID_VALUE_MASK)) << in sdma_update_lmc()
3188 SD(CHECK_SLID_VALUE_SHIFT)); in sdma_update_lmc()
3194 write_sde_csr(sde, SD(CHECK_SLID), sreg); in sdma_update_lmc()