Home
last modified time | relevance | path

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

/linux-6.1.9/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-6.1.9/sound/pci/rme9652/
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 …]
Dhdsp.c1308 int n_pending; in snd_hdsp_midi_output_write() local
1318 n_pending = snd_hdsp_midi_output_possible(hmidi->hdsp, hmidi->id); in snd_hdsp_midi_output_write()
1319 if (n_pending > 0) { in snd_hdsp_midi_output_write()
1320 if (n_pending > (int)sizeof (buf)) in snd_hdsp_midi_output_write()
1321 n_pending = sizeof (buf); in snd_hdsp_midi_output_write()
1323 to_write = snd_rawmidi_transmit(hmidi->output, buf, n_pending); in snd_hdsp_midi_output_write()
1339 int n_pending; in snd_hdsp_midi_input_read() local
1343 n_pending = snd_hdsp_midi_input_available(hmidi->hdsp, hmidi->id); in snd_hdsp_midi_input_read()
1344 if (n_pending > 0) { in snd_hdsp_midi_input_read()
1346 if (n_pending > (int)sizeof (buf)) in snd_hdsp_midi_input_read()
[all …]