• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/cxgbe/crypto/

Lines Matching defs:crwr

416     struct chcr_wr *crwr, u_int kctx_len, u_int wr_len, u_int imm_len,
422 crwr->wreq.op_to_cctx_size = htobe32(
428 crwr->wreq.len16_pkd = htobe32(
430 crwr->wreq.session_id = 0;
431 crwr->wreq.rx_chid_to_rx_q_id = htobe32(
439 crwr->wreq.key_addr = 0;
440 crwr->wreq.pld_size_hash_size = htobe32(
443 crwr->wreq.cookie = htobe64((uintptr_t)crp);
445 crwr->ulptx.cmd_dest = htobe32(V_ULPTX_CMD(ULP_TX_PKT) |
450 crwr->ulptx.len = htobe32(
453 crwr->sc_imm.cmd_more = htobe32(V_ULPTX_CMD(ULP_TX_SC_IMM) |
458 crwr->sc_imm.len = htobe32(idata_len);
464 struct chcr_wr *crwr;
526 crwr = wrtod(wr);
527 memset(crwr, 0, wr_len);
529 ccr_populate_wreq(sc, s, crwr, kctx_len, wr_len, imm_len, sgl_len,
532 crwr->sec_cpl.op_ivinsrtofst = htobe32(
539 crwr->sec_cpl.pldlen = htobe32(crp->crp_payload_length == 0 ?
542 crwr->sec_cpl.cipherstop_lo_authinsert = htobe32(
546 crwr->sec_cpl.seqno_numivs = htobe32(
552 crwr->sec_cpl.ivgen_hdrlen = htobe32(
557 memcpy(crwr->key_ctx.key, s->hmac.pads, kctx_len);
561 crwr->key_ctx.ctx_hdr = htobe32(V_KEY_CONTEXT_CTX_LEN(kctx_flits) |
567 dst = (char *)(crwr + 1) + kctx_len + DUMMY_BYTES;
609 struct chcr_wr *crwr;
681 crwr = wrtod(wr);
682 memset(crwr, 0, wr_len);
689 ccr_populate_wreq(sc, s, crwr, kctx_len, wr_len, imm_len, sgl_len, 0,
692 crwr->sec_cpl.op_ivinsrtofst = htobe32(
699 crwr->sec_cpl.pldlen = htobe32(iv_len + crp->crp_payload_length);
701 crwr->sec_cpl.aadstart_cipherstop_hi = htobe32(
704 crwr->sec_cpl.cipherstop_lo_authinsert = htobe32(
708 crwr->sec_cpl.seqno_numivs = htobe32(
717 crwr->sec_cpl.ivgen_hdrlen = htobe32(
722 crwr->key_ctx.ctx_hdr = s->blkcipher.key_ctx_hdr;
726 memcpy(crwr->key_ctx.key, s->blkcipher.enckey,
729 memcpy(crwr->key_ctx.key, s->blkcipher.deckey,
733 memcpy(crwr->key_ctx.key, s->blkcipher.enckey,
738 memcpy(crwr->key_ctx.key, s->blkcipher.enckey + key_half,
741 memcpy(crwr->key_ctx.key + key_half,
744 memcpy(crwr->key_ctx.key + key_half,
749 dst = (char *)(crwr + 1) + kctx_len;
801 struct chcr_wr *crwr;
982 crwr = wrtod(wr);
983 memset(crwr, 0, wr_len);
990 ccr_populate_wreq(sc, s, crwr, kctx_len, wr_len, imm_len, sgl_len,
993 crwr->sec_cpl.op_ivinsrtofst = htobe32(
1000 crwr->sec_cpl.pldlen = htobe32(iv_len + input_len);
1002 crwr->sec_cpl.aadstart_cipherstop_hi = htobe32(
1007 crwr->sec_cpl.cipherstop_lo_authinsert = htobe32(
1015 crwr->sec_cpl.seqno_numivs = htobe32(
1025 crwr->sec_cpl.ivgen_hdrlen = htobe32(
1030 crwr->key_ctx.ctx_hdr = s->blkcipher.key_ctx_hdr;
1034 memcpy(crwr->key_ctx.key, s->blkcipher.enckey,
1037 memcpy(crwr->key_ctx.key, s->blkcipher.deckey,
1041 memcpy(crwr->key_ctx.key, s->blkcipher.enckey,
1046 memcpy(crwr->key_ctx.key, s->blkcipher.enckey + key_half,
1049 memcpy(crwr->key_ctx.key + key_half,
1052 memcpy(crwr->key_ctx.key + key_half,
1057 dst = crwr->key_ctx.key + roundup2(s->blkcipher.key_len, 16);
1060 dst = (char *)(crwr + 1) + kctx_len;
1106 struct chcr_wr *crwr;
1290 crwr = wrtod(wr);
1291 memset(crwr, 0, wr_len);
1297 ccr_populate_wreq(sc, s, crwr, kctx_len, wr_len, imm_len, sgl_len, 0,
1300 crwr->sec_cpl.op_ivinsrtofst = htobe32(
1307 crwr->sec_cpl.pldlen = htobe32(iv_len + input_len);
1318 crwr->sec_cpl.aadstart_cipherstop_hi = htobe32(
1323 crwr->sec_cpl.cipherstop_lo_authinsert = htobe32(
1331 crwr->sec_cpl.seqno_numivs = htobe32(
1341 crwr->sec_cpl.ivgen_hdrlen = htobe32(
1346 crwr->key_ctx.ctx_hdr = s->blkcipher.key_ctx_hdr;
1347 memcpy(crwr->key_ctx.key, s->blkcipher.enckey, s->blkcipher.key_len);
1348 dst = crwr->key_ctx.key + roundup2(s->blkcipher.key_len, 16);
1351 dst = (char *)(crwr + 1) + kctx_len;
1584 struct chcr_wr *crwr;
1761 crwr = wrtod(wr);
1762 memset(crwr, 0, wr_len);
1772 ccr_populate_wreq(sc, s, crwr, kctx_len, wr_len, imm_len, sgl_len, 0,
1775 crwr->sec_cpl.op_ivinsrtofst = htobe32(
1782 crwr->sec_cpl.pldlen = htobe32(iv_len + input_len);
1788 crwr->sec_cpl.aadstart_cipherstop_hi = htobe32(
1793 crwr->sec_cpl.cipherstop_lo_authinsert = htobe32(
1801 crwr->sec_cpl.seqno_numivs = htobe32(
1811 crwr->sec_cpl.ivgen_hdrlen = htobe32(
1816 crwr->key_ctx.ctx_hdr = s->blkcipher.key_ctx_hdr;
1817 memcpy(crwr->key_ctx.key, s->blkcipher.enckey, s->blkcipher.key_len);
1818 memcpy(crwr->key_ctx.key + roundup(s->blkcipher.key_len, 16),
1821 dst = (char *)(crwr + 1) + kctx_len;