Lines Matching refs:qs

326     struct qat_session *qs, uint32_t cd_blk_offset,
336 cipher_cd_ctrl->cipher_key_sz = qs->qs_cipher_klen >> 3;
341 return roundup(sizeof(struct hw_cipher_config) + qs->qs_cipher_klen, 8);
346 const struct qat_session *qs, const struct cryptop *crp,
352 qat_crypto_load_cipher_session(desc, qs);
356 key = qs->qs_cipher_key;
357 memcpy(cipher->max.key, key, qs->qs_cipher_klen);
362 struct qat_session *qs, uint32_t cd_blk_offset,
369 (void)qat_crypto_load_auth_session(desc, qs, &hash_def);
401 const struct qat_session *qs, const struct cryptop *crp,
409 qat_crypto_load_auth_session(desc, qs, &hash_def);
416 switch (qs->qs_auth_algo) {
421 else if (qs->qs_cipher_key != NULL)
422 key = qs->qs_cipher_key;
425 qs->qs_cipher_klen, hash_def, state2);
432 switch (qs->qs_auth_mode) {
443 key = qs->qs_auth_key;
446 qs->qs_auth_klen, hash_def, state1, state2);
451 qs->qs_auth_mode);
456 qs->qs_auth_algo);
477 qat_hw17_crypto_setup_desc(struct qat_crypto *qcy, struct qat_session *qs,
501 qs, cd_blk_offset, req_tmpl,
503 qat_hw17_crypto_setup_cipher_cdesc(desc, qs, NULL,
510 qs, cd_blk_offset, req_tmpl,
512 qat_hw17_crypto_setup_auth_cdesc(desc, qs, NULL, auth);
526 if (qs->qs_auth_algo == HW_AUTH_ALGO_GALOIS_128)
530 bus_dmamap_sync(qs->qs_desc_mem.qdm_dma_tag,
531 qs->qs_desc_mem.qdm_dma_map, BUS_DMASYNC_PREWRITE);
536 const struct qat_session *qs, struct qat_sym_cookie *qsc,
551 qat_hw17_crypto_setup_cipher_cdesc(desc, qs, crp,
557 qat_hw17_crypto_setup_auth_cdesc(desc, qs, crp, auth);
572 struct qat_session *qs, const struct qat_crypto_desc *desc,
599 qat_hw17_crypto_req_setkey(desc, qs, qsc, bulk_req, crp);
616 if (qs->qs_auth_algo == HW_AUTH_ALGO_GALOIS_128) {
646 bus_dmamap_sync(qs->qs_desc_mem.qdm_dma_tag,
647 qs->qs_desc_mem.qdm_dma_map,