Lines Matching refs:payload_len
592 int ret = 0, payload_len = 0; in hif_read_write() local
647 payload_len = HTC_GET_FIELD(bus_req->buffer, in hif_read_write()
650 qdf_nbuf_set_pktlen(nbuf, payload_len + HTC_HDR_LENGTH); in hif_read_write()
777 uint16_t payload_len = 0; in dl_xfer_cb() local
823 payload_len = HTC_GET_FIELD(buf, HTC_FRAME_HDR, PAYLOADLEN); in dl_xfer_cb()
824 payload_len = qdf_le16_to_cpu(payload_len); in dl_xfer_cb()
825 if (!payload_len) { in dl_xfer_cb()
826 hif_err("Invalid Payload len %d bytes", payload_len); in dl_xfer_cb()
829 if (payload_len > g_dbg_payload_len) { in dl_xfer_cb()
830 g_dbg_payload_len = payload_len; in dl_xfer_cb()
834 nbuf = hif_sdio_get_nbuf(dev, payload_len + HTC_HEADER_LEN); in dl_xfer_cb()
841 if (qdf_nbuf_tailroom(nbuf) < payload_len + HTC_HEADER_LEN) { in dl_xfer_cb()
843 (payload_len + 8), in dl_xfer_cb()
850 payload_len + HTC_HEADER_LEN); in dl_xfer_cb()
852 qdf_nbuf_put_tail(nbuf, payload_len + HTC_HDR_LENGTH); in dl_xfer_cb()
857 len -= payload_len + HTC_HDR_LENGTH; in dl_xfer_cb()
858 buf += payload_len + HTC_HDR_LENGTH; in dl_xfer_cb()