/linux-6.1.9/drivers/net/ethernet/marvell/octeon_ep/ |
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 = vzalloc(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 …]
|
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()
|
/linux-6.1.9/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() 396 res_pool->max_count = irq_count; in fsl_mc_populate_irq_pool() 420 if (res_pool->max_count == 0) in fsl_mc_cleanup_irq_pool() [all …]
|
/linux-6.1.9/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() 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 …]
|
D | request_manager.c | 93 iq->max_count = num_descs; in octeon_init_instr_queue() 110 iq_no, iq->base_addr, &iq->base_addr_dma, iq->max_count); in octeon_init_instr_queue() 186 q_size = iq->max_count * desc_size; in octeon_delete_instr_queue() 316 if (atomic_read(&iq->instr_pending) >= (s32)(iq->max_count - 1)) { in __post_command2() 322 if (atomic_read(&iq->instr_pending) >= (s32)(iq->max_count - 2)) in __post_command2() 330 iq->max_count); in __post_command2() 426 old = incr_index(old, 1, iq->max_count); in lio_process_iq_request_list()
|
/linux-6.1.9/lib/ |
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()
|
/linux-6.1.9/drivers/iio/adc/ |
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 - count_skip); in tsc2046_adc_read_one() [all …]
|
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8723com/ |
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-6.1.9/scripts/dtc/libfdt/ |
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-6.1.9/drivers/media/usb/pvrusb2/ |
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()
|
/linux-6.1.9/drivers/net/wireless/ath/ |
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()
|
D | dfs_pri_detector.h | 72 u32 max_count; member
|
/linux-6.1.9/lib/zlib_deflate/ |
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-6.1.9/fs/nfs/ |
D | direct.c | 92 if (dreq->max_count >= dreq_len) { in nfs_direct_handle_truncated() 93 dreq->max_count = dreq_len; in nfs_direct_handle_truncated() 116 if (dreq_len > dreq->max_count) in nfs_direct_count_bytes() 117 dreq_len = dreq->max_count; in nfs_direct_count_bytes() 435 dreq->bytes_left = dreq->max_count = count; in nfs_file_direct_read() 520 dreq->max_count = 0; in nfs_direct_write_reschedule() 522 dreq->max_count += req->wb_bytes; in nfs_direct_write_reschedule() 570 dreq->max_count = 0; in nfs_direct_commit_complete() 911 dreq->bytes_left = dreq->max_count = count; in nfs_file_direct_write()
|
/linux-6.1.9/drivers/iio/imu/inv_icm42600/ |
D | inv_icm42600_buffer.c | 449 size_t max_count; in inv_icm42600_buffer_fifo_read() local 465 max_count = sizeof(st->fifo.data); in inv_icm42600_buffer_fifo_read() 467 max_count = max * inv_icm42600_get_packet_size(st->fifo.en); in inv_icm42600_buffer_fifo_read() 480 if (st->fifo.count > max_count) in inv_icm42600_buffer_fifo_read() 481 st->fifo.count = max_count; in inv_icm42600_buffer_fifo_read()
|
/linux-6.1.9/drivers/tty/serial/ |
D | bcm63xx_uart.c | 230 unsigned int max_count; in bcm_uart_do_rx() local 235 max_count = 32; in bcm_uart_do_rx() 295 } while (--max_count); in bcm_uart_do_rx() 307 unsigned int val, max_count; in bcm_uart_do_tx() local 327 max_count = port->fifosize - val; in bcm_uart_do_tx() 329 while (max_count--) { in bcm_uart_do_tx()
|
D | pic32_uart.c | 270 unsigned int max_count; in pic32_uart_do_rx() local 276 max_count = PIC32_UART_RX_FIFO_DEPTH; in pic32_uart_do_rx() 333 } while (--max_count); in pic32_uart_do_rx() 347 unsigned int max_count = PIC32_UART_TX_FIFO_DEPTH; in pic32_uart_do_tx() local 383 if (--max_count == 0) in pic32_uart_do_tx()
|
/linux-6.1.9/sound/oss/dmasound/ |
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() 1310 "write", write_sq.max_count, write_sq.block_size, in state_open()
|
/linux-6.1.9/drivers/acpi/acpica/ |
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-6.1.9/drivers/net/ethernet/qlogic/qed/ |
D | qed_rdma.h | 53 u32 max_count; member 189 struct qed_bmap *bmap, u32 max_count, char *name);
|
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 …]
|
/linux-6.1.9/include/acpi/ |
D | actbl3.h | 597 u32 max_count; /* Maximum counter value supported */ member 667 u16 max_count; /* Maximum counter value supported */ member 709 u16 max_count; /* Maximum counter value supported */ member
|
/linux-6.1.9/fs/omfs/ |
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-6.1.9/kernel/ |
D | hung_task.c | 180 int max_count = sysctl_hung_task_check_count; in check_hung_uninterruptible_tasks() local 196 if (!max_count--) in check_hung_uninterruptible_tasks()
|
/linux-6.1.9/drivers/misc/ocxl/ |
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()
|