Home
last modified time | relevance | path

Searched refs:ip_data_len (Results 1 – 8 of 8) sorted by relevance

/freebsd/sys/dev/cxgbe/cxgbei/
H A Dcxgbei.c211 ip->ip_data_len = G_ISCSI_PDU_LEN(len_ddp) - len; in do_rx_iscsi_hdr()
255 MPASS(icp->ip.ip_data_len == m->m_pkthdr.len - sizeof(*cpl)); in do_rx_iscsi_data()
400 ip->ip_data_len = data_len; in parse_pdu()
496 MPASS(ip->ip_data_len > 0); in do_rx_iscsi_ddp()
499 toep->ofld_rxq->rx_iscsi_ddp_octets += ip->ip_data_len; in do_rx_iscsi_ddp()
632 ip->ip_data_len = bhsdo->bhsdo_data_segment_len[0] << 16 | in do_rx_iscsi_cmp()
707 MPASS(roundup2(ip->ip_data_len, 4) == pdu_len - len - data_digest_len); in do_rx_iscsi_cmp()
712 MPASS(ip->ip_data_len > 0); in do_rx_iscsi_cmp()
746 ip->ip_data_len += prev_seg_len; in do_rx_iscsi_cmp()
747 bhsdo->bhsdo_data_segment_len[2] = ip->ip_data_len; in do_rx_iscsi_cmp()
[all …]
H A Dicl_cxgbei.c352 padding = roundup2(ip->ip_data_len, 4) - ip->ip_data_len; in finalize_pdu()
359 MPASS(ip->ip_data_len == 0); in finalize_pdu()
372 data_len = ip->ip_data_len; in finalize_pdu()
411 m->m_pkthdr.len += ip->ip_data_len + padding; in finalize_pdu()
678 ip->ip_data_len += m->m_len; in icl_cxgbei_conn_pdu_append_bio()
692 ip->ip_data_len += m->m_len; in icl_cxgbei_conn_pdu_append_bio()
703 ip->ip_data_len = len; in icl_cxgbei_conn_pdu_append_bio()
706 ip->ip_data_len += len; in icl_cxgbei_conn_pdu_append_bio()
735 MPASS(ip->ip_data_len <= max(ic->ic_max_send_data_segment_length, in icl_cxgbei_conn_pdu_append_bio()
771 ip->ip_data_len = len; in icl_cxgbei_conn_pdu_append_data()
[all …]
/freebsd/sys/dev/iscsi/
H A Dicl_soft.c321 if ((ip->ip_data_len % 4) != 0) in icl_pdu_padding()
322 return (4 - (ip->ip_data_len % 4)); in icl_pdu_padding()
334 len = sizeof(struct iscsi_bhs) + response->ip_data_len + in icl_pdu_size()
338 if (response->ip_data_len != 0 && response->ip_conn->ic_data_crc32c) in icl_pdu_size()
429 KASSERT(len > request->ip_data_len, ("len <= request->ip_data_len")); in icl_pdu_data_segment_receive_len()
430 len -= request->ip_data_len; in icl_pdu_data_segment_receive_len()
487 KASSERT(len > request->ip_data_len, ("len <= request->ip_data_len")); in icl_pdu_receive_data_segment()
488 len -= request->ip_data_len; in icl_pdu_receive_data_segment()
519 request->ip_data_len += len; in icl_pdu_receive_data_segment()
537 if (request->ip_data_len == 0) in icl_pdu_check_data_digest()
[all …]
H A Dicl.h73 size_t ip_data_len; member
H A Discsi.c1894 if (ip->ip_data_len > idr->idr_data_segment_len) { in iscsi_ioctl_daemon_receive()
1900 if (error == 0 && ip->ip_data_len > 0) { in iscsi_ioctl_daemon_receive()
1901 data = malloc(ip->ip_data_len, M_ISCSI, M_WAITOK); in iscsi_ioctl_daemon_receive()
1902 icl_pdu_get_data(ip, 0, data, ip->ip_data_len); in iscsi_ioctl_daemon_receive()
1903 error = copyout(data, idr->idr_data_segment, ip->ip_data_len); in iscsi_ioctl_daemon_receive()
/freebsd/sys/cam/ctl/
H A Dctl_frontend_iscsi.c516 if (request->ip_data_len > 0 && cs->cs_immediate_data == false) { in cfiscsi_pdu_handle_scsi_command()
720 request->ip_data_len, io->scsiio.kern_total_len); in cfiscsi_handle_data_segment()
2119 if (ip->ip_data_len > cirp->data_segment_len) { in cfiscsi_ioctl_receive()
2128 if (ip->ip_data_len > 0) { in cfiscsi_ioctl_receive()
2129 data = malloc(ip->ip_data_len, M_CFISCSI, M_WAITOK); in cfiscsi_ioctl_receive()
2130 icl_pdu_get_data(ip, 0, data, ip->ip_data_len); in cfiscsi_ioctl_receive()
2131 copyout(data, cirp->data_segment, ip->ip_data_len); in cfiscsi_ioctl_receive()
2571 KASSERT(response->ip_data_len < max_send_data_segment_length, in cfiscsi_datamove_in()
2573 response->ip_data_len, max_send_data_segment_length)); in cfiscsi_datamove_in()
2574 if (response->ip_data_len + len > max_send_data_segment_length) { in cfiscsi_datamove_in()
[all …]
/freebsd/sys/dev/iser/
H A Diser_initiator.c416 size_t datalen = iser_pdu->icl_pdu.ip_data_len; in iser_send_control()
494 response->ip_data_len = rx_xfer_len - ISER_HEADERS_LEN; in iser_rcv_completion()
500 if (response->ip_data_len) in iser_rcv_completion()
H A Dicl_iser.c137 request->ip_data_len = len; in iser_conn_pdu_append_data()