/kernel/linux/linux-5.10/drivers/bus/fsl-mc/ |
H 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() 121 if (res_pool->max_count <= 0) in fsl_mc_resource_pool_remove_device() 124 res_pool->free_count > res_pool->max_count) in fsl_mc_resource_pool_remove_device() 141 res_pool->max_count--; in fsl_mc_resource_pool_remove_device() 212 res_pool->free_count > res_pool->max_count) in fsl_mc_resource_allocate() 237 res_pool->free_count >= res_pool->max_count) in fsl_mc_resource_free() 401 res_pool->max_count = irq_count; in fsl_mc_populate_irq_pool() 425 if (res_pool->max_count in fsl_mc_cleanup_irq_pool() [all...] |
/kernel/linux/linux-6.6/drivers/bus/fsl-mc/ |
H 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() 124 dev_err(&mc_bus_dev->dev, "max_count underflow\n"); 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() 243 res_pool->free_count >= res_pool->max_count) in fsl_mc_resource_free() 402 res_pool->max_count in fsl_mc_populate_irq_pool() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/ |
H A D | octeon_droq.c | 127 droq->max_empty_descs = droq->max_count - droq->max_empty_descs; in octeon_droq_compute_max_packet_bufs() 146 for (i = 0; i < droq->max_count; i++) { in octeon_droq_destroy_ring_buffers() 174 for (i = 0; i < droq->max_count; i++) { in octeon_droq_setup_ring_buffers() 208 lio_dma_free(oct, (droq->max_count * OCT_DROQ_DESC_SIZE), in octeon_delete_droq() 265 droq->max_count = c_num_descs; in octeon_init_droq() 268 desc_ring_size = droq->max_count * OCT_DROQ_DESC_SIZE; in octeon_init_droq() 281 droq->max_count); in octeon_init_droq() 283 droq->recv_buf_list = vzalloc_node(array_size(droq->max_count, OCT_DROQ_RECVBUF_SIZE), in octeon_init_droq() 286 droq->recv_buf_list = vzalloc(array_size(droq->max_count, OCT_DROQ_RECVBUF_SIZE)); in octeon_init_droq() 376 idx = incr_index(idx, 1, droq->max_count); in octeon_create_recv_info() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/cavium/liquidio/ |
H A D | octeon_droq.c | 128 droq->max_empty_descs = droq->max_count - droq->max_empty_descs; in octeon_droq_compute_max_packet_bufs() 147 for (i = 0; i < droq->max_count; i++) { in octeon_droq_destroy_ring_buffers() 175 for (i = 0; i < droq->max_count; i++) { in octeon_droq_setup_ring_buffers() 209 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() 285 droq->recv_buf_list = vzalloc_node(array_size(droq->max_count, OCT_DROQ_RECVBUF_SIZE), in octeon_init_droq() 288 droq->recv_buf_list = vzalloc(array_size(droq->max_count, OCT_DROQ_RECVBUF_SIZE)); in octeon_init_droq() 378 idx = incr_index(idx, 1, droq->max_count); in octeon_create_recv_info() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeon_ep/ |
H 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() 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() 161 oq->buff_info = vcalloc(oq->max_count, OCTEP_OQ_RECVBUF_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() [all...] |
H A D | octep_tx.c | 53 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()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
H A D | blacklist.c | 126 int max_count = 0; in wpa_blacklist_clear() local 131 if (e->count > max_count) in wpa_blacklist_clear() 132 max_count = e->count; in wpa_blacklist_clear() 140 wpa_s->extra_blacklist_count += max_count; in wpa_blacklist_clear()
|
/third_party/python/Lib/email/ |
H A D | headerregistry.py | 185 The subclass should also make sure that a 'max_count' attribute is defined 262 max_count = None variable in UnstructuredHeader 273 max_count = 1 variable in UniqueUnstructuredHeader 287 max_count = None variable in DateHeader 324 max_count = 1 variable in UniqueDateHeader 329 max_count = None variable in AddressHeader 384 max_count = 1 variable in UniqueAddressHeader 399 max_count = 1 variable in UniqueSingleAddressHeader 404 max_count = 1 variable in MIMEVersionHeader 444 max_count variable in ParameterizedMIMEHeader 506 max_count = 1 global() variable in ContentTransferEncodingHeader 527 max_count = 1 global() variable in MessageIDHeader [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtlwifi/rtl8723com/ |
H A D | fw_common.c | 118 int max_count) in rtl8723_fw_free_to_go() 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() 211 err = rtl8723_fw_free_to_go(hw, is_8723be, max_count); in rtl8723_download_fw() 117 rtl8723_fw_free_to_go(struct ieee80211_hw *hw, bool is_8723be, int max_count) rtl8723_fw_free_to_go() argument 165 rtl8723_download_fw(struct ieee80211_hw *hw, bool is_8723be, int max_count) rtl8723_download_fw() argument
|
/third_party/libwebsockets/lib/misc/ |
H A D | lws-ring.c | 157 lws_ring_insert(struct lws_ring *ring, const void *src, size_t max_count) in lws_ring_insert() argument 167 if ((uint32_t)n > max_count * ring->element_len) in lws_ring_insert() 168 n = (int)(max_count * ring->element_len); in lws_ring_insert() 200 size_t max_count) in lws_ring_consume() 217 if ((size_t)n > max_count * ring->element_len) in lws_ring_consume() 218 n = (int)(max_count * ring->element_len); in lws_ring_consume() 199 lws_ring_consume(struct lws_ring *ring, uint32_t *tail, void *dest, size_t max_count) lws_ring_consume() argument
|
/kernel/linux/linux-5.10/lib/ |
H A D | test_strscpy.c | 34 int max_count; in tc() local 49 max_count = sizeof(buf) - 2; /* Space for null and to verify overflow */ in tc() 51 if (count > max_count) { in tc() 52 pr_err("count (%d) is too big (%d) ... aborting", count, max_count); in tc()
|
/kernel/linux/linux-6.6/lib/ |
H A D | strscpy_kunit.c | 30 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()
|
/third_party/skia/third_party/externals/expat/expat/tests/ |
H A D | structdata.c | 70 storage->max_count = 0; in StructData_Init() 81 if (storage->count == storage->max_count) { in StructData_AddItem() 84 storage->max_count += STRUCT_EXTENSION_COUNT; in StructData_AddItem() 86 storage->max_count * sizeof(StructDataEntry)); in StructData_AddItem()
|
/kernel/linux/linux-5.10/scripts/dtc/libfdt/ |
H A D | libfdt_env.h | 79 * fdt_strnlen: returns the length of a string or max_count - which ever is 82 * Input 2 max_count: the maximum value returned by this function 83 * Output: length of the string or max_count (the smallest of the two) 85 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()
|
/kernel/linux/linux-6.6/scripts/dtc/libfdt/ |
H A D | libfdt_env.h | 79 * fdt_strnlen: returns the length of a string or max_count - which ever is 82 * Input 2 max_count: the maximum value returned by this function 83 * Output: length of the string or max_count (the smallest of the two) 85 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()
|
/kernel/linux/linux-6.6/drivers/iio/adc/ |
H 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(*tx_buf) * max_count > PAGE_SIZE) in tsc2046_adc_read_one() 293 tx_buf = kcalloc(max_count, sizeof(*tx_buf), GFP_KERNEL); in tsc2046_adc_read_one() 297 rx_buf = kcalloc(max_count, sizeof(*rx_buf), GFP_KERNEL); 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() 340 ret = DIV_ROUND_UP(val_normalized, max_count in tsc2046_adc_read_one() 356 unsigned int max_count, count_skip; tsc2046_adc_group_set_layout() local [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8723com/ |
H A D | fw_common.c | 118 int max_count) in rtl8723_fw_free_to_go() 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() 211 err = rtl8723_fw_free_to_go(hw, is_8723be, max_count); in rtl8723_download_fw() 117 rtl8723_fw_free_to_go(struct ieee80211_hw *hw, bool is_8723be, int max_count) rtl8723_fw_free_to_go() argument 165 rtl8723_download_fw(struct ieee80211_hw *hw, bool is_8723be, int max_count) rtl8723_download_fw() argument
|
/third_party/ffmpeg/libavfilter/ |
H A D | af_astats.c | 78 uint64_t min_count, max_count; member 176 p->max_count = 0; in reset_stats() 290 p->max_count = 1; in update_stat() 292 p->max_count++; in update_stat() 398 uint64_t mask = 0, imask = 0xFFFFFFFFFFFFFFFF, min_count = 0, max_count = 0, nb_samples = 0, noise_floor_count = 0; in set_metadata() local 436 max_count += p->max_count; in set_metadata() 473 set_meta(metadata, c + 1, "Flat_factor", "%f", LINEAR_TO_DB((p->min_runs + p->max_runs) / (p->min_count + p->max_count))); in set_metadata() 475 set_meta(metadata, c + 1, "Peak_count", "%f", (float)(p->min_count + p->max_count)); in set_metadata() 524 set_meta(metadata, 0, "Overall.Flat_factor", "%f", LINEAR_TO_DB((min_runs + max_runs) / (min_count + max_count))); in set_metadata() 652 uint64_t mask = 0, imask = 0xFFFFFFFFFFFFFFFF, min_count = 0, max_count = 0, nb_samples = 0, noise_floor_count = 0; print_stats() local [all...] |
/kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/ |
H 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() [all...] |
/kernel/linux/linux-6.6/drivers/media/usb/pvrusb2/ |
H 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() [all...] |
/kernel/linux/linux-5.10/lib/zlib_deflate/ |
H A D | deftree.c | 583 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() 637 if (++count < max_count && curlen == nextlen) { in send_tree() 657 max_count in send_tree() [all...] |
/kernel/linux/linux-6.6/lib/zlib_deflate/ |
H A D | deftree.c | 583 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() 637 if (++count < max_count && curlen == nextlen) { in send_tree() 657 max_count in send_tree() [all...] |
/third_party/mesa3d/src/gallium/drivers/vc4/ |
H A D | vc4_qir_lower_uniforms.c | 137 uint32_t max_count = 0; in qir_lower_uniforms() local 142 if (count > max_count) { in qir_lower_uniforms() 143 max_count = count; in qir_lower_uniforms()
|
/third_party/curl/tests/libtest/ |
H A D | lib582.c | 38 int max_count; /* max number of sockets that fit in allocated array */ member 84 sockets->max_count = 20; in addFd() 86 else if(sockets->count + 1 > sockets->max_count) { in addFd() 89 (sockets->max_count + 20)); in addFd() 95 sockets->max_count += 20; in addFd()
|
H A D | lib530.c | 45 int max_count; /* max number of sockets that fit in allocated array */ member 92 sockets->max_count = 20; in addFd() 94 else if(sockets->count + 1 > sockets->max_count) { in addFd() 96 (sockets->max_count + 20)); in addFd() 101 sockets->max_count += 20; in addFd()
|