/freebsd/contrib/nvi/cl/ |
H A D | cl_screen.c | 47 CL_PRIVATE *clp; in cl_screen() local 52 clp = CLP(sp); in cl_screen() 106 F_SET(clp, CL_IN_EX | CL_SCR_EX_INIT); in cl_screen() 112 if (F_ISSET(sp, SC_EX) && clp->cup != NULL) in cl_screen() 113 tputs(tgoto(clp->cup, in cl_screen() 118 F_CLR(clp, CL_IN_EX); in cl_screen() 119 F_SET(clp, CL_SCR_VI_INIT); in cl_screen() 133 CL_PRIVATE *clp; in cl_quit() local 137 clp = GCLP(gp); in cl_quit() 143 if (!F_ISSET(clp, CL_SCR_EX_INIT | CL_SCR_VI_INIT)) in cl_quit() [all …]
|
H A D | cl_funcs.c | 37 CL_PRIVATE *clp; in addstr4() local 42 clp = CLP(sp); in addstr4() 104 CL_PRIVATE *clp; in cl_attr() local 107 clp = CLP(sp); in cl_attr() 142 if (clp->ti_te != TI_SENT) { in cl_attr() 143 clp->ti_te = TI_SENT; in cl_attr() 144 if (clp->smcup == NULL) in cl_attr() 145 (void)cl_getcap(sp, "smcup", &clp->smcup); in cl_attr() 146 if (clp->smcup != NULL) in cl_attr() 147 (void)tputs(clp->smcup, 1, cl_putchar); in cl_attr() [all …]
|
H A D | cl_main.c | 51 CL_PRIVATE *clp; in main() local 82 clp = cl_init(gp); in main() 127 if (clp->tgw != TGW_UNKNOWN) in main() 128 (void)cl_omesg(NULL, clp, clp->tgw == TGW_SET); in main() 134 if (F_ISSET(clp, CL_RENAME)) in main() 135 cl_setname(gp, clp->oname); in main() 138 if (clp->killersig) { in main() 139 (void)signal(clp->killersig, SIG_DFL); in main() 140 (void)kill(getpid(), clp->killersig); in main() 146 free(clp->oname); in main() [all …]
|
H A D | cl_read.c | 49 CL_PRIVATE *clp; in cl_event() local 60 clp = CLP(sp); in cl_event() 61 retest: if (LF_ISSET(EC_INTERRUPT) || F_ISSET(clp, CL_SIGINT)) { in cl_event() 62 if (F_ISSET(clp, CL_SIGINT)) { in cl_event() 63 F_CLR(clp, CL_SIGINT); in cl_event() 69 if (F_ISSET(clp, CL_SIGHUP | CL_SIGTERM | CL_SIGWINCH)) { in cl_event() 70 if (F_ISSET(clp, CL_SIGHUP)) { in cl_event() 74 if (F_ISSET(clp, CL_SIGTERM)) { in cl_event() 78 if (F_ISSET(clp, CL_SIGWINCH)) { in cl_event() 79 F_CLR(clp, CL_SIGWINCH); in cl_event() [all …]
|
H A D | cl_term.c | 263 CL_PRIVATE *clp; in cl_optchange() local 265 clp = CLP(sp); in cl_optchange() 280 (void)cl_omesg(sp, clp, *valp); in cl_optchange() 284 F_SET(clp, CL_RENAME_OK); in cl_optchange() 293 F_CLR(clp, CL_RENAME_OK); in cl_optchange() 309 cl_omesg(SCR *sp, CL_PRIVATE *clp, int on) in cl_omesg() argument 327 if (clp->tgw == TGW_UNKNOWN) in cl_omesg() 328 clp->tgw = sb.st_mode & S_IWGRP ? TGW_SET : TGW_UNSET; in cl_omesg()
|
/freebsd/sys/contrib/openzfs/lib/libzfs/ |
H A D | libzfs_changelist.c | 96 changelist_prefix(prop_changelist_t *clp) in changelist_prefix() argument 104 if (clp->cl_prop != ZFS_PROP_MOUNTPOINT && in changelist_prefix() 105 clp->cl_prop != ZFS_PROP_SHARESMB) in changelist_prefix() 114 if (clp->cl_gflags & CL_GATHER_DONT_UNMOUNT) in changelist_prefix() 117 if ((walk = uu_avl_walk_start(clp->cl_tree, UU_WALK_ROBUST)) == NULL) in changelist_prefix() 139 switch (clp->cl_prop) { in changelist_prefix() 142 clp->cl_mflags) != 0) { in changelist_prefix() 164 (void) changelist_postfix(clp); in changelist_prefix() 178 changelist_postfix(prop_changelist_t *clp) in changelist_postfix() argument 191 if (clp->cl_gflags & CL_GATHER_DONT_UNMOUNT) in changelist_postfix() [all …]
|
H A D | libzfs_mount.c | 667 prop_changelist_t *clp; in zfs_unmountall() local 670 clp = changelist_gather(zhp, ZFS_PROP_MOUNTPOINT, in zfs_unmountall() 672 if (clp == NULL) in zfs_unmountall() 675 ret = changelist_prefix(clp); in zfs_unmountall() 676 changelist_free(clp); in zfs_unmountall() 836 prop_changelist_t *clp; in zfs_unshareall() local 842 clp = changelist_gather(zhp, ZFS_PROP_SHARENFS, 0, 0); in zfs_unshareall() 843 if (clp == NULL) in zfs_unshareall() 846 ret = changelist_unshare(clp, proto); in zfs_unshareall() 847 changelist_free(clp); in zfs_unshareall()
|
H A D | libzfs_sendrecv.c | 3001 prop_changelist_t *clp = NULL; in recv_rename() local 3009 clp = changelist_gather(zhp, ZFS_PROP_NAME, 0, in recv_rename() 3011 if (clp == NULL) { in recv_rename() 3015 err = changelist_prefix(clp); in recv_rename() 3027 changelist_rename(clp, name, tryname); in recv_rename() 3044 changelist_rename(clp, name, newname); in recv_rename() 3057 (void) changelist_postfix(clp); in recv_rename() 3060 if (clp != NULL) in recv_rename() 3061 changelist_free(clp); in recv_rename() 3123 prop_changelist_t *clp; in recv_destroy() local [all …]
|
/freebsd/sys/fs/nfsclient/ |
H A D | nfs_clstate.c | 205 #define NETFAMILY(clp) \ argument 206 (((clp)->nfsc_flags & NFSCLFLAGS_AFINET6) ? AF_INET6 : AF_INET) 217 struct nfsclclient *clp; in nfscl_open() local 243 ret = nfscl_getcl(vp->v_mount, cred, p, false, firstref, &clp); in nfscl_open() 260 LIST_FOREACH(dp, NFSCLDELEGHASH(clp, nfhp, fhlen), nfsdl_hash) { in nfscl_open() 280 ohp = &clp->nfsc_owner; in nfscl_open() 290 nfscl_newopen(clp, dp, &owp, &nowp, &op, &nop, own, nfhp, fhlen, in nfscl_open() 347 nfscl_newopen(struct nfsclclient *clp, struct nfscldeleg *dp, in nfscl_newopen() argument 366 nowp->nfsow_clp = clp; in nfscl_newopen() 375 LIST_INSERT_HEAD(&clp->nfsc_owner, nowp, nfsow_list); in nfscl_newopen() [all …]
|
H A D | nfs_clvfsops.c | 1516 struct nfsclclient *clp; in mountnfs() local 1528 clp = NULL; in mountnfs() 1687 error = nfscl_getcl(mp, cred, td, tryminvers, true, &clp); in mountnfs() 1788 clp->nfsc_renew = NFSCL_RENEW(lease); in mountnfs() 1789 clp->nfsc_expire = NFSD_MONOSEC + clp->nfsc_renew; in mountnfs() 1790 clp->nfsc_clientidrev++; in mountnfs() 1791 if (clp->nfsc_clientidrev == 0) in mountnfs() 1792 clp->nfsc_clientidrev++; in mountnfs() 1798 nfscl_start_renewthread(clp); in mountnfs() 1799 nfscl_clientrelease(clp); in mountnfs() [all …]
|
H A D | nfs_clport.c | 775 struct nfsclclient *clp; in start_nfscl() local 778 clp = (struct nfsclclient *)arg; in start_nfscl() 779 td = TAILQ_FIRST(&clp->nfsc_renewthread->p_threads); in start_nfscl() 780 nfscl_renewthread(clp, td); in start_nfscl() 785 nfscl_start_renewthread(struct nfsclclient *clp) in nfscl_start_renewthread() argument 788 kproc_create(start_nfscl, (void *)clp, &clp->nfsc_renewthread, 0, 0, in nfscl_start_renewthread()
|
/freebsd/lib/libc/rpc/ |
H A D | clnt_raw.c | 87 struct clntraw_private *clp; in clnt_raw_create() local 93 if ((clp = clntraw_private) == NULL) { in clnt_raw_create() 94 clp = (struct clntraw_private *)calloc(1, sizeof (*clp)); in clnt_raw_create() 95 if (clp == NULL) { in clnt_raw_create() 102 clp->_raw_buf = __rpc_rawcombuf; in clnt_raw_create() 103 clntraw_private = clp; in clnt_raw_create() 105 xdrs = &clp->xdr_stream; in clnt_raw_create() 106 client = &clp->client_object; in clnt_raw_create() 116 xdrmem_create(xdrs, clp->u.mashl_callmsg, MCALL_MSG_SIZE, XDR_ENCODE); in clnt_raw_create() 119 clp->mcnt = XDR_GETPOS(xdrs); in clnt_raw_create() [all …]
|
/freebsd/sys/fs/nfsserver/ |
H A D | nfs_nfsdstate.c | 143 static void nfsrv_dumpaclient(struct nfsclient *clp, 156 static int nfsrv_getstate(struct nfsclient *clp, nfsv4stateid_t *stateidp, 171 static int nfsrv_checkgrace(struct nfsrv_descript *nd, struct nfsclient *clp, 173 static int nfsrv_docallback(struct nfsclient *clp, int procnum, 176 static int nfsrv_cbcallargs(struct nfsrv_descript *nd, struct nfsclient *clp, 180 static u_int32_t nfsrv_nextstateindex(struct nfsclient *clp); 181 static void nfsrv_markstable(struct nfsclient *clp); 182 static void nfsrv_markreclaim(struct nfsclient *clp); 183 static int nfsrv_checkstable(struct nfsclient *clp); 184 static int nfsrv_clientconflict(struct nfsclient *clp, int *haslockp, struct [all …]
|
H A D | nfs_nfsdserv.c | 3977 struct nfsclient *clp = NULL; in nfsrvd_setclientid() local 4008 clp = malloc(sizeof(struct nfsclient) + i, M_NFSDCLIENT, M_WAITOK | in nfsrvd_setclientid() 4010 clp->lc_stateid = malloc(sizeof(struct nfsstatehead) * in nfsrvd_setclientid() 4012 NFSINITSOCKMUTEX(&clp->lc_req.nr_mtx); in nfsrvd_setclientid() 4014 clp->lc_req.nr_nam = malloc(sizeof(struct sockaddr_in6), M_SONAME, in nfsrvd_setclientid() 4016 clp->lc_req.nr_cred = NULL; in nfsrvd_setclientid() 4017 NFSBCOPY(verf, clp->lc_verf, NFSX_VERF); in nfsrvd_setclientid() 4018 clp->lc_idlen = idlen; in nfsrvd_setclientid() 4019 error = nfsrv_mtostr(nd, clp->lc_id, idlen); in nfsrvd_setclientid() 4023 clp->lc_flags = LCL_GSS; in nfsrvd_setclientid() [all …]
|
H A D | nfs_nfsdsocket.c | 714 struct nfsclient *clp, *nclp; in nfsrvd_compound() local 793 LIST_FOREACH_SAFE(clp, &NFSD_VNET(nfsclienthash)[i], in nfsrvd_compound() 795 if (clp->lc_flags & LCL_EXPIREIT) { in nfsrvd_compound() 796 if (!LIST_EMPTY(&clp->lc_open) || in nfsrvd_compound() 797 !LIST_EMPTY(&clp->lc_deleg)) in nfsrvd_compound() 798 nfsrv_writestable(clp->lc_id, in nfsrvd_compound() 799 clp->lc_idlen, NFSNST_REVOKE, p); in nfsrvd_compound() 800 nfsrv_cleanclient(clp, p, false, NULL); in nfsrvd_compound() 801 nfsrv_freedeleglist(&clp->lc_deleg); in nfsrvd_compound() 802 nfsrv_freedeleglist(&clp->lc_olddeleg); in nfsrvd_compound() [all …]
|
/freebsd/usr.sbin/rpc.umntall/ |
H A D | rpc.umntall.c | 172 CLIENT *clp; in do_umntall() local 176 clp = clnt_create_timed(hostname, MOUNTPROG, MOUNTVERS, "udp", in do_umntall() 178 if (clp == NULL) { in do_umntall() 182 clp->cl_auth = authunix_create_default(); in do_umntall() 183 clnt_stat = clnt_call(clp, MOUNTPROC_UMNTALL, in do_umntall() 187 warnx("%s: %s", hostname, clnt_sperror(clp, "MOUNTPROC_UMNTALL")); in do_umntall() 188 auth_destroy(clp->cl_auth); in do_umntall() 189 clnt_destroy(clp); in do_umntall() 200 CLIENT *clp; in do_umount() local 204 clp = clnt_create_timed(hostname, MOUNTPROG, MOUNTVERS, "udp", in do_umount() [all …]
|
/freebsd/usr.bin/gprof/ |
H A D | arcs.c | 449 cltype *clp; in cycleanalyze() local 496 for ( clp = cyclehead ; clp ; ) { in cycleanalyze() 497 endlist = &clp -> list[ clp -> size ]; in cycleanalyze() 498 for ( arcpp = clp -> list ; arcpp < endlist ; arcpp++ ) in cycleanalyze() 501 clp = clp -> next; in cycleanalyze() 502 free( clp ); in cycleanalyze() 557 cltype *clp; in addcycle() local 569 for ( clp = cyclehead ; clp ; clp = clp -> next ) { in addcycle() 570 if ( clp -> size != size ) in addcycle() 573 endlist = &clp -> list[ size ]; in addcycle() [all …]
|
/freebsd/sys/cam/ |
H A D | cam_iosched.c | 603 static void cam_iosched_cl_maybe_steer(struct control_loop *clp); 661 cam_iosched_cl_init(struct control_loop *clp, struct cam_iosched_softc *isc) in cam_iosched_cl_init() argument 664 clp->next_steer = sbinuptime(); in cam_iosched_cl_init() 665 clp->softc = isc; in cam_iosched_cl_init() 666 clp->steer_interval = SBT_1S * 5; /* Let's start out steering every 5s */ in cam_iosched_cl_init() 667 clp->lolat = 5 * SBT_1MS; in cam_iosched_cl_init() 668 clp->hilat = 15 * SBT_1MS; in cam_iosched_cl_init() 669 clp->alpha = 20; /* Alpha == gain. 20 = .2 */ in cam_iosched_cl_init() 670 clp->type = set_max; in cam_iosched_cl_init() 674 cam_iosched_cl_maybe_steer(struct control_loop *clp) in cam_iosched_cl_maybe_steer() argument [all …]
|
/freebsd/sbin/mount_nfs/ |
H A D | mount_nfs.c | 761 CLIENT *clp; in nfs_tryproto() local 843 clp = clnt_tli_create(RPC_ANYFD, nconf, &nfs_nb, NFS_PROGRAM, nfsvers, in nfs_tryproto() 845 if (clp == NULL) { in nfs_tryproto() 858 if (!clnt_control(clp, CLSET_CONNECT, (char *)&doconnect)) { in nfs_tryproto() 859 clnt_destroy(clp); in nfs_tryproto() 869 clntstat = clnt_call(clp, NFSPROC_NULL, (xdrproc_t)xdr_void, NULL, in nfs_tryproto() 873 clnt_destroy(clp); in nfs_tryproto() 877 clnt_geterr(clp, &rpcerr); in nfs_tryproto() 879 hostp, spec, clnt_sperror(clp, "NFSPROC_NULL")); in nfs_tryproto() 880 clnt_destroy(clp); in nfs_tryproto() [all …]
|
/freebsd/sbin/umount/ |
H A D | umount.c | 341 CLIENT *clp; in umountfs() local 440 clp = clnt_create(hostp, MOUNTPROG, MOUNTVERS3, proto_ptr); in umountfs() 441 if (clp == NULL) { in umountfs() 447 clp->cl_auth = authsys_create_default(); in umountfs() 450 clnt_stat = clnt_call(clp, MOUNTPROC_UMNT, (xdrproc_t)xdr_dir, in umountfs() 454 clnt_sperror(clp, "RPCMNT_UMOUNT")); in umountfs() 468 auth_destroy(clp->cl_auth); in umountfs() 469 clnt_destroy(clp); in umountfs()
|
/freebsd/sys/contrib/device-tree/src/arm/nspire/ |
H A D | nspire-clp.dts | 85 compatible = "ti,nspire-clp";
|
/freebsd/contrib/tcpdump/ |
H A D | print-atm.c | 430 uint8_t cell_type, func_type, payload, clp; in oam_print() local 446 clp = cell_header&0x1; in oam_print() 452 clp, length); in oam_print()
|
/freebsd/sys/fs/nfs/ |
H A D | nfs_commonkrpc.c | 669 struct nfsclient *clp, struct nfssockreq *nrp, vnode_t vp, in newnfs_request() argument 752 if (clp != NULL) { in newnfs_request() 754 if ((clp->lc_flags & LCL_GSS) && nfsrv_gsscallbackson) { in newnfs_request() 757 if (clp->lc_flags & LCL_GSSINTEGRITY) in newnfs_request() 759 else if (clp->lc_flags & LCL_GSSPRIVACY) in newnfs_request() 924 if (clp == NULL) { in newnfs_request() 970 if (clp != NULL && sep != NULL) in newnfs_request() 1128 (clp != NULL && i == NFSV4OP_CBSEQUENCE && j != 0)) { in newnfs_request() 1139 (clp != NULL && i == NFSV4OP_CBSEQUENCE && in newnfs_request() 1315 (nd->nd_flag & ND_NFSV4) && (clp != NULL || in newnfs_request()
|
H A D | nfsrvstate.h | 60 #define NFSSTATEHASH(clp, id) \ argument 61 (&((clp)->lc_stateid[(id).other[2] % nfsrv_statehashsize]))
|
/freebsd/sys/powerpc/mpc85xx/ |
H A D | fsl_sata.c | 991 struct fsl_sata_cmd_list *clp; in fsl_sata_execute_transaction() local 1010 clp = FSL_SATA_CLP(ch, slot); in fsl_sata_execute_transaction() 1011 clp->fis_length = htole16(fis_size); in fsl_sata_execute_transaction() 1012 clp->prd_length = htole16(slot->dma.nsegs); in fsl_sata_execute_transaction() 1028 clp->cmd_flags = htole32(cmd_flags | in fsl_sata_execute_transaction() 1031 clp->ttl = htole32(slot->ttl); in fsl_sata_execute_transaction() 1032 clp->cda = htole32(FSL_SATA_CTP_BUS(ch, slot)); in fsl_sata_execute_transaction() 1178 struct fsl_sata_cmd_list *clp; in fsl_sata_end_transaction() local 1184 clp = FSL_SATA_CLP(ch, slot); in fsl_sata_end_transaction() 1219 ccb->ataio.dxfer_len - le32toh(clp->ttl); in fsl_sata_end_transaction() [all …]
|