Home
last modified time | relevance | path

Searched refs:modulo (Results 1 – 25 of 27) sorted by relevance

12

/drivers/gpu/drm/amd/display/dc/dcn21/
Ddcn21_dccg.c52 int modulo = ref_dppclk / 10000; in dccg21_update_dpp_dto() local
69 if (phase > modulo) { in dccg21_update_dpp_dto()
74 phase = modulo; in dccg21_update_dpp_dto()
90 DPPCLK0_DTO_MODULO, modulo); in dccg21_update_dpp_dto()
/drivers/gpu/drm/amd/display/dc/dcn31/
Ddcn31_dccg.c60 int modulo, phase; in dccg31_update_dpp_dto() local
63 modulo = 0xff; // use FF at the end in dccg31_update_dpp_dto()
64 phase = ((modulo * req_dppclk) + ref_dppclk - 1) / ref_dppclk; in dccg31_update_dpp_dto()
73 DPPCLK0_DTO_MODULO, modulo); in dccg31_update_dpp_dto()
544 uint32_t modulo, phase; in dccg31_set_dtbclk_dto() local
547 modulo = params->ref_dtbclk_khz * 1000; in dccg31_set_dtbclk_dto()
548 phase = div_u64((((unsigned long long)modulo * req_dtbclk_khz) + params->ref_dtbclk_khz - 1), in dccg31_set_dtbclk_dto()
554 REG_WRITE(DTBCLK_DTO_MODULO[params->otg_inst], modulo); in dccg31_set_dtbclk_dto()
588 uint32_t modulo, phase; in dccg31_set_audio_dtbclk_dto() local
591 modulo = params->ref_dtbclk_khz * 1000; in dccg31_set_audio_dtbclk_dto()
[all …]
/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_dccg.c53 int modulo, phase; in dccg2_update_dpp_dto() local
56 modulo = 0xff; // use FF at the end in dccg2_update_dpp_dto()
57 phase = ((modulo * req_dppclk) + ref_dppclk - 1) / ref_dppclk; in dccg2_update_dpp_dto()
66 DPPCLK0_DTO_MODULO, modulo); in dccg2_update_dpp_dto()
/drivers/net/wan/
Dhdlc_x25.c205 if (state(hdlc)->settings.modulo == 128) in x25_open()
308 new_settings.modulo = 8; in x25_ioctl()
319 (new_settings.modulo != 8 && in x25_ioctl()
320 new_settings.modulo != 128) || in x25_ioctl()
322 (new_settings.modulo == 8 && in x25_ioctl()
324 (new_settings.modulo == 128 && in x25_ioctl()
/drivers/gpu/drm/meson/
Dmeson_venc.c854 static unsigned long modulo(unsigned long a, unsigned long b) in modulo() function
1156 de_h_begin = modulo(readl_relaxed(priv->io_base + in meson_venc_hdmi_mode_set()
1160 de_h_end = modulo(de_h_begin + active_pixels_venc, in meson_venc_hdmi_mode_set()
1194 hs_end = modulo(hs_begin + hsync_pixels_venc, in meson_venc_hdmi_mode_set()
1265 vso_begin_odd = modulo(hs_begin in meson_venc_hdmi_mode_set()
1280 vso_begin_evn = modulo(hs_begin in meson_venc_hdmi_mode_set()
1403 de_h_begin = modulo(readl_relaxed(priv->io_base + in meson_venc_hdmi_mode_set()
1407 de_h_end = modulo(de_h_begin + active_pixels_venc, in meson_venc_hdmi_mode_set()
1457 hs_end = modulo(hs_begin + hsync_pixels_venc, in meson_venc_hdmi_mode_set()
1479 vs_eline_evn = modulo(vs_bline_evn + vsync_lines, in meson_venc_hdmi_mode_set()
[all …]
/drivers/gpu/drm/amd/display/dc/dcn314/
Ddcn314_dccg.c203 uint32_t modulo, phase; in dccg314_set_dtbclk_dto() local
206 modulo = params->ref_dtbclk_khz * 1000; in dccg314_set_dtbclk_dto()
209 REG_WRITE(DTBCLK_DTO_MODULO[params->otg_inst], modulo); in dccg314_set_dtbclk_dto()
/drivers/staging/vt6656/
Dwcmd.c34 static u32 add_one_with_wrap_around(u32 var, u8 modulo) in add_one_with_wrap_around() argument
36 if (var >= (modulo - 1)) in add_one_with_wrap_around()
/drivers/gpu/drm/amd/display/dc/dcn32/
Ddcn32_dccg.c222 uint32_t modulo, phase; in dccg32_set_dtbclk_dto() local
225 modulo = params->ref_dtbclk_khz * 1000; in dccg32_set_dtbclk_dto()
228 REG_WRITE(DTBCLK_DTO_MODULO[params->otg_inst], modulo); in dccg32_set_dtbclk_dto()
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
DM0209.c83 info->modulo = nvbios_rd08(bios, data + 0x01); in nvbios_M0209Ep()
121 u32 bits = (i % M0209E.modulo) * M0209E.bits; in nvbios_M0209Sp()
/drivers/clk/mmp/
Dclk-audio.c96 unsigned char modulo; member
144 val |= SSPA_AUD_PLL_CTRL0_DIV_OCLK_MODULO(postdivs[postdiv].modulo); in audio_pll_recalc_rate()
210 val |= SSPA_AUD_PLL_CTRL0_DIV_OCLK_MODULO(postdivs[postdiv].modulo); in audio_pll_set_rate()
/drivers/dma/
Dk3dma.c598 size_t modulo = DMA_CYCLIC_MAX_PERIOD; in k3_dma_prep_dma_cyclic() local
606 if (avail > modulo) in k3_dma_prep_dma_cyclic()
607 num += DIV_ROUND_UP(avail, modulo) - 1; in k3_dma_prep_dma_cyclic()
620 if (period_len < modulo) in k3_dma_prep_dma_cyclic()
621 modulo = period_len; in k3_dma_prep_dma_cyclic()
624 len = min_t(size_t, avail, modulo); in k3_dma_prep_dma_cyclic()
Dstm32-dma.c1363 u32 modulo, burst_size; in stm32_dma_desc_residue() local
1419 modulo = residue % burst_size; in stm32_dma_desc_residue()
1420 if (modulo) in stm32_dma_desc_residue()
1421 residue = residue - modulo + burst_size; in stm32_dma_desc_residue()
Dstm32-mdma.c1327 u32 cisr, clar, cbndtr, residue, modulo, burst_size; in stm32_mdma_desc_residue() local
1355 modulo = residue % burst_size; in stm32_mdma_desc_residue()
1356 if (modulo) in stm32_mdma_desc_residue()
1357 residue = residue - modulo + burst_size; in stm32_mdma_desc_residue()
/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/
DM0209.h10 u8 modulo; member
/drivers/gpu/drm/amd/display/dc/dml/dcn30/
Ddcn30_fpu.c186 double ratio, modulo, phase; in optc3_fpu_set_vrr_m_const() local
224 modulo = 65536.0 * 65536.0 - 1.0; /* 2^32 - 1 */ in optc3_fpu_set_vrr_m_const()
225 phase = ratio * modulo; in optc3_fpu_set_vrr_m_const()
230 if (phase <= 0 || phase >= modulo) { in optc3_fpu_set_vrr_m_const()
254 REG_SET(OTG_M_CONST_DTO1, 0, OTG_M_CONST_DTO_MODULO, (uint32_t)modulo); in optc3_fpu_set_vrr_m_const()
/drivers/media/dvb-frontends/
Ddibx000_common.h129 u8 modulo; member
Ddib7000m.c398 reg_907 = (bw->pll_bypass << 15) | (bw->modulo << 7) | in dib7000m_reset_pll()
443 dib7000m_write_word(state, 910, (1 << 12) | (2 << 10) | (bw->modulo << 8) | (bw->ADClkSrc << 7)); in dib7000mc_reset_pll()
Ddib8000.c717 (pll->modulo << 8) | in dib8000_reset_pll()
722 (pll->modulo << 8) | in dib8000_reset_pll()
726 (3 << 10) | (pll->modulo << 8) | in dib8000_reset_pll()
739 dib8000_write_word(state, 904, (pll->modulo << 8)); in dib8000_reset_pll()
/drivers/media/usb/go7007/
Dgo7007-fw.c417 int modulo, int pict_struct, enum mpeg_frame_type frame) in mpeg1_frame_header() argument
718 int modulo, enum mpeg_frame_type frame) in mpeg4_frame_header() argument
725 if (modulo) in mpeg4_frame_header()
/drivers/media/usb/dvb-usb/
Ddib0700_devices.c233 .modulo = 2,
399 .modulo = 0,
668 .modulo = 0,
960 .modulo = 2,
1186 .modulo = 2,
1526 .modulo = 2,
1962 .modulo = 2,
2782 .modulo = 2,
3565 .modulo = 0,
Dcxusb.c1084 .modulo = 2,
/drivers/net/wireless/broadcom/b43/
Ddma.c960 #define modulo(a, b) ({ \ macro
994 (unsigned long long)modulo(permille_failed, 10), in b43_destroy_dmaring()
996 (unsigned long long)modulo(average_tries, 100)); in b43_destroy_dmaring()
/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_hw_sequencer.c2129 uint64_t modulo[MAX_PIPES]; in dcn10_align_pixel_clocks() local
2165 modulo[i] = dp_ref_clk_100hz*100; in dcn10_align_pixel_clocks()
2172 modulo[i] = (uint64_t)dp_ref_clk_100hz* in dcn10_align_pixel_clocks()
2177 &modulo[i], true) == false) { in dcn10_align_pixel_clocks()
2193 phase[i], modulo[i]); in dcn10_align_pixel_clocks()
/drivers/scsi/
Dscsi_debug.c5555 int count, modulo; in tweak_cmnd_count() local
5557 modulo = abs(sdebug_every_nth); in tweak_cmnd_count()
5558 if (modulo < 2) in tweak_cmnd_count()
5562 atomic_set(&sdebug_cmnd_count, (count / modulo) * modulo); in tweak_cmnd_count()
/drivers/atm/
Dfore200e.c82 #define FORE200E_NEXT_ENTRY(index, modulo) (index = ((index) + 1) % (modulo)) argument

12