Home
last modified time | relevance | path

Searched refs:max_count (Results 1 – 25 of 48) sorted by relevance

12

/linux-2.6.39/sound/core/seq/
Dseq_lock.c30 int max_count = 5 * HZ; in snd_use_lock_sync_helper() local
37 if (max_count == 0) { in snd_use_lock_sync_helper()
42 max_count--; in snd_use_lock_sync_helper()
Dseq_memory.c418 int max_count = 5 * HZ; in snd_seq_pool_done() local
432 if (max_count == 0) { in snd_seq_pool_done()
437 max_count--; in snd_seq_pool_done()
/linux-2.6.39/drivers/staging/comedi/drivers/
D8253.h137 static const unsigned int max_count = 0x10000; in i8253_cascade_ns_to_timer_2div() local
141 div1 = *d1 ? *d1 : max_count; in i8253_cascade_ns_to_timer_2div()
142 div2 = *d2 ? *d2 : max_count; in i8253_cascade_ns_to_timer_2div()
145 div1 > 1 && div1 <= max_count && div2 > 1 && div2 <= max_count && in i8253_cascade_ns_to_timer_2div()
161 div2 = max_count; in i8253_cascade_ns_to_timer_2div()
165 for (div1 = start; div1 <= divider / div1 + 1 && div1 <= max_count; in i8253_cascade_ns_to_timer_2div()
168 div1 * div2 <= divider + div1 + 1 && div2 <= max_count; in i8253_cascade_ns_to_timer_2div()
/linux-2.6.39/drivers/media/video/pvrusb2/
Dpvrusb2-io.c93 unsigned int max_count; /* Size of storage area */ member
140 ccnt = bp->max_count; in pvr2_buffer_remove()
145 ccnt = bp->max_count; in pvr2_buffer_remove()
225 sp->i_bcount += bp->max_count; in pvr2_buffer_set_idle()
250 sp->q_bcount += bp->max_count; in pvr2_buffer_set_queued()
623 for (idx = 0; idx < (bp->max_count) / 4; idx++) { in pvr2_buffer_queue()
635 bp->max_count, // int buffer_length in pvr2_buffer_queue()
656 bp->stream->i_bcount -= bp->max_count; in pvr2_buffer_set_buffer()
657 bp->max_count = cnt; in pvr2_buffer_set_buffer()
658 bp->stream->i_bcount += bp->max_count; in pvr2_buffer_set_buffer()
/linux-2.6.39/drivers/char/
Dramoops.c56 int max_count; member
100 cxt->count = (cxt->count + 1) % cxt->max_count; in ramoops_do_dump()
126 cxt->max_count = mem_size / RECORD_SIZE; in ramoops_probe()
/linux-2.6.39/lib/zlib_deflate/
Ddeftree.c637 int max_count = 7; /* max repeat count */ in scan_tree() local
640 if (nextlen == 0) max_count = 138, min_count = 3; in scan_tree()
645 if (++count < max_count && curlen == nextlen) { in scan_tree()
659 max_count = 138, min_count = 3; in scan_tree()
661 max_count = 6, min_count = 3; in scan_tree()
663 max_count = 7, min_count = 4; in scan_tree()
683 int max_count = 7; /* max repeat count */ in send_tree() local
687 if (nextlen == 0) max_count = 138, min_count = 3; in send_tree()
691 if (++count < max_count && curlen == nextlen) { in send_tree()
711 max_count = 138, min_count = 3; in send_tree()
[all …]
/linux-2.6.39/kernel/
Dhung_task.c134 int max_count = sysctl_hung_task_check_count; in check_hung_uninterruptible_tasks() local
147 if (!max_count--) in check_hung_uninterruptible_tasks()
/linux-2.6.39/drivers/tty/serial/
Dbcm63xx_uart.c239 unsigned int max_count; in bcm_uart_do_rx() local
244 max_count = 32; in bcm_uart_do_rx()
295 } while (--max_count); in bcm_uart_do_rx()
307 unsigned int val, max_count; in bcm_uart_do_tx() local
327 max_count = port->fifosize - val; in bcm_uart_do_tx()
329 while (max_count--) { in bcm_uart_do_tx()
D21285.c90 unsigned int status, ch, flag, rxs, max_count = 256; in serial21285_rx_chars() local
93 while (!(status & 0x10) && max_count--) { in serial21285_rx_chars()
Dvr41xx_siu.c319 int max_count = RX_MAX_COUNT; in receive_chars() local
366 } while ((lsr & UART_LSR_DR) && (max_count-- > 0)); in receive_chars()
395 int max_count = TX_MAX_COUNT; in transmit_chars() local
417 } while (max_count-- > 0); in transmit_chars()
Dserial_ks8695.c158 unsigned int status, ch, lsr, flg, max_count = 256; in ks8695uart_rx_chars() local
161 while ((status & URLS_URDR) && max_count--) { in ks8695uart_rx_chars()
/linux-2.6.39/sound/oss/dmasound/
Ddmasound_core.c483 sq->max_count = sq->numBufs ; in sq_setup()
516 sq->max_count = sq->user_frags ; in sq_setup()
518 sq->max_active = (sq->max_active <= sq->max_count) ? in sq_setup()
519 sq->max_active : sq->max_count ; in sq_setup()
524 sq->max_count = in sq_setup()
638 dest = write_sq.buffers[(write_sq.rear+1) % write_sq.max_count]; in sq_write()
649 write_sq.rear = (write_sq.rear+1) % write_sq.max_count; in sq_write()
1319 "write", write_sq.max_count, write_sq.block_size, in state_open()
Ddmasound.h221 int max_count; /* actual # fragments <= numBufs */ member
/linux-2.6.39/fs/omfs/
Dfile.c125 u32 max_count; in omfs_grow_extent() local
157 max_count = omfs_max_extents(sbi, OMFS_EXTENT_START); in omfs_grow_extent()
160 if (be32_to_cpu(oe->e_extent_count) > max_count-1) in omfs_grow_extent()
/linux-2.6.39/drivers/scsi/lpfc/
Dlpfc_mem.c94 pool->max_count = 0; in lpfc_mem_alloc()
101 pool->max_count++; in lpfc_mem_alloc()
353 if (pool->current_count < pool->max_count) { in __lpfc_mbuf_free()
/linux-2.6.39/include/acpi/
Dactbl2.h928 u32 max_count; /* Maximum counter value supported */ member
998 u16 max_count; /* Maximum counter value supported */ member
1040 u16 max_count; /* Maximum counter value supported */ member
/linux-2.6.39/drivers/s390/char/
Dtape_3590.h162 __u8 max_count; member
/linux-2.6.39/arch/powerpc/kernel/
Dperf_event_fsl_emb.c244 static int collect_events(struct perf_event *group, int max_count, in collect_events() argument
251 if (n >= max_count) in collect_events()
259 if (n >= max_count) in collect_events()
Dperf_event.c725 static int collect_events(struct perf_event *group, int max_count, in collect_events() argument
733 if (n >= max_count) in collect_events()
742 if (n >= max_count) in collect_events()
/linux-2.6.39/arch/alpha/kernel/
Dperf_event.c330 static int collect_events(struct perf_event *group, int max_count, in collect_events() argument
338 if (n >= max_count) in collect_events()
346 if (n >= max_count) in collect_events()
/linux-2.6.39/security/apparmor/include/
Dpolicy.h96 int max_count; member
/linux-2.6.39/include/linux/ceph/
Dmessenger.h214 int max_count, int *count);
/linux-2.6.39/drivers/s390/crypto/
Dap_bus.c976 int queue_depth, device_type, count, max_count, best_domain; in ap_select_domain() local
988 max_count = 0; in ap_select_domain()
998 if (count > max_count) { in ap_select_domain()
999 max_count = count; in ap_select_domain()
/linux-2.6.39/arch/x86/kernel/cpu/
Dperf_event.c880 int n, max_count; in collect_events() local
882 max_count = x86_pmu.num_counters + x86_pmu.num_counters_fixed; in collect_events()
888 if (n >= max_count) in collect_events()
901 if (n >= max_count) in collect_events()
/linux-2.6.39/fs/ext4/
Dmove_extent.c583 ext4_lblk_t max_count) in mext_calc_swap_extents() argument
612 if (max_count < ext4_ext_get_actual_len(tmp_dext)) in mext_calc_swap_extents()
613 tmp_dext->ee_len = cpu_to_le16(max_count); in mext_calc_swap_extents()

12