| /Linux-v5.4/drivers/bus/fsl-mc/ | 
| 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()
 395 	res_pool->max_count = irq_count;  in fsl_mc_populate_irq_pool()
 419 	if (res_pool->max_count == 0)  in fsl_mc_cleanup_irq_pool()
 [all …]
 
 | 
| /Linux-v5.4/drivers/net/ethernet/cavium/liquidio/ | 
| 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()
 284 	      vzalloc_node(array_size(droq->max_count, OCT_DROQ_RECVBUF_SIZE),  in octeon_init_droq()
 288 		      vzalloc(array_size(droq->max_count,  in octeon_init_droq()
 379 		idx = incr_index(idx, 1, droq->max_count);  in octeon_create_recv_info()
 [all …]
 
 | 
| D | request_manager.c | 93 	iq->max_count = num_descs;  in octeon_init_instr_queue()114 		iq_no, iq->base_addr, &iq->base_addr_dma, iq->max_count);  in octeon_init_instr_queue()
 190 		q_size = iq->max_count * desc_size;  in octeon_delete_instr_queue()
 320 	if (atomic_read(&iq->instr_pending) >= (s32)(iq->max_count - 1)) {  in __post_command2()
 326 	if (atomic_read(&iq->instr_pending) >= (s32)(iq->max_count - 2))  in __post_command2()
 334 					  iq->max_count);  in __post_command2()
 430 		old = incr_index(old, 1, iq->max_count);  in lio_process_iq_request_list()
 
 | 
| /Linux-v5.4/lib/ | 
| D | test_strscpy.c | 34 	int max_count;  in tc()  local49 	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()
 
 | 
| /Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/rtl8723com/ | 
| D | fw_common.c | 118 			  int max_count)  in rtl8723_fw_free_to_go()  argument127 	} 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()
 
 | 
| /Linux-v5.4/scripts/dtc/libfdt/ | 
| D | libfdt_env.h | 85 static inline size_t fdt_strnlen(const char *string, size_t max_count)  in fdt_strnlen()  argument87     const char *p = memchr(string, 0, max_count);  in fdt_strnlen()
 88     return p ? p - string : max_count;  in fdt_strnlen()
 
 | 
| /Linux-v5.4/drivers/media/usb/pvrusb2/ | 
| D | pvrusb2-io.c | 79 	unsigned int max_count;  /* Size of storage area */  member125 		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()
 
 | 
| /Linux-v5.4/drivers/net/wireless/ath/ | 
| D | dfs_pri_detector.c | 220 	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()
 
 | 
| D | dfs_pri_detector.h | 72 	u32 max_count;  member
 | 
