Searched defs:buf (Results 1 - 25 of 69) sorted by relevance

123

/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_linux.c70 kfree(void *buf, size_t size) { argument
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_drv.c300 static int drm_copy_field(char *buf, size_t *buf_len, const char *value) argument
314 if (len && buf)
315 if (copy_to_user(buf, value, len))
617 char buf[FM_MAX_CLASS]; local
622 (void) snprintf(buf, FM_MAX_CLASS, "%s.%s", DDI_FM_DEVICE,
627 ddi_fm_ereport_post(dip, buf, ena, DDI_NOSLEEP,
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...]
/solaris-x11-s11/open-src/kernel/efb/src/
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 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 Dradeon_cp.c2078 drm_buf_t *buf; local
2091 buf = dma->buflist[i];
2092 buf_priv = buf->dev_private;
2093 if (buf->filp == 0 || (buf->pending &&
2096 buf->pending = 0;
2097 return (buf);
2119 drm_buf_t *buf;
2132 buf = dma->buflist[i];
2133 buf_priv = buf
2157 drm_buf_t *buf = dma->buflist[i]; local
2204 drm_buf_t *buf; 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);
H A Dksc5601_1992.h4158 unsigned char buf[2]; local
4205 ret = ksc5601_wctomb(conv, buf, wc, 2);
4210 if (((buf[0] >= 0x21 && buf[0] <= 0x2c) || (buf[0] >= 0x4a && buf[0] <= 0x7d))
4211 && (buf[1] >= 0x21 && buf[1] <= 0x7e)) {
4213 unsigned int t = buf[0] < 0x4A ? (buf[
[all...]
/solaris-x11-s11/open-src/lib/libXaw4/sun-src/
H A DXaw3_1Simple.c97 char buf[BUFSIZ]; local
99 sprintf(buf,
102 XtWarning(buf);
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...]
H A DXaw3_1SmeBSB.c511 char buf[BUFSIZ]; local
518 sprintf(buf, "SmeBSB Object: %s %s \"%s\".", "Could not",
521 XtAppError(XtWidgetToApplicationContext(w), buf); local
524 sprintf(buf, "SmeBSB Object: %s \"%s\"%s.",
527 XtAppError(XtWidgetToApplicationContext(w), buf); local
537 sprintf(buf, "SmeBSB Object: %s %s \"%s\".", "Could not",
540 XtAppError(XtWidgetToApplicationContext(w), buf); local
543 sprintf(buf, "SmeBSB Object: %s \"%s\"%s.",
546 XtAppError(XtWidgetToApplicationContext(w), buf); local
/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/libXaw5/sun-src/
H A DSimple.c146 char buf[BUFSIZ]; local
151 if ((len = strlen (fmt) + strlen (c->core_class.class_name)) < sizeof buf)
152 bufp = buf;
156 bufp = buf;
160 XtWarning(buf);
161 if (bufp != buf) XtFree (bufp);
H A DAsciiSink.c202 * buf, len - buffer and length of text to paint.
210 PaintText(w, gc, x, y, buf, len)
214 unsigned char * buf;
221 Dimension width = XTextWidth(sink->ascii_sink.font, (char *) buf, len);
228 (int) x, (int) y, (char *) buf, len);
258 unsigned char buf[BUFSIZ]; local
272 x += PaintText(w, gc, x, y, buf, j);
275 buf[j] = blk.ptr[k];
276 if (buf[j] == XawLF) /* line feeds ('\n') are not printed. */
279 else if (buf[
[all...]
H A DSmeBSB.c593 char buf[BUFSIZ]; local
609 if ((len = strlen (fmt1) + strlen (smeobj) + strlen (Left) + strlen (XtName (w))) < sizeof buf)
610 bufp = buf;
614 bufp = buf;
619 if (bufp != buf) XtFree (bufp);
622 if ((len = strlen (fmt2) + strlen (smeobj) + strlen (Left) + strlen (XtName (w))) < sizeof buf)
623 bufp = buf;
627 bufp = buf;
630 (void) sprintf(buf, fmt2, smeobj, Left, XtName(w));
631 XtAppError(XtWidgetToApplicationContext(w), buf); local
664 XtAppError(XtWidgetToApplicationContext(w), buf); local
[all...]
H A DTextSrc.c632 char *buf; local
635 buf = XtMalloc(*len_in_out + 1);
636 if (!buf) {
642 strncpy(buf, str, *len_in_out);
643 *(buf + *len_in_out) = '\0';
644 if (XmbTextListToTextProperty(d, &buf, 1, XTextStyle, &textprop)
648 XtFree(buf);
652 XtFree(buf);
/solaris-x11-s11/open-src/app/fbconsole/sun-src/
H A Dfbconsole.c329 char buf[1024]; local
332 rcount = read(console, buf, 1024);
337 (void) fwrite(buf, rcount, 1, log);
/solaris-x11-s11/open-src/lib/DPS/sun-src/libdps/
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
/solaris-x11-s11/open-src/driver/xf86-input-hotkey/sun-src/
H A Dhotkey.c73 char buf; local
87 buf = keysym - HOTKEY_KEYSYM_ROOT;
89 write(hotkey_event_fd[1], &buf, 1);
176 unsigned char buf; local
183 if (read (pInfo->fd, &buf, 1 ) == 1)
184 keysym = buf + HOTKEY_KEYSYM_ROOT;
/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/kernel/i915/src/
H A Dintel_i2c.c298 u8 *buf = msg->buf; local
317 *buf++ = val & 0xff;
330 u8 *buf = msg->buf; local
335 val |= *buf++ << (8 * loop++);
350 val |= *buf++ << (8 * loop);
385 msgs[0].buf[1] | (msgs[0].buf[0] << 8);
388 (msgs[0].buf[
[all...]

Completed in 181 milliseconds

123