/external/libpng/contrib/tools/ |
D | pngcp.c | 482 display_init(struct display *dp) in display_init() argument 488 memset(dp, 0, sizeof *dp); in display_init() 489 dp->operation = "internal error"; in display_init() 490 dp->filename = "command line"; in display_init() 491 dp->output_file = "no output file"; in display_init() 492 dp->options = WARNINGS; /* default to !verbose, !quiet */ in display_init() 493 dp->fp = NULL; in display_init() 494 dp->read_pp = NULL; in display_init() 495 dp->ip = NULL; in display_init() 496 dp->write_pp = NULL; in display_init() [all …]
|
/external/tcpdump/ |
D | print-nfs.c | 234 const uint32_t *dp, struct nfsv3_sattr *sa3) in parse_sattr3() argument 236 ND_TCHECK(dp[0]); in parse_sattr3() 237 sa3->sa_modeset = EXTRACT_32BITS(dp); in parse_sattr3() 238 dp++; in parse_sattr3() 240 ND_TCHECK(dp[0]); in parse_sattr3() 241 sa3->sa_mode = EXTRACT_32BITS(dp); in parse_sattr3() 242 dp++; in parse_sattr3() 245 ND_TCHECK(dp[0]); in parse_sattr3() 246 sa3->sa_uidset = EXTRACT_32BITS(dp); in parse_sattr3() 247 dp++; in parse_sattr3() [all …]
|
D | print-icmp.c | 334 const struct icmp *dp; in icmp_print() local 348 dp = (const struct icmp *)bp; in icmp_print() 353 ND_TCHECK(dp->icmp_code); in icmp_print() 354 switch (dp->icmp_type) { in icmp_print() 358 ND_TCHECK(dp->icmp_seq); in icmp_print() 360 dp->icmp_type == ICMP_ECHO ? in icmp_print() 362 EXTRACT_16BITS(&dp->icmp_id), in icmp_print() 363 EXTRACT_16BITS(&dp->icmp_seq)); in icmp_print() 367 ND_TCHECK(dp->icmp_ip.ip_dst); in icmp_print() 368 switch (dp->icmp_code) { in icmp_print() [all …]
|
/external/libcups/cups/ |
D | dir.c | 68 cupsDirClose(cups_dir_t *dp) /* I - Directory pointer */ in cupsDirClose() argument 74 if (!dp) in cupsDirClose() 81 if (dp->dir != INVALID_HANDLE_VALUE) in cupsDirClose() 82 FindClose(dp->dir); in cupsDirClose() 88 free(dp); in cupsDirClose() 101 cups_dir_t *dp; /* Directory */ in cupsDirOpen() local 115 dp = (cups_dir_t *)calloc(1, sizeof(cups_dir_t)); in cupsDirOpen() 116 if (!dp) in cupsDirOpen() 123 dp->dir = INVALID_HANDLE_VALUE; in cupsDirOpen() 125 strlcpy(dp->directory, directory, sizeof(dp->directory)); in cupsDirOpen() [all …]
|
/external/python/cpython2/Modules/ |
D | bsddbmodule.c | 57 bsddbobject *dp; in newdbhashobject() local 60 if ((dp = PyObject_New(bsddbobject, &Bsddbtype)) == NULL) in newdbhashobject() 74 dp->di_bsddb = dbopen(file, flags, mode, DB_HASH, &info); in newdbhashobject() 76 if (dp->di_bsddb == NULL) { in newdbhashobject() 79 dp->di_lock = NULL; in newdbhashobject() 81 Py_DECREF(dp); in newdbhashobject() 85 dp->di_size = -1; in newdbhashobject() 86 dp->di_type = DB_HASH; in newdbhashobject() 89 dp->di_lock = PyThread_allocate_lock(); in newdbhashobject() 90 if (dp->di_lock == NULL) { in newdbhashobject() [all …]
|
D | dbmmodule.c | 52 dbmobject *dp; in newdbmobject() local 54 dp = PyObject_New(dbmobject, &Dbmtype); in newdbmobject() 55 if (dp == NULL) in newdbmobject() 57 dp->di_size = -1; in newdbmobject() 58 if ( (dp->di_dbm = dbm_open(file, flags, mode)) == 0 ) { in newdbmobject() 60 Py_DECREF(dp); in newdbmobject() 63 return (PyObject *)dp; in newdbmobject() 69 dbm_dealloc(register dbmobject *dp) in dbm_dealloc() argument 71 if ( dp->di_dbm ) in dbm_dealloc() 72 dbm_close(dp->di_dbm); in dbm_dealloc() [all …]
|
D | gdbmmodule.c | 61 dbmobject *dp; in newdbmobject() local 63 dp = PyObject_New(dbmobject, &Dbmtype); in newdbmobject() 64 if (dp == NULL) in newdbmobject() 66 dp->di_size = -1; in newdbmobject() 68 if ((dp->di_dbm = gdbm_open(file, 0, flags, mode, NULL)) == 0) { in newdbmobject() 73 Py_DECREF(dp); in newdbmobject() 76 return (PyObject *)dp; in newdbmobject() 82 dbm_dealloc(register dbmobject *dp) in dbm_dealloc() argument 84 if (dp->di_dbm) in dbm_dealloc() 85 gdbm_close(dp->di_dbm); in dbm_dealloc() [all …]
|
/external/libpng/contrib/libtests/ |
D | pngimage.c | 589 display_init(struct display *dp) in display_init() argument 595 memset(dp, 0, sizeof *dp); in display_init() 596 dp->options = WARNINGS; /* default to !verbose, !quiet */ in display_init() 597 dp->filename = NULL; in display_init() 598 dp->operation = NULL; in display_init() 599 dp->original_pp = NULL; in display_init() 600 dp->original_ip = NULL; in display_init() 601 dp->original_rows = NULL; in display_init() 602 dp->read_pp = NULL; in display_init() 603 dp->read_ip = NULL; in display_init() [all …]
|
/external/libpng/ |
D | pngwtran.c | 36 png_bytep sp, dp; in png_do_pack() local 42 dp = row; in png_do_pack() 59 *dp = (png_byte)v; in png_do_pack() 60 dp++; in png_do_pack() 66 *dp = (png_byte)v; in png_do_pack() 73 png_bytep sp, dp; in png_do_pack() local 80 dp = row; in png_do_pack() 94 *dp = (png_byte)v; in png_do_pack() 95 dp++; in png_do_pack() 106 *dp = (png_byte)v; in png_do_pack() [all …]
|
D | pngrtran.c | 2166 png_bytep dp = row + (size_t)row_width - 1; in png_do_unpack() local 2170 *dp = (png_byte)((*sp >> shift) & 0x01); in png_do_unpack() 2181 dp--; in png_do_unpack() 2190 png_bytep dp = row + (size_t)row_width - 1; in png_do_unpack() local 2194 *dp = (png_byte)((*sp >> shift) & 0x03); in png_do_unpack() 2205 dp--; in png_do_unpack() 2213 png_bytep dp = row + (size_t)row_width - 1; in png_do_unpack() local 2217 *dp = (png_byte)((*sp >> shift) & 0x0f); in png_do_unpack() 2228 dp--; in png_do_unpack() 2396 png_bytep dp = row; /* destination */ in png_do_scale_16_to_8() local [all …]
|
/external/pdfium/third_party/libpng16/ |
D | pngwtran.c | 36 png_bytep sp, dp; in png_do_pack() local 42 dp = row; in png_do_pack() 59 *dp = (png_byte)v; in png_do_pack() 60 dp++; in png_do_pack() 66 *dp = (png_byte)v; in png_do_pack() 73 png_bytep sp, dp; in png_do_pack() local 80 dp = row; in png_do_pack() 94 *dp = (png_byte)v; in png_do_pack() 95 dp++; in png_do_pack() 106 *dp = (png_byte)v; in png_do_pack() [all …]
|
/external/e2fsprogs/intl/ |
D | vasnprintf.c | 139 DIRECTIVE *dp; in VASNPRINTF() local 207 for (cp = format, i = 0, dp = &d.dir[0]; ; cp = dp->dir_end, i++, dp++) in VASNPRINTF() 209 if (cp != dp->dir_start) in VASNPRINTF() 211 size_t n = dp->dir_start - cp; in VASNPRINTF() 222 if (dp->conversion == '%') in VASNPRINTF() 226 if (!(dp->arg_index == ARG_NONE)) in VASNPRINTF() 235 if (!(dp->arg_index != ARG_NONE)) in VASNPRINTF() 238 if (dp->conversion == 'n') in VASNPRINTF() 240 switch (a.arg[dp->arg_index].type) in VASNPRINTF() 243 *a.arg[dp->arg_index].a.a_count_schar_pointer = length; in VASNPRINTF() [all …]
|
D | printf-parse.c | 121 DIRECTIVE *dp = &d->dir[d->count];/* pointer to next directive */ in PRINTF_PARSE() local 124 dp->dir_start = cp - 1; in PRINTF_PARSE() 125 dp->flags = 0; in PRINTF_PARSE() 126 dp->width_start = NULL; in PRINTF_PARSE() 127 dp->width_end = NULL; in PRINTF_PARSE() 128 dp->width_arg_index = ARG_NONE; in PRINTF_PARSE() 129 dp->precision_start = NULL; in PRINTF_PARSE() 130 dp->precision_end = NULL; in PRINTF_PARSE() 131 dp->precision_arg_index = ARG_NONE; in PRINTF_PARSE() 132 dp->arg_index = ARG_NONE; in PRINTF_PARSE() [all …]
|
/external/e2fsprogs/lib/ext2fs/ |
D | finddev.c | 52 struct dir_list *dp; in add_to_dirlist() local 54 dp = malloc(sizeof(struct dir_list)); in add_to_dirlist() 55 if (!dp) in add_to_dirlist() 57 dp->name = malloc(strlen(name)+1); in add_to_dirlist() 58 if (!dp->name) { in add_to_dirlist() 59 free(dp); in add_to_dirlist() 62 strcpy(dp->name, name); in add_to_dirlist() 63 dp->next = *list; in add_to_dirlist() 64 *list = dp; in add_to_dirlist() 72 struct dir_list *dp, *next; in free_dirlist() local [all …]
|
/external/mesa3d/src/intel/tools/tests/gen9/ |
D | sends.asm | 2 …dp data 1 MsgDesc: ( DC typed surface write, Surface = 1, SIMD16, Mask = 0x0) mlen 2 ex_mlen 4 rle… 4 …dp data 1 MsgDesc: ( DC typed surface write, Surface = 1, SIMD8, Mask = 0x0) mlen 2 ex_mlen 4 rlen… 6 …dp data 1 MsgDesc: ( DC typed surface write, Surface = 1, SIMD16, Mask = 0x0) mlen 2 ex_mlen 4 rle… 8 …dp data 1 MsgDesc: ( DC untyped atomic op, Surface = 1, SIMD8, or) mlen 1 ex_mlen 1 rlen 1 { align… 10 …dp data 1 MsgDesc: ( DC untyped atomic op, Surface = 1, SIMD16, or) mlen 2 ex_mlen 2 rlen 2 { alig… 12 …dp data 1 MsgDesc: ( DC untyped surface write, Surface = 254, SIMD16, Mask = 0xe) mlen 2 ex_mlen 2… 14 …dp data 1 MsgDesc: ( DC untyped atomic op, Surface = 254, SIMD16, add) mlen 2 ex_mlen 2 rlen 0 { a… 16 …dp data 1 MsgDesc: ( DC typed surface write, Surface = 2, SIMD16, Mask = 0x0) mlen 2 ex_mlen 4 rle… 18 …dp data 1 MsgDesc: ( DC typed surface write, Surface = 2, SIMD8, Mask = 0x0) mlen 2 ex_mlen 4 rlen… 20 …dp data 1 MsgDesc: ( DC untyped surface write, Surface = 1, SIMD8, Mask = 0x0) mlen 1 ex_mlen 4 rl… [all …]
|
/external/e2fsprogs/lib/blkid/ |
D | devno.c | 68 struct dir_list *dp; in add_to_dirlist() local 70 dp = malloc(sizeof(struct dir_list)); in add_to_dirlist() 71 if (!dp) in add_to_dirlist() 73 dp->name = blkid_strdup(name); in add_to_dirlist() 74 if (!dp->name) { in add_to_dirlist() 75 free(dp); in add_to_dirlist() 78 dp->next = *list; in add_to_dirlist() 79 *list = dp; in add_to_dirlist() 87 struct dir_list *dp, *next; in free_dirlist() local 89 for (dp = *list; dp; dp = next) { in free_dirlist() [all …]
|
/external/openssh/regress/unittests/sshbuf/ |
D | test_sshbuf.c | 32 u_char *dp; in sshbuf_tests() local 85 r = sshbuf_reserve(p1, 1, &dp); in sshbuf_tests() 87 ASSERT_PTR_NE(dp, NULL); in sshbuf_tests() 88 *dp = 0x11; in sshbuf_tests() 89 r = sshbuf_reserve(p1, 3, &dp); in sshbuf_tests() 91 ASSERT_PTR_NE(dp, NULL); in sshbuf_tests() 92 *dp++ = 0x22; in sshbuf_tests() 93 *dp++ = 0x33; in sshbuf_tests() 94 *dp++ = 0x44; in sshbuf_tests() 140 r = sshbuf_reserve(p1, 4, &dp); in sshbuf_tests() [all …]
|
/external/python/cpython3/Modules/ |
D | _dbmmodule.c | 58 dbmobject *dp; in newdbmobject() local 60 dp = PyObject_New(dbmobject, &Dbmtype); in newdbmobject() 61 if (dp == NULL) in newdbmobject() 63 dp->di_size = -1; in newdbmobject() 64 dp->flags = flags; in newdbmobject() 66 if ( (dp->di_dbm = dbm_open((char *)file, flags, mode)) == 0 ) { in newdbmobject() 68 Py_DECREF(dp); in newdbmobject() 71 return (PyObject *)dp; in newdbmobject() 77 dbm_dealloc(dbmobject *dp) in dbm_dealloc() argument 79 if ( dp->di_dbm ) in dbm_dealloc() [all …]
|
/external/python/cpython2/Python/ |
D | strtod.c | 70 register char *sp, *dp; in strtod() local 80 dp = buffer; in strtod() 81 *dp++ = '0'; *dp++ = '.'; in strtod() 82 buforg = dp, buflim = buffer+48; in strtod() 92 if (dp != buforg) { in strtod() 94 if (dp < buflim) *dp++ = c; in strtod() 103 if (dp < buflim) *dp++ = c; in strtod() 113 while (dp > buforg && dp[-1] == '0') --dp; in strtod() 114 if (dp == buforg) *dp++ = '0'; in strtod() 115 *dp = '\0'; in strtod() [all …]
|
/external/fec/ |
D | dotprod_sse2.c | 25 struct dotprod *dp; in initdp_sse2() local 31 dp = (struct dotprod *)calloc(1,sizeof(struct dotprod)); in initdp_sse2() 32 dp->len = len; in initdp_sse2() 39 posix_memalign((void **)&dp->coeffs[i],16,blksize); in initdp_sse2() 40 memset(dp->coeffs[i],0,blksize); in initdp_sse2() 42 dp->coeffs[i][j+i] = coeffs[j]; in initdp_sse2() 44 return (void *)dp; in initdp_sse2() 50 struct dotprod *dp = (struct dotprod *)p; in freedp_sse2() local 54 if(dp->coeffs[i] != NULL) in freedp_sse2() 55 free(dp->coeffs[i]); in freedp_sse2() [all …]
|
D | dotprod_port.c | 17 struct dotprod *dp; in initdp_port() local 23 dp = (struct dotprod *)calloc(1,sizeof(struct dotprod)); in initdp_port() 24 dp->len = len; in initdp_port() 27 dp->coeffs = (signed short *)calloc(len,sizeof(signed short)); in initdp_port() 29 dp->coeffs[j] = coeffs[j]; in initdp_port() 30 return (void *)dp; in initdp_port() 36 struct dotprod *dp = (struct dotprod *)p; in freedp_port() local 38 if(dp->coeffs != NULL) in freedp_port() 39 free(dp->coeffs); in freedp_port() 40 free(dp); in freedp_port() [all …]
|
D | dotprod_mmx.c | 23 struct dotprod *dp; in initdp_mmx() local 30 dp = (struct dotprod *)calloc(1,sizeof(struct dotprod)); in initdp_mmx() 31 dp->len = len; in initdp_mmx() 35 dp->coeffs[i] = (signed short *)calloc(1+(len+i-1)/4, in initdp_mmx() 38 dp->coeffs[i][j+i] = coeffs[j]; in initdp_mmx() 40 return (void *)dp; in initdp_mmx() 46 struct dotprod *dp = (struct dotprod *)p; in freedp_mmx() local 50 if(dp->coeffs[i] != NULL) in freedp_mmx() 51 free(dp->coeffs[i]); in freedp_mmx() 52 free(dp); in freedp_mmx() [all …]
|
D | dotprod_av.c | 20 struct dotprod *dp; in initdp_av() local 26 dp = (struct dotprod *)calloc(1,sizeof(struct dotprod)); in initdp_av() 27 dp->len = len; in initdp_av() 33 dp->coeffs[i] = calloc(1+(len+i-1)/8,sizeof(vector signed short)); in initdp_av() 35 dp->coeffs[i][j+i] = coeffs[j]; in initdp_av() 37 return (void *)dp; in initdp_av() 43 struct dotprod *dp = (struct dotprod *)p; in freedp_av() local 47 if(dp->coeffs[i] != NULL) in freedp_av() 48 free(dp->coeffs[i]); in freedp_av() 49 free(dp); in freedp_av() [all …]
|
/external/ltp/testcases/network/nfsv4/locks/ |
D | locktests.c | 102 struct dataPub dp; variable 150 fsize = dp.nclnt * (maxClients + 1); in validationResults() 166 fcntl(dp.fd, F_GETLK, &request); in validationResults() 178 P("Master opens %s\n", dp.fname); in initTest() 179 dp.fd = open(dp.fname, OPENFLAGS, MANDMODES); in initTest() 180 if (dp.fd < 0) { in initTest() 184 P("fd=%d\n", dp.fd); in initTest() 197 df->dp = &dp; in initClientFork() 200 dp.lclnt[i] = malloc(sizeof(int) * 2); in initClientFork() 201 if (pipe(dp.lclnt[i]) < 0) { in initClientFork() [all …]
|
/external/kernel-headers/original/uapi/linux/ |
D | ppp-comp.h | 36 #define CCP_CODE(dp) ((dp)[0]) argument 37 #define CCP_ID(dp) ((dp)[1]) argument 38 #define CCP_LENGTH(dp) (((dp)[2] << 8) + (dp)[3]) argument 41 #define CCP_OPT_CODE(dp) ((dp)[0]) argument 42 #define CCP_OPT_LENGTH(dp) ((dp)[1]) argument
|