Lines Matching refs:aoehdr
94 struct aoehdr *aoehdr; in aoe_send_command() local
134 iobuf = alloc_iob ( ETH_HLEN + sizeof ( *aoehdr ) + in aoe_send_command()
140 aoehdr = iob_put ( iobuf, sizeof ( *aoehdr ) ); in aoe_send_command()
142 memset ( aoehdr, 0, ( sizeof ( *aoehdr ) + aoecmdlen ) ); in aoe_send_command()
145 aoehdr->ver_flags = AOE_VERSION; in aoe_send_command()
146 aoehdr->major = htons ( aoe->major ); in aoe_send_command()
147 aoehdr->minor = aoe->minor; in aoe_send_command()
148 aoehdr->command = aoe->aoe_cmd_type; in aoe_send_command()
149 aoehdr->tag = htonl ( ++aoe->tag ); in aoe_send_command()
291 struct aoehdr *aoehdr = iobuf->data; in aoe_rx() local
296 if ( iob_len ( iobuf ) < sizeof ( *aoehdr ) ) { in aoe_rx()
300 if ( ( aoehdr->ver_flags & AOE_VERSION_MASK ) != AOE_VERSION ) { in aoe_rx()
304 if ( ! ( aoehdr->ver_flags & AOE_FL_RESPONSE ) ) { in aoe_rx()
308 iob_pull ( iobuf, sizeof ( *aoehdr ) ); in aoe_rx()
312 if ( ntohs ( aoehdr->major ) != aoe->major ) in aoe_rx()
314 if ( aoehdr->minor != aoe->minor ) in aoe_rx()
316 if ( ntohl ( aoehdr->tag ) != aoe->tag ) in aoe_rx()
318 if ( aoehdr->ver_flags & AOE_FL_ERROR ) { in aoe_rx()
322 switch ( aoehdr->command ) { in aoe_rx()
331 aoe, aoehdr->command ); in aoe_rx()