/drivers/gpu/drm/amd/display/dc/dcn21/ |
D | dcn21_dccg.c | 52 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/ |
D | dcn31_dccg.c | 60 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/ |
D | dcn20_dccg.c | 53 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/ |
D | hdlc_x25.c | 205 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/ |
D | meson_venc.c | 854 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/ |
D | dcn314_dccg.c | 203 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/ |
D | wcmd.c | 34 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/ |
D | dcn32_dccg.c | 222 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/ |
D | M0209.c | 83 info->modulo = nvbios_rd08(bios, data + 0x01); in nvbios_M0209Ep() 121 u32 bits = (i % M0209E.modulo) * M0209E.bits; in nvbios_M0209Sp()
|
/drivers/clk/mmp/ |
D | clk-audio.c | 96 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/ |
D | k3dma.c | 598 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()
|
D | stm32-dma.c | 1363 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()
|
D | stm32-mdma.c | 1327 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/ |
D | M0209.h | 10 u8 modulo; member
|
/drivers/gpu/drm/amd/display/dc/dml/dcn30/ |
D | dcn30_fpu.c | 186 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/ |
D | dibx000_common.h | 129 u8 modulo; member
|
D | dib7000m.c | 398 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()
|
D | dib8000.c | 717 (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/ |
D | go7007-fw.c | 417 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/ |
D | dib0700_devices.c | 233 .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,
|
D | cxusb.c | 1084 .modulo = 2,
|
/drivers/net/wireless/broadcom/b43/ |
D | dma.c | 960 #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/ |
D | dcn10_hw_sequencer.c | 2129 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/ |
D | scsi_debug.c | 5555 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/ |
D | fore200e.c | 82 #define FORE200E_NEXT_ENTRY(index, modulo) (index = ((index) + 1) % (modulo)) argument
|