/titanic_44/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_mnt.c | 64 static void free_mnttab(struct mntpnt_list *listp); 66 struct mntpnt_list *listp); 77 struct mntpnt_list *listp; in inuse_mnt() local 105 listp = mntpoint_listp; in inuse_mnt() 106 while (listp != NULL) { in inuse_mnt() 107 if (libdiskmgt_str_eq(slice, listp->special)) { in inuse_mnt() 109 libdiskmgt_add_str(attrs, DM_USED_NAME, listp->mountp, errp); in inuse_mnt() 113 listp = listp->next; in inuse_mnt() 129 struct mntpnt_list *listp; in diff_mnttab() local 131 listp = firstp; in diff_mnttab() [all …]
|
H A D | inuse_fs.c | 73 static void free_vfstab(struct vfstab_list *listp); 131 struct vfstab_list *listp; in inuse_fs() local 132 listp = vfstab_listp; in inuse_fs() 134 while (listp != NULL) { in inuse_fs() 135 if (strcmp(slice, listp->special) == 0) { in inuse_fs() 138 if (listp->mountp != NULL) in inuse_fs() 139 mountp = listp->mountp; in inuse_fs() 145 listp = listp->next; in inuse_fs() 339 free_vfstab(struct vfstab_list *listp) in free_vfstab() argument 343 while (listp != NULL) { in free_vfstab() [all …]
|
H A D | inuse_lu.c | 66 static void free_lu(struct lu_list *listp); 104 struct lu_list *listp; in inuse_lu() local 106 listp = lu_listp; in inuse_lu() 107 while (listp != NULL) { in inuse_lu() 108 if (strcmp(slice, listp->slice) == 0) { in inuse_lu() 110 libdiskmgt_add_str(attrs, DM_USED_NAME, listp->name, errp); in inuse_lu() 114 listp = listp->next; in inuse_lu() 154 free_lu(struct lu_list *listp) { in free_lu() argument 158 while (listp != NULL) { in free_lu() 159 nextp = listp->next; in free_lu() [all …]
|
H A D | inuse_vxvm.c | 121 struct vxvm_list *listp; in inuse_vxvm() local 123 listp = vxvm_listp; in inuse_vxvm() 124 while (listp != NULL) { in inuse_vxvm() 125 if (strcmp(slice, listp->slice) == 0) { in inuse_vxvm() 133 listp = listp->next; in inuse_vxvm() 241 struct vxvm_list *listp = vxvm_listp; in free_vxvm() local 244 while (listp != NULL) { in free_vxvm() 245 nextp = listp->next; in free_vxvm() 246 free((void *)listp->slice); in free_vxvm() 247 free((void *)listp); in free_vxvm() [all …]
|
H A D | cache.c | 74 static int match_alias(alias_t *ap, alias_t *listp); 541 disk_t *listp; in del_drive() local 561 for (listp = disk_listp; listp != NULL; listp = listp->next) { in del_drive() 562 if (dp == listp) { in del_drive() 588 disk_t *listp; in del_drive_by_name() local 590 for (listp = disk_listp; listp != NULL; listp = listp->next) { in del_drive_by_name() 593 for (ap = listp->aliases; ap; ap = ap->next) { in del_drive_by_name() 595 del_drive(listp); in del_drive_by_name() 715 match_alias(alias_t *ap, alias_t *listp) in match_alias() argument 721 while (listp != NULL) { in match_alias() [all …]
|
/titanic_44/usr/src/uts/intel/io/pci/ |
H A D | pci_memlist.c | 44 memlist_dump(struct memlist *listp) in memlist_dump() argument 46 dprintf("memlist 0x%p content", (void *)listp); in memlist_dump() 47 while (listp) { in memlist_dump() 49 (int)(listp->ml_address >> 32), (int)listp->ml_address, in memlist_dump() 50 (int)(listp->ml_size >> 32), (int)listp->ml_size); in memlist_dump() 51 listp = listp->ml_next; in memlist_dump() 84 memlist_insert(struct memlist **listp, uint64_t addr, uint64_t size) in memlist_insert() argument 91 next = *listp; in memlist_insert() 135 entry->ml_next = *listp; in memlist_insert() 136 *listp = entry; in memlist_insert() [all …]
|
/titanic_44/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_list.c | 34 ldata_list_t *listp; member 75 static fpcfga_ret_t postprocess_list_data(const ldata_list_t *listp, 97 const ldata_list_t *listp, ldata_list_t **matchldpp, int *l_errno); 104 int *lun_nump, ldata_list_t *listp, ldata_list_t **ldatapp); 106 ldata_list_t *listp, ldata_list_t **ldatapp); 108 ldata_list_t *listp, ldata_list_t **ldatapp); 229 list_free(&larg.listp); in do_list() 238 assert(larg.listp == NULL); in do_list() 240 assert(larg.listp != NULL); in do_list() 255 list_free(&larg.listp); in do_list() [all …]
|
/titanic_44/usr/src/cmd/sendmail/db/db/ |
H A D | db_dispatch.c | 204 __db_txnlist_add(listp, txnid) in __db_txnlist_add() argument 205 void *listp; in __db_txnlist_add() 216 hp = (DB_TXNHEAD *)listp; 233 __db_txnlist_find(listp, txnid) in __db_txnlist_find() argument 234 void *listp; in __db_txnlist_find() 240 if ((hp = (DB_TXNHEAD *)listp) == NULL) 257 __db_txnlist_end(listp) in __db_txnlist_end() argument 258 void *listp; in __db_txnlist_end() 263 hp = (DB_TXNHEAD *)listp; 268 __os_free(listp, sizeof(DB_TXNHEAD)); [all …]
|
/titanic_44/usr/src/cmd/fs.d/ufs/quotaon/ |
H A D | quotaon.c | 92 char **listp; in main() local 159 listp = listbuf; in main() 176 *listp = malloc(strlen(vfsbuf.vfs_special) + 1); in main() 177 strcpy(*listp, vfsbuf.vfs_special); in main() 178 listp++; in main() 190 listp = &listbuf[listcnt]; in main() 194 *listp = (char *)0; in main() 195 listp = listbuf; in main() 197 listp = &argv[optind]; in main() 228 (oneof(mntp.mnt_special, listp, listcnt) || in main() [all …]
|
/titanic_44/usr/src/uts/common/os/ |
H A D | retire_store.c | 176 list_t *listp; in retire_list_free() local 182 listp = nvf_list(nvfh); in retire_list_free() 183 while (rsp = list_head(listp)) { in retire_list_free() 184 list_remove(listp, rsp); in retire_list_free() 250 list_t *listp; in rio_store_encode() local 265 listp = nvf_list(nvfh); in rio_store_encode() 266 for (rsp = list_head(listp); rsp; rsp = list_next(listp, rsp)) { in rio_store_encode() 322 list_t *listp; in e_ddi_retire_persist() local 333 listp = nvf_list(rio_store_handle); in e_ddi_retire_persist() 334 for (rsp = list_head(listp); rsp; rsp = list_next(listp, rsp)) { in e_ddi_retire_persist() [all …]
|
H A D | devid_cache.c | 223 list_t *listp; in devid_list_free() local 228 listp = nvf_list(fd); in devid_list_free() 229 while (np = list_head(listp)) { in devid_list_free() 230 list_remove(listp, np); in devid_list_free() 297 list_t *listp; in devid_cache_pack_list() local 308 listp = nvf_list(fd); in devid_cache_pack_list() 309 for (np = list_head(listp); np; np = list_next(listp, np)) { in devid_cache_pack_list() 518 list_t *listp; in e_devid_cache_register_cmn() local 554 listp = nvf_list(dcfd_handle); in e_devid_cache_register_cmn() 555 for (np = list_head(listp); np; np = list_next(listp, np)) { in e_devid_cache_register_cmn() [all …]
|
/titanic_44/usr/src/uts/common/avs/ns/solaris/ |
H A D | nsc_list.h | 59 #define LS_ISEMPTY(listp) \ argument 60 (((ls_elt_t *)(listp))->ls_next == (ls_elt_t *)(listp)) 61 #define LS_INIT(listp) { \ argument 62 ((ls_elt_t *)(listp))->ls_next = \ 63 ((ls_elt_t *)(listp))->ls_prev = \ 64 ((ls_elt_t *)(listp)); \ 67 #define LS_REMOVE(listp) ls_remove((ls_elt_t *)(listp)) argument
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/platform-mem/ |
H A D | mem_mdesc.c | 49 mdesc_init_n1(topo_mod_t *mod, md_t *mdp, mde_cookie_t *listp, in mdesc_init_n1() argument 68 md_find_name(mdp, "fwd"), listp); in mdesc_init_n1() 72 if (md_get_prop_str(mdp, listp[idx], "nac", &unum) < 0) in mdesc_init_n1() 74 if (md_get_prop_str(mdp, listp[idx], "serial#", in mdesc_init_n1() 77 if (md_get_prop_str(mdp, listp[idx], "part#", in mdesc_init_n1() 113 listp); in mdesc_init_n1() 117 if (md_get_prop_val(mdp, listp[idx], "size", &size) == 0) in mdesc_init_n1() 202 find_grp(mde_cookie_t *listp, size_t n, mde_cookie_t *bclist, in find_grp() argument 217 if (listp[i] == *(bclist+j) && in find_grp() 233 create_grp(topo_mod_t *mod, mde_cookie_t *listp, size_t n, mde_cookie_t *bclist, in create_grp() argument [all …]
|
/titanic_44/usr/src/cmd/picl/plugins/sun4u/grover/envd/ |
H A D | piclenvsetup.c | 243 add_node_to_list(picl_nodehdl_t nodeh, node_list_t *listp) in add_node_to_list() argument 250 return (listp); in add_node_to_list() 253 if (listp == NULL) { in add_node_to_list() 254 listp = el; in add_node_to_list() 255 return (listp); in add_node_to_list() 261 tmp = listp; in add_node_to_list() 266 return (listp); in add_node_to_list() 278 node_list_t *listp) in get_node_list_by_class() argument 295 listp = add_node_to_list(chdh, listp); in get_node_list_by_class() 297 listp = get_node_list_by_class(chdh, classname, listp); in get_node_list_by_class() [all …]
|
/titanic_44/usr/src/uts/common/io/scsi/impl/ |
H A D | scsi_reset_notify.c | 44 struct scsi_reset_notify_entry **listp) in scsi_hba_reset_notify_setup() argument 50 p = *listp; in scsi_hba_reset_notify_setup() 61 *listp = p->next; in scsi_hba_reset_notify_setup() 74 p->next = *listp; in scsi_hba_reset_notify_setup() 75 *listp = p; in scsi_hba_reset_notify_setup() 86 scsi_hba_reset_notify_tear_down(struct scsi_reset_notify_entry *listp) in scsi_hba_reset_notify_tear_down() argument 90 p = listp; in scsi_hba_reset_notify_tear_down() 105 struct scsi_reset_notify_entry **listp) in scsi_hba_reset_notify_callback() argument 114 if ((p = *listp) == NULL) in scsi_hba_reset_notify_callback() 129 for (i = 0, p = *listp; i < count; i++, p = p->next) { in scsi_hba_reset_notify_callback()
|
/titanic_44/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_list.c | 32 ldata_list_t *listp; member 51 static scfga_ret_t postprocess_list_data(const ldata_list_t *listp, 167 assert(larg.listp == NULL); in do_list() 169 assert(larg.listp != NULL); in do_list() 232 assert(larg.listp != NULL); in do_list() 235 ret = postprocess_list_data(larg.listp, cmd, larg.chld_config, &n); in do_list() 243 *llpp = larg.listp; in do_list() 247 if (ret != SCFGA_OK) list_free(&larg.listp); in do_list() 254 const ldata_list_t *listp, in postprocess_list_data() argument 266 if (listp == NULL) { in postprocess_list_data() [all …]
|
/titanic_44/usr/src/cmd/picl/plugins/sun4u/excalibur/envd/ |
H A D | piclenvsetup.c | 266 add_node_to_list(picl_nodehdl_t nodeh, node_list_t *listp) in add_node_to_list() argument 273 return (listp); in add_node_to_list() 276 if (listp == NULL) { in add_node_to_list() 277 listp = el; in add_node_to_list() 278 return (listp); in add_node_to_list() 284 tmp = listp; in add_node_to_list() 289 return (listp); in add_node_to_list() 301 node_list_t *listp) in get_node_list_by_class() argument 318 listp = add_node_to_list(chdh, listp); in get_node_list_by_class() 320 listp = get_node_list_by_class(chdh, classname, listp); in get_node_list_by_class() [all …]
|
/titanic_44/usr/src/cmd/fs.d/ufs/repquota/ |
H A D | repquota.c | 103 char **listp; in main() local 164 listp = listbuf; in main() 180 *listp = malloc(strlen(vfsbuf.vfs_special) + 1); in main() 181 (void) strcpy(*listp, vfsbuf.vfs_special); in main() 182 listp++; in main() 194 listp = &listbuf[listcnt]; in main() 198 *listp = (char *)0; in main() 199 listp = listbuf; in main() 201 listp = &argv[optind]; in main() 212 (oneof(mntp.mnt_special, listp, listcnt) || in main() [all …]
|
/titanic_44/usr/src/cmd/sendmail/db/log/ |
H A D | log_archive.c | 40 log_archive(dblp, listp, flags, db_malloc) in log_archive() argument 42 char ***listp; 82 return (__build_data(dblp, pref, listp, db_malloc)); 102 *listp = NULL; 151 *listp = NULL; 163 *listp = array; 181 __build_data(dblp, pref, listp, db_malloc) in __build_data() argument 183 char *pref, ***listp; 250 *listp = NULL; 315 *listp = array; [all …]
|
/titanic_44/usr/src/cmd/fs.d/ufs/quotacheck/ |
H A D | quotacheck.c | 123 char **listp; in main() local 190 listp = listbuf; in main() 204 *listp = malloc(strlen(vfsbuf.vfs_special) + 1); in main() 205 strcpy(*listp, vfsbuf.vfs_special); in main() 206 listp++; in main() 218 listp = &listbuf[listcnt]; in main() 222 *listp = (char *)0; in main() 223 listp = listbuf; in main() 225 listp = &argv[optind]; in main() 229 errs = preen(listcnt, listp); in main() [all …]
|
/titanic_44/usr/src/uts/sun4v/os/ |
H A D | wdt.c | 85 mde_cookie_t *listp = NULL; in watchdog_init() local 119 listp = kmem_zalloc(listsz, KM_SLEEP); in watchdog_init() 122 md_find_name(mdp, "platform"), md_find_name(mdp, "fwd"), listp); in watchdog_init() 126 if (md_get_prop_val(mdp, listp[0], "watchdog-max-timeout", in watchdog_init() 131 kmem_free(listp, listsz); in watchdog_init() 150 if (md_get_prop_val(mdp, listp[0], "watchdog-resolution", in watchdog_init() 155 kmem_free(listp, listsz); in watchdog_init() 164 kmem_free(listp, listsz); in watchdog_init()
|
/titanic_44/usr/src/cmd/dis/ |
H A D | dis_list.c | 88 uu_list_t *listp; in dis_namelist_create() local 97 if ((listp = uu_list_create(unresolved_pool, NULL, 0)) == NULL) in dis_namelist_create() 100 return (listp); in dis_namelist_create() 184 uu_list_t *listp; in dis_namelist_resolve_sections() local 193 if ((listp = uu_list_create(resolved_pool, NULL, UU_DEFAULT)) == NULL) in dis_namelist_resolve_sections() 198 cb.cb_resolved = listp; in dis_namelist_resolve_sections() 217 return (listp); in dis_namelist_resolve_sections() 262 uu_list_t *listp; in dis_namelist_resolve_functions() local 267 if ((listp = uu_list_create(resolved_pool, NULL, UU_DEFAULT)) == NULL) in dis_namelist_resolve_functions() 272 cb.cb_resolved = listp; in dis_namelist_resolve_functions() [all …]
|
/titanic_44/usr/src/cmd/sgs/gprof/common/ |
H A D | printlist.c | 48 addlist(struct stringlist *listp, char *funcname) in addlist() argument 59 slp->next = listp->next; in addlist() 61 listp->next = slp; in addlist() 65 onlist(struct stringlist *listp, char *funcname) in onlist() argument 69 for (slp = listp->next; slp; slp = slp->next) { in onlist()
|
/titanic_44/usr/src/cmd/fs.d/nfs/lib/ |
H A D | nfslog_config.c | 237 nfsl_config_t *listp = NULL, *tail = NULL; in getconfiglist() local 298 if (listp = findconfig(listpp, tag, B_FALSE, &tail)) { in getconfiglist() 303 error = update_config(listp, tag, defaultdir, in getconfiglist() 312 listp = create_config(tag, defaultdir, in getconfiglist() 315 if (listp == NULL) in getconfiglist() 319 *listpp = listp; in getconfiglist() 321 tail->nc_next = listp; in getconfiglist() 322 tail = listp; in getconfiglist() 692 getlastconfig(nfsl_config_t *listp) in getlastconfig() argument 696 for (; listp != NULL; listp = listp->nc_next) in getlastconfig() [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/hostbridge/ |
H A D | hb_mdesc.c | 86 mde_cookie_t *listp; in hb_rc_init() local 92 listp = topo_mod_zalloc(mod, sizeof (mde_cookie_t) * nnode); in hb_rc_init() 99 listp); in hb_rc_init() 102 topo_mod_free(mod, listp, sizeof (mde_cookie_t) * nnode); in hb_rc_init() 108 rc = md_get_prop_str(mdp, listp[i], MD_STR_DEVICE_TYPE, &s); in hb_rc_init() 115 topo_mod_free(mod, listp, sizeof (mde_cookie_t) * nnode); in hb_rc_init() 134 rc = md_get_prop_str(mdp, listp[i], MD_STR_DEVICE_TYPE, &s); in hb_rc_init() 141 if (md_get_prop_val(mdp, listp[i], MD_STR_CFGHDL, &x) < 0) { in hb_rc_init() 158 topo_mod_free(mod, listp, sizeof (mde_cookie_t) * nnode); in hb_rc_init()
|