Searched refs:n_pending (Results 1 – 3 of 3) sorted by relevance
608 atomic_t n_pending; member624 atomic_dec(&state->n_pending); in adb_write_done()627 if (atomic_read(&state->n_pending) == 0) { in adb_write_done()682 atomic_set(&state->n_pending, 0); in adb_open()701 if (atomic_read(&state->n_pending) == 0 in adb_release()737 else if (atomic_read(&state->n_pending) == 0) in adb_read()798 atomic_inc(&state->n_pending); in adb_write()817 atomic_dec(&state->n_pending); in adb_write()831 atomic_dec(&state->n_pending); in adb_write()
1849 int n_pending; in snd_hdspm_midi_output_write() local1859 n_pending = snd_hdspm_midi_output_possible (hmidi->hdspm, in snd_hdspm_midi_output_write()1861 if (n_pending > 0) { in snd_hdspm_midi_output_write()1862 if (n_pending > (int)sizeof (buf)) in snd_hdspm_midi_output_write()1863 n_pending = sizeof (buf); in snd_hdspm_midi_output_write()1866 n_pending); in snd_hdspm_midi_output_write()1885 int n_pending; in snd_hdspm_midi_input_read() local1889 n_pending = snd_hdspm_midi_input_available (hmidi->hdspm, hmidi->id); in snd_hdspm_midi_input_read()1890 if (n_pending > 0) { in snd_hdspm_midi_input_read()1892 if (n_pending > (int)sizeof (buf)) in snd_hdspm_midi_input_read()[all …]
1313 int n_pending; in snd_hdsp_midi_output_write() local1323 if ((n_pending = snd_hdsp_midi_output_possible (hmidi->hdsp, hmidi->id)) > 0) { in snd_hdsp_midi_output_write()1324 if (n_pending > (int)sizeof (buf)) in snd_hdsp_midi_output_write()1325 n_pending = sizeof (buf); in snd_hdsp_midi_output_write()1327 if ((to_write = snd_rawmidi_transmit (hmidi->output, buf, n_pending)) > 0) { in snd_hdsp_midi_output_write()1342 int n_pending; in snd_hdsp_midi_input_read() local1346 if ((n_pending = snd_hdsp_midi_input_available (hmidi->hdsp, hmidi->id)) > 0) { in snd_hdsp_midi_input_read()1348 if (n_pending > (int)sizeof (buf)) in snd_hdsp_midi_input_read()1349 n_pending = sizeof (buf); in snd_hdsp_midi_input_read()1350 for (i = 0; i < n_pending; ++i) in snd_hdsp_midi_input_read()[all …]