Home
last modified time | relevance | path

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

/linux/drivers/media/platform/qcom/venus/
H A Dhfi_msgs.c36 u32 ptype, rem_bytes; in event_seq_changed() local
59 rem_bytes = pkt->shdr.hdr.size - sizeof(*pkt); in event_seq_changed()
62 if (rem_bytes < sizeof(u32)) in event_seq_changed()
67 rem_bytes -= sizeof(u32); in event_seq_changed()
71 if (rem_bytes < sizeof(struct hfi_framesize)) in event_seq_changed()
80 if (rem_bytes < sizeof(struct hfi_profile_level)) in event_seq_changed()
89 if (rem_bytes < sizeof(struct hfi_bit_depth)) in event_seq_changed()
97 if (rem_bytes < sizeof(struct hfi_pic_struct)) in event_seq_changed()
105 if (rem_bytes < sizeof(struct hfi_colour_space)) in event_seq_changed()
113 if (rem_bytes < sizeof(u32)) in event_seq_changed()
[all …]
H A Dhfi_parser.c305 u32 rem_bytes = size; in hfi_parser() local
327 if (rem_bytes <= sizeof(struct hfi_codec_supported)) in hfi_parser()
337 if (rem_bytes <= sizeof(struct hfi_max_sessions_supported)) in hfi_parser()
343 if (rem_bytes <= sizeof(struct hfi_codec_mask_supported)) in hfi_parser()
349 if (rem_bytes <= sizeof(struct hfi_uncompressed_format_supported)) in hfi_parser()
355 if (rem_bytes <= sizeof(struct hfi_capabilities)) in hfi_parser()
361 if (rem_bytes <= sizeof(struct hfi_profile_level_supported)) in hfi_parser()
367 if (rem_bytes <= sizeof(struct hfi_buffer_alloc_mode_supported)) in hfi_parser()
381 rem_bytes -= ret; in hfi_parser()
/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 …]
H A Dcaamalg_qi2.c659 int rem_bytes = CAAM_DESC_BYTES_MAX - DESC_JOB_IO_LEN - in gcm_set_sh_desc() local
670 if (rem_bytes >= DESC_QI_GCM_ENC_LEN) { in gcm_set_sh_desc()
690 if (rem_bytes >= DESC_QI_GCM_DEC_LEN) { in gcm_set_sh_desc()
751 int rem_bytes = CAAM_DESC_BYTES_MAX - DESC_JOB_IO_LEN - in rfc4106_set_sh_desc() local
764 if (rem_bytes >= DESC_QI_RFC4106_ENC_LEN) { in rfc4106_set_sh_desc()
784 if (rem_bytes >= DESC_QI_RFC4106_DEC_LEN) { in rfc4106_set_sh_desc()
852 int rem_bytes = CAAM_DESC_BYTES_MAX - DESC_JOB_IO_LEN - in rfc4543_set_sh_desc() local
865 if (rem_bytes >= DESC_QI_RFC4543_ENC_LEN) { in rfc4543_set_sh_desc()
885 if (rem_bytes >= DESC_QI_RFC4543_DEC_LEN) { in rfc4543_set_sh_desc()
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt.c2570 u32 mem_size, pages, rem_bytes, magic_byte_offset; in bnxt_bs_trace_init() local
2581 rem_bytes = mem_size % BNXT_PAGE_SIZE; in bnxt_bs_trace_init()
2585 magic_byte_offset = (rem_bytes ? rem_bytes : BNXT_PAGE_SIZE) - 1; in bnxt_bs_trace_init()