Home
last modified time | relevance | path

Searched refs:hwm (Results 1 – 17 of 17) sorted by relevance

/linux-6.15/drivers/hwmon/
H A Dqnap-mcu-hwmon.c111 val = clamp_val(val, hwm->pwm_min, hwm->pwm_max); in qnap_mcu_hwmon_write()
190 if (!hwm) in qnap_mcu_hwmon_get_max_state()
203 if (!hwm) in qnap_mcu_hwmon_get_cur_state()
217 if (!hwm || state > hwm->fan_max_state) in qnap_mcu_hwmon_set_cur_state()
276 if (hwm->fan_cooling_levels[i] > hwm->pwm_max) in qnap_mcu_hwmon_get_cooling_data()
278 hwm->fan_cooling_levels[i], hwm->pwm_max); in qnap_mcu_hwmon_get_cooling_data()
303 hwm = devm_kzalloc(dev, sizeof(*hwm), GFP_KERNEL); in qnap_mcu_hwmon_probe()
304 if (!hwm) in qnap_mcu_hwmon_probe()
317 ret = qnap_mcu_hwmon_set_pwm(hwm, hwm->pwm_max); in qnap_mcu_hwmon_probe()
328 hwm->fan_state = hwm->fan_max_state; in qnap_mcu_hwmon_probe()
[all …]
H A Dmlxreg-fan.c583 struct device *hwm; in mlxreg_fan_probe() local
603 hwm = devm_hwmon_device_register_with_info(dev, "mlxreg_fan", in mlxreg_fan_probe()
607 if (IS_ERR(hwm)) { in mlxreg_fan_probe()
609 return PTR_ERR(hwm); in mlxreg_fan_probe()
/linux-6.15/drivers/net/fddi/skfp/
H A Dhwmtm.c273 smc->os.hwm.mbuf_pool.mb_start=(SMbuf *)(&smc->os.hwm.mbuf_pool.mb[0]) ; in mac_drv_init()
449 smc->os.hwm.llc_rx_pipe = smc->os.hwm.llc_rx_tail = (SMbuf *)NULL ; in init_fddi_driver()
450 smc->os.hwm.txd_tx_pipe = smc->os.hwm.txd_tx_tail = NULL ; in init_fddi_driver()
451 smc->os.hwm.pass_SMT = smc->os.hwm.pass_NSA = smc->os.hwm.pass_DB = 0 ; in init_fddi_driver()
453 smc->os.hwm.queued_rx_frames = smc->os.hwm.queued_txd_mb = 0 ; in init_fddi_driver()
455 smc->os.hwm.rx_break = 0 ; in init_fddi_driver()
1006 smc->os.hwm.pass_SMT = smc->os.hwm.pass_NSA = FALSE ; in mac_drv_rx_mode()
1676 smc->os.hwm.tx_data = in hwm_tx_frag()
1681 smc->os.hwm.tx_len) ; in hwm_tx_frag()
1686 if (smc->os.hwm.tx_mb) { in hwm_tx_frag()
[all …]
/linux-6.15/tools/perf/util/
H A Dhwmon_pmu.c348 struct hwmon_pmu *hwm; in hwmon_pmu__new() local
350 hwm = zalloc(sizeof(*hwm)); in hwmon_pmu__new()
351 if (!hwm) in hwmon_pmu__new()
362 hwm->pmu.name = strdup(buf); in hwmon_pmu__new()
363 if (!hwm->pmu.name) in hwmon_pmu__new()
366 if (!hwm->pmu.alias_name) in hwmon_pmu__new()
369 if (!hwm->pmu.cpus) in hwmon_pmu__new()
378 return &hwm->pmu; in hwmon_pmu__new()
381 free(hwm->pmu.alias_name); in hwmon_pmu__new()
382 free(hwm); in hwmon_pmu__new()
[all …]
/linux-6.15/tools/perf/tests/
H A Dhwmon_pmu.c37 static int test_pmu_put(const char *dir, struct perf_pmu *hwm) in test_pmu_put() argument
50 list_del(&hwm->list); in test_pmu_put()
51 perf_pmu__delete(hwm); in test_pmu_put()
75 struct perf_pmu *hwm = NULL; in test_pmu_get() local
133 hwm = perf_pmus__add_test_hwmon_pmu(hwmon_dirfd, "hwmon1234", test_hwmon_name); in test_pmu_get()
134 if (!hwm) in test_pmu_get()
138 if (!hwm) { in test_pmu_get()
139 test_pmu_put(dir, hwm); in test_pmu_get()
145 return hwm; in test_pmu_get()
/linux-6.15/fs/jfs/
H A Djfs_txnmgr.c792 xtlck->hwm.offset = 0; in txLock()
1666 int next, lwm, hwm; in xtLog() local
1816 hwm = xtlck->hwm.offset; in xtLog()
1900 hwm = xtlck->hwm.offset; in xtLog()
1943 if (hwm >= next) { in xtLog()
1952 hwm = xtlck->hwm.offset; in xtLog()
1954 cpu_to_le16(hwm - next + 1); in xtLog()
1957 xtlck->header.length = hwm - next + 1; in xtLog()
2004 ip, mp, pxdlock->count, hwm); in xtLog()
2012 if (hwm >= next) { in xtLog()
[all …]
H A Djfs_txnmgr.h186 struct lv hwm; /* 2: high water mark */ member
H A Djfs_xtree.c2326 xtlck->hwm.offset = le16_to_cpu(p->header.nextindex) - 1; in xtTruncate()
2529 xtlck->hwm.offset = in xtTruncate()
2604 xtlck->hwm.offset = in xtTruncate()
2823 xtlck->hwm.offset = index; in xtTruncate_pmap()
2855 xtlck->hwm.offset = le16_to_cpu(p->header.nextindex) - 1; in xtTruncate_pmap()
H A Djfs_dmap.c617 s64 hwm = 0; in dbNextAG() local
650 } else if (bmp->db_agfree[agpref] > hwm) { in dbNextAG()
652 hwm = bmp->db_agfree[agpref]; in dbNextAG()
/linux-6.15/drivers/net/ethernet/chelsio/cxgb3/
H A Dxgmac.c339 int hwm; in rx_fifo_hwm() local
341 hwm = max(MAC_RXFIFO_SIZE - 3 * mtu, (MAC_RXFIFO_SIZE * 38) / 100); in rx_fifo_hwm()
342 return min(hwm, MAC_RXFIFO_SIZE - 8192); in rx_fifo_hwm()
347 int hwm, lwm, divisor; in t3_mac_set_mtu() local
395 hwm = rx_fifo_hwm(mtu); in t3_mac_set_mtu()
402 V_RXFIFOPAUSEHWM(hwm / 8); in t3_mac_set_mtu()
421 (hwm - lwm) * 4 / divisor); in t3_mac_set_mtu()
/linux-6.15/drivers/net/fddi/skfp/h/
H A Dtargetos.h151 struct hw_modul hwm ; member
/linux-6.15/block/
H A Dblk-iocost.c1233 u32 hwm = WEIGHT_ONE; in current_hweight_max() local
1245 hwm = div64_u64((u64)hwm * inuse, child_inuse_sum); in current_hweight_max()
1250 return max_t(u32, hwm, 1); in current_hweight_max()
1750 static u32 hweight_after_donation(struct ioc_gq *iocg, u32 old_hwi, u32 hwm, in hweight_after_donation() argument
1764 return hwm; in hweight_after_donation()
1796 return clamp_t(s64, new_hwi, 1, hwm); in hweight_after_donation()
2320 u32 hwa, old_hwi, hwm, new_hwi, usage; in ioc_timer_fn() local
2347 hwm = current_hweight_max(iocg); in ioc_timer_fn()
2348 new_hwi = hweight_after_donation(iocg, old_hwi, hwm, in ioc_timer_fn()
2357 if (new_hwi < hwm && hwa >= 2) { in ioc_timer_fn()
/linux-6.15/arch/arm/boot/dts/aspeed/
H A Daspeed-bmc-asrock-x570d4u.dts89 /* G */ "output-hwm-vbat-enable", "input-id0-n", "input-id1-n",
/linux-6.15/drivers/net/ethernet/intel/igb/
H A Digb_main.c2272 u32 pba, hwm; in igb_reset() local
2349 hwm = (pba << 10) - (adapter->max_frame_size + MAX_JUMBO_FRAME_SIZE); in igb_reset()
2351 fc->high_water = hwm & 0xFFFFFFF0; /* 16-byte granularity */ in igb_reset()
10062 u16 hwm; in igb_init_dmac() local
10074 hwm = 64 * (pba - 6); in igb_init_dmac()
10077 reg |= FIELD_PREP(E1000_FCRTC_RTH_COAL_MASK, hwm); in igb_init_dmac()
/linux-6.15/drivers/net/ethernet/intel/e1000/
H A De1000_main.c555 u16 hwm; in e1000_reset() local
665 hwm = min(((pba << 10) * 9 / 10), in e1000_reset()
668 hw->fc_high_water = hwm & 0xFFF8; /* 8-byte granularity */ in e1000_reset()
/linux-6.15/drivers/net/ethernet/intel/igc/
H A Digc_main.c84 u32 pba, hwm; in igc_reset() local
97 hwm = (pba << 10) - (adapter->max_frame_size + MAX_JUMBO_FRAME_SIZE); in igc_reset()
99 fc->high_water = hwm & 0xFFFFFFF0; /* 16-byte granularity */ in igc_reset()
/linux-6.15/drivers/net/ethernet/intel/e1000e/
H A Dnetdev.c3954 u16 hwm; in e1000e_reset() local
4029 hwm = min(((pba << 10) * 9 / 10), in e1000e_reset()
4032 fc->high_water = hwm & E1000_FCRTH_RTH; /* 8-byte granularity */ in e1000e_reset()