| /xnu-11215/bsd/kern/ |
| H A D | subr_log_stream.c | 521 lc->lc_stream_pos += log_stream_sync(ls, lc->lc_stream_pos); in log_cache_refill() 664 bzero(lc, sizeof(*lc)); in log_cache_make() 674 kfree_data(lc->lc_blk, lc->lc_blk_count); in log_cache_make() 695 kfree_data(lc->lc_blk, lc->lc_blk_count); in log_cache_teardown() 698 kfree_data(lc->lc_buf, blocks_size(lc->lc_blk_count)); in log_cache_teardown() 700 bzero(lc, sizeof(*lc)); in log_cache_teardown() 706 bzero(lc->lc_blk, lc->lc_blk_count); in log_cache_rewind() 707 bzero(lc->lc_buf, blocks_size(lc->lc_blk_count)); in log_cache_rewind() 720 assert(lc->lc_blk_pos <= lc->lc_blk_count); in log_cache_next_msg() 722 for (size_t n = lc->lc_blk_pos; n < lc->lc_blk_count; n++) { in log_cache_next_msg() [all …]
|
| /xnu-11215/osfmk/mach/ |
| H A D | dyld_kernel_fixups.h | 335 struct load_command *lc; in kernel_collection_adjust_fileset_entry_addrs() local 343 lc = (struct load_command *)((uintptr_t)lc + lc->cmdsize)) { in kernel_collection_adjust_fileset_entry_addrs() 344 if (lc->cmd == LC_SYMTAB) { in kernel_collection_adjust_fileset_entry_addrs() 345 symtab_cmd = (struct symtab_command *)lc; in kernel_collection_adjust_fileset_entry_addrs() 348 if (lc->cmd != LC_SEGMENT_64) { in kernel_collection_adjust_fileset_entry_addrs() 355 seg = (struct segment_command_64 *)(uintptr_t)lc; in kernel_collection_adjust_fileset_entry_addrs() 402 struct load_command *lc; in kernel_collection_adjust_mh_addrs() local 419 lc = (struct load_command *)((uintptr_t)lc + lc->cmdsize)) { in kernel_collection_adjust_mh_addrs() 420 if (lc->cmd == LC_FILESET_ENTRY) { in kernel_collection_adjust_mh_addrs() 440 } else if (lc->cmd == LC_SEGMENT_64) { in kernel_collection_adjust_mh_addrs() [all …]
|
| /xnu-11215/pexpert/gen/ |
| H A D | kcformat.c | 87 struct load_command *lc; in PE_set_kc_header() local 91 lc = (struct load_command *)((uintptr_t)header + sizeof(*header)); in PE_set_kc_header() 93 lc = (struct load_command *)((uintptr_t)lc + lc->cmdsize)) { in PE_set_kc_header() 94 if (lc->cmd != LC_SEGMENT_64) { in PE_set_kc_header() 97 seg = (struct segment_command_64 *)(uintptr_t)lc; in PE_set_kc_header()
|
| /xnu-11215/libkern/c++/ |
| H A D | OSRuntime.cpp | 410 struct load_command *lc; in OSRuntimeSignStructorsInFileset() local 412 lc = (struct load_command *)((uintptr_t)fileset_header + sizeof(*fileset_header)); in OSRuntimeSignStructorsInFileset() 414 lc = (struct load_command *)((uintptr_t)lc + lc->cmdsize)) { in OSRuntimeSignStructorsInFileset() 415 if (lc->cmd == LC_FILESET_ENTRY) { in OSRuntimeSignStructorsInFileset() 419 fse = (struct fileset_entry_command *)(uintptr_t)lc; in OSRuntimeSignStructorsInFileset() 422 } else if (lc->cmd == LC_SEGMENT_64) { in OSRuntimeSignStructorsInFileset() 428 seg = (kernel_segment_command_t *)(uintptr_t)lc; in OSRuntimeSignStructorsInFileset()
|
| /xnu-11215/libkern/zlib/ |
| H A D | trees.c | 1084 _tr_tally(deflate_state *s, unsigned dist, unsigned lc) argument 1087 s->l_buf[s->last_lit++] = (uch)lc; 1090 s->dyn_ltree[lc].Freq++; 1096 (ush)lc <= (ush)(MAX_MATCH-MIN_MATCH) && 1099 s->dyn_ltree[_length_code[lc]+LITERALS+1].Freq++; 1143 int lc; /* match length or unmatched char (if dist == 0) */ local 1154 lc = s->l_buf[lx++]; 1156 send_code(s, lc, ltree); /* send a literal byte */ 1157 Tracecv(isgraph(lc), (stderr," '%c' ", lc)); 1160 code = _length_code[lc]; [all …]
|
| H A D | deflate.h | 312 int _tr_tally OF((deflate_state *s, unsigned dist, unsigned lc));
|
| /xnu-11215/tools/lldbmacros/ |
| H A D | macho.py | 256 def get_load_command_human_name(lc): argument 257 return lc.get_cmd_name() 306 (lc, segment, sections) = cmd 307 lc_cmd_str = get_load_command_human_name(lc) 308 … lc_str_rep = "\n\t LC: {:s} size:{:d} nsects:{:d}".format(lc_cmd_str, lc.cmdsize, len(sections))
|
| /xnu-11215/osfmk/kern/ |
| H A D | ledger.c | 2017 struct ledger_callback *lc; in ledger_check_needblock() local 2041 lc = template->lt_entries[i].et_callback; in ledger_check_needblock() 2051 assert(lc != NULL); in ledger_check_needblock() 2058 lc->lc_func(LEDGER_WARNING_ROSE_ABOVE, lc->lc_param0, lc->lc_param1); in ledger_check_needblock() 2063 lc->lc_func(LEDGER_WARNING_DIPPED_BELOW, lc->lc_param0, lc->lc_param1); in ledger_check_needblock() 2070 assert(lc != NULL); in ledger_check_needblock() 2073 lc->lc_func(LEDGER_WARNING_DIAG_MEM_THRESHOLD, lc->lc_param0, lc->lc_param1); in ledger_check_needblock() 2083 assert(lc != NULL); in ledger_check_needblock() 2086 lc->lc_func(LEDGER_WARNING_DIAG_MEM_THRESHOLD, lc->lc_param0, lc->lc_param1); in ledger_check_needblock() 2115 assert(lc != NULL); in ledger_check_needblock() [all …]
|
| H A D | kalloc.c | 982 struct load_command *lc = in kalloc_type_view_parse() local 985 i++, lc = (struct load_command *)((vm_offset_t)lc + lc->cmdsize)) { in kalloc_type_view_parse() 986 if (lc->cmd != LC_FILESET_ENTRY) { in kalloc_type_view_parse() 990 (struct fileset_entry_command *)(vm_offset_t)lc; in kalloc_type_view_parse() 1055 struct load_command *lc = in kalloc_type_view_parse() local 1059 for (uint32_t i = 0; i < kext_mh->ncmds && (vm_offset_t)lc < end; in kalloc_type_view_parse() 1060 i++, lc = (struct load_command *)((vm_offset_t)lc + lc->cmdsize)) { in kalloc_type_view_parse() 1061 if (lc->cmd == LC_SEGMENT_SPLIT_INFO) { in kalloc_type_view_parse() 1064 } else if (lc->cmd != LC_SEGMENT_64) { in kalloc_type_view_parse() 1069 (struct segment_command_64 *)(vm_offset_t)lc; in kalloc_type_view_parse()
|
| H A D | zalloc.c | 2987 const char *lc = logname; in track_this_zone() local 2993 for (len = 1; len <= MAX_ZONE_NAME; zc++, lc++, len++) { in track_this_zone() 3000 if (*zc != *lc && !(*zc == ' ' && *lc == '.')) { in track_this_zone()
|
| /xnu-11215/bsd/skywalk/nexus/ |
| H A D | nexus.c | 2532 nexus_port_size_t lc = (MIN(last, nx->nx_num_ports) / NX_PORT_CHUNK); in nx_port_find() local 2542 for (i = fc; i <= lc; i++) { in nx_port_find() 2574 if (lc == (last / NX_PORT_CHUNK)) { in nx_port_find()
|
| /xnu-11215/bsd/dev/dtrace/ |
| H A D | dtrace.c | 8302 char lc = '\0'; in dtrace_match_glob() local 8316 if (c == '-' && lc != '\0' && *p != ']') { in dtrace_match_glob() 8323 if (s1 < lc || s1 > c) in dtrace_match_glob() 8327 } else if (lc <= s1 && s1 <= c) in dtrace_match_glob() 8333 lc = c; /* save left-hand 'c' for next iteration */ in dtrace_match_glob()
|