Lines Matching defs:header
361 * We (ab)use the operation-message header pad bytes to transfer the
365 gb_message_cport_pack(struct gb_operation_msg_hdr *header, u16 cport_id)
367 header->pad[0] = cport_id;
371 static void gb_message_cport_clear(struct gb_operation_msg_hdr *header)
373 header->pad[0] = 0;
376 /* Extract the CPort id packed into the header, and clear it */
377 static u16 gb_message_cport_unpack(struct gb_operation_msg_hdr *header)
379 u16 cport_id = header->pad[0];
381 gb_message_cport_clear(header);
419 /* Pack the cport id into the message header */
420 gb_message_cport_pack(message->header, cport_id);
422 buffer_size = sizeof(*message->header) + message->payload_size;
442 gb_message_cport_clear(message->header);
820 struct gb_operation_msg_hdr *header;
837 if (urb->actual_length < sizeof(*header)) {
842 /* Extract the CPort id, which is packed in the message header */
843 header = urb->transfer_buffer;
844 cport_id = gb_message_cport_unpack(header);
867 gb_message_cport_clear(message->header);
1232 /* We need to fit a CPort ID in one byte of a message header */