| /Linux-v5.4/lib/zlib_deflate/ | 
| D | deftree.c | 637     int max_count = 7;         /* max repeat count */  in scan_tree()  local640     if (nextlen == 0) max_count = 138, min_count = 3;  in scan_tree()
 645         if (++count < max_count && curlen == nextlen) {  in scan_tree()
 659             max_count = 138, min_count = 3;  in scan_tree()
 661             max_count = 6, min_count = 3;  in scan_tree()
 663             max_count = 7, min_count = 4;  in scan_tree()
 683     int max_count = 7;         /* max repeat count */  in send_tree()  local
 687     if (nextlen == 0) max_count = 138, min_count = 3;  in send_tree()
 691         if (++count < max_count && curlen == nextlen) {  in send_tree()
 711             max_count = 138, min_count = 3;  in send_tree()
 [all …]
 
 | 
| /Linux-v5.4/fs/nfs/ | 
| D | direct.c | 82 				max_count,	/* max expected count */  member123 	if (dreq->max_count >= dreq_len) {  in nfs_direct_handle_truncated()
 124 		dreq->max_count = dreq_len;  in nfs_direct_handle_truncated()
 147 	if (dreq_len > dreq->max_count)  in nfs_direct_count_bytes()
 148 		dreq_len = dreq->max_count;  in nfs_direct_count_bytes()
 568 	dreq->bytes_left = dreq->max_count = count;  in nfs_file_direct_read()
 633 	dreq->max_count = 0;  in nfs_direct_write_reschedule()
 635 		dreq->max_count += req->wb_bytes;  in nfs_direct_write_reschedule()
 986 	dreq->bytes_left = dreq->max_count = count;  in nfs_file_direct_write()
 
 | 
| /Linux-v5.4/drivers/net/ethernet/qlogic/qed/ | 
| D | qed_rdma.c | 63 			struct qed_bmap *bmap, u32 max_count, char *name)  in qed_rdma_bmap_alloc()  argument65 	DP_VERBOSE(p_hwfn, QED_MSG_RDMA, "max_count = %08x\n", max_count);  in qed_rdma_bmap_alloc()
 67 	bmap->max_count = max_count;  in qed_rdma_bmap_alloc()
 69 	bmap->bitmap = kcalloc(BITS_TO_LONGS(max_count), sizeof(long),  in qed_rdma_bmap_alloc()
 83 	*id_num = find_first_zero_bit(bmap->bitmap, bmap->max_count);  in qed_rdma_bmap_alloc_id()
 84 	if (*id_num >= bmap->max_count)  in qed_rdma_bmap_alloc_id()
 98 	if (id_num >= bmap->max_count)  in qed_bmap_set_id()
 109 	if (id_num >= bmap->max_count)  in qed_bmap_release_id()
 126 	if (id_num >= bmap->max_count)  in qed_bmap_test_id()
 134 	return bmap->max_count == find_first_bit(bmap->bitmap, bmap->max_count);  in qed_bmap_is_empty()
 [all …]
 
 | 
| D | qed_rdma.h | 74 	u32 max_count;  member192 		    struct qed_bmap *bmap, u32 max_count, char *name);
 
 | 
| /Linux-v5.4/drivers/tty/serial/ | 
| D | bcm63xx_uart.c | 234 	unsigned int max_count;  in bcm_uart_do_rx()  local239 	max_count = 32;  in bcm_uart_do_rx()
 299 	} while (--max_count);  in bcm_uart_do_rx()
 313 	unsigned int val, max_count;  in bcm_uart_do_tx()  local
 333 	max_count = port->fifosize - val;  in bcm_uart_do_tx()
 335 	while (max_count--) {  in bcm_uart_do_tx()
 
 | 
| D | pic32_uart.c | 204 	unsigned int max_count;  in pic32_uart_do_rx()  local210 	max_count = PIC32_UART_RX_FIFO_DEPTH;  in pic32_uart_do_rx()
 267 	} while (--max_count);  in pic32_uart_do_rx()
 281 	unsigned int max_count = PIC32_UART_TX_FIFO_DEPTH;  in pic32_uart_do_tx()  local
 317 		if (--max_count == 0)  in pic32_uart_do_tx()
 
 | 
| /Linux-v5.4/sound/oss/dmasound/ | 
| D | dmasound_core.c | 484 		sq->max_count = sq->numBufs ;  in sq_setup()517 			sq->max_count = sq->user_frags ;  in sq_setup()
 519 			sq->max_active = (sq->max_active <= sq->max_count) ?  in sq_setup()
 520 				sq->max_active : sq->max_count ;  in sq_setup()
 525 			sq->max_count =  in sq_setup()
 651 		dest = write_sq.buffers[(write_sq.rear+1) % write_sq.max_count];  in sq_write()
 662 			write_sq.rear = (write_sq.rear+1) % write_sq.max_count;  in sq_write()
 1330 		"write", write_sq.max_count, write_sq.block_size,  in state_open()
 
 | 
| /Linux-v5.4/kernel/ | 
| D | hung_task.c | 175 	int max_count = sysctl_hung_task_check_count;  in check_hung_uninterruptible_tasks()  local189 		if (!max_count--)  in check_hung_uninterruptible_tasks()
 
 | 
| /Linux-v5.4/include/acpi/ | 
| D | actbl3.h | 540 	u32 max_count;		/* Maximum counter value supported */  member610 	u16 max_count;		/* Maximum counter value supported */  member
 652 	u16 max_count;		/* Maximum counter value supported */  member
 
 | 
| /Linux-v5.4/fs/omfs/ | 
| D | file.c | 124 	u32 max_count;  in omfs_grow_extent()  local155 	max_count = omfs_max_extents(sbi, OMFS_EXTENT_START);  in omfs_grow_extent()
 158 	if (be32_to_cpu(oe->e_extent_count) > max_count-1)  in omfs_grow_extent()
 
 | 
| /Linux-v5.4/drivers/misc/ocxl/ | 
| D | core.c | 364 	int rc, desired_count, max_count;  in set_function_pasid()  local370 	rc = ocxl_config_get_pasid_info(dev, &max_count);  in set_function_pasid()
 376 	if (desired_count > max_count) {  in set_function_pasid()
 379 			desired_count, max_count);  in set_function_pasid()
 
 | 
| /Linux-v5.4/drivers/infiniband/core/ | 
| D | uverbs_std_types_device.c | 63 	u64 max_count = out_len / sizeof(u32);  in gather_objects_handle()  local82 		if (count >= max_count)  in gather_objects_handle()
 
 | 
| /Linux-v5.4/drivers/acpi/acpica/ | 
| D | dbmethod.c | 433 	if (info->count >= info->max_count) {  in acpi_db_walk_for_execute()458 	info.max_count = ACPI_UINT32_MAX;  in acpi_db_evaluate_predefined_names()
 
 | 
| /Linux-v5.4/net/ipv6/ | 
| D | exthdrs.c | 115 			  int max_count)  in ip6_parse_tlv()  argument125 	if (unlikely(max_count < 0)) {  in ip6_parse_tlv()
 127 		max_count = -max_count;  in ip6_parse_tlv()
 172 			if (tlv_count > max_count)  in ip6_parse_tlv()
 
 | 
| /Linux-v5.4/arch/powerpc/perf/ | 
| D | core-fsl-emb.c | 264 static int collect_events(struct perf_event *group, int max_count,  in collect_events()  argument271 		if (n >= max_count)  in collect_events()
 279 			if (n >= max_count)  in collect_events()
 
 | 
| /Linux-v5.4/drivers/s390/char/ | 
| D | tape_3590.h | 162 	__u8 max_count;  member
 |