Lines Matching refs:pHeader

244 static inline void lsapi_buildPacketHeader( struct lsapi_packet_header * pHeader,  in lsapi_buildPacketHeader()  argument
247 pHeader->m_versionB0 = LSAPI_VERSION_B0; /* LSAPI protocol version */ in lsapi_buildPacketHeader()
248 pHeader->m_versionB1 = LSAPI_VERSION_B1; in lsapi_buildPacketHeader()
249 pHeader->m_type = type; in lsapi_buildPacketHeader()
250 pHeader->m_flag = LSAPI_ENDIAN; in lsapi_buildPacketHeader()
251 pHeader->m_packetLen.m_iLen = len; in lsapi_buildPacketHeader()
417 static inline int verifyHeader( struct lsapi_packet_header * pHeader, char pktType ) in verifyHeader() argument
419 if (( LSAPI_VERSION_B0 != pHeader->m_versionB0 )|| in verifyHeader()
420 ( LSAPI_VERSION_B1 != pHeader->m_versionB1 )|| in verifyHeader()
421 ( pktType != pHeader->m_type )) in verifyHeader()
423 if ( LSAPI_ENDIAN != (pHeader->m_flag & LSAPI_ENDIAN_BIT )) in verifyHeader()
426 b = pHeader->m_packetLen.m_bytes[0]; in verifyHeader()
427 pHeader->m_packetLen.m_bytes[0] = pHeader->m_packetLen.m_bytes[3]; in verifyHeader()
428 pHeader->m_packetLen.m_bytes[3] = b; in verifyHeader()
429 b = pHeader->m_packetLen.m_bytes[1]; in verifyHeader()
430 pHeader->m_packetLen.m_bytes[1] = pHeader->m_packetLen.m_bytes[2]; in verifyHeader()
431 pHeader->m_packetLen.m_bytes[2] = b; in verifyHeader()
433 return pHeader->m_packetLen.m_iLen; in verifyHeader()
1152 struct lsapi_packet_header * pHeader = (struct lsapi_packet_header *)s_conn_key_packet; in init_conn_key() local
1161 lsapi_buildPacketHeader( pHeader, LSAPI_REQ_RECEIVED, in init_conn_key()
1592 struct lsapi_packet_header * pHeader; in LSAPI_Write_r() local
1626 pHeader = pReq->m_respPktHeader; in LSAPI_Write_r()
1640 lsapi_buildPacketHeader( pHeader, LSAPI_RESP_STREAM, in LSAPI_Write_r()
1644 pReq->m_pIovecCur->iov_base = (void *)pHeader; in LSAPI_Write_r()
1647 ++pHeader; in LSAPI_Write_r()
1662 if ( pHeader >= pReq->m_respPktHeaderEnd - 1) in LSAPI_Write_r()
1666 pHeader = pReq->m_respPktHeader; in LSAPI_Write_r()
1669 if ( pHeader != pReq->m_respPktHeader ) in LSAPI_Write_r()
1742 struct lsapi_packet_header * pHeader = pReq->m_respPktHeader; in LSAPI_sendfile_r() local
1753 lsapi_buildPacketHeader( pHeader, LSAPI_RESP_STREAM, in LSAPI_sendfile_r()
1757 …if (write(pReq->m_fd, (const char *) pHeader, LSAPI_PACKET_HEADER_LEN ) != LSAPI_PACKET_HEADER_LE… in LSAPI_sendfile_r()
1766 struct lsapi_packet_header * pHeader = pReq->m_respPktHeader; in Flush_RespBuf_r() local
1769 lsapi_buildPacketHeader( pHeader, LSAPI_RESP_STREAM, in Flush_RespBuf_r()
1773 pReq->m_pIovecCur->iov_base = (void *)pHeader; in Flush_RespBuf_r()
1776 ++pHeader; in Flush_RespBuf_r()