Searched refs:bdesc (Results 1 – 3 of 3) sorted by relevance
80 static inline unsigned long msc_data_sz(struct msc_block_desc *bdesc) in msc_data_sz() argument82 if (!bdesc->valid_dw) in msc_data_sz()85 return bdesc->valid_dw * 4 - MSC_BDESC; in msc_data_sz()88 static inline unsigned long msc_total_sz(struct msc_block_desc *bdesc) in msc_total_sz() argument90 return bdesc->valid_dw * 4; in msc_total_sz()93 static inline unsigned long msc_block_sz(struct msc_block_desc *bdesc) in msc_block_sz() argument95 return bdesc->block_sz * 64 - MSC_BDESC; in msc_block_sz()98 static inline bool msc_block_wrapped(struct msc_block_desc *bdesc) in msc_block_wrapped() argument100 if (bdesc->hw_tag & (MSC_HW_TAG_BLOCKWRAP | MSC_HW_TAG_WINWRAP)) in msc_block_wrapped()106 static inline bool msc_block_last_written(struct msc_block_desc *bdesc) in msc_block_last_written() argument[all …]
261 static inline bool msc_block_is_empty(struct msc_block_desc *bdesc) in msc_block_is_empty() argument264 if (!bdesc->valid_dw) in msc_block_is_empty()268 if (!msc_data_sz(bdesc)) in msc_block_is_empty()327 struct msc_block_desc *bdesc = sg_virt(sg); in msc_win_total_sz() local329 if (msc_block_wrapped(bdesc)) in msc_win_total_sz()332 size += msc_total_sz(bdesc); in msc_win_total_sz()333 if (msc_block_last_written(bdesc)) in msc_win_total_sz()411 struct msc_block_desc *bdesc = msc_win_base(win); in msc_win_oldest_sg() local414 if (!msc_block_wrapped(bdesc)) in msc_win_oldest_sg()422 struct msc_block_desc *bdesc = sg_virt(sg); in msc_win_oldest_sg() local[all …]
281 struct BDESC_HEADER *bdesc = (struct BDESC_HEADER *)ptr; in spum_dump_msg_hdr() local285 be16_to_cpu(bdesc->offset_mac), in spum_dump_msg_hdr()286 be16_to_cpu(bdesc->length_mac)); in spum_dump_msg_hdr()291 be16_to_cpu(bdesc->offset_crypto), in spum_dump_msg_hdr()292 be16_to_cpu(bdesc->length_crypto)); in spum_dump_msg_hdr()297 be16_to_cpu(bdesc->offset_icv), in spum_dump_msg_hdr()298 be16_to_cpu(bdesc->offset_iv)); in spum_dump_msg_hdr()600 struct BDESC_HEADER *bdesc; in spum_create_request() local790 bdesc = (struct BDESC_HEADER *)ptr; in spum_create_request()792 bdesc->offset_mac = cpu_to_be16(auth_offset); in spum_create_request()[all …]