/linux-6.3-rc2/drivers/clk/ |
A D | clk-fractional-divider.c | 96 fract->numerator = m; in clk_fd_get_div() 97 fract->denominator = n; in clk_fd_get_div() 102 struct u32_fract fract; in clk_fd_recalc_rate() local 105 clk_fd_get_div(hw, &fract); in clk_fd_recalc_rate() 107 if (!fract.numerator || !fract.denominator) in clk_fd_recalc_rate() 201 struct u32_fract fract; in clk_fd_numerator_get() local 203 clk_fd_get_div(hw, &fract); in clk_fd_numerator_get() 205 *val = fract.numerator; in clk_fd_numerator_get() 213 struct u32_fract fract; in clk_fd_denominator_get() local 215 clk_fd_get_div(hw, &fract); in clk_fd_denominator_get() [all …]
|
/linux-6.3-rc2/drivers/iio/health/ |
A D | afe4404.c | 147 { .integer = 50000, .fract = 0 }, 148 { .integer = 25000, .fract = 0 }, 149 { .integer = 10000, .fract = 0 }, 156 { .integer = 0, .fract = 5000 }, 157 { .integer = 0, .fract = 2500 }, 158 { .integer = 0, .fract = 10000 }, 159 { .integer = 0, .fract = 7500 }, 160 { .integer = 0, .fract = 20000 }, 161 { .integer = 0, .fract = 17500 }, 198 int val, integer, fract, ret; in afe440x_store_register() local [all …]
|
A D | afe440x.h | 114 int fract; member 127 _table[i].fract); \
|
A D | afe4403.c | 155 vals[1] = afe440x_attr->val_table[reg_val].fract; in afe440x_show_register() 167 int val, integer, fract, ret; in afe440x_store_register() local 169 ret = iio_str_to_fixpoint(buf, 100000, &integer, &fract); in afe440x_store_register() 175 afe440x_attr->val_table[val].fract == fract) in afe440x_store_register()
|
/linux-6.3-rc2/drivers/iio/trigger/ |
A D | iio-trig-hrtimer.c | 58 int integer, fract, ret; in iio_hrtimer_store_sampling_frequency() local 60 ret = iio_str_to_fixpoint(buf, 100, &integer, &fract); in iio_hrtimer_store_sampling_frequency() 63 if (integer < 0 || fract < 0) in iio_hrtimer_store_sampling_frequency() 66 val = fract + 1000ULL * integer; /* mHz */ in iio_hrtimer_store_sampling_frequency() 72 info->sampling_frequency[1] = fract * 1000; /* uHz */ in iio_hrtimer_store_sampling_frequency()
|
/linux-6.3-rc2/drivers/iio/adc/ |
A D | sc27xx_adc.c | 586 struct u32_fract *fract) in sc27xx_adc_volt_ratio() argument 591 fract->numerator = ratio >> SC27XX_RATIO_NUMERATOR_OFFSET; in sc27xx_adc_volt_ratio() 592 fract->denominator = ratio & SC27XX_RATIO_DENOMINATOR_MASK; in sc27xx_adc_volt_ratio() 620 struct u32_fract fract; in sc27xx_adc_convert_volt() local 642 sc27xx_adc_volt_ratio(data, channel, scale, &fract); in sc27xx_adc_convert_volt() 644 return DIV_ROUND_CLOSEST(volt * fract.denominator, fract.numerator); in sc27xx_adc_convert_volt()
|
/linux-6.3-rc2/drivers/iio/common/hid-sensors/ |
A D | hid-sensor-trigger.c | 25 int integer, fract, ret; in _hid_sensor_set_report_latency() local 28 ret = iio_str_to_fixpoint(buf, 100000, &integer, &fract); in _hid_sensor_set_report_latency() 32 latency = integer * 1000 + fract / 1000; in _hid_sensor_set_report_latency()
|
/linux-6.3-rc2/drivers/media/i2c/ |
A D | mt9m111.c | 1069 struct v4l2_fract *fract = &fi->interval; in mt9m111_s_frame_interval() local 1078 if (fract->numerator == 0) { in mt9m111_s_frame_interval() 1079 fract->denominator = 30; in mt9m111_s_frame_interval() 1080 fract->numerator = 1; in mt9m111_s_frame_interval() 1083 fps = DIV_ROUND_CLOSEST(fract->denominator, fract->numerator); in mt9m111_s_frame_interval() 1091 fract->denominator = mode->max_fps; in mt9m111_s_frame_interval() 1092 fract->numerator = 1; in mt9m111_s_frame_interval()
|
/linux-6.3-rc2/drivers/iio/proximity/ |
A D | srf08.c | 298 int integer, fract; in srf08_store_range_mm() local 300 ret = iio_str_to_fixpoint(buf, 100, &integer, &fract); in srf08_store_range_mm() 304 ret = srf08_write_range_mm(data, integer * 1000 + fract); in srf08_store_range_mm()
|
/linux-6.3-rc2/drivers/clk/mmp/ |
A D | clk-audio.c | 86 unsigned short fract; member 145 val |= SSPA_AUD_PLL_CTRL0_FRACT(predivs[prediv].fract); in audio_pll_recalc_rate() 211 val |= SSPA_AUD_PLL_CTRL0_FRACT(predivs[prediv].fract); in audio_pll_set_rate()
|
/linux-6.3-rc2/kernel/rcu/ |
A D | tasks.h | 659 int fract; in rcu_tasks_wait_gp() local 698 fract = rtp->init_fract; in rcu_tasks_wait_gp() 709 schedule_timeout_idle(fract); in rcu_tasks_wait_gp() 711 exp = jiffies_to_nsecs(fract); in rcu_tasks_wait_gp() 716 if (fract < HZ) in rcu_tasks_wait_gp() 717 fract++; in rcu_tasks_wait_gp()
|
/linux-6.3-rc2/drivers/iio/ |
A D | industrialio-core.c | 854 int *integer, int *fract, bool scale_db) in __iio_str_to_fixpoint() argument 860 *fract = 0; in __iio_str_to_fixpoint() 908 *fract = f; in __iio_str_to_fixpoint() 924 int *integer, int *fract) in iio_str_to_fixpoint() argument 926 return __iio_str_to_fixpoint(str, fract_mult, integer, fract, false); in iio_str_to_fixpoint() 938 int integer, fract = 0; in iio_write_channel_info() local 975 ret = __iio_str_to_fixpoint(buf, fract_mult, &integer, &fract, in iio_write_channel_info() 982 integer, fract, this_attr->address); in iio_write_channel_info()
|
/linux-6.3-rc2/drivers/iio/common/cros_ec_sensors/ |
A D | cros_ec_sensors_core.c | 120 int integer, fract, ret; in cros_ec_sensor_set_report_latency() local 123 ret = iio_str_to_fixpoint(buf, 100000, &integer, &fract); in cros_ec_sensor_set_report_latency() 128 latency = integer * 1000 + fract / 1000; in cros_ec_sensor_set_report_latency()
|
/linux-6.3-rc2/drivers/media/platform/qcom/camss/ |
A D | camss-video.c | 27 struct fract { struct 45 struct fract hsub[3]; argument 46 struct fract vsub[3];
|
/linux-6.3-rc2/include/linux/iio/ |
A D | iio.h | 759 int *fract);
|
/linux-6.3-rc2/drivers/atm/ |
A D | iphase.c | 262 && (tempFract == dev->testTable[vcc->vci]->fract)) in clear_lockup() 265 dev->testTable[vcc->vci]->fract = tempFract; in clear_lockup() 2148 iadev->testTable[i]->fract = 0; 2651 iadev->testTable[vcc->vci]->fract = 0;
|
A D | iphase.h | 840 u16 fract; member
|
/linux-6.3-rc2/arch/m68k/fpsp040/ |
A D | bindec.S | 759 subil #0x3ffd,%d0 |sub bias less 2 to make fract
|