Lines Matching refs:desc_table
53 uint64_t desc_table[ADMA_DESC_SIZE]; member
421 memset(emmc->desc_table, 0, sizeof(emmc->desc_table)); in emmc_dma_init()
427 emmc->desc_table[i] = ((uint64_t)buff) << EMMC_HOST_ADMA_BUFF_ADD_LOC; in emmc_dma_init()
428 emmc->desc_table[i] |= data->block_size << EMMC_HOST_ADMA_BUFF_LEN_LOC; in emmc_dma_init()
431 emmc->desc_table[i] |= EMMC_HOST_ADMA_BUFF_LINK_LAST; in emmc_dma_init()
432 emmc->desc_table[i] |= EMMC_HOST_ADMA_INTR_EN; in emmc_dma_init()
433 emmc->desc_table[i] |= EMMC_HOST_ADMA_BUFF_LAST; in emmc_dma_init()
435 emmc->desc_table[i] |= EMMC_HOST_ADMA_BUFF_LINK_NEXT; in emmc_dma_init()
437 emmc->desc_table[i] |= EMMC_HOST_ADMA_BUFF_VALID; in emmc_dma_init()
439 LOG_DBG("desc_table:%llx", emmc->desc_table[i]); in emmc_dma_init()
442 regs->adma_sys_addr1 = (uint32_t)((uintptr_t)emmc->desc_table & ADDRESS_32BIT_MASK); in emmc_dma_init()
444 (uint32_t)(((uintptr_t)emmc->desc_table >> 32) & ADDRESS_32BIT_MASK); in emmc_dma_init()
446 LOG_DBG("adma: %llx %x %p", emmc->desc_table[0], regs->adma_sys_addr1, in emmc_dma_init()
447 emmc->desc_table); in emmc_dma_init()