Home
last modified time | relevance | path

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

12345

/openbmc/linux/drivers/net/ethernet/marvell/octeon_ep/
H A Doctep_rx.c38 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()
137 oq->max_count = CFG_GET_OQ_NUM_DESC(oct->conf); in octep_setup_oq()
138 oq->ring_size_mask = oq->max_count - 1; in octep_setup_oq()
151 desc_ring_size = oq->max_count * OCTEP_OQ_DESC_SIZE; in octep_setup_oq()
206 for (i = 0; i < oq->max_count; i++) { in octep_oq_free_ring_buffers()
236 oq->max_count * OCTEP_OQ_DESC_SIZE, in octep_free_oq()
287 writel(oct->oq[i]->max_count, oct->oq[i]->pkts_credit_reg); in octep_oq_dbell_init()
401 if (read_idx == oq->max_count) in __octep_oq_process_rx()
415 if (read_idx == oq->max_count) in __octep_oq_process_rx()
[all …]
H A Doctep_tx.c53 if (unlikely(fi == iq->max_count)) in octep_iq_process_completions()
94 ((iq->max_count - atomic_read(&iq->instr_pending)) > in octep_iq_process_completions()
118 if (unlikely(fi == iq->max_count)) in octep_iq_free_pending()
193 iq->max_count = CFG_GET_IQ_NUM_DESC(oct->conf); in octep_setup_iq()
194 iq->ring_size_mask = iq->max_count - 1; in octep_setup_iq()
221 buff_info_size = OCTEP_IQ_TXBUFF_INFO_SIZE * iq->max_count; in octep_setup_iq()
/openbmc/linux/drivers/bus/fsl-mc/
H A Dfsl-mc-allocator.c57 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 …]
/openbmc/linux/drivers/net/ethernet/cavium/liquidio/
H A Docteon_droq.c147 for (i = 0; i < droq->max_count; i++) { in octeon_droq_destroy_ring_buffers()
267 droq->max_count = c_num_descs; in octeon_init_droq()
283 droq->max_count); in octeon_init_droq()
411 droq->max_count); in octeon_droq_refill_pullup_descs()
479 droq->max_count); in octeon_droq_refill()
589 droq->max_count); in octeon_droq_drop_packets()
636 buf_cnt, droq->max_count); in octeon_droq_fast_process_packets()
651 droq->max_count); in octeon_droq_fast_process_packets()
685 droq->max_count); in octeon_droq_fast_process_packets()
793 if (budget > droq->max_count) in octeon_droq_process_poll_pkts()
[all …]
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723com/
H A Dfw_common.c118 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()
/openbmc/linux/lib/
H A Dstrscpy_kunit.c30 int max_count; in tc() local
41 max_count = sizeof(buf) - 2; /* Space for null and to verify overflow */ in tc()
44 KUNIT_ASSERT_LE_MSG(test, count, max_count, in tc()
45 "count (%d) is too big (%d) ... aborting", count, max_count); in tc()
/openbmc/linux/drivers/iio/adc/
H A Dti-tsc2046.c278 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(*tx_buf) * max_count > PAGE_SIZE) in tsc2046_adc_read_one()
309 for (i = 0; i < max_count - 1; i++) in tsc2046_adc_read_one()
318 xfer.len = sizeof(*tx_buf) * max_count; in tsc2046_adc_read_one()
335 for (i = 0; i < max_count - count_skip; i++) { in tsc2046_adc_read_one()
356 unsigned int max_count, count_skip; in tsc2046_adc_group_set_layout() local
363 max_count = count_skip + ch->oversampling_ratio; in tsc2046_adc_group_set_layout()
367 cur->count = max_count; in tsc2046_adc_group_set_layout()
[all …]
/openbmc/linux/scripts/dtc/libfdt/
H A Dlibfdt_env.h85 static inline size_t fdt_strnlen(const char *string, size_t max_count) in fdt_strnlen() argument
87 const char *p = memchr(string, 0, max_count); in fdt_strnlen()
88 return p ? p - string : max_count; in fdt_strnlen()
/openbmc/u-boot/scripts/dtc/libfdt/
H A Dlibfdt_env.h128 static inline size_t fdt_strnlen(const char *string, size_t max_count) in fdt_strnlen() argument
130 const char *p = memchr(string, 0, max_count); in fdt_strnlen()
131 return p ? p - string : max_count; in fdt_strnlen()
/openbmc/u-boot/board/alliedtelesis/common/
H A Dgpio_hog.c12 int gpio_hog_list(struct gpio_desc *gpiod, int max_count, in gpio_hog_list() argument
26 gpio_name, gpiod, max_count, in gpio_hog_list()
H A Dgpio_hog.h6 int gpio_hog_list(struct gpio_desc *gpiod, int max_count, const char *node_name,
/openbmc/linux/drivers/media/usb/pvrusb2/
H A Dpvrusb2-io.c79 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()
/openbmc/linux/drivers/net/wireless/ath/
H A Ddfs_pri_detector.c219 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()
H A Ddfs_pri_detector.h72 u32 max_count; member
/openbmc/linux/lib/zlib_deflate/
H A Ddeftree.c583 int max_count = 7; /* max repeat count */ in scan_tree() local
586 if (nextlen == 0) max_count = 138, min_count = 3; in scan_tree()
591 if (++count < max_count && curlen == nextlen) { in scan_tree()
605 max_count = 138, min_count = 3; in scan_tree()
607 max_count = 6, min_count = 3; in scan_tree()
609 max_count = 7, min_count = 4; in scan_tree()
629 int max_count = 7; /* max repeat count */ in send_tree() local
633 if (nextlen == 0) max_count = 138, min_count = 3; in send_tree()
657 max_count = 138, min_count = 3; in send_tree()
659 max_count = 6, min_count = 3; in send_tree()
[all …]
/openbmc/qemu/scripts/
H A Danalyse-9p-simpletrace.py135 def v9fs_read(self, tag, id, fid, off, max_count): argument
136 … print("TREAD (tag =", tag, ", fid =", fid, ", off =", off, ", max_count =", max_count, ")")
141 def v9fs_readdir(self, tag, id, fid, offset, max_count): argument
142 …rint("TREADDIR (tag =", tag, ", fid =", fid, ", offset =", offset, ", max_count =", max_count, ")")
/openbmc/u-boot/lib/zlib/
H A Dtrees.c721 int max_count = 7; /* max repeat count */ local
724 if (nextlen == 0) max_count = 138, min_count = 3;
729 if (++count < max_count && curlen == nextlen) {
743 max_count = 138, min_count = 3;
745 max_count = 6, min_count = 3;
747 max_count = 7, min_count = 4;
766 int max_count = 7; /* max repeat count */ local
770 if (nextlen == 0) max_count = 138, min_count = 3;
794 max_count = 138, min_count = 3;
796 max_count = 6, min_count = 3;
[all …]
/openbmc/linux/fs/nfs/
H A Ddirect.c92 if (dreq->max_count >= dreq_len) { in nfs_direct_handle_truncated()
93 dreq->max_count = dreq_len; in nfs_direct_handle_truncated()
114 if (dreq_len > dreq->max_count) in nfs_direct_count_bytes()
115 dreq_len = dreq->max_count; in nfs_direct_count_bytes()
127 if (req_start < dreq->max_count) in nfs_direct_truncate_request()
128 dreq->max_count = req_start; in nfs_direct_truncate_request()
211 return dreq->max_count - start; in nfs_dreq_bytes_left()
444 dreq->bytes_left = dreq->max_count = count; in nfs_file_direct_read()
991 dreq->bytes_left = dreq->max_count = count; in nfs_file_direct_write()
/openbmc/linux/drivers/iio/imu/inv_icm42600/
H A Dinv_icm42600_buffer.c450 size_t max_count; in inv_icm42600_buffer_fifo_read() local
466 max_count = sizeof(st->fifo.data); in inv_icm42600_buffer_fifo_read()
468 max_count = max * inv_icm42600_get_packet_size(st->fifo.en); in inv_icm42600_buffer_fifo_read()
481 if (st->fifo.count > max_count) in inv_icm42600_buffer_fifo_read()
482 st->fifo.count = max_count; in inv_icm42600_buffer_fifo_read()
/openbmc/u-boot/include/asm-generic/
H A Dgpio.h476 struct gpio_desc *desc_list, int max_count,
520 struct gpio_desc *desc_list, int max_count,
/openbmc/linux/drivers/acpi/acpica/
H A Ddbmethod.c476 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()
/openbmc/linux/sound/oss/dmasound/
H A Ddmasound_core.c480 sq->max_count = sq->numBufs ; in sq_setup()
513 sq->max_count = sq->user_frags ; in sq_setup()
515 sq->max_active = (sq->max_active <= sq->max_count) ? in sq_setup()
516 sq->max_active : sq->max_count ; in sq_setup()
521 sq->max_count = in sq_setup()
647 dest = write_sq.buffers[(write_sq.rear+1) % write_sq.max_count]; in sq_write()
658 write_sq.rear = (write_sq.rear+1) % write_sq.max_count; in sq_write()
1310 "write", write_sq.max_count, write_sq.block_size, in state_open()
/openbmc/u-boot/drivers/input/
H A Dcros_ec_keyb.c43 int max_count, bool *samep) in check_for_keys() argument
74 if ((data & mask) && num_keys < max_count) { in check_for_keys()
/openbmc/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_rdma.h53 u32 max_count; member
189 struct qed_bmap *bmap, u32 max_count, char *name);
/openbmc/linux/include/acpi/
H A Dactbl3.h600 u32 max_count; /* Maximum counter value supported */ member
670 u16 max_count; /* Maximum counter value supported */ member
712 u16 max_count; /* Maximum counter value supported */ member

12345