Lines Matching defs:eo_nbw
340 * We write eo_nbw (ECC operand Size) u64, value that depends of the chosen
351 * @param eo_nbw: is ECC Operand size in 64bits word (including the extra 0)
354 * -EINVAL if data_size and eo_nbw are inconsistent, ie data doesn't
355 * fit in defined eo_nbw, or eo_nbw bigger than hardware limit.
358 unsigned int eo_nbw)
363 if ((eo_nbw < OP_NBW_FROM_SIZE(data_size)) || (eo_nbw > MAX_EO_NBW)) {
369 for (word_index = 0U; word_index < eo_nbw; word_index++) {
399 unsigned int eo_nbw = get_ecc_op_nbword(cid);
405 ret = write_eo_data(base + _PKA_RAM_A, curve_def[cid].a, curve_def[cid].a_size, eo_nbw);
412 eo_nbw);
418 div_round_up(curve_def[cid].p_len, UINT8_LEN), eo_nbw);
423 ret = write_eo_data(base + _PKA_RAM_XG, curve_def[cid].xg, curve_def[cid].xg_size, eo_nbw);
428 ret = write_eo_data(base + _PKA_RAM_YG, curve_def[cid].yg, curve_def[cid].yg_size, eo_nbw);
618 unsigned int eo_nbw = get_ecc_op_nbword(cid);
650 ret = write_eo_data(base + _PKA_RAM_XQ, pk_x_ptr, pk_x_size, eo_nbw);
655 ret = write_eo_data(base + _PKA_RAM_YQ, pk_y_ptr, pk_y_size, eo_nbw);
661 ret = write_eo_data(base + _PKA_RAM_HASH_Z, hash, hash_size, eo_nbw);
667 ret = write_eo_data(base + _PKA_RAM_SIGN_R, sig_r_ptr, sig_r_size, eo_nbw);
672 ret = write_eo_data(base + _PKA_RAM_SIGN_S, sig_s_ptr, sig_s_size, eo_nbw);