Lines Matching refs:hw_node
317 struct st_fdma_hw_node *hw_node; in st_fdma_prep_dma_memcpy() local
331 hw_node = fdesc->node[0].desc; in st_fdma_prep_dma_memcpy()
332 hw_node->next = 0; in st_fdma_prep_dma_memcpy()
333 hw_node->control = FDMA_NODE_CTRL_REQ_MAP_FREE_RUN; in st_fdma_prep_dma_memcpy()
334 hw_node->control |= FDMA_NODE_CTRL_SRC_INCR; in st_fdma_prep_dma_memcpy()
335 hw_node->control |= FDMA_NODE_CTRL_DST_INCR; in st_fdma_prep_dma_memcpy()
336 hw_node->control |= FDMA_NODE_CTRL_INT_EON; in st_fdma_prep_dma_memcpy()
337 hw_node->nbytes = len; in st_fdma_prep_dma_memcpy()
338 hw_node->saddr = src; in st_fdma_prep_dma_memcpy()
339 hw_node->daddr = dst; in st_fdma_prep_dma_memcpy()
340 hw_node->generic.length = len; in st_fdma_prep_dma_memcpy()
341 hw_node->generic.sstride = 0; in st_fdma_prep_dma_memcpy()
342 hw_node->generic.dstride = 0; in st_fdma_prep_dma_memcpy()
412 static void fill_hw_node(struct st_fdma_hw_node *hw_node, in fill_hw_node() argument
417 hw_node->control |= FDMA_NODE_CTRL_SRC_INCR; in fill_hw_node()
418 hw_node->control |= FDMA_NODE_CTRL_DST_STATIC; in fill_hw_node()
419 hw_node->daddr = fchan->cfg.dev_addr; in fill_hw_node()
421 hw_node->control |= FDMA_NODE_CTRL_SRC_STATIC; in fill_hw_node()
422 hw_node->control |= FDMA_NODE_CTRL_DST_INCR; in fill_hw_node()
423 hw_node->saddr = fchan->cfg.dev_addr; in fill_hw_node()
426 hw_node->generic.sstride = 0; in fill_hw_node()
427 hw_node->generic.dstride = 0; in fill_hw_node()
485 struct st_fdma_hw_node *hw_node = fdesc->node[i].desc; in st_fdma_prep_dma_cyclic() local
487 hw_node->next = fdesc->node[(i + 1) % sg_len].pdesc; in st_fdma_prep_dma_cyclic()
489 hw_node->control = in st_fdma_prep_dma_cyclic()
491 hw_node->control |= FDMA_NODE_CTRL_INT_EON; in st_fdma_prep_dma_cyclic()
493 fill_hw_node(hw_node, fchan, direction); in st_fdma_prep_dma_cyclic()
496 hw_node->saddr = buf_addr + (i * period_len); in st_fdma_prep_dma_cyclic()
498 hw_node->daddr = buf_addr + (i * period_len); in st_fdma_prep_dma_cyclic()
500 hw_node->nbytes = period_len; in st_fdma_prep_dma_cyclic()
501 hw_node->generic.length = period_len; in st_fdma_prep_dma_cyclic()
514 struct st_fdma_hw_node *hw_node; in st_fdma_prep_slave_sg() local
534 hw_node = fdesc->node[i].desc; in st_fdma_prep_slave_sg()
536 hw_node->next = fdesc->node[(i + 1) % sg_len].pdesc; in st_fdma_prep_slave_sg()
537 hw_node->control = FDMA_NODE_CTRL_REQ_MAP_DREQ(fchan->dreq_line); in st_fdma_prep_slave_sg()
539 fill_hw_node(hw_node, fchan, direction); in st_fdma_prep_slave_sg()
542 hw_node->saddr = sg_dma_address(sg); in st_fdma_prep_slave_sg()
544 hw_node->daddr = sg_dma_address(sg); in st_fdma_prep_slave_sg()
546 hw_node->nbytes = sg_dma_len(sg); in st_fdma_prep_slave_sg()
547 hw_node->generic.length = sg_dma_len(sg); in st_fdma_prep_slave_sg()
551 hw_node->control |= FDMA_NODE_CTRL_INT_EON; in st_fdma_prep_slave_sg()