Searched refs:desc_words (Results 1 – 2 of 2) sorted by relevance
353 uint32_t desc_words[4]; in allwinner_sun8i_emac_get_desc() local354 dma_memory_read(&s->dma_as, phys_addr, &desc_words, sizeof(desc_words), in allwinner_sun8i_emac_get_desc()356 desc->status = le32_to_cpu(desc_words[0]); in allwinner_sun8i_emac_get_desc()357 desc->status2 = le32_to_cpu(desc_words[1]); in allwinner_sun8i_emac_get_desc()358 desc->addr = le32_to_cpu(desc_words[2]); in allwinner_sun8i_emac_get_desc()359 desc->next = le32_to_cpu(desc_words[3]); in allwinner_sun8i_emac_get_desc()411 uint32_t desc_words[4]; in allwinner_sun8i_emac_flush_desc() local412 desc_words[0] = cpu_to_le32(desc->status); in allwinner_sun8i_emac_flush_desc()413 desc_words[1] = cpu_to_le32(desc->status2); in allwinner_sun8i_emac_flush_desc()414 desc_words[2] = cpu_to_le32(desc->addr); in allwinner_sun8i_emac_flush_desc()[all …]
310 uint32_t desc_words[4]; in read_descriptor() local311 dma_memory_read(&s->dma_as, desc_addr, &desc_words, sizeof(desc_words), in read_descriptor()313 desc->status = le32_to_cpu(desc_words[0]); in read_descriptor()314 desc->size = le32_to_cpu(desc_words[1]); in read_descriptor()315 desc->addr = le32_to_cpu(desc_words[2]); in read_descriptor()316 desc->next = le32_to_cpu(desc_words[3]); in read_descriptor()322 uint32_t desc_words[4]; in write_descriptor() local323 desc_words[0] = cpu_to_le32(desc->status); in write_descriptor()324 desc_words[1] = cpu_to_le32(desc->size); in write_descriptor()325 desc_words[2] = cpu_to_le32(desc->addr); in write_descriptor()[all …]