Lines Matching refs:hw_node

316 	struct st_fdma_hw_node *hw_node;  in st_fdma_prep_dma_memcpy()  local
330 hw_node = fdesc->node[0].desc; in st_fdma_prep_dma_memcpy()
331 hw_node->next = 0; in st_fdma_prep_dma_memcpy()
332 hw_node->control = FDMA_NODE_CTRL_REQ_MAP_FREE_RUN; in st_fdma_prep_dma_memcpy()
333 hw_node->control |= FDMA_NODE_CTRL_SRC_INCR; in st_fdma_prep_dma_memcpy()
334 hw_node->control |= FDMA_NODE_CTRL_DST_INCR; in st_fdma_prep_dma_memcpy()
335 hw_node->control |= FDMA_NODE_CTRL_INT_EON; in st_fdma_prep_dma_memcpy()
336 hw_node->nbytes = len; in st_fdma_prep_dma_memcpy()
337 hw_node->saddr = src; in st_fdma_prep_dma_memcpy()
338 hw_node->daddr = dst; in st_fdma_prep_dma_memcpy()
339 hw_node->generic.length = len; in st_fdma_prep_dma_memcpy()
340 hw_node->generic.sstride = 0; in st_fdma_prep_dma_memcpy()
341 hw_node->generic.dstride = 0; in st_fdma_prep_dma_memcpy()
411 static void fill_hw_node(struct st_fdma_hw_node *hw_node, in fill_hw_node() argument
416 hw_node->control |= FDMA_NODE_CTRL_SRC_INCR; in fill_hw_node()
417 hw_node->control |= FDMA_NODE_CTRL_DST_STATIC; in fill_hw_node()
418 hw_node->daddr = fchan->cfg.dev_addr; in fill_hw_node()
420 hw_node->control |= FDMA_NODE_CTRL_SRC_STATIC; in fill_hw_node()
421 hw_node->control |= FDMA_NODE_CTRL_DST_INCR; in fill_hw_node()
422 hw_node->saddr = fchan->cfg.dev_addr; in fill_hw_node()
425 hw_node->generic.sstride = 0; in fill_hw_node()
426 hw_node->generic.dstride = 0; in fill_hw_node()
484 struct st_fdma_hw_node *hw_node = fdesc->node[i].desc; in st_fdma_prep_dma_cyclic() local
486 hw_node->next = fdesc->node[(i + 1) % sg_len].pdesc; in st_fdma_prep_dma_cyclic()
488 hw_node->control = in st_fdma_prep_dma_cyclic()
490 hw_node->control |= FDMA_NODE_CTRL_INT_EON; in st_fdma_prep_dma_cyclic()
492 fill_hw_node(hw_node, fchan, direction); in st_fdma_prep_dma_cyclic()
495 hw_node->saddr = buf_addr + (i * period_len); in st_fdma_prep_dma_cyclic()
497 hw_node->daddr = buf_addr + (i * period_len); in st_fdma_prep_dma_cyclic()
499 hw_node->nbytes = period_len; in st_fdma_prep_dma_cyclic()
500 hw_node->generic.length = period_len; in st_fdma_prep_dma_cyclic()
513 struct st_fdma_hw_node *hw_node; in st_fdma_prep_slave_sg() local
533 hw_node = fdesc->node[i].desc; in st_fdma_prep_slave_sg()
535 hw_node->next = fdesc->node[(i + 1) % sg_len].pdesc; in st_fdma_prep_slave_sg()
536 hw_node->control = FDMA_NODE_CTRL_REQ_MAP_DREQ(fchan->dreq_line); in st_fdma_prep_slave_sg()
538 fill_hw_node(hw_node, fchan, direction); in st_fdma_prep_slave_sg()
541 hw_node->saddr = sg_dma_address(sg); in st_fdma_prep_slave_sg()
543 hw_node->daddr = sg_dma_address(sg); in st_fdma_prep_slave_sg()
545 hw_node->nbytes = sg_dma_len(sg); in st_fdma_prep_slave_sg()
546 hw_node->generic.length = sg_dma_len(sg); in st_fdma_prep_slave_sg()
550 hw_node->control |= FDMA_NODE_CTRL_INT_EON; in st_fdma_prep_slave_sg()