Searched refs:bits_to_bytes (Results 1 - 25 of 34) sorted by relevance

12

/xsrc/external/mit/xorg-server/dist/hw/xwin/
H A Dwincursor.c189 bits_to_bytes(pScreenPriv->cursor.sm_cx) * pScreenPriv->cursor.sm_cy;
203 int x, y, xmax = bits_to_bytes(nCX);
207 int nWinPix = bits_to_bytes(pScreenPriv->cursor.sm_cx) * y + x;
218 int x, y, xmax = bits_to_bytes(nCX);
222 int nWinPix = bits_to_bytes(pScreenPriv->cursor.sm_cx) * y + x;
313 bits_to_bytes(pScreenPriv->cursor.sm_cx) * y +
/xsrc/external/mit/xorg-server.old/dist/hw/xwin/
H A Dwincursor.c197 nBytes = bits_to_bytes(pScreenPriv->cursor.sm_cx) * pScreenPriv->cursor.sm_cy;
212 int x, y, xmax = bits_to_bytes(nCX);
216 int nWinPix = bits_to_bytes(pScreenPriv->cursor.sm_cx) * y + x;
228 int x, y, xmax = bits_to_bytes(nCX);
232 int nWinPix = bits_to_bytes(pScreenPriv->cursor.sm_cx) * y + x;
321 int nWinPix = bits_to_bytes(pScreenPriv->cursor.sm_cx) * y + (x/8);
/xsrc/external/mit/xorg-server.old/dist/dix/
H A Deventconvert.c421 mask_len = bytes_to_int32(bits_to_bytes(dce->buttons.num_buttons));
472 len += pad_to_int32(bits_to_bytes(dce->buttons.num_buttons));
559 btlen = bytes_to_int32(bits_to_bytes(MAX_BUTTONS));
565 vallen = bytes_to_int32(bits_to_bytes(MAX_VALUATORS));
632 vallen = bytes_to_int32(bits_to_bytes(MAX_VALUATORS));
/xsrc/external/mit/xorg-server.old/dist/include/
H A Dmisc.h189 bits_to_bytes(const int bits) { function in typeref:typename:int
/xsrc/external/mit/xorg-server.old/dist/test/xi2/
H A Dprotocol-eventconvert.c67 g_assert(out->valuators_len >= bytes_to_int32(bits_to_bytes(sizeof(in->valuators.mask))));
344 for (i = 0; i < bits_to_bytes(sizeof(in->buttons)); i++)
348 g_assert(out->buttons_len >= bytes_to_int32(bits_to_bytes(i)));
363 g_assert(out->valuators_len >= bytes_to_int32(bits_to_bytes(valuators)));
694 bytes_to_int32(bits_to_bytes(b->num_buttons)) +
699 pad_to_int32(bits_to_bytes(b->num_buttons)));
H A Dprotocol-xiquerydevice.c205 len = 2 + bi->num_buttons + bytes_to_int32(bits_to_bytes(bi->num_buttons));
/xsrc/external/mit/xorg-server/dist/dix/
H A Deventconvert.c497 mask_len = bytes_to_int32(bits_to_bytes(dce->buttons.num_buttons));
581 len += pad_to_int32(bits_to_bytes(dce->buttons.num_buttons));
677 btlen = bytes_to_int32(bits_to_bytes(MAX_BUTTONS));
682 vallen = bytes_to_int32(bits_to_bytes(MAX_VALUATORS));
784 vallen = bytes_to_int32(bits_to_bytes(MAX_VALUATORS));
H A Dinpututils.c1141 BUG_WARN(bits_to_bytes(event_type + 1) > mask->mask_size);
1175 BUG_WARN(bits_to_bytes(event_type + 1) > mask->mask_size);
/xsrc/external/mit/xorg-server/dist/test/xi2/
H A Dprotocol-eventconvert.c70 bytes_to_int32(bits_to_bytes(sizeof(in->valuators.mask))));
350 for (i = 0; i < bits_to_bytes(sizeof(in->buttons)); i++) {
352 assert(out->buttons_len >= bytes_to_int32(bits_to_bytes(i)));
366 assert(out->valuators_len >= bytes_to_int32(bits_to_bytes(valuators)));
676 bytes_to_int32(bits_to_bytes(b->num_buttons)) +
681 pad_to_int32(bits_to_bytes(b->num_buttons)));
H A Dprotocol-xiquerydevice.c240 bytes_to_int32(bits_to_bytes(bi->num_buttons));
/xsrc/external/mit/xorg-server.old/dist/Xi/
H A Dxiquerydevice.c226 len += pad_to_int32(bits_to_bytes(dev->button->numButtons));
257 mask_len = bytes_to_int32(bits_to_bytes(dev->button->numButtons));
H A Dxiquerypointer.c147 rep.buttons_len = bytes_to_int32(bits_to_bytes(256)); /* button map up to 255 */
/xsrc/external/mit/xorg-server.old/dist/hw/xquartz/xpr/
H A DxprCursor.c139 xcount = bits_to_bytes(src->bits->width);
/xsrc/external/mit/xorg-server/dist/hw/xquartz/xpr/
H A DxprCursor.c136 xcount = bits_to_bytes(src->bits->width);
/xsrc/external/mit/xorg-server/dist/include/
H A Dmisc.h196 bits_to_bytes(const int bits) function in typeref:typename:int
/xsrc/external/mit/xorg-server/dist/Xi/
H A Dxiquerypointer.c152 rep.buttons_len = bytes_to_int32(bits_to_bytes(256)); /* button map up to 255 */
H A Dxiquerydevice.c216 len += pad_to_int32(bits_to_bytes(dev->button->numButtons));
253 *mask_words = bytes_to_int32(bits_to_bytes(info->num_buttons));
/xsrc/external/mit/xorg-server.old/dist/glx/
H A Drensize.c202 rowSize = bits_to_bytes(groupsPerRow);
/xsrc/external/mit/xorg-server/dist/glx/
H A Drensize.c209 rowSize = bits_to_bytes(groupsPerRow);
/xsrc/external/mit/xorg-server.old/dist/exa/
H A Dexa.c185 int max_pitch = pExaScr->info->maxPitchPixels * bits_to_bytes(bpp);
207 pExaPixmap->fb_pitch = bits_to_bytes((1 << (exaLog2(w - 1) + 1)) * bpp);
209 pExaPixmap->fb_pitch = bits_to_bytes(w * bpp);
/xsrc/external/mit/xorg-server/dist/exa/
H A Dexa.c182 int max_pitch = pExaScr->info->maxPitchPixels * bits_to_bytes(bpp);
204 pExaPixmap->fb_pitch = bits_to_bytes((1 << (exaLog2(w - 1) + 1)) * bpp);
206 pExaPixmap->fb_pitch = bits_to_bytes(w * bpp);
/xsrc/external/mit/xorg-server.old/dist/test/
H A Dinput.c822 g_assert(bits_to_bytes(i) >= i/8);
823 g_assert((bits_to_bytes(i) * 8) - i <= 7);
824 g_assert(expected_bytes == bits_to_bytes(i));
848 g_test_message("Testing bits_to_bytes()");
/xsrc/external/mit/xorg-server.old/dist/hw/xfree86/modes/
H A Dxf86Modes.c114 int bytes_per_pixel = bits_to_bytes(depth);
/xsrc/external/mit/xorg-server/dist/hw/xfree86/modes/
H A Dxf86Modes.c111 int bytes_per_pixel = bits_to_bytes(depth);
/xsrc/external/mit/xorg-server/dist/test/
H A Dinput.c943 assert(bits_to_bytes(i) >= i / 8);
944 assert((bits_to_bytes(i) * 8) - i <= 7);
945 assert(expected_bytes == bits_to_bytes(i));
988 printf("Testing bits_to_bytes()\n");

Completed in 41 milliseconds

12