Searched refs:high_width (Results 1 - 12 of 12) sorted by relevance
/kernel/linux/linux-6.6/drivers/pwm/ |
H A D | pwm-mtk-disp.c | 74 u32 clk_div, period, high_width, value; in mtk_disp_pwm_apply() local 109 * Find period, high_width and clk_div to suit duty_ns and period_ns. in mtk_disp_pwm_apply() 113 * duty_ns = 10^9 * (clk_div + 1) * high_width / PWM_CLK_RATE in mtk_disp_pwm_apply() 116 * high_width = (PWM_CLK_RATE * duty_ns) / (10^9 * (clk_div + 1)) in mtk_disp_pwm_apply() 134 high_width = mul_u64_u64_div_u64(state->duty_cycle, rate, div); in mtk_disp_pwm_apply() 135 value = period | (high_width << PWM_HIGH_WIDTH_SHIFT); in mtk_disp_pwm_apply() 178 u64 rate, period, high_width; in mtk_disp_pwm_get_state() local 217 high_width = FIELD_GET(PWM_HIGH_WIDTH_MASK, con1); in mtk_disp_pwm_get_state() 218 state->duty_cycle = DIV64_U64_ROUND_UP(high_width * (clk_div + 1) * NSEC_PER_SEC, in mtk_disp_pwm_get_state()
|
/kernel/linux/linux-5.10/drivers/clk/bcm/ |
H A D | clk-iproc-asiu.c | 99 div_h = (val >> clk->div.high_shift) & bit_mask(clk->div.high_width); in iproc_asiu_clk_recalc_rate() 159 val &= ~(bit_mask(clk->div.high_width) in iproc_asiu_clk_set_rate() 163 val &= ~(bit_mask(clk->div.high_width) in iproc_asiu_clk_set_rate()
|
H A D | clk-iproc.h | 207 unsigned int high_width; member
|
H A D | clk-cygnus.c | 35 .high_width = hw, .low_shift = ls, .low_width = lw }
|
/kernel/linux/linux-5.10/drivers/pwm/ |
H A D | pwm-mtk-disp.c | 73 u32 clk_div, period, high_width, value; in mtk_disp_pwm_config() local 91 * Find period, high_width and clk_div to suit duty_ns and period_ns. in mtk_disp_pwm_config() 95 * duty_ns = 10^9 * (clk_div + 1) * high_width / PWM_CLK_RATE in mtk_disp_pwm_config() 98 * high_width = (PWM_CLK_RATE * duty_ns) / (10^9 * (clk_div + 1)) in mtk_disp_pwm_config() 114 high_width = div64_u64(rate * duty_ns, div); in mtk_disp_pwm_config() 115 value = period | (high_width << PWM_HIGH_WIDTH_SHIFT); in mtk_disp_pwm_config()
|
/kernel/linux/linux-6.6/drivers/clk/bcm/ |
H A D | clk-iproc-asiu.c | 89 div_h = (val >> clk->div.high_shift) & bit_mask(clk->div.high_width); in iproc_asiu_clk_recalc_rate() 149 val &= ~(bit_mask(clk->div.high_width) in iproc_asiu_clk_set_rate() 153 val &= ~(bit_mask(clk->div.high_width) in iproc_asiu_clk_set_rate()
|
H A D | clk-iproc.h | 197 unsigned int high_width; member
|
H A D | clk-cygnus.c | 25 .high_width = hw, .low_shift = ls, .low_width = lw }
|
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/mtrr/ |
H A D | generic.c | 406 int high_width; in print_mtrr_state() local 428 high_width = (__ffs64(size_or_mask) - (32 - PAGE_SHIFT) + 3) / 4; in print_mtrr_state() 434 high_width, in print_mtrr_state() 437 high_width, in print_mtrr_state()
|
/kernel/linux/linux-5.10/tools/firewire/ |
H A D | nosy-dump.c | 718 int high_width, low_width; in decode_link_packet() local 722 high_width = ((offset + 31) & ~31) - offset; in decode_link_packet() 723 low_width = f->width - high_width; in decode_link_packet() 725 bits = get_bits(packet, offset, high_width); in decode_link_packet() 727 get_bits(packet, offset + high_width, low_width); in decode_link_packet()
|
/kernel/linux/linux-6.6/tools/firewire/ |
H A D | nosy-dump.c | 718 int high_width, low_width; in decode_link_packet() local 722 high_width = ((offset + 31) & ~31) - offset; in decode_link_packet() 723 low_width = f->width - high_width; in decode_link_packet() 725 bits = get_bits(packet, offset, high_width); in decode_link_packet() 727 get_bits(packet, offset + high_width, low_width); in decode_link_packet()
|
/kernel/linux/linux-6.6/arch/x86/kernel/cpu/mtrr/ |
H A D | generic.c | 635 int high_width; in print_mtrr_state() local 657 high_width = (boot_cpu_data.x86_phys_bits - (32 - PAGE_SHIFT) + 3) / 4; in print_mtrr_state() 663 high_width, in print_mtrr_state() 666 high_width, in print_mtrr_state()
|
Completed in 15 milliseconds