| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-4.19/net/netfilter/ |
| D | nft_limit.c | 31 static inline bool nft_limit_eval(struct nft_limit *limit, u64 cost) in nft_limit_eval() argument 36 spin_lock_bh(&limit->lock); in nft_limit_eval() 38 tokens = limit->tokens + now - limit->last; in nft_limit_eval() 39 if (tokens > limit->tokens_max) in nft_limit_eval() 40 tokens = limit->tokens_max; in nft_limit_eval() 42 limit->last = now; in nft_limit_eval() 45 limit->tokens = delta; in nft_limit_eval() 46 spin_unlock_bh(&limit->lock); in nft_limit_eval() 47 return limit->invert; in nft_limit_eval() 49 limit->tokens = tokens; in nft_limit_eval() [all …]
|
| D | nf_conntrack_sip.c | 61 const char *limit, int *shift) in string_len() argument 65 while (dptr < limit && isalpha(*dptr)) { in string_len() 73 const char *limit, int *shift) in digits_len() argument 76 while (dptr < limit && isdigit(*dptr)) { in digits_len() 94 static int word_len(const char *dptr, const char *limit) in word_len() argument 97 while (dptr < limit && iswordc(*dptr)) { in word_len() 105 const char *limit, int *shift) in callid_len() argument 109 len = word_len(dptr, limit); in callid_len() 111 if (!len || dptr == limit || *dptr != '@') in callid_len() 116 domain_len = word_len(dptr, limit); in callid_len() [all …]
|
| /kernel/linux/linux-4.19/lib/ |
| D | dynamic_queue_limits.c | 17 /* Records completed count and recalculates the queue limit */ 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() 40 * - The queue was over-limit in the last interval, in dql_completed() 43 * - The queue was over-limit in the previous interval and in dql_completed() 49 * When queue is starved increase the limit by the amount in dql_completed() 51 * plus any previous over-limit. in dql_completed() 53 limit += POSDIFF(completed, dql->prev_num_queued) + in dql_completed() 59 * Queue was not starved, check if the limit can be decreased. in dql_completed() [all …]
|
| /kernel/linux/linux-5.10/lib/ |
| D | dynamic_queue_limits.c | 17 /* Records completed count and recalculates the queue limit */ 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() 40 * - The queue was over-limit in the last interval, in dql_completed() 43 * - The queue was over-limit in the previous interval and in dql_completed() 49 * When queue is starved increase the limit by the amount in dql_completed() 51 * plus any previous over-limit. in dql_completed() 53 limit += POSDIFF(completed, dql->prev_num_queued) + in dql_completed() 59 * Queue was not starved, check if the limit can be decreased. in dql_completed() [all …]
|
| /kernel/linux/linux-4.19/Documentation/hwmon/ |
| D | ina209 | 39 in0_max shunt voltage max alarm limit (mV) 40 in0_min shunt voltage min alarm limit (mV) 41 in0_crit_max shunt voltage crit max alarm limit (mV) 42 in0_crit_min shunt voltage crit min alarm limit (mV) 43 in0_max_alarm shunt voltage max alarm limit exceeded 44 in0_min_alarm shunt voltage min alarm limit exceeded 45 in0_crit_max_alarm shunt voltage crit max alarm limit exceeded 46 in0_crit_min_alarm shunt voltage crit min alarm limit exceeded 52 in1_max bus voltage max alarm limit (mV) 53 in1_min bus voltage min alarm limit (mV) [all …]
|
| /kernel/linux/linux-5.10/arch/arm64/lib/ |
| D | memcmp.S | 31 limit .req x2 label 50 cbz limit, .Lret0 56 sub limit_wd, limit, #1 /* limit != 0, so no underflow. */ 71 /* Not reached the limit, must have found a diff. */ 74 /* Limit % 8 == 0 => the diff is in the last 8 bytes. */ 75 ands limit, limit, #7 81 lsl limit, limit, #3 /* bytes-> bits. */ 83 CPU_BE( lsr mask, mask, limit ) 84 CPU_LE( lsl mask, mask, limit ) 102 * We can not add limit with alignment offset(tmp1) here. Since the [all …]
|
| D | strncmp.S | 35 limit .req x2 label 56 cbz limit, .Lret0 65 * when limit is mulitply of 8, if not sub 1, 68 sub limit_wd, limit, #1 /* limit != 0, so no underflow. */ 89 /*Not reached the limit, must have found the end or a diff. */ 92 /* Limit % 8 == 0 => all bytes significant. */ 93 ands limit, limit, #7 96 lsl limit, limit, #3 /* Bits -> bytes. */ 98 CPU_BE( lsr mask, mask, limit ) 99 CPU_LE( lsl mask, mask, limit ) [all …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-4.19/arch/arm64/lib/ |
| D | memcmp.S | 43 limit .req x2 label 62 cbz limit, .Lret0 68 sub limit_wd, limit, #1 /* limit != 0, so no underflow. */ 83 /* Not reached the limit, must have found a diff. */ 86 /* Limit % 8 == 0 => the diff is in the last 8 bytes. */ 87 ands limit, limit, #7 93 lsl limit, limit, #3 /* bytes-> bits. */ 95 CPU_BE( lsr mask, mask, limit ) 96 CPU_LE( lsl mask, mask, limit ) 114 * We can not add limit with alignment offset(tmp1) here. Since the [all …]
|
| D | strncmp.S | 47 limit .req x2 label 68 cbz limit, .Lret0 77 * when limit is mulitply of 8, if not sub 1, 80 sub limit_wd, limit, #1 /* limit != 0, so no underflow. */ 101 /*Not reached the limit, must have found the end or a diff. */ 104 /* Limit % 8 == 0 => all bytes significant. */ 105 ands limit, limit, #7 108 lsl limit, limit, #3 /* Bits -> bytes. */ 110 CPU_BE( lsr mask, mask, limit ) 111 CPU_LE( lsl mask, mask, limit ) [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/ |
| D | sch_red.sh | 57 rate 10Mbit burst 10K limit 1M 103 rate 10Mbit burst 10K limit 1M 256 local limit=$1; shift 260 # Build the below-the-limit backlog using UDP. We could use TCP just 262 # length is below the limit. The main stream is using TCP, and if the 263 # limit is misconfigured, we would see this traffic being ECN marked. 265 backlog=$(build_backlog $((2 * limit / 3)) udp) 268 check_err $? "backlog $backlog / $limit Got $pct% marked packets, expected == 0." 269 log_test "$name backlog < limit" 272 # backlog crosses the limit, and we want to make sure that the backlog [all …]
|
| /kernel/linux/linux-4.19/fs/quota/ |
| D | quotaio_v2.h | 40 __le32 dqb_ihardlimit; /* absolute limit on allocated inodes */ 41 __le32 dqb_isoftlimit; /* preferred inode limit */ 43 __le32 dqb_bhardlimit; /* absolute limit on disk space (in QUOTABLOCK_SIZE) */ 44 __le32 dqb_bsoftlimit; /* preferred limit on disk space (in QUOTABLOCK_SIZE) */ 46 __le64 dqb_btime; /* time limit for excessive disk use */ 47 __le64 dqb_itime; /* time limit for excessive inode use */ 53 __le64 dqb_ihardlimit; /* absolute limit on allocated inodes */ 54 __le64 dqb_isoftlimit; /* preferred inode limit */ 56 __le64 dqb_bhardlimit; /* absolute limit on disk space (in QUOTABLOCK_SIZE) */ 57 __le64 dqb_bsoftlimit; /* preferred limit on disk space (in QUOTABLOCK_SIZE) */ [all …]
|
| /kernel/linux/linux-5.10/fs/quota/ |
| D | quotaio_v2.h | 40 __le32 dqb_ihardlimit; /* absolute limit on allocated inodes */ 41 __le32 dqb_isoftlimit; /* preferred inode limit */ 43 __le32 dqb_bhardlimit; /* absolute limit on disk space (in QUOTABLOCK_SIZE) */ 44 __le32 dqb_bsoftlimit; /* preferred limit on disk space (in QUOTABLOCK_SIZE) */ 46 __le64 dqb_btime; /* time limit for excessive disk use */ 47 __le64 dqb_itime; /* time limit for excessive inode use */ 53 __le64 dqb_ihardlimit; /* absolute limit on allocated inodes */ 54 __le64 dqb_isoftlimit; /* preferred inode limit */ 56 __le64 dqb_bhardlimit; /* absolute limit on disk space (in QUOTABLOCK_SIZE) */ 57 __le64 dqb_bsoftlimit; /* preferred limit on disk space (in QUOTABLOCK_SIZE) */ [all …]
|
| /kernel/linux/linux-4.19/arch/x86/mm/ |
| D | amdtopology.c | 84 u64 base, limit; in amd_numa_init() local 87 limit = read_pci_config(0, nb, 1, 0x44 + i*8); in amd_numa_init() 89 nodeids[i] = nodeid = limit & 7; in amd_numa_init() 97 base, limit); in amd_numa_init() 101 if (!limit) { in amd_numa_init() 106 if ((base >> 8) & 3 || (limit >> 8) & 3) { in amd_numa_init() 108 nodeid, (base >> 8) & 3, (limit >> 8) & 3); in amd_numa_init() 117 limit >>= 16; in amd_numa_init() 118 limit++; in amd_numa_init() 119 limit <<= 24; in amd_numa_init() [all …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-4.19/net/sched/ |
| D | sch_fifo.c | 25 if (likely(sch->qstats.backlog + qdisc_pkt_len(skb) <= sch->limit)) in bfifo_enqueue() 34 if (likely(sch->q.qlen < sch->limit)) in pfifo_enqueue() 45 if (likely(sch->q.qlen < sch->limit)) in pfifo_tail_enqueue() 49 /* queue full, remove one skb to fulfill the limit */ in pfifo_tail_enqueue() 65 u32 limit = qdisc_dev(sch)->tx_queue_len; in fifo_init() local 68 limit *= psched_mtu(qdisc_dev(sch)); in fifo_init() 70 sch->limit = limit; in fifo_init() 77 sch->limit = ctl->limit; in fifo_init() 81 bypass = sch->limit >= psched_mtu(qdisc_dev(sch)); in fifo_init() 83 bypass = sch->limit >= 1; in fifo_init() [all …]
|
| /kernel/linux/linux-4.19/kernel/cgroup/ |
| D | pids.c | 5 * after a certain limit is reached. 7 * Since it is trivial to hit the task limit without hitting any kmemcg limits 20 * To set a cgroup to have no limit, set pids.max to "max". This is the default 22 * stringent limit in the hierarchy is followed). 51 atomic64_t limit; member 56 /* Number of times fork failed because limit was hit. */ 80 atomic64_set(&pids->limit, PIDS_MAX); in pids_css_alloc() 125 * This function does *not* follow the pid limit set. It cannot fail and the new 126 * pid count may exceed the limit. This is only used for reverting failed 127 * attaches, where there is no other way out than violating the limit. [all …]
|
| /kernel/linux/linux-5.10/kernel/cgroup/ |
| D | pids.c | 6 * after a certain limit is reached. 8 * Since it is trivial to hit the task limit without hitting any kmemcg limits 21 * To set a cgroup to have no limit, set pids.max to "max". This is the default 23 * stringent limit in the hierarchy is followed). 49 atomic64_t limit; member 54 /* Number of times fork failed because limit was hit. */ 78 atomic64_set(&pids->limit, PIDS_MAX); in pids_css_alloc() 123 * This function does *not* follow the pid limit set. It cannot fail and the new 124 * pid count may exceed the limit. This is only used for reverting failed 125 * attaches, where there is no other way out than violating the limit. [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/ |
| D | sch_red_core.sh | 408 local limit=$1; shift 412 # Build the below-the-limit backlog using UDP. We could use TCP just 414 # length is below the limit. The main stream is using TCP, and if the 415 # limit is misconfigured, we would see this traffic being ECN marked. 417 backlog=$(build_backlog $vlan $((2 * limit / 3)) udp) 420 check_err $? "backlog $backlog / $limit Got $pct% marked packets, expected == 0." 421 log_test "TC $((vlan - 10)): $name backlog < limit" 424 # backlog crosses the limit, and we want to make sure that the backlog 425 # is above the limit. 427 backlog=$(build_backlog $vlan $((3 * limit / 2)) tcp tos=0x01) [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/ |
| D | gpio-charger.yaml | 42 charge-current-limit-gpios: 47 charge-current-limit-mapping: 50 current limit. 55 Current limit in uA 58 charge-current-limit-gpios property. Bit 1 second to last 70 - charge-current-limit-gpios 73 charge-current-limit-gpios: [ charge-current-limit-mapping ] 74 charge-current-limit-mapping: [ charge-current-limit-gpios ] 89 charge-current-limit-gpios = <&gpioA 11 GPIO_ACTIVE_HIGH>, 91 charge-current-limit-mapping = <2500000 0x00>, // 2.5 A => both GPIOs low
|
| /kernel/linux/linux-5.10/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() 46 /* queue full, remove one skb to fulfill the 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() [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/tc-testing/tc-tests/qdiscs/ |
| D | red.json | 15 …"cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root red limit 1M avpkt 1500 min 100K max 300K… 18 "matchPattern": "qdisc red 1: root .* limit 1Mb min 100Kb max 300Kb $", 38 …"cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root red adaptive limit 1M avpkt 1500 min 100K… 41 "matchPattern": "qdisc red 1: root .* limit 1Mb min 100Kb max 300Kb adaptive $", 61 …"cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root red ecn limit 1M avpkt 1500 min 100K max … 64 "matchPattern": "qdisc red 1: root .* limit 1Mb min 100Kb max 300Kb ecn $", 84 …"cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root red ecn adaptive limit 1M avpkt 1500 min … 87 "matchPattern": "qdisc red 1: root .* limit 1Mb min 100Kb max 300Kb ecn adaptive $", 107 …"cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root red ecn harddrop limit 1M avpkt 1500 min … 110 "matchPattern": "qdisc red 1: root .* limit 1Mb min 100Kb max 300Kb ecn harddrop $", [all …]
|
| /kernel/linux/linux-5.10/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() 179 * @limit: Memory limit for this allocation [all …]
|