/external/python/cpython2/Modules/ |
D | _codecsmodule.c | 236 Py_buffer pbuf; in utf_7_decode() local 243 &pbuf, &errors, &final)) in utf_7_decode() 245 consumed = pbuf.len; in utf_7_decode() 247 decoded = PyUnicode_DecodeUTF7Stateful(pbuf.buf, pbuf.len, errors, in utf_7_decode() 249 PyBuffer_Release(&pbuf); in utf_7_decode() 259 Py_buffer pbuf; in utf_8_decode() local 266 &pbuf, &errors, &final)) in utf_8_decode() 268 consumed = pbuf.len; in utf_8_decode() 270 decoded = PyUnicode_DecodeUTF8Stateful(pbuf.buf, pbuf.len, errors, in utf_8_decode() 272 PyBuffer_Release(&pbuf); in utf_8_decode() [all …]
|
D | binascii.c | 469 Py_buffer pbuf; in binascii_b2a_base64() local 477 if ( !PyArg_ParseTuple(args, "s*:b2a_base64", &pbuf) ) in binascii_b2a_base64() 479 bin_data = pbuf.buf; in binascii_b2a_base64() 480 bin_len = pbuf.len; in binascii_b2a_base64() 486 PyBuffer_Release(&pbuf); in binascii_b2a_base64() 494 PyBuffer_Release(&pbuf); in binascii_b2a_base64() 525 PyBuffer_Release(&pbuf); in binascii_b2a_base64() 617 Py_buffer pbuf; in binascii_rlecode_hqx() local 623 if ( !PyArg_ParseTuple(args, "s*:rlecode_hqx", &pbuf) ) in binascii_rlecode_hqx() 625 in_data = pbuf.buf; in binascii_rlecode_hqx() [all …]
|
/external/mesa3d/src/glx/apple/ |
D | apple_glx_pbuffer.c | 76 struct apple_glx_pbuffer *pbuf = &d->types.pbuffer; in pbuffer_make_current() local 81 cglerr = apple_cgl.set_pbuffer(ac->context_obj, pbuf->buffer_obj, 0, 0, 0); in pbuffer_make_current() 89 apple_glapi_oglfw_viewport_scissor(0, 0, pbuf->width, pbuf->height); in pbuffer_make_current() 101 struct apple_glx_pbuffer *pbuf = &d->types.pbuffer; in pbuffer_destroy() local 108 apple_cgl.destroy_pbuffer(pbuf->buffer_obj); in pbuffer_destroy() 109 XFreePixmap(dpy, pbuf->xid); in pbuffer_destroy() 114 apple_glx_pbuffer_destroy(Display * dpy, GLXPbuffer pbuf) in apple_glx_pbuffer_destroy() argument 116 return !apple_glx_drawable_destroy_by_type(dpy, pbuf, in apple_glx_pbuffer_destroy() 127 struct apple_glx_pbuffer *pbuf = NULL; in apple_glx_pbuffer_create() local 156 pbuf = &d->types.pbuffer; in apple_glx_pbuffer_create() [all …]
|
/external/libmtp/util/ |
D | mtp-probe.c | 65 char pbuf[FILENAME_MAX]; in get_ep_type() local 76 strcpy(pbuf, path); in get_ep_type() 77 pbuf[len++] = '/'; in get_ep_type() 80 strncpy(pbuf + len, "type", FILENAME_MAX - len); in get_ep_type() 81 pbuf[FILENAME_MAX - 1] = '\0'; /* Sentinel */ in get_ep_type() 83 fd = open(pbuf, O_RDONLY); in get_ep_type() 101 strncpy(pbuf + len, "direction", FILENAME_MAX - len); in get_ep_type() 102 pbuf[FILENAME_MAX - 1] = '\0'; /* Sentinel */ in get_ep_type() 104 fd = open(pbuf, O_RDONLY); in get_ep_type() 135 char pbuf[FILENAME_MAX]; in has_3_ep() local [all …]
|
/external/python/cpython3/Objects/ |
D | structseq.c | 179 char *endofbuf, *pbuf = buf; in structseq_repr() local 187 strncpy(pbuf, typ->tp_name, len); in structseq_repr() 188 pbuf += len; in structseq_repr() 189 *pbuf++ = '('; in structseq_repr() 213 if ((pbuf+len) <= endofbuf) { in structseq_repr() 214 strcpy(pbuf, cname); in structseq_repr() 215 pbuf += strlen(cname); in structseq_repr() 216 *pbuf++ = '='; in structseq_repr() 217 strcpy(pbuf, crepr); in structseq_repr() 218 pbuf += strlen(crepr); in structseq_repr() [all …]
|
/external/ipsec-tools/src/racoon/ |
D | remoteconf.c | 498 char buf[1024], *pbuf; in dump_peers_identifiers() local 499 pbuf = buf; in dump_peers_identifiers() 500 pbuf += sprintf (pbuf, "\tpeers_identifier %s", in dump_peers_identifiers() 503 pbuf += sprintf (pbuf, " \"%s\"", id->id->v); in dump_peers_identifiers() 513 char buf[1024], *pbuf; in dump_rmconf_single() local 515 pbuf = buf; in dump_rmconf_single() 516 pbuf += sprintf(pbuf, "remote %s", saddr2str(p->remote)); in dump_rmconf_single() 518 pbuf += sprintf(pbuf, " inherit %s", in dump_rmconf_single() 521 pbuf = buf; in dump_rmconf_single() 522 pbuf += sprintf(pbuf, "\texchange_type "); in dump_rmconf_single() [all …]
|
D | isakmp_ident.c | 256 vchar_t *pbuf = NULL; local 279 pbuf = isakmp_parse(msg); 280 if (pbuf == NULL) 282 pa = (struct isakmp_parse_t *)pbuf->v; 335 if (pbuf) 336 vfree(pbuf); 427 vchar_t *pbuf = NULL; local 446 pbuf = isakmp_parse(msg); 447 if (pbuf == NULL) 450 for (pa = (struct isakmp_parse_t *)pbuf->v; [all …]
|
D | isakmp_newg.c | 89 vchar_t *pbuf = NULL; 92 if ((pbuf = isakmp_parse(msg)) == NULL) 95 for (pa = (struct isakmp_parse_t *)pbuf->v; 106 vfree(pbuf); 117 vfree(pbuf); 131 vfree(pbuf); 135 vfree(pbuf);
|
D | isakmp_base.c | 296 vchar_t *pbuf = NULL; local 314 pbuf = isakmp_parse(msg); 315 if (pbuf == NULL) 317 pa = (struct isakmp_parse_t *)pbuf->v; 391 if (pbuf) 392 vfree(pbuf); 588 vchar_t *pbuf = NULL; local 605 pbuf = isakmp_parse(msg); 606 if (pbuf == NULL) 609 for (pa = (struct isakmp_parse_t *)pbuf->v; [all …]
|
D | security.c | 71 vchar_t *pbuf = NULL; local 90 pbuf = isakmp_parsewoh(ISAKMP_NPTYPE_P, (struct isakmp_gen *)bp, len); 91 if (pbuf == NULL) 94 pa = (struct isakmp_parse_t *)pbuf->v; 99 vfree(pbuf); 106 vfree(pbuf);
|
D | isakmp_agg.c | 342 vchar_t *pbuf = NULL; local 375 pbuf = isakmp_parse(msg); 376 if (pbuf == NULL) 378 pa = (struct isakmp_parse_t *)pbuf->v; 584 if (pbuf) 585 vfree(pbuf); 782 vchar_t *pbuf = NULL; local 797 pbuf = isakmp_parse(msg); 798 if (pbuf == NULL) 800 pa = (struct isakmp_parse_t *)pbuf->v; [all …]
|
D | isakmp_quick.c | 316 vchar_t *pbuf = NULL; /* for payload parsing */ local 349 pbuf = isakmp_parse(msg); 350 if (pbuf == NULL) 352 pa = (struct isakmp_parse_t *)pbuf->v; 531 if (pbuf) 532 vfree(pbuf); 696 vchar_t *pbuf = NULL; /* for payload parsing */ local 720 pbuf = isakmp_parse(msg); 721 if (pbuf == NULL) 724 for (pa = (struct isakmp_parse_t *)pbuf->v; [all …]
|
/external/ipsec-tools/src/libipsec/ |
D | policy_parse.y | 100 static u_int8_t *pbuf = NULL; /* sadb_x_policy buffer */ variable 476 if (pbuf) { in init_x_policy() 477 free(pbuf); in init_x_policy() 480 pbuf = malloc(sizeof(struct sadb_x_policy)); in init_x_policy() 481 if (pbuf == NULL) { in init_x_policy() 487 memset(pbuf, 0, tlen); in init_x_policy() 488 p = (struct sadb_x_policy *)pbuf; in init_x_policy() 525 n = realloc(pbuf, tlen); 530 pbuf = n; 532 p = (struct sadb_x_ipsecrequest *)&pbuf[offset]; [all …]
|
D | pfkey_dump.c | 488 char pbuf[NI_MAXSERV]; local 540 0, pbuf, sizeof(pbuf), NI_NUMERICSERV) != 0) 543 sport = atoi(pbuf); 561 0, pbuf, sizeof(pbuf), NI_NUMERICSERV) != 0) 564 dport = atoi(pbuf);
|
/external/u-boot/drivers/crypto/fsl/ |
D | fsl_hash.c | 161 int caam_hash(const unsigned char *pbuf, unsigned int buf_len, in caam_hash() argument 174 if (!IS_ALIGNED((uintptr_t)pbuf, ARCH_DMA_MINALIGN) || in caam_hash() 181 flush_dcache_range((unsigned long)pbuf, (unsigned long)pbuf + size); in caam_hash() 183 inline_cnstr_jobdesc_hash(desc, pbuf, buf_len, pout, in caam_hash() 201 void hw_sha256(const unsigned char *pbuf, unsigned int buf_len, in hw_sha256() argument 204 if (caam_hash(pbuf, buf_len, pout, SHA256)) in hw_sha256() 208 void hw_sha1(const unsigned char *pbuf, unsigned int buf_len, in hw_sha1() argument 211 if (caam_hash(pbuf, buf_len, pout, SHA1)) in hw_sha1()
|
/external/python/cpython2/Objects/ |
D | structseq.c | 245 char *endofbuf, *pbuf = buf; in structseq_repr() local 257 strncpy(pbuf, typ->tp_name, len); in structseq_repr() 258 pbuf += len; in structseq_repr() 259 *pbuf++ = '('; in structseq_repr() 285 if ((pbuf+len) <= endofbuf) { in structseq_repr() 286 strcpy(pbuf, cname); in structseq_repr() 287 pbuf += strlen(cname); in structseq_repr() 288 *pbuf++ = '='; in structseq_repr() 289 strcpy(pbuf, crepr); in structseq_repr() 290 pbuf += strlen(crepr); in structseq_repr() [all …]
|
/external/u-boot/drivers/crypto/ |
D | ace_sha.c | 27 int ace_sha_hash_digest(const unsigned char *pbuf, unsigned int buf_len, in ace_sha_hash_digest() argument 71 writel((unsigned int)pbuf, &ace_sha_reg->fc_hrdmas); in ace_sha_hash_digest() 102 void hw_sha256(const unsigned char *pbuf, unsigned int buf_len, in hw_sha256() argument 105 if (ace_sha_hash_digest(pbuf, buf_len, pout, ACE_SHA_TYPE_SHA256)) in hw_sha256() 109 void hw_sha1(const unsigned char *pbuf, unsigned int buf_len, in hw_sha1() argument 112 if (ace_sha_hash_digest(pbuf, buf_len, pout, ACE_SHA_TYPE_SHA1)) in hw_sha1()
|
/external/u-boot/drivers/block/ |
D | ide.c | 135 volatile ushort *pbuf; in ide_output_data_shorts() local 137 pbuf = (ushort *)(ATA_CURR_BASE(dev) + ATA_DATA_REG); in ide_output_data_shorts() 141 (unsigned long) pbuf); in ide_output_data_shorts() 145 *pbuf = *dbuf++; in ide_output_data_shorts() 152 volatile ushort *pbuf; in ide_input_data_shorts() local 154 pbuf = (ushort *)(ATA_CURR_BASE(dev) + ATA_DATA_REG); in ide_input_data_shorts() 158 (unsigned long) pbuf); in ide_input_data_shorts() 162 *dbuf++ = *pbuf; in ide_input_data_shorts() 854 volatile ushort *pbuf = in ide_input_swap_data() local 859 (unsigned long) pbuf); in ide_input_swap_data() [all …]
|
/external/u-boot/drivers/mmc/ |
D | tmio-common.c | 157 char *pbuf, uint blksz) \ 159 u##__width *buf = (u##__width *)pbuf; \ 181 static int tmio_sd_pio_read_one_block(struct udevice *dev, char *pbuf, in tmio_sd_pio_read_one_block() argument 200 tmio_pio_read_fifo_64(priv, pbuf, blocksize); in tmio_sd_pio_read_one_block() 202 tmio_pio_read_fifo_16(priv, pbuf, blocksize); in tmio_sd_pio_read_one_block() 204 tmio_pio_read_fifo_32(priv, pbuf, blocksize); in tmio_sd_pio_read_one_block() 211 const char *pbuf, uint blksz)\ 213 const u##__width *buf = (const u##__width *)pbuf; \ 235 const char *pbuf, uint blocksize) in tmio_sd_pio_write_one_block() argument 249 tmio_pio_write_fifo_64(priv, pbuf, blocksize); in tmio_sd_pio_write_one_block() [all …]
|
/external/ltp/testcases/kernel/syscalls/open/ |
D | open09.c | 47 char pbuf[BUFSIZ]; in main() local 61 ret = read(fildes, pbuf, 1); in main() 73 ret = write(fildes, pbuf, 1); in main()
|
/external/python/cpython2/Modules/_io/ |
D | fileio.c | 503 Py_buffer pbuf; in fileio_readinto() local 511 if (!PyArg_ParseTuple(args, "w*", &pbuf)) in fileio_readinto() 515 len = pbuf.len; in fileio_readinto() 521 n = read(self->fd, pbuf.buf, (int)len); in fileio_readinto() 523 n = read(self->fd, pbuf.buf, len); in fileio_readinto() 528 PyBuffer_Release(&pbuf); in fileio_readinto() 711 Py_buffer pbuf; in fileio_write() local 719 if (!PyArg_ParseTuple(args, "s*", &pbuf)) in fileio_write() 725 len = pbuf.len; in fileio_write() 729 n = write(self->fd, pbuf.buf, (int)len); in fileio_write() [all …]
|
/external/ltp/testcases/kernel/syscalls/fork/ |
D | fork08.c | 53 static char pbuf[10]; variable 165 sprintf(pbuf, "%d", getpid()); in setup() 166 strcat(fnamebuf, pbuf); in setup()
|
D | fork07.c | 57 static char pbuf[10]; variable 199 sprintf(pbuf, "%d", getpid()); in setup() 200 strcat(fnamebuf, pbuf); in setup()
|
/external/u-boot/drivers/i2c/ |
D | rk_i2c.c | 155 uchar *pbuf = buf; in rk_i2c_read() local 234 *pbuf++ = (rxdata >> (j * 8)) & 0xff; in rk_i2c_read() 255 uchar *pbuf = buf; in rk_i2c_write() local 282 if (i == 0 && j == 0 && pbuf == buf) { in rk_i2c_write() 284 } else if (i == 0 && j <= r_len && pbuf == buf) { in rk_i2c_write() 288 txdata |= (*pbuf++)<<(j * 8); in rk_i2c_write()
|
/external/ltp/testcases/kernel/syscalls/fsync/ |
D | fsync02.c | 80 char pbuf[BUFSIZ]; in main() local 109 if ((ret = write(fd, pbuf, BUFSIZ)) != BUFSIZ) in main() 183 if (write(fd, pbuf, BUFSIZ) != BUFSIZ) in setup()
|