Home
last modified time | relevance | path

Searched refs:rem_bytes (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/crypto/caam/
H A Ddesc_constr.h542 int rem_bytes = (int)(CAAM_DESC_BYTES_MAX - sd_base_len - jd_len); in desc_inline_query() local
546 for (i = 0; (i < count) && (rem_bytes > 0); i++) { in desc_inline_query()
547 if (rem_bytes - (int)(data_len[i] + in desc_inline_query()
549 rem_bytes -= data_len[i]; in desc_inline_query()
552 rem_bytes -= CAAM_PTR_SZ; in desc_inline_query()
556 return (rem_bytes >= 0) ? 0 : -1; in desc_inline_query()
H A Dcaamalg_qi.c309 int rem_bytes = CAAM_DESC_BYTES_MAX - DESC_JOB_IO_LEN - in gcm_set_sh_desc() local
319 if (rem_bytes >= DESC_QI_GCM_ENC_LEN) { in gcm_set_sh_desc()
334 if (rem_bytes >= DESC_QI_GCM_DEC_LEN) { in gcm_set_sh_desc()
412 int rem_bytes = CAAM_DESC_BYTES_MAX - DESC_JOB_IO_LEN - in rfc4106_set_sh_desc() local
424 if (rem_bytes >= DESC_QI_RFC4106_ENC_LEN) { in rfc4106_set_sh_desc()
438 if (rem_bytes >= DESC_QI_RFC4106_DEC_LEN) { in rfc4106_set_sh_desc()
520 int rem_bytes = CAAM_DESC_BYTES_MAX - DESC_JOB_IO_LEN - in rfc4543_set_sh_desc() local
532 if (rem_bytes >= DESC_QI_RFC4543_ENC_LEN) { in rfc4543_set_sh_desc()
546 if (rem_bytes >= DESC_QI_RFC4543_DEC_LEN) { in rfc4543_set_sh_desc()
H A Dcaamalg.c152 int rem_bytes = CAAM_DESC_BYTES_MAX - AEAD_DESC_JOB_IO_LEN - in aead_null_set_sh_desc() local
159 if (rem_bytes >= DESC_AEAD_NULL_ENC_LEN) { in aead_null_set_sh_desc()
178 if (rem_bytes >= DESC_AEAD_NULL_DEC_LEN) { in aead_null_set_sh_desc()
344 int rem_bytes = CAAM_DESC_BYTES_MAX - GCM_DESC_JOB_IO_LEN - in gcm_set_sh_desc() local
355 if (rem_bytes >= DESC_GCM_ENC_LEN) { in gcm_set_sh_desc()
372 if (rem_bytes >= DESC_GCM_DEC_LEN) { in gcm_set_sh_desc()
409 int rem_bytes = CAAM_DESC_BYTES_MAX - GCM_DESC_JOB_IO_LEN - in rfc4106_set_sh_desc() local
420 if (rem_bytes >= DESC_RFC4106_ENC_LEN) { in rfc4106_set_sh_desc()
438 if (rem_bytes >= DESC_RFC4106_DEC_LEN) { in rfc4106_set_sh_desc()
477 int rem_bytes = CAAM_DESC_BYTES_MAX - GCM_DESC_JOB_IO_LEN - in rfc4543_set_sh_desc() local
[all …]
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt.c2559 u32 mem_size, pages, rem_bytes, magic_byte_offset; in bnxt_bs_trace_init() local
2570 rem_bytes = mem_size % BNXT_PAGE_SIZE; in bnxt_bs_trace_init()
2574 magic_byte_offset = (rem_bytes ? rem_bytes : BNXT_PAGE_SIZE) - 1; in bnxt_bs_trace_init()