Home
last modified time | relevance | path

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

12

/drivers/net/ethernet/cavium/liquidio/
Docteon_droq.c137 droq->max_empty_descs = droq->max_count - droq->max_empty_descs; in octeon_droq_compute_max_packet_bufs()
155 for (i = 0; i < droq->max_count; i++) { in octeon_droq_destroy_ring_buffers()
183 for (i = 0; i < droq->max_count; i++) { in octeon_droq_setup_ring_buffers()
228 lio_dma_free(oct, (droq->max_count * OCT_DROQ_DESC_SIZE), in octeon_delete_droq()
267 droq->max_count = c_num_descs; in octeon_init_droq()
270 desc_ring_size = droq->max_count * OCT_DROQ_DESC_SIZE; in octeon_init_droq()
283 droq->max_count); in octeon_init_droq()
287 (droq->max_count * OCT_DROQ_INFO_SIZE), in octeon_init_droq()
294 lio_dma_free(oct, (droq->max_count * OCT_DROQ_DESC_SIZE), in octeon_init_droq()
300 vmalloc(droq->max_count * in octeon_init_droq()
[all …]
Drequest_manager.c107 iq->max_count = num_descs; in octeon_init_instr_queue()
123 iq_no, iq->base_addr, iq->base_addr_dma, iq->max_count); in octeon_init_instr_queue()
181 q_size = iq->max_count * desc_size; in octeon_delete_instr_queue()
284 if (atomic_read(&iq->instr_pending) >= (s32)(iq->max_count - 1)) in __post_command()
291 INCR_INDEX_BY1(iq->host_write_index, iq->max_count); in __post_command()
316 if (atomic_read(&iq->instr_pending) >= (s32)(iq->max_count - 1)) { in __post_command2()
322 if (atomic_read(&iq->instr_pending) >= (s32)(iq->max_count - 2)) in __post_command2()
329 INCR_INDEX_BY1(iq->host_write_index, iq->max_count); in __post_command2()
432 INCR_INDEX_BY1(old, iq->max_count); in lio_process_iq_request_list()
Dcn66xx_device.c294 octeon_write_csr(oct, CN6XXX_SLI_IQ_SIZE(iq_no), iq->max_count); in lio_cn6xxx_setup_iq_regs()
329 octeon_write_csr(oct, CN6XXX_SLI_OQ_SIZE(oq_no), droq->max_count); in lio_cn6xxx_setup_oq_regs()
456 writel(oct->droq[i]->max_count, oct->droq[i]->pkts_credit_reg); in lio_cn6xxx_reinit_regs()
515 new_idx %= iq->max_count; in lio_cn6xxx_update_read_index()
Docteon_nic.h123 >= (oct->instr_queue[q_no]->max_count - 2)); in octnet_iq_is_full()
Docteon_iq.h95 u32 max_count; member
Docteon_droq.h264 u32 max_count; member
/drivers/staging/fsl-mc/bus/
Dmc-allocator.c59 if (WARN_ON(res_pool->max_count < 0)) in fsl_mc_resource_pool_add_device()
62 res_pool->free_count > res_pool->max_count)) in fsl_mc_resource_pool_add_device()
82 res_pool->max_count++; in fsl_mc_resource_pool_add_device()
126 if (WARN_ON(res_pool->max_count <= 0)) in fsl_mc_resource_pool_remove_device()
129 res_pool->free_count > res_pool->max_count)) in fsl_mc_resource_pool_remove_device()
147 res_pool->max_count--; in fsl_mc_resource_pool_remove_device()
221 res_pool->free_count > res_pool->max_count)) in fsl_mc_resource_allocate()
251 res_pool->free_count >= res_pool->max_count)) in fsl_mc_resource_free()
Ddprc-driver.c201 res_pool->max_count = 0; in dprc_init_all_resource_pools()
220 WARN_ON(res_pool->free_count != res_pool->max_count); in dprc_cleanup_resource_pool()
/drivers/media/usb/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()
630 for (idx = 0; idx < (bp->max_count) / 4; idx++) { in pvr2_buffer_queue()
642 bp->max_count, // int buffer_length in pvr2_buffer_queue()
665 bp->stream->i_bcount -= bp->max_count; in pvr2_buffer_set_buffer()
666 bp->max_count = cnt; in pvr2_buffer_set_buffer()
667 bp->stream->i_bcount += bp->max_count; in pvr2_buffer_set_buffer()
/drivers/net/wireless/realtek/rtlwifi/rtl8723com/
Dfw_common.c199 int max_count) in rtl8723_fw_free_to_go() argument
208 } while ((counter++ < max_count) && in rtl8723_fw_free_to_go()
211 if (counter >= max_count) { in rtl8723_fw_free_to_go()
240 } while (counter++ < max_count); in rtl8723_fw_free_to_go()
252 bool is_8723be, int max_count) in rtl8723_download_fw() argument
295 err = rtl8723_fw_free_to_go(hw, is_8723be, max_count); in rtl8723_download_fw()
/drivers/net/wireless/ath/
Ddfs_pri_detector.c220 if (pde->count >= pde->max_count) in pulse_queue_enqueue()
307 u32 max_count = 0; in pseq_handler_add_to_existing_seqs() local
327 if (max_count < ps->count) in pseq_handler_add_to_existing_seqs()
328 max_count = ps->count; in pseq_handler_add_to_existing_seqs()
333 return max_count; in pseq_handler_add_to_existing_seqs()
432 de->max_count = rs->ppb * 2; in pri_detector_init()
Ddfs_pri_detector.h71 u32 max_count; member
/drivers/tty/serial/
Dbcm63xx_uart.c237 unsigned int max_count; in bcm_uart_do_rx() local
242 max_count = 32; in bcm_uart_do_rx()
302 } while (--max_count); in bcm_uart_do_rx()
316 unsigned int val, max_count; in bcm_uart_do_tx() local
336 max_count = port->fifosize - val; in bcm_uart_do_tx()
338 while (max_count--) { in bcm_uart_do_tx()
Detraxfs-uart.c450 int max_count; in transmit_chars_no_dma() local
471 max_count = 64; in transmit_chars_no_dma()
482 } while ((--max_count > 0) && rstat.tr_rdy); in transmit_chars_no_dma()
494 int max_count = 16; in receive_chars_no_dma() local
535 } while (rstat.dav && (max_count-- > 0)); in receive_chars_no_dma()
Dvr41xx_siu.c318 int max_count = RX_MAX_COUNT; in receive_chars() local
364 } while ((lsr & UART_LSR_DR) && (max_count-- > 0)); in receive_chars()
393 int max_count = TX_MAX_COUNT; in transmit_chars() local
415 } while (max_count-- > 0); in transmit_chars()
D21285.c84 unsigned int status, ch, flag, rxs, max_count = 256; in serial21285_rx_chars() local
87 while (!(status & 0x10) && max_count--) { in serial21285_rx_chars()
/drivers/net/ethernet/qlogic/qed/
Dqed_cxt.c115 u32 max_count; member
402 p_mngr->acquired[type].max_count = 0; in qed_cid_map_free()
427 p_mngr->acquired[type].max_count = cid_cnt; in qed_cid_map_alloc()
435 p_mngr->acquired[type].max_count); in qed_cid_map_alloc()
729 p_mngr->acquired[type].max_count); in qed_cxt_acquire_cid()
731 if (rel_cid >= p_mngr->acquired[type].max_count) { in qed_cxt_acquire_cid()
760 cid < p_map->start_cid + p_map->max_count) in qed_cxt_test_cid_acquired()
/drivers/scsi/lpfc/
Dlpfc_mem.c120 pool->max_count = 0; in lpfc_mem_alloc()
127 pool->max_count++; in lpfc_mem_alloc()
399 if (pool->current_count < pool->max_count) { in __lpfc_mbuf_free()
/drivers/staging/fsl-mc/include/
Dmc-private.h69 int16_t max_count; member
/drivers/acpi/acpica/
Ddbtest.c893 info.max_count = ACPI_UINT32_MAX; in acpi_db_evaluate_all_predefined_names()
896 info.max_count = strtoul(count_arg, NULL, 0); in acpi_db_evaluate_all_predefined_names()
1052 if (info->count >= info->max_count) { in acpi_db_evaluate_one_predefined_name()
Dacdebug.h72 u32 max_count; member
/drivers/s390/char/
Dtape_3590.h161 __u8 max_count; member
/drivers/staging/vt6655/
Ddevice_main.c960 int max_count = 0; in vnt_interrupt_process() local
1031 max_count += device_rx_srv(priv, TYPE_RXDMA0); in vnt_interrupt_process()
1034 max_count += device_rx_srv(priv, TYPE_RXDMA1); in vnt_interrupt_process()
1037 max_count += device_tx_srv(priv, TYPE_TXDMA0); in vnt_interrupt_process()
1040 max_count += device_tx_srv(priv, TYPE_AC0DMA); in vnt_interrupt_process()
1058 if (max_count > priv->opts.int_works) in vnt_interrupt_process()
/drivers/char/tpm/
Dtpm_i2c_infineon.c174 unsigned int sleep_hi, u8 max_count) in iic_tpm_write_generic() argument
202 for (count = 0; count < max_count; count++) { in iic_tpm_write_generic()
/drivers/s390/crypto/
Dap_bus.c1560 int count, max_count, best_domain; in ap_select_domain() local
1573 max_count = 0; in ap_select_domain()
1586 if (count > max_count) { in ap_select_domain()
1587 max_count = count; in ap_select_domain()

12