Home
last modified time | relevance | path

Searched refs:clock_type (Results 1 – 25 of 73) sorted by relevance

123

/openbmc/qemu/util/
H A Dtimed-average.c97 void timed_average_init(TimedAverage *ta, QEMUClockType clock_type, in timed_average_init() argument
100 int64_t now = qemu_clock_get_ns(clock_type); in timed_average_init()
108 ta->clock_type = clock_type; in timed_average_init()
128 int64_t now = qemu_clock_get_ns(ta->clock_type); in check_expirations()
H A Dthrottle.c208 aio_timer_new(new_context, tt->clock_type, SCALE_NS, in throttle_timers_attach_aio_context()
237 QEMUClockType clock_type, in throttle_timers_init() argument
245 tt->clock_type = clock_type; in throttle_timers_init()
397 QEMUClockType clock_type, in throttle_config() argument
410 ts->previous_leak = qemu_clock_get_ns(clock_type); in throttle_config()
436 int64_t now = qemu_clock_get_ns(tt->clock_type); in throttle_schedule_timer()
/openbmc/linux/drivers/staging/sm750fb/
H A Dddk750_chip.h34 enum clock_type { enum
43 enum clock_type clock_type; member
H A Dddk750_mode.c85 if (pll->clock_type == SECONDARY_PLL) { in programModeRegisters()
138 } else if (pll->clock_type == PRIMARY_PLL) { in programModeRegisters()
210 int ddk750_setModeTiming(struct mode_parameter *parm, enum clock_type clock) in ddk750_setModeTiming()
215 pll.clock_type = clock; in ddk750_setModeTiming()
H A Dddk750_mode.h36 int ddk750_setModeTiming(struct mode_parameter *parm, enum clock_type clock);
/openbmc/qemu/block/
H A Daccounting.c32 static QEMUClockType clock_type = QEMU_CLOCK_REALTIME; variable
39 clock_type = QEMU_CLOCK_VIRTUAL; in block_acct_init()
89 timed_average_init(&s->latency[i], clock_type, in block_acct_add_interval()
111 cookie->start_time_ns = qemu_clock_get_ns(clock_type); in block_acct_start()
207 int64_t time_ns = qemu_clock_get_ns(clock_type); in block_account_one_io()
266 stats->last_access_time_ns = qemu_clock_get_ns(clock_type); in block_acct_invalid()
283 return qemu_clock_get_ns(clock_type) - stats->last_access_time_ns; in block_acct_idle_time_ns()
H A Dthrottle-groups.c78 QEMUClockType clock_type; member
345 int64_t now = qemu_clock_get_ns(tg->clock_type); in schedule_next_request()
480 throttle_config(ts, tg->clock_type, cfg); in throttle_group_config()
568 tg->clock_type, in throttle_group_register_tgm()
758 tg->clock_type = QEMU_CLOCK_REALTIME; in throttle_group_obj_init()
761 tg->clock_type = QEMU_CLOCK_VIRTUAL; in throttle_group_obj_init()
794 throttle_config(&tg->ts, tg->clock_type, &cfg); in throttle_group_obj_complete()
905 throttle_config(&tg->ts, tg->clock_type, &cfg); in throttle_group_set_limits()
/openbmc/linux/drivers/nfc/fdp/
H A Di2c.c218 u8 *clock_type, u32 *clock_freq, in fdp_nci_i2c_read_device_properties() argument
224 r = device_property_read_u8(dev, FDP_DP_CLOCK_TYPE_NAME, clock_type); in fdp_nci_i2c_read_device_properties()
227 *clock_type = 0; in fdp_nci_i2c_read_device_properties()
268 *clock_type, *clock_freq, *fw_vsc_cfg != NULL ? "yes" : "no"); in fdp_nci_i2c_read_device_properties()
283 u8 clock_type; in fdp_nci_i2c_probe() local
328 fdp_nci_i2c_read_device_properties(dev, &clock_type, &clock_freq, in fdp_nci_i2c_probe()
334 clock_type, clock_freq, fw_vsc_cfg); in fdp_nci_i2c_probe()
H A Dfdp.c56 u8 clock_type; member
119 static int fdp_nci_set_clock(struct nci_dev *ndev, u8 clock_type, in fdp_nci_set_clock() argument
139 data[8] = clock_type; in fdp_nci_set_clock()
547 r = fdp_nci_set_clock(ndev, info->clock_type, info->clock_freq); in fdp_nci_post_setup()
701 int tx_tailroom, u8 clock_type, u32 clock_freq, in fdp_nci_probe() argument
716 info->clock_type = clock_type; in fdp_nci_probe()
H A Dfdp.h26 u8 clock_type, u32 clock_freq, const u8 *fw_vsc_cfg);
/openbmc/qemu/include/qemu/
H A Dthrottle.h110 QEMUClockType clock_type; /* the clock used */ member
127 QEMUClockType clock_type,
147 QEMUClockType clock_type,
H A Dtimed-average.h50 QEMUClockType clock_type; /* the clock used */ member
53 void timed_average_init(TimedAverage *ta, QEMUClockType clock_type,
/openbmc/linux/include/uapi/linux/hdlc/
H A Dioctl.h42 unsigned int clock_type; /* internal, external, TX-internal etc. */ member
48 unsigned int clock_type; /* internal, external, TX-internal etc. */ member
/openbmc/linux/tools/testing/selftests/timers/
H A Dinconsistency-check.c94 int consistency_test(int clock_type, unsigned long seconds) in consistency_test() argument
102 clock_gettime(clock_type, &list[0]); in consistency_test()
114 clock_gettime(clock_type, &list[i]); in consistency_test()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/
H A Ddce112_clk_mgr.c87 dce_clk_params.clock_type = DCECLOCK_TYPE_DISPLAY_CLOCK; in dce112_set_clock()
102 dce_clk_params.clock_type = DCECLOCK_TYPE_DPREFCLK; in dce112_set_clock()
141 dce_clk_params.clock_type = DCECLOCK_TYPE_DISPLAY_CLOCK; in dce112_set_dispclk()
176 dce_clk_params.clock_type = DCECLOCK_TYPE_DPREFCLK; in dce112_set_dprefclk()
/openbmc/linux/drivers/net/wan/
H A Dc101.c146 switch (port->settings.clock_type) { in c101_set_iface()
256 if (new_line.clock_type != CLOCK_EXT && in c101_ioctl()
257 new_line.clock_type != CLOCK_TXFROMRX && in c101_ioctl()
258 new_line.clock_type != CLOCK_INT && in c101_ioctl()
259 new_line.clock_type != CLOCK_TXINT) in c101_ioctl()
369 card->settings.clock_type = CLOCK_EXT; in c101_run()
H A Dpci200syn.c119 switch (port->settings.clock_type) { in pci200_set_iface()
208 if (new_line.clock_type != CLOCK_EXT && in pci200_ioctl()
209 new_line.clock_type != CLOCK_TXFROMRX && in pci200_ioctl()
210 new_line.clock_type != CLOCK_INT && in pci200_ioctl()
211 new_line.clock_type != CLOCK_TXINT) in pci200_ioctl()
382 port->settings.clock_type = CLOCK_EXT; in pci200_pci_init_one()
H A Dpc300too.c119 switch (port->settings.clock_type) { in pc300_set_iface()
231 if (new_line.clock_type != CLOCK_EXT && in pc300_ioctl()
232 new_line.clock_type != CLOCK_TXFROMRX && in pc300_ioctl()
233 new_line.clock_type != CLOCK_INT && in pc300_ioctl()
234 new_line.clock_type != CLOCK_TXINT) in pc300_ioctl()
443 port->settings.clock_type = CLOCK_EXT; in pc300_pci_init_one()
H A Dn2.c161 switch (port->settings.clock_type) { in n2_set_iface()
267 if (new_line.clock_type != CLOCK_EXT && in n2_ioctl()
268 new_line.clock_type != CLOCK_TXFROMRX && in n2_ioctl()
269 new_line.clock_type != CLOCK_INT && in n2_ioctl()
270 new_line.clock_type != CLOCK_TXINT) in n2_ioctl()
456 port->settings.clock_type = CLOCK_EXT; in n2_run()
/openbmc/linux/tools/testing/selftests/cgroup/
H A Dtest_cpu.c31 enum hog_clock_type clock_type; member
159 if (param->clock_type == CPU_HOG_CLOCK_PROCESS) { in hog_cpus_timed()
210 .clock_type = CPU_HOG_CLOCK_PROCESS, in test_cpucg_stats()
310 .clock_type = CPU_HOG_CLOCK_WALL, in weight_hog_ncpus()
472 .clock_type = CPU_HOG_CLOCK_WALL, in run_cpucg_nested_weight_test()
595 .clock_type = CPU_HOG_CLOCK_WALL, in test_cpucg_max()
655 .clock_type = CPU_HOG_CLOCK_WALL, in test_cpucg_max_nested()
/openbmc/qemu/tests/unit/
H A Dtest-aio.c49 QEMUClockType clock_type; member
69 qemu_clock_get_ns(data->clock_type) + data->ns); in timer_test_cb()
375 .clock_type = QEMU_CLOCK_REALTIME }; in test_timer_schedule()
385 aio_timer_init(ctx, &data.timer, data.clock_type, in test_timer_schedule()
388 qemu_clock_get_ns(data.clock_type) + in test_timer_schedule()
706 .clock_type = QEMU_CLOCK_REALTIME }; in test_source_timer_schedule()
717 aio_timer_init(ctx, &data.timer, data.clock_type, in test_source_timer_schedule()
719 expiry = qemu_clock_get_ns(data.clock_type) + in test_source_timer_schedule()
737 g_assert(qemu_clock_get_ns(data.clock_type) > expiry); in test_source_timer_schedule()
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_pp_smu.c434 pp_clock_request.clock_type = dc_to_pp_clock_type(clock_for_voltage_req->clk_type); in dm_pp_apply_clock_for_voltage_request()
437 if (!pp_clock_request.clock_type) in dm_pp_apply_clock_for_voltage_request()
605 clock_req.clock_type = amd_pp_dcef_clock; in pp_nv_set_hard_min_dcefclk_by_freq()
628 clock_req.clock_type = amd_pp_mem_clock; in pp_nv_set_hard_min_uclk_by_freq()
666 clock_req.clock_type = amd_pp_disp_clock; in pp_nv_set_voltage_by_freq()
669 clock_req.clock_type = amd_pp_phy_clock; in pp_nv_set_voltage_by_freq()
672 clock_req.clock_type = amd_pp_pixel_clock; in pp_nv_set_voltage_by_freq()
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_atombios.h155 u8 clock_type,
203 u8 clock_type,
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/
H A Ddcn20_clk_mgr.h50 enum dc_clock_type clock_type,
/openbmc/linux/sound/pci/pcxhr/
H A Dpcxhr_mix22.c403 enum pcxhr_clock_type clock_type, in hr222_get_external_clock() argument
410 if (clock_type == HR22_CLOCK_TYPE_AES_SYNC) { in hr222_get_external_clock()
416 } else if (clock_type == HR22_CLOCK_TYPE_AES_1 && mgr->board_has_aes1) { in hr222_get_external_clock()
425 clock_type); in hr222_get_external_clock()
431 "get_external_clock(%d) = 0 Hz\n", clock_type); in hr222_get_external_clock()

123