Searched refs:n_pending (Results 1 – 3 of 3) sorted by relevance
610 atomic_t n_pending; member626 atomic_dec(&state->n_pending); in adb_write_done()629 if (atomic_read(&state->n_pending) == 0) { in adb_write_done()684 atomic_set(&state->n_pending, 0); in adb_open()703 if (atomic_read(&state->n_pending) == 0 in adb_release()739 else if (atomic_read(&state->n_pending) == 0) in adb_read()800 atomic_inc(&state->n_pending); in adb_write()819 atomic_dec(&state->n_pending); in adb_write()833 atomic_dec(&state->n_pending); in adb_write()
1310 int n_pending; in snd_hdsp_midi_output_write() local1320 n_pending = snd_hdsp_midi_output_possible(hmidi->hdsp, hmidi->id); in snd_hdsp_midi_output_write()1321 if (n_pending > 0) { in snd_hdsp_midi_output_write()1322 if (n_pending > (int)sizeof (buf)) in snd_hdsp_midi_output_write()1323 n_pending = sizeof (buf); in snd_hdsp_midi_output_write()1325 to_write = snd_rawmidi_transmit(hmidi->output, buf, n_pending); in snd_hdsp_midi_output_write()1341 int n_pending; in snd_hdsp_midi_input_read() local1345 n_pending = snd_hdsp_midi_input_available(hmidi->hdsp, hmidi->id); in snd_hdsp_midi_input_read()1346 if (n_pending > 0) { in snd_hdsp_midi_input_read()1348 if (n_pending > (int)sizeof (buf)) in snd_hdsp_midi_input_read()[all …]
1850 int n_pending; in snd_hdspm_midi_output_write() local1860 n_pending = snd_hdspm_midi_output_possible (hmidi->hdspm, in snd_hdspm_midi_output_write()1862 if (n_pending > 0) { in snd_hdspm_midi_output_write()1863 if (n_pending > (int)sizeof (buf)) in snd_hdspm_midi_output_write()1864 n_pending = sizeof (buf); in snd_hdspm_midi_output_write()1867 n_pending); in snd_hdspm_midi_output_write()1886 int n_pending; in snd_hdspm_midi_input_read() local1890 n_pending = snd_hdspm_midi_input_available (hmidi->hdspm, hmidi->id); in snd_hdspm_midi_input_read()1891 if (n_pending > 0) { in snd_hdspm_midi_input_read()1893 if (n_pending > (int)sizeof (buf)) in snd_hdspm_midi_input_read()[all …]