/linux-master/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) argument 87 const char *p = memchr(string, 0, max_count); 88 return p ? p - string : max_count;
|
/linux-master/lib/ |
H A D | strscpy_kunit.c | 30 int max_count; local 41 max_count = sizeof(buf) - 2; /* Space for null and to verify overflow */ 44 KUNIT_ASSERT_LE_MSG(test, count, max_count, 45 "count (%d) is too big (%d) ... aborting", count, max_count);
|
/linux-master/drivers/bus/fsl-mc/ |
H A D | fsl-mc-allocator.c | 57 if (res_pool->max_count < 0) 60 res_pool->free_count > res_pool->max_count) 80 res_pool->max_count++; 123 if (res_pool->max_count <= 0) { 124 dev_err(&mc_bus_dev->dev, "max_count underflow\n"); 128 res_pool->free_count > res_pool->max_count) { 147 res_pool->max_count--; 218 res_pool->free_count > res_pool->max_count) 243 res_pool->free_count >= res_pool->max_count) 402 res_pool->max_count [all...] |
/linux-master/drivers/net/ethernet/marvell/octeon_ep/ |
H A D | octep_rx.c | 38 for (i = 0; i < oq->max_count; i++) { 106 if (refill_idx == oq->max_count) 137 oq->max_count = CFG_GET_OQ_NUM_DESC(oct->conf); 138 oq->ring_size_mask = oq->max_count - 1; 151 desc_ring_size = oq->max_count * OCTEP_OQ_DESC_SIZE; 161 oq->buff_info = vcalloc(oq->max_count, OCTEP_OQ_RECVBUF_SIZE); 206 for (i = 0; i < oq->max_count; i++) { 236 oq->max_count * OCTEP_OQ_DESC_SIZE, 287 writel(oct->oq[i]->max_count, oct->oq[i]->pkts_credit_reg); 405 if (read_idx == oq->max_count) [all...] |
H A D | octep_tx.c | 52 if (unlikely(fi == iq->max_count)) 116 if (unlikely(fi == iq->max_count)) 190 iq->max_count = CFG_GET_IQ_NUM_DESC(oct->conf); 191 iq->ring_size_mask = iq->max_count - 1; 218 buff_info_size = OCTEP_IQ_TXBUFF_INFO_SIZE * iq->max_count;
|
H A D | octep_rx.h | 200 u32 max_count; member in struct:octep_oq
|
H A D | octep_tx.h | 201 u32 max_count; member in struct:octep_iq
|
/linux-master/drivers/net/ethernet/marvell/octeon_ep_vf/ |
H A D | octep_vf_rx.c | 38 for (i = 0; i < oq->max_count; i++) { 106 if (refill_idx == oq->max_count) 137 oq->max_count = CFG_GET_OQ_NUM_DESC(oct->conf); 138 oq->ring_size_mask = oq->max_count - 1; 151 desc_ring_size = oq->max_count * OCTEP_VF_OQ_DESC_SIZE; 161 oq->buff_info = vzalloc(oq->max_count * OCTEP_VF_OQ_RECVBUF_SIZE); 207 for (i = 0; i < oq->max_count; i++) { 237 oq->max_count * OCTEP_VF_OQ_DESC_SIZE, 288 writel(oct->oq[i]->max_count, oct->oq[i]->pkts_credit_reg); 405 if (read_idx == oq->max_count) [all...] |
H A D | octep_vf_tx.c | 53 if (unlikely(fi == iq->max_count)) 115 if (unlikely(fi == iq->max_count)) 189 iq->max_count = CFG_GET_IQ_NUM_DESC(oct->conf); 190 iq->ring_size_mask = iq->max_count - 1; 217 buff_info_size = OCTEP_VF_IQ_TXBUFF_INFO_SIZE * iq->max_count;
|
H A D | octep_vf_rx.h | 200 u32 max_count; member in struct:octep_vf_oq
|
H A D | octep_vf_tx.h | 159 u32 max_count; member in struct:octep_vf_iq
|
/linux-master/drivers/net/wireless/ath/ |
H A D | dfs_pri_detector.h | 56 * @max_count: maximum number of pulses to be queued 72 u32 max_count; member in struct:pri_detector
|
H A D | dfs_pri_detector.c | 219 if (pde->count >= pde->max_count) 306 u32 max_count = 0; local 326 if (max_count < ps->count) 327 max_count = ps->count; 332 return max_count; 431 de->max_count = rs->ppb * 2;
|
/linux-master/drivers/net/wireless/realtek/rtlwifi/rtl8723com/ |
H A D | fw_common.c | 118 int max_count) 127 } while ((counter++ < max_count) && 130 if (counter >= max_count) { 155 } while (counter++ < max_count); 166 bool is_8723be, int max_count) 211 err = rtl8723_fw_free_to_go(hw, is_8723be, max_count); 117 rtl8723_fw_free_to_go(struct ieee80211_hw *hw, bool is_8723be, int max_count) argument 165 rtl8723_download_fw(struct ieee80211_hw *hw, bool is_8723be, int max_count) argument
|
/linux-master/drivers/net/ethernet/cavium/liquidio/ |
H A D | octeon_droq.c | 128 droq->max_empty_descs = droq->max_count - droq->max_empty_descs; 147 for (i = 0; i < droq->max_count; i++) { 175 for (i = 0; i < droq->max_count; i++) { 209 lio_dma_free(oct, (droq->max_count * OCT_DROQ_DESC_SIZE), 267 droq->max_count = c_num_descs; 270 desc_ring_size = droq->max_count * OCT_DROQ_DESC_SIZE; 283 droq->max_count); 285 droq->recv_buf_list = vzalloc_node(array_size(droq->max_count, OCT_DROQ_RECVBUF_SIZE), 288 droq->recv_buf_list = vzalloc(array_size(droq->max_count, OCT_DROQ_RECVBUF_SIZE)); 378 idx = incr_index(idx, 1, droq->max_count); [all...] |
/linux-master/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-io.c | 79 unsigned int max_count; /* Size of storage area */ member in struct:pvr2_buffer 125 ccnt = bp->max_count; 130 ccnt = bp->max_count; 208 sp->i_bcount += bp->max_count; 232 sp->q_bcount += bp->max_count; 609 for (idx = 0; idx < (bp->max_count) / 4; idx++) { 621 bp->max_count, // int buffer_length 644 bp->stream->i_bcount -= bp->max_count; 645 bp->max_count = cnt; 646 bp->stream->i_bcount += bp->max_count; [all...] |
/linux-master/drivers/iio/adc/ |
H A D | ti-tsc2046.c | 278 int ret, i, count_skip = 0, max_count; local 285 max_count = count_skip + ch->oversampling_ratio; 287 max_count = 1; 290 if (sizeof(*tx_buf) * max_count > PAGE_SIZE) 293 tx_buf = kcalloc(max_count, sizeof(*tx_buf), GFP_KERNEL); 297 rx_buf = kcalloc(max_count, sizeof(*rx_buf), GFP_KERNEL); 309 for (i = 0; i < max_count - 1; i++) 318 xfer.len = sizeof(*tx_buf) * max_count; 335 for (i = 0; i < max_count - count_skip; i++) { 340 ret = DIV_ROUND_UP(val_normalized, max_count 356 unsigned int max_count, count_skip; local [all...] |
/linux-master/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_rdma.h | 53 u32 max_count; member in struct:qed_bmap 189 struct qed_bmap *bmap, u32 max_count, char *name);
|
/linux-master/security/apparmor/include/ |
H A D | policy_ns.h | 24 * @max_count: maximum number of profiles that can be in this namespace 30 int max_count; member in struct:aa_ns_acct
|
/linux-master/lib/zlib_deflate/ |
H A D | deftree.c | 583 int max_count = 7; /* max repeat count */ local 586 if (nextlen == 0) max_count = 138, min_count = 3; 591 if (++count < max_count && curlen == nextlen) { 605 max_count = 138, min_count = 3; 607 max_count = 6, min_count = 3; 609 max_count = 7, min_count = 4; 629 int max_count = 7; /* max repeat count */ local 633 if (nextlen == 0) max_count = 138, min_count = 3; 637 if (++count < max_count && curlen == nextlen) { 657 max_count [all...] |
/linux-master/drivers/acpi/acpica/ |
H A D | dbmethod.c | 476 if (info->count >= info->max_count) { 547 info.max_count = ACPI_UINT32_MAX; 578 info.max_count = ACPI_UINT32_MAX;
|
/linux-master/include/acpi/ |
H A D | actbl3.h | 600 u32 max_count; /* Maximum counter value supported */ member in struct:acpi_table_wdat 670 u16 max_count; /* Maximum counter value supported */ member in struct:acpi_table_wddt 712 u16 max_count; /* Maximum counter value supported */ member in struct:acpi_table_wdrt
|
/linux-master/fs/omfs/ |
H A D | file.c | 124 u32 max_count; local 155 max_count = omfs_max_extents(sbi, OMFS_EXTENT_START); 158 if (be32_to_cpu(oe->e_extent_count) > max_count-1)
|
/linux-master/drivers/s390/char/ |
H A D | tape_3590.h | 162 __u8 max_count; member in struct:tape3592_kekl_query_order
|
/linux-master/fs/nfs/ |
H A D | direct.c | 92 if (dreq->max_count >= dreq_len) { 93 dreq->max_count = dreq_len; 114 if (dreq_len > dreq->max_count) 115 dreq_len = dreq->max_count; 127 if (req_start < dreq->max_count) 128 dreq->max_count = req_start; 211 return dreq->max_count - start; 443 dreq->max_count = count; 994 dreq->max_count = count;
|