Lines Matching refs:pHeader

382 static inline void lsapi_buildPacketHeader( struct lsapi_packet_header * pHeader,  in lsapi_buildPacketHeader()  argument
385 pHeader->m_versionB0 = LSAPI_VERSION_B0; /* LSAPI protocol version */ in lsapi_buildPacketHeader()
386 pHeader->m_versionB1 = LSAPI_VERSION_B1; in lsapi_buildPacketHeader()
387 pHeader->m_type = type; in lsapi_buildPacketHeader()
388 pHeader->m_flag = LSAPI_ENDIAN; in lsapi_buildPacketHeader()
389 pHeader->m_packetLen.m_iLen = len; in lsapi_buildPacketHeader()
581 static inline int verifyHeader( struct lsapi_packet_header * pHeader, char pktType ) in verifyHeader() argument
583 if (( LSAPI_VERSION_B0 != pHeader->m_versionB0 )|| in verifyHeader()
584 ( LSAPI_VERSION_B1 != pHeader->m_versionB1 )|| in verifyHeader()
585 ( pktType != pHeader->m_type )) in verifyHeader()
587 if ( LSAPI_ENDIAN != (pHeader->m_flag & LSAPI_ENDIAN_BIT )) in verifyHeader()
590 b = pHeader->m_packetLen.m_bytes[0]; in verifyHeader()
591 pHeader->m_packetLen.m_bytes[0] = pHeader->m_packetLen.m_bytes[3]; in verifyHeader()
592 pHeader->m_packetLen.m_bytes[3] = b; in verifyHeader()
593 b = pHeader->m_packetLen.m_bytes[1]; in verifyHeader()
594 pHeader->m_packetLen.m_bytes[1] = pHeader->m_packetLen.m_bytes[2]; in verifyHeader()
595 pHeader->m_packetLen.m_bytes[2] = b; in verifyHeader()
597 return pHeader->m_packetLen.m_iLen; in verifyHeader()
1362 struct lsapi_packet_header * pHeader = (struct lsapi_packet_header *)s_conn_key_packet; in init_conn_key() local
1371 lsapi_buildPacketHeader( pHeader, LSAPI_REQ_RECEIVED, in init_conn_key()
1860 struct lsapi_packet_header * pHeader; in LSAPI_Write_r() local
1898 pHeader = pReq->m_respPktHeader; in LSAPI_Write_r()
1912 lsapi_buildPacketHeader( pHeader, LSAPI_RESP_STREAM, in LSAPI_Write_r()
1916 pReq->m_pIovecCur->iov_base = (void *)pHeader; in LSAPI_Write_r()
1919 ++pHeader; in LSAPI_Write_r()
1934 if ( pHeader >= pReq->m_respPktHeaderEnd - 1) in LSAPI_Write_r()
1938 pHeader = pReq->m_respPktHeader; in LSAPI_Write_r()
1941 if ( pHeader != pReq->m_respPktHeader ) in LSAPI_Write_r()
2021 struct lsapi_packet_header * pHeader = pReq->m_respPktHeader; in LSAPI_sendfile_r() local
2032 lsapi_buildPacketHeader( pHeader, LSAPI_RESP_STREAM, in LSAPI_sendfile_r()
2036 …if (write(pReq->m_fd, (const char *) pHeader, LSAPI_PACKET_HEADER_LEN ) != LSAPI_PACKET_HEADER_LE… in LSAPI_sendfile_r()
2045 struct lsapi_packet_header * pHeader = pReq->m_respPktHeader; in Flush_RespBuf_r() local
2048 lsapi_buildPacketHeader( pHeader, LSAPI_RESP_STREAM, in Flush_RespBuf_r()
2052 pReq->m_pIovecCur->iov_base = (void *)pHeader; in Flush_RespBuf_r()
2055 ++pHeader; in Flush_RespBuf_r()