Lines Matching refs:n_pending
1313 int n_pending; in snd_hdsp_midi_output_write() local
1323 if ((n_pending = snd_hdsp_midi_output_possible (hmidi->hdsp, hmidi->id)) > 0) { in snd_hdsp_midi_output_write()
1324 if (n_pending > (int)sizeof (buf)) in snd_hdsp_midi_output_write()
1325 n_pending = sizeof (buf); in snd_hdsp_midi_output_write()
1327 if ((to_write = snd_rawmidi_transmit (hmidi->output, buf, n_pending)) > 0) { in snd_hdsp_midi_output_write()
1342 int n_pending; in snd_hdsp_midi_input_read() local
1346 if ((n_pending = snd_hdsp_midi_input_available (hmidi->hdsp, hmidi->id)) > 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()