Lines Matching refs:phm
38 static void hpi_init_message(struct hpi_message *phm, u16 object, in hpi_init_message() argument
47 size = sizeof(*phm); in hpi_init_message()
50 memset(phm, 0, size); in hpi_init_message()
51 phm->size = size; in hpi_init_message()
54 phm->type = HPI_TYPE_SSX2BYPASS_MESSAGE; in hpi_init_message()
56 phm->type = HPI_TYPE_REQUEST; in hpi_init_message()
57 phm->object = object; in hpi_init_message()
58 phm->function = function; in hpi_init_message()
59 phm->version = 0; in hpi_init_message()
60 phm->adapter_index = HPI_ADAPTER_INDEX_INVALID; in hpi_init_message()
89 void hpi_init_message_response(struct hpi_message *phm, in hpi_init_message_response() argument
92 hpi_init_message(phm, object, function); in hpi_init_message_response()
99 static void hpi_init_messageV1(struct hpi_message_header *phm, u16 size, in hpi_init_messageV1() argument
102 memset(phm, 0, size); in hpi_init_messageV1()
104 phm->size = size; in hpi_init_messageV1()
105 phm->type = HPI_TYPE_REQUEST; in hpi_init_messageV1()
106 phm->object = object; in hpi_init_messageV1()
107 phm->function = function; in hpi_init_messageV1()
108 phm->version = 1; in hpi_init_messageV1()
125 void hpi_init_message_responseV1(struct hpi_message_header *phm, u16 msg_size, in hpi_init_message_responseV1() argument
129 hpi_init_messageV1(phm, msg_size, object, function); in hpi_init_message_responseV1()