Home
last modified time | relevance | path

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

/freebsd/sys/dev/cxgbe/tom/
H A Dt4_cpl_io.c78 static void t4_aiotx_queue_toep(struct socket *so, struct toepcb *toep);
81 send_flowc_wr(struct toepcb *toep, struct tcpcb *tp) in send_flowc_wr() argument
86 struct vi_info *vi = toep->vi; in send_flowc_wr()
90 struct ofld_tx_sdesc *txsd = &toep->txsd[toep->txsd_pidx]; in send_flowc_wr()
92 KASSERT(!(toep->flags & TPF_FLOWC_WR_SENT), in send_flowc_wr()
93 ("%s: flowc for tid %u sent already", __func__, toep->tid)); in send_flowc_wr()
99 if (toep->params.tc_idx != -1) { in send_flowc_wr()
100 MPASS(toep->params.tc_idx >= 0 && in send_flowc_wr()
101 toep->params.tc_idx < sc->params.nsched_cls); in send_flowc_wr()
107 wr = alloc_wrqe(roundup2(flowclen, 16), &toep->ofld_txq->wrq); in send_flowc_wr()
[all …]
H A Dt4_ddp.c81 static void ddp_complete_all(struct toepcb *toep, int error);
150 recycle_pageset(struct toepcb *toep, struct pageset *ps) in recycle_pageset() argument
153 DDP_ASSERT_LOCKED(toep); in recycle_pageset()
154 if (!(toep->ddp.flags & DDP_DEAD)) { in recycle_pageset()
155 KASSERT(toep->ddp.cached_count + toep->ddp.active_count < in recycle_pageset()
156 nitems(toep->ddp.db), ("too many wired pagesets")); in recycle_pageset()
157 TAILQ_INSERT_HEAD(&toep->ddp.cached_pagesets, ps, link); in recycle_pageset()
158 toep->ddp.cached_count++; in recycle_pageset()
160 free_pageset(toep->td, ps); in recycle_pageset()
181 free_ddp_rcv_buffer(struct toepcb *toep, struct ddp_rcv_buffer *drb) in free_ddp_rcv_buffer() argument
[all …]
H A Dt4_tls.c63 t4_set_tls_tcb_field(struct toepcb *toep, uint16_t word, uint64_t mask, in t4_set_tls_tcb_field() argument
66 struct adapter *sc = td_adapter(toep->td); in t4_set_tls_tcb_field()
68 t4_set_tcb_field(sc, &toep->ofld_txq->wrq, toep, word, mask, val, 0, 0); in t4_set_tls_tcb_field()
80 tls_tx_key(struct toepcb *toep) in tls_tx_key() argument
82 struct tls_ofld_info *tls_ofld = &toep->tls; in tls_tx_key()
89 t4_set_rx_quiesce(struct toepcb *toep) in t4_set_rx_quiesce() argument
91 struct adapter *sc = td_adapter(toep->td); in t4_set_rx_quiesce()
93 t4_set_tcb_field(sc, &toep->ofld_txq->wrq, toep, W_TCB_T_FLAG in t4_set_rx_quiesce()
99 t4_clear_rx_quiesce(struct toepcb * toep) t4_clear_rx_quiesce() argument
125 clear_tls_keyid(struct toepcb * toep) clear_tls_keyid() argument
150 tls_program_key_id(struct toepcb * toep,struct ktls_session * tls,int direction) tls_program_key_id() argument
207 tls_alloc_ktls(struct toepcb * toep,struct ktls_session * tls,int direction) tls_alloc_ktls() argument
331 tls_init_toep(struct toepcb * toep) tls_init_toep() argument
340 tls_uninit_toep(struct toepcb * toep) tls_uninit_toep() argument
347 MIN_OFLD_TLSTX_CREDITS(toep) global() argument
354 write_tlstx_wr(struct fw_tlstx_data_wr * txwr,struct toepcb * toep,unsigned int plen,unsigned int expn,uint8_t credits,int shove) write_tlstx_wr() argument
383 write_tlstx_cpl(struct cpl_tx_tls_sfo * cpl,struct toepcb * toep,struct tls_hdr * tls_hdr,unsigned int plen,uint64_t seqno) write_tlstx_cpl() argument
482 t4_push_ktls(struct adapter * sc,struct toepcb * toep,int drop) t4_push_ktls() argument
727 struct toepcb *toep = lookup_tid(sc, tid); do_tls_data() local
789 struct toepcb *toep = lookup_tid(sc, tid); do_rx_tls_cmp() local
989 do_rx_data_tls(const struct cpl_rx_data * cpl,struct toepcb * toep,struct mbuf * m) do_rx_data_tls() argument
1083 mk_set_tcb_field_ulp(struct ulp_txpkt * ulpmc,struct toepcb * toep,uint64_t word,uint64_t mask,uint64_t val) mk_set_tcb_field_ulp() argument
1118 tls_update_tcb(struct adapter * sc,struct toepcb * toep,uint64_t seqno) tls_update_tcb() argument
1210 tls_check_rx_sockbuf(struct adapter * sc,struct toepcb * toep,struct sockbuf * sb) tls_check_rx_sockbuf() argument
1241 tls_received_starting_data(struct adapter * sc,struct toepcb * toep,struct sockbuf * sb,int len) tls_received_starting_data() argument
1278 struct toepcb *toep; do_tls_tcb_rpl() local
[all...]
H A Dt4_connect.c79 struct toepcb *toep = lookup_atid(sc, atid); in do_act_establish() local
80 struct inpcb *inp = toep->inp; in do_act_establish()
83 KASSERT(toep->tid == atid, ("%s: toep tid/atid mismatch", __func__)); in do_act_establish()
88 CURVNET_SET(toep->vnet); in do_act_establish()
90 toep->tid = tid; in do_act_establish()
91 insert_tid(sc, tid, toep, inp->inp_vflag & INP_IPV6 ? 2 : 1); in do_act_establish()
96 send_flowc_wr(toep, NULL); in do_act_establish()
97 send_reset(sc, toep, be32toh(cpl->snd_isn)); in do_act_establish()
101 make_established(toep, be32toh(cpl->snd_isn) - 1, in do_act_establish()
113 act_open_failure_cleanup(struct adapter *sc, struct toepcb *toep, u_int status) in act_open_failure_cleanup() argument
[all …]
H A Dt4_tom.c115 struct toepcb *toep; in alloc_toepcb() local
137 toep = malloc(len, M_CXGBE, M_ZERO | flags); in alloc_toepcb()
138 if (toep == NULL) in alloc_toepcb()
141 refcount_init(&toep->refcount, 1); in alloc_toepcb()
142 toep->td = sc->tom_softc; in alloc_toepcb()
143 toep->incarnation = sc->incarnation; in alloc_toepcb()
144 toep->vi = vi; in alloc_toepcb()
145 toep->tid = -1; in alloc_toepcb()
146 toep->tx_total = tx_credits; in alloc_toepcb()
147 toep->tx_credits = tx_credits; in alloc_toepcb()
[all …]
H A Dt4_tom.h255 ulp_mode(struct toepcb *toep) in ulp_mode() argument
258 return (toep->params.ulp_mode); in ulp_mode()
261 #define DDP_LOCK(toep) mtx_lock(&(toep)->ddp.lock) argument
262 #define DDP_UNLOCK(toep) mtx_unlock(&(toep)->ddp.lock) argument
263 #define DDP_ASSERT_LOCKED(toep) mtx_assert(&(toep)->ddp.lock, MA_OWNED) argument
264 #define DDP_CACHE_LOCK(toep) mtx_lock(&(toep)->ddp.cache_lock) argument
265 #define DDP_CACHE_UNLOCK(toep) mtx_unlock(&(toep)->ddp.cache_lock) argument
284 struct toepcb *toep; member
557 void release_ddp_resources(struct toepcb *toep);
H A Dt4_listen.c1111 struct toepcb *toep = synqe->toep; in t4_offload_socket() local
1117 MPASS(toep->tid == synqe->tid); in t4_offload_socket()
1119 offload_socket(so, toep); in t4_offload_socket()
1120 make_established(toep, synqe->iss, synqe->irs, synqe->tcp_opt); in t4_offload_socket()
1121 toep->flags |= TPF_CPL_PENDING; in t4_offload_socket()
1122 update_tid(sc, synqe->tid, toep); in t4_offload_socket()
1127 TAILQ_INSERT_TAIL(&td->toep_list, toep, link); in t4_offload_socket()
1128 toep->flags |= TPF_IN_TOEP_LIST; in t4_offload_socket()
1626 struct toepcb *toep; in do_pass_establish() local
1667 toep = alloc_toepcb(vi, M_NOWAIT); in do_pass_establish()
[all …]
/freebsd/sys/dev/cxgbe/cxgbei/
H A Dcxgbei.c198 struct toepcb *toep = lookup_tid(sc, tid); in do_rx_iscsi_hdr() local
217 MPASS(toep->ulpcb2 == NULL); in do_rx_iscsi_hdr()
218 toep->ulpcb2 = icp; in do_rx_iscsi_hdr()
235 struct toepcb *toep = lookup_tid(sc, tid); in do_rx_iscsi_data() local
236 struct icl_cxgbei_pdu *icp = toep->ulpcb2; in do_rx_iscsi_data()
263 toep->ofld_rxq->rx_iscsi_fl_pdus++; in do_rx_iscsi_data()
264 toep->ofld_rxq->rx_iscsi_fl_octets += m->m_pkthdr.len; in do_rx_iscsi_data()
271 MPASS(toep->ulpcb2 == NULL); in do_rx_iscsi_data()
272 toep->ulpcb2 = icp; in do_rx_iscsi_data()
293 parse_pdu(struct socket *so, struct toepcb *toep, struct icl_cxgbei_conn *icc, in parse_pdu() argument
[all …]
H A Dicl_cxgbei.c434 struct toepcb *toep = icc->toep; in icl_cxgbei_tx_main() local
474 CURVNET_SET(toep->vnet); in icl_cxgbei_tx_main()
480 __predict_false((toep->flags & TPF_ATTACHED) == 0)) { in icl_cxgbei_tx_main()
483 mbufq_concat(&toep->ulp_pduq, &mq); in icl_cxgbei_tx_main()
484 t4_push_pdus(icc->sc, toep, 0); in icl_cxgbei_tx_main()
1030 send_iscsi_flowc_wr(struct adapter *sc, struct toepcb *toep, int maxlen) in send_iscsi_flowc_wr() argument
1036 struct ofld_tx_sdesc *txsd = &toep->txsd[toep->txsd_pidx]; in send_iscsi_flowc_wr()
1040 wr = alloc_wrqe(roundup2(flowclen, 16), &toep->ofld_txq->wrq); in send_iscsi_flowc_wr()
1051 V_FW_WR_FLOWID(toep->tid)); in send_iscsi_flowc_wr()
1058 KASSERT(toep->tx_credits >= txsd->tx_credits && toep->txsd_avail > 0, in send_iscsi_flowc_wr()
[all …]
H A Dcxgbei.h52 struct toepcb *toep; member
/freebsd/sys/dev/cxgbe/iw_cxgbe/
H A Dqp.c67 static int creds(struct toepcb *toep, struct inpcb *inp, size_t wrsize);
1128 struct toepcb *toep = tp->t_toe; in post_terminate() local
1133 wr = alloc_wrqe(sizeof(*wqe), &toep->ofld_txq->wrq); in post_terminate()
1152 ret = creds(toep, inp, sizeof(*wqe)); in post_terminate()
1258 struct toepcb *toep = tp->t_toe; in rdma_fini() local
1265 wr = alloc_wrqe(sizeof(*wqe), &toep->ofld_txq->wrq); in rdma_fini()
1280 ret = creds(toep, inp, sizeof(*wqe)); in rdma_fini()
1318 creds(struct toepcb *toep, struct inpcb *inp, size_t wrsize) in creds() argument
1322 CTR3(KTR_IW_CXGBE, "%s:creB %p %u", __func__, toep , wrsize); in creds()
1328 txsd = &toep->txsd[toep->txsd_pidx]; in creds()
[all …]
H A Dcm.c506 struct toepcb *toep; in set_tcpinfo() local
517 toep = TOEPCB(so); in set_tcpinfo()
519 ep->hwtid = toep->tid; in set_tcpinfo()
1097 struct toepcb *toep = lookup_tid(sc, tid); in terminate() local
1101 INP_WLOCK(toep->inp); in terminate()
1102 so = inp_inpcbtosocket(toep->inp); in terminate()
1104 INP_WUNLOCK(toep->inp); in terminate()