Lines Matching full:handle
91 * @handle: Instance of TI SCI handle to send to clients.
108 struct ti_sci_handle handle; member
121 #define handle_to_ti_sci_info(h) container_of(h, struct ti_sci_info, handle)
267 dev_err(dev, "Unable to handle %zu xfer(max %d)\n", in ti_sci_rx_callback()
445 struct ti_sci_handle *handle = &info->handle; in ti_sci_cmd_get_revision() local
446 struct ti_sci_version_info *ver = &handle->version; in ti_sci_cmd_get_revision()
495 * @handle: pointer to TI SCI handle
502 static int ti_sci_set_device_state(const struct ti_sci_handle *handle, in ti_sci_set_device_state() argument
512 if (IS_ERR(handle)) in ti_sci_set_device_state()
513 return PTR_ERR(handle); in ti_sci_set_device_state()
514 if (!handle) in ti_sci_set_device_state()
517 info = handle_to_ti_sci_info(handle); in ti_sci_set_device_state()
550 * @handle: Handle to the device
559 static int ti_sci_get_device_state(const struct ti_sci_handle *handle, in ti_sci_get_device_state() argument
570 if (IS_ERR(handle)) in ti_sci_get_device_state()
571 return PTR_ERR(handle); in ti_sci_get_device_state()
572 if (!handle) in ti_sci_get_device_state()
578 info = handle_to_ti_sci_info(handle); in ti_sci_get_device_state()
621 * @handle: Pointer to TISCI handle as retrieved by *ti_sci_get_handle
630 static int ti_sci_cmd_get_device(const struct ti_sci_handle *handle, u32 id) in ti_sci_cmd_get_device() argument
632 return ti_sci_set_device_state(handle, id, 0, in ti_sci_cmd_get_device()
640 * @handle: Pointer to TISCI handle as retrieved by *ti_sci_get_handle
649 static int ti_sci_cmd_get_device_exclusive(const struct ti_sci_handle *handle, in ti_sci_cmd_get_device_exclusive() argument
652 return ti_sci_set_device_state(handle, id, in ti_sci_cmd_get_device_exclusive()
659 * @handle: Pointer to TISCI handle as retrieved by *ti_sci_get_handle
668 static int ti_sci_cmd_idle_device(const struct ti_sci_handle *handle, u32 id) in ti_sci_cmd_idle_device() argument
670 return ti_sci_set_device_state(handle, id, 0, in ti_sci_cmd_idle_device()
678 * @handle: Pointer to TISCI handle as retrieved by *ti_sci_get_handle
687 static int ti_sci_cmd_idle_device_exclusive(const struct ti_sci_handle *handle, in ti_sci_cmd_idle_device_exclusive() argument
690 return ti_sci_set_device_state(handle, id, in ti_sci_cmd_idle_device_exclusive()
697 * @handle: Pointer to TISCI handle as retrieved by *ti_sci_get_handle
706 static int ti_sci_cmd_put_device(const struct ti_sci_handle *handle, u32 id) in ti_sci_cmd_put_device() argument
708 return ti_sci_set_device_state(handle, id, in ti_sci_cmd_put_device()
714 * @handle: Pointer to TISCI handle as retrieved by *ti_sci_get_handle
720 static int ti_sci_cmd_dev_is_valid(const struct ti_sci_handle *handle, u32 id) in ti_sci_cmd_dev_is_valid() argument
725 return ti_sci_get_device_state(handle, id, NULL, NULL, NULL, &unused); in ti_sci_cmd_dev_is_valid()
730 * @handle: Pointer to TISCI handle
736 static int ti_sci_cmd_dev_get_clcnt(const struct ti_sci_handle *handle, u32 id, in ti_sci_cmd_dev_get_clcnt() argument
739 return ti_sci_get_device_state(handle, id, count, NULL, NULL, NULL); in ti_sci_cmd_dev_get_clcnt()
744 * @handle: Pointer to TISCI handle
750 static int ti_sci_cmd_dev_is_idle(const struct ti_sci_handle *handle, u32 id, in ti_sci_cmd_dev_is_idle() argument
759 ret = ti_sci_get_device_state(handle, id, NULL, NULL, &state, NULL); in ti_sci_cmd_dev_is_idle()
770 * @handle: Pointer to TISCI handle
777 static int ti_sci_cmd_dev_is_stop(const struct ti_sci_handle *handle, u32 id, in ti_sci_cmd_dev_is_stop() argument
787 ti_sci_get_device_state(handle, id, NULL, NULL, &p_state, &c_state); in ti_sci_cmd_dev_is_stop()
801 * @handle: Pointer to TISCI handle
808 static int ti_sci_cmd_dev_is_on(const struct ti_sci_handle *handle, u32 id, in ti_sci_cmd_dev_is_on() argument
818 ti_sci_get_device_state(handle, id, NULL, NULL, &p_state, &c_state); in ti_sci_cmd_dev_is_on()
832 * @handle: Pointer to TISCI handle
838 static int ti_sci_cmd_dev_is_trans(const struct ti_sci_handle *handle, u32 id, in ti_sci_cmd_dev_is_trans() argument
847 ret = ti_sci_get_device_state(handle, id, NULL, NULL, NULL, &state); in ti_sci_cmd_dev_is_trans()
859 * @handle: Pointer to TISCI handle as retrieved by *ti_sci_get_handle
865 static int ti_sci_cmd_set_device_resets(const struct ti_sci_handle *handle, in ti_sci_cmd_set_device_resets() argument
875 if (IS_ERR(handle)) in ti_sci_cmd_set_device_resets()
876 return PTR_ERR(handle); in ti_sci_cmd_set_device_resets()
877 if (!handle) in ti_sci_cmd_set_device_resets()
880 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_set_device_resets()
914 * @handle: Pointer to TISCI handle
920 static int ti_sci_cmd_get_device_resets(const struct ti_sci_handle *handle, in ti_sci_cmd_get_device_resets() argument
923 return ti_sci_get_device_state(handle, id, NULL, reset_state, NULL, in ti_sci_cmd_get_device_resets()
929 * @handle: pointer to TI SCI handle
939 static int ti_sci_set_clock_state(const struct ti_sci_handle *handle, in ti_sci_set_clock_state() argument
950 if (IS_ERR(handle)) in ti_sci_set_clock_state()
951 return PTR_ERR(handle); in ti_sci_set_clock_state()
952 if (!handle) in ti_sci_set_clock_state()
955 info = handle_to_ti_sci_info(handle); in ti_sci_set_clock_state()
994 * @handle: pointer to TI SCI handle
1004 static int ti_sci_cmd_get_clock_state(const struct ti_sci_handle *handle, in ti_sci_cmd_get_clock_state() argument
1015 if (IS_ERR(handle)) in ti_sci_cmd_get_clock_state()
1016 return PTR_ERR(handle); in ti_sci_cmd_get_clock_state()
1017 if (!handle) in ti_sci_cmd_get_clock_state()
1023 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_get_clock_state()
1069 * @handle: pointer to TI SCI handle
1080 static int ti_sci_cmd_get_clock(const struct ti_sci_handle *handle, u32 dev_id, in ti_sci_cmd_get_clock() argument
1090 return ti_sci_set_clock_state(handle, dev_id, clk_id, flags, in ti_sci_cmd_get_clock()
1096 * @handle: pointer to TI SCI handle
1106 static int ti_sci_cmd_idle_clock(const struct ti_sci_handle *handle, in ti_sci_cmd_idle_clock() argument
1109 return ti_sci_set_clock_state(handle, dev_id, clk_id, in ti_sci_cmd_idle_clock()
1116 * @handle: pointer to TI SCI handle
1126 static int ti_sci_cmd_put_clock(const struct ti_sci_handle *handle, in ti_sci_cmd_put_clock() argument
1129 return ti_sci_set_clock_state(handle, dev_id, clk_id, in ti_sci_cmd_put_clock()
1136 * @handle: pointer to TI SCI handle
1145 static int ti_sci_cmd_clk_is_auto(const struct ti_sci_handle *handle, in ti_sci_cmd_clk_is_auto() argument
1154 ret = ti_sci_cmd_get_clock_state(handle, dev_id, clk_id, &state, NULL); in ti_sci_cmd_clk_is_auto()
1164 * @handle: pointer to TI SCI handle
1174 static int ti_sci_cmd_clk_is_on(const struct ti_sci_handle *handle, u32 dev_id, in ti_sci_cmd_clk_is_on() argument
1183 ret = ti_sci_cmd_get_clock_state(handle, dev_id, clk_id, in ti_sci_cmd_clk_is_on()
1197 * @handle: pointer to TI SCI handle
1207 static int ti_sci_cmd_clk_is_off(const struct ti_sci_handle *handle, u32 dev_id, in ti_sci_cmd_clk_is_off() argument
1216 ret = ti_sci_cmd_get_clock_state(handle, dev_id, clk_id, in ti_sci_cmd_clk_is_off()
1230 * @handle: pointer to TI SCI handle
1239 static int ti_sci_cmd_clk_set_parent(const struct ti_sci_handle *handle, in ti_sci_cmd_clk_set_parent() argument
1249 if (IS_ERR(handle)) in ti_sci_cmd_clk_set_parent()
1250 return PTR_ERR(handle); in ti_sci_cmd_clk_set_parent()
1251 if (!handle) in ti_sci_cmd_clk_set_parent()
1254 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_clk_set_parent()
1298 * @handle: pointer to TI SCI handle
1307 static int ti_sci_cmd_clk_get_parent(const struct ti_sci_handle *handle, in ti_sci_cmd_clk_get_parent() argument
1317 if (IS_ERR(handle)) in ti_sci_cmd_clk_get_parent()
1318 return PTR_ERR(handle); in ti_sci_cmd_clk_get_parent()
1319 if (!handle || !parent_id) in ti_sci_cmd_clk_get_parent()
1322 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_clk_get_parent()
1367 * @handle: pointer to TI SCI handle
1376 static int ti_sci_cmd_clk_get_num_parents(const struct ti_sci_handle *handle, in ti_sci_cmd_clk_get_num_parents() argument
1387 if (IS_ERR(handle)) in ti_sci_cmd_clk_get_num_parents()
1388 return PTR_ERR(handle); in ti_sci_cmd_clk_get_num_parents()
1389 if (!handle || !num_parents) in ti_sci_cmd_clk_get_num_parents()
1392 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_clk_get_num_parents()
1437 * @handle: pointer to TI SCI handle
1454 static int ti_sci_cmd_clk_get_match_freq(const struct ti_sci_handle *handle, in ti_sci_cmd_clk_get_match_freq() argument
1466 if (IS_ERR(handle)) in ti_sci_cmd_clk_get_match_freq()
1467 return PTR_ERR(handle); in ti_sci_cmd_clk_get_match_freq()
1468 if (!handle || !match_freq) in ti_sci_cmd_clk_get_match_freq()
1471 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_clk_get_match_freq()
1515 * @handle: pointer to TI SCI handle
1531 static int ti_sci_cmd_clk_set_freq(const struct ti_sci_handle *handle, in ti_sci_cmd_clk_set_freq() argument
1542 if (IS_ERR(handle)) in ti_sci_cmd_clk_set_freq()
1543 return PTR_ERR(handle); in ti_sci_cmd_clk_set_freq()
1544 if (!handle) in ti_sci_cmd_clk_set_freq()
1547 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_clk_set_freq()
1588 * @handle: pointer to TI SCI handle
1597 static int ti_sci_cmd_clk_get_freq(const struct ti_sci_handle *handle, in ti_sci_cmd_clk_get_freq() argument
1607 if (IS_ERR(handle)) in ti_sci_cmd_clk_get_freq()
1608 return PTR_ERR(handle); in ti_sci_cmd_clk_get_freq()
1609 if (!handle || !freq) in ti_sci_cmd_clk_get_freq()
1612 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_clk_get_freq()
1651 static int ti_sci_cmd_core_reboot(const struct ti_sci_handle *handle) in ti_sci_cmd_core_reboot() argument
1660 if (IS_ERR(handle)) in ti_sci_cmd_core_reboot()
1661 return PTR_ERR(handle); in ti_sci_cmd_core_reboot()
1662 if (!handle) in ti_sci_cmd_core_reboot()
1665 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_core_reboot()
1701 * @handle: Pointer to TISCI handle.
1711 static int ti_sci_get_resource_range(const struct ti_sci_handle *handle, in ti_sci_get_resource_range() argument
1722 if (IS_ERR(handle)) in ti_sci_get_resource_range()
1723 return PTR_ERR(handle); in ti_sci_get_resource_range()
1724 if (!handle) in ti_sci_get_resource_range()
1727 info = handle_to_ti_sci_info(handle); in ti_sci_get_resource_range()
1770 * @handle: Pointer to TISCI handle.
1779 static int ti_sci_cmd_get_resource_range(const struct ti_sci_handle *handle, in ti_sci_cmd_get_resource_range() argument
1783 return ti_sci_get_resource_range(handle, dev_id, subtype, in ti_sci_cmd_get_resource_range()
1791 * @handle: Pointer to TISCI handle.
1802 int ti_sci_cmd_get_resource_range_from_shost(const struct ti_sci_handle *handle, in ti_sci_cmd_get_resource_range_from_shost() argument
1806 return ti_sci_get_resource_range(handle, dev_id, subtype, s_host, in ti_sci_cmd_get_resource_range_from_shost()
1813 * @handle: Pointer to TISCI handle.
1829 static int ti_sci_manage_irq(const struct ti_sci_handle *handle, in ti_sci_manage_irq() argument
1842 if (IS_ERR(handle)) in ti_sci_manage_irq()
1843 return PTR_ERR(handle); in ti_sci_manage_irq()
1844 if (!handle) in ti_sci_manage_irq()
1847 info = handle_to_ti_sci_info(handle); in ti_sci_manage_irq()
1888 * @handle: Pointer to TISCI handle.
1903 static int ti_sci_set_irq(const struct ti_sci_handle *handle, u32 valid_params, in ti_sci_set_irq() argument
1913 return ti_sci_manage_irq(handle, valid_params, src_id, src_index, in ti_sci_set_irq()
1922 * @handle: Pointer to TISCI handle.
1937 static int ti_sci_free_irq(const struct ti_sci_handle *handle, u32 valid_params, in ti_sci_free_irq() argument
1947 return ti_sci_manage_irq(handle, valid_params, src_id, src_index, in ti_sci_free_irq()
1956 * @handle: Pointer to TISCI handle.
1966 static int ti_sci_cmd_set_irq(const struct ti_sci_handle *handle, u16 src_id, in ti_sci_cmd_set_irq() argument
1971 return ti_sci_set_irq(handle, valid_params, src_id, src_index, dst_id, in ti_sci_cmd_set_irq()
1978 * @handle: Pointer to TISCI handle.
1988 static int ti_sci_cmd_set_event_map(const struct ti_sci_handle *handle, in ti_sci_cmd_set_event_map() argument
1997 return ti_sci_set_irq(handle, valid_params, src_id, src_index, 0, 0, in ti_sci_cmd_set_event_map()
2004 * @handle: Pointer to TISCI handle.
2014 static int ti_sci_cmd_free_irq(const struct ti_sci_handle *handle, u16 src_id, in ti_sci_cmd_free_irq() argument
2019 return ti_sci_free_irq(handle, valid_params, src_id, src_index, dst_id, in ti_sci_cmd_free_irq()
2026 * @handle: Pointer to TISCI handle.
2036 static int ti_sci_cmd_free_event_map(const struct ti_sci_handle *handle, in ti_sci_cmd_free_event_map() argument
2045 return ti_sci_free_irq(handle, valid_params, src_id, src_index, 0, 0, in ti_sci_cmd_free_event_map()
2051 * @handle: Pointer to TI SCI handle.
2068 static int ti_sci_cmd_ring_config(const struct ti_sci_handle *handle, in ti_sci_cmd_ring_config() argument
2080 if (IS_ERR_OR_NULL(handle)) in ti_sci_cmd_ring_config()
2083 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_ring_config()
2122 * @handle: Pointer to TI SCI handle.
2137 static int ti_sci_cmd_ring_get_config(const struct ti_sci_handle *handle, in ti_sci_cmd_ring_get_config() argument
2149 if (IS_ERR_OR_NULL(handle)) in ti_sci_cmd_ring_get_config()
2152 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_ring_get_config()
2201 * @handle: Pointer to TI SCI handle.
2209 static int ti_sci_cmd_rm_psil_pair(const struct ti_sci_handle *handle, in ti_sci_cmd_rm_psil_pair() argument
2219 if (IS_ERR(handle)) in ti_sci_cmd_rm_psil_pair()
2220 return PTR_ERR(handle); in ti_sci_cmd_rm_psil_pair()
2221 if (!handle) in ti_sci_cmd_rm_psil_pair()
2224 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_rm_psil_pair()
2257 * @handle: Pointer to TI SCI handle.
2265 static int ti_sci_cmd_rm_psil_unpair(const struct ti_sci_handle *handle, in ti_sci_cmd_rm_psil_unpair() argument
2275 if (IS_ERR(handle)) in ti_sci_cmd_rm_psil_unpair()
2276 return PTR_ERR(handle); in ti_sci_cmd_rm_psil_unpair()
2277 if (!handle) in ti_sci_cmd_rm_psil_unpair()
2280 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_rm_psil_unpair()
2313 * @handle: Pointer to TI SCI handle.
2322 static int ti_sci_cmd_rm_udmap_tx_ch_cfg(const struct ti_sci_handle *handle, in ti_sci_cmd_rm_udmap_tx_ch_cfg() argument
2332 if (IS_ERR_OR_NULL(handle)) in ti_sci_cmd_rm_udmap_tx_ch_cfg()
2335 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_rm_udmap_tx_ch_cfg()
2383 * @handle: Pointer to TI SCI handle.
2392 static int ti_sci_cmd_rm_udmap_rx_ch_cfg(const struct ti_sci_handle *handle, in ti_sci_cmd_rm_udmap_rx_ch_cfg() argument
2402 if (IS_ERR_OR_NULL(handle)) in ti_sci_cmd_rm_udmap_rx_ch_cfg()
2405 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_rm_udmap_rx_ch_cfg()
2452 * @handle: Pointer to TI SCI handle.
2461 static int ti_sci_cmd_rm_udmap_rx_flow_cfg(const struct ti_sci_handle *handle, in ti_sci_cmd_rm_udmap_rx_flow_cfg() argument
2471 if (IS_ERR_OR_NULL(handle)) in ti_sci_cmd_rm_udmap_rx_flow_cfg()
2474 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_rm_udmap_rx_flow_cfg()
2526 * @handle: Pointer to TI SCI handle
2531 static int ti_sci_cmd_proc_request(const struct ti_sci_handle *handle, in ti_sci_cmd_proc_request() argument
2541 if (!handle) in ti_sci_cmd_proc_request()
2543 if (IS_ERR(handle)) in ti_sci_cmd_proc_request()
2544 return PTR_ERR(handle); in ti_sci_cmd_proc_request()
2546 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_proc_request()
2578 * @handle: Pointer to TI SCI handle
2583 static int ti_sci_cmd_proc_release(const struct ti_sci_handle *handle, in ti_sci_cmd_proc_release() argument
2593 if (!handle) in ti_sci_cmd_proc_release()
2595 if (IS_ERR(handle)) in ti_sci_cmd_proc_release()
2596 return PTR_ERR(handle); in ti_sci_cmd_proc_release()
2598 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_proc_release()
2632 * @handle: Pointer to TI SCI handle
2638 static int ti_sci_cmd_proc_handover(const struct ti_sci_handle *handle, in ti_sci_cmd_proc_handover() argument
2648 if (!handle) in ti_sci_cmd_proc_handover()
2650 if (IS_ERR(handle)) in ti_sci_cmd_proc_handover()
2651 return PTR_ERR(handle); in ti_sci_cmd_proc_handover()
2653 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_proc_handover()
2687 * @handle: Pointer to TI SCI handle
2694 static int ti_sci_cmd_proc_set_config(const struct ti_sci_handle *handle, in ti_sci_cmd_proc_set_config() argument
2706 if (!handle) in ti_sci_cmd_proc_set_config()
2708 if (IS_ERR(handle)) in ti_sci_cmd_proc_set_config()
2709 return PTR_ERR(handle); in ti_sci_cmd_proc_set_config()
2711 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_proc_set_config()
2749 * @handle: Pointer to TI SCI handle
2756 static int ti_sci_cmd_proc_set_control(const struct ti_sci_handle *handle, in ti_sci_cmd_proc_set_control() argument
2767 if (!handle) in ti_sci_cmd_proc_set_control()
2769 if (IS_ERR(handle)) in ti_sci_cmd_proc_set_control()
2770 return PTR_ERR(handle); in ti_sci_cmd_proc_set_control()
2772 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_proc_set_control()
2806 * @handle: Pointer to TI SCI handle
2811 static int ti_sci_cmd_proc_get_status(const struct ti_sci_handle *handle, in ti_sci_cmd_proc_get_status() argument
2822 if (!handle) in ti_sci_cmd_proc_get_status()
2824 if (IS_ERR(handle)) in ti_sci_cmd_proc_get_status()
2825 return PTR_ERR(handle); in ti_sci_cmd_proc_get_status()
2827 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_proc_get_status()
2872 struct ti_sci_ops *ops = &info->handle.ops; in ti_sci_setup_ops()
2943 * ti_sci_get_handle() - Get the TI SCI handle for a device
2944 * @dev: Pointer to device for which we want SCI handle
2949 * Return: pointer to handle if successful, else:
2958 struct ti_sci_handle *handle = NULL; in ti_sci_get_handle() local
2975 handle = &info->handle; in ti_sci_get_handle()
2983 if (!handle) in ti_sci_get_handle()
2986 return handle; in ti_sci_get_handle()
2991 * ti_sci_put_handle() - Release the handle acquired by ti_sci_get_handle
2992 * @handle: Handle acquired by ti_sci_get_handle
3002 int ti_sci_put_handle(const struct ti_sci_handle *handle) in ti_sci_put_handle() argument
3006 if (IS_ERR(handle)) in ti_sci_put_handle()
3007 return PTR_ERR(handle); in ti_sci_put_handle()
3008 if (!handle) in ti_sci_put_handle()
3011 info = handle_to_ti_sci_info(handle); in ti_sci_put_handle()
3024 const struct ti_sci_handle *handle = *ptr; in devm_ti_sci_release() local
3027 ret = ti_sci_put_handle(handle); in devm_ti_sci_release()
3029 dev_err(dev, "failed to put handle %d\n", ret); in devm_ti_sci_release()
3033 * devm_ti_sci_get_handle() - Managed get handle
3034 * @dev: device for which we want SCI handle for.
3036 * NOTE: This releases the handle once the device resources are
3046 const struct ti_sci_handle *handle; in devm_ti_sci_get_handle() local
3051 handle = ti_sci_get_handle(dev); in devm_ti_sci_get_handle()
3053 if (!IS_ERR(handle)) { in devm_ti_sci_get_handle()
3054 *ptr = handle; in devm_ti_sci_get_handle()
3060 return handle; in devm_ti_sci_get_handle()
3065 * ti_sci_get_by_phandle() - Get the TI SCI handle using DT phandle
3072 * Return: pointer to handle if successful, else:
3080 struct ti_sci_handle *handle = NULL; in ti_sci_get_by_phandle() local
3098 handle = &info->handle; in ti_sci_get_by_phandle()
3106 if (!handle) in ti_sci_get_by_phandle()
3109 return handle; in ti_sci_get_by_phandle()
3114 * devm_ti_sci_get_by_phandle() - Managed get handle using phandle
3115 * @dev: Device pointer requesting TISCI handle
3118 * NOTE: This releases the handle once the device resources are
3128 const struct ti_sci_handle *handle; in devm_ti_sci_get_by_phandle() local
3134 handle = ti_sci_get_by_phandle(dev_of_node(dev), property); in devm_ti_sci_get_by_phandle()
3136 if (!IS_ERR(handle)) { in devm_ti_sci_get_by_phandle()
3137 *ptr = handle; in devm_ti_sci_get_by_phandle()
3143 return handle; in devm_ti_sci_get_by_phandle()
3214 * @handle: TISCI handle
3224 devm_ti_sci_get_resource_sets(const struct ti_sci_handle *handle, in devm_ti_sci_get_resource_sets() argument
3243 ret = handle->ops.rm_core_ops.get_range(handle, dev_id, in devm_ti_sci_get_resource_sets()
3276 * @handle: TISCI handle
3285 devm_ti_sci_get_of_resource(const struct ti_sci_handle *handle, in devm_ti_sci_get_of_resource() argument
3304 res = devm_ti_sci_get_resource_sets(handle, dev, dev_id, sub_types, in devm_ti_sci_get_of_resource()
3314 * @handle: TISCI handle
3323 devm_ti_sci_get_resource(const struct ti_sci_handle *handle, struct device *dev, in devm_ti_sci_get_resource() argument
3326 return devm_ti_sci_get_resource_sets(handle, dev, dev_id, &sub_type, 1); in devm_ti_sci_get_resource()
3334 const struct ti_sci_handle *handle = &info->handle; in tisci_reboot_handler() local
3336 ti_sci_cmd_core_reboot(handle); in tisci_reboot_handler()
3347 /* Limited by MBOX_TX_QUEUE_LEN. K2G can handle upto 128 messages! */
3357 /* Limited by MBOX_TX_QUEUE_LEN. K2G can handle upto 128 messages! */
3495 info->handle.version.abi_major, info->handle.version.abi_minor, in ti_sci_probe()
3496 info->handle.version.firmware_revision, in ti_sci_probe()
3497 info->handle.version.firmware_description); in ti_sci_probe()