Lines Matching refs:bytes_remain
3872 int desc_cnt = 0, bytes_remain; in lpfc_cmpl_els_edc() local
3922 bytes_remain = be32_to_cpu(edc_rsp->desc_list_len) - in lpfc_cmpl_els_edc()
3924 if (bytes_remain <= 0) in lpfc_cmpl_els_edc()
3933 while (bytes_remain) { in lpfc_cmpl_els_edc()
3934 if (bytes_remain < FC_TLV_DESC_HDR_SZ) { in lpfc_cmpl_els_edc()
3945 if (bytes_remain < FC_TLV_DESC_SZ_FROM_LENGTH(tlv) || in lpfc_cmpl_els_edc()
3952 desc_cnt, bytes_remain, in lpfc_cmpl_els_edc()
3971 if (bytes_remain < FC_TLV_DESC_SZ_FROM_LENGTH(tlv) || in lpfc_cmpl_els_edc()
3978 desc_cnt, bytes_remain, in lpfc_cmpl_els_edc()
4012 bytes_remain -= FC_TLV_DESC_SZ_FROM_LENGTH(tlv); in lpfc_cmpl_els_edc()
8781 int desc_cnt = 0, bytes_remain; in lpfc_els_rcv_edc() local
8787 bytes_remain = be32_to_cpu(edc_req->desc_len); in lpfc_els_rcv_edc()
8792 bytes_remain, be32_to_cpu(*ptr), in lpfc_els_rcv_edc()
8800 if (bytes_remain <= 0) in lpfc_els_rcv_edc()
8809 while (bytes_remain && !rcv_cap_desc) { in lpfc_els_rcv_edc()
8810 if (bytes_remain < FC_TLV_DESC_HDR_SZ) { in lpfc_els_rcv_edc()
8821 if (bytes_remain < FC_TLV_DESC_SZ_FROM_LENGTH(tlv) || in lpfc_els_rcv_edc()
8828 desc_cnt, bytes_remain, in lpfc_els_rcv_edc()
8836 if (bytes_remain < FC_TLV_DESC_SZ_FROM_LENGTH(tlv) || in lpfc_els_rcv_edc()
8843 desc_cnt, bytes_remain, in lpfc_els_rcv_edc()
8869 bytes_remain -= FC_TLV_DESC_SZ_FROM_LENGTH(tlv); in lpfc_els_rcv_edc()
9635 int desc_cnt = 0, bytes_remain, cnt; in lpfc_els_rcv_fpin() local
9660 bytes_remain = fpin_length - offsetof(struct fc_els_fpin, fpin_desc); in lpfc_els_rcv_fpin()
9661 bytes_remain = min_t(u32, bytes_remain, be32_to_cpu(fpin->desc_len)); in lpfc_els_rcv_fpin()
9664 while (bytes_remain >= FC_TLV_DESC_HDR_SZ && in lpfc_els_rcv_fpin()
9665 bytes_remain >= FC_TLV_DESC_SZ_FROM_LENGTH(tlv)) { in lpfc_els_rcv_fpin()
9710 bytes_remain -= FC_TLV_DESC_SZ_FROM_LENGTH(tlv); in lpfc_els_rcv_fpin()