Lines Matching refs:pHeader
357 static inline void lsapi_buildPacketHeader( struct lsapi_packet_header * pHeader, in lsapi_buildPacketHeader() argument
360 pHeader->m_versionB0 = LSAPI_VERSION_B0; /* LSAPI protocol version */ in lsapi_buildPacketHeader()
361 pHeader->m_versionB1 = LSAPI_VERSION_B1; in lsapi_buildPacketHeader()
362 pHeader->m_type = type; in lsapi_buildPacketHeader()
363 pHeader->m_flag = LSAPI_ENDIAN; in lsapi_buildPacketHeader()
364 pHeader->m_packetLen.m_iLen = len; in lsapi_buildPacketHeader()
551 static inline int verifyHeader( struct lsapi_packet_header * pHeader, char pktType ) in verifyHeader() argument
553 if (( LSAPI_VERSION_B0 != pHeader->m_versionB0 )|| in verifyHeader()
554 ( LSAPI_VERSION_B1 != pHeader->m_versionB1 )|| in verifyHeader()
555 ( pktType != pHeader->m_type )) in verifyHeader()
557 if ( LSAPI_ENDIAN != (pHeader->m_flag & LSAPI_ENDIAN_BIT )) in verifyHeader()
560 b = pHeader->m_packetLen.m_bytes[0]; in verifyHeader()
561 pHeader->m_packetLen.m_bytes[0] = pHeader->m_packetLen.m_bytes[3]; in verifyHeader()
562 pHeader->m_packetLen.m_bytes[3] = b; in verifyHeader()
563 b = pHeader->m_packetLen.m_bytes[1]; in verifyHeader()
564 pHeader->m_packetLen.m_bytes[1] = pHeader->m_packetLen.m_bytes[2]; in verifyHeader()
565 pHeader->m_packetLen.m_bytes[2] = b; in verifyHeader()
567 return pHeader->m_packetLen.m_iLen; in verifyHeader()
1331 struct lsapi_packet_header * pHeader = (struct lsapi_packet_header *)s_conn_key_packet; in init_conn_key() local
1340 lsapi_buildPacketHeader( pHeader, LSAPI_REQ_RECEIVED, in init_conn_key()
1786 struct lsapi_packet_header * pHeader; in LSAPI_Write_r() local
1820 pHeader = pReq->m_respPktHeader; in LSAPI_Write_r()
1834 lsapi_buildPacketHeader( pHeader, LSAPI_RESP_STREAM, in LSAPI_Write_r()
1838 pReq->m_pIovecCur->iov_base = (void *)pHeader; in LSAPI_Write_r()
1841 ++pHeader; in LSAPI_Write_r()
1856 if ( pHeader >= pReq->m_respPktHeaderEnd - 1) in LSAPI_Write_r()
1860 pHeader = pReq->m_respPktHeader; in LSAPI_Write_r()
1863 if ( pHeader != pReq->m_respPktHeader ) in LSAPI_Write_r()
1943 struct lsapi_packet_header * pHeader = pReq->m_respPktHeader; in LSAPI_sendfile_r() local
1954 lsapi_buildPacketHeader( pHeader, LSAPI_RESP_STREAM, in LSAPI_sendfile_r()
1958 …if (write(pReq->m_fd, (const char *) pHeader, LSAPI_PACKET_HEADER_LEN ) != LSAPI_PACKET_HEADER_LE… in LSAPI_sendfile_r()
1967 struct lsapi_packet_header * pHeader = pReq->m_respPktHeader; in Flush_RespBuf_r() local
1970 lsapi_buildPacketHeader( pHeader, LSAPI_RESP_STREAM, in Flush_RespBuf_r()
1974 pReq->m_pIovecCur->iov_base = (void *)pHeader; in Flush_RespBuf_r()
1977 ++pHeader; in Flush_RespBuf_r()