Home
last modified time | relevance | path

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

/openbmc/linux/drivers/macintosh/
H A 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()
/openbmc/linux/sound/pci/rme9652/
H A Dhdsp.c1310 int n_pending; in snd_hdsp_midi_output_write() local
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()
1341 int n_pending; in snd_hdsp_midi_input_read() local
1346 if (n_pending > 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()
1352 if (n_pending) in snd_hdsp_midi_input_read()
[all …]
H A Dhdspm.c1850 int n_pending; in snd_hdspm_midi_output_write() local
1862 if (n_pending > 0) { 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() local
1891 if (n_pending > 0) { in snd_hdspm_midi_input_read()
1894 n_pending = sizeof (buf); in snd_hdspm_midi_input_read()
1895 for (i = 0; i < n_pending; ++i) in snd_hdspm_midi_input_read()
1898 if (n_pending) in snd_hdspm_midi_input_read()
1900 n_pending); in snd_hdspm_midi_input_read()
[all …]