/system/core/libpixelflinger/codeflinger/ |
H A D | ARMAssemblerProxy.cpp | 52 int ARMAssemblerProxy::generate(const char* name) { argument 53 return mTarget->generate(name); 55 void ARMAssemblerProxy::disassemble(const char* name) { argument 56 return mTarget->disassemble(name);
|
H A D | GGLAssembler.cpp | 79 // build a name for our pipeline 80 char name[64]; local 81 sprintf(name, 86 ALOGE("Error while generating ""%s""\n", name); 87 disassemble(name); 91 return generate(name);
|
H A D | MIPSAssembler.cpp | 142 void ArmToMipsAssembler::disassemble(const char* name) argument 144 mMips->disassemble(name); 189 int ArmToMipsAssembler::generate(const char* name) argument 191 return mMips->generate(name); 1322 void MIPSAssembler::disassemble(const char* name) argument 1326 if (name) { 1327 ALOGW("%s:\n", name); 1388 int MIPSAssembler::generate(const char* name) argument 1406 ALOGI(format, name, int(pc()-base()), base(), pc(), duration); 1410 int err = qemu_add_mapping(int(base()), name); [all...] |
/system/core/libpixelflinger/ |
H A D | pixelflinger.cpp | 159 static void enable_disable(context_t* c, GGLenum name, int en) argument 161 switch (name) { 177 static void ggl_enable(void* con, GGLenum name) argument 180 enable_disable(c, name, 1); 183 static void ggl_disable(void* con, GGLenum name) argument 186 enable_disable(c, name, 0); 189 static void ggl_enableDisable(void* con, GGLenum name, GGLboolean en) argument 192 enable_disable(c, name, en ? 1 : 0);
|
/system/core/libusbhost/ |
H A D | usbhost.c | 73 static inline int badname(const char *name) argument 75 while(*name) { 76 if(!isdigit(*name++)) return 1; 210 if ((event->mask & IN_CREATE) && !strcmp(event->name, "bus")) { 213 } else if ((event->mask & IN_DELETE) && !strcmp(event->name, "bus")) { 222 i = atoi(event->name); 223 snprintf(path, sizeof(path), "%s/%s", USB_FS_DIR, event->name); 242 snprintf(path, sizeof(path), "%s/%03d/%s", USB_FS_DIR, i, event->name); 356 int usb_device_get_unique_id_from_name(const char* name) argument 359 sscanf(name, USB_FS_ID_SCANNE [all...] |
/system/core/sh/ |
H A D | jobs.c | 18 * 3. Neither the name of the University nor the names of its contributors 676 getjobpgrp(const char *name) argument 680 jp = getjob(name, 1); 687 * Convert a job name to a job structure. 691 getjob(const char *name, int noerror) argument 699 if (name == NULL) { 704 } else if (name[0] == '%') { 705 if (is_number(name + 1)) { 706 jobno = number(name + 1) - 1; 707 } else if (!name[ [all...] |
H A D | var.c | 18 * 3. Neither the name of the University nor the names of its contributors 195 setvarsafe(const char *name, const char *val, int flags) argument 208 setvar(name, val, flags); 220 setvar(const char *name, const char *val, int flags) argument 231 p = name; 243 namelen = p - name; 245 error("%.*s: bad variable name", namelen, name); 253 q = name; 267 * the first argument as name 346 lookupvar(const char *name) argument 365 bltinlookup(const char *name, int doall) argument 507 showvars(const char *name, int flag, int show_value) argument 564 char *name; local 598 char *name; local 617 mklocal(const char *name, int flags) argument 797 find_var(const char *name, struct var ***vppp, int *lenp) argument [all...] |
H A D | expand.c | 18 * 3. Neither the name of the University nor the names of its contributors 129 * perform splitting and file name expansion. When arglist is NULL, perform 782 varisset(char *name, int nulok) argument 784 if (*name == '!') 786 else if (*name == '@' || *name == '*') { 798 } else if (is_digit(*name)) { 800 int num = atoi(name); 823 varvalue(char *name, int quoted, int subtype, int flag) argument 847 switch (*name) { 1122 expmeta(char *enddir, char *name) argument 1251 addfname(char *name) argument [all...] |
H A D | parser.c | 18 * 3. Neither the name of the University nor the names of its contributors 546 * the function name and the open parenthesis. 567 parsefname(); /* read name of redirection file */ 575 synerror("Bad function name"); 1571 * Return true if the argument is a legal variable name (a letter or 1576 goodname(char *name) argument 1580 p = name;
|
/system/core/toolbox/ |
H A D | dd.c | 19 * 3. Neither the name of the University nor the names of its contributors 157 if (in.name == NULL) { 158 in.name = "stdin"; 161 in.fd = open(in.name, O_RDONLY, 0); 164 in.name, strerror(errno)); 182 if (out.name == NULL) { 185 out.name = "stdout"; 189 out.fd = open(out.name, O_RDWR | OFLAGS, DEFFILEMODE); 196 out.fd = open(out.name, O_WRONLY | OFLAGS, DEFFILEMODE); 201 out.name, strerro 1031 const char *name; member in struct:arg 1159 strsuftoll(const char* name, const char* arg, int def, unsigned int max) argument 1265 const char *name; member in struct:conv [all...] |
H A D | getevent.c | 37 while(labels->name && value != labels->value) { 40 return labels->name; 300 char name[80]; local 322 name[sizeof(name) - 1] = '\0'; 325 if(ioctl(fd, EVIOCGNAME(sizeof(name) - 1), &name) < 1) { 326 //fprintf(stderr, "could not get device name for %s, %s\n", device, strerror(errno)); 327 name[0] = '\0'; 360 printf(" name [all...] |
H A D | top.c | 14 * * Neither the name of Google, Inc. nor the names of its contributors 59 char name[PROC_NAME_LEN]; member in struct:proc_info 302 strcpy(proc->name, cur_proc.name); 334 /* Split at first '(' and last ')' to get process name. */ 375 strncpy(proc->name, line, PROC_NAME_LEN); 376 proc->name[PROC_NAME_LEN-1] = 0; 378 proc->name[0] = 0; 481 proc->vss / 1024, proc->rss * getpagesize() / 1024, proc->policy, user_str, proc->name[0] != 0 ? proc->name [all...] |
H A D | newfs_msdos.c | 108 u_int8_t oem[8]; /* OEM name and version */ 146 u_int8_t namext[11]; /* name and extension */ 177 const char *name; member in struct:__anon484 773 for (i = 0; i < x && strcmp(fmt, stdfmt[i].name); i++);
|
/system/extras/ext4_utils/ |
H A D | ext4fixup.c | 626 char name[256]; local 688 printf("fixing up short rec_len for diretory entry for %s\n", name); 699 strncpy(name, dirp->name, dirp->name_len); 700 name[dirp->name_len]='\0'; 712 if ( is_dir && (strcmp(name, ".") && strcmp(name, "..")) && 719 critical_error("inode %d for name %s does not point to a directory\n", 720 dirp->inode & 0x7fffffff, name); 744 printf("Directory %s\n", name); [all...] |
/system/netd/ |
H A D | CommandListener.cpp | 899 // set the address of the interface to which the name servers 952 char name[31]; local 955 name, rx, &d, &d, &d, &d, &d, &d, &d, tx); 956 char *rxString = strchr(name, ':'); 959 // when the rx count gets too big it changes from "name: 999" to "name:1000" 966 if (strcmp(name, iface)) {
|
H A D | MDnsSdListener.cpp | 688 static int wait_for_property(const char *name, const char *desired_value, int maxwait) argument 699 if (property_get(name, value, NULL)) {
|
/system/core/adb/ |
H A D | adb.c | 291 "ro.product.name", 449 if (!strcmp(key, "ro.product.name")) 556 char *name = (char*) p->data; local 557 name[p->msg.data_length > 0 ? p->msg.data_length - 1 : 0] = 0; 558 s = create_local_service_socket(name); 697 int local_name_to_fd(const char *name) argument 701 if(!strncmp("tcp:", name, 4)){ 703 port = atoi(name + 4); 709 if(!strncmp(name, "local:", 6)) { 710 return socket_local_server(name [all...] |
H A D | transport.c | 98 dump_packet(const char* name, const char* func, apacket* p) argument 115 /* There is some non-ASCII name in the command, so dump 131 name, func, cmd, arg0, arg1, len); 137 read_packet(int fd, const char* name, apacket** ppacket) argument 143 if (!name) { 145 name = buff; 153 D("%s: read_packet (fd=%d), error ret=%d errno=%d: %s\n", name, fd, r, errno, strerror(errno)); 161 dump_packet(name, "from remote", *ppacket); 168 write_packet(int fd, const char* name, apacket** ppacket) argument 173 if (!name) { [all...] |
/system/core/charger/ |
H A D | charger.c | 80 char name[256]; member in struct:power_supply 88 const char *name; member in struct:frame 139 .name = "charger/battery_0", 144 .name = "charger/battery_1", 149 .name = "charger/battery_2", 154 .name = "charger/battery_3", 159 .name = "charger/battery_4", 165 .name = "charger/battery_5", 312 const char *name) 319 if (!strncmp(name, suppl 311 find_supply(struct charger *charger, const char *name) argument 325 add_supply(struct charger *charger, const char *name, const char *type, const char *path, bool online) argument [all...] |
/system/core/init/ |
H A D | init.c | 89 void notify_service_state(const char *name, const char *state) argument 92 int len = strlen(name); 95 snprintf(pname, sizeof(pname), "init.svc.%s", name); 146 static void publish_socket(const char *name, int fd) argument 152 name, 189 ERROR("service '%s' requires console\n", svc->name); 195 ERROR("cannot find '%s', disabling '%s'\n", svc->args[0], svc->name); 214 ERROR("could not get context while starting '%s'\n", svc->name); 220 ERROR("could not get context while starting '%s'\n", svc->name); 229 ERROR("could not get context while starting '%s'\n", svc->name); 428 property_changed(const char *name, const char *value) argument 457 msg_start(const char *name) argument 483 msg_stop(const char *name) argument 614 import_kernel_nv(char *name, int for_emulator) argument [all...] |
/system/core/libnetutils/ |
H A D | ifc_utils.c | 160 static void ifc_init_ifr(const char *name, struct ifreq *ifr) argument 163 strncpy(ifr->ifr_name, name, IFNAMSIZ); 167 int ifc_get_hwaddr(const char *name, void *ptr) argument 171 ifc_init_ifr(name, &ifr); 180 int ifc_get_ifindex(const char *name, int *if_indexp) argument 184 ifc_init_ifr(name, &ifr); 193 static int ifc_set_flags(const char *name, unsigned set, unsigned clr) argument 196 ifc_init_ifr(name, &ifr); 203 int ifc_up(const char *name) argument 205 int ret = ifc_set_flags(name, IFF_U 210 ifc_down(const char *name) argument 225 ifc_set_addr(const char *name, in_addr_t addr) argument 247 ifc_act_on_address(int action, const char *name, const char *address, int prefixlen) argument 337 ifc_add_address(const char *name, const char *address, int prefixlen) argument 341 ifc_del_address(const char *name, const char * address, int prefixlen) argument 348 ifc_clear_ipv6_addresses(const char *name) argument 397 ifc_clear_ipv4_addresses(const char *name) argument 412 ifc_clear_addresses(const char *name) argument 417 ifc_set_hwaddr(const char *name, const void *ptr) argument 428 ifc_set_mask(const char *name, in_addr_t mask) argument 441 ifc_set_prefixLength(const char *name, int prefixLength) argument 454 ifc_get_addr(const char *name, in_addr_t *addr) argument 471 ifc_get_info(const char *name, in_addr_t *addr, int *prefixLength, unsigned *flags) argument 549 ifc_create_default_route(const char *name, in_addr_t gw) argument 562 ifc_add_host_route(const char *name, in_addr_t dst) argument 648 ifc_remove_host_routes(const char *name) argument 703 char name[64]; local [all...] |
/system/core/sdcard/ |
H A D | sdcard.c | 108 char *name; member in struct:node 109 /* If non-null, this is the real name of the file in the underlying storage. 110 * This may differ from the field "name" only by case. 111 * strlen(actual_name) will always equal strlen(name), so it is safe to use 153 TRACE("ACQUIRE %p (%s) rc=%d\n", node, node->name, node->refcount); 160 TRACE("RELEASE %p (%s) rc=%d\n", node, node->name, node->refcount); 164 TRACE("DESTROY %p (%s)\n", node, node->name); 168 memset(node->name, 0xef, node->namelen); 169 free(node->name); 225 const char* name local 238 find_file_within(const char* path, const char* name, char* buf, size_t bufsize, int search) argument 303 create_node_locked(struct fuse* fuse, struct node *parent, const char *name, const char* actual_name) argument 336 rename_node_locked(struct node *node, const char *name, const char* actual_name) argument 396 lookup_child_by_name_locked(struct node *node, const char *name) argument 410 acquire_or_create_child_locked( struct fuse* fuse, struct node* parent, const char* name, const char* actual_name) argument 467 fuse_reply_entry(struct fuse* fuse, __u64 unique, struct node* parent, const char* name, const char* actual_name, const char* path) argument 512 handle_lookup(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header *hdr, const char* name) argument 629 handle_mknod(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_mknod_in* req, const char* name) argument 655 handle_mkdir(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_mkdir_in* req, const char* name) argument 681 handle_unlink(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const char* name) argument 705 handle_rmdir(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const char* name) argument 1040 const char* name = data; local 1063 const char *name = ((const char*) data) + sizeof(*req); local 1069 const char *name = ((const char*) data) + sizeof(*req); local 1074 const char* name = data; local 1079 const char* name = data; local [all...] |
H A D | fuse.h | 282 __u64 entry_valid; /* Cache timeout for the name */ 558 char name[0]; member in struct:fuse_dirent 561 #define FUSE_NAME_OFFSET offsetof(struct fuse_dirent, name)
|
/system/vold/ |
H A D | cryptfs.c | 73 static void ioctl_init(struct dm_ioctl *io, size_t dataSize, const char *name, unsigned flags) argument 82 if (name) { 83 strncpy(io->name, name, sizeof(io->name)); 129 /* Get and cache the name of the fstab file so we don't 381 char *real_blk_name, char *crypto_blk_name, const char *name) 400 ioctl_init(io, DM_CRYPT_BUF_SIZE, name, 0); 406 /* Get the device status, in particular, the name of it's device file */ 407 ioctl_init(io, DM_CRYPT_BUF_SIZE, name, 380 create_crypto_blk_dev(struct crypt_mnt_ftr *crypt_ftr, unsigned char *master_key, char *real_blk_name, char *crypto_blk_name, const char *name) argument 464 delete_crypto_blk_dev(char *name) argument [all...] |
/system/core/libcutils/ |
H A D | tztime.c | 213 static int tzload P((const char * name, struct state * sp, 215 static int tzload_uncached P((const char * name, struct state * sp, 217 static int tzparse P((const char * name, struct state * sp, 311 tzload(const char *name, struct state * const sp, const int doextend) argument 313 if (name) { 315 if (0 == strcmp(name, "UTC")) { 317 tzload_uncached(name, &g_utc, 1); 325 if (g_cacheNames[i] && 0 == strcmp(name, g_cacheNames[i])) { 327 //printf("tzload: hit: %s\n", name); 331 //printf("tzload: miss: %s\n", name); 408 char name[NAMELEN + 1]; local [all...] |