/linux/drivers/hwmon/ |
H A D | qnap-mcu-hwmon.c | 32 static int qnap_mcu_hwmon_get_rpm(struct qnap_mcu_hwmon *hwm) in qnap_mcu_hwmon_get_rpm() argument 39 ret = qnap_mcu_exec(hwm->mcu, cmd, sizeof(cmd), reply, sizeof(reply)); in qnap_mcu_hwmon_get_rpm() 50 static int qnap_mcu_hwmon_get_pwm(struct qnap_mcu_hwmon *hwm) in qnap_mcu_hwmon_get_pwm() argument 57 ret = qnap_mcu_exec(hwm->mcu, cmd, sizeof(cmd), reply, sizeof(reply)); in qnap_mcu_hwmon_get_pwm() 68 static int qnap_mcu_hwmon_set_pwm(struct qnap_mcu_hwmon *hwm, u8 pwm) in qnap_mcu_hwmon_set_pwm() argument 73 return qnap_mcu_exec_with_ack(hwm->mcu, cmd, sizeof(cmd)); in qnap_mcu_hwmon_set_pwm() 76 static int qnap_mcu_hwmon_get_temp(struct qnap_mcu_hwmon *hwm) in qnap_mcu_hwmon_get_temp() argument 83 ret = qnap_mcu_exec(hwm->mcu, cmd, sizeof(cmd), reply, sizeof(reply)); in qnap_mcu_hwmon_get_temp() 102 struct qnap_mcu_hwmon *hwm = dev_get_drvdata(dev); in qnap_mcu_hwmon_write() local 110 val = clamp_val(val, hwm in qnap_mcu_hwmon_write() 123 struct qnap_mcu_hwmon *hwm = dev_get_drvdata(dev); qnap_mcu_hwmon_read() local 187 struct qnap_mcu_hwmon *hwm = cdev->devdata; qnap_mcu_hwmon_get_max_state() local 200 struct qnap_mcu_hwmon *hwm = cdev->devdata; qnap_mcu_hwmon_get_cur_state() local 213 struct qnap_mcu_hwmon *hwm = cdev->devdata; qnap_mcu_hwmon_set_cur_state() local 239 struct qnap_mcu_hwmon *hwm = data; devm_fan_node_release() local 244 qnap_mcu_hwmon_get_cooling_data(struct device * dev,struct qnap_mcu_hwmon * hwm) qnap_mcu_hwmon_get_cooling_data() argument 296 struct qnap_mcu_hwmon *hwm; qnap_mcu_hwmon_probe() local [all...] |
H A D | mlxreg-fan.c | 583 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/drivers/net/fddi/skfp/ |
H A D | hwmtm.c | 263 if (!(smc->os.hwm.descr_p = (union s_fp_descr volatile *) in mac_drv_init() 266 return 1; /* no space the hwm modul can't work */ in mac_drv_init() 273 smc->os.hwm.mbuf_pool.mb_start=(SMbuf *)(&smc->os.hwm.mbuf_pool.mb[0]) ; in mac_drv_init() 276 if (!(smc->os.hwm.mbuf_pool.mb_start = (SMbuf *) mac_drv_get_space(smc, in mac_drv_init() 278 return 1; /* no space the hwm modul can't work */ in mac_drv_init() 284 return 1; /* no space the hwm modul can't work */ in mac_drv_init() 356 ds = (struct s_smt_fp_txd volatile *) ((char *)smc->os.hwm.descr_p + in init_txd_ring() 393 ds = (struct s_smt_fp_rxd volatile *) smc->os.hwm.descr_p ; in init_rxd_ring() 426 mb = smc->os.hwm in init_fddi_driver() [all...] |
/linux/tools/perf/util/ |
H A D | hwmon_pmu.c | 349 struct hwmon_pmu *hwm; in hwmon_pmu__new() local 360 hwm = zalloc(sizeof(*hwm)); in hwmon_pmu__new() 361 if (!hwm) in hwmon_pmu__new() 364 if (perf_pmu__init(&hwm->pmu, type, buf) != 0) { in hwmon_pmu__new() 365 perf_pmu__delete(&hwm->pmu); in hwmon_pmu__new() 369 hwm->hwmon_dir = strdup(hwmon_dir); in hwmon_pmu__new() 370 if (!hwm->hwmon_dir) { in hwmon_pmu__new() 371 perf_pmu__delete(&hwm->pmu); in hwmon_pmu__new() 374 hwm in hwmon_pmu__new() 395 struct hwmon_pmu *hwm = container_of(pmu, struct hwmon_pmu, pmu); hwmon_pmu__exit() local 410 hwmon_pmu__describe_items(struct hwmon_pmu * hwm,char * out_buf,size_t out_buf_len,union hwmon_pmu_event_key key,const unsigned long * items,bool is_alarm) hwmon_pmu__describe_items() argument 461 struct hwmon_pmu *hwm = container_of(pmu, struct hwmon_pmu, pmu); hwmon_pmu__for_each_event() local 547 struct hwmon_pmu *hwm = container_of(pmu, struct hwmon_pmu, pmu); hwmon_pmu__num_events() local 555 struct hwmon_pmu *hwm = container_of(pmu, struct hwmon_pmu, pmu); hwmon_pmu__have_event() local 585 hwmon_pmu__config_term(const struct hwmon_pmu * hwm,struct perf_event_attr * attr,struct parse_events_term * term,struct parse_events_error * err) hwmon_pmu__config_term() argument 651 struct hwmon_pmu *hwm = container_of(pmu, struct hwmon_pmu, pmu); hwmon_pmu__config_terms() local 763 struct hwmon_pmu *hwm = container_of(evsel->pmu, struct hwmon_pmu, pmu); evsel__hwmon_pmu_open() local [all...] |
/linux/tools/perf/tests/ |
H A D | hwmon_pmu.c | 37 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 134 hwm = perf_pmus__add_test_hwmon_pmu(dir, "hwmon1234", test_hwmon_name); in test_pmu_get() 135 if (!hwm) in test_pmu_get() 139 if (!hwm) { in test_pmu_get() 140 test_pmu_put(dir, hwm); in test_pmu_get() 146 return hwm; in test_pmu_get()
|
/linux/fs/jfs/ |
H A D | jfs_txnmgr.c | 792 xtlck->hwm.offset = 0; in txLock() 1666 int next, lwm, hwm; in xtLog() local 1810 * XAD[XTENTRYSTART:hwm) from the deleted page itself in xtLog() 1816 hwm = xtlck->hwm.offset; in xtLog() 1818 cpu_to_le16(hwm - XTENTRYSTART + 1); in xtLog() 1821 xtlck->header.length = hwm - XTENTRYSTART + 1; in xtLog() 1826 * to free extents of XAD[XTENTRYSTART:hwm) from the in xtLog() 1830 xadlock->count = hwm - XTENTRYSTART + 1; in xtLog() 1880 * | | hwm in xtLog() [all...] |
H A D | jfs_txnmgr.h | 186 struct lv hwm; /* 2: high water mark */ member
|
H A D | jfs_dmap.c | 621 s64 hwm = 0; in dbNextAG() local 654 } else if (bmp->db_agfree[agpref] > hwm) { in dbNextAG() 656 hwm = bmp->db_agfree[agpref]; in dbNextAG()
|
/linux/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | xgmac.c | 339 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/drivers/net/fddi/skfp/h/ |
H A D | targetos.h | 151 struct hw_modul hwm ; member
|
/linux/block/ |
H A D | blk-iocost.c | 1233 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() 1747 * capacity. @hwm is the upper bound and used to signal no donation. This 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 in ioc_timer_fn() [all...] |
/linux/arch/arm/boot/dts/aspeed/ |
H A D | aspeed-bmc-asrock-x570d4u.dts | 89 /* G */ "output-hwm-vbat-enable", "input-id0-n", "input-id1-n",
|
/linux/drivers/net/ethernet/intel/e1000/ |
H A D | e1000_main.c | 551 u16 hwm; in e1000_reset() local 661 hwm = min(((pba << 10) * 9 / 10), in e1000_reset() 664 hw->fc_high_water = hwm & 0xFFF8; /* 8-byte granularity */ in e1000_reset()
|
/linux/drivers/net/ethernet/intel/igc/ |
H A D | igc_main.c | 84 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()
|