Home
last modified time | relevance | path

Searched refs:ratelimit (Results 1 – 25 of 40) sorted by relevance

12

/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/
Dfw_qos.c112 u8 *pg, u16 *ratelimit) in mlx4_SET_PORT_SCHEDULER() argument
130 if (ratelimit && ratelimit[i]) { in mlx4_SET_PORT_SCHEDULER()
131 if (ratelimit[i] <= MLX4_MAX_100M_UNITS_VAL) { in mlx4_SET_PORT_SCHEDULER()
132 r = ratelimit[i]; in mlx4_SET_PORT_SCHEDULER()
136 r = ratelimit[i] / 10; in mlx4_SET_PORT_SCHEDULER()
Dfw_qos.h85 u8 *pg, u16 *ratelimit);
Den_dcb_nl.c343 struct ieee_ets *ets, u16 *ratelimit) in mlx4_en_config_port_scheduler() argument
352 ratelimit = ratelimit ?: priv->maxrate; in mlx4_en_config_port_scheduler()
373 ratelimit); in mlx4_en_config_port_scheduler()
DKconfig22 If set to N, will not be able to configure QoS and ratelimit attributes.
/linux-6.6.21/kernel/
Duser.c102 .ratelimit = RATELIMIT_STATE_INIT(root_user.ratelimit, 0, 0),
210 ratelimit_state_init(&new->ratelimit, HZ, 100); in alloc_uid()
211 ratelimit_set_flags(&new->ratelimit, RATELIMIT_MSG_ON_RELEASE); in alloc_uid()
/linux-6.6.21/kernel/irq/
Ddebug.h13 static DEFINE_RATELIMIT_STATE(ratelimit, 5 * HZ, 5); in print_irq_desc()
15 if (!__ratelimit(&ratelimit)) in print_irq_desc()
/linux-6.6.21/drivers/acpi/
Dacpi_extlog.c119 struct ratelimit_state *ratelimit; in print_extlog_rcd() local
123 ratelimit = &ratelimit_corrected; in print_extlog_rcd()
125 ratelimit = &ratelimit_uncorrected; in print_extlog_rcd()
126 if (__ratelimit(ratelimit)) { in print_extlog_rcd()
/linux-6.6.21/mm/
Dpage_poison.c50 static DEFINE_RATELIMIT_STATE(ratelimit, 5 * HZ, 10); in check_poison_mem()
63 if (!__ratelimit(&ratelimit)) in check_poison_mem()
Dpage-writeback.c1998 int ratelimit; in balance_dirty_pages_ratelimited_flags() local
2010 ratelimit = current->nr_dirtied_pause; in balance_dirty_pages_ratelimited_flags()
2012 ratelimit = min(ratelimit, 32 >> (PAGE_SHIFT - 10)); in balance_dirty_pages_ratelimited_flags()
2022 if (unlikely(current->nr_dirtied >= ratelimit)) in balance_dirty_pages_ratelimited_flags()
2026 ratelimit = 0; in balance_dirty_pages_ratelimited_flags()
2034 if (*p > 0 && current->nr_dirtied < ratelimit) { in balance_dirty_pages_ratelimited_flags()
2036 nr_pages_dirtied = min(*p, ratelimit - current->nr_dirtied); in balance_dirty_pages_ratelimited_flags()
2042 if (unlikely(current->nr_dirtied >= ratelimit)) in balance_dirty_pages_ratelimited_flags()
/linux-6.6.21/fs/btrfs/
Dmessages.c220 struct ratelimit_state *ratelimit = &printk_limits[4]; in _btrfs_printk() local
235 ratelimit = &printk_limits[kern_level - '0']; in _btrfs_printk()
243 if (__ratelimit(ratelimit)) { in _btrfs_printk()
/linux-6.6.21/arch/x86/kernel/
Dumip.c120 static DEFINE_RATELIMIT_STATE(ratelimit, 2 * 60 * HZ, 5); in umip_printk()
125 if (!__ratelimit(&ratelimit)) in umip_printk()
/linux-6.6.21/include/linux/sched/
Duser.h36 struct ratelimit_state ratelimit; member
/linux-6.6.21/drivers/memory/
Dfsl-corenet-cf.c103 static DEFINE_RATELIMIT_STATE(ratelimit, DEFAULT_RATELIMIT_INTERVAL, in ccf_irq()
118 if (!__ratelimit(&ratelimit)) in ccf_irq()
/linux-6.6.21/arch/x86/kernel/cpu/
Dintel.c1037 int len = strlen(opt), ratelimit; in match_option() local
1046 if (sscanf(arg, "ratelimit:%d", &ratelimit) == 1 && in match_option()
1047 ratelimit > 0 && ratelimit <= 1000) { in match_option()
1048 ratelimit_state_init(&bld_ratelimit, HZ, ratelimit); in match_option()
/linux-6.6.21/fs/fat/
Dfat.h95 struct ratelimit_state ratelimit; member
436 __fat_fs_error(sb, __ratelimit(&MSDOS_SB(sb)->ratelimit), fmt , ## args)
448 if (__ratelimit(&MSDOS_SB(sb)->ratelimit)) \
/linux-6.6.21/drivers/power/supply/
Dcros_peripheral_charger.c177 static int cros_pchg_get_port_status(struct port_data *port, bool ratelimit) in cros_pchg_get_port_status() argument
181 if (ratelimit && in cros_pchg_get_port_status()
Dcros_usbpd-charger.c308 bool ratelimit) in cros_usbpd_charger_get_port_status() argument
312 if (ratelimit && in cros_usbpd_charger_get_port_status()
/linux-6.6.21/fs/efivarfs/
Dfile.c76 while (!__ratelimit(&file->f_cred->user->ratelimit)) in efivarfs_file_read()
/linux-6.6.21/Documentation/arch/x86/
Dbuslock.rst72 |ratelimit:N |Do nothing |Limit bus lock rate to |
117 ratelimit section in Guidance
/linux-6.6.21/arch/ia64/kernel/
Dirq_ia64.c449 static DEFINE_RATELIMIT_STATE(ratelimit, 5 * HZ, 5); in ia64_handle_irq()
451 if (__ratelimit(&ratelimit)) { in ia64_handle_irq()
/linux-6.6.21/arch/parisc/kernel/
Dunaligned.c376 static DEFINE_RATELIMIT_STATE(ratelimit, 5 * HZ, 5); in handle_unaligned()
390 __ratelimit(&ratelimit)) { in handle_unaligned()
/linux-6.6.21/kernel/time/
Dtick-sched.c1031 static int ratelimit; in report_idle_softirq() local
1044 if (ratelimit >= 10) in report_idle_softirq()
1053 ratelimit++; in report_idle_softirq()
/linux-6.6.21/fs/exfat/
Dexfat_fs.h272 struct ratelimit_state ratelimit; member
536 __exfat_fs_error(sb, __ratelimit(&EXFAT_SB(sb)->ratelimit), \
/linux-6.6.21/drivers/acpi/apei/
Dghes.c752 struct ratelimit_state *ratelimit; in ghes_print_estatus() local
755 ratelimit = &ratelimit_corrected; in ghes_print_estatus()
757 ratelimit = &ratelimit_uncorrected; in ghes_print_estatus()
758 if (__ratelimit(ratelimit)) { in ghes_print_estatus()
/linux-6.6.21/arch/sparc/kernel/
Dunaligned_64.c298 static DEFINE_RATELIMIT_STATE(ratelimit, 5 * HZ, 5); in log_unaligned()
300 if (__ratelimit(&ratelimit)) { in log_unaligned()

12