/netbsd/sys/arch/acorn32/podulebus/ |
H A D | ptsc.c | 390 int len, prelen, postlen, max_t, n; in ptsc_build_dma_chain() 434 max_t = PAGE_SIZE - (pa & PGOFSET); in ptsc_build_dma_chain() 435 if (max_t > len) in ptsc_build_dma_chain() 436 max_t = len; in ptsc_build_dma_chain() 438 max_t &= ~3; in ptsc_build_dma_chain() 441 sc->sc_chain[n-1].len += max_t; in ptsc_build_dma_chain() 443 set_link(n, pa, max_t, SFAS_CHAIN_DMA); in ptsc_build_dma_chain() 445 lastpa = pa+max_t; in ptsc_build_dma_chain() 447 ptr += max_t; in ptsc_build_dma_chain() 448 len -= max_t; in ptsc_build_dma_chain()
|
/netbsd/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/therm/ |
H A D | nouveau_nvkm_subdev_therm_temp.c | 55 s->thrs_fan_boost.hysteresis = max_t(u8, s->thrs_fan_boost.hysteresis, 2); in nvkm_therm_temp_safety_checks() 56 s->thrs_down_clock.hysteresis = max_t(u8, s->thrs_down_clock.hysteresis, 2); in nvkm_therm_temp_safety_checks() 57 s->thrs_critical.hysteresis = max_t(u8, s->thrs_critical.hysteresis, 2); in nvkm_therm_temp_safety_checks() 58 s->thrs_shutdown.hysteresis = max_t(u8, s->thrs_shutdown.hysteresis, 2); in nvkm_therm_temp_safety_checks()
|
H A D | nouveau_nvkm_subdev_therm_fan.c | 50 target = max_t(u8, target, fan->bios.min_duty); in nvkm_fan_update()
|
/netbsd/sys/external/bsd/common/include/linux/ |
H A D | kernel.h | 89 #define max_t(T, X, Y) MAX((T)(X), (T)(Y)) macro 92 #define clamp_t(T, X, MIN, MAX) min_t(T, max_t(T, X, MIN), MAX)
|
/netbsd/sys/external/bsd/drm2/dist/drm/qxl/ |
H A D | qxl_draw.c | 172 right = max_t(int, right, (int)clips_ptr->x2); in qxl_draw_dirty_fb() 174 bottom = max_t(int, bottom, (int)clips_ptr->y2); in qxl_draw_dirty_fb()
|
/netbsd/sys/external/bsd/drm2/dist/drm/vmwgfx/device_include/ |
H A D | svga3d_surfacedefs.h | 1138 size.width = max_t(u32, base_level.width >> mip_level, 1); in svga3dsurface_get_mip_size() 1139 size.height = max_t(u32, base_level.height >> mip_level, 1); in svga3dsurface_get_mip_size() 1140 size.depth = max_t(u32, base_level.depth >> mip_level, 1); in svga3dsurface_get_mip_size() 1256 total_size *= max_t(u32, 1, num_samples); in svga3dsurface_get_serialized_size_extended()
|
/netbsd/sys/external/bsd/drm2/dist/drm/i915/selftests/ |
H A D | intel_memory_region.c | 181 target = max_t(u64, PAGE_SIZE, target); in igt_mock_contiguous() 496 sz = max_t(u32, 2 * PAGE_SIZE, sz); in igt_lmem_write_cpu() 546 align = max_t(u32, sizeof(u32), rounddown_pow_of_two(align)); in igt_lmem_write_cpu()
|
/netbsd/sys/external/bsd/drm2/dist/drm/vmwgfx/ |
H A D | vmwgfx_fb.c | 225 dst_x1 = max_t(s32, dst_x1, 0); in vmw_fb_dirty_flush() 226 dst_y1 = max_t(s32, dst_y1, 0); in vmw_fb_dirty_flush() 234 w = max_t(s32, 0, w); in vmw_fb_dirty_flush() 235 h = max_t(s32, 0, h); in vmw_fb_dirty_flush()
|
H A D | vmwgfx_blit.c | 269 rect->x2 = max_t(int, rect->x2, offs + 1); in vmw_adjust_rect() 271 rect->y2 = max_t(int, rect->y2, diff->line + 1); in vmw_adjust_rect()
|
H A D | vmwgfx_stdu.c | 482 ddirty->right = max_t(s32, ddirty->right, dirty->unit_x2); in vmw_stdu_bo_clip() 483 ddirty->bottom = max_t(s32, ddirty->bottom, dirty->unit_y2); in vmw_stdu_bo_clip() 555 ddirty->right = max_t(s32, ddirty->right, dirty->unit_x2); in vmw_stdu_bo_cpu_clip() 556 ddirty->bottom = max_t(s32, ddirty->bottom, dirty->unit_y2); in vmw_stdu_bo_cpu_clip() 778 sdirty->right = max_t(s32, sdirty->right, dirty->unit_x2); in vmw_kms_stdu_surface_clip() 779 sdirty->bottom = max_t(s32, sdirty->bottom, dirty->unit_y2); in vmw_kms_stdu_surface_clip()
|
H A D | vmwgfx_scrn.c | 1102 sdirty->right = max_t(s32, sdirty->right, dirty->unit_x2); in vmw_sou_surface_clip() 1103 sdirty->bottom = max_t(s32, sdirty->bottom, dirty->unit_y2); in vmw_sou_surface_clip()
|
/netbsd/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/fb/ |
H A D | nouveau_nvkm_subdev_fb_ramnv50.c | 110 max_t(s8, T(CWL) - 2, 1) << 8 | in nv50_ram_timing_calc() 116 max_t(u8, T(18), 1) << 16 | in nv50_ram_timing_calc() 131 max_t(u8, T(RCDRD), T(RCDWR)) << 16 | in nv50_ram_timing_calc()
|
H A D | nouveau_nvkm_subdev_fb_ramgt215.c | 381 max_t(u8,T(18), 1) << 16 | in gt215_ram_timing_calc() 397 max_t(u8,T(RCDRD), T(RCDWR)) << 16 | in gt215_ram_timing_calc() 398 max_t(u8, (T(CWL) + 6), (T(CL) + 2)) << 8 | in gt215_ram_timing_calc() 401 max_t(u8, 1, (6 - T(CL) + T(CWL))) << 8 | in gt215_ram_timing_calc()
|
/netbsd/sys/external/bsd/drm2/dist/drm/radeon/ |
H A D | si_dpm.h | 79 u32 max_t; member
|
/netbsd/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/mmu/ |
H A D | nouveau_nvkm_subdev_mmu_umem.c | 203 page = max_t(u8, page, PAGE_SHIFT); in nvkm_umem_new()
|
/netbsd/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/gr/ |
H A D | nouveau_nvkm_engine_gr_ctxgk104.c | 941 u32 atarget = max_t(u32, gr->tpc_total * i / 32, 1); in gk104_grctx_generate_alpha_beta_tables()
|
/netbsd/sys/dev/pci/cxgb/ |
H A D | cxgb_osdep.h | 275 #define max_t(type, a, b) (type)uimax((a), (b)) macro
|
/netbsd/sys/external/bsd/drm2/dist/drm/i915/gem/ |
H A D | i915_gem_internal.c | 137 max_segment = max_t(unsigned int, max_segment, in i915_gem_object_get_pages_internal()
|
H A D | i915_gem_domain.c | 364 vma->display_alignment = max_t(u64, vma->display_alignment, alignment); in i915_gem_object_pin_to_display_plane()
|
/netbsd/sys/external/bsd/drm2/dist/drm/ |
H A D | drm_color_mgmt.c | 429 struct drm_prop_enum_list enum_list[max_t(int, DRM_COLOR_ENCODING_MAX, in drm_plane_create_color_properties()
|
H A D | drm_fb_helper.c | 668 clip->x2 = max_t(u32, clip->x2, x + width); in drm_fb_helper_dirty() 669 clip->y2 = max_t(u32, clip->y2, y + height); in drm_fb_helper_dirty() 1618 sizes.surface_width = max_t(u32, desired_mode->hdisplay + x, sizes.surface_width); in drm_fb_helper_single_fb_probe() 1619 sizes.surface_height = max_t(u32, desired_mode->vdisplay + y, sizes.surface_height); in drm_fb_helper_single_fb_probe()
|
/netbsd/sys/external/bsd/drm2/dist/drm/vboxvideo/ |
H A D | vbox_mode.c | 165 width = max_t(u16, width, vbox_crtc->x_hint + in vbox_set_up_input_mapping() 167 height = max_t(u16, height, vbox_crtc->y_hint + in vbox_set_up_input_mapping()
|
/netbsd/sys/external/bsd/ena-com/ |
H A D | ena_plat.h | 197 #define max_t(type, _x, _y) ((type)(_x) > (type)(_y) ? (type)(_x) : (type)(_y)) macro
|
/netbsd/sys/external/bsd/drm2/dist/drm/i915/display/ |
H A D | intel_bw.c | 229 ct = max_t(int, sp->t_rc, sp->t_rp + sp->t_rcd + in icl_get_bw_info()
|
/netbsd/sys/external/bsd/drm2/dist/drm/nouveau/ |
H A D | nouveau_svm.c | 669 start = max_t(u64, start, svmm->unmanaged.limit); in nouveau_svm_fault() 690 start = max_t(u64, start, vma->vm_start); in nouveau_svm_fault()
|