Home
last modified time | relevance | path

Searched refs:MPI (Results 1 – 25 of 39) sorted by relevance

12

/OK3568_Linux_fs/kernel/include/linux/
H A Dmpi.h40 typedef struct gcry_mpi *MPI; typedef
46 MPI mpi_alloc(unsigned nlimbs);
47 void mpi_clear(MPI a);
48 void mpi_free(MPI a);
49 int mpi_resize(MPI a, unsigned nlimbs);
51 static inline MPI mpi_new(unsigned int nbits) in mpi_new()
56 MPI mpi_copy(MPI a);
57 MPI mpi_alloc_like(MPI a);
58 void mpi_snatch(MPI w, MPI u);
59 MPI mpi_set(MPI w, MPI u);
[all …]
/OK3568_Linux_fs/kernel/lib/mpi/
H A Dmpi-div.c17 void mpi_tdiv_qr(MPI quot, MPI rem, MPI num, MPI den);
18 void mpi_fdiv_qr(MPI quot, MPI rem, MPI dividend, MPI divisor);
20 void mpi_fdiv_r(MPI rem, MPI dividend, MPI divisor) in mpi_fdiv_r()
23 MPI temp_divisor = NULL; in mpi_fdiv_r()
43 void mpi_fdiv_q(MPI quot, MPI dividend, MPI divisor) in mpi_fdiv_q()
45 MPI tmp = mpi_alloc(mpi_get_nlimbs(quot)); in mpi_fdiv_q()
50 void mpi_fdiv_qr(MPI quot, MPI rem, MPI dividend, MPI divisor) in mpi_fdiv_qr()
53 MPI temp_divisor = NULL; in mpi_fdiv_qr()
78 void mpi_tdiv_r(MPI rem, MPI num, MPI den) in mpi_tdiv_r()
83 void mpi_tdiv_qr(MPI quot, MPI rem, MPI num, MPI den) in mpi_tdiv_qr()
H A Dmpi-mod.c14 MPI m; /* The modulus - may not be modified. */
17 MPI y;
18 MPI r1; /* Helper MPI. */
19 MPI r2; /* Helper MPI. */
20 MPI r3; /* Helper MPI allocated on demand. */
25 void mpi_mod(MPI rem, MPI dividend, MPI divisor) in mpi_mod()
36 mpi_barrett_t mpi_barrett_init(MPI m, int copy) in mpi_barrett_init()
39 MPI tmp; in mpi_barrett_init()
95 void mpi_mod_barrett(MPI r, MPI x, mpi_barrett_t ctx) in mpi_mod_barrett()
97 MPI m = ctx->m; in mpi_mod_barrett()
[all …]
H A Dmpiutil.c24 static MPI constants[MPI_NUMBER_OF_CONSTANTS];
70 MPI mpi_const(enum gcry_mpi_constants no) in mpi_const()
87 MPI mpi_alloc(unsigned nlimbs) in mpi_alloc()
89 MPI a; in mpi_alloc()
132 void mpi_assign_limb_space(MPI a, mpi_ptr_t ap, unsigned nlimbs) in mpi_assign_limb_space()
143 int mpi_resize(MPI a, unsigned nlimbs) in mpi_resize()
166 void mpi_clear(MPI a) in mpi_clear()
175 void mpi_free(MPI a) in mpi_free()
195 MPI mpi_copy(MPI a) in mpi_copy()
198 MPI b; in mpi_copy()
[all …]
H A Dmpi-add.c20 void mpi_add_ui(MPI w, MPI u, unsigned long v) in mpi_add_ui()
67 void mpi_add(MPI w, MPI u, MPI v) in mpi_add()
134 void mpi_sub(MPI w, MPI u, MPI v) in mpi_sub()
136 MPI vv = mpi_copy(v); in mpi_sub()
143 void mpi_addm(MPI w, MPI u, MPI v, MPI m) in mpi_addm()
150 void mpi_subm(MPI w, MPI u, MPI v, MPI m) in mpi_subm()
H A Dec.c114 static void ec_mod(MPI w, struct mpi_ec_ctx *ec) in ec_mod()
122 static void ec_addm(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) in ec_addm()
128 static void ec_subm(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ec) in ec_subm()
136 static void ec_mulm(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) in ec_mulm()
143 static void ec_mul2(MPI w, MPI u, struct mpi_ec_ctx *ctx) in ec_mul2()
149 static void ec_powm(MPI w, const MPI b, const MPI e, in ec_powm()
160 static void ec_pow2(MPI w, const MPI b, struct mpi_ec_ctx *ctx) in ec_pow2()
171 static void ec_pow3(MPI w, const MPI b, struct mpi_ec_ctx *ctx) in ec_pow3()
176 static void ec_invm(MPI x, MPI a, struct mpi_ec_ctx *ctx) in ec_invm()
199 static void ec_addm_25519(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) in ec_addm_25519()
[all …]
H A Dmpi-cmp.c23 int mpi_cmp_ui(MPI u, unsigned long v) in mpi_cmp_ui()
44 static int do_mpi_cmp(MPI u, MPI v, int absmode) in do_mpi_cmp()
84 int mpi_cmp(MPI u, MPI v) in mpi_cmp()
90 int mpi_cmpabs(MPI u, MPI v) in mpi_cmpabs()
H A Dmpi-bit.c30 void mpi_normalize(MPI a) in mpi_normalize()
40 unsigned mpi_get_nbits(MPI a) in mpi_get_nbits()
62 int mpi_test_bit(MPI a, unsigned int n) in mpi_test_bit()
80 void mpi_set_bit(MPI a, unsigned int n) in mpi_set_bit()
99 void mpi_set_highbit(MPI a, unsigned int n) in mpi_set_highbit()
122 void mpi_clear_highbit(MPI a, unsigned int n) in mpi_clear_highbit()
140 void mpi_clear_bit(MPI a, unsigned int n) in mpi_clear_bit()
158 void mpi_rshift_limbs(MPI a, unsigned int count) in mpi_rshift_limbs()
178 void mpi_rshift(MPI x, MPI a, unsigned int n) in mpi_rshift()
250 void mpi_lshift_limbs(MPI a, unsigned int count) in mpi_lshift_limbs()
[all …]
H A Dmpi-mul.c16 void mpi_mul(MPI w, MPI u, MPI v) in mpi_mul()
86 void mpi_mulm(MPI w, MPI u, MPI v, MPI m) in mpi_mulm()
H A Dmpicoder.c36 MPI mpi_read_raw_data(const void *xbuffer, size_t nbytes) in mpi_read_raw_data()
42 MPI val = NULL; in mpi_read_raw_data()
82 MPI mpi_read_from_buffer(const void *xbuffer, unsigned *ret_nread) in mpi_read_from_buffer()
86 MPI val; in mpi_read_from_buffer()
116 int mpi_fromstr(MPI val, const char *str) in mpi_fromstr()
202 MPI mpi_scanval(const char *string) in mpi_scanval()
204 MPI a; in mpi_scanval()
219 static int count_lzeros(MPI a) in count_lzeros()
250 int mpi_read_buffer(MPI a, uint8_t *buf, unsigned buf_len, unsigned *nbytes, in mpi_read_buffer()
310 void *mpi_get_buffer(MPI a, unsigned *nbytes, int *sign) in mpi_get_buffer()
[all …]
H A Dmpi-inv.c27 int mpi_invm(MPI x, MPI a, MPI n) in mpi_invm()
33 MPI u, v, u1, u2 = NULL, u3, v1, v2 = NULL, v3, t1, t2 = NULL, t3; in mpi_invm()
H A Dmpi-pow.c24 int mpi_powm(MPI res, MPI base, MPI exp, MPI mod) in mpi_powm()
H A Dmpi-sub-ui.c37 int mpi_sub_ui(MPI w, MPI u, unsigned long vval) in mpi_sub_ui()
/OK3568_Linux_fs/kernel/crypto/
H A Ddh.c16 MPI p; /* Value is guaranteed to be set. */
17 MPI q; /* Value is optional. */
18 MPI g; /* Value is guaranteed to be set. */
19 MPI xa; /* Value is guaranteed to be set. */
37 static int _compute_val(const struct dh_ctx *ctx, MPI base, MPI val) in _compute_val()
110 static int dh_is_pubkey_valid(struct dh_ctx *ctx, MPI y) in dh_is_pubkey_valid()
126 MPI val = mpi_alloc(0); in dh_is_pubkey_valid()
154 MPI base, val = mpi_alloc(0); in dh_compute_value()
186 MPI pone; in dh_compute_value()
H A Dsm2.c66 MPI p, a, b; in sm2_ec_ctx_init()
67 MPI x, y; in sm2_ec_ctx_init()
133 static int sm2_ecc_os2ec(MPI_POINT result, MPI value) in sm2_ecc_os2ec()
138 MPI x, y; in sm2_ecc_os2ec()
182 MPI sig_r;
183 MPI sig_s;
217 MPI m, unsigned int pbytes) in sm2_z_digest_update()
245 MPI x, y; in sm2_z_digest_update_point()
296 static int _sm2_verify(struct mpi_ec_ctx *ec, MPI hash, MPI sig_r, MPI sig_s) in _sm2_verify()
300 MPI t = NULL; in _sm2_verify()
[all …]
H A Drsa.c16 MPI n;
17 MPI e;
18 MPI d;
25 static int _rsa_enc(const struct rsa_mpi_key *key, MPI c, MPI m) in _rsa_enc()
39 static int _rsa_dec(const struct rsa_mpi_key *key, MPI m, MPI c) in _rsa_dec()
58 MPI m, c = mpi_alloc(0); in rsa_enc()
97 MPI c, m = mpi_alloc(0); in rsa_dec()
/OK3568_Linux_fs/external/rockit/
H A DREADME.md17 Rockit对外提供TGI(TaskGraph Interface)和MPI(Media Process Interface)两套接口,用于应用程序开发,两套接口可单独使用,也可结合使用。
24 ### MPI subsection
26 - MPI接口是模块化接口,包括VI/VO/VDEC/VENC/VPSS/VGS/TDE/SYS/MB/AI/AO/ADEC/AENC等模块,详见mpi/doc/目录文档说明。
27 - MPI支持单模块使用,也支持多模块组合使用,可采用模块间绑定或者手动取/送流方式,灵活构建应用Pipeline。
33 | | TGI | MPI |
40 SDK默认仅开启TGI接口头文件、动态库安装,可根据产品应用需求,通过修改external/rockit目录下CMakeLists.txt,将USE_ROCKIT_MPI置为ON,打开MPI接口编译…
/OK3568_Linux_fs/kernel/Documentation/infiniband/
H A Dtag_matching.rst5 The MPI standard defines a set of rules, known as tag-matching, for matching
28 To keep MPI library memory footprint down, MPI implementations typically use
46 to the MPI receive routines in the posted receive list and posts send messages
47 using the MPI send routines. The head of the posted receive list may be
54 specified receive buffer. This allows overlapping receive-side MPI tag
64 Software is expected to shadow this list, to help with processing MPI cancel
/OK3568_Linux_fs/kernel/drivers/message/fusion/lsi/
H A Dmpi_history.txt3 MPI Header File Change History
77 * 05-11-04 01.03.01 Bumped MPI_VERSION_MINOR for MPI v1.3.
151 * 05-11-04 01.03.01 Original release for MPI v1.3.
244 * 12-04-00 01.01.03 Config page changes to match MPI rev 1.00.01.
269 * defines to make them compatible to MPI version 1.0.
549 * 05-11-04 01.03.01 Original release for MPI v1.3.
593 * of MPI.
605 * 05-11-04 01.03.01 Original release for MPI v1.3.
626 * 01-09-01 01.01.03 Modified some of the new flags to have an MPI prefix
644 * 05-11-04 01.03.01 Original release for MPI v1.3.
[all …]
/OK3568_Linux_fs/external/mpp/
H A Dreadme.txt4 MPI : Media Process Interface
197 | | MPI / MPP | | | |
235 | MPI |
264 Take H.264 deocder for example. Video stream will first queued by MPI/MPP layer,
271 MPI MPP decoder parser HAL
/OK3568_Linux_fs/external/mpp/doc/design/
H A D1.mpp_design.txt56 | | MPI / MPP | | | |
91 MPI (Media Process Interface) / MPP
/OK3568_Linux_fs/buildroot/package/openmpi/
H A DConfig.in15 # in this release of Open MPI"
/OK3568_Linux_fs/docs/cn/Common/NPU/
H A DREADME.md35 - rknn api里面部分demo依赖MPI MMZ/RGA,使用时,需要和系统中相应的库匹配
/OK3568_Linux_fs/external/rockit/tgi/
H A DCMakeLists.txt28 message("use MPI rockit, don't install tgi rockit")
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-devtools/mpich/
H A Dmpich_4.0.2.bb1 SUMMARY = "Message Passing Interface (MPI) implementation"

12