Lines Matching defs:pipe
406 #define PIPE_INFO_TO_CMD(capture, pipe) \
407 ((u32)((u32)(pipe) | ((capture) ? ID_IS_CAPTURE : 0L)) << ID_OFFSET)
411 /* low-level pipe handling */
412 int lx_pipe_allocate(struct lx6464es *chip, u32 pipe, int is_capture,
416 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe);
427 dev_err(chip->card->dev, "could not allocate pipe\n");
432 int lx_pipe_release(struct lx6464es *chip, u32 pipe, int is_capture)
434 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe);
444 int lx_buffer_ask(struct lx6464es *chip, u32 pipe, int is_capture,
448 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe);
495 int lx_pipe_stop(struct lx6464es *chip, u32 pipe, int is_capture)
497 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe);
507 static int lx_pipe_toggle_state(struct lx6464es *chip, u32 pipe, int is_capture)
509 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe);
520 int lx_pipe_start(struct lx6464es *chip, u32 pipe, int is_capture)
524 err = lx_pipe_wait_for_idle(chip, pipe, is_capture);
528 err = lx_pipe_toggle_state(chip, pipe, is_capture);
533 int lx_pipe_pause(struct lx6464es *chip, u32 pipe, int is_capture)
537 err = lx_pipe_wait_for_start(chip, pipe, is_capture);
541 err = lx_pipe_toggle_state(chip, pipe, is_capture);
547 int lx_pipe_sample_count(struct lx6464es *chip, u32 pipe, int is_capture,
551 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe);
563 "could not query pipe's sample count\n");
573 int lx_pipe_state(struct lx6464es *chip, u32 pipe, int is_capture, u16 *rstate)
576 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe);
586 dev_err(chip->card->dev, "could not query pipe's state\n");
593 static int lx_pipe_wait_for_state(struct lx6464es *chip, u32 pipe,
602 int err = lx_pipe_state(chip, pipe, is_capture, ¤t_state);
616 int lx_pipe_wait_for_start(struct lx6464es *chip, u32 pipe, int is_capture)
618 return lx_pipe_wait_for_state(chip, pipe, is_capture, PSTATE_RUN);
621 int lx_pipe_wait_for_idle(struct lx6464es *chip, u32 pipe, int is_capture)
623 return lx_pipe_wait_for_state(chip, pipe, is_capture, PSTATE_IDLE);
627 int lx_stream_set_state(struct lx6464es *chip, u32 pipe,
630 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe);
642 u32 pipe, int is_capture)
644 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe);
665 int lx_stream_state(struct lx6464es *chip, u32 pipe, int is_capture,
669 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe);
683 int lx_stream_sample_position(struct lx6464es *chip, u32 pipe, int is_capture,
687 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe);
704 int lx_buffer_give(struct lx6464es *chip, u32 pipe, int is_capture,
709 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe);
750 int lx_buffer_free(struct lx6464es *chip, u32 pipe, int is_capture,
754 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe);
771 int lx_buffer_cancel(struct lx6464es *chip, u32 pipe, int is_capture,
774 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe);