Searched refs:max_count (Results 1 - 25 of 27) sorted by relevance

12

/drivers/staging/comedi/drivers/
H A D8253.h137 static const unsigned int max_count = 0x10000; local
141 div1 = *d1 ? *d1 : max_count;
142 div2 = *d2 ? *d2 : max_count;
145 div1 > 1 && div1 <= max_count && div2 > 1 && div2 <= max_count &&
161 div2 = max_count;
165 for (div1 = start; div1 <= divider / div1 + 1 && div1 <= max_count;
168 div1 * div2 <= divider + div1 + 1 && div2 <= max_count;
H A Dni_mio_common.c2317 unsigned int max_count = 0x01000000; local
2320 max_count -= num_adc_stages_611x;
2321 if (cmd->stop_arg > max_count) {
2322 cmd->stop_arg = max_count;
/drivers/media/video/pvrusb2/
H A Dpvrusb2-io.c93 unsigned int max_count; /* Size of storage area */ member in struct:pvr2_buffer
140 ccnt = bp->max_count;
145 ccnt = bp->max_count;
225 sp->i_bcount += bp->max_count;
250 sp->q_bcount += bp->max_count;
623 for (idx = 0; idx < (bp->max_count) / 4; idx++) {
635 bp->max_count, // int buffer_length
656 bp->stream->i_bcount -= bp->max_count;
657 bp->max_count = cnt;
658 bp->stream->i_bcount += bp->max_count;
[all...]
/drivers/char/
H A Dramoops.c67 int max_count; member in struct:ramoops_context
113 cxt->count = (cxt->count + 1) % cxt->max_count;
144 cxt->max_count = pdata->mem_size / pdata->record_size;
/drivers/tty/serial/
H A Dbcm63xx_uart.c239 unsigned int max_count; local
244 max_count = 32;
305 } while (--max_count);
317 unsigned int val, max_count; local
337 max_count = port->fifosize - val;
339 while (max_count--) {
H A D21285.c88 unsigned int status, ch, flag, rxs, max_count = 256; local
91 while (!(status & 0x10) && max_count--) {
H A Dvr41xx_siu.c319 int max_count = RX_MAX_COUNT; local
366 } while ((lsr & UART_LSR_DR) && (max_count-- > 0));
395 int max_count = TX_MAX_COUNT; local
417 } while (max_count-- > 0);
H A Dar933x_uart.c231 int max_count = 256; local
259 } while (max_count-- > 0);
H A Dserial_ks8695.c157 unsigned int status, ch, lsr, flg, max_count = 256; local
160 while ((status & URLS_URDR) && max_count--) {
H A Damba-pl010.c120 unsigned int status, ch, flag, rsr, max_count = 256; local
123 while (UART_RX_DATA(status) && max_count--) {
H A Dm32r_sio.c332 int max_count = 256; local
396 } while ((*status & UART_LSR_DR) && (max_count-- > 0));
H A Dpxa.c100 int max_count = 256; local
167 } while ((*status & UART_LSR_DR) && (max_count-- > 0));
H A Dmfd.c469 unsigned int max_count = 256; local
528 } while ((*status & UART_LSR_DR) && max_count--);
H A Dsamsung.c226 int max_count = 64; local
228 while (max_count-- > 0) {
H A Dserial_txx9.c283 int max_count = 256; local
347 } while (!(disr & TXX9_SIDISR_UVALID) && (max_count-- > 0));
H A Dsunsu.c317 int max_count = 256; local
383 } while ((*status & UART_LSR_DR) && (max_count-- > 0));
H A Damba-pl011.c183 unsigned int flag, max_count = 256; local
186 while (max_count--) {
H A Domap-serial.c189 int max_count = 256; local
245 } while ((lsr & (UART_LSR_DR | UART_LSR_BI)) && (max_count-- > 0));
/drivers/s390/char/
H A Dtape_3590.h162 __u8 max_count; member in struct:tape3592_kekl_query_order
/drivers/scsi/lpfc/
H A Dlpfc_mem.c93 pool->max_count = 0;
100 pool->max_count++;
328 * it is below its max_count, frees the mbuf otherwise.
340 if (pool->current_count < pool->max_count) {
357 * it is below its max_count, frees the mbuf otherwise.
H A Dlpfc.h111 uint32_t max_count; member in struct:lpfc_dma_pool
/drivers/s390/crypto/
H A Dap_bus.c1003 int queue_depth, device_type, count, max_count, best_domain; local
1015 max_count = 0;
1025 if (count > max_count) {
1026 max_count = count;
/drivers/mmc/card/
H A Dsdio_uart.c397 int max_count = 256; local
444 } while ((*status & UART_LSR_DR) && (max_count-- > 0));
/drivers/staging/vt6655/
H A Ddevice_main.c2674 int max_count=0;
2917 max_count += device_rx_srv(pDevice, TYPE_RXDMA0);
2920 max_count += device_rx_srv(pDevice, TYPE_RXDMA1);
2923 max_count += device_tx_srv(pDevice, TYPE_TXDMA0);
2926 max_count += device_tx_srv(pDevice, TYPE_AC0DMA);
2947 if (max_count>pDevice->sOpts.int_works)
/drivers/s390/block/
H A Ddasd.c3120 int max_count, open_count; local
3137 max_count = device->block->bdev ? 0 : -1;
3139 if (open_count > max_count) {

Completed in 368 milliseconds

12