/freebsd/sys/dev/virtio/pci/ |
H A D | virtio_pci.c | 104 vtpci_read_isr(struct vtpci_common *cn) in vtpci_read_isr() argument 106 return (VIRTIO_PCI_READ_ISR(cn->vtpci_dev)); in vtpci_read_isr() 110 vtpci_get_vq_size(struct vtpci_common *cn, int idx) in vtpci_get_vq_size() argument 112 return (VIRTIO_PCI_GET_VQ_SIZE(cn->vtpci_dev, idx)); in vtpci_get_vq_size() 116 vtpci_get_vq_notify_off(struct vtpci_common *cn, int idx) in vtpci_get_vq_notify_off() argument 118 return (VIRTIO_PCI_GET_VQ_NOTIFY_OFF(cn->vtpci_dev, idx)); in vtpci_get_vq_notify_off() 122 vtpci_set_vq(struct vtpci_common *cn, struct virtqueue *vq) in vtpci_set_vq() argument 124 VIRTIO_PCI_SET_VQ(cn->vtpci_dev, vq); in vtpci_set_vq() 128 vtpci_disable_vq(struct vtpci_common *cn, int idx) in vtpci_disable_vq() argument 130 VIRTIO_PCI_DISABLE_VQ(cn->vtpci_dev, idx); in vtpci_disable_vq() [all …]
|
H A D | virtio_pci.h | 83 vtpci_child_device(struct vtpci_common *cn) in vtpci_child_device() argument 85 return (cn->vtpci_child_dev); in vtpci_child_device() 89 vtpci_is_msix_available(struct vtpci_common *cn) in vtpci_is_msix_available() argument 91 return ((cn->vtpci_flags & VTPCI_FLAG_NO_MSIX) == 0); in vtpci_is_msix_available() 95 vtpci_is_msix_enabled(struct vtpci_common *cn) in vtpci_is_msix_enabled() argument 97 return ((cn->vtpci_flags & VTPCI_FLAG_MSIX) != 0); in vtpci_is_msix_enabled() 101 vtpci_is_modern(struct vtpci_common *cn) in vtpci_is_modern() argument 103 return ((cn->vtpci_flags & VTPCI_FLAG_MODERN) != 0); in vtpci_is_modern() 107 vtpci_virtqueue_count(struct vtpci_common *cn) in vtpci_virtqueue_count() argument 109 return (cn->vtpci_nvqs); in vtpci_virtqueue_count() [all …]
|
/freebsd/sys/contrib/openzfs/lib/libzfs/ |
H A D | libzfs_changelist.c | 98 prop_changenode_t *cn; in changelist_prefix() local 120 while ((cn = uu_avl_walk_next(walk)) != NULL) { in changelist_prefix() 124 cn->cn_needpost = B_FALSE; in changelist_prefix() 132 if (getzoneid() == GLOBAL_ZONEID && cn->cn_zoned) in changelist_prefix() 135 if (!ZFS_IS_VOLUME(cn->cn_handle)) { in changelist_prefix() 141 if (zfs_unmount(cn->cn_handle, NULL, in changelist_prefix() 144 cn->cn_needpost = B_FALSE; in changelist_prefix() 148 (void) zfs_unshare(cn->cn_handle, NULL, in changelist_prefix() 180 prop_changenode_t *cn; in changelist_postfix() local 201 if ((cn = uu_avl_last(clp->cl_tree)) == NULL) in changelist_postfix() [all …]
|
H A D | libzfs_config.c | 80 config_node_t *cn; in namespace_clear() local 83 while ((cn = uu_avl_teardown(hdl->libzfs_ns_avl, in namespace_clear() 85 nvlist_free(cn->cn_config); in namespace_clear() 86 free(cn->cn_name); in namespace_clear() 87 free(cn); in namespace_clear() 107 config_node_t *cn; in namespace_reload() local 169 while ((cn = uu_avl_teardown(hdl->libzfs_ns_avl, &cookie)) != NULL) { in namespace_reload() 170 nvlist_free(cn->cn_config); in namespace_reload() 171 free(cn->cn_name); in namespace_reload() 172 free(cn); in namespace_reload() [all …]
|
/freebsd/usr.sbin/makefs/msdos/ |
H A D | msdosfs_fat.c | 86 usemap_alloc(struct msdosfsmount *pmp, u_long cn); 88 usemap_free(struct msdosfsmount *pmp, u_long cn); 136 u_long cn; in pcbmap() local 148 cn = dep->de_StartCluster; in pcbmap() 155 if (cn == MSDOSFSROOT) { in pcbmap() 189 fc_lookup(dep, findcn, &i, &cn); in pcbmap() 198 if ((cn | ~pmp->pm_fatmask) >= CLUST_RSRVD) in pcbmap() 200 byteoffset = FATOFS(pmp, cn); in pcbmap() 213 prevcn = cn; in pcbmap() 220 cn = getulong(bp->b_data + bo); in pcbmap() [all …]
|
H A D | msdosfs_vnops.c | 359 struct componentname cn; in msdosfs_mkfile() local 365 cn.cn_nameptr = node->name; in msdosfs_mkfile() 366 cn.cn_namelen = strlen(node->name); in msdosfs_mkfile() 389 if ((error = uniqdosname(pdep, &cn, ndirent.de_Name)) != 0) in msdosfs_mkfile() 400 if ((error = msdosfs_findslot(pdep, &cn)) != 0) in msdosfs_mkfile() 402 if ((error = createde(&ndirent, pdep, &dep, &cn)) != 0) in msdosfs_mkfile() 441 u_long cn = 0; in msdosfs_wfile() local 484 if ((error = pcbmap(dep, cn++, &bn, NULL, &blsize)) != 0) { in msdosfs_wfile() 491 __func__, cn, (unsigned long long)bn, blsize)); in msdosfs_wfile() 541 struct componentname cn; in msdosfs_mkdire() local [all …]
|
/freebsd/sys/kern/ |
H A D | kern_cons.c | 156 struct consdev *best_cn, *cn, **list; in cninit() local 183 cn = *list; in cninit() 184 cnremove(cn); in cninit() 186 if (cn->cn_ops == NULL) in cninit() 188 cn->cn_ops->cn_probe(cn); in cninit() 189 if (cn->cn_pri == CN_DEAD) in cninit() 191 if (best_cn == NULL || cn->cn_pri > best_cn->cn_pri) in cninit() 192 best_cn = cn; in cninit() 197 cn->cn_ops->cn_init(cn); in cninit() 198 cnadd(cn); in cninit() [all …]
|
/freebsd/sys/fs/msdosfs/ |
H A D | msdosfs_fat.c | 81 usemap_alloc(struct msdosfsmount *pmp, u_long cn); 82 static int usemap_free(struct msdosfsmount *pmp, u_long cn); 136 u_long cn; in pcbmap() local 150 cn = dep->de_StartCluster; in pcbmap() 157 if (cn == MSDOSFSROOT) { in pcbmap() 191 fc_lookup(dep, findcn, &i, &cn); in pcbmap() 200 if ((cn | ~pmp->pm_fatmask) >= CLUST_RSRVD) in pcbmap() 202 byteoffset = FATOFS(pmp, cn); in pcbmap() 213 prevcn = cn; in pcbmap() 220 cn = getulong(bp->b_data + bo); in pcbmap() [all …]
|
H A D | msdosfsmount.h | 135 #define FATOFS(pmp, cn) ((cn) * (pmp)->pm_fatmult / (pmp)->pm_fatdiv) argument 172 #define de_cn2bn(pmp, cn) \ argument 173 ((cn) << ((pmp)->pm_cnshift - (pmp)->pm_bnshift)) 196 #define de_cn2off(pmp, cn) \ argument 197 ((cn) << (pmp)->pm_cnshift) 207 #define cntobn(pmp, cn) \ argument 208 (de_cn2bn((pmp), (cn)-CLUST_FIRST) + (pmp)->pm_firstcluster)
|
H A D | fat.h | 82 #define MSDOSFSEOF(pmp, cn) ((((cn) | ~(pmp)->pm_fatmask) & CLUST_EOFS) == CLUST_EOFS) argument 99 void clusterfree(struct msdosfsmount *pmp, u_long cn);
|
/freebsd/crypto/openssl/test/certs/ |
H A D | mkcert.sh | 100 local cn=$1; shift 113 csr=$(req "$key" "CN = $cn") || return 1 133 local cn=$1; shift 154 csr=$(req "$key" "CN = $cn") || return 1 161 local cn=$1; shift 175 csr=$(req "$key" "CN = $cn") || return 1 252 local cn=$1; shift 263 "subjectAltName = @alts" "DNS=${cn}") 264 csr=$(req "$key" "CN = $cn") || return 1 284 local cn=$1; shift [all …]
|
/freebsd/sys/dev/nvmf/controller/ |
H A D | ctl_frontend_nvmf.c | 964 nvmft_handoff(struct ctl_nvmf *cn) in nvmft_handoff() argument 976 error = nvmf_unpack_ioc_nvlist(&cn->data.handoff, &nvl); in nvmft_handoff() 978 cn->status = CTL_NVMF_ERROR; in nvmft_handoff() 979 snprintf(cn->error_str, sizeof(cn->error_str), in nvmft_handoff() 988 cn->status = CTL_NVMF_ERROR; in nvmft_handoff() 989 snprintf(cn->error_str, sizeof(cn->error_str), in nvmft_handoff() 996 cn->status = CTL_NVMF_ERROR; in nvmft_handoff() 997 snprintf(cn->error_str, sizeof(cn->error_str), in nvmft_handoff() 1004 cn->status = CTL_NVMF_ERROR; in nvmft_handoff() 1005 snprintf(cn->error_str, sizeof(cn->error_str), in nvmft_handoff() [all …]
|
/freebsd/contrib/netbsd-tests/rump/rumpvfs/ |
H A D | t_p2kifs.c | 57 struct componentname *cn; in ATF_TC_BODY() local 74 cn = rump_pub_makecn(RUMP_NAMEI_LOOKUP, 0, pathstr, strlen(pathstr), in ATF_TC_BODY() 76 RZ(RUMP_VOP_LOOKUP(rumpns_rootvnode, &vp, cn)); in ATF_TC_BODY() 77 rump_pub_freecn(cn, RUMPCN_FREECRED); in ATF_TC_BODY() 80 cn = rump_pub_makecn(RUMP_NAMEI_LOOKUP, 0, pathstr, strlen(pathstr), in ATF_TC_BODY() 83 RZ(RUMP_VOP_LOOKUP(rumpns_rootvnode, &vp, cn)); in ATF_TC_BODY() 84 rump_pub_freecn(cn, RUMPCN_FREECRED); in ATF_TC_BODY()
|
/freebsd/contrib/unbound/iterator/ |
H A D | iter_scrub.c | 257 struct rrset_parse* cn = (struct rrset_parse*)regional_alloc(region, in synth_cname_rrset() local 259 if(!cn) in synth_cname_rrset() 261 memset(cn, 0, sizeof(*cn)); in synth_cname_rrset() 262 cn->rr_first = (struct rr_parse*)regional_alloc(region, in synth_cname_rrset() 264 if(!cn->rr_first) in synth_cname_rrset() 266 cn->rr_last = cn->rr_first; in synth_cname_rrset() 268 cn->dname = (uint8_t*)regional_alloc(region, *snamelen); in synth_cname_rrset() 269 if(!cn->dname) in synth_cname_rrset() 271 dname_pkt_copy(pkt, cn->dname, *sname); in synth_cname_rrset() 272 cn->dname_len = *snamelen; in synth_cname_rrset() [all …]
|
/freebsd/contrib/sendmail/contrib/ |
H A D | smcontrol.pl | 25 my $cn = undef; 28 open(CF, "</etc/mail/sendmail.cf") or return $cn; 34 $cn = $1; 46 if (not defined $cn) 50 if ($cn !~ /^\//o) 54 $cn = $qd . "/" . $cn; 56 return $cn;
|
/freebsd/contrib/bmake/ |
H A D | make.c | 952 MakeBuildChild(GNode *cn, GNodeListNode *toBeMadeNext) in MakeBuildChild() argument 957 cn->name, cn->cohort_num); in MakeBuildChild() 958 GNode_FprintDetails(opts.debug_file, "", cn, "\n"); in MakeBuildChild() 960 if (GNode_IsReady(cn)) in MakeBuildChild() 964 if (IsWaitingForOrder(cn)) { in MakeBuildChild() 968 cn->made = DEFERRED; in MakeBuildChild() 973 cn->name, cn->cohort_num); in MakeBuildChild() 975 cn->made = REQUESTED; in MakeBuildChild() 976 if (opts.randomizeTargets && !(cn->type & OP_WAIT)) in MakeBuildChild() 977 ScheduleRandomly(cn); in MakeBuildChild() [all …]
|
/freebsd/lib/libsecureboot/ |
H A D | vets.c | 218 br_name_element cn; in x509_cn_get() local 232 cn.oid = cn_oid; in x509_cn_get() 233 cn.buf = buf; in x509_cn_get() 234 cn.len = len; in x509_cn_get() 235 cn.buf[0] = '\0'; in x509_cn_get() 238 br_x509_minimal_set_name_elements(&mc, &cn, 1); in x509_cn_get() 248 if (cn.status <= 0) in x509_cn_get() 948 br_name_element cn; in verify_sig() local 969 cn.oid = cn_oid; in verify_sig() 970 cn.buf = cn_buf; in verify_sig() [all …]
|
/freebsd/usr.sbin/makefs/ |
H A D | cd9660.c | 940 cd9660node *cn; in cd9660_sorted_child_insert() local 952 TAILQ_FOREACH(cn, head, cn_next_child) { in cd9660_sorted_child_insert() 957 if (cn_new == cn) in cd9660_sorted_child_insert() 961 cn->isoDirRecord->name); in cd9660_sorted_child_insert() 965 cn->node->name); in cd9660_sorted_child_insert() 970 if (cn == NULL) in cd9660_sorted_child_insert() 973 TAILQ_INSERT_BEFORE(cn, cn_new, cn_next_child); in cd9660_sorted_child_insert() 1143 cd9660node *cn; in cd9660_copy_filenames() local 1153 TAILQ_FOREACH(cn, &node->cn_children, cn_next_child) { in cd9660_copy_filenames() 1154 cd9660_copy_filenames(diskStructure, cn); in cd9660_copy_filenames() [all …]
|
/freebsd/sys/kgssapi/krb5/ |
H A D | kcrypto_aes.c | 181 uint8_t cn_1[16], cn[16]; in aes_encrypt() member 214 m_copyback(inout, off, blocklen, last2.cn); in aes_encrypt() 238 last2.cn[i] = 0; in aes_encrypt() 239 aes_encrypt_1(ks, CRYPTO_BUF_CONTIG, last2.cn, 0, blocklen, in aes_encrypt() 241 m_copyback(inout, off, blocklen, last2.cn); in aes_encrypt() 252 uint8_t cn_1[16], cn[16]; in aes_decrypt() member 281 m_copyback(inout, off, blocklen, last2.cn); in aes_decrypt() 303 t = last2.cn[i]; in aes_decrypt() 304 last2.cn[i] ^= last2.cn_1[i]; in aes_decrypt()
|
/freebsd/contrib/netbsd-tests/lib/libc/ttyio/ |
H A D | t_ptm.c | 77 ATF_REQUIRE_MSG(strncmp(ptm.cn, "/dev/pty", 8) == 0 in ATF_TC_BODY() 78 || strncmp(ptm.cn, "/dev/null", 9) == 0, in ATF_TC_BODY() 79 "bad master name: %s", ptm.cn); in ATF_TC_BODY() 85 if (strncmp(ptm.cn, "/dev/null", 9) != 0) { in ATF_TC_BODY() 87 REQUIRE_ERRNO(stat(ptm.cn, &sts), -1); in ATF_TC_BODY()
|
/freebsd/sys/fs/unionfs/ |
H A D | union_subr.c | 719 struct componentname *cnp, struct componentname *cn, struct thread *td, in unionfs_relookup() argument 725 cn->cn_namelen = pathlen; in unionfs_relookup() 726 cn->cn_pnbuf = path; in unionfs_relookup() 727 cn->cn_nameiop = nameiop; in unionfs_relookup() 728 cn->cn_flags = (LOCKPARENT | LOCKLEAF | ISLASTCN); in unionfs_relookup() 729 cn->cn_lkflags = LK_EXCLUSIVE; in unionfs_relookup() 730 cn->cn_cred = cnp->cn_cred; in unionfs_relookup() 731 cn->cn_nameptr = cn->cn_pnbuf; in unionfs_relookup() 735 cn->cn_flags |= (cnp->cn_flags & DOWHITEOUT); in unionfs_relookup() 739 cn->cn_flags |= NOCACHE; in unionfs_relookup() [all …]
|
/freebsd/crypto/openssl/providers/implementations/ciphers/ |
H A D | cipher_cts.c | 137 aligned_16bytes mid_iv, ct_mid, cn, pt_last; in cts128_cs1_decrypt() local 158 memcpy(cn.c, in + residue, CTS_BLOCK_SIZE); in cts128_cs1_decrypt() 192 memcpy(ctx->iv, cn.c, CTS_BLOCK_SIZE); in cts128_cs1_decrypt() 239 aligned_16bytes mid_iv, ct_mid, cn, pt_last; in cts128_cs3_decrypt() local 264 memcpy(cn.c, in, CTS_BLOCK_SIZE); in cts128_cs3_decrypt() 298 memcpy(ctx->iv, cn.c, CTS_BLOCK_SIZE); in cts128_cs3_decrypt()
|
/freebsd/crypto/openssl/crypto/chacha/asm/ |
H A D | chacha-x86.pl | 74 my ($an,$bn,$cn,$dn)=map(($_&~3)+(($_+1)&3),($ai,$bi,$ci,$di)); # next 93 ($an,$bn,$cn,$dn)=map(($_&~3)+(($_+$j++)&3),($an,$bn,$cn,$dn)); 99 ($an,$bn,$cn,$dn)=map(($_&~3)+(($_-$j++)&3),($an,$bn,$cn,$dn)); 108 &mov ($c_,&DWP(4*$cn,"esp")) if ($ai>0 && $ai<3); 382 my ($an,$bn,$cn,$dn)=map(($_&~3)+(($_+1)&3),($ai,$bi,$ci,$di)); # next 401 ($an,$bn,$cn,$dn)=map(($_&~3)+(($_+$j++)&3),($an,$bn,$cn,$dn)); 407 ($an,$bn,$cn,$dn)=map(($_&~3)+(($_-$j++)&3),($an,$bn,$cn,$dn)); 416 &movdqa($xc_,&QWP(16*$cn-128,"ebx")) if ($ai>0 && $ai<3); 796 my ($an,$bn,$cn,$dn)=map(($_&~3)+(($_+1)&3),($ai,$bi,$ci,$di)); # next 815 ($an,$bn,$cn,$dn)=map(($_&~3)+(($_+$j++)&3),($an,$bn,$cn,$dn)); [all …]
|
/freebsd/sys/dev/ciss/ |
H A D | ciss.c | 197 static void ciss_notify_hotplug(struct ciss_softc *sc, struct ciss_notify *cn); 198 static void ciss_notify_logical(struct ciss_softc *sc, struct ciss_notify *cn); 199 static void ciss_notify_physical(struct ciss_softc *sc, struct ciss_notify *cn); 3720 struct ciss_notify *cn; in ciss_notify_complete() local 3726 cn = (struct ciss_notify *)cr->cr_data; in ciss_notify_complete() 3752 if (cn->message[0] != 0) in ciss_notify_complete() 3753 ciss_printf(sc, "*** %.80s\n", cn->message); in ciss_notify_complete() 3756 cn->class, cn->subclass, cn->detail); in ciss_notify_complete() 3762 if ((cn->class == CISS_NOTIFY_NOTIFIER) && in ciss_notify_complete() 3763 (cn->subclass == CISS_NOTIFY_NOTIFIER_STATUS) && in ciss_notify_complete() [all …]
|
/freebsd/sys/fs/tarfs/ |
H A D | tarfs_vfsops.c | 279 struct componentname cn = { }; in tarfs_lookup_path() local 305 name = do_lookup ? NULL : cn.cn_nameptr; in tarfs_lookup_path() 306 namelen = do_lookup ? 0 : cn.cn_namelen; in tarfs_lookup_path() 337 cn.cn_nameptr = tnp->name; in tarfs_lookup_path() 338 cn.cn_namelen = tnp->namelen; in tarfs_lookup_path() 350 (int)cn.cn_namelen, cn.cn_nameptr); in tarfs_lookup_path() 351 error = tarfs_alloc_node(tmp, cn.cn_nameptr, in tarfs_lookup_path() 352 cn.cn_namelen, VDIR, -1, 0, tmp->mtime, 0, 0, in tarfs_lookup_path() 360 cn.cn_nameptr = name; in tarfs_lookup_path() 361 cn.cn_namelen = len; in tarfs_lookup_path() [all …]
|