Lines Matching refs:n_pending
1308 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()
1347 n_pending = sizeof (buf); in snd_hdsp_midi_input_read()
1348 for (i = 0; i < n_pending; ++i) in snd_hdsp_midi_input_read()
1350 if (n_pending) in snd_hdsp_midi_input_read()
1351 snd_rawmidi_receive (hmidi->input, buf, n_pending); in snd_hdsp_midi_input_read()
1354 while (--n_pending) in snd_hdsp_midi_input_read()