write_sq 1174 sound/oss/dmasound/dmasound_atari.c start = write_sq.buffers[write_sq.front]; write_sq 1175 sound/oss/dmasound/dmasound_atari.c end = start+((write_sq.count == index) ? write_sq.rear_size write_sq 1176 sound/oss/dmasound/dmasound_atari.c : write_sq.block_size); write_sq 1182 sound/oss/dmasound/dmasound_atari.c write_sq.front = (write_sq.front+1) % write_sq.max_count; write_sq 1183 sound/oss/dmasound/dmasound_atari.c write_sq.active++; write_sq 1205 sound/oss/dmasound/dmasound_atari.c if (write_sq.active == 2 || /* DMA is 'full' */ write_sq 1206 sound/oss/dmasound/dmasound_atari.c write_sq.count <= 0) { /* nothing to do */ write_sq 1211 sound/oss/dmasound/dmasound_atari.c if (write_sq.active == 0) { write_sq 1215 sound/oss/dmasound/dmasound_atari.c if (write_sq.count == 1 && write_sq 1216 sound/oss/dmasound/dmasound_atari.c write_sq.rear_size < write_sq.block_size && write_sq 1217 sound/oss/dmasound/dmasound_atari.c !write_sq.syncing) { write_sq 1225 sound/oss/dmasound/dmasound_atari.c if (write_sq.count == 1) { write_sq 1230 sound/oss/dmasound/dmasound_atari.c if (write_sq.count == 2 && write_sq 1231 sound/oss/dmasound/dmasound_atari.c write_sq.rear_size < write_sq.block_size && write_sq 1232 sound/oss/dmasound/dmasound_atari.c !write_sq.syncing) { write_sq 1245 sound/oss/dmasound/dmasound_atari.c if (write_sq.count == 2 && write_sq 1246 sound/oss/dmasound/dmasound_atari.c write_sq.rear_size < write_sq.block_size && write_sq 1247 sound/oss/dmasound/dmasound_atari.c !write_sq.syncing) { write_sq 1265 sound/oss/dmasound/dmasound_atari.c if (write_sq.active == 2) write_sq 1282 sound/oss/dmasound/dmasound_atari.c if (!write_sq.active) { write_sq 1286 sound/oss/dmasound/dmasound_atari.c WAKE_UP(write_sq.sync_queue); write_sq 1297 sound/oss/dmasound/dmasound_atari.c write_sq.count--; write_sq 1298 sound/oss/dmasound/dmasound_atari.c write_sq.active--; write_sq 1300 sound/oss/dmasound/dmasound_atari.c if (!write_sq.active) { write_sq 1305 sound/oss/dmasound/dmasound_atari.c WAKE_UP(write_sq.action_queue); write_sq 1310 sound/oss/dmasound/dmasound_atari.c if ((write_sq.active != 1) || (write_sq.count != 1)) write_sq 1320 sound/oss/dmasound/dmasound_atari.c if (!write_sq.active) WAKE_UP(write_sq.sync_queue); write_sq 514 sound/oss/dmasound/dmasound_core.c if (sq == &write_sq) { write_sq 560 sound/oss/dmasound/dmasound_core.c if (write_sq.locked == 0) { write_sq 561 sound/oss/dmasound/dmasound_core.c if ((uWritten = sq_setup(&write_sq)) < 0) return uWritten ; write_sq 586 sound/oss/dmasound/dmasound_core.c write_sq.syncing &= ~2 ; /* take out POST status */ write_sq 589 sound/oss/dmasound/dmasound_core.c if (write_sq.count > 0 && write_sq 590 sound/oss/dmasound/dmasound_core.c (bLeft = write_sq.block_size-write_sq.rear_size) > 0) { write_sq 591 sound/oss/dmasound/dmasound_core.c dest = write_sq.buffers[write_sq.rear]; write_sq 592 sound/oss/dmasound/dmasound_core.c bUsed = write_sq.rear_size; write_sq 600 sound/oss/dmasound/dmasound_core.c write_sq.rear_size = bUsed; write_sq 604 sound/oss/dmasound/dmasound_core.c while (write_sq.count >= write_sq.max_active) { write_sq 606 sound/oss/dmasound/dmasound_core.c if (write_sq.open_mode & O_NONBLOCK) write_sq 608 sound/oss/dmasound/dmasound_core.c SLEEP(write_sq.action_queue); write_sq 620 sound/oss/dmasound/dmasound_core.c dest = write_sq.buffers[(write_sq.rear+1) % write_sq.max_count]; write_sq 622 sound/oss/dmasound/dmasound_core.c bLeft = write_sq.block_size; write_sq 631 sound/oss/dmasound/dmasound_core.c write_sq.rear = (write_sq.rear+1) % write_sq.max_count; write_sq 632 sound/oss/dmasound/dmasound_core.c write_sq.rear_size = bUsed; write_sq 633 sound/oss/dmasound/dmasound_core.c write_sq.count++; write_sq 647 sound/oss/dmasound/dmasound_core.c if (write_sq.locked == 0) { write_sq 648 sound/oss/dmasound/dmasound_core.c if ((retVal = sq_setup(&write_sq)) < 0) write_sq 653 sound/oss/dmasound/dmasound_core.c poll_wait(file, &write_sq.action_queue, wait); write_sq 655 sound/oss/dmasound/dmasound_core.c if (write_sq.count < write_sq.max_active || write_sq.block_size - write_sq.rear_size > 0) write_sq 726 sound/oss/dmasound/dmasound_core.c #define write_sq_init_waitqueue() sq_init_waitqueue(&write_sq) write_sq 728 sound/oss/dmasound/dmasound_core.c #define write_sq_wake_up(file) sq_wake_up(&write_sq, file, FMODE_WRITE) write_sq 730 sound/oss/dmasound/dmasound_core.c #define write_sq_release_buffers() sq_release_buffers(&write_sq) write_sq 732 sound/oss/dmasound/dmasound_core.c sq_open2(&write_sq, file, FMODE_WRITE, numWriteBufs, writeBufSize ) write_sq 792 sound/oss/dmasound/dmasound_core.c write_sq.active = 0; write_sq 793 sound/oss/dmasound/dmasound_core.c write_sq.count = 0; write_sq 794 sound/oss/dmasound/dmasound_core.c write_sq.rear_size = 0; write_sq 796 sound/oss/dmasound/dmasound_core.c write_sq.front = 0 ; write_sq 797 sound/oss/dmasound/dmasound_core.c write_sq.rear = -1 ; /* same as for set-up */ write_sq 800 sound/oss/dmasound/dmasound_core.c write_sq.locked = 0 ; write_sq 801 sound/oss/dmasound/dmasound_core.c write_sq.user_frags = 0 ; write_sq 802 sound/oss/dmasound/dmasound_core.c write_sq.user_frag_size = 0 ; write_sq 821 sound/oss/dmasound/dmasound_core.c write_sq.syncing |= 1; write_sq 824 sound/oss/dmasound/dmasound_core.c while (write_sq.active) { write_sq 825 sound/oss/dmasound/dmasound_core.c SLEEP(write_sq.sync_queue); write_sq 843 sound/oss/dmasound/dmasound_core.c write_sq.syncing = 0 ; write_sq 854 sound/oss/dmasound/dmasound_core.c if (write_sq.busy) write_sq 859 sound/oss/dmasound/dmasound_core.c write_sq.busy = 0; write_sq 909 sound/oss/dmasound/dmasound_core.c if (write_sq.locked) write_sq 985 sound/oss/dmasound/dmasound_core.c if ( !write_sq.locked ) write_sq 986 sound/oss/dmasound/dmasound_core.c sq_setup(&write_sq) ; write_sq 987 sound/oss/dmasound/dmasound_core.c size = write_sq.user_frag_size ; write_sq 997 sound/oss/dmasound/dmasound_core.c write_sq.syncing |= 0x2 ; write_sq 1085 sound/oss/dmasound/dmasound_core.c result = set_queue_frags(&write_sq, nbufs, size) ; write_sq 1098 sound/oss/dmasound/dmasound_core.c if ( !write_sq.locked ) write_sq 1099 sound/oss/dmasound/dmasound_core.c sq_setup(&write_sq) ; write_sq 1100 sound/oss/dmasound/dmasound_core.c info.fragments = write_sq.max_active - write_sq.count; write_sq 1101 sound/oss/dmasound/dmasound_core.c info.fragstotal = write_sq.max_active; write_sq 1102 sound/oss/dmasound/dmasound_core.c info.fragsize = write_sq.user_frag_size; write_sq 1277 sound/oss/dmasound/dmasound_core.c "write", write_sq.numBufs, write_sq.bufSize) ; write_sq 1282 sound/oss/dmasound/dmasound_core.c "write", write_sq.max_count, write_sq.block_size, write_sq 1283 sound/oss/dmasound/dmasound_core.c write_sq.max_active, write_sq.front, write_sq.rear, write_sq 1284 sound/oss/dmasound/dmasound_core.c write_sq.count, write_sq.rear_size, write_sq.active, write_sq 1285 sound/oss/dmasound/dmasound_core.c write_sq.busy, write_sq.syncing, write_sq.locked, write_sq.xruns) ; write_sq 468 sound/oss/dmasound/dmasound_paula.c start = write_sq.buffers[write_sq.front]; write_sq 469 sound/oss/dmasound/dmasound_paula.c size = (write_sq.count == index ? write_sq.rear_size write_sq 470 sound/oss/dmasound/dmasound_paula.c : write_sq.block_size)>>1; write_sq 513 sound/oss/dmasound/dmasound_paula.c write_sq.front = (write_sq.front+1) % write_sq.max_count; write_sq 514 sound/oss/dmasound/dmasound_paula.c write_sq.active |= AMI_PLAY_LOADED; write_sq 524 sound/oss/dmasound/dmasound_paula.c if (write_sq.active & AMI_PLAY_LOADED) { write_sq 530 sound/oss/dmasound/dmasound_paula.c if (write_sq.active & AMI_PLAY_PLAYING) write_sq 534 sound/oss/dmasound/dmasound_paula.c if (write_sq.count < minframes) { write_sq 540 sound/oss/dmasound/dmasound_paula.c if (write_sq.count <= minframes && write_sq 541 sound/oss/dmasound/dmasound_paula.c write_sq.rear_size < write_sq.block_size && !write_sq.syncing) { write_sq 561 sound/oss/dmasound/dmasound_paula.c if (!write_sq.active) { write_sq 565 sound/oss/dmasound/dmasound_paula.c WAKE_UP(write_sq.sync_queue); write_sq 569 sound/oss/dmasound/dmasound_paula.c if (write_sq.active & AMI_PLAY_PLAYING) { write_sq 571 sound/oss/dmasound/dmasound_paula.c write_sq.count--; write_sq 572 sound/oss/dmasound/dmasound_paula.c WAKE_UP(write_sq.action_queue); write_sq 575 sound/oss/dmasound/dmasound_paula.c if (write_sq.active & AMI_PLAY_LOADED) write_sq 580 sound/oss/dmasound/dmasound_paula.c write_sq.active = (write_sq.active<<1) & AMI_PLAY_MASK; write_sq 582 sound/oss/dmasound/dmasound_paula.c if (!write_sq.active) write_sq 588 sound/oss/dmasound/dmasound_paula.c if (write_sq.count >= minframes) write_sq 592 sound/oss/dmasound/dmasound_paula.c if (!write_sq.active) write_sq 595 sound/oss/dmasound/dmasound_paula.c WAKE_UP(write_sq.sync_queue); write_sq 646 sound/oss/dmasound/dmasound_paula.c write_sq_block_size_half = write_sq.block_size>>1; write_sq 408 sound/oss/dmasound/dmasound_q40.c start = write_sq.buffers[write_sq.front]; write_sq 409 sound/oss/dmasound/dmasound_q40.c size = (write_sq.count == index ? write_sq.rear_size : write_sq.block_size); write_sq 414 sound/oss/dmasound/dmasound_q40.c write_sq.front = (write_sq.front+1) % write_sq.max_count; write_sq 415 sound/oss/dmasound/dmasound_q40.c write_sq.active++; write_sq 437 sound/oss/dmasound/dmasound_q40.c if (write_sq.active || write_sq.count<=0 ) { write_sq 443 sound/oss/dmasound/dmasound_q40.c if (write_sq.count <= 1 && write_sq.rear_size < write_sq.block_size && !write_sq.syncing) { write_sq 480 sound/oss/dmasound/dmasound_q40.c if (!write_sq.active) { write_sq 484 sound/oss/dmasound/dmasound_q40.c WAKE_UP(write_sq.sync_queue); write_sq 487 sound/oss/dmasound/dmasound_q40.c } else write_sq.active=0; write_sq 488 sound/oss/dmasound/dmasound_q40.c write_sq.count--; write_sq 496 sound/oss/dmasound/dmasound_q40.c WAKE_UP(write_sq.action_queue);