| /illumos-gate/usr/src/uts/common/io/ |
| H A D | cmlb.c | 290 static dev_t cmlb_make_device(struct cmlb_lun *cl); 291 static int cmlb_validate_geometry(struct cmlb_lun *cl, boolean_t forcerevalid, 293 static void cmlb_resync_geom_caches(struct cmlb_lun *cl, diskaddr_t capacity, 295 static int cmlb_read_fdisk(struct cmlb_lun *cl, diskaddr_t capacity, 300 static int cmlb_use_efi(struct cmlb_lun *cl, diskaddr_t capacity, int flags, 302 static void cmlb_build_default_label(struct cmlb_lun *cl, void *tg_cookie); 303 static int cmlb_uselabel(struct cmlb_lun *cl, struct dk_label *l, int flags); 305 static void cmlb_build_user_vtoc(struct cmlb_lun *cl, struct vtoc *user_vtoc); 307 static int cmlb_build_label_vtoc(struct cmlb_lun *cl, struct vtoc *user_vtoc); 308 static int cmlb_write_label(struct cmlb_lun *cl, void *tg_cookie); [all …]
|
| /illumos-gate/usr/src/uts/common/os/ |
| H A D | callout.c | 167 #define CALLOUT_LIST_INSERT(hash, cl) \ argument 168 CALLOUT_HASH_INSERT(hash, cl, cl_next, cl_prev) 170 #define CALLOUT_LIST_APPEND(hash, cl) \ argument 171 CALLOUT_HASH_APPEND(hash, cl, cl_next, cl_prev) 173 #define CALLOUT_LIST_DELETE(hash, cl) \ argument 174 CALLOUT_HASH_DELETE(hash, cl, cl_next, cl_prev) 176 #define CALLOUT_LIST_BEFORE(cl, nextcl) \ argument 178 (cl)->cl_prev = (nextcl)->cl_prev; \ 179 (cl)->cl_next = (nextcl); \ 180 (nextcl)->cl_prev = (cl); \ [all …]
|
| /illumos-gate/usr/src/uts/common/rpc/ |
| H A D | rdma_subr.c | 210 clist_len(struct clist *cl) in clist_len() argument 213 while (cl) { in clist_len() 214 len += cl->c_len; in clist_len() 215 cl = cl->c_next; in clist_len() 221 clist_zero_len(struct clist *cl) in clist_zero_len() argument 223 while (cl != NULL) { in clist_zero_len() 224 if (cl->c_dmemhandle.mrc_rmr == 0) in clist_zero_len() 226 cl->c_len = 0; in clist_zero_len() 227 cl = cl->c_next; in clist_zero_len() 240 struct clist *cl; in clist_add() local [all …]
|
| H A D | xdr_rdma.c | 302 int min_chunk, struct clist *cl, enum xdr_op op, CONN *conn) in xdrrdma_create() argument 320 xdrp->xp_rcl = cl; in xdrrdma_create() 324 if (op == XDR_ENCODE && cl != NULL) { in xdrrdma_create() 326 for (cle = cl; cle->c_next != NULL; cle = cle->c_next) in xdrrdma_create() 434 struct clist cl; in xdrrdma_getbytes() local 508 cl = *cle; in xdrrdma_getbytes() 509 cl.c_next = NULL; in xdrrdma_getbytes() 510 status = clist_register(xdrp->xp_conn, &cl, in xdrrdma_getbytes() 521 cle->c_dmemhandle = cl.c_dmemhandle; in xdrrdma_getbytes() 522 cle->c_dsynchandle = cl.c_dsynchandle; in xdrrdma_getbytes() [all …]
|
| /illumos-gate/usr/src/lib/libnsl/rpc/ |
| H A D | clnt_door.c | 82 CLIENT *cl = NULL; /* client handle */ in clnt_door_create() local 117 if ((cl = malloc(sizeof (CLIENT))) == NULL || in clnt_door_create() 142 cl->cl_ops = clnt_door_ops(); in clnt_door_create() 143 cl->cl_private = (caddr_t)cu; in clnt_door_create() 144 cl->cl_auth = authnone_create(); in clnt_door_create() 145 cl->cl_tp = strdup(rendezvous); in clnt_door_create() 146 if (cl->cl_tp == NULL) { in clnt_door_create() 152 cl->cl_netid = strdup("door"); in clnt_door_create() 153 if (cl->cl_netid == NULL) { in clnt_door_create() 155 if (cl->cl_tp) in clnt_door_create() [all …]
|
| H A D | svid_funcs.c | 67 clnt_call(CLIENT *cl, uint32_t proc, xdrproc_t xargs, caddr_t argsp, in clnt_call() argument 70 return ((*(cl)->cl_ops->cl_call)(cl, proc, xargs, argsp, xres, resp, in clnt_call() 75 clnt_send(CLIENT *cl, uint32_t proc, xdrproc_t xargs, caddr_t argsp) in clnt_send() argument 77 return ((*(cl)->cl_ops->cl_send)(cl, proc, xargs, argsp)); in clnt_send() 81 clnt_control(CLIENT *cl, uint_t rq, char *in) in clnt_control() argument 83 return ((*(cl)->cl_ops->cl_control)(cl, rq, in)); in clnt_control() 87 clnt_destroy(CLIENT *cl) in clnt_destroy() argument 89 ((*(cl)->cl_ops->cl_destroy)(cl)); in clnt_destroy() 93 clnt_freeres(CLIENT *cl, xdrproc_t xres, caddr_t resp) in clnt_freeres() argument 95 return ((*(cl)->cl_ops->cl_freeres)(cl, xres, resp)); in clnt_freeres() [all …]
|
| H A D | clnt_generic.c | 509 CLIENT *cl = NULL; /* client handle */ in clnt_tp_create_timed() local 523 &cl, (struct timeval *)tp); in clnt_tp_create_timed() 528 if (cl == NULL) { in clnt_tp_create_timed() 529 cl = _clnt_tli_create_timed(RPC_ANYFD, nconf, svcaddr, in clnt_tp_create_timed() 533 if (CLNT_CONTROL(cl, CLSET_SVC_ADDR, (void *)svcaddr) == TRUE) { in clnt_tp_create_timed() 534 if (cl->cl_netid == NULL) { in clnt_tp_create_timed() 535 cl->cl_netid = strdup(nconf->nc_netid); in clnt_tp_create_timed() 536 if (cl->cl_netid == NULL) { in clnt_tp_create_timed() 545 if (cl->cl_tp == NULL) { in clnt_tp_create_timed() 546 cl->cl_tp = strdup(nconf->nc_device); in clnt_tp_create_timed() [all …]
|
| H A D | clnt_dg.c | 138 CLIENT *cl = NULL; /* client handle */ in clnt_dg_create() local 185 if ((cl = malloc(sizeof (CLIENT))) == NULL) in clnt_dg_create() 237 cl->cl_ops = clnt_dg_ops(); in clnt_dg_create() 238 cl->cl_private = (caddr_t)cu; in clnt_dg_create() 239 cl->cl_auth = authnone_create(); in clnt_dg_create() 240 cl->cl_tp = NULL; in clnt_dg_create() 241 cl->cl_netid = NULL; in clnt_dg_create() 244 return (cl); in clnt_dg_create() 251 if (cl) { in clnt_dg_create() 252 free(cl); in clnt_dg_create() [all …]
|
| /illumos-gate/usr/src/lib/libgen/common/ |
| H A D | reg_step.c | 161 wchar_t cl; in step() local 193 n = Popwchar(p1, cl); in step() 233 wchar_t cl; in _advance() local 248 ep += Popwchar(ep, cl); in _advance() 249 c = cl; in _advance() 250 if ((n = Popwchar(lp, cl)) <= 0 || c != cl) in _advance() 259 if ((n = Popwchar(lp, cl)) > 0) { in _advance() 306 ep += Popwchar(ep, cl); in _advance() 307 c = cl; in _advance() 310 if ((n = Popwchar(lp, cl)) <= 0 || cl != c) in _advance() [all …]
|
| H A D | gmatch.c | 38 n = mbtowc(&cl, p, MB_LEN_MAX); \ 39 c = cl; \ 50 wchar_t cl; in gmatch() local 53 n = mbtowc(&cl, s, MB_LEN_MAX); in gmatch() 58 scc = cl; in gmatch() 61 n = mbtowc(&cl, p, MB_LEN_MAX); in gmatch() 67 c = cl; in gmatch() 150 n = mbtowc(&cl, s, MB_LEN_MAX); in gmatch()
|
| /illumos-gate/usr/src/lib/rpcsec_gss/ |
| H A D | svc_rpcsec_gss.c | 209 svc_rpc_gss_data *cl; in ctx_cleanup() local 220 if ((cl = (svc_rpc_gss_data *)svcauth->svc_ah_private) != NULL) { in ctx_cleanup() 221 mutex_lock(&cl->clm); in ctx_cleanup() 222 if (--cl->ref_cnt == 0 && cl->stale) { in ctx_cleanup() 223 mutex_unlock(&cl->clm); in ctx_cleanup() 225 destroy_client(cl); in ctx_cleanup() 228 mutex_unlock(&cl->clm); in ctx_cleanup() 299 check_seq(svc_rpc_gss_data *cl, uint_t seq_num, bool_t *kill_context) in check_seq() argument 317 if (seq_num > cl->seq_num) { in check_seq() 318 shift_bits(cl->seq_bits, SEQ_ARR_SIZE, seq_num - cl->seq_num); in check_seq() [all …]
|
| /illumos-gate/usr/src/uts/common/rpc/sec_gss/ |
| H A D | svc_rpcsec_gss.c | 447 svc_rpc_gss_data *cl; in rpc_gss_cleanup() local 457 if ((cl = (svc_rpc_gss_data *)svcauth->svc_ah_private) != NULL) { in rpc_gss_cleanup() 458 mutex_enter(&cl->clm); in rpc_gss_cleanup() 459 ASSERT(cl->ref_cnt > 0); in rpc_gss_cleanup() 460 if (--cl->ref_cnt == 0 && cl->stale) { in rpc_gss_cleanup() 461 mutex_exit(&cl->clm); in rpc_gss_cleanup() 462 destroy_client(cl); in rpc_gss_cleanup() 465 mutex_exit(&cl->clm); in rpc_gss_cleanup() 511 check_seq(svc_rpc_gss_data *cl, uint_t seq_num, bool_t *kill_context) in check_seq() argument 530 if (seq_num > cl->seq_num) { in check_seq() [all …]
|
| /illumos-gate/usr/src/ucblib/librpcsoc/ |
| H A D | clnt_udp.c | 121 CLIENT *cl; local 126 cl = (CLIENT *)mem_alloc(sizeof (CLIENT)); 127 if (cl == NULL) { 153 cl->cl_ops = clntudp_ops(); 154 cl->cl_private = (caddr_t)cu; 191 cl->cl_auth = authnone_create(); 192 return (cl); 196 if (cl) 197 mem_free((caddr_t)cl, sizeof (CLIENT)); 215 clntudp_call(cl, proc, xargs, argsp, xresults, resultsp, utimeout) in clntudp_call() argument [all …]
|
| /illumos-gate/usr/src/cmd/bnu/ |
| H A D | getprm.c | 191 wchar_t *cl, *cr, *n; local 214 for (n=wcbuf ;; n=cl+1) { 215 cl = wcschr(n, (wchar_t)'!'); 216 if (cl == NULL) { 223 if (cl == n) /* leading ! */ 225 if (WEQUALSN(myname, n, cl - n) && myname[cl - n] == NULLCHAR) 228 (void) wcsncpy(tmpbuf, n, cl-n); 229 tmpbuf[cl-n] = NULLCHAR; 233 if (cl != (cr = wcsrchr(n, (wchar_t)'!'))) { 235 wcsncpy(tmpbuf, cl+1, cr-cl-1); [all …]
|
| /illumos-gate/usr/src/stand/lib/fs/nfs/ |
| H A D | clnt_btcp.c | 121 CLIENT *cl; in clntbtcp_create() local 129 cl = (CLIENT *)bkmem_alloc(sizeof (CLIENT)); in clntbtcp_create() 130 if (cl == NULL) { in clntbtcp_create() 263 cl->cl_ops = clntbtcp_ops(); in clntbtcp_create() 264 cl->cl_private = (caddr_t)ct; in clntbtcp_create() 265 cl->cl_auth = authnone_create(); in clntbtcp_create() 266 return (cl); in clntbtcp_create() 271 if (cl) in clntbtcp_create() 272 bkmem_free((caddr_t)cl, sizeof (CLIENT)); in clntbtcp_create() 278 CLIENT *cl, in clntbtcp_call() argument [all …]
|
| H A D | clnt_budp.c | 113 CLIENT *cl; in clntbudp_bufcreate() local 117 cl = (CLIENT *)bkmem_alloc(sizeof (CLIENT)); in clntbudp_bufcreate() 118 if (cl == NULL) { in clntbudp_bufcreate() 143 cl->cl_ops = clntbudp_ops(); in clntbudp_bufcreate() 144 cl->cl_private = (caddr_t)cu; in clntbudp_bufcreate() 196 cl->cl_auth = authnone_create(); in clntbudp_bufcreate() 197 return (cl); in clntbudp_bufcreate() 201 if (cl) in clntbudp_bufcreate() 202 bkmem_free((caddr_t)cl, sizeof (CLIENT)); in clntbudp_bufcreate() 216 clntbudp_call(CLIENT *cl, rpcproc_t proc, xdrproc_t xargs, caddr_t argsp, in clntbudp_call() argument [all …]
|
| /illumos-gate/usr/src/lib/libc/i386/gen/ |
| H A D | memchr.S | 61 movl 12(%esp), %ecx / %cl = byte that is sought 70 cmpb %dl, %cl / if the first byte is %cl 72 cmpb %dh, %cl / if the second byte is %cl 75 cmpb %dl, %cl / if the third byte is %cl 77 cmpb %dh, %cl / if the fourth is %cl 86 cmpb (%eax), %cl / if a byte in (%eax) is %cl 100 cmpb (%eax), %cl / if a byte in (%eax) is %cl
|
| /illumos-gate/usr/src/uts/common/sys/ |
| H A D | cmlb_impl.h | 80 #define CMLB_MUTEX(cl) (&((cl)->cl_mutex)) argument 81 #define CMLB_DEVINFO(cl) ((cl)->cl_devi) argument 82 #define CMLB_LABEL(cl) (ddi_driver_name((cl->cl_devi))) argument 85 #define ISREMOVABLE(cl) (cl->cl_is_removable) argument 86 #define ISCD(cl) (cl->cl_device_type == DTYPE_RODIRECT) argument 87 #define ISHOTPLUGGABLE(cl) (cl->cl_is_hotpluggable) argument
|
| /illumos-gate/usr/src/cmd/svr4pkg/pkgmk/ |
| H A D | splpkgmap.c | 86 static struct class_type *cl; variable 125 cl = (struct class_type *)calloc(MALSIZ, sizeof (struct class_type)); in splpkgmap() 126 if (cl == NULL) { in splpkgmap() 352 if (cl[i].first == 0) in splpkgmap() 353 cl[i].last = cl[i].first = (i ? cl[i-1].last : 1); in splpkgmap() 356 strcmp(f[j].ept->pkg_class, cl[i].name) == 0) { in splpkgmap() 358 f[j].ept->volno = cl[i].last; in splpkgmap() 360 f[j].ept->volno = cl[i].first; in splpkgmap() 393 free(cl[i].name); in splpkgmap() 394 free(cl); in splpkgmap() [all …]
|
| /illumos-gate/usr/src/cmd/tbl/ |
| H A D | tu.c | 39 int cr, cl; in fullwide() local 45 cl=cr; in fullwide() 46 while (i>0 && vspand(prev(i),cl,1)) in fullwide() 47 cl++; in fullwide() 48 for(cr=cl; cr<ncol; cr++) in fullwide() 51 if (cl<ncol) in fullwide() 52 drawline(i,cl,(cr<ncol?cr-1:cr),lintype,1,0); in fullwide() 60 drawline(int i, int cl, int cr, int lintype, int noheight, int shortl) in drawline() argument 73 nodata = cr-cl>=ncol || noheight || allh(i); in drawline() 84 tohcol(cl); in drawline() [all …]
|
| /illumos-gate/usr/src/lib/libm/i386/src/ |
| H A D | pow.S | 105 movb %dl,%cl 106 andb $0x45,%cl 107 cmpb $0x40,%cl / C3=1 C2=0 C1=? C0=0 when +-0 109 movb %dh,%cl 110 andb $0x45,%cl 111 cmpb $0x40,%cl / C3=1 C2=0 C1=? C0=0 when +-0 117 cmpb $0x01,%cl /// C3=0 C2=0 C1=? C0=1 when +-NaN 147 movb %dl,%cl 148 andb $0x45,%cl 149 cmpb $0x01,%cl / C3=0 C2=0 C1=? C0=1 when +-NaN [all …]
|
| /illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
| H A D | clnt_subr.c | 38 CLIENT *cl; in mountprog_client_create() local 46 cl = clnt_create_vers(host, MOUNTPROG, &versnum, in mountprog_client_create() 48 if (cl == NULL) { in mountprog_client_create() 50 cl = clnt_create_vers(host, MOUNTPROG, &versnum, in mountprog_client_create() 52 if (cl == NULL) { in mountprog_client_create() 58 return (cl); in mountprog_client_create()
|
| /illumos-gate/usr/src/lib/libm/amd64/src/ |
| H A D | powl.S | 102 movb %dl,%cl 103 andb $0x45,%cl 104 cmpb $0x40,%cl / C3=1 C2=0 C1=? C0=0 when +-0 127 movb %dl,%cl 128 andb $0x45,%cl 129 cmpb $0x01,%cl / C3=0 C2=0 C1=? C0=1 when +-NaN 136 movb %dh,%cl 137 andb $0x45,%cl 138 cmpb $0x01,%cl / C3=0 C2=0 C1=? C0=1 when +-NaN 157 movb %dl,%cl [all …]
|
| /illumos-gate/usr/src/cmd/fs.d/nfs/umount/ |
| H A D | umount.c | 240 CLIENT *cl; in inform_server() local 297 cl = clnt_create_timed(list[i].host, MOUNTPROG, vers, in inform_server() 303 if (cl == NULL) { in inform_server() 317 if (__clnt_bindresvport(cl) < 0) { in inform_server() 321 clnt_destroy(cl); in inform_server() 324 if ((cl->cl_auth = authsys_create_default()) == NULL) { in inform_server() 328 clnt_destroy(cl); in inform_server() 333 clnt_control(cl, CLSET_RETRY_TIMEOUT, (char *)&timeout); in inform_server() 335 rpc_stat = clnt_call(cl, MOUNTPROC_UMNT, xdr_dirpath, in inform_server() 338 AUTH_DESTROY(cl->cl_auth); in inform_server() [all …]
|
| /illumos-gate/usr/src/cmd/fs.d/autofs/ |
| H A D | autod_nfs.c | 177 void destroy_auth_client_handle(CLIENT *cl); 636 CLIENT *cl; in nfsmount() local 1243 while ((cl = clnt_create_vers(host, MOUNTPROG, &outvers, in nfsmount() 1272 if (cl == NULL) { in nfsmount() 1300 add_alloc("CLNT_HANDLE", cl, 0, __FILE__, __LINE__); in nfsmount() 1301 add_alloc("AUTH_HANDLE", cl->cl_auth, 0, in nfsmount() 1305 if (__clnt_bindresvport(cl) < 0) { in nfsmount() 1314 destroy_auth_client_handle(cl); in nfsmount() 1321 destroy_auth_client_handle(cl); in nfsmount() 1328 drop_alloc("AUTH_HANDLE", cl->cl_auth, in nfsmount() [all …]
|