Lines Matching refs:cpl
154 struct cpl_act_open_req *cpl; in mk_ktls_act_open_req() local
159 cpl = (struct cpl_act_open_req *)cpl6; in mk_ktls_act_open_req()
163 OPCODE_TID(cpl) = htobe32(MK_OPCODE_TID(CPL_ACT_OPEN_REQ, in mk_ktls_act_open_req()
165 inp_4tuple_get(inp, &cpl->local_ip, &cpl->local_port, in mk_ktls_act_open_req()
166 &cpl->peer_ip, &cpl->peer_port); in mk_ktls_act_open_req()
171 cpl->opt0 = htobe64(options); in mk_ktls_act_open_req()
176 cpl->opt2 = htobe32(options); in mk_ktls_act_open_req()
185 struct cpl_act_open_req6 *cpl; in mk_ktls_act_open_req6() local
190 cpl = (struct cpl_act_open_req6 *)cpl6; in mk_ktls_act_open_req6()
194 OPCODE_TID(cpl) = htobe32(MK_OPCODE_TID(CPL_ACT_OPEN_REQ6, in mk_ktls_act_open_req6()
196 cpl->local_port = inp->inp_lport; in mk_ktls_act_open_req6()
197 cpl->local_ip_hi = *(uint64_t *)&inp->in6p_laddr.s6_addr[0]; in mk_ktls_act_open_req6()
198 cpl->local_ip_lo = *(uint64_t *)&inp->in6p_laddr.s6_addr[8]; in mk_ktls_act_open_req6()
199 cpl->peer_port = inp->inp_fport; in mk_ktls_act_open_req6()
200 cpl->peer_ip_hi = *(uint64_t *)&inp->in6p_faddr.s6_addr[0]; in mk_ktls_act_open_req6()
201 cpl->peer_ip_lo = *(uint64_t *)&inp->in6p_faddr.s6_addr[8]; in mk_ktls_act_open_req6()
206 cpl->opt0 = htobe64(options); in mk_ktls_act_open_req6()
211 cpl->opt2 = htobe32(options); in mk_ktls_act_open_req6()
250 const struct cpl_act_open_rpl *cpl = (const void *)(rss + 1); in ktls_act_open_rpl() local
251 u_int atid = G_TID_TID(G_AOPEN_ATID(be32toh(cpl->atid_status))); in ktls_act_open_rpl()
252 u_int status = G_AOPEN_STATUS(be32toh(cpl->atid_status)); in ktls_act_open_rpl()
259 tlsp->tid = GET_TID(cpl); in ktls_act_open_rpl()
281 struct cpl_set_tcb_field_core *cpl; in write_set_tcb_field_ulp() local
294 idata->len = htobe32(sizeof(*cpl)); in write_set_tcb_field_ulp()
297 cpl = (struct cpl_set_tcb_field_core *)(idata + 1); in write_set_tcb_field_ulp()
298 OPCODE_TID(cpl) = htobe32(MK_OPCODE_TID(CPL_SET_TCB_FIELD, tlsp->tid)); in write_set_tcb_field_ulp()
299 cpl->reply_ctrl = htobe16(F_NO_REPLY); in write_set_tcb_field_ulp()
300 cpl->word_cookie = htobe16(V_WORD(word)); in write_set_tcb_field_ulp()
301 cpl->mask = htobe64(mask); in write_set_tcb_field_ulp()
302 cpl->val = htobe64(val); in write_set_tcb_field_ulp()
305 idata = (struct ulptx_idata *)(cpl + 1); in write_set_tcb_field_ulp()
1114 struct cpl_tx_pkt_core *cpl; in ktls_write_tcp_options() local
1142 cpl = (void *)(wr + 1); in ktls_write_tcp_options()
1145 cpl->ctrl0 = txq->cpl_ctrl0; in ktls_write_tcp_options()
1146 cpl->pack = 0; in ktls_write_tcp_options()
1147 cpl->len = htobe16(pktlen); in ktls_write_tcp_options()
1149 out = (void *)(cpl + 1); in ktls_write_tcp_options()
1178 cpl->ctrl1 = htobe64(ctrl1); in ktls_write_tcp_options()
1209 struct cpl_tx_pkt_core *cpl; in ktls_write_tunnel_packet() local
1243 cpl = (void *)(wr + 1); in ktls_write_tunnel_packet()
1246 cpl->ctrl0 = txq->cpl_ctrl0; in ktls_write_tunnel_packet()
1247 cpl->pack = 0; in ktls_write_tunnel_packet()
1248 cpl->len = htobe16(pktlen); in ktls_write_tunnel_packet()
1250 out = (void *)(cpl + 1); in ktls_write_tunnel_packet()
1279 cpl->ctrl1 = htobe64(ctrl1); in ktls_write_tunnel_packet()
1860 struct cpl_tx_pkt_core *cpl; in ktls_write_tcp_fin() local
1888 cpl = (void *)(wr + 1); in ktls_write_tcp_fin()
1891 cpl->ctrl0 = txq->cpl_ctrl0; in ktls_write_tcp_fin()
1892 cpl->pack = 0; in ktls_write_tcp_fin()
1893 cpl->len = htobe16(pktlen); in ktls_write_tcp_fin()
1895 out = (void *)(cpl + 1); in ktls_write_tcp_fin()
1924 cpl->ctrl1 = htobe64(ctrl1); in ktls_write_tcp_fin()