Home
last modified time | relevance | path

Searched refs:bn (Results 1 – 25 of 87) sorted by relevance

1234

/OK3568_Linux_fs/kernel/drivers/crypto/rockchip/
H A Drk_crypto_bignum.c34 struct rk_bignum *bn; in rk_bn_alloc() local
36 bn = kzalloc(sizeof(*bn), GFP_KERNEL); in rk_bn_alloc()
37 if (!bn) in rk_bn_alloc()
40 bn->data = kzalloc(round_up(max_size, sizeof(u32)), GFP_KERNEL); in rk_bn_alloc()
41 if (!bn->data) { in rk_bn_alloc()
42 kfree(bn); in rk_bn_alloc()
46 bn->n_words = BYTES2WORDS(max_size); in rk_bn_alloc()
48 return bn; in rk_bn_alloc()
51 void rk_bn_free(struct rk_bignum *bn) in rk_bn_free() argument
53 if (!bn) in rk_bn_free()
[all …]
H A Drk_crypto_bignum.h21 void rk_bn_free(struct rk_bignum *bn);
22 int rk_bn_set_data(struct rk_bignum *bn, const u8 *data, u32 size, enum bignum_endian endian);
23 int rk_bn_get_data(const struct rk_bignum *bn, u8 *data, u32 size, enum bignum_endian endian);
24 u32 rk_bn_get_size(const struct rk_bignum *bn);
H A Drk_crypto_v2_pka.c440 static void pka_copy_bn_into_reg(u8 dst_reg, struct rk_bignum *bn) in pka_copy_bn_into_reg() argument
447 bn_words = PKA_BIGNUM_WORDS(bn); in pka_copy_bn_into_reg()
451 pka_load_data(cur_addr, bn->data, bn_words); in pka_copy_bn_into_reg()
457 static int pka_copy_bn_from_reg(struct rk_bignum *bn, u32 size_words, u8 src_reg, bool is_max_poll) in pka_copy_bn_from_reg() argument
467 pka_read_data(pka_get_map_addr(src_reg), bn->data, size_words); in pka_copy_bn_from_reg()
564 static u32 pka_calc_and_init_np(struct rk_bignum *bn, u8 r_t0, u8 r_t1, u8 r_t2) in pka_calc_and_init_np() argument
575 mod_size_bits = PKA_BYTES2BITS(rk_bn_get_size(bn)); in pka_calc_and_init_np()
580 pka_copy_bn_into_reg(PKA_N, bn); in pka_calc_and_init_np()
/OK3568_Linux_fs/external/rknn-toolkit2/examples/caffe/mobilenet_v2/
H A Dmobilenet_v2.prototxt42 name: "conv1/bn"
45 top: "conv1/bn"
66 bottom: "conv1/bn"
67 top: "conv1/bn"
83 bottom: "conv1/bn"
84 top: "conv1/bn"
89 bottom: "conv1/bn"
105 name: "conv2_1/expand/bn"
108 top: "conv2_1/expand/bn"
129 bottom: "conv2_1/expand/bn"
[all …]
/OK3568_Linux_fs/kernel/drivers/net/bonding/
H A Dbond_procfs.c265 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_create_proc_entry() local
267 if (bn->proc_dir) { in bond_create_proc_entry()
269 bn->proc_dir, &bond_info_seq_ops, bond); in bond_create_proc_entry()
281 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_remove_proc_entry() local
283 if (bn->proc_dir && bond->proc_entry) { in bond_remove_proc_entry()
284 remove_proc_entry(bond->proc_file_name, bn->proc_dir); in bond_remove_proc_entry()
293 void __net_init bond_create_proc_dir(struct bond_net *bn) in bond_create_proc_dir() argument
295 if (!bn->proc_dir) { in bond_create_proc_dir()
296 bn->proc_dir = proc_mkdir(DRV_NAME, bn->net->proc_net); in bond_create_proc_dir()
297 if (!bn->proc_dir) in bond_create_proc_dir()
[all …]
H A Dbond_sysfs.c38 struct bond_net *bn = in bonding_show_bonds() local
45 list_for_each_entry(bond, &bn->dev_list, bond_list) { in bonding_show_bonds()
62 static struct net_device *bond_get_by_name(struct bond_net *bn, const char *ifname) in bond_get_by_name() argument
66 list_for_each_entry(bond, &bn->dev_list, bond_list) { in bond_get_by_name()
82 struct bond_net *bn = in bonding_store_bonds() local
96 rv = bond_create(bn->net, ifname); in bonding_store_bonds()
108 bond_dev = bond_get_by_name(bn, ifname); in bonding_store_bonds()
771 int bond_create_sysfs(struct bond_net *bn) in bond_create_sysfs() argument
775 bn->class_attr_bonding_masters = class_attr_bonding_masters; in bond_create_sysfs()
776 sysfs_attr_init(&bn->class_attr_bonding_masters.attr); in bond_create_sysfs()
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/include/openssl/
H A Dbn.h175 OPENSSL_EXPORT void BN_init(BIGNUM *bn);
179 OPENSSL_EXPORT void BN_free(BIGNUM *bn);
183 OPENSSL_EXPORT void BN_clear_free(BIGNUM *bn);
194 OPENSSL_EXPORT void BN_clear(BIGNUM *bn);
204 OPENSSL_EXPORT unsigned BN_num_bits(const BIGNUM *bn);
208 OPENSSL_EXPORT unsigned BN_num_bytes(const BIGNUM *bn);
211 OPENSSL_EXPORT void BN_zero(BIGNUM *bn);
215 OPENSSL_EXPORT int BN_one(BIGNUM *bn);
219 OPENSSL_EXPORT int BN_set_word(BIGNUM *bn, BN_ULONG value);
223 OPENSSL_EXPORT int BN_set_u64(BIGNUM *bn, uint64_t value);
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/host_include/openssl/
H A Dbn.h175 OPENSSL_EXPORT void BN_init(BIGNUM *bn);
179 OPENSSL_EXPORT void BN_free(BIGNUM *bn);
183 OPENSSL_EXPORT void BN_clear_free(BIGNUM *bn);
194 OPENSSL_EXPORT void BN_clear(BIGNUM *bn);
204 OPENSSL_EXPORT unsigned BN_num_bits(const BIGNUM *bn);
208 OPENSSL_EXPORT unsigned BN_num_bytes(const BIGNUM *bn);
211 OPENSSL_EXPORT void BN_zero(BIGNUM *bn);
215 OPENSSL_EXPORT int BN_one(BIGNUM *bn);
219 OPENSSL_EXPORT int BN_set_word(BIGNUM *bn, BN_ULONG value);
223 OPENSSL_EXPORT int BN_set_u64(BIGNUM *bn, uint64_t value);
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/openssl/
H A Dbn.h175 OPENSSL_EXPORT void BN_init(BIGNUM *bn);
179 OPENSSL_EXPORT void BN_free(BIGNUM *bn);
183 OPENSSL_EXPORT void BN_clear_free(BIGNUM *bn);
194 OPENSSL_EXPORT void BN_clear(BIGNUM *bn);
204 OPENSSL_EXPORT unsigned BN_num_bits(const BIGNUM *bn);
208 OPENSSL_EXPORT unsigned BN_num_bytes(const BIGNUM *bn);
211 OPENSSL_EXPORT void BN_zero(BIGNUM *bn);
215 OPENSSL_EXPORT int BN_one(BIGNUM *bn);
219 OPENSSL_EXPORT int BN_set_word(BIGNUM *bn, BN_ULONG value);
223 OPENSSL_EXPORT int BN_set_u64(BIGNUM *bn, uint64_t value);
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/host_include/openssl/
H A Dbn.h175 OPENSSL_EXPORT void BN_init(BIGNUM *bn);
179 OPENSSL_EXPORT void BN_free(BIGNUM *bn);
183 OPENSSL_EXPORT void BN_clear_free(BIGNUM *bn);
194 OPENSSL_EXPORT void BN_clear(BIGNUM *bn);
204 OPENSSL_EXPORT unsigned BN_num_bits(const BIGNUM *bn);
208 OPENSSL_EXPORT unsigned BN_num_bytes(const BIGNUM *bn);
211 OPENSSL_EXPORT void BN_zero(BIGNUM *bn);
215 OPENSSL_EXPORT int BN_one(BIGNUM *bn);
219 OPENSSL_EXPORT int BN_set_word(BIGNUM *bn, BN_ULONG value);
223 OPENSSL_EXPORT int BN_set_u64(BIGNUM *bn, uint64_t value);
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v1/export-user_ta/host_include/openssl/
H A Dbn.h173 OPENSSL_EXPORT void BN_init(BIGNUM *bn);
177 OPENSSL_EXPORT void BN_free(BIGNUM *bn);
181 OPENSSL_EXPORT void BN_clear_free(BIGNUM *bn);
192 OPENSSL_EXPORT void BN_clear(BIGNUM *bn);
202 OPENSSL_EXPORT unsigned BN_num_bits(const BIGNUM *bn);
206 OPENSSL_EXPORT unsigned BN_num_bytes(const BIGNUM *bn);
209 OPENSSL_EXPORT void BN_zero(BIGNUM *bn);
213 OPENSSL_EXPORT int BN_one(BIGNUM *bn);
217 OPENSSL_EXPORT int BN_set_word(BIGNUM *bn, BN_ULONG value);
221 OPENSSL_EXPORT int BN_set_u64(BIGNUM *bn, uint64_t value);
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v1/export-user_ta/include/openssl/
H A Dbn.h173 OPENSSL_EXPORT void BN_init(BIGNUM *bn);
177 OPENSSL_EXPORT void BN_free(BIGNUM *bn);
181 OPENSSL_EXPORT void BN_clear_free(BIGNUM *bn);
192 OPENSSL_EXPORT void BN_clear(BIGNUM *bn);
202 OPENSSL_EXPORT unsigned BN_num_bits(const BIGNUM *bn);
206 OPENSSL_EXPORT unsigned BN_num_bytes(const BIGNUM *bn);
209 OPENSSL_EXPORT void BN_zero(BIGNUM *bn);
213 OPENSSL_EXPORT int BN_one(BIGNUM *bn);
217 OPENSSL_EXPORT int BN_set_word(BIGNUM *bn, BN_ULONG value);
221 OPENSSL_EXPORT int BN_set_u64(BIGNUM *bn, uint64_t value);
[all …]
/OK3568_Linux_fs/kernel/drivers/char/
H A Dbsr.c166 static int bsr_add_node(struct device_node *bn) in bsr_add_node() argument
174 bsr_stride = of_get_property(bn, "ibm,lock-stride", &bsr_stride_len); in bsr_add_node()
175 bsr_bytes = of_get_property(bn, "ibm,#lock-bytes", &bsr_bytes_len); in bsr_add_node()
197 result = of_address_to_resource(bn, i, &res); in bsr_add_node()
271 static int bsr_create_devs(struct device_node *bn) in bsr_create_devs() argument
275 while (bn) { in bsr_create_devs()
276 ret = bsr_add_node(bn); in bsr_create_devs()
278 of_node_put(bn); in bsr_create_devs()
281 bn = of_find_compatible_node(bn, NULL, "ibm,bsr"); in bsr_create_devs()
/OK3568_Linux_fs/kernel/fs/freevxfs/
H A Dvxfs_bmap.c67 vxfs_bmap_ext4(struct inode *ip, long bn) in vxfs_bmap_ext4() argument
81 if (bn >= 0 && bn < fs32_to_cpu(sbi, d->size)) in vxfs_bmap_ext4()
82 return (bn + fs32_to_cpu(sbi, d->extent)); in vxfs_bmap_ext4()
83 bn -= fs32_to_cpu(sbi, d->size); in vxfs_bmap_ext4()
86 if ((bn / (indsize * indsize * bsize / 4)) == 0) { in vxfs_bmap_ext4()
97 bno = fs32_to_cpu(sbi, indir[(bn / indsize) % (indsize * bn)]) + in vxfs_bmap_ext4()
98 (bn % indsize); in vxfs_bmap_ext4()
/OK3568_Linux_fs/kernel/fs/jfs/
H A Djfs_dtree.c321 static u32 add_index(tid_t tid, struct inode *ip, s64 bn, int slot) in add_index() argument
359 DTSaddress(dirtab_slot, bn); in add_index()
464 DTSaddress(dirtab_slot, bn); in add_index()
511 static void modify_index(tid_t tid, struct inode *ip, u32 index, s64 bn, in modify_index() argument
521 DTSaddress(dirtab_slot, bn); in modify_index()
572 s64 bn; in dtSearch() local
621 for (bn = 0;;) { in dtSearch()
623 DT_GETPAGE(ip, bn, mp, psize, p, rc); in dtSearch()
693 btsp->bn = bn; in dtSearch()
742 btsp->bn = bn; in dtSearch()
[all …]
H A Djfs_xtree.c139 s64 bn; in xtLookup() local
175 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtLookup()
232 s64 bn; /* block number */ in xtSearch() local
264 for (bn = 0;;) { in xtSearch()
266 XT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in xtSearch()
347 btsp->bn = bn; in xtSearch()
394 btsp->bn = bn; in xtSearch()
452 btsp->bn = bn; in xtSearch()
494 BT_PUSH(btstack, bn, index); in xtSearch()
497 bn = addressXAD(&p->xad[index]); in xtSearch()
[all …]
H A Djfs_btree.h99 s64 bn; /* 8: */ member
120 (BTSTACK)->top->bn = BN;\
137 (long long)btstack->stack[i].bn, in BT_STACK_DUMP()
144 BN = (LEAF)->bn;\
/OK3568_Linux_fs/buildroot/dl/rtmpdump/git/librtmp/
H A Ddh.h200 MP_t bn; in isValidPublicKey() local
203 MP_new(bn); in isValidPublicKey()
204 assert(bn); in isValidPublicKey()
207 MP_set_w(bn, 1); in isValidPublicKey()
208 if (MP_cmp(y, bn) < 0) in isValidPublicKey()
216 MP_set(bn, p); in isValidPublicKey()
217 MP_sub_w(bn, 1); in isValidPublicKey()
218 if (MP_cmp(y, bn) > 0) in isValidPublicKey()
234 MP_modexp(bn, y, q, p); in isValidPublicKey()
236 if (MP_cmp_1(bn) != 0) in isValidPublicKey()
[all …]
/OK3568_Linux_fs/external/rknn-toolkit2/examples/functions/model_pruning/
H A Dmobilenet_deploy.prototxt40 name: "conv1/bn"
113 name: "conv2_1/dw/bn"
184 name: "conv2_1/sep/bn"
257 name: "conv2_2/dw/bn"
328 name: "conv2_2/sep/bn"
401 name: "conv3_1/dw/bn"
472 name: "conv3_1/sep/bn"
545 name: "conv3_2/dw/bn"
616 name: "conv3_2/sep/bn"
689 name: "conv4_1/dw/bn"
[all …]
/OK3568_Linux_fs/external/xserver/xkb/
H A DxkbEvents.c485 xkbBellNotify bn; in XkbHandleBell() local
532 bn.type = XkbEventCode + XkbEventBase; in XkbHandleBell()
533 bn.xkbType = XkbBellNotify; in XkbHandleBell()
534 bn.deviceID = kbd->id; in XkbHandleBell()
535 bn.bellClass = class; in XkbHandleBell()
536 bn.bellID = id; in XkbHandleBell()
537 bn.percent = percent; in XkbHandleBell()
538 bn.eventOnly = (eventOnly != 0); in XkbHandleBell()
542 bn.sequenceNumber = interest->client->sequence; in XkbHandleBell()
543 bn.time = time; in XkbHandleBell()
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/host/openssl/include/openssl/
H A Dbn.h816 # define bn_check_size(bn, bits) bn_wcheck_size(bn, ((bits+BN_BITS2-1))/BN_BITS2) argument
817 # define bn_wcheck_size(bn, words) \ argument
819 const BIGNUM *_bnum2 = (bn); \
830 # define bn_check_size(bn, bits) argument
831 # define bn_wcheck_size(bn, words) argument
861 BIGNUM *get_rfc2409_prime_768(BIGNUM *bn);
862 BIGNUM *get_rfc2409_prime_1024(BIGNUM *bn);
865 BIGNUM *get_rfc3526_prime_1536(BIGNUM *bn);
866 BIGNUM *get_rfc3526_prime_2048(BIGNUM *bn);
867 BIGNUM *get_rfc3526_prime_3072(BIGNUM *bn);
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/storage/
H A Dene_ub6250.c678 u32 bn = ((cdb[2] << 24) & 0xff000000) | ((cdb[3] << 16) & 0x00ff0000) | in sd_scsi_read() local
681 u32 bnByte = bn * 0x200; in sd_scsi_read()
684 if (bn > info->bl_num) in sd_scsi_read()
694 bnByte = bn; in sd_scsi_read()
718 u32 bn = ((cdb[2] << 24) & 0xff000000) | ((cdb[3] << 16) & 0x00ff0000) | in sd_scsi_write() local
721 u32 bnByte = bn * 0x200; in sd_scsi_write()
724 if (bn > info->bl_num) in sd_scsi_write()
734 bnByte = bn; in sd_scsi_write()
876 u32 bn = PhyBlockAddr * 0x20 + PageNum; in ms_read_readpage() local
891 bcb->CDB[5] = (unsigned char)(bn); in ms_read_readpage()
[all …]
/OK3568_Linux_fs/kernel/drivers/md/persistent-data/
H A Ddm-btree.c1003 struct btree_node *bn = dm_block_data(n->b); in prefetch_values() local
1008 nr = le32_to_cpu(bn->header.nr_entries); in prefetch_values()
1010 memcpy(&value_le, value_ptr(bn, i), sizeof(value_le)); in prefetch_values()
1018 struct btree_node *bn = dm_block_data(n->b); in leaf_node() local
1020 return le32_to_cpu(bn->header.flags) & LEAF_NODE; in leaf_node()
1055 struct btree_node *bn; in inc_or_backtrack() local
1062 bn = dm_block_data(n->b); in inc_or_backtrack()
1065 if (n->index < le32_to_cpu(bn->header.nr_entries)) in inc_or_backtrack()
1078 struct btree_node *bn; in find_leaf() local
1083 bn = dm_block_data(n->b); in find_leaf()
[all …]
/OK3568_Linux_fs/kernel/drivers/accessibility/speakup/
H A Dmain.c864 static int bn; variable
869 bn = currbuf; in say_sentence_num()
871 if (prev && --bn == -1) in say_sentence_num()
872 bn = 1; in say_sentence_num()
874 if (num > numsentences[bn]) in say_sentence_num()
877 spkup_write(sentmarks[bn][num], sentbufend[bn] - sentmarks[bn][num]); in say_sentence_num()
884 int i, bn; in get_sentence_buf() local
890 bn = currbuf; in get_sentence_buf()
894 numsentences[bn] = 0; in get_sentence_buf()
895 sentmarks[bn][0] = &sentbuf[bn][0]; in get_sentence_buf()
[all …]
/OK3568_Linux_fs/kernel/fs/gfs2/
H A Dxattr.c138 u64 bn; in ea_foreach() local
142 bn = be64_to_cpu(*eablk); in ea_foreach()
144 error = gfs2_meta_read(ip->i_gl, bn, DIO_WAIT, 0, &eabh); in ea_foreach()
232 u64 bn = 0; in ea_dealloc_unstuffed() local
250 bn = be64_to_cpu(*dataptrs); in ea_dealloc_unstuffed()
256 rgd = gfs2_blk2rgrpd(sdp, bn, 1); in ea_dealloc_unstuffed()
277 bn = be64_to_cpu(*dataptrs); in ea_dealloc_unstuffed()
279 if (bstart + blen == bn) in ea_dealloc_unstuffed()
284 bstart = bn; in ea_dealloc_unstuffed()
1284 u64 bn; in ea_dealloc_indirect() local
[all …]

1234