/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | test_spin_lock.c | 51 volatile int credit = 0, max_credit = 100, pkt_len = 64; in bpf_sping_lock_test() local 86 if (q->credit > max_credit) in bpf_sping_lock_test() 87 q->credit = max_credit; in bpf_sping_lock_test()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_spin_lock.c | 52 volatile int credit = 0, max_credit = 100, pkt_len = 64; in bpf_spin_lock_test() local 87 if (q->credit > max_credit) in bpf_spin_lock_test() 88 q->credit = max_credit; in bpf_spin_lock_test()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl2/ |
H A D | hw_atl2_llh.c | 107 const u32 max_credit) in hw_atl2_tps_tx_pkt_shed_tc_data_max_credit_set() 112 max_credit); in hw_atl2_tps_tx_pkt_shed_tc_data_max_credit_set() 105 hw_atl2_tps_tx_pkt_shed_tc_data_max_credit_set(struct aq_hw_s *aq_hw, const u32 tc, const u32 max_credit) hw_atl2_tps_tx_pkt_shed_tc_data_max_credit_set() argument
|
H A D | hw_atl2_llh.h | 54 const u32 max_credit);
|
H A D | hw_atl2.c | 256 /* By default max_credit is based upon MTU (in unit of 64b) */ in hw_atl2_hw_init_tx_tc_rate_limit() 298 u32 weight, max_credit; in hw_atl2_hw_init_tx_tc_rate_limit() local 313 max_credit = max(2 * weight, fixed_max_credit_4b); in hw_atl2_hw_init_tx_tc_rate_limit() 316 max_credit = 0xFFF0; in hw_atl2_hw_init_tx_tc_rate_limit() 321 max_credit); in hw_atl2_hw_init_tx_tc_rate_limit()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/aquantia/atlantic/hw_atl2/ |
H A D | hw_atl2_llh.c | 107 const u32 max_credit) in hw_atl2_tps_tx_pkt_shed_tc_data_max_credit_set() 112 max_credit); in hw_atl2_tps_tx_pkt_shed_tc_data_max_credit_set() 105 hw_atl2_tps_tx_pkt_shed_tc_data_max_credit_set(struct aq_hw_s *aq_hw, const u32 tc, const u32 max_credit) hw_atl2_tps_tx_pkt_shed_tc_data_max_credit_set() argument
|
H A D | hw_atl2_llh.h | 54 const u32 max_credit);
|
H A D | hw_atl2.c | 256 /* By default max_credit is based upon MTU (in unit of 64b) */ in hw_atl2_hw_init_tx_tc_rate_limit() 298 u32 weight, max_credit; in hw_atl2_hw_init_tx_tc_rate_limit() local 313 max_credit = max(2 * weight, fixed_max_credit_4b); in hw_atl2_hw_init_tx_tc_rate_limit() 316 max_credit = 0xFFF0; in hw_atl2_hw_init_tx_tc_rate_limit() 321 max_credit); in hw_atl2_hw_init_tx_tc_rate_limit()
|
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | hbm_out_kern.c | 66 int max_credit = MAX_CREDIT; in _hbm_out_cg() local
|
/kernel/linux/linux-6.6/samples/bpf/ |
H A D | hbm_out_kern.c | 66 int max_credit = MAX_CREDIT; in _hbm_out_cg() local
|
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
H A D | hw_atl_llh.h | 711 const u32 max_credit); 725 const u32 max_credit);
|
H A D | hw_atl_b0.c | 348 /* By default max_credit is based upon MTU (in unit of 64b) */ in hw_atl_b0_hw_init_tx_tc_rate_limit() 393 u32 weight, max_credit; in hw_atl_b0_hw_init_tx_tc_rate_limit() local 408 max_credit = max(8 * weight, fixed_max_credit); in hw_atl_b0_hw_init_tx_tc_rate_limit() 411 max_credit = 0xFFF; in hw_atl_b0_hw_init_tx_tc_rate_limit() 416 max_credit); in hw_atl_b0_hw_init_tx_tc_rate_limit()
|
H A D | hw_atl_llh.c | 1512 const u32 max_credit) in hw_atl_tps_tx_pkt_shed_desc_tc_max_credit_set() 1517 max_credit); in hw_atl_tps_tx_pkt_shed_desc_tc_max_credit_set() 1541 const u32 max_credit) in hw_atl_tps_tx_pkt_shed_tc_data_max_credit_set() 1546 max_credit); in hw_atl_tps_tx_pkt_shed_tc_data_max_credit_set() 1510 hw_atl_tps_tx_pkt_shed_desc_tc_max_credit_set(struct aq_hw_s *aq_hw, const u32 tc, const u32 max_credit) hw_atl_tps_tx_pkt_shed_desc_tc_max_credit_set() argument 1539 hw_atl_tps_tx_pkt_shed_tc_data_max_credit_set(struct aq_hw_s *aq_hw, const u32 tc, const u32 max_credit) hw_atl_tps_tx_pkt_shed_tc_data_max_credit_set() argument
|
/kernel/linux/linux-6.6/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
H A D | hw_atl_llh.h | 711 const u32 max_credit); 725 const u32 max_credit);
|
H A D | hw_atl_llh.c | 1512 const u32 max_credit) in hw_atl_tps_tx_pkt_shed_desc_tc_max_credit_set() 1517 max_credit); in hw_atl_tps_tx_pkt_shed_desc_tc_max_credit_set() 1541 const u32 max_credit) in hw_atl_tps_tx_pkt_shed_tc_data_max_credit_set() 1546 max_credit); in hw_atl_tps_tx_pkt_shed_tc_data_max_credit_set() 1510 hw_atl_tps_tx_pkt_shed_desc_tc_max_credit_set(struct aq_hw_s *aq_hw, const u32 tc, const u32 max_credit) hw_atl_tps_tx_pkt_shed_desc_tc_max_credit_set() argument 1539 hw_atl_tps_tx_pkt_shed_tc_data_max_credit_set(struct aq_hw_s *aq_hw, const u32 tc, const u32 max_credit) hw_atl_tps_tx_pkt_shed_tc_data_max_credit_set() argument
|
H A D | hw_atl_b0.c | 348 /* By default max_credit is based upon MTU (in unit of 64b) */ in hw_atl_b0_hw_init_tx_tc_rate_limit() 393 u32 weight, max_credit; in hw_atl_b0_hw_init_tx_tc_rate_limit() local 408 max_credit = max(8 * weight, fixed_max_credit); in hw_atl_b0_hw_init_tx_tc_rate_limit() 411 max_credit = 0xFFF; in hw_atl_b0_hw_init_tx_tc_rate_limit() 416 max_credit); in hw_atl_b0_hw_init_tx_tc_rate_limit()
|
/kernel/linux/linux-5.10/drivers/net/xen-netback/ |
H A D | netback.c | 181 unsigned long max_burst, max_credit; in tx_add_credit() local 190 max_credit = queue->remaining_credit + queue->credit_bytes; in tx_add_credit() 191 if (max_credit < queue->remaining_credit) in tx_add_credit() 192 max_credit = ULONG_MAX; /* wrapped: clamp to ULONG_MAX */ in tx_add_credit() 194 queue->remaining_credit = min(max_credit, max_burst); in tx_add_credit()
|
/kernel/linux/linux-6.6/drivers/net/xen-netback/ |
H A D | netback.c | 181 unsigned long max_burst, max_credit; in tx_add_credit() local 190 max_credit = queue->remaining_credit + queue->credit_bytes; in tx_add_credit() 191 if (max_credit < queue->remaining_credit) in tx_add_credit() 192 max_credit = ULONG_MAX; /* wrapped: clamp to ULONG_MAX */ in tx_add_credit() 194 queue->remaining_credit = min(max_credit, max_burst); in tx_add_credit()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_prototype.h | 263 u16 seid, u16 credit, u8 max_credit,
|
H A D | i40e_common.c | 3951 * @max_credit: Max BW limit credits 3955 u16 seid, u16 credit, u8 max_credit, in i40e_aq_config_vsi_bw_limit() 3968 cmd->max_credit = max_credit; in i40e_aq_config_vsi_bw_limit() 3954 i40e_aq_config_vsi_bw_limit(struct i40e_hw *hw, u16 seid, u16 credit, u8 max_credit, struct i40e_asq_cmd_details *cmd_details) i40e_aq_config_vsi_bw_limit() argument
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_prototype.h | 233 u16 seid, u16 credit, u8 max_credit,
|
H A D | i40e_common.c | 4034 * @max_credit: Max BW limit credits 4038 u16 seid, u16 credit, u8 max_credit, in i40e_aq_config_vsi_bw_limit() 4051 cmd->max_credit = max_credit; in i40e_aq_config_vsi_bw_limit() 4037 i40e_aq_config_vsi_bw_limit(struct i40e_hw *hw, u16 seid, u16 credit, u8 max_credit, struct i40e_asq_cmd_details *cmd_details) i40e_aq_config_vsi_bw_limit() argument
|
H A D | i40e_adminq_cmd.h | 1330 u8 max_credit; /* 0-3, limit = 2^max */ member
|
/kernel/linux/linux-5.10/include/linux/qed/ |
H A D | qed_if.h | 49 u32 max_credit; member
|
/kernel/linux/linux-6.6/include/linux/qed/ |
H A D | qed_if.h | 53 u32 max_credit; member
|