Lines Matching refs:n_pending
1310 int n_pending; in snd_hdsp_midi_output_write() local
1320 n_pending = snd_hdsp_midi_output_possible(hmidi->hdsp, hmidi->id); in snd_hdsp_midi_output_write()
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()
1325 to_write = snd_rawmidi_transmit(hmidi->output, buf, n_pending); in snd_hdsp_midi_output_write()
1341 int n_pending; in snd_hdsp_midi_input_read() local
1345 n_pending = snd_hdsp_midi_input_available(hmidi->hdsp, hmidi->id); in snd_hdsp_midi_input_read()
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()
1353 snd_rawmidi_receive (hmidi->input, buf, n_pending); in snd_hdsp_midi_input_read()
1356 while (--n_pending) in snd_hdsp_midi_input_read()