Home
last modified time | relevance | path

Searched refs:lims (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/kernel/tools/testing/selftests/vm/
H A Don-fault-limit.c16 struct rlimit lims; in test_limit() local
19 if (getrlimit(RLIMIT_MEMLOCK, &lims)) { in test_limit()
29 map = mmap(NULL, 2 * lims.rlim_max, PROT_READ | PROT_WRITE, in test_limit()
35 munmap(map, 2 * lims.rlim_max); in test_limit()
/OK3568_Linux_fs/external/xserver/dix/
H A Devents.c800 BoxRec lims; in CheckVirtualMotion() local
838 lims = *RegionExtents(&pWin->borderSize); in CheckVirtualMotion()
839 if (pSprite->hot.x < lims.x1) in CheckVirtualMotion()
840 pSprite->hot.x = lims.x1; in CheckVirtualMotion()
841 else if (pSprite->hot.x >= lims.x2) in CheckVirtualMotion()
842 pSprite->hot.x = lims.x2 - 1; in CheckVirtualMotion()
843 if (pSprite->hot.y < lims.y1) in CheckVirtualMotion()
844 pSprite->hot.y = lims.y1; in CheckVirtualMotion()
845 else if (pSprite->hot.y >= lims.y2) in CheckVirtualMotion()
846 pSprite->hot.y = lims.y2 - 1; in CheckVirtualMotion()