| /freebsd-12-stable/sys/dev/cxgbe/iw_cxgbe/ |
| D | mem.c | 66 u8 wr_len; in _c4iw_write_mem_dma_aligned() local 75 wr_len = roundup(sizeof *ulpmc + sizeof *sgl, 16); in _c4iw_write_mem_dma_aligned() 77 wr = alloc_wrqe(wr_len, &sc->sge.ctrlq[0]); in _c4iw_write_mem_dma_aligned() 82 memset(ulpmc, 0, wr_len); in _c4iw_write_mem_dma_aligned() 83 INIT_ULPTX_WR(ulpmc, wr_len, 0, 0); in _c4iw_write_mem_dma_aligned() 87 ulpmc->wr.wr_mid = cpu_to_be32(V_FW_WR_LEN16(DIV_ROUND_UP(wr_len, 16))); in _c4iw_write_mem_dma_aligned() 92 ulpmc->len16 = cpu_to_be32(DIV_ROUND_UP(wr_len-sizeof(ulpmc->wr), 16)); in _c4iw_write_mem_dma_aligned() 115 u8 wr_len, *to_dp, *from_dp; in _c4iw_write_mem_inline() local 132 wr_len = roundup(sizeof *ulpmc + sizeof *ulpsc + in _c4iw_write_mem_inline() 135 wr = alloc_wrqe(wr_len, &sc->sge.ctrlq[0]); in _c4iw_write_mem_inline() [all …]
|
| D | cq.c | 61 int wr_len; in destroy_cq() local 65 wr_len = sizeof *res_wr + sizeof *res; in destroy_cq() 66 wr = alloc_wrqe(wr_len, &sc->sge.ctrlq[0]); in destroy_cq() 70 memset(res_wr, 0, wr_len); in destroy_cq() 75 res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16)); in destroy_cq() 104 int wr_len; in create_cq() local 134 wr_len = sizeof *res_wr + sizeof *res; in create_cq() 136 wr = alloc_wrqe(wr_len, &sc->sge.ctrlq[0]); in create_cq() 141 memset(res_wr, 0, wr_len); in create_cq() 146 res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16)); in create_cq()
|
| D | qp.c | 136 int wr_len; in create_qp() local 237 wr_len = sizeof *res_wr + 2 * sizeof *res; in create_qp() 239 wr = alloc_wrqe(wr_len, &sc->sge.ctrlq[0]); in create_qp() 246 memset(res_wr, 0, wr_len); in create_qp() 251 res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16)); in create_qp()
|
| /freebsd-12-stable/sys/dev/cxgbe/crypto/ |
| D | t4_crypto.c | 389 u_int wr_len, u_int imm_len, u_int sgl_len, u_int hash_size, in ccr_populate_wreq() argument 402 V_FW_CRYPTO_LOOKASIDE_WR_LEN16(wr_len / 16)); in ccr_populate_wreq() 423 ((wr_len - sizeof(struct fw_crypto_lookaside_wr)) / 16)); in ccr_populate_wreq() 427 idata_len = wr_len - offsetof(struct chcr_wr, sec_cpl) - sgl_len; in ccr_populate_wreq() 441 u_int hash_size_in_response, kctx_flits, kctx_len, transhdr_len, wr_len; in ccr_hash() local 493 wr_len = roundup2(transhdr_len, 16) + roundup2(imm_len, 16) + sgl_len; in ccr_hash() 494 if (wr_len > SGE_MAX_WR_LEN) in ccr_hash() 496 wr = alloc_wrqe(wr_len, sc->txq); in ccr_hash() 502 memset(crwr, 0, wr_len); in ccr_hash() 504 ccr_populate_wreq(sc, crwr, kctx_len, wr_len, imm_len, sgl_len, in ccr_hash() [all …]
|
| /freebsd-12-stable/sys/dev/cxgbe/tom/ |
| D | t4_tls.c | 1085 u_int plen, nsegs, credits, space, max_nsegs_1mbuf, wr_len; in t4_push_tls_records() local 1135 wr_len = sizeof(struct fw_tlstx_data_wr) + in t4_push_tls_records() 1137 if (wr_len + CIPHER_BLOCK_SIZE + 1 > space) { in t4_push_tls_records() 1141 __func__, toep->tid, tx_credits, wr_len + in t4_push_tls_records() 1258 if (wr_len + iv_len <= space) { in t4_push_tls_records() 1260 wr_len += iv_len; in t4_push_tls_records() 1261 if (wr_len + tls_size <= space) { in t4_push_tls_records() 1262 wr_len += tls_size; in t4_push_tls_records() 1301 wr_len += sizeof(struct ulptx_sgl) + in t4_push_tls_records() 1305 wr = alloc_wrqe(roundup2(wr_len, 16), toep->ofld_txq); in t4_push_tls_records() [all …]
|
| D | t4_cpl_io.c | 138 memset(flowc, 0, wr->wr_len); in send_flowc_wr() 233 memset(flowc, 0, wr->wr_len); in update_tx_rate_limit() 848 credits = howmany(wr->wr_len, 16); in t4_push_frames() 853 int wr_len; in t4_push_frames() local 857 wr_len = sizeof(*txwr) + sizeof(struct ulptx_sgl) + in t4_push_frames() 859 wr = alloc_wrqe(roundup2(wr_len, 16), toep->ofld_txq); in t4_push_frames() 866 credits = howmany(wr_len, 16); in t4_push_frames() 870 if (wr_len & 0xf) { in t4_push_frames() 872 ((uintptr_t)txwr + wr_len); in t4_push_frames() 1043 credits = howmany(wr->wr_len, 16); in t4_push_pdus() [all …]
|
| D | t4_listen.c | 370 memset(flowc, 0, wr->wr_len); in send_flowc_wr_synqe()
|
| D | t4_tom.c | 1655 "opcode %x\n", __func__, wr, wr->wr_len, opcode); in reclaim_wr_resources()
|
| /freebsd-12-stable/sys/dev/cxgbe/ |
| D | adapter.h | 655 int wr_len; member 1320 alloc_wrqe(int wr_len, struct sge_wrq *wrq) in alloc_wrqe() argument 1322 int len = offsetof(struct wrqe, wr) + wr_len; in alloc_wrqe() 1328 wr->wr_len = wr_len; in alloc_wrqe()
|
| D | t4_sge.c | 2093 n = howmany(wr->wr_len, EQ_ESIZE); in drain_wrq_wr_list() 2100 bcopy(&wr->wr[0], dst, wr->wr_len); in drain_wrq_wr_list() 2106 if (wr->wr_len > first_portion) { in drain_wrq_wr_list() 2108 wr->wr_len - first_portion); in drain_wrq_wr_list() 2155 MPASS(wr->wr_len > 0 && wr->wr_len <= SGE_MAX_WR_LEN); in t4_wrq_tx_locked() 2156 MPASS((wr->wr_len & 0x7) == 0); in t4_wrq_tx_locked() 2160 wrq->ndesc_needed += howmany(wr->wr_len, EQ_ESIZE); in t4_wrq_tx_locked()
|
| /freebsd-12-stable/sbin/pfctl/ |
| D | pfctl_osfp.c | 346 int wr_len, version_len, subtype_len; in pfctl_get_fingerprint() local 395 wr_len = strlen(ptr); in pfctl_get_fingerprint() 398 if (wr_len < version_len + 2 || in pfctl_get_fingerprint() 409 if (wr_len != version_len + subtype_len + 1) in pfctl_get_fingerprint()
|
| /freebsd-12-stable/sys/dev/cxgbe/cxgbei/ |
| D | icl_cxgbei.c | 557 memset(flowc, 0, wr->wr_len); in send_iscsi_flowc_wr()
|