Home
last modified time | relevance | path

Searched refs:n_pending (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/drivers/macintosh/
Dadb.c606 atomic_t n_pending; member
622 atomic_dec(&state->n_pending); in adb_write_done()
625 if (atomic_read(&state->n_pending) == 0) { in adb_write_done()
680 atomic_set(&state->n_pending, 0); in adb_open()
699 if (atomic_read(&state->n_pending) == 0 in adb_release()
735 else if (atomic_read(&state->n_pending) == 0) in adb_read()
796 atomic_inc(&state->n_pending); in adb_write()
815 atomic_dec(&state->n_pending); in adb_write()
829 atomic_dec(&state->n_pending); in adb_write()
/Linux-v4.19/sound/pci/rme9652/
Dhdspm.c1856 int n_pending; in snd_hdspm_midi_output_write() local
1866 n_pending = snd_hdspm_midi_output_possible (hmidi->hdspm, in snd_hdspm_midi_output_write()
1868 if (n_pending > 0) { in snd_hdspm_midi_output_write()
1869 if (n_pending > (int)sizeof (buf)) in snd_hdspm_midi_output_write()
1870 n_pending = sizeof (buf); in snd_hdspm_midi_output_write()
1873 n_pending); in snd_hdspm_midi_output_write()
1892 int n_pending; in snd_hdspm_midi_input_read() local
1896 n_pending = snd_hdspm_midi_input_available (hmidi->hdspm, hmidi->id); in snd_hdspm_midi_input_read()
1897 if (n_pending > 0) { in snd_hdspm_midi_input_read()
1899 if (n_pending > (int)sizeof (buf)) in snd_hdspm_midi_input_read()
[all …]
Dhdsp.c1331 int n_pending; in snd_hdsp_midi_output_write() local
1341 if ((n_pending = snd_hdsp_midi_output_possible (hmidi->hdsp, hmidi->id)) > 0) { in snd_hdsp_midi_output_write()
1342 if (n_pending > (int)sizeof (buf)) in snd_hdsp_midi_output_write()
1343 n_pending = sizeof (buf); in snd_hdsp_midi_output_write()
1345 if ((to_write = snd_rawmidi_transmit (hmidi->output, buf, n_pending)) > 0) { in snd_hdsp_midi_output_write()
1360 int n_pending; in snd_hdsp_midi_input_read() local
1364 if ((n_pending = snd_hdsp_midi_input_available (hmidi->hdsp, hmidi->id)) > 0) { in snd_hdsp_midi_input_read()
1366 if (n_pending > (int)sizeof (buf)) in snd_hdsp_midi_input_read()
1367 n_pending = sizeof (buf); in snd_hdsp_midi_input_read()
1368 for (i = 0; i < n_pending; ++i) in snd_hdsp_midi_input_read()
[all …]