/Linux-v5.15/net/netfilter/ |
D | nft_limit.c | 28 static inline bool nft_limit_eval(struct nft_limit *limit, u64 cost) in nft_limit_eval() argument 33 spin_lock_bh(&limit->lock); in nft_limit_eval() 35 tokens = limit->tokens + now - limit->last; in nft_limit_eval() 36 if (tokens > limit->tokens_max) in nft_limit_eval() 37 tokens = limit->tokens_max; in nft_limit_eval() 39 limit->last = now; in nft_limit_eval() 42 limit->tokens = delta; in nft_limit_eval() 43 spin_unlock_bh(&limit->lock); in nft_limit_eval() 44 return limit->invert; in nft_limit_eval() 46 limit->tokens = tokens; in nft_limit_eval() [all …]
|
D | nf_conntrack_sip.c | 67 const char *limit, int *shift) in string_len() argument 71 while (dptr < limit && isalpha(*dptr)) { in string_len() 79 const char *limit, int *shift) in digits_len() argument 82 while (dptr < limit && isdigit(*dptr)) { in digits_len() 100 static int word_len(const char *dptr, const char *limit) in word_len() argument 103 while (dptr < limit && iswordc(*dptr)) { in word_len() 111 const char *limit, int *shift) in callid_len() argument 115 len = word_len(dptr, limit); in callid_len() 117 if (!len || dptr == limit || *dptr != '@') in callid_len() 122 domain_len = word_len(dptr, limit); in callid_len() [all …]
|
/Linux-v5.15/arch/arm64/lib/ |
D | memcmp.S | 22 #define limit x2 macro 36 subs limit, limit, 8 44 subs limit, limit, 8 47 ldr data1, [src1, limit] 48 ldr data2, [src2, limit] 59 subs limit, limit, 16 64 cmp limit, 96 69 add limit, limit, tmp1 80 subs limit, limit, 16 94 add src1, src1, limit [all …]
|
D | strncmp.S | 26 #define limit x2 macro 48 cbz limit, L(ret0) 56 sub limit_wd, limit, #1 /* limit != 0, so no underflow. */ 81 ands limit, limit, #7 84 lsl limit, limit, #3 /* Bits -> bytes. */ 87 lsr mask, mask, limit 89 lsl mask, mask, limit 162 sub limit_wd, limit, #1 /* limit != 0, so no underflow. */ 173 add limit, limit, count 183 cmp limit, #16 [all …]
|
/Linux-v5.15/arch/x86/mm/ |
D | amdtopology.c | 83 u64 base, limit; in amd_numa_init() local 86 limit = read_pci_config(0, nb, 1, 0x44 + i*8); in amd_numa_init() 88 nodeids[i] = nodeid = limit & 7; in amd_numa_init() 96 base, limit); in amd_numa_init() 100 if (!limit) { in amd_numa_init() 105 if ((base >> 8) & 3 || (limit >> 8) & 3) { in amd_numa_init() 107 nodeid, (base >> 8) & 3, (limit >> 8) & 3); in amd_numa_init() 116 limit >>= 16; in amd_numa_init() 117 limit++; in amd_numa_init() 118 limit <<= 24; in amd_numa_init() [all …]
|
/Linux-v5.15/lib/ |
D | dynamic_queue_limits.c | 20 unsigned int inprogress, prev_inprogress, limit; in dql_completed() local 30 limit = dql->limit; in dql_completed() 31 ovlimit = POSDIFF(num_queued - dql->num_completed, limit); in dql_completed() 53 limit += POSDIFF(completed, dql->prev_num_queued) + in dql_completed() 82 slack = POSDIFF(limit + dql->prev_ovlimit, in dql_completed() 94 limit = POSDIFF(limit, dql->lowest_slack); in dql_completed() 101 limit = clamp(limit, dql->min_limit, dql->max_limit); in dql_completed() 103 if (limit != dql->limit) { in dql_completed() 104 dql->limit = limit; in dql_completed() 108 dql->adj_limit = limit + completed; in dql_completed() [all …]
|
/Linux-v5.15/arch/powerpc/kernel/ |
D | paca.c | 28 unsigned long limit, int cpu) in alloc_paca_data() argument 46 limit, nid); in alloc_paca_data() 60 static void *__init alloc_shared_lppaca(unsigned long size, unsigned long limit, in alloc_shared_lppaca() argument 81 limit, NUMA_NO_NODE); in alloc_shared_lppaca() 122 static struct lppaca * __init new_lppaca(int cpu, unsigned long limit) in new_lppaca() argument 132 lp = alloc_shared_lppaca(LPPACA_SIZE, limit, cpu); in new_lppaca() 134 lp = alloc_paca_data(LPPACA_SIZE, 0x400, limit, cpu); in new_lppaca() 151 static struct slb_shadow * __init new_slb_shadow(int cpu, unsigned long limit) in new_slb_shadow() argument 165 s = alloc_paca_data(sizeof(*s), L1_CACHE_BYTES, limit, cpu); in new_slb_shadow() 187 static struct rtas_args * __init new_rtas_args(int cpu, unsigned long limit) in new_rtas_args() argument [all …]
|
/Linux-v5.15/drivers/gpu/drm/i915/display/ |
D | intel_dpll.c | 359 const struct intel_limit *limit, in intel_pll_is_valid() argument 362 if (clock->n < limit->n.min || limit->n.max < clock->n) in intel_pll_is_valid() 364 if (clock->p1 < limit->p1.min || limit->p1.max < clock->p1) in intel_pll_is_valid() 366 if (clock->m2 < limit->m2.min || limit->m2.max < clock->m2) in intel_pll_is_valid() 368 if (clock->m1 < limit->m1.min || limit->m1.max < clock->m1) in intel_pll_is_valid() 376 if (clock->p < limit->p.min || limit->p.max < clock->p) in intel_pll_is_valid() 378 if (clock->m < limit->m.min || limit->m.max < clock->m) in intel_pll_is_valid() 382 if (clock->vco < limit->vco.min || limit->vco.max < clock->vco) in intel_pll_is_valid() 387 if (clock->dot < limit->dot.min || limit->dot.max < clock->dot) in intel_pll_is_valid() 394 i9xx_select_p2_div(const struct intel_limit *limit, in i9xx_select_p2_div() argument [all …]
|
/Linux-v5.15/drivers/clk/bcm/ |
D | clk-kona-setup.c | 29 u32 limit; in ccu_data_offsets_valid() local 31 limit = ccu->range - sizeof(u32); in ccu_data_offsets_valid() 32 limit = round_down(limit, sizeof(u32)); in ccu_data_offsets_valid() 34 if (ccu_policy->enable.offset > limit) { in ccu_data_offsets_valid() 37 ccu->name, ccu_policy->enable.offset, limit); in ccu_data_offsets_valid() 40 if (ccu_policy->control.offset > limit) { in ccu_data_offsets_valid() 43 ccu->name, ccu_policy->control.offset, limit); in ccu_data_offsets_valid() 88 u32 limit; in peri_clk_data_offsets_valid() local 95 limit = range - sizeof(u32); in peri_clk_data_offsets_valid() 96 limit = round_down(limit, sizeof(u32)); in peri_clk_data_offsets_valid() [all …]
|
/Linux-v5.15/Documentation/hwmon/ |
D | ina209.rst | 44 in0_max shunt voltage max alarm limit (mV) 45 in0_min shunt voltage min alarm limit (mV) 46 in0_crit_max shunt voltage crit max alarm limit (mV) 47 in0_crit_min shunt voltage crit min alarm limit (mV) 48 in0_max_alarm shunt voltage max alarm limit exceeded 49 in0_min_alarm shunt voltage min alarm limit exceeded 50 in0_crit_max_alarm shunt voltage crit max alarm limit exceeded 51 in0_crit_min_alarm shunt voltage crit min alarm limit exceeded 57 in1_max bus voltage max alarm limit (mV) 58 in1_min bus voltage min alarm limit (mV) [all …]
|
/Linux-v5.15/net/sched/ |
D | sch_fifo.c | 22 if (likely(sch->qstats.backlog + qdisc_pkt_len(skb) <= sch->limit)) in bfifo_enqueue() 31 if (likely(sch->q.qlen < sch->limit)) in pfifo_enqueue() 42 if (likely(sch->q.qlen < sch->limit)) in pfifo_tail_enqueue() 103 u32 limit = qdisc_dev(sch)->tx_queue_len; in __fifo_init() local 106 limit *= psched_mtu(qdisc_dev(sch)); in __fifo_init() 108 sch->limit = limit; in __fifo_init() 115 sch->limit = ctl->limit; in __fifo_init() 119 bypass = sch->limit >= psched_mtu(qdisc_dev(sch)); in __fifo_init() 121 bypass = sch->limit >= 1; in __fifo_init() 157 struct tc_fifo_qopt opt = { .limit = sch->limit }; in __fifo_dump() [all …]
|
/Linux-v5.15/fs/romfs/ |
D | storage.c | 131 unsigned long pos, size_t limit) in romfs_blk_strnlen() argument 140 while (limit > 0) { in romfs_blk_strnlen() 142 segment = min_t(size_t, limit, ROMBSIZE - offset); in romfs_blk_strnlen() 151 limit -= segment; in romfs_blk_strnlen() 217 size_t limit; in romfs_dev_read() local 219 limit = romfs_maxsize(sb); in romfs_dev_read() 220 if (pos >= limit || buflen > limit - pos) in romfs_dev_read() 240 size_t limit; in romfs_dev_strnlen() local 242 limit = romfs_maxsize(sb); in romfs_dev_strnlen() 243 if (pos >= limit) in romfs_dev_strnlen() [all …]
|
/Linux-v5.15/kernel/cgroup/ |
D | pids.c | 49 atomic64_t limit; member 78 atomic64_set(&pids->limit, PIDS_MAX); in pids_css_alloc() 150 int64_t limit = atomic64_read(&p->limit); in pids_try_charge() local 157 if (new > limit) in pids_try_charge() 267 int64_t limit; in pids_max_write() local 272 limit = PIDS_MAX; in pids_max_write() 276 err = kstrtoll(buf, 0, &limit); in pids_max_write() 280 if (limit < 0 || limit >= PIDS_MAX) in pids_max_write() 288 atomic64_set(&pids->limit, limit); in pids_max_write() 296 int64_t limit = atomic64_read(&pids->limit); in pids_max_show() local [all …]
|
/Linux-v5.15/drivers/gpu/drm/radeon/ |
D | kv_smc.c | 75 u32 smc_address, u32 limit) in kv_set_smc_sram_address() argument 79 if ((smc_address + 3) > limit) in kv_set_smc_sram_address() 89 u32 *value, u32 limit) in kv_read_smc_sram_dword() argument 93 ret = kv_set_smc_sram_address(rdev, smc_address, limit); in kv_read_smc_sram_dword() 119 const u8 *src, u32 byte_count, u32 limit) in kv_copy_bytes_to_smc() argument 124 if ((smc_start_address + byte_count) > limit) in kv_copy_bytes_to_smc() 134 ret = kv_set_smc_sram_address(rdev, addr, limit); in kv_copy_bytes_to_smc() 160 ret = kv_set_smc_sram_address(rdev, addr, limit); in kv_copy_bytes_to_smc() 173 ret = kv_set_smc_sram_address(rdev, addr, limit); in kv_copy_bytes_to_smc() 188 ret = kv_set_smc_sram_address(rdev, addr, limit); in kv_copy_bytes_to_smc() [all …]
|
D | rv770_smc.c | 278 u16 smc_address, u16 limit) in rv770_set_smc_sram_address() argument 284 if ((smc_address + 3) > limit) in rv770_set_smc_sram_address() 297 u16 byte_count, u16 limit) in rv770_copy_bytes_to_smc() argument 306 if ((smc_start_address + byte_count) > limit) in rv770_copy_bytes_to_smc() 316 ret = rv770_set_smc_sram_address(rdev, addr, limit); in rv770_copy_bytes_to_smc() 331 ret = rv770_set_smc_sram_address(rdev, addr, limit); in rv770_copy_bytes_to_smc() 349 ret = rv770_set_smc_sram_address(rdev, addr, limit); in rv770_copy_bytes_to_smc() 467 static void rv770_clear_smc_sram(struct radeon_device *rdev, u16 limit) in rv770_clear_smc_sram() argument 473 for (i = 0; i < limit; i += 4) { in rv770_clear_smc_sram() 474 rv770_set_smc_sram_address(rdev, i, limit); in rv770_clear_smc_sram() [all …]
|
D | ci_smc.c | 34 u32 smc_address, u32 limit) in ci_set_smc_sram_address() argument 38 if ((smc_address + 3) > limit) in ci_set_smc_sram_address() 49 const u8 *src, u32 byte_count, u32 limit) in ci_copy_bytes_to_smc() argument 59 if ((smc_start_address + byte_count) > limit) in ci_copy_bytes_to_smc() 69 ret = ci_set_smc_sram_address(rdev, addr, limit); in ci_copy_bytes_to_smc() 84 ret = ci_set_smc_sram_address(rdev, addr, limit); in ci_copy_bytes_to_smc() 101 ret = ci_set_smc_sram_address(rdev, addr, limit); in ci_copy_bytes_to_smc() 186 int ci_load_smc_ucode(struct radeon_device *rdev, u32 limit) in ci_load_smc_ucode() argument 247 u32 smc_address, u32 *value, u32 limit) in ci_read_smc_sram_dword() argument 253 ret = ci_set_smc_sram_address(rdev, smc_address, limit); in ci_read_smc_sram_dword() [all …]
|
/Linux-v5.15/drivers/gpu/drm/amd/pm/powerplay/ |
D | kv_smc.c | 78 u32 smc_address, u32 limit) in kv_set_smc_sram_address() argument 82 if ((smc_address + 3) > limit) in kv_set_smc_sram_address() 93 u32 *value, u32 limit) in amdgpu_kv_read_smc_sram_dword() argument 97 ret = kv_set_smc_sram_address(adev, smc_address, limit); in amdgpu_kv_read_smc_sram_dword() 123 const u8 *src, u32 byte_count, u32 limit) in amdgpu_kv_copy_bytes_to_smc() argument 128 if ((smc_start_address + byte_count) > limit) in amdgpu_kv_copy_bytes_to_smc() 138 ret = kv_set_smc_sram_address(adev, addr, limit); in amdgpu_kv_copy_bytes_to_smc() 164 ret = kv_set_smc_sram_address(adev, addr, limit); in amdgpu_kv_copy_bytes_to_smc() 177 ret = kv_set_smc_sram_address(adev, addr, limit); in amdgpu_kv_copy_bytes_to_smc() 192 ret = kv_set_smc_sram_address(adev, addr, limit); in amdgpu_kv_copy_bytes_to_smc() [all …]
|
D | si_smc.c | 34 u32 smc_address, u32 limit) in si_set_smc_sram_address() argument 38 if ((smc_address + 3) > limit) in si_set_smc_sram_address() 49 const u8 *src, u32 byte_count, u32 limit) in amdgpu_si_copy_bytes_to_smc() argument 57 if ((smc_start_address + byte_count) > limit) in amdgpu_si_copy_bytes_to_smc() 67 ret = si_set_smc_sram_address(adev, addr, limit); in amdgpu_si_copy_bytes_to_smc() 82 ret = si_set_smc_sram_address(adev, addr, limit); in amdgpu_si_copy_bytes_to_smc() 98 ret = si_set_smc_sram_address(adev, addr, limit); in amdgpu_si_copy_bytes_to_smc() 203 int amdgpu_si_load_smc_ucode(struct amdgpu_device *adev, u32 limit) in amdgpu_si_load_smc_ucode() argument 246 u32 *value, u32 limit) in amdgpu_si_read_smc_sram_dword() argument 252 ret = si_set_smc_sram_address(adev, smc_address, limit); in amdgpu_si_read_smc_sram_dword() [all …]
|
/Linux-v5.15/fs/xfs/ |
D | xfs_qm_bhv.c | 24 uint64_t limit; in xfs_fill_statvfs_from_dquot() local 26 limit = dqp->q_blk.softlimit ? in xfs_fill_statvfs_from_dquot() 29 if (limit && statp->f_blocks > limit) { in xfs_fill_statvfs_from_dquot() 30 statp->f_blocks = limit; in xfs_fill_statvfs_from_dquot() 36 limit = dqp->q_ino.softlimit ? in xfs_fill_statvfs_from_dquot() 39 if (limit && statp->f_files > limit) { in xfs_fill_statvfs_from_dquot() 40 statp->f_files = limit; in xfs_fill_statvfs_from_dquot()
|
/Linux-v5.15/net/wireless/ |
D | of.c | 30 struct ieee80211_freq_range *limit = &freq_limits[i]; in wiphy_freq_limits_valid_chan() local 32 if (cfg80211_does_bw_fit_range(limit, in wiphy_freq_limits_valid_chan() 109 struct ieee80211_freq_range *limit = &freq_limits[i]; in wiphy_read_of_freq_limits() local 111 p = of_prop_next_u32(prop, p, &limit->start_freq_khz); in wiphy_read_of_freq_limits() 117 p = of_prop_next_u32(prop, p, &limit->end_freq_khz); in wiphy_read_of_freq_limits() 123 if (!limit->start_freq_khz || in wiphy_read_of_freq_limits() 124 !limit->end_freq_khz || in wiphy_read_of_freq_limits() 125 limit->start_freq_khz >= limit->end_freq_khz) { in wiphy_read_of_freq_limits()
|
/Linux-v5.15/drivers/gpu/drm/gma500/ |
D | oaktrail_crtc.c | 36 static bool mrst_lvds_find_best_pll(const struct gma_limit_t *limit, 40 static bool mrst_sdvo_find_best_pll(const struct gma_limit_t *limit, 83 const struct gma_limit_t *limit = NULL; in mrst_limit() local 91 limit = &mrst_limits[MRST_LIMIT_LVDS_100L]; in mrst_limit() 94 limit = &mrst_limits[MRST_LIMIT_LVDS_83]; in mrst_limit() 97 limit = &mrst_limits[MRST_LIMIT_LVDS_100]; in mrst_limit() 101 limit = &mrst_limits[MRST_LIMIT_SDVO]; in mrst_limit() 103 limit = NULL; in mrst_limit() 107 return limit; in mrst_limit() 123 static bool mrst_sdvo_find_best_pll(const struct gma_limit_t *limit, in mrst_sdvo_find_best_pll() argument [all …]
|
D | gma_display.c | 717 const struct gma_limit_t *limit, in gma_pll_is_valid() argument 720 if (clock->p1 < limit->p1.min || limit->p1.max < clock->p1) in gma_pll_is_valid() 722 if (clock->p < limit->p.min || limit->p.max < clock->p) in gma_pll_is_valid() 724 if (clock->m2 < limit->m2.min || limit->m2.max < clock->m2) in gma_pll_is_valid() 726 if (clock->m1 < limit->m1.min || limit->m1.max < clock->m1) in gma_pll_is_valid() 731 if (clock->m < limit->m.min || limit->m.max < clock->m) in gma_pll_is_valid() 733 if (clock->n < limit->n.min || limit->n.max < clock->n) in gma_pll_is_valid() 735 if (clock->vco < limit->vco.min || limit->vco.max < clock->vco) in gma_pll_is_valid() 741 if (clock->dot < limit->dot.min || limit->dot.max < clock->dot) in gma_pll_is_valid() 747 bool gma_find_best_pll(const struct gma_limit_t *limit, in gma_find_best_pll() argument [all …]
|
/Linux-v5.15/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_eeprom.c | 183 u16 limit; in amdgpu_eeprom_xfer() local 186 limit = 0; in amdgpu_eeprom_xfer() 188 limit = quirks->max_read_len; in amdgpu_eeprom_xfer() 190 limit = quirks->max_write_len; in amdgpu_eeprom_xfer() 192 if (limit == 0) { in amdgpu_eeprom_xfer() 195 } else if (limit <= EEPROM_OFFSET_SIZE) { in amdgpu_eeprom_xfer() 209 limit -= EEPROM_OFFSET_SIZE; in amdgpu_eeprom_xfer() 212 ps = min(limit, buf_size); in amdgpu_eeprom_xfer()
|
/Linux-v5.15/arch/arm/boot/dts/ |
D | omap3-gta04a3.dts | 29 st,click-click-time-limit = <9>; 38 st,min-limit-x = <32>; 39 st,min-limit-y = <3>; 40 st,min-limit-z = <3>; 41 st,max-limit-x = <3>; 42 st,max-limit-y = <32>; 43 st,max-limit-z = <32>;
|
/Linux-v5.15/arch/powerpc/boot/ |
D | decompress.c | 42 static unsigned long limit; variable 62 if (decompressed_bytes >= limit) in flush() 81 size = min(decompressed_bytes + size, limit) - decompressed_bytes; in flush() 92 if (decompressed_bytes >= limit) in print_err() 129 limit = output_size; in partial_decompress() 139 if (decompressed_bytes < limit) in partial_decompress()
|