| /freebsd/sys/dev/virtio/pci/ |
| H A D | virtio_pci.c | 109 vtpci_read_isr(struct vtpci_common *cn) in vtpci_read_isr() argument 111 return (VIRTIO_PCI_READ_ISR(cn->vtpci_dev)); in vtpci_read_isr() 115 vtpci_get_vq_size(struct vtpci_common *cn, int idx) in vtpci_get_vq_size() argument 117 return (VIRTIO_PCI_GET_VQ_SIZE(cn->vtpci_dev, idx)); in vtpci_get_vq_size() 121 vtpci_get_vq_notify_off(struct vtpci_common *cn, int idx) in vtpci_get_vq_notify_off() argument 123 return (VIRTIO_PCI_GET_VQ_NOTIFY_OFF(cn->vtpci_dev, idx)); in vtpci_get_vq_notify_off() 127 vtpci_set_vq(struct vtpci_common *cn, struct virtqueue *vq) in vtpci_set_vq() argument 129 VIRTIO_PCI_SET_VQ(cn->vtpci_dev, vq); in vtpci_set_vq() 133 vtpci_disable_vq(struct vtpci_common *cn, int idx) in vtpci_disable_vq() argument 135 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 | 90 prop_changenode_t *cn; in changelist_unload_keys() local 94 for (cn = avl_first(&clp->cl_tree); cn != NULL && ret == 0; in changelist_unload_keys() 95 cn = AVL_NEXT(&clp->cl_tree, cn)) { in changelist_unload_keys() 96 if (getzoneid() == GLOBAL_ZONEID && cn->cn_zoned) in changelist_unload_keys() 98 if (ZFS_IS_VOLUME(cn->cn_handle)) in changelist_unload_keys() 100 zfs_refresh_properties(cn->cn_handle); in changelist_unload_keys() 101 if (zfs_crypto_get_encryption_root(cn->cn_handle, &encroot, in changelist_unload_keys() 104 } else if (encroot && zfs_prop_get_int(cn->cn_handle, in changelist_unload_keys() 106 zfs_crypto_unload_key(cn->cn_handle) != 0) { in changelist_unload_keys() 128 prop_changenode_t *cn; in changelist_remount_subtree() local [all …]
|
| H A D | libzfs_config.c | 61 config_node_t *cn; in namespace_clear() local 64 while ((cn = avl_destroy_nodes(&hdl->libzfs_ns_avl, &cookie)) != NULL) { in namespace_clear() 65 nvlist_free(cn->cn_config); in namespace_clear() 66 free(cn->cn_name); in namespace_clear() 67 free(cn); in namespace_clear() 80 config_node_t *cn; in namespace_reload() local 130 while ((cn = avl_destroy_nodes(&hdl->libzfs_ns_avl, &cookie)) != NULL) { in namespace_reload() 131 nvlist_free(cn->cn_config); in namespace_reload() 132 free(cn->cn_name); in namespace_reload() 133 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 | 357 struct componentname cn; in msdosfs_mkfile() local 363 cn.cn_nameptr = node->name; in msdosfs_mkfile() 364 cn.cn_namelen = strlen(node->name); in msdosfs_mkfile() 387 if ((error = uniqdosname(pdep, &cn, ndirent.de_Name)) != 0) in msdosfs_mkfile() 398 if ((error = msdosfs_findslot(pdep, &cn)) != 0) in msdosfs_mkfile() 400 if ((error = createde(&ndirent, pdep, &dep, &cn)) != 0) in msdosfs_mkfile() 439 u_long cn = 0; in msdosfs_wfile() local 482 if ((error = pcbmap(dep, cn++, &bn, NULL, &blsize)) != 0) { in msdosfs_wfile() 489 __func__, cn, (unsigned long long)bn, blsize)); in msdosfs_wfile() 539 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/krb5/src/plugins/kdb/ldap/libkdb_ldap/ |
| H A D | kerberos.ldif | 42 dn: cn=schema 57 dn: cn=schema 70 dn: cn=schema 85 dn: cn=schema 97 dn: cn=schema 125 dn: cn=schema 137 dn: cn=schema 149 dn: cn=schema 161 ##### Example: cn=ACME.COM, cn=Kerberos, cn=Security 163 dn: cn=schema [all …]
|
| H A D | kerberos.openldap.ldif | 5 dn: cn=kerberos,cn=schema,cn=config 7 cn: kerberos 57 olcObjectClasses: ( 2.16.840.1.113719.1.301.6.1.1 NAME 'krbContainer' SUP top STRUCTURAL MUST cn ) 58 ….840.1.113719.1.301.6.2.1 NAME 'krbRealmContainer' SUP top STRUCTURAL MUST cn MAY ( krbMKey $ krbU… 59 olcObjectClasses: ( 2.16.840.1.113719.1.301.6.3.1 NAME 'krbService' SUP top ABSTRACT MUST cn MAY ( … 66 olcObjectClasses: ( 2.16.840.1.113719.1.301.6.14.1 NAME 'krbPwdPolicy' SUP top STRUCTURAL MUST cn M… 68 …ObjectClasses: ( 2.16.840.1.113719.1.301.6.17.1 NAME 'krbTicketPolicy' SUP top STRUCTURAL MUST 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 254 local cn=$1; shift 266 "subjectAltName = @alts" "DNS=${cn}") 267 csr=$(req "$key" "CN = $cn") || return 1 287 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/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/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/crypto/krb5/src/lib/crypto/builtin/aes/ |
| H A D | aes-gen.c | 194 unsigned char pn1[B], pn[B], cn[B], cn1[B]; in cts_enc() local 211 r = aes_encrypt(pn1, cn, &ctx); in cts_enc() 213 D(cn); in cts_enc() 217 xor (pn, pn, cn); in cts_enc() 223 memcpy(out+B, cn, len-B); in cts_enc() 232 unsigned char pn1[B], pn[B], cn[B], cn1[B]; in cts_dec() local 248 memset (cn, 0, sizeof(cn)); in cts_dec() 249 memcpy (cn, in+B, len-B); in cts_dec() 250 xor (pn, pn, cn); in cts_dec() 251 memcpy (cn+len-B, pn+len-B, 2*B-len); in cts_dec() [all …]
|
| /freebsd/crypto/krb5/src/lib/crypto/builtin/camellia/ |
| H A D | camellia-gen.c | 174 unsigned char pn1[B], pn[B], cn[B], cn1[B]; in cts_enc() local 191 r = camellia_enc_blk (pn1, cn, &ctx); in cts_enc() 193 D(cn); in cts_enc() 197 xor (pn, pn, cn); in cts_enc() 203 memcpy(out+B, cn, len-B); in cts_enc() 212 unsigned char pn1[B], pn[B], cn[B], cn1[B]; in cts_dec() local 228 memset (cn, 0, sizeof(cn)); in cts_dec() 229 memcpy (cn, in+B, len-B); in cts_dec() 230 xor (pn, pn, cn); in cts_dec() 231 memcpy (cn+len-B, pn+len-B, 2*B-len); in cts_dec() [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 | 934 cd9660node *cn; 946 TAILQ_FOREACH(cn, head, cn_next_child) { in cd9660_sorted_child_insert() 951 if (cn_new == cn) in cd9660_sorted_child_insert() 955 cn->isoDirRecord->name); in cd9660_sorted_child_insert() 959 cn->node->name); in cd9660_sorted_child_insert() 964 if (cn == NULL) in cd9660_sorted_child_insert() 967 TAILQ_INSERT_BEFORE(cn, cn_new, cn_next_child); in cd9660_sorted_child_insert() 1137 cd9660node *cn; in cd9660_rename_filename() 1147 TAILQ_FOREACH(cn, &node->cn_children, cn_next_child) { in cd9660_copy_filenames() 1148 cd9660_copy_filenames(diskStructure, cn); in cd9660_copy_filenames() 940 cd9660node *cn; cd9660_sorted_child_insert() local 1143 cd9660node *cn; cd9660_copy_filenames() local 1162 cd9660node *cn; cd9660_sorting_nodes() local 1173 cd9660node *cn, *next; cd9660_sort_nodes() local 1290 cd9660node *cn; cd9660_add_dot_records() local 1465 cd9660node *cn; cd9660_free_structure() local 1501 cd9660node *cn, *dirNode = diskStructure->rootNode; cd9660_generate_path_table() local [all...] |
| /freebsd/sys/kgssapi/krb5/ |
| H A D | kcrypto_aes.c | 186 uint8_t cn_1[16], cn[16]; in aes_encrypt() member 219 m_copyback(inout, off, blocklen, last2.cn); in aes_encrypt() 243 last2.cn[i] = 0; in aes_encrypt() 244 aes_encrypt_1(ks, CRYPTO_BUF_CONTIG, last2.cn, 0, blocklen, in aes_encrypt() 246 m_copyback(inout, off, blocklen, last2.cn); in aes_encrypt() 257 uint8_t cn_1[16], cn[16]; in aes_decrypt() member 286 m_copyback(inout, off, blocklen, last2.cn); in aes_decrypt() 308 t = last2.cn[i]; in aes_decrypt() 309 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/contrib/bmake/ |
| H A D | make.c | 948 MakeBuildChild(GNode *cn, GNodeListNode *toBeMadeNext) in MakeBuildChild() argument 953 cn->name, cn->cohort_num); in MakeBuildChild() 954 GNode_FprintDetails(opts.debug_file, "", cn, "\n"); in MakeBuildChild() 956 if (GNode_IsReady(cn)) in MakeBuildChild() 960 if (IsWaitingForOrder(cn)) { in MakeBuildChild() 964 cn->made = DEFERRED; in MakeBuildChild() 969 cn->name, cn->cohort_num); in MakeBuildChild() 971 cn->made = REQUESTED; in MakeBuildChild() 972 if (opts.randomizeTargets && !(cn->type & OP_WAIT)) in MakeBuildChild() 973 ScheduleRandomly(cn); in MakeBuildChild() [all …]
|
| /freebsd/sys/fs/unionfs/ |
| H A D | union_subr.c | 721 struct componentname *cnp, struct componentname *cn, struct thread *td, in unionfs_relookup() argument 727 cn->cn_namelen = pathlen; in unionfs_relookup() 728 cn->cn_pnbuf = path; in unionfs_relookup() 729 cn->cn_nameiop = nameiop; in unionfs_relookup() 730 cn->cn_flags = (LOCKPARENT | LOCKLEAF | ISLASTCN); in unionfs_relookup() 731 cn->cn_lkflags = LK_EXCLUSIVE; in unionfs_relookup() 732 cn->cn_cred = cnp->cn_cred; in unionfs_relookup() 733 cn->cn_nameptr = cn->cn_pnbuf; in unionfs_relookup() 737 cn->cn_flags |= (cnp->cn_flags & DOWHITEOUT); in unionfs_relookup() 741 cn->cn_flags |= NOCACHE; in unionfs_relookup() [all …]
|