Home
last modified time | relevance | path

Searched refs:ets_cfg (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/intel/ice/
Dice_dcb.c160 ice_parse_ieee_ets_common_tlv(u8 *buf, struct ice_dcb_ets_cfg *ets_cfg) in ice_parse_ieee_ets_common_tlv() argument
174 ets_cfg->prio_table[i * 2] = in ice_parse_ieee_ets_common_tlv()
176 ets_cfg->prio_table[i * 2 + 1] = in ice_parse_ieee_ets_common_tlv()
194 ets_cfg->tcbwtable[i] = buf[offset]; in ice_parse_ieee_ets_common_tlv()
195 ets_cfg->tsatable[i] = buf[ICE_MAX_TRAFFIC_CLASS + offset++]; in ice_parse_ieee_ets_common_tlv()
1068 ice_add_ieee_ets_common_tlv(u8 *buf, struct ice_dcb_ets_cfg *ets_cfg) in ice_add_ieee_ets_common_tlv() argument
1083 priority0 = ets_cfg->prio_table[i * 2] & 0xF; in ice_add_ieee_ets_common_tlv()
1084 priority1 = ets_cfg->prio_table[i * 2 + 1] & 0xF; in ice_add_ieee_ets_common_tlv()
1102 buf[offset] = ets_cfg->tcbwtable[i]; in ice_add_ieee_ets_common_tlv()
1103 buf[ICE_MAX_TRAFFIC_CLASS + offset] = ets_cfg->tsatable[i]; in ice_add_ieee_ets_common_tlv()
/linux-6.12.1/drivers/net/ethernet/intel/igb/
De1000_82575.c2780 u16 ets_cfg; in igb_get_thermal_sensor_data_generic() local
2798 hw->nvm.ops.read(hw, ets_offset, 1, &ets_cfg); in igb_get_thermal_sensor_data_generic()
2799 if (FIELD_GET(NVM_ETS_TYPE_MASK, ets_cfg) in igb_get_thermal_sensor_data_generic()
2803 num_sensors = (ets_cfg & NVM_ETS_NUM_SENSORS_MASK); in igb_get_thermal_sensor_data_generic()
2831 u16 ets_cfg; in igb_init_thermal_sensor_thresh_generic() local
2857 hw->nvm.ops.read(hw, ets_offset, 1, &ets_cfg); in igb_init_thermal_sensor_thresh_generic()
2858 if (FIELD_GET(NVM_ETS_TYPE_MASK, ets_cfg) in igb_init_thermal_sensor_thresh_generic()
2862 low_thresh_delta = FIELD_GET(NVM_ETS_LTHRES_DELTA_MASK, ets_cfg); in igb_init_thermal_sensor_thresh_generic()
2863 num_sensors = (ets_cfg & NVM_ETS_NUM_SENSORS_MASK); in igb_init_thermal_sensor_thresh_generic()
/linux-6.12.1/drivers/net/ethernet/intel/ixgbe/
Dixgbe_common.c3878 static int ixgbe_get_ets_data(struct ixgbe_hw *hw, u16 *ets_cfg, in ixgbe_get_ets_data() argument
3890 status = hw->eeprom.ops.read(hw, *ets_offset, ets_cfg); in ixgbe_get_ets_data()
3894 if ((*ets_cfg & IXGBE_ETS_TYPE_MASK) != IXGBE_ETS_TYPE_EMC_SHIFTED) in ixgbe_get_ets_data()
3911 u16 ets_cfg; in ixgbe_get_thermal_sensor_data_generic() local
3920 status = ixgbe_get_ets_data(hw, &ets_cfg, &ets_offset); in ixgbe_get_thermal_sensor_data_generic()
3924 num_sensors = (ets_cfg & IXGBE_ETS_NUM_SENSORS_MASK); in ixgbe_get_thermal_sensor_data_generic()
3970 u16 ets_cfg; in ixgbe_init_thermal_sensor_thresh_generic() local
3980 status = ixgbe_get_ets_data(hw, &ets_cfg, &ets_offset); in ixgbe_init_thermal_sensor_thresh_generic()
3984 low_thresh_delta = FIELD_GET(IXGBE_ETS_LTHRES_DELTA_MASK, ets_cfg); in ixgbe_init_thermal_sensor_thresh_generic()
3985 num_sensors = (ets_cfg & IXGBE_ETS_NUM_SENSORS_MASK); in ixgbe_init_thermal_sensor_thresh_generic()