Home
last modified time | relevance | path

Searched refs:phase (Results 1 - 25 of 776) sorted by relevance

12345678910>>...32

/kernel/linux/linux-5.10/drivers/clk/hisilicon/
H A Dclk-hisi-phase.c5 * Simple HiSilicon phase clock implementation.
30 static int hisi_phase_regval_to_degrees(struct clk_hisi_phase *phase, in hisi_phase_regval_to_degrees() argument
35 for (i = 0; i < phase->phase_num; i++) in hisi_phase_regval_to_degrees()
36 if (phase->phase_regvals[i] == regval) in hisi_phase_regval_to_degrees()
37 return phase->phase_degrees[i]; in hisi_phase_regval_to_degrees()
44 struct clk_hisi_phase *phase = to_clk_hisi_phase(hw); in hisi_clk_get_phase() local
47 regval = readl(phase->reg); in hisi_clk_get_phase()
48 regval = (regval & phase->mask) >> phase->shift; in hisi_clk_get_phase()
50 return hisi_phase_regval_to_degrees(phase, regva in hisi_clk_get_phase()
53 hisi_phase_degrees_to_regval(struct clk_hisi_phase *phase, int degrees) hisi_phase_degrees_to_regval() argument
67 struct clk_hisi_phase *phase = to_clk_hisi_phase(hw); hisi_clk_set_phase() local
97 struct clk_hisi_phase *phase; clk_register_hisi_phase() local
[all...]
/kernel/linux/linux-6.6/drivers/clk/hisilicon/
H A Dclk-hisi-phase.c5 * Simple HiSilicon phase clock implementation.
30 static int hisi_phase_regval_to_degrees(struct clk_hisi_phase *phase, in hisi_phase_regval_to_degrees() argument
35 for (i = 0; i < phase->phase_num; i++) in hisi_phase_regval_to_degrees()
36 if (phase->phase_regvals[i] == regval) in hisi_phase_regval_to_degrees()
37 return phase->phase_degrees[i]; in hisi_phase_regval_to_degrees()
44 struct clk_hisi_phase *phase = to_clk_hisi_phase(hw); in hisi_clk_get_phase() local
47 regval = readl(phase->reg); in hisi_clk_get_phase()
48 regval = (regval & phase->mask) >> phase->shift; in hisi_clk_get_phase()
50 return hisi_phase_regval_to_degrees(phase, regva in hisi_clk_get_phase()
53 hisi_phase_degrees_to_regval(struct clk_hisi_phase *phase, int degrees) hisi_phase_degrees_to_regval() argument
67 struct clk_hisi_phase *phase = to_clk_hisi_phase(hw); hisi_clk_set_phase() local
97 struct clk_hisi_phase *phase; clk_register_hisi_phase() local
[all...]
/third_party/musl/libc-test/src/regression/
H A Dpthread_cond-smasher.c71 static unsigned volatile phase; variable
88 trace("thread %u in phase %u\n", *number, i); in client()
96 t_error("thread %u is last in phase %u, signalling main failed: %s\n", *number, i, errorstring(ret)); in client()
98 while (i == phase) { in client()
99 tell("thread %u in phase %u (%u), waiting\n", *number, i, phase); in client()
102 trace("thread %u in phase %u (%u), finished, %s\n", *number, i, phase, errorstring(ret)); in client()
104 t_error("thread %u in phase %u (%u) finished waiting: %s\n", *number, i, phase, errorstrin in client()
[all...]
/kernel/linux/linux-5.10/drivers/clk/sunxi-ng/
H A Dccu_phase.c15 struct ccu_phase *phase = hw_to_ccu_phase(hw); in ccu_phase_get_phase() local
22 reg = readl(phase->common.base + phase->common.reg); in ccu_phase_get_phase()
23 delay = (reg >> phase->shift); in ccu_phase_get_phase()
24 delay &= (1 << phase->width) - 1; in ccu_phase_get_phase()
58 struct ccu_phase *phase = hw_to_ccu_phase(hw); in ccu_phase_set_phase() local
110 spin_lock_irqsave(phase->common.lock, flags); in ccu_phase_set_phase()
111 reg = readl(phase->common.base + phase->common.reg); in ccu_phase_set_phase()
112 reg &= ~GENMASK(phase in ccu_phase_set_phase()
[all...]
/kernel/linux/linux-6.6/drivers/clk/sunxi-ng/
H A Dccu_phase.c15 struct ccu_phase *phase = hw_to_ccu_phase(hw); in ccu_phase_get_phase() local
22 reg = readl(phase->common.base + phase->common.reg); in ccu_phase_get_phase()
23 delay = (reg >> phase->shift); in ccu_phase_get_phase()
24 delay &= (1 << phase->width) - 1; in ccu_phase_get_phase()
58 struct ccu_phase *phase = hw_to_ccu_phase(hw); in ccu_phase_set_phase() local
110 spin_lock_irqsave(phase->common.lock, flags); in ccu_phase_set_phase()
111 reg = readl(phase->common.base + phase->common.reg); in ccu_phase_set_phase()
112 reg &= ~GENMASK(phase in ccu_phase_set_phase()
[all...]
/third_party/skia/src/effects/
H A DSk1DPathEffect.cpp63 SkPath1DPathEffectImpl(const SkPath& path, SkScalar advance, SkScalar phase, in SkPath1DPathEffectImpl() argument
71 // cleanup their phase parameter, inverting it so that it becomes an in SkPath1DPathEffectImpl()
73 if (phase < 0) { in SkPath1DPathEffectImpl()
74 phase = -phase; in SkPath1DPathEffectImpl()
75 if (phase > advance) { in SkPath1DPathEffectImpl()
76 phase = SkScalarMod(phase, advance); in SkPath1DPathEffectImpl()
79 if (phase > advance) { in SkPath1DPathEffectImpl()
80 phase in SkPath1DPathEffectImpl()
111 SkScalar phase = buffer.readScalar(); CreateProc() local
238 Make(const SkPath& path, SkScalar advance, SkScalar phase, Style style) Make() argument
[all...]
/third_party/pulseaudio/speex/libspeexdsp/
H A D_kiss_fft_guts.h133 # define KISS_FFT_COS(phase) floor(MIN(32767,MAX(-32767,.5+32768 * cos (phase))))
134 # define KISS_FFT_SIN(phase) floor(MIN(32767,MAX(-32767,.5+32768 * sin (phase))))
137 # define KISS_FFT_COS(phase) _mm_set1_ps( cos(phase) )
138 # define KISS_FFT_SIN(phase) _mm_set1_ps( sin(phase) )
141 # define KISS_FFT_COS(phase) (kiss_fft_scalar) cos(phase)
[all...]
/kernel/linux/linux-5.10/drivers/clk/sunxi/
H A Dclk-mod0.c175 struct mmc_phase *phase = to_mmc_phase(hw); in mmc_get_phase() local
181 value = readl(phase->reg); in mmc_get_phase()
182 delay = (value >> phase->offset) & 0x3; in mmc_get_phase()
217 struct mmc_phase *phase = to_mmc_phase(hw); in mmc_set_phase() local
268 spin_lock_irqsave(phase->lock, flags); in mmc_set_phase()
269 value = readl(phase->reg); in mmc_set_phase()
270 value &= ~GENMASK(phase->offset + 3, phase->offset); in mmc_set_phase()
271 value |= delay << phase->offset; in mmc_set_phase()
272 writel(value, phase in mmc_set_phase()
326 struct mmc_phase *phase; sunxi_mmc_setup() local
[all...]
/kernel/linux/linux-6.6/drivers/clk/sunxi/
H A Dclk-mod0.c173 struct mmc_phase *phase = to_mmc_phase(hw); in mmc_get_phase() local
179 value = readl(phase->reg); in mmc_get_phase()
180 delay = (value >> phase->offset) & 0x3; in mmc_get_phase()
215 struct mmc_phase *phase = to_mmc_phase(hw); in mmc_set_phase() local
266 spin_lock_irqsave(phase->lock, flags); in mmc_set_phase()
267 value = readl(phase->reg); in mmc_set_phase()
268 value &= ~GENMASK(phase->offset + 3, phase->offset); in mmc_set_phase()
269 value |= delay << phase->offset; in mmc_set_phase()
270 writel(value, phase in mmc_set_phase()
324 struct mmc_phase *phase; sunxi_mmc_setup() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/tidss/
H A Dtidss_dispc_regs.h120 #define DISPC_VID_FIR_COEF_H0(phase) (0x6c + (phase) * 4)
122 #define DISPC_VID_FIR_COEF_H0_C(phase) (0x90 + (phase) * 4)
125 #define DISPC_VID_FIR_COEF_H12(phase) (0xb4 + (phase) * 4)
127 #define DISPC_VID_FIR_COEF_H12_C(phase) (0xf4 + (phase) * 4)
130 #define DISPC_VID_FIR_COEF_V0(phase) (0x134 + (phase) *
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/tidss/
H A Dtidss_dispc_regs.h120 #define DISPC_VID_FIR_COEF_H0(phase) (0x6c + (phase) * 4)
122 #define DISPC_VID_FIR_COEF_H0_C(phase) (0x90 + (phase) * 4)
125 #define DISPC_VID_FIR_COEF_H12(phase) (0xb4 + (phase) * 4)
127 #define DISPC_VID_FIR_COEF_H12_C(phase) (0xf4 + (phase) * 4)
130 #define DISPC_VID_FIR_COEF_V0(phase) (0x134 + (phase) *
[all...]
/kernel/linux/linux-5.10/drivers/hwmon/pmbus/
H A Dmp2975.c3 * Hardware monitoring driver for MPS Multi-phase Digital VR Controllers
90 mp2975_read_word_helper(struct i2c_client *client, int page, int phase, u8 reg, in mp2975_read_word_helper() argument
93 int ret = pmbus_read_word_data(client, page, phase, reg); in mp2975_read_word_helper()
122 int page, int phase, u8 reg) in mp2975_read_phase()
126 ret = pmbus_read_word_data(client, page, phase, reg); in mp2975_read_phase()
130 if (!((phase + 1) % MP2975_PAGE_NUM)) in mp2975_read_phase()
141 * - Rcs is the internal phase current sense resistor which is constant in mp2975_read_phase()
147 * Current phase sensing, providing by the device is not accurate in mp2975_read_phase()
150 * case phase current is represented as the maximum between the value in mp2975_read_phase()
153 ret = pmbus_read_word_data(client, page, phase, PMBUS_READ_IOU in mp2975_read_phase()
121 mp2975_read_phase(struct i2c_client *client, struct mp2975_data *data, int page, int phase, u8 reg) mp2975_read_phase() argument
162 mp2975_read_phases(struct i2c_client *client, struct mp2975_data *data, int page, int phase) mp2975_read_phases() argument
217 mp2975_read_word_data(struct i2c_client *client, int page, int phase, int reg) mp2975_read_word_data() argument
[all...]
H A Dir35221.c25 int phase, int reg) in ir35221_read_word_data()
31 ret = pmbus_read_word_data(client, page, phase, in ir35221_read_word_data()
35 ret = pmbus_read_word_data(client, page, phase, in ir35221_read_word_data()
39 ret = pmbus_read_word_data(client, page, phase, in ir35221_read_word_data()
43 ret = pmbus_read_word_data(client, page, phase, in ir35221_read_word_data()
47 ret = pmbus_read_word_data(client, page, phase, in ir35221_read_word_data()
51 ret = pmbus_read_word_data(client, page, phase, in ir35221_read_word_data()
55 ret = pmbus_read_word_data(client, page, phase, in ir35221_read_word_data()
59 ret = pmbus_read_word_data(client, page, phase, in ir35221_read_word_data()
24 ir35221_read_word_data(struct i2c_client *client, int page, int phase, int reg) ir35221_read_word_data() argument
/kernel/linux/linux-6.6/drivers/hwmon/pmbus/
H A Dmp2888.c3 * Hardware monitoring driver for MPS Multi-phase Digital VR Controllers
83 * Obtain resolution selector for total and phase current report and protection. in mp2888_current_sense_gain_and_resolution_get()
84 * 0: original resolution; 1: half resolution (in such case phase current value should in mp2888_current_sense_gain_and_resolution_get()
94 mp2888_read_phase(struct i2c_client *client, struct mp2888_data *data, int page, int phase, u8 reg) in mp2888_read_phase() argument
98 ret = pmbus_read_word_data(client, page, phase, reg); in mp2888_read_phase()
102 if (!((phase + 1) % 2)) in mp2888_read_phase()
113 * - Rcs is the internal phase current sense resistor. This parameter depends on hardware in mp2888_read_phase()
116 * If phase current resolution bit is set to 1, READ_CSx value should be doubled. in mp2888_read_phase()
117 * Note, that current phase sensing, providing by the device is not accurate. This is in mp2888_read_phase()
128 mp2888_read_phases(struct i2c_client *client, struct mp2888_data *data, int page, int phase) in mp2888_read_phases() argument
154 mp2888_read_word_data(struct i2c_client *client, int page, int phase, int reg) mp2888_read_word_data() argument
[all...]
H A Dir35221.c25 int phase, int reg) in ir35221_read_word_data()
31 ret = pmbus_read_word_data(client, page, phase, in ir35221_read_word_data()
35 ret = pmbus_read_word_data(client, page, phase, in ir35221_read_word_data()
39 ret = pmbus_read_word_data(client, page, phase, in ir35221_read_word_data()
43 ret = pmbus_read_word_data(client, page, phase, in ir35221_read_word_data()
47 ret = pmbus_read_word_data(client, page, phase, in ir35221_read_word_data()
51 ret = pmbus_read_word_data(client, page, phase, in ir35221_read_word_data()
55 ret = pmbus_read_word_data(client, page, phase, in ir35221_read_word_data()
59 ret = pmbus_read_word_data(client, page, phase, in ir35221_read_word_data()
24 ir35221_read_word_data(struct i2c_client *client, int page, int phase, int reg) ir35221_read_word_data() argument
H A Dmp2975.c3 * Hardware monitoring driver for MPS Multi-phase Digital VR Controllers
130 mp2975_read_word_helper(struct i2c_client *client, int page, int phase, u8 reg, in mp2975_read_word_helper() argument
133 int ret = pmbus_read_word_data(client, page, phase, reg); in mp2975_read_word_helper()
197 int page, int phase, u8 reg) in mp2975_read_phase()
201 ret = pmbus_read_word_data(client, page, phase, reg); in mp2975_read_phase()
205 if (!((phase + 1) % MP2975_PAGE_NUM)) in mp2975_read_phase()
216 * - Rcs is the internal phase current sense resistor which is constant in mp2975_read_phase()
222 * Current phase sensing, providing by the device is not accurate in mp2975_read_phase()
225 * case phase current is represented as the maximum between the value in mp2975_read_phase()
228 ret = pmbus_read_word_data(client, page, phase, PMBUS_READ_IOU in mp2975_read_phase()
196 mp2975_read_phase(struct i2c_client *client, struct mp2975_data *data, int page, int phase, u8 reg) mp2975_read_phase() argument
237 mp2975_read_phases(struct i2c_client *client, struct mp2975_data *data, int page, int phase) mp2975_read_phases() argument
292 mp2973_read_word_data(struct i2c_client *client, int page, int phase, int reg) mp2973_read_word_data() argument
380 mp2975_read_word_data(struct i2c_client *client, int page, int phase, int reg) mp2975_read_word_data() argument
[all...]
/third_party/skia/src/utils/
H A DSkDashPath.cpp20 static SkScalar find_first_interval(const SkScalar intervals[], SkScalar phase, in find_first_interval() argument
24 if (phase > gap || (phase == gap && gap)) { in find_first_interval()
25 phase -= gap; in find_first_interval()
28 return gap - phase; in find_first_interval()
31 // If we get here, phase "appears" to be larger than our length. This in find_first_interval()
39 void SkDashPath::CalcDashParameters(SkScalar phase, const SkScalar intervals[], int32_t count, in CalcDashParameters() argument
47 // Adjust phase to be between 0 and len, "flipping" phase if negative. in CalcDashParameters()
48 // e.g., if len is 100, then phase o in CalcDashParameters()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/texgine/src/utils/
H A Dlogger.cpp83 void Logger::SetToNoReturn(Logger &logger, enum LOG_PHASE phase) in SetToNoReturn() argument
88 void Logger::SetToContinue(Logger &logger, enum LOG_PHASE phase) in SetToContinue() argument
93 void Logger::OutputByStdout(Logger &logger, enum LOG_PHASE phase) in OutputByStdout() argument
95 if (phase == LOG_PHASE::BEGIN) { in OutputByStdout()
110 void Logger::OutputByStderr(Logger &logger, enum LOG_PHASE phase) in OutputByStderr() argument
112 if (phase == LOG_PHASE::BEGIN) { in OutputByStderr()
127 void Logger::OutputByFileLog(Logger &logger, enum LOG_PHASE phase) in OutputByFileLog() argument
133 if (phase == LOG_PHASE::BEGIN) { in OutputByFileLog()
157 void Logger::AppendFunc(Logger &logger, enum LOG_PHASE phase) in AppendFunc() argument
159 if (phase in AppendFunc()
166 AppendFuncLine(Logger &logger, enum LOG_PHASE phase) AppendFuncLine() argument
177 AppendFileLine(Logger &logger, enum LOG_PHASE phase) AppendFileLine() argument
186 AppendFileFuncLine(Logger &logger, enum LOG_PHASE phase) AppendFileFuncLine() argument
197 AppendPidTid(Logger &logger, enum LOG_PHASE phase) AppendPidTid() argument
[all...]
/kernel/linux/linux-5.10/include/trace/events/
H A Dclk.h156 TP_PROTO(struct clk_core *core, int phase),
158 TP_ARGS(core, phase),
162 __field( int, phase )
167 __entry->phase = phase;
170 TP_printk("%s %d", __get_str(name), (int)__entry->phase)
175 TP_PROTO(struct clk_core *core, int phase),
177 TP_ARGS(core, phase)
182 TP_PROTO(struct clk_core *core, int phase),
184 TP_ARGS(core, phase)
[all...]
/kernel/linux/linux-5.10/drivers/mmc/host/
H A Dsdhci-sirf.c77 int phase; in sdhci_sirf_execute_tuning() local
88 phase = 0; in sdhci_sirf_execute_tuning()
92 clock_setting | phase, in sdhci_sirf_execute_tuning()
98 dev_dbg(mmc_dev(mmc), "%s: Found good phase = %d\n", in sdhci_sirf_execute_tuning()
99 mmc_hostname(mmc), phase); in sdhci_sirf_execute_tuning() local
101 start = phase; in sdhci_sirf_execute_tuning()
102 end = phase; in sdhci_sirf_execute_tuning()
104 if (phase == (SIRF_TUNING_COUNT - 1) in sdhci_sirf_execute_tuning()
108 dev_dbg(mmc_dev(mmc), "%s: Found bad phase = %d\n", in sdhci_sirf_execute_tuning()
109 mmc_hostname(mmc), phase); in sdhci_sirf_execute_tuning() local
130 mmc_hostname(mmc), phase); sdhci_sirf_execute_tuning() local
[all...]
/third_party/cups-filters/filter/
H A Dcommandtoescpx.c152 int phase; in main() local
154 phase = atoi(lineptr + 18); in main()
157 putchar(phase & 255); in main()
158 putchar(phase >> 8); in main()
185 int phase, x; in main() local
187 if (sscanf(lineptr + 12, "%d%d", &phase, &x) != 2) in main()
195 putchar(phase); in main()
/kernel/linux/linux-5.10/drivers/char/
H A Dppdev.c20 * SETPHASE set the IEEE 1284 phase of a particular mode. Not to be
37 * GETPHASE gets the current IEEE1284 phase
397 pp->saved_state.phase = info->phase; in pp_do_ioctl()
399 info->phase = pp->state.phase; in pp_do_ioctl()
428 pp->state.phase = init_phase(mode); in pp_do_ioctl()
432 pp->pdev->port->ieee1284.phase = pp->state.phase; in pp_do_ioctl()
452 int phase; in pp_do_ioctl() local
467 int phase; pp_do_ioctl() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/imx/dcss/
H A Ddcss-scaler.c176 int phase; in dcss_scaler_gaussian_filter() local
181 for (phase = 0; phase < PSC_STORED_PHASES; phase++) { in dcss_scaler_gaussian_filter()
182 coef[phase][0] = 0; in dcss_scaler_gaussian_filter()
183 coef[phase][PSC_NUM_TAPS - 1] = 0; in dcss_scaler_gaussian_filter()
223 /* override phase 0 with identity filter if specified */ in dcss_scaler_gaussian_filter()
230 for (phase = 0; phase < PSC_STORED_PHASES; phase in dcss_scaler_gaussian_filter()
572 int i, phase; dcss_scaler_program_5_coef_set() local
607 int i, phase; dcss_scaler_program_7_coef_set() local
[all...]
/kernel/linux/linux-6.6/drivers/char/
H A Dppdev.c20 * SETPHASE set the IEEE 1284 phase of a particular mode. Not to be
37 * GETPHASE gets the current IEEE1284 phase
397 pp->saved_state.phase = info->phase; in pp_do_ioctl()
399 info->phase = pp->state.phase; in pp_do_ioctl()
428 pp->state.phase = init_phase(mode); in pp_do_ioctl()
432 pp->pdev->port->ieee1284.phase = pp->state.phase; in pp_do_ioctl()
452 int phase; in pp_do_ioctl() local
467 int phase; pp_do_ioctl() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/imx/dcss/
H A Ddcss-scaler.c178 int phase; in dcss_scaler_gaussian_filter() local
183 for (phase = 0; phase < PSC_STORED_PHASES; phase++) { in dcss_scaler_gaussian_filter()
184 coef[phase][0] = 0; in dcss_scaler_gaussian_filter()
185 coef[phase][PSC_NUM_TAPS - 1] = 0; in dcss_scaler_gaussian_filter()
225 /* override phase 0 with identity filter if specified */ in dcss_scaler_gaussian_filter()
232 for (phase = 0; phase < PSC_STORED_PHASES; phase in dcss_scaler_gaussian_filter()
589 int i, phase; dcss_scaler_program_5_coef_set() local
624 int i, phase; dcss_scaler_program_7_coef_set() local
[all...]

Completed in 14 milliseconds

12345678910>>...32