/titanic_41/usr/src/lib/libzfs/common/ |
H A D | libzfs_changelist.c | 95 changelist_prefix(prop_changelist_t *clp) in changelist_prefix() argument 100 if (clp->cl_prop != ZFS_PROP_MOUNTPOINT && in changelist_prefix() 101 clp->cl_prop != ZFS_PROP_SHARESMB) in changelist_prefix() 104 for (cn = uu_list_first(clp->cl_list); cn != NULL; in changelist_prefix() 105 cn = uu_list_next(clp->cl_list, cn)) { in changelist_prefix() 124 switch (clp->cl_prop) { in changelist_prefix() 127 clp->cl_mflags) != 0) { in changelist_prefix() 140 (void) changelist_postfix(clp); in changelist_prefix() 155 changelist_postfix(prop_changelist_t *clp) in changelist_postfix() argument 169 if ((cn = uu_list_last(clp->cl_list)) == NULL) in changelist_postfix() [all …]
|
H A D | libzfs_mount.c | 415 prop_changelist_t *clp; in zfs_unmountall() local 418 clp = changelist_gather(zhp, ZFS_PROP_MOUNTPOINT, 0, flags); in zfs_unmountall() 419 if (clp == NULL) in zfs_unmountall() 422 ret = changelist_prefix(clp); in zfs_unmountall() 423 changelist_free(clp); in zfs_unmountall() 916 prop_changelist_t *clp; in zfs_unshareall_proto() local 919 clp = changelist_gather(zhp, ZFS_PROP_SHARENFS, 0, 0); in zfs_unshareall_proto() 920 if (clp == NULL) in zfs_unshareall_proto() 923 ret = changelist_unshare(clp, proto); in zfs_unshareall_proto() 924 changelist_free(clp); in zfs_unshareall_proto()
|
H A D | libzfs_sendrecv.c | 2066 prop_changelist_t *clp; in recv_rename() local 2072 clp = changelist_gather(zhp, ZFS_PROP_NAME, 0, in recv_rename() 2075 if (clp == NULL) in recv_rename() 2077 err = changelist_prefix(clp); in recv_rename() 2095 changelist_rename(clp, name, tryname); in recv_rename() 2113 changelist_rename(clp, name, newname); in recv_rename() 2126 (void) changelist_postfix(clp); in recv_rename() 2127 changelist_free(clp); in recv_rename() 2138 prop_changelist_t *clp; in recv_destroy() local 2146 clp = changelist_gather(zhp, ZFS_PROP_NAME, 0, in recv_destroy() [all …]
|
/titanic_41/usr/src/uts/common/disp/ |
H A D | class.c | 52 sclass_t *clp; in alloc_cid() local 63 for (clp = sclass; clp < &sclass[nclass]; clp++) in alloc_cid() 64 if (clp->cl_name[0] == '\0' && clp->cl_lock == NULL) in alloc_cid() 67 if (clp == &sclass[nclass]) { in alloc_cid() 70 *cidp = clp - &sclass[0]; in alloc_cid() 71 clp->cl_lock = kmem_alloc(sizeof (krwlock_t), KM_SLEEP); in alloc_cid() 72 clp->cl_name = kmem_alloc(strlen(clname) + 1, KM_SLEEP); in alloc_cid() 73 (void) strcpy(clp->cl_name, clname); in alloc_cid() 74 rw_init(clp->cl_lock, NULL, RW_DEFAULT, NULL); in alloc_cid() 85 scheduler_load(char *clname, sclass_t *clp) in scheduler_load() argument [all …]
|
/titanic_41/usr/src/lib/libnsl/rpc/ |
H A D | clnt_raw.c | 80 struct clnt_raw_private *clp; in clnt_raw_create() local 88 clp = clnt_raw_private; in clnt_raw_create() 89 if (clp == NULL) { in clnt_raw_create() 90 clp = calloc(1, sizeof (*clp)); in clnt_raw_create() 91 if (clp == NULL) { in clnt_raw_create() 100 if (clp) in clnt_raw_create() 101 free(clp); in clnt_raw_create() 106 clp->raw_buf = _rawcombuf; /* Share it with the server */ in clnt_raw_create() 107 clnt_raw_private = clp; in clnt_raw_create() 109 xdrs = &clp->xdr_stream; in clnt_raw_create() [all …]
|
/titanic_41/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_list.c | 62 static void get_hw_info(di_node_t node, cfga_list_data_t *clp, dyncomp_t type); 420 cfga_list_data_t *clp; in create_pathinfo_ldata() local 434 clp = &listp->ldata; in create_pathinfo_ldata() 449 (void) snprintf(clp->ap_log_id, sizeof (clp->ap_log_id), "%s%s%s", in create_pathinfo_ldata() 452 (void) snprintf(clp->ap_phys_id, sizeof (clp->ap_phys_id), "%s%s%s", in create_pathinfo_ldata() 458 clp->ap_class[0] = '\0'; in create_pathinfo_ldata() 459 clp->ap_r_state = lap->hba_rstate; in create_pathinfo_ldata() 461 clp->ap_o_state = CFGA_STAT_CONFIGURED; in create_pathinfo_ldata() 483 (void) snprintf(clp->ap_info, CFGA_INFO_LEN, in create_pathinfo_ldata() 488 get_hw_info(client_node, clp, PATH_APID); in create_pathinfo_ldata() [all …]
|
/titanic_41/usr/src/lib/libdevinfo/ |
H A D | devinfo_devlink.c | 631 cache_link_t *clp; in read_links() local 650 clp = link_insert(hdp, pcmp, path, content, dlp->attr); in read_links() 651 if (clp == NULL) { in read_links() 657 nidx, clp->path, pcmp == NULL ? "(DANGLING)" : ""); in read_links() 915 cache_link_t *clp, in write_links() argument 925 if (clp != NULL && ((pdmp == NULL) ^ (clp == CACHE(hdp)->dngl))) { in write_links() 931 for (; clp != NULL; clp = clp->sib) { in write_links() 933 assert(clp->path != NULL); in write_links() 935 if ((pdmp == NULL) ^ (clp->minor == NULL)) { in write_links() 937 "(%s)\n", fcn, clp->path); in write_links() [all …]
|
H A D | devinfo_devlink.h | 312 static void link_delete(di_devlink_handle_t hdp, cache_link_t *clp); 319 cache_link_t *clp, uint32_t *next); 320 static void rm_link_from_hash(struct di_devlink_handle *hdp, cache_link_t *clp); 333 static void count_link(cache_link_t *clp, uint32_t *count); 348 static void hash_insert(struct di_devlink_handle *hdp, cache_link_t *clp); 377 static int walk_cache_links(di_devlink_handle_t hdp, cache_link_t *clp, 408 cache_link_t *clp); 409 static int link_cmp(cache_link_t *clp, const char *content, int type);
|
/titanic_41/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_list.c | 89 static void get_hw_info(di_node_t node, cfga_list_data_t *clp); 1433 cfga_list_data_t *clp = NULL; in do_stat_fca_xport() local 1515 clp = &listp->ldata; in do_stat_fca_xport() 1517 (void) snprintf(clp->ap_log_id, sizeof (clp->ap_log_id), "%s", in do_stat_fca_xport() 1519 (void) snprintf(clp->ap_phys_id, sizeof (clp->ap_phys_id), "%s", in do_stat_fca_xport() 1522 clp->ap_class[0] = '\0'; /* Filled by libcfgadm */ in do_stat_fca_xport() 1523 clp->ap_r_state = lap->xport_rstate; in do_stat_fca_xport() 1524 clp->ap_o_state = lap->chld_config; in do_stat_fca_xport() 1525 clp->ap_cond = cond; in do_stat_fca_xport() 1526 clp->ap_busy = 0; in do_stat_fca_xport() [all …]
|
/titanic_41/usr/src/lib/cfgadm_plugins/ib/common/ |
H A D | cfga_ib.c | 1553 ib_fill_static_apids(char *ap_id, cfga_list_data_t *clp) in ib_fill_static_apids() argument 1576 clp->ap_cond = CFGA_COND_OK; in ib_fill_static_apids() 1577 clp->ap_r_state = CFGA_STAT_CONNECTED; in ib_fill_static_apids() 1578 clp->ap_o_state = CFGA_STAT_CONFIGURED; in ib_fill_static_apids() 1579 clp->ap_class[0] = '\0'; /* Filled by libcfgadm */ in ib_fill_static_apids() 1580 clp->ap_busy = 0; in ib_fill_static_apids() 1581 clp->ap_status_time = (time_t)-1; in ib_fill_static_apids() 1582 (void) snprintf(clp->ap_log_id, sizeof (clp->ap_log_id), "%s", in ib_fill_static_apids() 1584 (void) strlcpy(clp->ap_phys_id, ap_id, sizeof (clp->ap_phys_id)); in ib_fill_static_apids() 1588 (void) strlcpy(clp->ap_type, IB_FABRIC_TYPE, in ib_fill_static_apids() [all …]
|
/titanic_41/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | nfslogd.c | 642 nfsl_config_t *clp; in cycle_logs() local 646 for (clp = listp; clp != NULL; clp = clp->nc_next) { in cycle_logs() 652 if (clp->nc_logpath) { in cycle_logs() 653 if (is_cycle_needed(clp->nc_logpath, &processed_list, in cycle_logs() 655 if (clp->nc_transcookie != NULL) { in cycle_logs() 657 &clp->nc_transcookie); in cycle_logs() 658 assert(clp->nc_transcookie == NULL); in cycle_logs() 660 error = cycle_log(clp->nc_logpath, in cycle_logs() 670 if (clp->nc_rpclogpath) { in cycle_logs() 671 if (is_cycle_needed(clp->nc_rpclogpath, &processed_list, in cycle_logs() [all …]
|
/titanic_41/usr/src/cmd/fs.d/cachefs/common/ |
H A D | subr.c | 1002 struct cache_label *clp, const char *dirp) in cachefs_convert_uv2cl() argument 1022 clp->cl_maxblks = temp < (double)INT_MAX ? (int)temp : INT_MAX; in cachefs_convert_uv2cl() 1026 clp->cl_blockmin = temp < (double)INT_MAX ? (int)temp : INT_MAX; in cachefs_convert_uv2cl() 1030 clp->cl_blocktresh = temp < (double)INT_MAX ? (int)temp : INT_MAX; in cachefs_convert_uv2cl() 1033 clp->cl_maxinodes = temp < (double)INT_MAX ? (int)temp : INT_MAX; in cachefs_convert_uv2cl() 1036 clp->cl_filemin = temp < (double)INT_MAX ? (int)temp : INT_MAX; in cachefs_convert_uv2cl() 1039 clp->cl_filetresh = temp < (double)INT_MAX ? (int)temp : INT_MAX; in cachefs_convert_uv2cl() 1042 clp->cl_maxfiles = uvp->uv_maxfilesize * ftmp + .5; in cachefs_convert_uv2cl() 1044 clp->cl_blkhiwat = uvp->uv_hiblocks / 100.0 * clp->cl_maxblks + .5; in cachefs_convert_uv2cl() 1045 clp->cl_blklowat = uvp->uv_lowblocks / 100.0 * clp->cl_maxblks + .5; in cachefs_convert_uv2cl() [all …]
|
H A D | subr.h | 85 struct cache_label *clp, const char *dirp); 86 int cachefs_convert_cl2uv(const struct cache_label *clp,
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | class.h | 147 #define CL_ADMIN(clp, uaddr, reqpcredp) \ argument 148 (*(clp)->cl_funcs->sclass.cl_admin)(uaddr, reqpcredp) 163 #define CL_GETCLINFO(clp, clinfop) \ argument 164 (*(clp)->cl_funcs->sclass.cl_getclinfo)((void *)clinfop) 166 #define CL_GETCLPRI(clp, clprip) \ argument 167 (*(clp)->cl_funcs->sclass.cl_getclpri)(clprip) 172 #define CL_PARMSIN(clp, clparmsp) \ argument 173 (clp)->cl_funcs->sclass.cl_parmsin((void *)clparmsp) 175 #define CL_PARMSOUT(clp, clparmsp, vaparmsp) \ argument 176 (clp)->cl_funcs->sclass.cl_parmsout((void *)clparmsp, vaparmsp) [all …]
|
/titanic_41/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_connect.c | 72 static void connection_get(struct conn_list *clp, ndmp_door_ctx_t *enc_ctx); 73 static void ndmp_connect_get_conn(struct conn_list *clp, 650 struct conn_list *clp; in ndmp_connect_list_find() local 655 LIST_FOREACH(clp, &cl_head, cl_q) { in ndmp_connect_list_find() 656 if (clp->cl_conn == connection) { in ndmp_connect_list_find() 658 return (clp); in ndmp_connect_list_find() 680 struct conn_list *clp; in ndmp_connect_list_add() local 687 if ((clp = ndmp_malloc(sizeof (struct conn_list))) == NULL) in ndmp_connect_list_add() 690 clp->cl_conn = connection; in ndmp_connect_list_add() 691 clp->cl_id = *id; in ndmp_connect_list_add() [all …]
|
/titanic_41/usr/src/uts/common/sys/ib/mgt/ibmf/ |
H A D | ibmf_impl.h | 99 #define IBMF_RECV_CB_SETUP(clp) { \ argument 100 ASSERT(MUTEX_HELD(&(clp)->ic_mutex)); \ 101 (clp)->ic_flags |= IBMF_CLIENT_RECV_CB_ACTIVE; \ 102 (clp)->ic_recvs_active++; \ 103 mutex_enter(&(clp)->ic_kstat_mutex); \ 104 IBMF_ADD32_KSTATS((clp), recvs_active, 1); \ 105 mutex_exit(&(clp)->ic_kstat_mutex); \ 108 #define IBMF_RECV_CB_CLEANUP(clp) { \ argument 109 ASSERT(MUTEX_HELD(&(clp)->ic_mutex)); \ 110 (clp)->ic_recvs_active--; \ [all …]
|
/titanic_41/usr/src/uts/common/rpc/ |
H A D | rdma_subr.c | 200 struct clist *clp; in clist_alloc() local 202 clp = kmem_cache_alloc(clist_cache, KM_SLEEP); in clist_alloc() 204 bzero(clp, sizeof (*clp)); in clist_alloc() 206 return (clp); in clist_alloc() 236 clist_add(struct clist **clp, uint32_t xdroff, int len, in clist_add() argument 244 while (*clp != NULL) in clist_add() 245 clp = &((*clp)->c_next); in clist_add() 258 *clp = cl; in clist_add()
|
H A D | xdr_rdma.c | 1365 xdrrdma_free_clist(CONN *conn, struct clist *clp) in xdrrdma_free_clist() argument 1367 rdma_buf_free(conn, &clp->rb_longbuf); in xdrrdma_free_clist() 1368 clist_free(clp); in xdrrdma_free_clist() 1506 struct clist *clp; in xdrrdma_read_a_chunk() local 1573 clp = xdrp->xp_rcl_xdr; in xdrrdma_read_a_chunk() 1574 while (clp->c_next != NULL) in xdrrdma_read_a_chunk() 1575 clp = clp->c_next; in xdrrdma_read_a_chunk() 1576 clp->c_next = rclp; in xdrrdma_read_a_chunk()
|
/titanic_41/usr/src/cmd/priocntl/ |
H A D | priocntl.c | 1001 classpids_t *clp; local 1003 for (clp = clpids; clp != &clpids[nclass]; clp++) { 1004 if (strcmp(clp->clp_clname, clname) == 0) { 1005 if (clp->clp_npids == clp->clp_pidlistsz) 1006 increase_pidlist(clp); 1008 (clp->clp_pidlist)[clp->clp_npids] = pid; 1009 clp->clp_npids++; 1017 increase_pidlist(classpids_t *clp) in increase_pidlist() argument 1019 if ((clp->clp_pidlist = realloc(clp->clp_pidlist, in increase_pidlist() 1020 (clp->clp_pidlistsz + NPIDS) * sizeof (pid_t))) == NULL) in increase_pidlist() [all …]
|
/titanic_41/usr/src/cmd/mdb/common/modules/ipp/ |
H A D | ipp.c | 283 cfglock_t *clp; in cfglock() local 288 clp = mdb_alloc(sizeof (cfglock_t), UM_SLEEP); in cfglock() 289 if (mdb_vread(clp, sizeof (cfglock_t), addr) == -1) { in cfglock() 291 mdb_free(clp, sizeof (cfglock_t)); in cfglock() 295 mdb_printf("%?p: %20s = %p\n", addr, "owner", clp->cl_owner); in cfglock() 297 clp->cl_reader ? "TRUE" : "FALSE"); in cfglock() 298 mdb_printf("%?s %20s = %d\n", "", "writers", clp->cl_writers); in cfglock() 300 addr + ((uintptr_t)clp->cl_mutex - (uintptr_t)clp)); in cfglock() 302 addr + ((uintptr_t)clp->cl_cv - (uintptr_t)clp)); in cfglock() 305 mdb_free(clp, sizeof (cfglock_t)); in cfglock()
|
/titanic_41/usr/src/uts/common/io/lvm/md/ |
H A D | md_mddb.c | 2923 mddb_cfg_loc_t *clp, in ridev() argument 2933 ldev = md_makedevice(md_targ_name_to_major(clp->l_driver), in ridev() 2934 clp->l_mnum); in ridev() 2936 if (ddi_name_to_major(clp->l_driver) == (major_t)-1) in ridev() 2939 ldev = md_makedevice(ddi_name_to_major(clp->l_driver), in ridev() 2940 clp->l_mnum); in ridev() 2943 if (clp->l_devid != 0) { in ridev() 2950 if (!mddb_devid_validate((ddi_devid_t)(uintptr_t)clp->l_devid, in ridev() 2951 &ndev, clp->l_minor_name)) { in ridev() 2954 (void) strcpy(clp->l_driver, in ridev() [all …]
|
/titanic_41/usr/src/uts/common/os/ |
H A D | modconf.c | 1222 sclass_t *clp; in mod_installsched() local 1233 clp = &sclass[cid]; in mod_installsched() 1234 rw_enter(clp->cl_lock, RW_WRITER); in mod_installsched() 1235 if (SCHED_INSTALLED(clp)) { in mod_installsched() 1238 rw_exit(clp->cl_lock); in mod_installsched() 1242 clp->cl_init = modl->sched_class->cl_init; in mod_installsched() 1243 clp->cl_funcs = modl->sched_class->cl_funcs; in mod_installsched() 1244 modl->sched_class = clp; in mod_installsched() 1245 disp_add(clp); in mod_installsched() 1247 rw_exit(clp->cl_lock); in mod_installsched() [all …]
|
/titanic_41/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_db_balance.c | 526 del_replicas(mdsetname_t *sp, md_ctlr_ctl_t *clp, md_error_t *ep) in del_replicas() argument 533 for (c = clp; c != NULL; c = c->ctl_next) { in del_replicas() 774 md_ctlr_ctl_t *clp, in count_replicas() argument 789 for (c = clp; c != NULL; c = c->ctl_next) in count_replicas() 797 for (c = clp; c != NULL; c = c->ctl_next) { in count_replicas() 820 for (c = clp; c != NULL; c = c->ctl_next) { in count_replicas() 1077 md_ctlr_ctl_t *clp, in morethan2_ctl_balance() argument 1087 for (c = clp; c != NULL; c = c->ctl_next) { in morethan2_ctl_balance() 1129 md_ctlr_ctl_t *clp, in lessthan3_ctl_balance() argument 1139 for (c = clp; c != NULL; c = c->ctl_next) { in lessthan3_ctl_balance() [all …]
|
/titanic_41/usr/src/uts/common/io/ib/mgt/ibmf/ |
H A D | ibmf_msg.c | 512 ibmf_i_find_msg_client(ibmf_client_t *clp, ibmf_msg_impl_t *msgimplp, in ibmf_i_find_msg_client() argument 521 tnf_opaque, clientp, clp, tnf_opaque, msg, msgimplp); in ibmf_i_find_msg_client() 523 mutex_enter(&clp->ic_msg_mutex); in ibmf_i_find_msg_client() 525 msgp = clp->ic_msg_list; in ibmf_i_find_msg_client() 558 msgp = clp->ic_term_msg_list; in ibmf_i_find_msg_client() 584 mutex_exit(&clp->ic_msg_mutex); in ibmf_i_find_msg_client()
|
/titanic_41/usr/src/uts/common/pcmcia/cs/ |
H A D | cs.c | 2186 client_t *clp; in cs_find_client() local 2214 clp = sp->client_list; in cs_find_client() 2216 while (clp) { in cs_find_client() 2217 if (clp->client_handle == client_handle) in cs_find_client() 2218 return (clp); in cs_find_client() 2219 clp = clp->next; in cs_find_client() 2240 client_t *clp; in cs_destroy_client_handle() local 2248 if ((!(clp = cs_find_client(client_handle, &error))) || in cs_destroy_client_handle() 2271 if (clp->prev) { in cs_destroy_client_handle() 2272 clp->prev->next = clp->next; in cs_destroy_client_handle() [all …]
|