Home
last modified time | relevance | path

Searched refs:nid (Results 1 – 25 of 160) sorted by relevance

1234567

/external/boringssl/src/crypto/obj/
Dobj.c130 r->nid = o->nid; in OBJ_dup()
193 unsigned nid = *((const unsigned*) element); in obj_cmp() local
195 const ASN1_OBJECT *b = &kObjects[nid]; in obj_cmp()
212 if (obj->nid != 0) { in OBJ_obj2nid()
213 return obj->nid; in OBJ_obj2nid()
223 return match->nid; in OBJ_obj2nid()
234 return kObjects[*nid_ptr].nid; in OBJ_obj2nid()
255 unsigned nid = *((unsigned*) element); in short_name_cmp() local
257 return strcmp(name, kObjects[nid].sn); in short_name_cmp()
271 return match->nid; in OBJ_sn2nid()
[all …]
Dobjects.go90 nid, err := strconv.Atoi(fields[1])
94 if nid < 0 {
99 if name == "undef" && nid == 0 {
107 if _, ok := nidsSeen[nid]; ok {
108 return nil, 0, withLine(fmt.Errorf("duplicate NID %d", nid))
111 nameToNID[name] = nid
112 nidsSeen[nid] = struct{}{}
114 if nid >= numNIDs {
115 numNIDs = nid + 1
333 nid, ok := nameToNID[obj.name]
[all …]
/external/f2fs-tools/fsck/
Dfsck.c71 u32 nid, u32 link_cnt) in add_into_hard_link_list() argument
79 node->nid = nid; in add_into_hard_link_list()
92 while (tmp && (nid < tmp->nid)) { in add_into_hard_link_list()
93 ASSERT(tmp->nid != nid); in add_into_hard_link_list()
107 DBG(2, "ino[0x%x] has hard links [0x%x]\n", nid, link_cnt); in add_into_hard_link_list()
111 static int find_and_dec_hard_link_list(struct f2fs_sb_info *sbi, u32 nid) in find_and_dec_hard_link_list() argument
121 while (node && (nid < node->nid)) { in find_and_dec_hard_link_list()
126 if (node == NULL || (nid != node->nid)) in find_and_dec_hard_link_list()
144 static int is_valid_ssa_node_blk(struct f2fs_sb_info *sbi, u32 nid, in is_valid_ssa_node_blk() argument
180 if (le32_to_cpu(sum_entry->nid) != nid) { in is_valid_ssa_node_blk()
[all …]
Ddump.c38 nid_t nid; in nat_dump() local
51 for (nid = start_nat; nid < end_nat; nid++) { in nat_dump()
54 if(nid == 0 || nid == F2FS_NODE_INO(sbi) || in nat_dump()
55 nid == F2FS_META_INO(sbi)) in nat_dump()
58 ni.nid = nid; in nat_dump()
59 block_addr = current_nat_addr(sbi, nid, &pack); in nat_dump()
61 if (lookup_nat_in_journal(sbi, nid, &raw_nat) >= 0) { in nat_dump()
70 ni.nid, ni.ino, in nat_dump()
81 &nat_block->entries[nid % NAT_ENTRY_PER_BLOCK]); in nat_dump()
91 ni.nid, ni.ino, in nat_dump()
[all …]
Dnode.h26 return ((node)->footer.nid == (node)->footer.ino); in IS_INODE()
49 static inline void set_nid(struct f2fs_node * rn, int off, nid_t nid, int i) in set_nid() argument
52 rn->i.i_nid[off - NODE_DIR1_BLOCK] = cpu_to_le32(nid); in set_nid()
54 rn->in.nid[off] = cpu_to_le32(nid); in set_nid()
62 return le32_to_cpu(rn->in.nid[off]); in get_nid()
72 struct f2fs_node *iblk, struct f2fs_node *nblk, nid_t nid) in set_new_dnode() argument
77 dn->nid = nid; in set_new_dnode()
Dmount.c272 nid_t nid = le32_to_cpu(node_block->footer.nid); in print_node_info() local
274 if (ino == nid) { in print_node_info()
275 DBG(verbose, "Node ID [0x%x:%u] is inode\n", nid, nid); in print_node_info()
282 nid, nid); in print_node_info()
1037 nid_t nid; in f2fs_init_nid_bitmap() local
1056 for (nid = 0; nid < nm_i->max_nid; nid++) { in f2fs_init_nid_bitmap()
1057 if (!(nid % NAT_ENTRY_PER_BLOCK)) { in f2fs_init_nid_bitmap()
1060 start_blk = current_nat_addr(sbi, nid, NULL); in f2fs_init_nid_bitmap()
1065 if (nat_block->entries[nid % NAT_ENTRY_PER_BLOCK].block_addr) in f2fs_init_nid_bitmap()
1066 f2fs_set_bit(nid, nm_i->nid_bitmap); in f2fs_init_nid_bitmap()
[all …]
Dnode.c19 void f2fs_alloc_nid(struct f2fs_sb_info *sbi, nid_t *nid, int inode) in f2fs_alloc_nid() argument
31 *nid = i; in f2fs_alloc_nid()
74 node_blk->footer.nid = cpu_to_le32(dn->nid); in new_node_block()
87 get_node_info(sbi, dn->nid, &ni); in new_node_block()
88 set_summary(&sum, dn->nid, 0, ni.version); in new_node_block()
93 dn->nid, blkaddr); in new_node_block()
196 nids[0] = dn->nid; in get_dnode_of_data()
216 dn->nid = nids[i]; in get_dnode_of_data()
252 dn->nid = nids[level]; in get_dnode_of_data()
Dresize.c196 update_data_blkaddr(sbi, le32_to_cpu(sum.nid), in migrate_main()
200 le32_to_cpu(sum.nid), to); in migrate_main()
283 int nid, ret, new_max_nid; in shrink_nats() local
297 for (nid = nm_i->max_nid - 1; nid > new_max_nid; nid -= NAT_ENTRY_PER_BLOCK) { in shrink_nats()
298 block_off = nid / NAT_ENTRY_PER_BLOCK; in shrink_nats()
332 int nid, ret, new_max_nid; in migrate_nat() local
340 for (nid = nm_i->max_nid - 1; nid >= 0; nid -= NAT_ENTRY_PER_BLOCK) { in migrate_nat()
341 block_off = nid / NAT_ENTRY_PER_BLOCK; in migrate_nat()
375 for (nid = nm_i->max_nid; nid < new_max_nid; in migrate_nat()
376 nid += NAT_ENTRY_PER_BLOCK) { in migrate_nat()
[all …]
/external/boringssl/src/crypto/x509/
Dx509_ext.c70 int X509_CRL_get_ext_by_NID(X509_CRL *x, int nid, int lastpos) in X509_CRL_get_ext_by_NID() argument
72 return (X509v3_get_ext_by_NID(x->crl->extensions, nid, lastpos)); in X509_CRL_get_ext_by_NID()
95 void *X509_CRL_get_ext_d2i(X509_CRL *x, int nid, int *crit, int *idx) in X509_CRL_get_ext_d2i() argument
97 return X509V3_get_d2i(x->crl->extensions, nid, crit, idx); in X509_CRL_get_ext_d2i()
100 int X509_CRL_add1_ext_i2d(X509_CRL *x, int nid, void *value, int crit, in X509_CRL_add1_ext_i2d() argument
103 return X509V3_add1_i2d(&x->crl->extensions, nid, value, crit, flags); in X509_CRL_add1_ext_i2d()
116 int X509_get_ext_by_NID(X509 *x, int nid, int lastpos) in X509_get_ext_by_NID() argument
118 return (X509v3_get_ext_by_NID(x->cert_info->extensions, nid, lastpos)); in X509_get_ext_by_NID()
147 void *X509_get_ext_d2i(X509 *x, int nid, int *crit, int *idx) in X509_get_ext_d2i() argument
149 return X509V3_get_d2i(x->cert_info->extensions, nid, crit, idx); in X509_get_ext_d2i()
[all …]
Dx509_req.c163 int i, nid; in X509_REQ_extension_nid() local
165 nid = ext_nids[i]; in X509_REQ_extension_nid()
166 if (nid == NID_undef) in X509_REQ_extension_nid()
168 else if (req_nid == nid) in X509_REQ_extension_nid()
218 int nid) in X509_REQ_add_extensions_nid() argument
239 attr->object = (ASN1_OBJECT *)OBJ_nid2obj(nid); in X509_REQ_add_extensions_nid()
266 int X509_REQ_get_attr_by_NID(const X509_REQ *req, int nid, int lastpos) in X509_REQ_get_attr_by_NID() argument
268 return X509at_get_attr_by_NID(req->req_info->attributes, nid, lastpos); in X509_REQ_get_attr_by_NID()
305 int nid, int type, in X509_REQ_add1_attr_by_NID() argument
308 if (X509at_add1_attr_by_NID(&req->req_info->attributes, nid, in X509_REQ_add1_attr_by_NID()
Dx509name.c69 int X509_NAME_get_text_by_NID(X509_NAME *name, int nid, char *buf, int len) in X509_NAME_get_text_by_NID() argument
73 obj = OBJ_nid2obj(nid); in X509_NAME_get_text_by_NID()
104 int X509_NAME_get_index_by_NID(X509_NAME *name, int nid, int lastpos) in X509_NAME_get_index_by_NID() argument
108 obj = OBJ_nid2obj(nid); in X509_NAME_get_index_by_NID()
193 int X509_NAME_add_entry_by_NID(X509_NAME *name, int nid, int type, in X509_NAME_add_entry_by_NID() argument
199 ne = X509_NAME_ENTRY_create_by_NID(NULL, nid, type, bytes, len); in X509_NAME_add_entry_by_NID()
300 X509_NAME_ENTRY *X509_NAME_ENTRY_create_by_NID(X509_NAME_ENTRY **ne, int nid, in X509_NAME_ENTRY_create_by_NID() argument
304 const ASN1_OBJECT *obj = OBJ_nid2obj(nid); in X509_NAME_ENTRY_create_by_NID()
/external/boringssl/src/crypto/asn1/
Da_strnid.c130 int inform, int nid) in ASN1_STRING_set_by_NID() argument
138 tbl = ASN1_STRING_TABLE_get(nid); in ASN1_STRING_set_by_NID()
200 return (*a)->nid - (*b)->nid; in sk_table_cmp()
207 return a->nid - b->nid; in table_cmp()
210 ASN1_STRING_TABLE *ASN1_STRING_TABLE_get(int nid) in ASN1_STRING_TABLE_get() argument
216 fnd.nid = nid; in ASN1_STRING_TABLE_get()
233 int ASN1_STRING_TABLE_add(int nid, in ASN1_STRING_TABLE_add() argument
246 if (!(tmp = ASN1_STRING_TABLE_get(nid))) { in ASN1_STRING_TABLE_add()
253 tmp->nid = nid; in ASN1_STRING_TABLE_add()
293 if (tmp->nid < last_nid) { in main()
[all …]
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/sevenz/
DSevenZFile.java353 int nid = getUnsignedByte(buf); in readHeaders() local
354 if (nid == NID.kEncodedHeader) { in readHeaders()
358 nid = getUnsignedByte(buf); in readHeaders()
360 if (nid == NID.kHeader) { in readHeaders()
382 int nid = getUnsignedByte(header); in readHeader() local
384 if (nid == NID.kArchiveProperties) { in readHeader()
386 nid = getUnsignedByte(header); in readHeader()
389 if (nid == NID.kAdditionalStreamsInfo) { in readHeader()
394 if (nid == NID.kMainStreamsInfo) { in readHeader()
396 nid = getUnsignedByte(header); in readHeader()
[all …]
/external/boringssl/src/crypto/pem/
Dpem_pk8.c69 int nid, const EVP_CIPHER *enc,
72 int nid, const EVP_CIPHER *enc,
82 int PEM_write_bio_PKCS8PrivateKey_nid(BIO *bp, EVP_PKEY *x, int nid, in PEM_write_bio_PKCS8PrivateKey_nid() argument
86 return do_pk8pkey(bp, x, 0, nid, NULL, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey_nid()
103 int i2d_PKCS8PrivateKey_nid_bio(BIO *bp, EVP_PKEY *x, int nid, in i2d_PKCS8PrivateKey_nid_bio() argument
107 return do_pk8pkey(bp, x, 1, nid, NULL, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_nid_bio()
110 static int do_pk8pkey(BIO *bp, EVP_PKEY *x, int isder, int nid, in do_pk8pkey() argument
122 if (enc || (nid != -1)) { in do_pk8pkey()
136 p8 = PKCS8_encrypt(nid, enc, kstr, klen, NULL, 0, 0, p8inf); in do_pk8pkey()
202 int i2d_PKCS8PrivateKey_nid_fp(FILE *fp, EVP_PKEY *x, int nid, in i2d_PKCS8PrivateKey_nid_fp() argument
[all …]
/external/boringssl/src/crypto/digest_extra/
Ddigest_extra.c69 int nid; member
104 const EVP_MD* EVP_get_digestbynid(int nid) { in EVP_get_digestbynid() argument
105 if (nid == NID_undef) { in EVP_get_digestbynid()
111 if (nid_to_digest_mapping[i].nid == nid) { in EVP_get_digestbynid()
122 int nid; member
145 return EVP_get_digestbynid(kMDOIDs[i].nid); in cbs_to_md()
154 if (obj->nid != NID_undef) { in EVP_get_digestbyobj()
155 return EVP_get_digestbynid(obj->nid); in EVP_get_digestbyobj()
203 int nid = EVP_MD_type(md); in EVP_marshal_digest_algorithm() local
205 if (nid == kMDOIDs[i].nid) { in EVP_marshal_digest_algorithm()
/external/boringssl/src/crypto/x509v3/
Dv3_lib.c102 const X509V3_EXT_METHOD *X509V3_EXT_get_nid(int nid) in X509V3_EXT_get_nid() argument
108 if (nid < 0) in X509V3_EXT_get_nid()
110 tmp.ext_nid = nid; in X509V3_EXT_get_nid()
127 int nid; in X509V3_EXT_get() local
128 if ((nid = OBJ_obj2nid(ext->object)) == NID_undef) in X509V3_EXT_get()
130 return X509V3_EXT_get_nid(nid); in X509V3_EXT_get()
133 int X509V3_EXT_free(int nid, void *ext_data) in X509V3_EXT_free() argument
135 const X509V3_EXT_METHOD *ext_method = X509V3_EXT_get_nid(nid); in X509V3_EXT_free()
233 void *X509V3_get_d2i(STACK_OF(X509_EXTENSION) *x, int nid, int *crit, in X509V3_get_d2i() argument
254 if (OBJ_obj2nid(ex->object) == nid) { in X509V3_get_d2i()
[all …]
/external/perfetto/src/traced/probes/ftrace/test/data/android_flounder_lte_LRX16F_3.10.40/events/f2fs/f2fs_truncate_partial_nodes/
Dformat11 field:nid_t nid[3]; offset:36; size:4; signed:0;
15nid[0] = %u, nid[1] = %u, nid[2] = %u, depth = %d, err = %d", ((unsigned int) ((REC->dev) >> 20)),…
/external/perfetto/protos/perfetto/trace/ftrace/
Dcompaction.proto17 optional int32 nid = 1; field
25 optional int32 nid = 1; field
33 optional int32 nid = 1; field
49 optional int32 nid = 1; field
67 optional int32 nid = 1; field
70 optional int32 nid = 1; field
79 optional int32 nid = 1; field
90 optional int32 nid = 1; field
/external/boringssl/src/crypto/test/
Dwycheproof_util.cc78 int nid; in GetWycheproofCurve() local
80 nid = NID_secp224r1; in GetWycheproofCurve()
82 nid = NID_X9_62_prime256v1; in GetWycheproofCurve()
84 nid = NID_secp384r1; in GetWycheproofCurve()
86 nid = NID_secp521r1; in GetWycheproofCurve()
91 return bssl::UniquePtr<EC_GROUP>(EC_GROUP_new_by_curve_name(nid)); in GetWycheproofCurve()
/external/boringssl/src/fipstools/
Dcavp_kas_test.cc38 int nid = NID_undef; in TestKAS() local
42 nid = NID_secp224r1; in TestKAS()
45 nid = NID_X9_62_prime256v1; in TestKAS()
48 nid = NID_secp384r1; in TestKAS()
51 nid = NID_secp521r1; in TestKAS()
63 bssl::UniquePtr<EC_KEY> ec_key(EC_KEY_new_by_curve_name(nid)); in TestKAS()
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dinline_pass.cpp218 const uint32_t nid = context()->TakeNextId(); in CloneSameBlockOps() local
219 if (nid == 0) { in CloneSameBlockOps()
222 get_decoration_mgr()->CloneDecorations(rid, nid); in CloneSameBlockOps()
223 sb_inst->SetResultId(nid); in CloneSameBlockOps()
224 (*postCallSB)[rid] = nid; in CloneSameBlockOps()
225 *iid = nid; in CloneSameBlockOps()
562 const uint32_t nid = context()->TakeNextId(); in GenInlineCode() local
563 if (nid == 0) { in GenInlineCode()
566 callee2caller[*iid] = nid; in GenInlineCode()
567 *iid = nid; in GenInlineCode()
[all …]
/external/boringssl/src/include/openssl/
Dobj.h129 OPENSSL_EXPORT const ASN1_OBJECT *OBJ_nid2obj(int nid);
132 OPENSSL_EXPORT const char *OBJ_nid2sn(int nid);
135 OPENSSL_EXPORT const char *OBJ_nid2ln(int nid);
139 OPENSSL_EXPORT int OBJ_nid2cbb(CBB *out, int nid);
/external/tcpdump/
Dprint-wb.c152 uint16_t nid; member
187 int nid; in wb_id() local
202 nid = EXTRACT_16BITS(&id->pi_ps.nid); in wb_id()
203 len -= sizeof(*io) * nid; in wb_id()
205 cp = (const char *)(io + nid); in wb_id()
213 for (i = 0; i < nid && ND_TTEST(*io); ++io, ++i) { in wb_id()
218 if (i >= nid) { in wb_id()
279 for (ie = io + ps->nid; io < ie && ND_TTEST(*io); ++io) { in wb_prep()
/external/deqp-deps/SPIRV-Tools/source/opt/
Dinline_pass.cpp191 const uint32_t nid = this->TakeNextId(); in CloneSameBlockOps() local
192 get_decoration_mgr()->CloneDecorations(rid, nid); in CloneSameBlockOps()
193 sb_inst->SetResultId(nid); in CloneSameBlockOps()
194 (*postCallSB)[rid] = nid; in CloneSameBlockOps()
195 *iid = nid; in CloneSameBlockOps()
483 const uint32_t nid = this->TakeNextId(); in GenInlineCode() local
484 callee2caller[*iid] = nid; in GenInlineCode()
485 *iid = nid; in GenInlineCode()
493 uint32_t nid; in GenInlineCode() local
495 nid = mapItr->second; in GenInlineCode()
[all …]
/external/kmod/libkmod/
Dlibkmod-signature.c143 int nid; in obj_to_hash_algo() local
145 nid = OBJ_obj2nid(o); in obj_to_hash_algo()
146 switch (nid) { in obj_to_hash_algo()
175 int nid = -1; in x509_name_to_str() local
181 nid = OBJ_obj2nid(o); in x509_name_to_str()
182 if (nid == NID_commonName) in x509_name_to_str()
185 if (nid == -1) in x509_name_to_str()

1234567