• Home
  • Raw
  • Download

Lines Matching refs:pipe

1056 static int allocate_pipes(struct echoaudio *chip, struct audiopipe *pipe,  in allocate_pipes()  argument
1083 pipe->index = pipe_index; in allocate_pipes()
1084 pipe->interleave = interleave; in allocate_pipes()
1085 pipe->state = PIPE_STATE_STOPPED; in allocate_pipes()
1090 pipe->dma_counter = &chip->comm_page->position[pipe_index]; in allocate_pipes()
1091 *pipe->dma_counter = 0; in allocate_pipes()
1097 static int free_pipes(struct echoaudio *chip, struct audiopipe *pipe) in free_pipes() argument
1102 if (snd_BUG_ON(!is_pipe_allocated(chip, pipe->index))) in free_pipes()
1104 if (snd_BUG_ON(pipe->state != PIPE_STATE_STOPPED)) in free_pipes()
1107 for (channel_mask = i = 0; i < pipe->interleave; i++) in free_pipes()
1108 channel_mask |= 1 << (pipe->index + i); in free_pipes()
1121 static int sglist_init(struct echoaudio *chip, struct audiopipe *pipe) in sglist_init() argument
1123 pipe->sglist_head = 0; in sglist_init()
1124 memset(pipe->sgpage.area, 0, PAGE_SIZE); in sglist_init()
1125 chip->comm_page->sglist_addr[pipe->index].addr = in sglist_init()
1126 cpu_to_le32(pipe->sgpage.addr); in sglist_init()
1132 static int sglist_add_mapping(struct echoaudio *chip, struct audiopipe *pipe, in sglist_add_mapping() argument
1135 int head = pipe->sglist_head; in sglist_add_mapping()
1136 struct sg_entry *list = (struct sg_entry *)pipe->sgpage.area; in sglist_add_mapping()
1141 pipe->sglist_head++; in sglist_add_mapping()
1151 static inline int sglist_add_irq(struct echoaudio *chip, struct audiopipe *pipe) in sglist_add_irq() argument
1153 return sglist_add_mapping(chip, pipe, 0, 0); in sglist_add_irq()
1158 static inline int sglist_wrap(struct echoaudio *chip, struct audiopipe *pipe) in sglist_wrap() argument
1160 return sglist_add_mapping(chip, pipe, pipe->sgpage.addr, 0); in sglist_wrap()