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

/solaris-x11-s12/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))
630 char buf[FM_MAX_CLASS]; local
635 (void) snprintf(buf, FM_MAX_CLASS, "%s.%s", DDI_FM_DEVICE,
640 ddi_fm_ereport_post(dip, buf, ena, DDI_NOSLEEP,
H A Ddrm_bufs.c545 struct drm_buf *buf; local
620 buf = &entry->buflist[entry->buf_count];
621 buf->idx = dma->buf_count + entry->buf_count;
622 buf->total = alignment;
623 buf->order = order;
624 buf->used = 0;
626 buf->offset = (dma->byte_count + offset);
627 buf->bus_address = agp_offset + offset;
628 buf->address = (void *)(agp_offset + offset);
629 buf
696 struct drm_buf *buf; local
1026 struct drm_buf *buf; local
[all...]
H A Ddrm_edid.c986 * \param buf : EDID data buffer to be filled
993 drm_do_probe_ddc_edid(struct i2c_adapter *adapter, unsigned char *buf, argument
1013 .buf = &segment,
1018 .buf = &start,
1023 .buf = buf,
H A Ddrm_crtc.c206 static char buf[32]; local
208 (void) snprintf(buf, 32, "%s-%d",
211 return buf;
216 static char buf[32]; local
218 (void) snprintf(buf, 32, "%s-%d",
221 return buf;
240 static char buf[32]; local
242 (void) snprintf(buf, sizeof(buf),
251 return buf;
[all...]
/solaris-x11-s12/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-s12/open-src/kernel/sys/drm/
H A Ddrm_sun_i2c.h69 u8 *buf; member in struct:i2c_msg
/solaris-x11-s12/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-s12/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-s12/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-s12/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...]
H A Ddvo_ch7017.c179 .buf = &addr,
185 .buf = val,
193 uint8_t buf[2] = { addr, val }; local
198 .buf = buf,
H A Dintel_dp.c2313 u8 buf[3]; local
2320 if (intel_dp_aux_native_read_retry(intel_dp, DP_SINK_OUI, buf, 3))
2322 buf[0], buf[1], buf[2]);
2324 if (intel_dp_aux_native_read_retry(intel_dp, DP_BRANCH_OUI, buf, 3))
2326 buf[0], buf[1], buf[2]);
H A Dintel_sdvo.c277 .buf = &addr,
283 .buf = ch,
451 u8 *buf, status; local
456 buf = (u8 *)kzalloc(args_len * 2 + 2, GFP_KERNEL);
457 if (!buf)
462 kfree(buf, args_len * 2 + 2);
472 msgs[i].buf = buf + 2 *i;
473 buf[2*i + 0] = SDVO_I2C_ARG_0 - i;
474 buf[
[all...]
H A Di915_drm.h330 char *buf; /* pointer to userspace command buffer */ member in struct:_drm_i915_cmdbuffer
331 int sz; /* nr bytes in buf */
339 caddr32_t buf; /* pointer to userspace command buffer */ member in struct:drm_i915_cmdbuffer32
340 int sz; /* nr bytes in buf */
H A Di915_drv.h914 u8 *buf; member in struct:drm_i915_error_state_buf
/solaris-x11-s12/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-s12/open-src/app/gfx-utils/sun-src/fbconf_xorg/fbc/
H A Dsun_edid.c239 const uint8_t *buf, /* EDID Base block, etc. */
245 name[0] = 'A' - 1 + ((buf[0x08] >> 2) & 0x1F);
246 name[1] = 'A' - 1 + (((buf[0x08] << 3) | (buf[0x09] >> 5)) & 0x1F);
247 name[2] = 'A' - 1 + (buf[0x09] & 0x1F);
250 *product_code = sun_edid_get_le_short(&buf[0x0A]);
251 *serial_num = sun_edid_get_le_long(&buf[0x0C]);
238 sun_edid_vendor( const uint8_t *buf, char *name, uint16_t *product_code, uint32_t *serial_num) argument
/solaris-x11-s12/open-src/app/mkcookie/sun-src/
H A Dmkcookie.c245 char buf[2048] = { 0 }; local
246 void * bufptr = buf;
247 size_t len = sizeof(buf);
/solaris-x11-s12/open-src/app/xlock/sun-src/
H A Dresource.c784 char buf[BUFSIZ]; local
786 snprintf(buf, sizeof(buf), "%s/.Xdefaults", homeenv);
787 homeDB = XrmGetFileDatabase(buf);
/solaris-x11-s12/open-src/lib/libX11/sun-src/modules/lc/gb18030/
H A DlcGB18030.c1116 char buf[MB_CUR_MAX]; local
1122 mblen = wctomb(buf, *src);
1138 *dst++ = buf[i];

Completed in 180 milliseconds