Lines Matching defs:phr
3367 struct hpi_res_strv *phr;
3375 phr = kmalloc(resp_packet_size, GFP_KERNEL);
3376 HPI_DEBUG_ASSERT(phr != NULL);
3378 hpi_init_message_responseV1(&hm.h, (u16)sizeof(hm), &phr->h,
3384 phr->strv.header.size = resp_packet_size - sizeof(phr->h);
3387 (struct hpi_response *)&phr->h);
3388 if (phr->h.error == HPI_ERROR_RESPONSE_BUFFER_TOO_SMALL) {
3390 HPI_DEBUG_ASSERT(phr->h.specific_error >
3392 && phr->h.specific_error < 1500);
3393 resp_packet_size = phr->h.specific_error;
3396 if (!phr->h.error)
3397 hpi_entity_alloc_and_copy(&phr->strv, info);
3400 hpi_err = phr->h.error;
3401 kfree(phr);
3411 struct hpi_res_strv *phr;
3418 phr = kmalloc(strv_packet_size, GFP_KERNEL);
3419 if (!phr)
3422 hpi_init_message_responseV1(&hm.h, (u16)sizeof(hm), &phr->h,
3428 phr->strv.header.size = strv_packet_size - sizeof(phr->h);
3431 (struct hpi_response *)&phr->h);
3432 if (phr->h.error == HPI_ERROR_RESPONSE_BUFFER_TOO_SMALL) {
3434 HPI_DEBUG_ASSERT(phr->h.specific_error >
3436 && phr->h.specific_error < 1000);
3437 strv_packet_size = phr->h.specific_error;
3440 if (!phr->h.error)
3441 hpi_entity_alloc_and_copy(&phr->strv, value);
3444 hpi_err = phr->h.error;
3445 kfree(phr);