• Home
  • Raw
  • Download

Lines Matching refs:vec

40 static int __write_to_log_init(log_id_t, struct iovec *vec, size_t nr);
41 static int (*write_to_log)(log_id_t, struct iovec *vec, size_t nr) = __write_to_log_init;
224 static int __write_to_log_daemon(log_id_t log_id, struct iovec *vec, size_t nr) in __write_to_log_daemon() argument
232 len += vec[i].iov_len; in __write_to_log_daemon()
240 if (vec[0].iov_len < 4) { in __write_to_log_daemon()
257 if (vec[0].iov_len < 4) { in __write_to_log_daemon()
284 tag = android_lookupEventTag(m, get4LE(vec[0].iov_base)); in __write_to_log_daemon()
298 const char *tag = vec[0].iov_base; in __write_to_log_daemon()
299 size_t len = vec[0].iov_len; in __write_to_log_daemon()
309 len = vec[1].iov_len; in __write_to_log_daemon()
310 tag = ((const char *)vec[1].iov_base); in __write_to_log_daemon()
342 retval = (*node->write)(log_id, &ts, vec, nr); in __write_to_log_daemon()
351 (void)(*node->write)(log_id, &ts, vec, nr); in __write_to_log_daemon()
358 static int __write_to_log_init(log_id_t log_id, struct iovec *vec, size_t nr) in __write_to_log_init() argument
369 __write_to_log_daemon(log_id, vec, nr); in __write_to_log_init()
379 return write_to_log(log_id, vec, nr); in __write_to_log_init()
391 struct iovec vec[3]; in __android_log_buf_write() local
420 vec[0].iov_base = (unsigned char *)&prio; in __android_log_buf_write()
421 vec[0].iov_len = 1; in __android_log_buf_write()
422 vec[1].iov_base = (void *)tag; in __android_log_buf_write()
423 vec[1].iov_len = strlen(tag) + 1; in __android_log_buf_write()
424 vec[2].iov_base = (void *)msg; in __android_log_buf_write()
425 vec[2].iov_len = strlen(msg) + 1; in __android_log_buf_write()
427 return write_to_log(bufID, vec, 3); in __android_log_buf_write()
496 struct iovec vec[2]; in __android_log_bwrite() local
498 vec[0].iov_base = &tag; in __android_log_bwrite()
499 vec[0].iov_len = sizeof(tag); in __android_log_bwrite()
500 vec[1].iov_base = (void*)payload; in __android_log_bwrite()
501 vec[1].iov_len = len; in __android_log_bwrite()
503 return write_to_log(LOG_ID_EVENTS, vec, 2); in __android_log_bwrite()
510 struct iovec vec[2]; in __android_log_security_bwrite() local
512 vec[0].iov_base = &tag; in __android_log_security_bwrite()
513 vec[0].iov_len = sizeof(tag); in __android_log_security_bwrite()
514 vec[1].iov_base = (void*)payload; in __android_log_security_bwrite()
515 vec[1].iov_len = len; in __android_log_security_bwrite()
517 return write_to_log(LOG_ID_SECURITY, vec, 2); in __android_log_security_bwrite()
528 struct iovec vec[3]; in __android_log_btwrite() local
530 vec[0].iov_base = &tag; in __android_log_btwrite()
531 vec[0].iov_len = sizeof(tag); in __android_log_btwrite()
532 vec[1].iov_base = &type; in __android_log_btwrite()
533 vec[1].iov_len = sizeof(type); in __android_log_btwrite()
534 vec[2].iov_base = (void*)payload; in __android_log_btwrite()
535 vec[2].iov_len = len; in __android_log_btwrite()
537 return write_to_log(LOG_ID_EVENTS, vec, 3); in __android_log_btwrite()
546 struct iovec vec[4]; in __android_log_bswrite() local
550 vec[0].iov_base = &tag; in __android_log_bswrite()
551 vec[0].iov_len = sizeof(tag); in __android_log_bswrite()
552 vec[1].iov_base = &type; in __android_log_bswrite()
553 vec[1].iov_len = sizeof(type); in __android_log_bswrite()
554 vec[2].iov_base = &len; in __android_log_bswrite()
555 vec[2].iov_len = sizeof(len); in __android_log_bswrite()
556 vec[3].iov_base = (void*)payload; in __android_log_bswrite()
557 vec[3].iov_len = len; in __android_log_bswrite()
559 return write_to_log(LOG_ID_EVENTS, vec, 4); in __android_log_bswrite()
569 struct iovec vec[4]; in __android_log_security_bswrite() local
573 vec[0].iov_base = &tag; in __android_log_security_bswrite()
574 vec[0].iov_len = sizeof(tag); in __android_log_security_bswrite()
575 vec[1].iov_base = &type; in __android_log_security_bswrite()
576 vec[1].iov_len = sizeof(type); in __android_log_security_bswrite()
577 vec[2].iov_base = &len; in __android_log_security_bswrite()
578 vec[2].iov_len = sizeof(len); in __android_log_security_bswrite()
579 vec[3].iov_base = (void*)payload; in __android_log_security_bswrite()
580 vec[3].iov_len = len; in __android_log_security_bswrite()
582 return write_to_log(LOG_ID_SECURITY, vec, 4); in __android_log_security_bswrite()