Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/macintosh/
Dadb.c608 atomic_t n_pending; member
624 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()
/Linux-v5.15/sound/pci/rme9652/
Dhdsp.c1305 int n_pending; in snd_hdsp_midi_output_write() local
1315 n_pending = snd_hdsp_midi_output_possible(hmidi->hdsp, hmidi->id); in snd_hdsp_midi_output_write()
1316 if (n_pending > 0) { in snd_hdsp_midi_output_write()
1317 if (n_pending > (int)sizeof (buf)) in snd_hdsp_midi_output_write()
1318 n_pending = sizeof (buf); in snd_hdsp_midi_output_write()
1320 to_write = snd_rawmidi_transmit(hmidi->output, buf, n_pending); in snd_hdsp_midi_output_write()
1336 int n_pending; in snd_hdsp_midi_input_read() local
1340 n_pending = snd_hdsp_midi_input_available(hmidi->hdsp, hmidi->id); in snd_hdsp_midi_input_read()
1341 if (n_pending > 0) { in snd_hdsp_midi_input_read()
1343 if (n_pending > (int)sizeof (buf)) in snd_hdsp_midi_input_read()
[all …]
Dhdspm.c1848 int n_pending; in snd_hdspm_midi_output_write() local
1858 n_pending = snd_hdspm_midi_output_possible (hmidi->hdspm, in snd_hdspm_midi_output_write()
1860 if (n_pending > 0) { in snd_hdspm_midi_output_write()
1861 if (n_pending > (int)sizeof (buf)) in snd_hdspm_midi_output_write()
1862 n_pending = sizeof (buf); in snd_hdspm_midi_output_write()
1865 n_pending); in snd_hdspm_midi_output_write()
1884 int n_pending; in snd_hdspm_midi_input_read() local
1888 n_pending = snd_hdspm_midi_input_available (hmidi->hdspm, hmidi->id); in snd_hdspm_midi_input_read()
1889 if (n_pending > 0) { in snd_hdspm_midi_input_read()
1891 if (n_pending > (int)sizeof (buf)) in snd_hdspm_midi_input_read()
[all …]