Searched refs:pull_pos (Results 1 – 4 of 4) sorted by relevance
63 if (tscm->pull_pos == tscm->push_pos) in tscm_hwdep_read_queue()65 else if (tscm->pull_pos < tscm->push_pos) in tscm_hwdep_read_queue()69 head_pos = tscm->pull_pos; in tscm_hwdep_read_queue()83 tscm->pull_pos = tail_pos % SND_TSCM_QUEUE_COUNT; in tscm_hwdep_read_queue()106 while (!tscm->dev_lock_changed && tscm->push_pos == tscm->pull_pos) { in hwdep_read()119 } else if (tscm->push_pos != tscm->pull_pos) { in hwdep_read()138 if (tscm->dev_lock_changed || tscm->push_pos != tscm->pull_pos) in hwdep_poll()
96 unsigned int pull_pos; member
556 size_t pull_pos; member563 return (parser->push_pos != parser->pull_pos); in ff400_has_msg()688 if (count < sizeof(ev) || parser->pull_pos == parser->push_pos) in ff400_copy_msg_to_user()694 while (count >= sizeof(*parser->msgs) && parser->pull_pos != parser->push_pos) { in ff400_copy_msg_to_user()696 if (copy_to_user(buf + consumed, parser->msgs + parser->pull_pos, in ff400_copy_msg_to_user()703 ++parser->pull_pos; in ff400_copy_msg_to_user()704 if (parser->pull_pos >= FF400_QUEUE_SIZE) in ff400_copy_msg_to_user()705 parser->pull_pos = 0; in ff400_copy_msg_to_user()
98 unsigned int pull_pos; member396 if (parser->pull_pos > parser->push_pos) in snd_motu_register_dsp_message_parser_count_event()397 return EVENT_QUEUE_SIZE - parser->pull_pos + parser->push_pos; in snd_motu_register_dsp_message_parser_count_event()399 return parser->push_pos - parser->pull_pos; in snd_motu_register_dsp_message_parser_count_event()405 unsigned int pos = parser->pull_pos; in snd_motu_register_dsp_message_parser_copy_event()418 parser->pull_pos = pos; in snd_motu_register_dsp_message_parser_copy_event()