| /drivers/net/ethernet/marvell/octeon_ep_vf/ |
| A D | octep_vf_rx.c | 38 for (i = 0; i < oq->max_count; i++) { in octep_vf_oq_fill_ring_buffers() 106 if (refill_idx == oq->max_count) in octep_vf_oq_refill() 138 oq->max_count = CFG_GET_OQ_NUM_DESC(oct->conf); in octep_vf_setup_oq() 139 oq->ring_size_mask = oq->max_count - 1; in octep_vf_setup_oq() 152 desc_ring_size = oq->max_count * OCTEP_VF_OQ_DESC_SIZE; in octep_vf_setup_oq() 208 for (i = 0; i < oq->max_count; i++) { in octep_vf_oq_free_ring_buffers() 238 oq->max_count * OCTEP_VF_OQ_DESC_SIZE, in octep_vf_free_oq() 289 writel(oct->oq[i]->max_count, oct->oq[i]->pkts_credit_reg); in octep_vf_oq_dbell_init() 406 if (read_idx == oq->max_count) in __octep_vf_oq_process_rx() 420 if (read_idx == oq->max_count) in __octep_vf_oq_process_rx() [all …]
|
| A D | octep_vf_tx.c | 53 if (unlikely(fi == iq->max_count)) in octep_vf_iq_process_completions() 115 if (unlikely(fi == iq->max_count)) in octep_vf_iq_free_pending() 190 iq->max_count = CFG_GET_IQ_NUM_DESC(oct->conf); in octep_vf_setup_iq() 191 iq->ring_size_mask = iq->max_count - 1; in octep_vf_setup_iq() 218 buff_info_size = OCTEP_VF_IQ_TXBUFF_INFO_SIZE * iq->max_count; in octep_vf_setup_iq()
|
| A D | octep_vf_cn9k.c | 182 octep_vf_write_csr64(oct, CN93_VF_SDP_R_IN_INSTR_RSIZE(iq_no), iq->max_count); in octep_vf_setup_iq_regs_cn93() 228 octep_vf_write_csr64(oct, CN93_VF_SDP_R_OUT_SLIST_RSIZE(oq_no), oq->max_count); in octep_vf_setup_oq_regs_cn93() 305 writel(oct->oq[i]->max_count, oct->oq[i]->pkts_credit_reg); in octep_vf_reinit_regs_cn93() 360 new_idx = (iq->octep_vf_read_index + last_done) % iq->max_count; in octep_vf_update_iq_read_index_cn93()
|
| A D | octep_vf_cnxk.c | 185 octep_vf_write_csr64(oct, CNXK_VF_SDP_R_IN_INSTR_RSIZE(iq_no), iq->max_count); in octep_vf_setup_iq_regs_cnxk() 231 octep_vf_write_csr64(oct, CNXK_VF_SDP_R_OUT_SLIST_RSIZE(oq_no), oq->max_count); in octep_vf_setup_oq_regs_cnxk() 316 writel(oct->oq[i]->max_count, oct->oq[i]->pkts_credit_reg); in octep_vf_reinit_regs_cnxk() 371 new_idx = (iq->octep_vf_read_index + last_done) % iq->max_count; in octep_vf_update_iq_read_index_cnxk()
|
| /drivers/bus/fsl-mc/ |
| A D | fsl-mc-allocator.c | 57 if (res_pool->max_count < 0) in fsl_mc_resource_pool_add_device() 60 res_pool->free_count > res_pool->max_count) in fsl_mc_resource_pool_add_device() 80 res_pool->max_count++; in fsl_mc_resource_pool_add_device() 123 if (res_pool->max_count <= 0) { in fsl_mc_resource_pool_remove_device() 128 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() 218 res_pool->free_count > res_pool->max_count) in fsl_mc_resource_allocate() 402 res_pool->max_count = irq_count; in fsl_mc_populate_irq_pool() 426 if (res_pool->max_count == 0) in fsl_mc_cleanup_irq_pool() 433 res_pool->max_count = 0; in fsl_mc_cleanup_irq_pool() [all …]
|
| /drivers/net/ethernet/cavium/liquidio/ |
| A D | octeon_droq.c | 142 for (i = 0; i < droq->max_count; i++) { in octeon_droq_destroy_ring_buffers() 262 droq->max_count = c_num_descs; in octeon_init_droq() 278 droq->max_count); in octeon_init_droq() 406 droq->max_count); in octeon_droq_refill_pullup_descs() 474 droq->max_count); in octeon_droq_refill() 584 droq->max_count); in octeon_droq_drop_packets() 631 buf_cnt, droq->max_count); in octeon_droq_fast_process_packets() 646 droq->max_count); in octeon_droq_fast_process_packets() 680 droq->max_count); in octeon_droq_fast_process_packets() 788 if (budget > droq->max_count) in octeon_droq_process_poll_pkts() [all …]
|
| A D | request_manager.c | 84 iq->max_count = num_descs; in octeon_init_instr_queue() 101 iq_no, iq->base_addr, &iq->base_addr_dma, iq->max_count); in octeon_init_instr_queue() 177 q_size = iq->max_count * desc_size; in octeon_delete_instr_queue() 310 if (atomic_read(&iq->instr_pending) >= (s32)(iq->max_count - 1)) { in __post_command2() 316 if (atomic_read(&iq->instr_pending) >= (s32)(iq->max_count - 2)) in __post_command2() 324 iq->max_count); in __post_command2() 421 old = incr_index(old, 1, iq->max_count); in lio_process_iq_request_list()
|
| /drivers/iio/adc/ |
| A D | ti-tsc2046.c | 278 int ret, i, count_skip = 0, max_count; in tsc2046_adc_read_one() local 285 max_count = count_skip + ch->oversampling_ratio; in tsc2046_adc_read_one() 287 max_count = 1; in tsc2046_adc_read_one() 290 if (sizeof(struct tsc2046_adc_atom) * max_count > PAGE_SIZE) in tsc2046_adc_read_one() 311 for (i = 0; i < max_count - 1; i++) in tsc2046_adc_read_one() 319 xfer.len = sizeof(*tx_buf) * max_count; in tsc2046_adc_read_one() 336 for (i = 0; i < max_count - count_skip; i++) { in tsc2046_adc_read_one() 350 unsigned int max_count, count_skip; in tsc2046_adc_group_set_layout() local 357 max_count = count_skip + ch->oversampling_ratio; in tsc2046_adc_group_set_layout() 361 cur->count = max_count; in tsc2046_adc_group_set_layout() [all …]
|
| /drivers/net/ethernet/marvell/octeon_ep/ |
| A D | octep_rx.c | 38 for (i = 0; i < oq->max_count; i++) { in octep_oq_fill_ring_buffers() 106 if (refill_idx == oq->max_count) in octep_oq_refill() 138 oq->max_count = CFG_GET_OQ_NUM_DESC(oct->conf); in octep_setup_oq() 139 oq->ring_size_mask = oq->max_count - 1; in octep_setup_oq() 152 desc_ring_size = oq->max_count * OCTEP_OQ_DESC_SIZE; in octep_setup_oq() 162 oq->buff_info = vcalloc(oq->max_count, OCTEP_OQ_RECVBUF_SIZE); in octep_setup_oq() 207 for (i = 0; i < oq->max_count; i++) { in octep_oq_free_ring_buffers() 237 oq->max_count * OCTEP_OQ_DESC_SIZE, in octep_free_oq() 288 writel(oct->oq[i]->max_count, oct->oq[i]->pkts_credit_reg); in octep_oq_dbell_init() 360 if (*read_idx == oq->max_count) in octep_oq_next_pkt()
|
| A D | octep_tx.c | 52 if (unlikely(fi == iq->max_count)) in octep_iq_process_completions() 116 if (unlikely(fi == iq->max_count)) in octep_iq_free_pending() 191 iq->max_count = CFG_GET_IQ_NUM_DESC(oct->conf); in octep_setup_iq() 192 iq->ring_size_mask = iq->max_count - 1; in octep_setup_iq() 219 buff_info_size = OCTEP_IQ_TXBUFF_INFO_SIZE * iq->max_count; in octep_setup_iq()
|
| /drivers/net/wireless/realtek/rtlwifi/rtl8723com/ |
| A D | fw_common.c | 118 int max_count) in rtl8723_fw_free_to_go() argument 127 } while ((counter++ < max_count) && in rtl8723_fw_free_to_go() 130 if (counter >= max_count) { in rtl8723_fw_free_to_go() 155 } while (counter++ < max_count); in rtl8723_fw_free_to_go() 166 bool is_8723be, int max_count) in rtl8723_download_fw() argument 211 err = rtl8723_fw_free_to_go(hw, is_8723be, max_count); in rtl8723_download_fw()
|
| /drivers/media/usb/pvrusb2/ |
| A D | pvrusb2-io.c | 79 unsigned int max_count; /* Size of storage area */ member 125 ccnt = bp->max_count; in pvr2_buffer_remove() 130 ccnt = bp->max_count; in pvr2_buffer_remove() 208 sp->i_bcount += bp->max_count; in pvr2_buffer_set_idle() 232 sp->q_bcount += bp->max_count; in pvr2_buffer_set_queued() 609 for (idx = 0; idx < (bp->max_count) / 4; idx++) { in pvr2_buffer_queue() 621 bp->max_count, // int buffer_length in pvr2_buffer_queue() 644 bp->stream->i_bcount -= bp->max_count; in pvr2_buffer_set_buffer() 645 bp->max_count = cnt; in pvr2_buffer_set_buffer() 646 bp->stream->i_bcount += bp->max_count; in pvr2_buffer_set_buffer()
|
| /drivers/net/wireless/ath/ |
| A D | dfs_pri_detector.c | 219 if (pde->count >= pde->max_count) in pulse_queue_enqueue() 306 u32 max_count = 0; in pseq_handler_add_to_existing_seqs() local 326 if (max_count < ps->count) in pseq_handler_add_to_existing_seqs() 327 max_count = ps->count; in pseq_handler_add_to_existing_seqs() 332 return max_count; in pseq_handler_add_to_existing_seqs() 431 de->max_count = rs->ppb * 2; in pri_detector_init()
|
| A D | dfs_pri_detector.h | 72 u32 max_count; member
|
| /drivers/iio/imu/inv_icm42600/ |
| A D | inv_icm42600_buffer.c | 458 size_t max_count; in inv_icm42600_buffer_fifo_read() local 474 max_count = sizeof(st->fifo.data); in inv_icm42600_buffer_fifo_read() 476 max_count = max * inv_icm42600_get_packet_size(st->fifo.en); in inv_icm42600_buffer_fifo_read() 489 if (st->fifo.count > max_count) in inv_icm42600_buffer_fifo_read() 490 st->fifo.count = max_count; in inv_icm42600_buffer_fifo_read()
|
| /drivers/net/ethernet/qlogic/qed/ |
| A D | qed_rdma.c | 39 struct qed_bmap *bmap, u32 max_count, char *name) in qed_rdma_bmap_alloc() argument 43 bmap->max_count = max_count; in qed_rdma_bmap_alloc() 45 bmap->bitmap = bitmap_zalloc(max_count, GFP_KERNEL); in qed_rdma_bmap_alloc() 59 if (*id_num >= bmap->max_count) in qed_rdma_bmap_alloc_id() 73 if (id_num >= bmap->max_count) in qed_bmap_set_id() 84 if (id_num >= bmap->max_count) in qed_bmap_release_id() 101 if (id_num >= bmap->max_count) in qed_bmap_test_id() 109 return bitmap_empty(bmap->bitmap, bmap->max_count); in qed_bmap_is_empty() 333 bmap->name, bmap->max_count, weight); in qed_rdma_bmap_free() 335 for (bit = 0; bit < bmap->max_count; bit += 512) { in qed_rdma_bmap_free() [all …]
|
| A D | qed_rdma.h | 53 u32 max_count; member 189 struct qed_bmap *bmap, u32 max_count, char *name);
|
| /drivers/acpi/acpica/ |
| A D | dbmethod.c | 476 if (info->count >= info->max_count) { in acpi_db_walk_for_execute() 547 info.max_count = ACPI_UINT32_MAX; in acpi_db_evaluate_predefined_names() 578 info.max_count = ACPI_UINT32_MAX; in acpi_db_evaluate_all()
|
| /drivers/ptp/ |
| A D | ptp_vmclock.c | 385 size_t max_count; in vmclock_miscdev_read() local 391 max_count = PAGE_SIZE - *ppos; in vmclock_miscdev_read() 392 if (count > max_count) in vmclock_miscdev_read() 393 count = max_count; in vmclock_miscdev_read()
|
| /drivers/misc/ocxl/ |
| A D | core.c | 359 int rc, desired_count, max_count; in set_function_pasid() local 365 rc = ocxl_config_get_pasid_info(dev, &max_count); in set_function_pasid() 371 if (desired_count > max_count) { in set_function_pasid() 374 desired_count, max_count); in set_function_pasid()
|
| /drivers/dma/idxd/ |
| A D | perfmon.c | 60 int n, max_count; in perfmon_collect_events() local 62 max_count = idxd_pmu->n_counters; in perfmon_collect_events() 65 if (n >= max_count) in perfmon_collect_events() 82 if (n >= max_count) in perfmon_collect_events()
|
| /drivers/tty/serial/ |
| A D | pic32_uart.c | 269 unsigned int max_count; in pic32_uart_do_rx() local 275 max_count = PIC32_UART_RX_FIFO_DEPTH; in pic32_uart_do_rx() 332 } while (--max_count); in pic32_uart_do_rx() 346 unsigned int max_count = PIC32_UART_TX_FIFO_DEPTH; in pic32_uart_do_tx() local 380 if (--max_count == 0) in pic32_uart_do_tx()
|
| /drivers/gpu/drm/amd/amdgpu/ |
| A D | amdgpu_aca.c | 140 int i, max_count, ret; in aca_smu_get_valid_aca_banks() local 150 max_count = smu_funcs->max_ue_bank_count; in aca_smu_get_valid_aca_banks() 153 max_count = smu_funcs->max_ce_bank_count; in aca_smu_get_valid_aca_banks() 159 if (start + count > max_count) in aca_smu_get_valid_aca_banks() 162 count = min_t(int, count, max_count); in aca_smu_get_valid_aca_banks()
|
| /drivers/input/touchscreen/ |
| A D | ads7846.c | 1073 unsigned int max_count; in ads7846_setup_spi_msg() local 1079 max_count = packet->count + packet->count_skip; in ads7846_setup_spi_msg() 1081 max_count = packet->count; in ads7846_setup_spi_msg() 1084 offset += max_count; in ads7846_setup_spi_msg() 1085 l->count = max_count; in ads7846_setup_spi_msg() 1087 size += sizeof(*packet->tx) * max_count; in ads7846_setup_spi_msg()
|
| /drivers/i3c/master/mipi-i3c-hci/ |
| A D | ext_caps.c | 119 unsigned int max_count = FIELD_GET(GENMASK(3, 0), autocmd_ext_caps); in hci_extcap_auto_command() local 124 count, max_count); in hci_extcap_auto_command()
|