Home
last modified time | relevance | path

Searched refs:imin (Results 1 – 25 of 45) sorted by relevance

12

/dragonfly/games/cgram/
H A Dcgram.c89 imin(int a, int b) in imin() function
315 int max_y = imin(LINES - 1, extent_y - offset_y); in redraw()
320 int max_x = imin(COLS - 1, len - offset_x); in redraw()
363 cursor_y = imin(cursor_y, cur_max_y()); in saturate_cursor()
366 cursor_x = imin(cursor_x, cur_max_x()); in saturate_cursor()
/dragonfly/sys/dev/misc/syscons/
H A Dscvgarndr.c809 height = imin(scp->cursor_height, scp->font_height); in draw_pxlcursor_direct()
857 height = imin(scp->cursor_height, scp->font_height); in draw_pxlcursor_packed()
914 height = imin(scp->cursor_height, scp->font_height); in draw_pxlcursor_planar()
1060 xend = imin(x + 8, 8 * (scp->xoff + scp->xsize)); in draw_pxlmouse_direct()
1061 yend = imin(y + 16, scp->font_height * (scp->yoff + scp->ysize)); in draw_pxlmouse_direct()
1103 xend = imin(scp->font_width * (scp->xoff + scp->xsize), in draw_pxlmouse_packed()
1104 imin(x + 16, scp->xpixel)); in draw_pxlmouse_packed()
1105 yend = imin(scp->font_height * (scp->yoff + scp->ysize), in draw_pxlmouse_packed()
1106 imin(y + 16, scp->ypixel)); in draw_pxlmouse_packed()
1134 ymax = imin(y + 16, scp->font_height * (scp->yoff + scp->ysize)); in draw_pxlmouse_planar()
H A Dschistory.c176 cols = imin(cols1, cols2); in copy_history()
249 int lines = imin(cnt, scp->ysize); in history_to_screen_lines()
H A Dsctermvar.h145 n = imin(n, scp->ypos - head); in sc_term_up()
158 n = imin(n, tail - scp->ypos - 1); in sc_term_down()
327 cnt = imin(l, scp->xsize - scp->xpos); in sc_term_gen_print()
H A Dsysmouse.c578 x = imax(imin(x, 255), -256); in sysmouse_evtopkt()
581 y = -imax(imin(y, 255), -256); in sysmouse_evtopkt()
586 z = imax(imin(z, 127), -128); in sysmouse_evtopkt()
H A Dscvtb.c222 len = imin(count, vtb2->vtb_size - vtb2->vtb_tail); in sc_vtb_append()
H A Dsyscons.c484 scp->xsize = max_cols ? imin(max_cols, cols) : cols; in sc_font_scale()
485 scp->ysize = max_rows ? imin(max_rows, rows) : rows; in sc_font_scale()
2233 *e1 = imin(*e1, e2); in and_region()
3174 scp->cursor_height = imin(scp->sc->cursor_height, scp->font_height); in update_cursor_image()
3196 scp->cursor_height = imin(scp->sc->cursor_height, scp->font_height); in sc_set_cursor_image()
3366 sc->cursor_height = imin(i, scp->font_height); in scinit()
3690 scp->cursor_height = imin(sc->cursor_height, scp->font_height); in init_scp()
/dragonfly/stand/lib/
H A Dread.c100 ccount = imin(f->f_ralen, resid); in read()
H A Dstand.h340 static __inline int imin(int a, int b) { return (a < b ? a : b); } in imin() function
/dragonfly/sys/netbt/
H A Dbluetooth.h151 ((long) imin((int)((sb)->ssb_hiwat - (sb)->ssb_cc), \
/dragonfly/sys/dev/raid/vinum/
H A Dvinumioctl.c641 imin(strlen(sd->name) + 1, MAXSDNAME - 3)); in detachobject()
700 imin(strlen(sd->name) + 1, MAXSDNAME - 3)); in detachobject()
708 imin(strlen(plex->name) + 1, MAXPLEXNAME - 3)); in detachobject()
H A Dvinumrevive.c274 size = imin(DEFAULT_REVIVE_BLOCKSIZE, /* one block at a time */ in parityops()
/dragonfly/sys/dev/disk/isp/
H A Disp_freebsd.h324 #define ISP_MIN imin
434 imin((sizeof((ccb)->sense_data)), ccb->sense_len - ccb->sense_resid)
483 memcpy(&(xs)->sense_data, sense_ptr, imin(XS_SNSLEN(xs),\
/dragonfly/sys/dev/raid/amr/
H A Damr_cam.c623 debug(2, "%s\n", hexncpy(csio->data_ptr, imin(csio->dxfer_len, 16), in amr_cam_complete()
624 hexstr, HEX_NCPYLEN(imin(csio->dxfer_len, 16)), " ")); in amr_cam_complete()
/dragonfly/sys/sys/
H A Dlibkern.h70 static __inline int imin(int a, int b) { return (a < b ? a : b); } in imin() function
/dragonfly/sys/dev/video/fb/
H A Dfb.c506 len = imin(len, adp->va_window_size - offset); in genfbread()
674 imin(strlen(adp->va_name) + 1, in fb_commonioctl()
H A Dvga.c1749 l = imin(length, adp->va_window_size); in planar_fill()
1771 l = imin(length, adp->va_window_size); in packed_fill()
1791 l = imin(length, adp->va_window_size); in direct_fill()
/dragonfly/sys/dev/sound/pci/hda/
H A Dhdaa.h257 imax(imin((((qdb) + (ctl)->size / 2 * ((qdb) > 0 ? 1 : -1)) / \
/dragonfly/sys/netinet6/
H A Dip6_forward.c135 mcopy = m_copym(m, 0, imin(m->m_pkthdr.len, ICMPV6_PLD_MAXLEN), in ip6_forward()
/dragonfly/sys/dev/raid/mlx/
H A Dmlx_disk.c269 dsk->si_iosize_max = imin(s1, s2); in mlxd_attach()
/dragonfly/sys/bus/u4b/input/
H A Duhid.c614 NULL, ugd->ugd_data, imin(ugd->ugd_maxlen, size)); in uhid_ioctl()
642 NULL, ugd->ugd_data, imin(ugd->ugd_maxlen, size)); in uhid_ioctl()
H A Dwsp.c1189 dx = imin(dx, 254); in wsp_add_to_queue()
1191 dy = imin(dy, 254); in wsp_add_to_queue()
1193 dz = imin(dz, 126); in wsp_add_to_queue()
/dragonfly/sys/dev/misc/psm/
H A Dpsm.c2451 i = imax(imin(status->dx, 255), -256);
2455 i = imax(imin(status->dy, 255), -256);
2463 i = imax(imin(status->dx, 255), -256);
2466 i = imax(imin(status->dy, 255), -256);
2469 i = imax(imin(status->dz, 127), -128);
2516 l = imin(sc->queue.count, uio->uio_resid);
4301 weight_prev_x = imin(weight_prev_x,
4303 weight_prev_y = imin(weight_prev_y,
4308 div_x = imin(div_max_x, div_x);
4311 div_y = imin(div_max_y, div_y);
[all …]
/dragonfly/sys/dev/misc/kbd/
H A Dkbd.c1004 i = imin(strlen(kbd->kb_name) + 1, in genkbd_commonioctl()
1090 kbd->kb_fkeytab[fkeyp->keynum].len = imin(fkeyp->flen, MAXFK); in genkbd_commonioctl()
/dragonfly/sys/kern/
H A Dkern_memio.c543 nd = imin(mo->mo_arg[0], mem_range_softc.mr_ndesc); in mem_ioctl()

12