bdesc 281 drivers/crypto/bcm/spu.c struct BDESC_HEADER *bdesc = (struct BDESC_HEADER *)ptr; bdesc 285 drivers/crypto/bcm/spu.c be16_to_cpu(bdesc->offset_mac), bdesc 286 drivers/crypto/bcm/spu.c be16_to_cpu(bdesc->length_mac)); bdesc 291 drivers/crypto/bcm/spu.c be16_to_cpu(bdesc->offset_crypto), bdesc 292 drivers/crypto/bcm/spu.c be16_to_cpu(bdesc->length_crypto)); bdesc 297 drivers/crypto/bcm/spu.c be16_to_cpu(bdesc->offset_icv), bdesc 298 drivers/crypto/bcm/spu.c be16_to_cpu(bdesc->offset_iv)); bdesc 600 drivers/crypto/bcm/spu.c struct BDESC_HEADER *bdesc; bdesc 790 drivers/crypto/bcm/spu.c bdesc = (struct BDESC_HEADER *)ptr; bdesc 792 drivers/crypto/bcm/spu.c bdesc->offset_mac = cpu_to_be16(auth_offset); bdesc 793 drivers/crypto/bcm/spu.c bdesc->length_mac = cpu_to_be16(auth_len); bdesc 794 drivers/crypto/bcm/spu.c bdesc->offset_crypto = cpu_to_be16(cipher_offset); bdesc 795 drivers/crypto/bcm/spu.c bdesc->length_crypto = cpu_to_be16(cipher_len); bdesc 804 drivers/crypto/bcm/spu.c bdesc->offset_icv = cpu_to_be16(auth_len); bdesc 805 drivers/crypto/bcm/spu.c bdesc->offset_iv = cpu_to_be16(offset_iv); bdesc 940 drivers/crypto/bcm/spu.c struct BDESC_HEADER *bdesc; bdesc 999 drivers/crypto/bcm/spu.c bdesc = (struct BDESC_HEADER *)bdesc_ptr; bdesc 1000 drivers/crypto/bcm/spu.c bdesc->offset_mac = 0; bdesc 1001 drivers/crypto/bcm/spu.c bdesc->length_mac = 0; bdesc 1002 drivers/crypto/bcm/spu.c bdesc->offset_crypto = 0; bdesc 1006 drivers/crypto/bcm/spu.c bdesc->length_crypto = cpu_to_be16(data_size + bdesc 1009 drivers/crypto/bcm/spu.c bdesc->length_crypto = cpu_to_be16(data_size); bdesc 1011 drivers/crypto/bcm/spu.c bdesc->offset_icv = 0; bdesc 1012 drivers/crypto/bcm/spu.c bdesc->offset_iv = 0; bdesc 261 drivers/hwtracing/intel_th/msu.c static inline bool msc_block_is_empty(struct msc_block_desc *bdesc) bdesc 264 drivers/hwtracing/intel_th/msu.c if (!bdesc->valid_dw) bdesc 268 drivers/hwtracing/intel_th/msu.c if (!msc_data_sz(bdesc)) bdesc 327 drivers/hwtracing/intel_th/msu.c struct msc_block_desc *bdesc = sg_virt(sg); bdesc 329 drivers/hwtracing/intel_th/msu.c if (msc_block_wrapped(bdesc)) bdesc 332 drivers/hwtracing/intel_th/msu.c size += msc_total_sz(bdesc); bdesc 333 drivers/hwtracing/intel_th/msu.c if (msc_block_last_written(bdesc)) bdesc 411 drivers/hwtracing/intel_th/msu.c struct msc_block_desc *bdesc = msc_win_base(win); bdesc 414 drivers/hwtracing/intel_th/msu.c if (!msc_block_wrapped(bdesc)) bdesc 422 drivers/hwtracing/intel_th/msu.c struct msc_block_desc *bdesc = sg_virt(sg); bdesc 424 drivers/hwtracing/intel_th/msu.c if (msc_block_last_written(bdesc)) bdesc 661 drivers/hwtracing/intel_th/msu.c struct msc_block_desc *bdesc = sg_virt(sg); bdesc 663 drivers/hwtracing/intel_th/msu.c memset(&bdesc->hw_tag, 0, hw_sz); bdesc 1191 drivers/hwtracing/intel_th/msu.c struct msc_block_desc *bdesc = sg_virt(sg); bdesc 1193 drivers/hwtracing/intel_th/msu.c memset(bdesc, 0, sizeof(*bdesc)); bdesc 1195 drivers/hwtracing/intel_th/msu.c bdesc->next_win = msc_win_base_pfn(next_win); bdesc 1203 drivers/hwtracing/intel_th/msu.c bdesc->next_blk = msc_win_base_pfn(win); bdesc 1207 drivers/hwtracing/intel_th/msu.c bdesc->next_blk = PFN_DOWN(addr); bdesc 1210 drivers/hwtracing/intel_th/msu.c bdesc->sw_tag = sw_tag; bdesc 1211 drivers/hwtracing/intel_th/msu.c bdesc->block_sz = sg->length / 64; bdesc 80 drivers/hwtracing/intel_th/msu.h static inline unsigned long msc_data_sz(struct msc_block_desc *bdesc) bdesc 82 drivers/hwtracing/intel_th/msu.h if (!bdesc->valid_dw) bdesc 85 drivers/hwtracing/intel_th/msu.h return bdesc->valid_dw * 4 - MSC_BDESC; bdesc 88 drivers/hwtracing/intel_th/msu.h static inline unsigned long msc_total_sz(struct msc_block_desc *bdesc) bdesc 90 drivers/hwtracing/intel_th/msu.h return bdesc->valid_dw * 4; bdesc 93 drivers/hwtracing/intel_th/msu.h static inline unsigned long msc_block_sz(struct msc_block_desc *bdesc) bdesc 95 drivers/hwtracing/intel_th/msu.h return bdesc->block_sz * 64 - MSC_BDESC; bdesc 98 drivers/hwtracing/intel_th/msu.h static inline bool msc_block_wrapped(struct msc_block_desc *bdesc) bdesc 100 drivers/hwtracing/intel_th/msu.h if (bdesc->hw_tag & (MSC_HW_TAG_BLOCKWRAP | MSC_HW_TAG_WINWRAP)) bdesc 106 drivers/hwtracing/intel_th/msu.h static inline bool msc_block_last_written(struct msc_block_desc *bdesc) bdesc 108 drivers/hwtracing/intel_th/msu.h if ((bdesc->hw_tag & MSC_HW_TAG_ENDBIT) || bdesc 109 drivers/hwtracing/intel_th/msu.h (msc_data_sz(bdesc) != msc_block_sz(bdesc)))