Home
last modified time | relevance | path

Searched refs:clp (Results 1 – 25 of 29) sorted by relevance

12

/titanic_50/usr/src/lib/libzfs/common/
H A Dlibzfs_changelist.c95 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 Dlibzfs_mount.c416 prop_changelist_t *clp; in zfs_unmountall() local
419 clp = changelist_gather(zhp, ZFS_PROP_MOUNTPOINT, 0, flags); in zfs_unmountall()
420 if (clp == NULL) in zfs_unmountall()
423 ret = changelist_prefix(clp); in zfs_unmountall()
424 changelist_free(clp); in zfs_unmountall()
917 prop_changelist_t *clp; in zfs_unshareall_proto() local
920 clp = changelist_gather(zhp, ZFS_PROP_SHARENFS, 0, 0); in zfs_unshareall_proto()
921 if (clp == NULL) in zfs_unshareall_proto()
924 ret = changelist_unshare(clp, proto); in zfs_unshareall_proto()
925 changelist_free(clp); in zfs_unshareall_proto()
H A Dlibzfs_sendrecv.c2068 prop_changelist_t *clp; in recv_rename() local
2074 clp = changelist_gather(zhp, ZFS_PROP_NAME, 0, in recv_rename()
2077 if (clp == NULL) in recv_rename()
2079 err = changelist_prefix(clp); in recv_rename()
2097 changelist_rename(clp, name, tryname); in recv_rename()
2115 changelist_rename(clp, name, newname); in recv_rename()
2128 (void) changelist_postfix(clp); in recv_rename()
2129 changelist_free(clp); in recv_rename()
2140 prop_changelist_t *clp; in recv_destroy() local
2148 clp = changelist_gather(zhp, ZFS_PROP_NAME, 0, in recv_destroy()
[all …]
/titanic_50/usr/src/uts/common/disp/
H A Dclass.c52 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_50/usr/src/lib/libnsl/rpc/
H A Dclnt_raw.c80 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_50/usr/src/lib/cfgadm_plugins/scsi/common/
H A Dcfga_list.c62 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_50/usr/src/lib/libdevinfo/
H A Ddevinfo_devlink.c631 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 Ddevinfo_devlink.h312 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_50/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_list.c89 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_50/usr/src/lib/cfgadm_plugins/ib/common/
H A Dcfga_ib.c1553 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_50/usr/src/cmd/fs.d/nfs/nfslog/
H A Dnfslogd.c642 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_50/usr/src/uts/common/sys/
H A Dclass.h147 #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_50/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_connect.c72 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_50/usr/src/uts/common/sys/ib/mgt/ibmf/
H A Dibmf_impl.h99 #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_50/usr/src/uts/common/rpc/
H A Drdma_subr.c200 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 Dxdr_rdma.c1365 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()
H A Drpcib.c301 static rdma_stat rib_recv(CONN *conn, struct clist **clp, uint32_t msgid);
2309 struct clist *clp; in rib_send_and_wait() local
2326 clp = cl; in rib_send_and_wait()
2327 while (clp != NULL) { in rib_send_and_wait()
2332 sgl[nds].ds_va = clp->w.c_saddr; in rib_send_and_wait()
2333 sgl[nds].ds_key = clp->c_smemhandle.mrc_lmr; /* lkey */ in rib_send_and_wait()
2334 sgl[nds].ds_len = clp->c_len; in rib_send_and_wait()
2335 total_msg_size += clp->c_len; in rib_send_and_wait()
2336 clp = clp->c_next; in rib_send_and_wait()
2478 struct clist *clp = cl; in rib_clnt_post() local
[all …]
/titanic_50/usr/src/cmd/priocntl/
H A Dpriocntl.c1001 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_50/usr/src/cmd/mdb/common/modules/ipp/
H A Dipp.c283 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_50/usr/src/uts/common/os/
H A Dmodconf.c1222 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_50/usr/src/uts/common/io/ib/mgt/ibmf/
H A Dibmf_msg.c512 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_50/usr/src/uts/common/pcmcia/cs/
H A Dcs.c2186 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 …]
/titanic_50/usr/src/uts/common/avs/ns/rdc/
H A Drdc_clnt.c2691 rdc_clnt_get(rdc_srv_t *svp, rpcvers_t vers, struct chtab **rch, CLIENT **clp) in rdc_clnt_get() argument
2706 if (clp) { in rdc_clnt_get()
2707 *clp = 0; in rdc_clnt_get()
2762 *clp = client; in rdc_clnt_get()
2787 *clp = ch->ch_client; in rdc_clnt_get()
2799 *clp = ch->ch_client; in rdc_clnt_get()
2823 RDC_PROGRAM, vers, max_msgsize, retries, cred, clp); in rdc_clnt_get()
2834 ch->ch_client = *clp; in rdc_clnt_get()
2836 (void) CLNT_CONTROL(*clp, CLSET_PROGRESS, NULL); in rdc_clnt_get()
2996 rdc_clnt_free(struct chtab *ch, CLIENT *clp) in rdc_clnt_free() argument
[all …]
/titanic_50/usr/src/cmd/fs.d/pcfs/fsck/
H A Dclusters.c576 ClusterInfo **clp; in clearInUse() local
582 clp = &InUse[c - FIRST_CLUSTER]; in clearInUse()
583 if (*clp != NULL) { in clearInUse()
584 freeClusterInfo(*clp); in clearInUse()
585 *clp = NULL; in clearInUse()
/titanic_50/usr/src/uts/common/io/ib/mgt/ibcm/
H A Dibcm_sm.c452 static void ibcm_init_clp_to_mad(ibcm_classportinfo_msg_t *clp,
455 static void ibcm_init_clp_from_mad(ibcm_classportinfo_msg_t *clp,
7472 ibcm_init_clp_to_mad(ibcm_classportinfo_msg_t *clp, ibt_redirect_info_t *rinfo) in ibcm_init_clp_to_mad() argument
7475 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*clp)) in ibcm_init_clp_to_mad()
7477 bcopy(&ibcm_clpinfo, clp, sizeof (ibcm_clpinfo)); in ibcm_init_clp_to_mad()
7479 clp->RedirectGID_hi = h2b64(rinfo->rdi_gid.gid_prefix); in ibcm_init_clp_to_mad()
7480 clp->RedirectGID_lo = h2b64(rinfo->rdi_gid.gid_guid); in ibcm_init_clp_to_mad()
7481 clp->RedirectTC_plus = in ibcm_init_clp_to_mad()
7484 clp->RedirectLID = h2b16(rinfo->rdi_dlid); in ibcm_init_clp_to_mad()
7485 clp->RedirectQP_plus = h2b32(rinfo->rdi_qpn & 0xffffff); in ibcm_init_clp_to_mad()
[all …]

12