Lines Matching refs:hw_node

322 	struct st_fdma_hw_node *hw_node;  in st_fdma_prep_dma_memcpy()  local
336 hw_node = fdesc->node[0].desc; in st_fdma_prep_dma_memcpy()
337 hw_node->next = 0; in st_fdma_prep_dma_memcpy()
338 hw_node->control = FDMA_NODE_CTRL_REQ_MAP_FREE_RUN; in st_fdma_prep_dma_memcpy()
339 hw_node->control |= FDMA_NODE_CTRL_SRC_INCR; in st_fdma_prep_dma_memcpy()
340 hw_node->control |= FDMA_NODE_CTRL_DST_INCR; in st_fdma_prep_dma_memcpy()
341 hw_node->control |= FDMA_NODE_CTRL_INT_EON; in st_fdma_prep_dma_memcpy()
342 hw_node->nbytes = len; in st_fdma_prep_dma_memcpy()
343 hw_node->saddr = src; in st_fdma_prep_dma_memcpy()
344 hw_node->daddr = dst; in st_fdma_prep_dma_memcpy()
345 hw_node->generic.length = len; in st_fdma_prep_dma_memcpy()
346 hw_node->generic.sstride = 0; in st_fdma_prep_dma_memcpy()
347 hw_node->generic.dstride = 0; in st_fdma_prep_dma_memcpy()
417 static void fill_hw_node(struct st_fdma_hw_node *hw_node, in fill_hw_node() argument
422 hw_node->control |= FDMA_NODE_CTRL_SRC_INCR; in fill_hw_node()
423 hw_node->control |= FDMA_NODE_CTRL_DST_STATIC; in fill_hw_node()
424 hw_node->daddr = fchan->cfg.dev_addr; in fill_hw_node()
426 hw_node->control |= FDMA_NODE_CTRL_SRC_STATIC; in fill_hw_node()
427 hw_node->control |= FDMA_NODE_CTRL_DST_INCR; in fill_hw_node()
428 hw_node->saddr = fchan->cfg.dev_addr; in fill_hw_node()
431 hw_node->generic.sstride = 0; in fill_hw_node()
432 hw_node->generic.dstride = 0; in fill_hw_node()
490 struct st_fdma_hw_node *hw_node = fdesc->node[i].desc; in st_fdma_prep_dma_cyclic() local
492 hw_node->next = fdesc->node[(i + 1) % sg_len].pdesc; in st_fdma_prep_dma_cyclic()
494 hw_node->control = in st_fdma_prep_dma_cyclic()
496 hw_node->control |= FDMA_NODE_CTRL_INT_EON; in st_fdma_prep_dma_cyclic()
498 fill_hw_node(hw_node, fchan, direction); in st_fdma_prep_dma_cyclic()
501 hw_node->saddr = buf_addr + (i * period_len); in st_fdma_prep_dma_cyclic()
503 hw_node->daddr = buf_addr + (i * period_len); in st_fdma_prep_dma_cyclic()
505 hw_node->nbytes = period_len; in st_fdma_prep_dma_cyclic()
506 hw_node->generic.length = period_len; in st_fdma_prep_dma_cyclic()
519 struct st_fdma_hw_node *hw_node; in st_fdma_prep_slave_sg() local
539 hw_node = fdesc->node[i].desc; in st_fdma_prep_slave_sg()
541 hw_node->next = fdesc->node[(i + 1) % sg_len].pdesc; in st_fdma_prep_slave_sg()
542 hw_node->control = FDMA_NODE_CTRL_REQ_MAP_DREQ(fchan->dreq_line); in st_fdma_prep_slave_sg()
544 fill_hw_node(hw_node, fchan, direction); in st_fdma_prep_slave_sg()
547 hw_node->saddr = sg_dma_address(sg); in st_fdma_prep_slave_sg()
549 hw_node->daddr = sg_dma_address(sg); in st_fdma_prep_slave_sg()
551 hw_node->nbytes = sg_dma_len(sg); in st_fdma_prep_slave_sg()
552 hw_node->generic.length = sg_dma_len(sg); in st_fdma_prep_slave_sg()
556 hw_node->control |= FDMA_NODE_CTRL_INT_EON; in st_fdma_prep_slave_sg()