Lines Matching refs:resp

333 	struct ti_sci_msg_hdr *resp;  in cmd_set_board_config_using_msg()  local
347 (u32 *)&req, sizeof(req), sizeof(*resp)); in cmd_set_board_config_using_msg()
363 resp = (struct ti_sci_msg_hdr *)xfer->tx_message.buf; in cmd_set_board_config_using_msg()
365 if (!ti_sci_is_response_ack(resp)) in cmd_set_board_config_using_msg()
494 struct ti_sci_msg_hdr *resp; in ti_sci_set_device_state() local
508 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_set_device_state()
523 resp = (struct ti_sci_msg_hdr *)xfer->tx_message.buf; in ti_sci_set_device_state()
525 if (!ti_sci_is_response_ack(resp)) in ti_sci_set_device_state()
594 struct ti_sci_msg_resp_get_device_state *resp; in ti_sci_get_device_state() local
612 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_get_device_state()
626 resp = (struct ti_sci_msg_resp_get_device_state *)xfer->tx_message.buf; in ti_sci_get_device_state()
627 if (!ti_sci_is_response_ack(resp)) in ti_sci_get_device_state()
631 *clcnt = resp->context_loss_count; in ti_sci_get_device_state()
633 *resets = resp->resets; in ti_sci_get_device_state()
635 *p_state = resp->programmed_state; in ti_sci_get_device_state()
637 *c_state = resp->current_state; in ti_sci_get_device_state()
886 struct ti_sci_msg_hdr *resp; in ti_sci_cmd_set_device_resets() local
900 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_set_device_resets()
915 resp = (struct ti_sci_msg_hdr *)xfer->tx_message.buf; in ti_sci_cmd_set_device_resets()
917 if (!ti_sci_is_response_ack(resp)) in ti_sci_cmd_set_device_resets()
956 struct ti_sci_msg_hdr *resp; in ti_sci_set_clock_state() local
970 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_set_clock_state()
986 resp = (struct ti_sci_msg_hdr *)xfer->tx_message.buf; in ti_sci_set_clock_state()
988 if (!ti_sci_is_response_ack(resp)) in ti_sci_set_clock_state()
1010 struct ti_sci_msg_resp_get_clock_state *resp; in ti_sci_cmd_get_clock_state() local
1028 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_get_clock_state()
1043 resp = (struct ti_sci_msg_resp_get_clock_state *)xfer->tx_message.buf; in ti_sci_cmd_get_clock_state()
1045 if (!ti_sci_is_response_ack(resp)) in ti_sci_cmd_get_clock_state()
1049 *programmed_state = resp->programmed_state; in ti_sci_cmd_get_clock_state()
1051 *current_state = resp->current_state; in ti_sci_cmd_get_clock_state()
1230 struct ti_sci_msg_hdr *resp; in ti_sci_cmd_clk_set_parent() local
1244 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_clk_set_parent()
1260 resp = (struct ti_sci_msg_hdr *)xfer->tx_message.buf; in ti_sci_cmd_clk_set_parent()
1262 if (!ti_sci_is_response_ack(resp)) in ti_sci_cmd_clk_set_parent()
1282 struct ti_sci_msg_resp_get_clock_parent *resp; in ti_sci_cmd_clk_get_parent() local
1297 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_clk_get_parent()
1312 resp = (struct ti_sci_msg_resp_get_clock_parent *)xfer->tx_message.buf; in ti_sci_cmd_clk_get_parent()
1314 if (!ti_sci_is_response_ack(resp)) in ti_sci_cmd_clk_get_parent()
1317 *parent_id = resp->parent_id; in ti_sci_cmd_clk_get_parent()
1337 struct ti_sci_msg_resp_get_clock_num_parents *resp; in ti_sci_cmd_clk_get_num_parents() local
1352 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_clk_get_num_parents()
1367 resp = (struct ti_sci_msg_resp_get_clock_num_parents *) in ti_sci_cmd_clk_get_num_parents()
1370 if (!ti_sci_is_response_ack(resp)) in ti_sci_cmd_clk_get_num_parents()
1373 *num_parents = resp->num_parents; in ti_sci_cmd_clk_get_num_parents()
1402 struct ti_sci_msg_resp_query_clock_freq *resp; in ti_sci_cmd_clk_get_match_freq() local
1417 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_clk_get_match_freq()
1435 resp = (struct ti_sci_msg_resp_query_clock_freq *)xfer->tx_message.buf; in ti_sci_cmd_clk_get_match_freq()
1437 if (!ti_sci_is_response_ack(resp)) in ti_sci_cmd_clk_get_match_freq()
1440 *match_freq = resp->freq_hz; in ti_sci_cmd_clk_get_match_freq()
1468 struct ti_sci_msg_hdr *resp; in ti_sci_cmd_clk_set_freq() local
1482 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_clk_set_freq()
1500 resp = (struct ti_sci_msg_hdr *)xfer->tx_message.buf; in ti_sci_cmd_clk_set_freq()
1502 if (!ti_sci_is_response_ack(resp)) in ti_sci_cmd_clk_set_freq()
1522 struct ti_sci_msg_resp_get_clock_freq *resp; in ti_sci_cmd_clk_get_freq() local
1537 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_clk_get_freq()
1552 resp = (struct ti_sci_msg_resp_get_clock_freq *)xfer->tx_message.buf; in ti_sci_cmd_clk_get_freq()
1554 if (!ti_sci_is_response_ack(resp)) in ti_sci_cmd_clk_get_freq()
1557 *freq = resp->freq_hz; in ti_sci_cmd_clk_get_freq()
1571 struct ti_sci_msg_hdr *resp; in ti_sci_cmd_core_reboot() local
1585 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_core_reboot()
1598 resp = (struct ti_sci_msg_hdr *)xfer->tx_message.buf; in ti_sci_cmd_core_reboot()
1600 if (!ti_sci_is_response_ack(resp)) in ti_sci_cmd_core_reboot()
1624 struct ti_sci_msg_resp_get_resource_range *resp; in ti_sci_get_resource_range() local
1639 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_get_resource_range()
1656 resp = (struct ti_sci_msg_resp_get_resource_range *)xfer->tx_message.buf; in ti_sci_get_resource_range()
1657 if (!ti_sci_is_response_ack(resp)) { in ti_sci_get_resource_range()
1659 } else if (!resp->range_start && !resp->range_num) { in ti_sci_get_resource_range()
1662 *range_start = resp->range_start; in ti_sci_get_resource_range()
1663 *range_num = resp->range_num; in ti_sci_get_resource_range()
1724 struct ti_sci_msg_resp_query_msmc *resp; in ti_sci_cmd_query_msmc() local
1739 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_query_msmc()
1752 resp = (struct ti_sci_msg_resp_query_msmc *)xfer->tx_message.buf; in ti_sci_cmd_query_msmc()
1754 if (!ti_sci_is_response_ack(resp)) in ti_sci_cmd_query_msmc()
1757 *msmc_start = ((u64)resp->msmc_start_high << TISCI_ADDR_HIGH_SHIFT) | in ti_sci_cmd_query_msmc()
1758 resp->msmc_start_low; in ti_sci_cmd_query_msmc()
1759 *msmc_end = ((u64)resp->msmc_end_high << TISCI_ADDR_HIGH_SHIFT) | in ti_sci_cmd_query_msmc()
1760 resp->msmc_end_low; in ti_sci_cmd_query_msmc()
1776 struct ti_sci_msg_hdr *resp; in ti_sci_cmd_proc_request() local
1790 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_proc_request()
1804 resp = (struct ti_sci_msg_hdr *)xfer->tx_message.buf; in ti_sci_cmd_proc_request()
1806 if (!ti_sci_is_response_ack(resp)) in ti_sci_cmd_proc_request()
1823 struct ti_sci_msg_hdr *resp; in ti_sci_cmd_proc_release() local
1837 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_proc_release()
1851 resp = (struct ti_sci_msg_hdr *)xfer->tx_message.buf; in ti_sci_cmd_proc_release()
1853 if (!ti_sci_is_response_ack(resp)) in ti_sci_cmd_proc_release()
1873 struct ti_sci_msg_hdr *resp; in ti_sci_cmd_proc_handover() local
1887 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_proc_handover()
1902 resp = (struct ti_sci_msg_hdr *)xfer->tx_message.buf; in ti_sci_cmd_proc_handover()
1904 if (!ti_sci_is_response_ack(resp)) in ti_sci_cmd_proc_handover()
1926 struct ti_sci_msg_hdr *resp; in ti_sci_cmd_set_proc_boot_cfg() local
1940 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_set_proc_boot_cfg()
1959 resp = (struct ti_sci_msg_hdr *)xfer->tx_message.buf; in ti_sci_cmd_set_proc_boot_cfg()
1961 if (!ti_sci_is_response_ack(resp)) in ti_sci_cmd_set_proc_boot_cfg()
1982 struct ti_sci_msg_hdr *resp; in ti_sci_cmd_set_proc_boot_ctrl() local
1996 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_set_proc_boot_ctrl()
2012 resp = (struct ti_sci_msg_hdr *)xfer->tx_message.buf; in ti_sci_cmd_set_proc_boot_ctrl()
2014 if (!ti_sci_is_response_ack(resp)) in ti_sci_cmd_set_proc_boot_ctrl()
2036 struct ti_sci_msg_resp_proc_auth_boot_image *resp; in ti_sci_cmd_proc_auth_boot_image() local
2050 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_proc_auth_boot_image()
2066 resp = (struct ti_sci_msg_resp_proc_auth_boot_image *)xfer->tx_message.buf; in ti_sci_cmd_proc_auth_boot_image()
2068 if (!ti_sci_is_response_ack(resp)) in ti_sci_cmd_proc_auth_boot_image()
2071 *image_addr = (resp->image_addr_low & TISCI_ADDR_LOW_MASK) | in ti_sci_cmd_proc_auth_boot_image()
2072 (((u64)resp->image_addr_high << in ti_sci_cmd_proc_auth_boot_image()
2074 *image_size = resp->image_size; in ti_sci_cmd_proc_auth_boot_image()
2090 struct ti_sci_msg_resp_get_proc_boot_status *resp; in ti_sci_cmd_get_proc_boot_status() local
2105 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_get_proc_boot_status()
2119 resp = (struct ti_sci_msg_resp_get_proc_boot_status *) in ti_sci_cmd_get_proc_boot_status()
2122 if (!ti_sci_is_response_ack(resp)) in ti_sci_cmd_get_proc_boot_status()
2124 *bv = (resp->bootvector_low & TISCI_ADDR_LOW_MASK) | in ti_sci_cmd_get_proc_boot_status()
2125 (((u64)resp->bootvector_high << in ti_sci_cmd_get_proc_boot_status()
2127 *cfg_flags = resp->config_flags; in ti_sci_cmd_get_proc_boot_status()
2128 *ctrl_flags = resp->control_flags; in ti_sci_cmd_get_proc_boot_status()
2129 *sts_flags = resp->status_flags; in ti_sci_cmd_get_proc_boot_status()
2295 struct ti_sci_msg_rm_ring_cfg_resp *resp; in ti_sci_cmd_ring_config() local
2310 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_ring_config()
2332 resp = (struct ti_sci_msg_rm_ring_cfg_resp *)xfer->tx_message.buf; in ti_sci_cmd_ring_config()
2334 ret = ti_sci_is_response_ack(resp) ? 0 : -ENODEV; in ti_sci_cmd_ring_config()
2344 struct ti_sci_msg_hdr *resp; in ti_sci_cmd_rm_psil_pair() local
2359 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_rm_psil_pair()
2375 resp = (struct ti_sci_msg_hdr *)xfer->tx_message.buf; in ti_sci_cmd_rm_psil_pair()
2376 ret = ti_sci_is_response_ack(resp) ? 0 : -ENODEV; in ti_sci_cmd_rm_psil_pair()
2387 struct ti_sci_msg_hdr *resp; in ti_sci_cmd_rm_psil_unpair() local
2402 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_rm_psil_unpair()
2418 resp = (struct ti_sci_msg_hdr *)xfer->tx_message.buf; in ti_sci_cmd_rm_psil_unpair()
2419 ret = ti_sci_is_response_ack(resp) ? 0 : -ENODEV; in ti_sci_cmd_rm_psil_unpair()
2431 struct ti_sci_msg_rm_udmap_tx_ch_cfg_resp *resp; in ti_sci_cmd_rm_udmap_tx_ch_cfg() local
2446 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_rm_udmap_tx_ch_cfg()
2476 resp = in ti_sci_cmd_rm_udmap_tx_ch_cfg()
2478 ret = ti_sci_is_response_ack(resp) ? 0 : -EINVAL; in ti_sci_cmd_rm_udmap_tx_ch_cfg()
2489 struct ti_sci_msg_rm_udmap_rx_ch_cfg_resp *resp; in ti_sci_cmd_rm_udmap_rx_ch_cfg() local
2504 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_rm_udmap_rx_ch_cfg()
2534 resp = in ti_sci_cmd_rm_udmap_rx_ch_cfg()
2536 ret = ti_sci_is_response_ack(resp) ? 0 : -EINVAL; in ti_sci_cmd_rm_udmap_rx_ch_cfg()
2547 struct ti_sci_msg_rm_udmap_flow_cfg_resp *resp; in ti_sci_cmd_rm_udmap_rx_flow_cfg() local
2562 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_rm_udmap_rx_flow_cfg()
2599 resp = in ti_sci_cmd_rm_udmap_rx_flow_cfg()
2601 ret = ti_sci_is_response_ack(resp) ? 0 : -EINVAL; in ti_sci_cmd_rm_udmap_rx_flow_cfg()
2619 struct ti_sci_msg_hdr *resp; in ti_sci_cmd_set_fwl_region() local
2633 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_set_fwl_region()
2656 resp = (struct ti_sci_msg_hdr *)xfer->tx_message.buf; in ti_sci_cmd_set_fwl_region()
2658 if (!ti_sci_is_response_ack(resp)) in ti_sci_cmd_set_fwl_region()
2675 struct ti_sci_msg_fwl_get_firewall_region_resp *resp; in ti_sci_cmd_get_fwl_region() local
2689 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_get_fwl_region()
2706 resp = (struct ti_sci_msg_fwl_get_firewall_region_resp *)xfer->tx_message.buf; in ti_sci_cmd_get_fwl_region()
2708 if (!ti_sci_is_response_ack(resp)) in ti_sci_cmd_get_fwl_region()
2711 region->fwl_id = resp->fwl_id; in ti_sci_cmd_get_fwl_region()
2712 region->region = resp->region; in ti_sci_cmd_get_fwl_region()
2713 region->n_permission_regs = resp->n_permission_regs; in ti_sci_cmd_get_fwl_region()
2714 region->control = resp->control; in ti_sci_cmd_get_fwl_region()
2715 region->permissions[0] = resp->permissions[0]; in ti_sci_cmd_get_fwl_region()
2716 region->permissions[1] = resp->permissions[1]; in ti_sci_cmd_get_fwl_region()
2717 region->permissions[2] = resp->permissions[2]; in ti_sci_cmd_get_fwl_region()
2718 region->start_address = resp->start_address; in ti_sci_cmd_get_fwl_region()
2719 region->end_address = resp->end_address; in ti_sci_cmd_get_fwl_region()
2735 struct ti_sci_msg_fwl_change_owner_info_resp *resp; in ti_sci_cmd_change_fwl_owner() local
2749 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_change_fwl_owner()
2766 resp = (struct ti_sci_msg_fwl_change_owner_info_resp *)xfer->tx_message.buf; in ti_sci_cmd_change_fwl_owner()
2768 if (!ti_sci_is_response_ack(resp)) in ti_sci_cmd_change_fwl_owner()
2771 owner->fwl_id = resp->fwl_id; in ti_sci_cmd_change_fwl_owner()
2772 owner->region = resp->region; in ti_sci_cmd_change_fwl_owner()
2773 owner->owner_index = resp->owner_index; in ti_sci_cmd_change_fwl_owner()
2774 owner->owner_privid = resp->owner_privid; in ti_sci_cmd_change_fwl_owner()
2775 owner->owner_permission_bits = resp->owner_permission_bits; in ti_sci_cmd_change_fwl_owner()