Lines Matching refs:hdr
320 struct hwkey_msg* hdr, in hwkey_handle_get_keyslot_cmd() argument
325 hdr->header.status = _handle_slots(ctx, slot_id, key_slots, key_slot_cnt, in hwkey_handle_get_keyslot_cmd()
328 rc = hwkey_send_rsp(ctx, hdr, key_data, klen); in hwkey_handle_get_keyslot_cmd()
366 struct hwkey_msg* hdr, in hwkey_handle_derive_key_cmd() argument
371 if (key_len > HWKEY_MAX_MSG_SIZE - sizeof(*hdr)) { in hwkey_handle_derive_key_cmd()
374 hdr->header.status = HWKEY_ERR_BAD_LEN; in hwkey_handle_derive_key_cmd()
378 hdr->header.status = hwkey_handle_derive_key_impl( in hwkey_handle_derive_key_cmd()
379 &hdr->arg1, &ctx->uuid, ikm_data, ikm_len, key_data, key_len); in hwkey_handle_derive_key_cmd()
382 rc = hwkey_send_rsp(ctx, hdr, key_data, key_len); in hwkey_handle_derive_key_cmd()
513 struct hwkey_msg_header* hdr; in hwkey_chan_handle_msg() local
515 rc = tipc_recv1(ctx->chan, sizeof(*hdr), req_data, sizeof(req_data) - 1); in hwkey_chan_handle_msg()
523 if (req_data_len < sizeof(*hdr)) { in hwkey_chan_handle_msg()
529 hdr = (struct hwkey_msg_header*)req_data; in hwkey_chan_handle_msg()
532 switch (hdr->cmd) { in hwkey_chan_handle_msg()
572 TLOGE("Unsupported request: %d\n", (int)hdr->cmd); in hwkey_chan_handle_msg()
573 hdr->status = HWKEY_ERR_NOT_IMPLEMENTED; in hwkey_chan_handle_msg()
574 hdr->cmd |= HWKEY_RESP_BIT; in hwkey_chan_handle_msg()
575 rc = tipc_send1(ctx->chan, hdr, sizeof(*hdr)); in hwkey_chan_handle_msg()