/illumos-gate/usr/src/boot/common/ |
H A D | gfx_fb.c | 1931 struct font_map *mp; in load_mapping() local 1937 mp = malloc(size); in load_mapping() 1938 if (mp == NULL) in load_mapping() 1940 fp->vf_map[n] = mp; in load_mapping() 1950 mp[i].font_src = be32toh(mp[i].font_src); in load_mapping() 1951 mp[i].font_dst = be16toh(mp[i].font_dst); in load_mapping() 1952 mp[i].font_len = be16toh(mp[i].font_len); in load_mapping() 1961 struct font_map *mp; in builtin_mapping() local 1970 mp = malloc(size); in builtin_mapping() 1971 if (mp == NULL) in builtin_mapping() [all …]
|
H A D | load_elf.c | 1105 __elfN(reloc_ptr)(struct preloaded_file *mp __unused, elf_file_t ef, in __elfN()
|
H A D | load_elf_obj.c | 65 static int __elfN(obj_loadimage)(struct preloaded_file *mp, elf_file_t ef, 67 static int __elfN(obj_lookup_set)(struct preloaded_file *mp, elf_file_t ef, 69 static int __elfN(obj_reloc_ptr)(struct preloaded_file *mp, elf_file_t ef, 71 static int __elfN(obj_parse_modmetadata)(struct preloaded_file *mp, 461 __elfN(obj_reloc_ptr)(struct preloaded_file *mp, elf_file_t ef, Elf_Addr p, in __elfN() 472 (void)mp; in __elfN()
|
H A D | module.c | 293 for (mp = fp->f_modules; mp; mp = mp->m_next) { in command_lsmod() 295 mp->m_name, mp->m_version); in command_lsmod() 868 return (mp); in file_findmodule() 874 for (mp = fp->f_modules; mp; mp = mp->m_next) { in file_findmodule() 877 return (mp); in file_findmodule() 884 best = mp; in file_findmodule() 1147 free(mp); in file_addmodule() 1151 mp->m_fp = fp; in file_addmodule() 1155 *newmp = mp; in file_addmodule() 1186 mp1 = mp; in file_discard() [all …]
|
H A D | multiboot2.c | 844 multiboot_tag_module_t *module, *mp; in multiboot2_exec() local 1289 mp = module; in multiboot2_exec() 1297 mp->mb_mod_start = efi_physaddr(module, tmp, map, in multiboot2_exec() 1299 mp->mb_mod_end); in multiboot2_exec() 1300 if (mp->mb_mod_start == 0) in multiboot2_exec() 1303 mp->mb_mod_end += mp->mb_mod_start; in multiboot2_exec() 1304 chunk->chunk_paddr = mp->mb_mod_start; in multiboot2_exec() 1308 mp = (multiboot_tag_module_t *) in multiboot2_exec() 1309 roundup2((uintptr_t)mp + mp->mb_size, in multiboot2_exec()
|
/illumos-gate/usr/src/boot/efi/loader/ |
H A D | copy.c | 116 multiboot_tag_module_t *mp; in efi_physaddr() local 122 mp = module; in efi_physaddr() 133 if (mp->mb_type != MULTIBOOT_TAG_TYPE_MODULE) in efi_physaddr() 136 if (mp->mb_mod_start != 0) { in efi_physaddr() 137 addr = roundup2(mp->mb_mod_end + 1, in efi_physaddr() 140 mp = (multiboot_tag_module_t *) in efi_physaddr() 141 roundup((uintptr_t)mp + mp->mb_size, MULTIBOOT_TAG_ALIGN); in efi_physaddr()
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | zalloc.c | 109 if (bytes > mp->mp_Size - mp->mp_Used) in znalloc() 157 mp->mp_Used += bytes; in znalloc() 199 mp->mp_Used -= bytes; in zfree() 283 mp->mp_Base = base; in zextendPool() 284 mp->mp_Used = bytes; in zextendPool() 286 mp->mp_Size = bytes; in zextendPool() 288 void *pend = (char *)mp->mp_Base + mp->mp_Size; in zextendPool() 291 mp->mp_Size += (char *)mp->mp_Base - (char *)base; in zextendPool() 292 mp->mp_Used += (char *)mp->mp_Base - (char *)base; in zextendPool() 293 mp->mp_Base = base; in zextendPool() [all …]
|
H A D | zalloc_protos.h | 35 Library void zextendPool(MemPool *mp, void *base, uintptr_t bytes); 36 Library void zallocstats(struct MemPool *mp);
|
/illumos-gate/usr/src/boot/sys/fs/cd9660/ |
H A D | iso.h | 277 #define VFSTOISOFS(mp) ((struct iso_mnt *)((mp)->mnt_data)) argument
|
/illumos-gate/usr/src/cmd/backup/dump/ |
H A D | dumptape.c | 1944 char *mp; /* current map entry */ in dowrite() local 2094 mp = recmap; in dowrite() 2101 mp++; in dowrite() 2106 for (; mp < endmp; mp++) { in dowrite() 2107 if (*mp) in dowrite()
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | uuto | 90 while getopts mp FLAG; do
|
/illumos-gate/usr/src/cmd/boot/bootadm/ |
H A D | bootadm.c | 4692 assert(mp); in boot_entry_new() 5155 menu_t *mp; in menu_read() local 5162 free(mp); in menu_read() 5199 assert(mp); in selector() 5254 assert(mp); in list_entry() 5331 assert(mp); in add_boot_entry() 5498 assert(mp); in delete_all_entries() 8286 assert(mp); 8322 menu_t *mp, argument 9231 mp->end = (mp->end) ? mp->end : lp; [all …]
|
H A D | bootadm.h | 192 extern void bam_add_line(menu_t *mp, entry_t *entry, line_t *prev, line_t *lp); 193 extern void update_numbering(menu_t *mp); 223 extern void unlink_line(menu_t *mp, line_t *lp);
|
H A D | bootadm_hyper.c | 755 cvt_to_hyper(menu_t *mp, char *osroot, char *extra_args) in cvt_to_hyper() argument 807 curdef = atoi(mp->curdefault->arg); in cvt_to_hyper() 810 for (ent = mp->entries; ((ent != NULL) && (ent->entryNum != curdef)); in cvt_to_hyper() 981 if ((newdef = add_boot_entry(mp, title, findroot, kernel, mod_kernel, in cvt_to_hyper() 989 if (delete_boot_entry(mp, curdef, DBE_QUIET) == BAM_SUCCESS) in cvt_to_hyper() 1000 return (set_global(mp, menu_cmds[DEFAULT_CMD], newdef)); in cvt_to_hyper() 1013 cvt_to_metal(menu_t *mp, char *osroot, char *menu_root) in cvt_to_metal() argument 1057 curdef = atoi(mp->curdefault->arg); in cvt_to_metal() 1246 if ((newdef = add_boot_entry(mp, title, findroot, kernel, NULL, in cvt_to_metal() 1256 if (delete_boot_entry(mp, curdef, DBE_QUIET) == BAM_SUCCESS) in cvt_to_metal() [all …]
|
H A D | bootadm_loader.c | 299 menu_entry_t *mp; in menu_read() local 359 if ((mp = malloc(sizeof (menu_entry_t))) == NULL) { in menu_read() 363 mp->me_idx = i++; in menu_read() 364 mp->me_title = title; in menu_read() 365 mp->me_type = type; in menu_read() 366 mp->me_bootfs = bootfs; in menu_read() 369 STAILQ_INSERT_TAIL(menu, mp, me_next); in menu_read() 1107 struct mnttab mp = { 0 }; in update_temp() local 1126 if (getmntany(fp, &mp, &mpref) != 0) { in update_temp() 1310 struct mnttab mp = { 0 }; in enable_hyper() local [all …]
|
H A D | bootadm_upgrade.c | 582 bam_warn_hand_entries(menu_t *mp, char *osroot) in bam_warn_hand_entries() argument 782 bam_add_line(mp, entry, line, newlp); in bam_add_findroot() 793 unlink_line(mp, line); in bam_add_findroot() 807 update_numbering(mp); in bam_add_findroot() 838 update_numbering(mp); in bam_add_hv() 847 menu_t *mp, in bam_add_dboot() argument 931 upgrade_menu(menu_t *mp, char *osroot, char *menu_root) in upgrade_menu() argument 982 ret1 = bam_add_findroot(mp, grubsign, in upgrade_menu() 989 ret2 = bam_add_hv(mp, grubsign, grubroot, in upgrade_menu() 997 ret3 = bam_add_dboot(mp, osroot, grubsign, in upgrade_menu() [all …]
|
/illumos-gate/usr/src/cmd/boot/installboot/i386/ |
H A D | installboot.c | 327 struct mnttab mp, mpref = { 0 }; in install_esp_cb() local 369 ret = getmntany(fp, &mp, &mpref); in install_esp_cb() 372 path = mp.mnt_mountp; in install_esp_cb() 769 struct mnttab mp, mpref = { 0 }; in read_einfo_esp_cb() local 812 ret = getmntany(fp, &mp, &mpref); in read_einfo_esp_cb() 815 path = mp.mnt_mountp; in read_einfo_esp_cb()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/ |
H A D | ppp-comp.h | 62 int (*decompress) __P((void *state, u_char *mp, int inlen, 65 void (*incomp) __P((void *state, u_char *mp, int len));
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | rwho.c | 101 mp = myutmp; in main() 130 mp->myutmp = we->we_utmp; mp->myidle = we->we_idle; in main() 138 mp = myutmp; in main() 141 int j = strlen(mp->myhost) + 1 + strlen(mp->myutmp.out_line); in main() 144 mp++; in main() 146 mp = myutmp; in main() 150 sizeof (mp->myhost), mp->myhost, in main() 151 sizeof (mp->myutmp.out_line), mp->myutmp.out_line); in main() 153 sizeof (mp->myutmp.out_name), mp->myutmp.out_name, in main() 156 mp->myidle /= 60; in main() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | wait.c | 157 method_el_t *mp = arg; in method_timeout() local 160 methods[mp->method].name, mp->inst->fmri); in method_timeout() 162 mp->inst->timer_id = -1; in method_timeout() 164 if (mp->method == IM_START) { in method_timeout() 165 process_start_term(mp->inst, mp->proto_name); in method_timeout() 167 process_non_start_term(mp->inst, IMRET_FAILURE); in method_timeout() 170 unregister_method(mp); in method_timeout()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | radix.c | 508 while (mp < lim) in rn_lexobetter() 509 if (*mp++ > *np++) in rn_lexobetter() 653 for (mp = &x->rn_mklist; (m = *mp) != NULL; mp = &m->rm_mklist) in rn_addroute() 657 *mp = 0; in rn_addroute() 675 for (mp = &x->rn_mklist; (m = *mp) != NULL; mp = &m->rm_mklist) { in rn_addroute() 702 *mp = rn_new_radix_mask(tt, *mp); in rn_addroute() 775 for (mp = &x->rn_mklist; (m = *mp) != NULL; mp = &m->rm_mklist) in rn_delete() 777 *mp = m->rm_mklist; in rn_delete() 861 for (mp = &x->rn_mklist; (m = *mp) != NULL; ) in rn_delete() 862 mp = &m->rm_mklist; in rn_delete() [all …]
|
/illumos-gate/usr/src/cmd/cron/ |
H A D | cron.c | 3474 struct miscpid *mp; in miscpid_insert() local 3476 mp = xmalloc(sizeof (*mp)); in miscpid_insert() 3477 mp->pid = pid; in miscpid_insert() 3478 mp->next = miscpid_head; in miscpid_insert() 3479 miscpid_head = mp; in miscpid_insert() 3485 struct miscpid *mp, *omp; in miscpid_delete() local 3489 for (mp = miscpid_head; mp != NULL; mp = mp->next) { in miscpid_delete() 3490 if (mp->pid == pid) { in miscpid_delete() 3494 omp = mp; in miscpid_delete() 3498 omp->next = mp->next; in miscpid_delete() [all …]
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.lex.c | 762 tchar *wp, *mp, *np; in subword() local 785 for (mp = cp; *mp; mp++) in subword() 786 if (matchs(mp, lhsb)) { in subword() 787 for (np = cp; np < mp; ) in subword() 811 mp += strlen_(lhsb); in subword() 812 i -= strlen_(mp); in subword() 819 (void) strcat_(wp, mp); in subword()
|
/illumos-gate/usr/src/cmd/dc/ |
H A D | dc.c | 1342 struct blk *mp, *mq, *mr; in mult() local 1348 mp = p; in mult() 1351 mp = copy(p, length(p)); in mult() 1352 chsign(mp); in mult() 1365 mr = salloc(length(mp) + length(mq)); in mult() 1370 rewind(mp); in mult() 1374 while (sfeof(mp) == 0) { in mult() 1375 cp = sgetc(mp); in mult() 1390 if (mp != p) in mult() 1391 release(mp); in mult()
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | devfsadm.c | 1073 for (smp = NULL, mp = dep->head; mp; mp = mp->next) { in process_deferred_links() 1075 (void) check_minor_type(mp->node, mp->minor, dcip); in process_deferred_links() 1077 smp = mp; in process_deferred_links() 1979 struct minor *mp; in cache_deferred_minor() local 1992 mp->node = node; in cache_deferred_minor() 1993 mp->minor = minor; in cache_deferred_minor() 1994 mp->next = NULL; in cache_deferred_minor() 1998 dep->head = mp; in cache_deferred_minor() 2002 dep->tail = mp; in cache_deferred_minor() 4736 *mp = '\0'; in alloc_cmp_str() [all …]
|