Lines Matching defs:qs

528     struct qat_session *qs, struct fw_cipher_hdr *cipher_hdr,
534 cipher_hdr->key_sz = qs->qs_cipher_klen / 8;
543 return sizeof(struct hw_cipher_config) + qs->qs_cipher_klen;
548 const struct qat_session *qs, const struct cryptop *crp,
554 cipher_config->val = qat_crypto_load_cipher_session(desc, qs);
561 key = qs->qs_cipher_key;
562 memcpy(cipher_key, key, qs->qs_cipher_klen);
567 struct qat_session *qs, struct fw_auth_hdr *auth_hdr,
573 (void)qat_crypto_load_auth_session(desc, qs, &hash_def);
612 const struct qat_session *qs, const struct cryptop *crp,
620 auth_setup->auth_config.config = qat_crypto_load_auth_session(desc, qs,
630 switch (qs->qs_auth_algo) {
632 qat_crypto_gmac_precompute(desc, qs->qs_cipher_key,
633 qs->qs_cipher_klen, hash_def, state2);
639 if (qs->qs_auth_mode == HW_AUTH_MODE1) {
651 switch (qs->qs_auth_mode) {
662 key = qs->qs_auth_key;
665 qs->qs_auth_klen, hash_def, state1, state2);
670 qs->qs_auth_mode);
675 qs->qs_auth_algo);
680 qat_hw15_crypto_setup_desc(struct qat_crypto *qcy, struct qat_session *qs,
695 if (qs->qs_cipher_algo != HW_CIPHER_ALGO_NULL)
697 if (qs->qs_auth_algo != HW_AUTH_ALGO_NULL)
716 qs, cipher_hdr, hw_blk_offset,
718 qat_hw15_crypto_setup_cipher_config(desc, qs, NULL,
730 qs, auth_hdr, ctrl_blk_offset, hw_blk_offset,
732 qat_hw15_crypto_setup_auth_setup(desc, qs, NULL,
756 if (qs->qs_auth_algo == HW_AUTH_ALGO_GALOIS_128)
764 bus_dmamap_sync(qs->qs_desc_mem.qdm_dma_tag,
765 qs->qs_desc_mem.qdm_dma_map, BUS_DMASYNC_PREWRITE);
770 const struct qat_session *qs, struct qat_sym_cookie *qsc,
785 qat_hw15_crypto_setup_cipher_config(desc, qs, crp,
791 qat_hw15_crypto_setup_auth_setup(desc, qs, crp,
807 struct qat_session *qs, struct qat_crypto_desc const *desc,
840 qat_hw15_crypto_req_setkey(desc, qs, qsc, bulk_req, crp);
854 if (qs->qs_auth_algo == HW_AUTH_ALGO_GALOIS_128) {
907 bus_dmamap_sync(qs->qs_desc_mem.qdm_dma_tag,
908 qs->qs_desc_mem.qdm_dma_map,