Searched refs:buf (Results 1 - 25 of 89) sorted by relevance

1234

/solaris-x11-s11/open-src/lib/DPS/sun-src/libdps/
H A DXlibnet.h133 #define MASKWORD(buf, i) buf[MASKIDX(i)]
134 #define BITSET(buf, i) MASKWORD(buf, i) |= BITMASK(i)
135 #define BITCLEAR(buf, i) MASKWORD(buf, i) &= ~BITMASK(i)
136 #define GETBIT(buf, i) (MASKWORD(buf, i) & BITMASK(i))
149 #define CLEARBITS(buf) buf[
[all...]
H A Ddpsclient.c423 char *buf,
435 DPSAssertWarn(buf == NIL, cc, "non-nil output buffer with 0 length");
454 *b++ = *buf++;
462 os_bcopy(buf, b + cc->nObjBufChars, nch);
467 os_bcopy(buf, b + cc->nObjBufChars, minSize - cc->nObjBufChars);
468 buf += minSize - cc->nObjBufChars;
487 os_bcopy(buf, cc->objBuf + cc->nObjBufChars, nch);
492 os_bcopy(buf, cc->objBuf + cc->nObjBufChars, m - cc->nObjBufChars);
493 buf += m - cc->nObjBufChars;
498 oldBuf = buf;
421 DPSclientPrintProc( DPSContext ctxt, char *buf, unsigned nch) argument
686 procWriteData( DPSContext ctxt, char *buf, unsigned int count) argument
696 procBinObjSeqWrite( DPSContext ctxt, char *buf, unsigned int count) argument
706 procWriteStringChars( DPSContext ctxt, char *buf, unsigned int count) argument
715 procWritePostScript( DPSContext ctxt, char *buf, unsigned int count) argument
1081 WriteHomogeneousArrayAsASCII( DPSContext ctxt, register unsigned char *buf) argument
1152 GetNBytes(register unsigned char *buf) argument
1798 WriteTokenAsAscii( DPSContext ctxt, register unsigned char *buf) argument
1955 WriteEntireGoody( DPSContext ctxt, unsigned char *buf, int *numstringOffsets) argument
2028 textWriteData(DPSContext ctxt, char *buf, unsigned int nch) argument
2053 textInnerWritePostScript( DPSContext ctxt, char *buf, unsigned int nch) argument
2184 textWritePostScript( DPSContext ctxt, char *buf, unsigned int nch) argument
2203 textWriteStringChars( DPSContext ctxt, char *buf, unsigned int nch) argument
2224 textBinObjSeqWrite( DPSContext ctxt, char *buf, unsigned int nch) argument
2385 char *buf = (char *)arg1; local
2427 char *buf = (char *)arg1; local
2588 NoteInitFailure(DPSContext ctxt, char *buf, long unsigned length) argument
2804 DPSBinObjSeqWrite( DPSContext ctxt, char *buf, unsigned int count) argument
2812 DPSWriteData( DPSContext ctxt, char *buf, unsigned int count) argument
2820 DPSWritePostScript( DPSContext ctxt, char *buf, unsigned int count) argument
2828 DPSWriteStringChars( DPSContext ctxt, char *buf, unsigned int count) argument
[all...]
H A Ddpssimpint.h63 char *buf, *outBuf, *objBuf; member in struct:_t_DPSPrivContextRec
H A DdpsXint.h66 char *buf, *outBuf, *objBuf; member in struct:_t_DPSPrivContextRec
H A Dpssysops.psw139 defineps PSversion(int bufsize | char buf[bufsize])
140 version buf
/solaris-x11-s11/open-src/lib/DPS/sun-src/include/DPS/
H A DdpsXpreview.h68 typedef char *(*XDPSGetsFunction)(char *buf,
91 extern char *XDPSFileGetsFunc(char *buf,
113 extern char *XDPSEmbeddedGetsFunc(char *buf, int n, FILE *f, DPSPointer data);
115 extern char *XDPSEmbeddedEPSFGetsFunc(char *buf,
H A Ddpsexcept.h210 extern int setjmp(jmp_buf buf);
216 extern void longjmp(jmp_buf buf, int value);
H A Ddpsclient.h97 struct _t_DPSContextRec *ctxt, char *buf,
102 'buf' contains 'count' bytes of ASCII text. */
135 extern void DPSversion(DPSContext ctxt, int bufsize, char buf[]);
201 extern void DPSWritePostScript(DPSContext ctxt, char *buf,
205 in 'buf'. The code may be in either of the 3 encodings for PostScript
239 extern void DPSWriteData(DPSContext ctxt, char *buf, unsigned int count);
241 /* Write 'count' bytes of data from 'buf' to 'ctxt'. This will not
/solaris-x11-s11/open-src/kernel/efb/src/
H A Dr300_cmdbuf.c281 values[i] = ((int *)(uintptr_t)cmdbuf->buf)[i];
304 cmdbuf->buf += sz * 4;
351 OUT_RING_TABLE(cmdbuf->buf, sz);
354 cmdbuf->buf += sz * 4;
389 OUT_RING_TABLE(cmdbuf->buf, sz * 4);
393 cmdbuf->buf += sz * 16;
415 OUT_RING_TABLE(cmdbuf->buf, 8);
418 cmdbuf->buf += 8 * 4;
441 (void) memcpy(payload, cmdbuf->buf + 4, (count + 1) * 4);
485 cmdbuf->buf
735 r300_discard_buffer(drm_device_t *dev, drm_buf_t *buf) argument
819 drm_buf_t *buf = NULL; local
[all...]
H A Ddrm_dma.c108 drm_free_buffer(drm_device_t *dev, drm_buf_t *buf) argument
110 if (!buf)
113 buf->pending = 0;
114 buf->filp = NULL;
115 buf->used = 0;
H A Ddrm_bufs.c415 drm_buf_t *buf; local
458 buf = &entry->buflist[entry->buf_count];
459 buf->idx = dma->buf_count + entry->buf_count;
460 buf->total = alignment;
461 buf->order = order;
462 buf->used = 0;
464 buf->offset = (dma->byte_count + offset);
465 buf->bus_address = agp_offset + offset;
466 buf->address = (void *)(agp_offset + offset);
467 buf
523 drm_buf_t *buf; local
737 drm_buf_t *buf; local
[all...]
H A Dradeon_state.c279 u32 *cmd = (u32 *)(uintptr_t)cmdbuf->buf;
1551 drm_buf_t *buf, drm_radeon_tcl_prim_t *prim)
1555 int offset = dev_priv->gart_buffers_offset + buf->offset + prim->start;
1595 static void radeon_cp_discard_buffer(drm_device_t *dev, drm_buf_t *buf) argument
1598 drm_radeon_buf_priv_t *buf_priv = buf->dev_private;
1608 buf->pending = 1;
1609 buf->used = 0;
1613 drm_buf_t *buf, int start, int end)
1617 DRM_DEBUG("indirect: buf=%d s=0x%x e=0x%x\n", buf
1550 radeon_cp_dispatch_vertex(drm_device_t *dev, drm_buf_t *buf, drm_radeon_tcl_prim_t *prim) argument
1612 radeon_cp_dispatch_indirect(drm_device_t *dev, drm_buf_t *buf, int start, int end) argument
1709 drm_buf_t *buf; local
2345 drm_buf_t *buf; local
2433 drm_buf_t *buf; local
2628 drm_buf_t *buf; local
2704 drm_buf_t *buf; local
3067 drm_buf_t *buf = NULL; local
[all...]
/solaris-x11-s11/open-src/lib/libX11/sun-src/src/xlibi18n/lcUniConv/
H A Dgb18030.h58 unsigned char buf[4]; local
60 buf[3] = 0x30 + v%10; v/=10;
61 buf[2] = 0x81 + v%126; v/=126;
62 buf[1] = 0x30 + v%10; v/=10;
63 buf[0] = 0x81 + v;
66 ret = gb18030uni_mbtowc(conv,pwc,buf,4);
/solaris-x11-s11/open-src/kernel/drm/src/
H A Ddrm_dma.c125 * \param buf buffer to free.
127 * Resets the fields of \p buf.
130 void drm_free_buffer(struct drm_device *dev, drm_buf_t *buf) argument
132 if (!buf)
135 buf->pending = 0;
136 buf->file_priv = NULL;
137 buf->used = 0;
H A Ddrm_bufs.c542 struct drm_buf *buf; local
617 buf = &entry->buflist[entry->buf_count];
618 buf->idx = dma->buf_count + entry->buf_count;
619 buf->total = alignment;
620 buf->order = order;
621 buf->used = 0;
623 buf->offset = (dma->byte_count + offset);
624 buf->bus_address = agp_offset + offset;
625 buf->address = (void *)(agp_offset + offset);
626 buf
693 struct drm_buf *buf; local
1023 struct drm_buf *buf; local
[all...]
H A Ddrm_dp_i2c_helper.c140 u8 *buf = msgs[m].buf; local
147 ret = i2c_algo_dp_aux_get_byte(adapter, &buf[b]);
153 ret = i2c_algo_dp_aux_put_byte(adapter, buf[b]);
H A Ddrm_linux.c70 kfree(void *buf, size_t size) { argument
/solaris-x11-s11/open-src/lib/DPS/sun-src/libdpstk/
H A DXDPSpreview.c107 char *XDPSFileGetsFunc(char *buf, int n, FILE *f, DPSPointer data) argument
109 return fgets(buf, n, f);
127 char *XDPSEmbeddedGetsFunc(char *buf, int n, FILE *f, DPSPointer data) argument
133 if (fgets(buf, n, f) == NULL) {
142 len = strlen(buf);
149 if (strncmp(buf, "%%BeginDocument", BEGINDOCUMENTLEN) == 0) {
152 } else if (strncmp(buf, "%%BeginBinary:", BEGINBINARYLEN) == 0) {
153 count = sscanf(buf, "%%%%BeginBinary: %lu", &p->binaryCount);
156 } else if (strcmp(buf, "%%EndDocument\n") == 0) {
165 if ((int)len == n-1 && buf[
224 char buf[BUFLEN]; local
469 char buf[BUFSIZE]; local
[all...]
/solaris-x11-s11/open-src/lib/DPS/sun-src/libpsres/
H A DPSres.c229 static char *myfgets(buf, size, f)
230 char *buf;
238 while (--count >= 0 && (buf[count] == ' ' || buf[count] == '\t')) \
239 buf[count] = '\0';
241 if (buf[0] != '\0') return buf; \
242 else return myfgets(buf, size, f);
244 if (size == 0) return buf;
250 buf[coun
865 struct stat buf; local
986 struct stat buf; local
1113 char buf[256]; local
1120 char buf[256]; local
1133 char buf[256]; local
1171 char buf[256]; local
1177 char buf[256]; local
1190 char buf[256]; local
1196 char buf[256]; local
1234 char buf[256]; local
1240 char buf[256]; local
1258 char buf[256]; local
1264 char buf[256]; local
1592 char buf[256]; local
1599 char buf[256]; local
[all...]
/solaris-x11-s11/open-src/lib/DPS/sun-src/makepsres/
H A Dmakepsres.c566 char *buf; local
575 buf = ckmalloc(strlen(font) + strlen(sizes) + 2,
577 sprintf(buf, "%s,%s", font, sizes);
578 AddUPRResource("FontBDFSizes", font, buf, NULL, true);
579 free(buf);
632 static int ReadItem(file, buf, size)
634 char *buf;
663 buf[count++] = c;
666 buf[count] = '\0';
749 char buf[25 local
1114 char key[256], buf[513]; local
1349 char buf[256], name[256]; local
1773 char *buf, *ch = upr->file; local
2041 char buf[256]; local
[all...]
/solaris-x11-s11/open-src/xserver/xorg/sun-src/os/
H A Ddtlogin.c97 char * buf; /* contains characters to be processed */ member in struct:dmdata
98 int bufsize; /* size allocated for buf */
288 free(dmd->buf);
304 if (dmd->buf == NULL) {
306 dmd->buf = malloc(dmd->bufsize);
307 dmd->buf[0] = '\0';
312 bufLen = strlen(dmd->buf);
315 * Realloc only if buf has filled up and we don't have a record
320 dmd->buf = realloc(dmd->buf, dm
[all...]
/solaris-x11-s11/open-src/app/dsession/sun-src/
H A Ddsession.c180 char *buf; local
188 buf = malloc(size);
190 while (fgets(buf, size, fd) != NULL) {
193 strlcpy(output, buf, size);
207 buf = malloc(256);
209 while (fgets(buf, 256, fd) != NULL);
212 free(buf);
379 char buf[BUFSIZ]; local
391 while (fgets(buf, BUFSIZ, fd) != NULL) {
392 size_t bufsize = strlen(buf);
[all...]
/solaris-x11-s11/open-src/xserver/xorg/sun-src/tsol/
H A Dauditwrite.c68 #define AW_NOSAVE_FLAG ((uint_t)0x0010000) /* Don't attach save buf */
181 caddr_t buf; /* audit record buffer */ member in struct:aw_rec
669 aw_recs[i]->buf != (caddr_t)0 &&
1006 if (aw_buf_append(&(aw_recs[rd]->buf), &(aw_recs[rd]->len),
1021 if (aw_buf_append(&(aw_recs[rd]->buf), &(aw_recs[rd]->len),
1034 if (aw_buf_append(&(aw_recs[rd]->buf), &(aw_recs[rd]->len),
1204 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1234 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1261 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1299 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
[all...]
/solaris-x11-s11/open-src/kernel/sys/drm/
H A Ddrm_sun_i2c.h69 u8 *buf; member in struct:i2c_msg
/solaris-x11-s11/open-src/lib/libXaw4/sun-src/
H A DXaw3_1AsciiSink.c178 * buf, len - buffer and length of text to paint.
186 PaintText(w, gc, x, y, buf, len)
190 unsigned char * buf;
197 Dimension width = XTextWidth(sink->text_sink.font, (char *) buf, len);
204 (int) x, (int) y, (char *) buf, len);
234 unsigned char buf[BUFSIZ]; local
248 x += PaintText(w, gc, x, y, buf, j);
251 buf[j] = blk.ptr[k];
252 if (buf[j] == LF) /* line feeds ('\n') are not printed. */
255 else if (buf[
[all...]

Completed in 87 milliseconds

1234