Searched refs:sizetocopy (Results 1 – 2 of 2) sorted by relevance
/linux-2.4.37.9/drivers/sound/emu10k1/ |
D | cardwo.c | 507 u32 sizetocopy, sizetocopy_now, start; in emu10k1_waveout_xferdata() local 510 sizetocopy = min_t(u32, buffer->size, *size); in emu10k1_waveout_xferdata() 511 *size = sizetocopy; in emu10k1_waveout_xferdata() 513 if (!sizetocopy) in emu10k1_waveout_xferdata() 519 if (sizetocopy > buffer->silence_bytes) { in emu10k1_waveout_xferdata() 520 buffer->silence_pos += sizetocopy - buffer->silence_bytes; in emu10k1_waveout_xferdata() 521 buffer->free_bytes -= sizetocopy - buffer->silence_bytes; in emu10k1_waveout_xferdata() 524 buffer->silence_bytes -= sizetocopy; in emu10k1_waveout_xferdata() 529 if (sizetocopy > sizetocopy_now) { in emu10k1_waveout_xferdata() 530 sizetocopy -= sizetocopy_now; in emu10k1_waveout_xferdata() [all …]
|
D | cardwi.c | 328 u32 sizetocopy, sizetocopy_now, start; in emu10k1_wavein_xferdata() local 331 sizetocopy = min_t(u32, buffer->size, *size); in emu10k1_wavein_xferdata() 332 *size = sizetocopy; in emu10k1_wavein_xferdata() 334 if (!sizetocopy) in emu10k1_wavein_xferdata() 339 buffer->pos += sizetocopy; in emu10k1_wavein_xferdata() 341 buffer->bytestocopy -= sizetocopy; in emu10k1_wavein_xferdata() 346 if (sizetocopy > sizetocopy_now) { in emu10k1_wavein_xferdata() 347 sizetocopy -= sizetocopy_now; in emu10k1_wavein_xferdata() 350 copy_block(data + sizetocopy_now, buffer->addr, 0, sizetocopy, buffer->cov); in emu10k1_wavein_xferdata() 352 copy_block(data, buffer->addr, start, sizetocopy, buffer->cov); in emu10k1_wavein_xferdata()
|