Home
last modified time | relevance | path

Searched refs:toep (Results 1 – 12 of 12) sorted by relevance

/freebsd-12-stable/sys/dev/cxgbe/tom/
Dt4_cpl_io.c77 static void t4_aiotx_queue_toep(struct socket *so, struct toepcb *toep);
102 send_flowc_wr(struct toepcb *toep, struct tcpcb *tp) in send_flowc_wr() argument
107 struct vi_info *vi = toep->vi; in send_flowc_wr()
111 struct ofld_tx_sdesc *txsd = &toep->txsd[toep->txsd_pidx]; in send_flowc_wr()
113 KASSERT(!(toep->flags & TPF_FLOWC_WR_SENT), in send_flowc_wr()
114 ("%s: flowc for tid %u sent already", __func__, toep->tid)); in send_flowc_wr()
120 if (ulp_mode(toep) == ULP_MODE_TLS) in send_flowc_wr()
122 if (toep->tls.fcplenmax != 0) in send_flowc_wr()
124 if (toep->params.tc_idx != -1) { in send_flowc_wr()
125 MPASS(toep->params.tc_idx >= 0 && in send_flowc_wr()
[all …]
Dt4_ddp.c79 static void ddp_complete_all(struct toepcb *toep, int error);
149 recycle_pageset(struct toepcb *toep, struct pageset *ps) in recycle_pageset() argument
152 DDP_ASSERT_LOCKED(toep); in recycle_pageset()
153 if (!(toep->ddp.flags & DDP_DEAD) && ps->flags & PS_WIRED) { in recycle_pageset()
154 KASSERT(toep->ddp.cached_count + toep->ddp.active_count < in recycle_pageset()
155 nitems(toep->ddp.db), ("too many wired pagesets")); in recycle_pageset()
156 TAILQ_INSERT_HEAD(&toep->ddp.cached_pagesets, ps, link); in recycle_pageset()
157 toep->ddp.cached_count++; in recycle_pageset()
159 free_pageset(toep->td, ps); in recycle_pageset()
199 ddp_init_toep(struct toepcb *toep) in ddp_init_toep() argument
[all …]
Dt4_connect.c80 struct toepcb *toep = lookup_atid(sc, atid); in do_act_establish() local
81 struct inpcb *inp = toep->inp; in do_act_establish()
84 KASSERT(toep->tid == atid, ("%s: toep tid/atid mismatch", __func__)); in do_act_establish()
89 CURVNET_SET(toep->vnet); in do_act_establish()
91 toep->tid = tid; in do_act_establish()
92 insert_tid(sc, tid, toep, inp->inp_vflag & INP_IPV6 ? 2 : 1); in do_act_establish()
97 send_flowc_wr(toep, NULL); in do_act_establish()
98 send_reset(sc, toep, be32toh(cpl->snd_isn)); in do_act_establish()
102 make_established(toep, be32toh(cpl->snd_isn) - 1, in do_act_establish()
105 if (ulp_mode(toep) == ULP_MODE_TLS) in do_act_establish()
[all …]
Dt4_tls.c67 t4_set_tls_tcb_field(struct toepcb *toep, uint16_t word, uint64_t mask, in t4_set_tls_tcb_field() argument
70 struct adapter *sc = td_adapter(toep->td); in t4_set_tls_tcb_field()
72 t4_set_tcb_field(sc, toep->ofld_txq, toep, word, mask, val, 0, 0); in t4_set_tls_tcb_field()
84 tls_tx_key(struct toepcb *toep) in tls_tx_key() argument
86 struct tls_ofld_info *tls_ofld = &toep->tls; in tls_tx_key()
92 tls_rx_key(struct toepcb *toep) in tls_rx_key() argument
94 struct tls_ofld_info *tls_ofld = &toep->tls; in tls_rx_key()
100 key_size(struct toepcb *toep) in key_size() argument
102 struct tls_ofld_info *tls_ofld = &toep->tls; in key_size()
110 t4_set_tls_keyid(struct toepcb *toep, unsigned int key_id) in t4_set_tls_keyid() argument
[all …]
Dt4_tom.c113 struct toepcb *toep; in alloc_toepcb() local
135 toep = malloc(len, M_CXGBE, M_ZERO | flags); in alloc_toepcb()
136 if (toep == NULL) in alloc_toepcb()
139 refcount_init(&toep->refcount, 1); in alloc_toepcb()
140 toep->td = sc->tom_softc; in alloc_toepcb()
141 toep->vi = vi; in alloc_toepcb()
142 toep->tid = -1; in alloc_toepcb()
143 toep->tx_total = tx_credits; in alloc_toepcb()
144 toep->tx_credits = tx_credits; in alloc_toepcb()
145 mbufq_init(&toep->ulp_pduq, INT_MAX); in alloc_toepcb()
[all …]
Dt4_tom.h234 ulp_mode(struct toepcb *toep) in ulp_mode() argument
237 return (toep->params.ulp_mode); in ulp_mode()
240 #define DDP_LOCK(toep) mtx_lock(&(toep)->ddp.lock) argument
241 #define DDP_UNLOCK(toep) mtx_unlock(&(toep)->ddp.lock) argument
242 #define DDP_ASSERT_LOCKED(toep) mtx_assert(&(toep)->ddp.lock, MA_OWNED) argument
258 struct toepcb *toep; member
446 void release_ddp_resources(struct toepcb *toep);
Dt4_listen.c965 struct toepcb *toep = synqe->toep; in t4_offload_socket() local
971 MPASS(toep->tid == synqe->tid); in t4_offload_socket()
973 offload_socket(so, toep); in t4_offload_socket()
974 make_established(toep, synqe->iss, synqe->irs, synqe->tcp_opt); in t4_offload_socket()
975 toep->flags |= TPF_CPL_PENDING; in t4_offload_socket()
976 update_tid(sc, synqe->tid, toep); in t4_offload_socket()
1417 struct toepcb *toep; in do_pass_establish() local
1457 toep = alloc_toepcb(vi, M_NOWAIT); in do_pass_establish()
1458 if (toep == NULL) in do_pass_establish()
1460 toep->tid = tid; in do_pass_establish()
[all …]
/freebsd-12-stable/sys/dev/cxgbe/cxgbei/
Dicl_cxgbei.c377 struct toepcb *toep = icc->toep; in icl_cxgbei_conn_pdu_queue() local
404 __predict_false((toep->flags & TPF_ATTACHED) == 0)) in icl_cxgbei_conn_pdu_queue()
407 mbufq_enqueue(&toep->ulp_pduq, m); in icl_cxgbei_conn_pdu_queue()
408 t4_push_pdus(icc->sc, toep, 0); in icl_cxgbei_conn_pdu_queue()
541 send_iscsi_flowc_wr(struct adapter *sc, struct toepcb *toep, int maxlen) in send_iscsi_flowc_wr() argument
547 struct ofld_tx_sdesc *txsd = &toep->txsd[toep->txsd_pidx]; in send_iscsi_flowc_wr()
551 wr = alloc_wrqe(roundup2(flowclen, 16), toep->ofld_txq); in send_iscsi_flowc_wr()
562 V_FW_WR_FLOWID(toep->tid)); in send_iscsi_flowc_wr()
569 KASSERT(toep->tx_credits >= txsd->tx_credits && toep->txsd_avail > 0, in send_iscsi_flowc_wr()
570 ("%s: not enough credits (%d)", __func__, toep->tx_credits)); in send_iscsi_flowc_wr()
[all …]
Dcxgbei.c263 struct toepcb *toep = lookup_tid(sc, tid); in do_rx_iscsi_hdr() local
282 MPASS(toep->ulpcb2 == NULL); in do_rx_iscsi_hdr()
283 toep->ulpcb2 = icp; in do_rx_iscsi_hdr()
301 struct toepcb *toep = lookup_tid(sc, tid); in do_rx_iscsi_data() local
302 struct icl_cxgbei_pdu *icp = toep->ulpcb2; in do_rx_iscsi_data()
336 struct toepcb *toep = lookup_tid(sc, tid); in do_rx_iscsi_ddp() local
337 struct inpcb *inp = toep->inp; in do_rx_iscsi_ddp()
343 struct icl_cxgbei_pdu *icp = toep->ulpcb2; in do_rx_iscsi_ddp()
387 toep->ulpcb2 = NULL; in do_rx_iscsi_ddp()
400 t4_rcvd(&toep->td->tod, tp); /* XXX: sc->tom_softc.tod */ in do_rx_iscsi_ddp()
[all …]
Dcxgbei.h63 struct toepcb *toep; member
/freebsd-12-stable/sys/dev/cxgbe/iw_cxgbe/
Dqp.c69 static int creds(struct toepcb *toep, struct inpcb *inp, size_t wrsize);
1125 struct toepcb *toep = tp->t_toe; in post_terminate() local
1130 wr = alloc_wrqe(sizeof(*wqe), toep->ofld_txq); in post_terminate()
1149 ret = creds(toep, inp, sizeof(*wqe)); in post_terminate()
1255 struct toepcb *toep = tp->t_toe; in rdma_fini() local
1262 wr = alloc_wrqe(sizeof(*wqe), toep->ofld_txq); in rdma_fini()
1277 ret = creds(toep, inp, sizeof(*wqe)); in rdma_fini()
1315 creds(struct toepcb *toep, struct inpcb *inp, size_t wrsize) in creds() argument
1319 CTR3(KTR_IW_CXGBE, "%s:creB %p %u", __func__, toep , wrsize); in creds()
1325 txsd = &toep->txsd[toep->txsd_pidx]; in creds()
[all …]
Dcm.c515 struct toepcb *toep; in set_tcpinfo() local
526 toep = TOEPCB(so); in set_tcpinfo()
528 ep->hwtid = toep->tid; in set_tcpinfo()
1102 struct toepcb *toep = lookup_tid(sc, tid); in terminate() local
1106 INP_WLOCK(toep->inp); in terminate()
1107 so = inp_inpcbtosocket(toep->inp); in terminate()
1109 INP_WUNLOCK(toep->inp); in terminate()