• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/dev/cxgbe/cxgbei/

Lines Matching refs:ip

164 icl_cxgbei_conn_pdu_free(struct icl_conn *ic, struct icl_pdu *ip)
167 struct icl_cxgbei_pdu *icp = ip_to_icp(ip);
171 MPASS(ic == ip->ip_conn);
172 MPASS(ip->ip_bhs_mbuf != NULL);
174 m_freem(ip->ip_ahs_mbuf);
175 m_freem(ip->ip_data_mbuf);
176 m_freem(ip->ip_bhs_mbuf); /* storage for icl_cxgbei_pdu itself */
188 struct icl_pdu *ip;
201 ip = &icp->ip;
202 ip->ip_bhs_mbuf = m;
205 ip->ip_bhs = (struct iscsi_bhs *)a;
208 a = (uintptr_t)(ip->ip_bhs + 1);
211 bzero(ip->ip_bhs, sizeof(*ip->ip_bhs));
213 m->m_data = (void *)ip->ip_bhs;
217 return (ip);
221 icl_cxgbei_new_pdu_set_conn(struct icl_pdu *ip, struct icl_conn *ic)
224 ip->ip_conn = ic;
236 struct icl_pdu *ip;
238 ip = icl_cxgbei_new_pdu(flags);
239 if (__predict_false(ip == NULL))
241 icl_cxgbei_new_pdu_set_conn(ip, ic);
243 return (ip);
271 struct icl_pdu *ip = &icp->ip;
279 m = ip->ip_data_mbuf;
288 padding = roundup2(ip->ip_data_len, 4) - ip->ip_data_len;
294 MPASS(ip->ip_data_len == 0);
302 m = ip->ip_bhs_mbuf;
306 bhs = ip->ip_bhs;
307 bhs->bhs_data_segment_len[2] = ip->ip_data_len;
308 bhs->bhs_data_segment_len[1] = ip->ip_data_len >> 8;
309 bhs->bhs_data_segment_len[0] = ip->ip_data_len >> 16;
311 /* "Convert" PDU to mbuf chain. Do not use icp/ip after this. */
312 m->m_pkthdr.len = sizeof(struct iscsi_bhs) + ip->ip_data_len + padding;
313 m->m_next = ip->ip_data_mbuf;
326 icl_cxgbei_conn_pdu_append_data(struct icl_conn *ic, struct icl_pdu *ip,
331 struct icl_cxgbei_pdu *icp = ip_to_icp(ip);
335 MPASS(ic == ip->ip_conn);
338 m = ip->ip_data_mbuf;
344 ip->ip_data_mbuf = m;
348 ip->ip_data_len += len;
349 MPASS(ip->ip_data_len <= ic->ic_max_data_segment_length);
355 ip->ip_data_len = m_length(m, NULL);
361 icl_cxgbei_conn_pdu_get_data(struct icl_conn *ic, struct icl_pdu *ip,
364 struct icl_cxgbei_pdu *icp = ip_to_icp(ip);
368 m_copydata(ip->ip_data_mbuf, off, len, addr);
372 icl_cxgbei_conn_pdu_queue(struct icl_conn *ic, struct icl_pdu *ip)
375 struct icl_cxgbei_pdu *icp = ip_to_icp(ip);
381 MPASS(ic == ip->ip_conn);
382 MPASS(ip->ip_bhs_mbuf != NULL);
384 MPASS(ip->ip_ahs_mbuf == NULL && ip->ip_ahs_len == 0);
389 icl_cxgbei_conn_pdu_free(ic, ip);
721 struct icl_pdu *ip;
774 ip = STAILQ_FIRST(&icc->rcvd_pdus);
776 icl_cxgbei_conn_pdu_free(ic, ip);
795 icl_cxgbei_conn_task_setup(struct icl_conn *ic, struct icl_pdu *ip,
898 struct icl_pdu *ip = io_to_request_pdu(io);
901 struct icl_cxgbei_pdu *icp = ip_to_icp(ip);
904 MPASS(ic == ip->ip_conn);
905 MPASS(ip->ip_bhs_mbuf != NULL);
907 first_burst = icl_pdu_data_segment_length(ip);