| /linux/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() 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 = irq_count; in fsl_mc_populate_irq_pool() 426 if (res_pool->max_count == 0) in fsl_mc_cleanup_irq_pool() [all …]
|
| /linux/drivers/net/ethernet/cavium/liquidio/ |
| H A D | octeon_droq.c | 123 droq->max_empty_descs = droq->max_count - droq->max_empty_descs; in octeon_droq_compute_max_packet_bufs() 142 for (i = 0; i < droq->max_count; i++) { in octeon_droq_destroy_ring_buffers() 170 for (i = 0; i < droq->max_count; i++) { in octeon_droq_setup_ring_buffers() 204 lio_dma_free(oct, (droq->max_count * OCT_DROQ_DESC_SIZE), in octeon_delete_droq() 262 droq->max_count = c_num_descs; in octeon_init_droq() 265 desc_ring_size = droq->max_count * OCT_DROQ_DESC_SIZE; in octeon_init_droq() 278 droq->max_count); in octeon_init_droq() 280 droq->recv_buf_list = vzalloc_node(array_size(droq->max_count, OCT_DROQ_RECVBUF_SIZE), in octeon_init_droq() 283 droq->recv_buf_list = vzalloc(array_size(droq->max_count, OCT_DROQ_RECVBUF_SIZE)); in octeon_init_droq() 373 idx = incr_index(idx, 1, droq->max_count); in octeon_create_recv_info() [all …]
|
| H 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()
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8723com/ |
| H 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()
|
| /linux/scripts/dtc/libfdt/ |
| H A D | libfdt_env.h | 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()
|
| /linux/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 = 138, min_count = 3; in send_tree() [all …]
|
| /linux/drivers/net/wireless/ath/ |
| H 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()
|
| H A D | dfs_pri_detector.h | 72 u32 max_count; member
|
| /linux/fs/nfs/ |
| H A D | direct.c | 93 if (dreq->max_count >= dreq_len) { in nfs_direct_handle_truncated() 94 dreq->max_count = dreq_len; in nfs_direct_handle_truncated() 115 if (dreq_len > dreq->max_count) in nfs_direct_count_bytes() 116 dreq_len = dreq->max_count; in nfs_direct_count_bytes() 128 if (req_start < dreq->max_count) in nfs_direct_truncate_request() 129 dreq->max_count = req_start; in nfs_direct_truncate_request() 224 return dreq->max_count - start; in nfs_dreq_bytes_left() 459 dreq->max_count = count; in nfs_file_direct_read() 1024 dreq->max_count = count; in nfs_file_direct_write()
|
| /linux/sound/oss/dmasound/ |
| H A D | dmasound_core.c | 480 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() 1309 "write", write_sq.max_count, write_sq.block_size, in state_open()
|
| /linux/drivers/acpi/acpica/ |
| H 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()
|
| /linux/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_rdma.c | 39 struct qed_bmap *bmap, u32 max_count, char *name) in qed_rdma_bmap_alloc() argument 41 DP_VERBOSE(p_hwfn, QED_MSG_RDMA, "max_count = %08x\n", max_count); in qed_rdma_bmap_alloc() 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() 58 *id_num = find_first_zero_bit(bmap->bitmap, bmap->max_count); in qed_rdma_bmap_alloc_id() 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() [all …]
|
| H A D | qed_rdma.h | 53 u32 max_count; member 189 struct qed_bmap *bmap, u32 max_count, char *name);
|
| /linux/drivers/ptp/ |
| H 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()
|
| /linux/include/acpi/ |
| H A D | actbl3.h | 621 u32 max_count; /* Maximum counter value supported */ member 691 u16 max_count; /* Maximum counter value supported */ member 733 u16 max_count; /* Maximum counter value supported */ member
|
| /linux/fs/omfs/ |
| H A D | file.c | 124 u32 max_count; in omfs_grow_extent() local 155 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/drivers/misc/ocxl/ |
| H 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()
|
| /linux/drivers/dma/idxd/ |
| H 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()
|
| /linux/drivers/net/ethernet/marvell/octeon_ep_vf/ |
| H 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()
|
| H 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()
|
| /linux/drivers/tty/serial/ |
| H 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()
|
| /linux/drivers/input/touchscreen/ |
| H 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()
|
| /linux/kernel/ |
| H A D | hung_task.c | 305 int max_count = sysctl_hung_task_check_count; in check_hung_uninterruptible_tasks() local 323 if (!max_count--) in check_hung_uninterruptible_tasks()
|
| /linux/fs/nilfs2/ |
| H A D | the_nilfs.c | 425 u64 max_count = U64_MAX; in nilfs_max_segment_count() local 427 max_count = div64_ul(max_count, nilfs->ns_blocks_per_segment); in nilfs_max_segment_count() 428 return min_t(u64, max_count, ULONG_MAX); in nilfs_max_segment_count()
|
| /linux/drivers/scsi/lpfc/ |
| H A D | lpfc_mem.c | 127 pool->max_count = 0; in lpfc_mem_alloc() 134 pool->max_count++; in lpfc_mem_alloc() 424 if (pool->current_count < pool->max_count) { in __lpfc_mbuf_free()
|