Lines Matching full:handle

109  * @handle:	Instance of TI SCI handle to send to clients.
126 struct ti_sci_handle handle; member
139 #define handle_to_ti_sci_info(h) container_of(h, struct ti_sci_info, handle)
285 dev_err(dev, "Unable to handle %zu xfer(max %d)\n", in ti_sci_rx_callback()
463 struct ti_sci_handle *handle = &info->handle; in ti_sci_cmd_get_revision() local
464 struct ti_sci_version_info *ver = &handle->version; in ti_sci_cmd_get_revision()
513 * @handle: pointer to TI SCI handle
520 static int ti_sci_set_device_state(const struct ti_sci_handle *handle, in ti_sci_set_device_state() argument
530 if (IS_ERR(handle)) in ti_sci_set_device_state()
531 return PTR_ERR(handle); in ti_sci_set_device_state()
532 if (!handle) in ti_sci_set_device_state()
535 info = handle_to_ti_sci_info(handle); in ti_sci_set_device_state()
568 * @handle: Handle to the device
577 static int ti_sci_get_device_state(const struct ti_sci_handle *handle, in ti_sci_get_device_state() argument
588 if (IS_ERR(handle)) in ti_sci_get_device_state()
589 return PTR_ERR(handle); in ti_sci_get_device_state()
590 if (!handle) in ti_sci_get_device_state()
596 info = handle_to_ti_sci_info(handle); in ti_sci_get_device_state()
639 * @handle: Pointer to TISCI handle as retrieved by *ti_sci_get_handle
648 static int ti_sci_cmd_get_device(const struct ti_sci_handle *handle, u32 id) in ti_sci_cmd_get_device() argument
650 return ti_sci_set_device_state(handle, id, 0, in ti_sci_cmd_get_device()
658 * @handle: Pointer to TISCI handle as retrieved by *ti_sci_get_handle
667 static int ti_sci_cmd_get_device_exclusive(const struct ti_sci_handle *handle, in ti_sci_cmd_get_device_exclusive() argument
670 return ti_sci_set_device_state(handle, id, in ti_sci_cmd_get_device_exclusive()
677 * @handle: Pointer to TISCI handle as retrieved by *ti_sci_get_handle
686 static int ti_sci_cmd_idle_device(const struct ti_sci_handle *handle, u32 id) in ti_sci_cmd_idle_device() argument
688 return ti_sci_set_device_state(handle, id, 0, in ti_sci_cmd_idle_device()
696 * @handle: Pointer to TISCI handle as retrieved by *ti_sci_get_handle
705 static int ti_sci_cmd_idle_device_exclusive(const struct ti_sci_handle *handle, in ti_sci_cmd_idle_device_exclusive() argument
708 return ti_sci_set_device_state(handle, id, in ti_sci_cmd_idle_device_exclusive()
715 * @handle: Pointer to TISCI handle as retrieved by *ti_sci_get_handle
724 static int ti_sci_cmd_put_device(const struct ti_sci_handle *handle, u32 id) in ti_sci_cmd_put_device() argument
726 return ti_sci_set_device_state(handle, id, in ti_sci_cmd_put_device()
732 * @handle: Pointer to TISCI handle as retrieved by *ti_sci_get_handle
738 static int ti_sci_cmd_dev_is_valid(const struct ti_sci_handle *handle, u32 id) in ti_sci_cmd_dev_is_valid() argument
743 return ti_sci_get_device_state(handle, id, NULL, NULL, NULL, &unused); in ti_sci_cmd_dev_is_valid()
748 * @handle: Pointer to TISCI handle
754 static int ti_sci_cmd_dev_get_clcnt(const struct ti_sci_handle *handle, u32 id, in ti_sci_cmd_dev_get_clcnt() argument
757 return ti_sci_get_device_state(handle, id, count, NULL, NULL, NULL); in ti_sci_cmd_dev_get_clcnt()
762 * @handle: Pointer to TISCI handle
768 static int ti_sci_cmd_dev_is_idle(const struct ti_sci_handle *handle, u32 id, in ti_sci_cmd_dev_is_idle() argument
777 ret = ti_sci_get_device_state(handle, id, NULL, NULL, &state, NULL); in ti_sci_cmd_dev_is_idle()
788 * @handle: Pointer to TISCI handle
795 static int ti_sci_cmd_dev_is_stop(const struct ti_sci_handle *handle, u32 id, in ti_sci_cmd_dev_is_stop() argument
805 ti_sci_get_device_state(handle, id, NULL, NULL, &p_state, &c_state); in ti_sci_cmd_dev_is_stop()
819 * @handle: Pointer to TISCI handle
826 static int ti_sci_cmd_dev_is_on(const struct ti_sci_handle *handle, u32 id, in ti_sci_cmd_dev_is_on() argument
836 ti_sci_get_device_state(handle, id, NULL, NULL, &p_state, &c_state); in ti_sci_cmd_dev_is_on()
850 * @handle: Pointer to TISCI handle
856 static int ti_sci_cmd_dev_is_trans(const struct ti_sci_handle *handle, u32 id, in ti_sci_cmd_dev_is_trans() argument
865 ret = ti_sci_get_device_state(handle, id, NULL, NULL, NULL, &state); in ti_sci_cmd_dev_is_trans()
877 * @handle: Pointer to TISCI handle as retrieved by *ti_sci_get_handle
883 static int ti_sci_cmd_set_device_resets(const struct ti_sci_handle *handle, in ti_sci_cmd_set_device_resets() argument
893 if (IS_ERR(handle)) in ti_sci_cmd_set_device_resets()
894 return PTR_ERR(handle); in ti_sci_cmd_set_device_resets()
895 if (!handle) in ti_sci_cmd_set_device_resets()
898 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_set_device_resets()
932 * @handle: Pointer to TISCI handle
938 static int ti_sci_cmd_get_device_resets(const struct ti_sci_handle *handle, in ti_sci_cmd_get_device_resets() argument
941 return ti_sci_get_device_state(handle, id, NULL, reset_state, NULL, in ti_sci_cmd_get_device_resets()
947 * @handle: pointer to TI SCI handle
957 static int ti_sci_set_clock_state(const struct ti_sci_handle *handle, in ti_sci_set_clock_state() argument
968 if (IS_ERR(handle)) in ti_sci_set_clock_state()
969 return PTR_ERR(handle); in ti_sci_set_clock_state()
970 if (!handle) in ti_sci_set_clock_state()
973 info = handle_to_ti_sci_info(handle); in ti_sci_set_clock_state()
1012 * @handle: pointer to TI SCI handle
1022 static int ti_sci_cmd_get_clock_state(const struct ti_sci_handle *handle, in ti_sci_cmd_get_clock_state() argument
1033 if (IS_ERR(handle)) in ti_sci_cmd_get_clock_state()
1034 return PTR_ERR(handle); in ti_sci_cmd_get_clock_state()
1035 if (!handle) in ti_sci_cmd_get_clock_state()
1041 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_get_clock_state()
1087 * @handle: pointer to TI SCI handle
1098 static int ti_sci_cmd_get_clock(const struct ti_sci_handle *handle, u32 dev_id, in ti_sci_cmd_get_clock() argument
1108 return ti_sci_set_clock_state(handle, dev_id, clk_id, flags, in ti_sci_cmd_get_clock()
1114 * @handle: pointer to TI SCI handle
1124 static int ti_sci_cmd_idle_clock(const struct ti_sci_handle *handle, in ti_sci_cmd_idle_clock() argument
1127 return ti_sci_set_clock_state(handle, dev_id, clk_id, 0, in ti_sci_cmd_idle_clock()
1133 * @handle: pointer to TI SCI handle
1143 static int ti_sci_cmd_put_clock(const struct ti_sci_handle *handle, in ti_sci_cmd_put_clock() argument
1146 return ti_sci_set_clock_state(handle, dev_id, clk_id, 0, in ti_sci_cmd_put_clock()
1152 * @handle: pointer to TI SCI handle
1161 static int ti_sci_cmd_clk_is_auto(const struct ti_sci_handle *handle, in ti_sci_cmd_clk_is_auto() argument
1170 ret = ti_sci_cmd_get_clock_state(handle, dev_id, clk_id, &state, NULL); in ti_sci_cmd_clk_is_auto()
1180 * @handle: pointer to TI SCI handle
1190 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
1199 ret = ti_sci_cmd_get_clock_state(handle, dev_id, clk_id, in ti_sci_cmd_clk_is_on()
1213 * @handle: pointer to TI SCI handle
1223 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
1232 ret = ti_sci_cmd_get_clock_state(handle, dev_id, clk_id, in ti_sci_cmd_clk_is_off()
1246 * @handle: pointer to TI SCI handle
1255 static int ti_sci_cmd_clk_set_parent(const struct ti_sci_handle *handle, in ti_sci_cmd_clk_set_parent() argument
1265 if (IS_ERR(handle)) in ti_sci_cmd_clk_set_parent()
1266 return PTR_ERR(handle); in ti_sci_cmd_clk_set_parent()
1267 if (!handle) in ti_sci_cmd_clk_set_parent()
1270 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_clk_set_parent()
1314 * @handle: pointer to TI SCI handle
1323 static int ti_sci_cmd_clk_get_parent(const struct ti_sci_handle *handle, in ti_sci_cmd_clk_get_parent() argument
1333 if (IS_ERR(handle)) in ti_sci_cmd_clk_get_parent()
1334 return PTR_ERR(handle); in ti_sci_cmd_clk_get_parent()
1335 if (!handle || !parent_id) in ti_sci_cmd_clk_get_parent()
1338 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_clk_get_parent()
1383 * @handle: pointer to TI SCI handle
1392 static int ti_sci_cmd_clk_get_num_parents(const struct ti_sci_handle *handle, in ti_sci_cmd_clk_get_num_parents() argument
1403 if (IS_ERR(handle)) in ti_sci_cmd_clk_get_num_parents()
1404 return PTR_ERR(handle); in ti_sci_cmd_clk_get_num_parents()
1405 if (!handle || !num_parents) in ti_sci_cmd_clk_get_num_parents()
1408 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_clk_get_num_parents()
1453 * @handle: pointer to TI SCI handle
1470 static int ti_sci_cmd_clk_get_match_freq(const struct ti_sci_handle *handle, in ti_sci_cmd_clk_get_match_freq() argument
1482 if (IS_ERR(handle)) in ti_sci_cmd_clk_get_match_freq()
1483 return PTR_ERR(handle); in ti_sci_cmd_clk_get_match_freq()
1484 if (!handle || !match_freq) in ti_sci_cmd_clk_get_match_freq()
1487 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_clk_get_match_freq()
1531 * @handle: pointer to TI SCI handle
1547 static int ti_sci_cmd_clk_set_freq(const struct ti_sci_handle *handle, in ti_sci_cmd_clk_set_freq() argument
1558 if (IS_ERR(handle)) in ti_sci_cmd_clk_set_freq()
1559 return PTR_ERR(handle); in ti_sci_cmd_clk_set_freq()
1560 if (!handle) in ti_sci_cmd_clk_set_freq()
1563 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_clk_set_freq()
1604 * @handle: pointer to TI SCI handle
1613 static int ti_sci_cmd_clk_get_freq(const struct ti_sci_handle *handle, in ti_sci_cmd_clk_get_freq() argument
1623 if (IS_ERR(handle)) in ti_sci_cmd_clk_get_freq()
1624 return PTR_ERR(handle); in ti_sci_cmd_clk_get_freq()
1625 if (!handle || !freq) in ti_sci_cmd_clk_get_freq()
1628 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_clk_get_freq()
1667 static int ti_sci_cmd_core_reboot(const struct ti_sci_handle *handle) in ti_sci_cmd_core_reboot() argument
1676 if (IS_ERR(handle)) in ti_sci_cmd_core_reboot()
1677 return PTR_ERR(handle); in ti_sci_cmd_core_reboot()
1678 if (!handle) in ti_sci_cmd_core_reboot()
1681 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_core_reboot()
1744 * @handle: Pointer to TISCI handle.
1754 static int ti_sci_get_resource_range(const struct ti_sci_handle *handle, in ti_sci_get_resource_range() argument
1766 if (IS_ERR(handle)) in ti_sci_get_resource_range()
1767 return PTR_ERR(handle); in ti_sci_get_resource_range()
1768 if (!handle) in ti_sci_get_resource_range()
1771 info = handle_to_ti_sci_info(handle); in ti_sci_get_resource_range()
1820 * @handle: Pointer to TISCI handle.
1829 static int ti_sci_cmd_get_resource_range(const struct ti_sci_handle *handle, in ti_sci_cmd_get_resource_range() argument
1833 return ti_sci_get_resource_range(handle, dev_id, subtype, in ti_sci_cmd_get_resource_range()
1841 * @handle: Pointer to TISCI handle.
1852 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
1856 return ti_sci_get_resource_range(handle, dev_id, subtype, s_host, in ti_sci_cmd_get_resource_range_from_shost()
1863 * @handle: Pointer to TISCI handle.
1879 static int ti_sci_manage_irq(const struct ti_sci_handle *handle, in ti_sci_manage_irq() argument
1892 if (IS_ERR(handle)) in ti_sci_manage_irq()
1893 return PTR_ERR(handle); in ti_sci_manage_irq()
1894 if (!handle) in ti_sci_manage_irq()
1897 info = handle_to_ti_sci_info(handle); in ti_sci_manage_irq()
1938 * @handle: Pointer to TISCI handle.
1953 static int ti_sci_set_irq(const struct ti_sci_handle *handle, u32 valid_params, in ti_sci_set_irq() argument
1963 return ti_sci_manage_irq(handle, valid_params, src_id, src_index, in ti_sci_set_irq()
1972 * @handle: Pointer to TISCI handle.
1987 static int ti_sci_free_irq(const struct ti_sci_handle *handle, u32 valid_params, in ti_sci_free_irq() argument
1997 return ti_sci_manage_irq(handle, valid_params, src_id, src_index, in ti_sci_free_irq()
2006 * @handle: Pointer to TISCI handle.
2016 static int ti_sci_cmd_set_irq(const struct ti_sci_handle *handle, u16 src_id, in ti_sci_cmd_set_irq() argument
2021 return ti_sci_set_irq(handle, valid_params, src_id, src_index, dst_id, in ti_sci_cmd_set_irq()
2028 * @handle: Pointer to TISCI handle.
2038 static int ti_sci_cmd_set_event_map(const struct ti_sci_handle *handle, in ti_sci_cmd_set_event_map() argument
2047 return ti_sci_set_irq(handle, valid_params, src_id, src_index, 0, 0, in ti_sci_cmd_set_event_map()
2054 * @handle: Pointer to TISCI handle.
2064 static int ti_sci_cmd_free_irq(const struct ti_sci_handle *handle, u16 src_id, in ti_sci_cmd_free_irq() argument
2069 return ti_sci_free_irq(handle, valid_params, src_id, src_index, dst_id, in ti_sci_cmd_free_irq()
2076 * @handle: Pointer to TISCI handle.
2086 static int ti_sci_cmd_free_event_map(const struct ti_sci_handle *handle, in ti_sci_cmd_free_event_map() argument
2095 return ti_sci_free_irq(handle, valid_params, src_id, src_index, 0, 0, in ti_sci_cmd_free_event_map()
2101 * @handle: Pointer to TI SCI handle.
2118 static int ti_sci_cmd_ring_config(const struct ti_sci_handle *handle, in ti_sci_cmd_ring_config() argument
2130 if (IS_ERR_OR_NULL(handle)) in ti_sci_cmd_ring_config()
2133 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_ring_config()
2172 * @handle: Pointer to TI SCI handle.
2187 static int ti_sci_cmd_ring_get_config(const struct ti_sci_handle *handle, in ti_sci_cmd_ring_get_config() argument
2199 if (IS_ERR_OR_NULL(handle)) in ti_sci_cmd_ring_get_config()
2202 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_ring_get_config()
2251 * @handle: Pointer to TI SCI handle.
2259 static int ti_sci_cmd_rm_psil_pair(const struct ti_sci_handle *handle, in ti_sci_cmd_rm_psil_pair() argument
2269 if (IS_ERR(handle)) in ti_sci_cmd_rm_psil_pair()
2270 return PTR_ERR(handle); in ti_sci_cmd_rm_psil_pair()
2271 if (!handle) in ti_sci_cmd_rm_psil_pair()
2274 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_rm_psil_pair()
2307 * @handle: Pointer to TI SCI handle.
2315 static int ti_sci_cmd_rm_psil_unpair(const struct ti_sci_handle *handle, in ti_sci_cmd_rm_psil_unpair() argument
2325 if (IS_ERR(handle)) in ti_sci_cmd_rm_psil_unpair()
2326 return PTR_ERR(handle); in ti_sci_cmd_rm_psil_unpair()
2327 if (!handle) in ti_sci_cmd_rm_psil_unpair()
2330 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_rm_psil_unpair()
2363 * @handle: Pointer to TI SCI handle.
2372 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
2382 if (IS_ERR_OR_NULL(handle)) in ti_sci_cmd_rm_udmap_tx_ch_cfg()
2385 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_rm_udmap_tx_ch_cfg()
2433 * @handle: Pointer to TI SCI handle.
2442 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
2452 if (IS_ERR_OR_NULL(handle)) in ti_sci_cmd_rm_udmap_rx_ch_cfg()
2455 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_rm_udmap_rx_ch_cfg()
2502 * @handle: Pointer to TI SCI handle.
2511 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
2521 if (IS_ERR_OR_NULL(handle)) in ti_sci_cmd_rm_udmap_rx_flow_cfg()
2524 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_rm_udmap_rx_flow_cfg()
2576 * @handle: Pointer to TI SCI handle
2581 static int ti_sci_cmd_proc_request(const struct ti_sci_handle *handle, in ti_sci_cmd_proc_request() argument
2591 if (!handle) in ti_sci_cmd_proc_request()
2593 if (IS_ERR(handle)) in ti_sci_cmd_proc_request()
2594 return PTR_ERR(handle); in ti_sci_cmd_proc_request()
2596 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_proc_request()
2628 * @handle: Pointer to TI SCI handle
2633 static int ti_sci_cmd_proc_release(const struct ti_sci_handle *handle, in ti_sci_cmd_proc_release() argument
2643 if (!handle) in ti_sci_cmd_proc_release()
2645 if (IS_ERR(handle)) in ti_sci_cmd_proc_release()
2646 return PTR_ERR(handle); in ti_sci_cmd_proc_release()
2648 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_proc_release()
2682 * @handle: Pointer to TI SCI handle
2688 static int ti_sci_cmd_proc_handover(const struct ti_sci_handle *handle, in ti_sci_cmd_proc_handover() argument
2698 if (!handle) in ti_sci_cmd_proc_handover()
2700 if (IS_ERR(handle)) in ti_sci_cmd_proc_handover()
2701 return PTR_ERR(handle); in ti_sci_cmd_proc_handover()
2703 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_proc_handover()
2737 * @handle: Pointer to TI SCI handle
2744 static int ti_sci_cmd_proc_set_config(const struct ti_sci_handle *handle, in ti_sci_cmd_proc_set_config() argument
2756 if (!handle) in ti_sci_cmd_proc_set_config()
2758 if (IS_ERR(handle)) in ti_sci_cmd_proc_set_config()
2759 return PTR_ERR(handle); in ti_sci_cmd_proc_set_config()
2761 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_proc_set_config()
2799 * @handle: Pointer to TI SCI handle
2806 static int ti_sci_cmd_proc_set_control(const struct ti_sci_handle *handle, in ti_sci_cmd_proc_set_control() argument
2817 if (!handle) in ti_sci_cmd_proc_set_control()
2819 if (IS_ERR(handle)) in ti_sci_cmd_proc_set_control()
2820 return PTR_ERR(handle); in ti_sci_cmd_proc_set_control()
2822 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_proc_set_control()
2856 * @handle: Pointer to TI SCI handle
2861 static int ti_sci_cmd_proc_get_status(const struct ti_sci_handle *handle, in ti_sci_cmd_proc_get_status() argument
2872 if (!handle) in ti_sci_cmd_proc_get_status()
2874 if (IS_ERR(handle)) in ti_sci_cmd_proc_get_status()
2875 return PTR_ERR(handle); in ti_sci_cmd_proc_get_status()
2877 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_proc_get_status()
2922 struct ti_sci_ops *ops = &info->handle.ops; in ti_sci_setup_ops()
2993 * ti_sci_get_handle() - Get the TI SCI handle for a device
2994 * @dev: Pointer to device for which we want SCI handle
2999 * Return: pointer to handle if successful, else:
3008 struct ti_sci_handle *handle = NULL; in ti_sci_get_handle() local
3025 handle = &info->handle; in ti_sci_get_handle()
3033 if (!handle) in ti_sci_get_handle()
3036 return handle; in ti_sci_get_handle()
3041 * ti_sci_put_handle() - Release the handle acquired by ti_sci_get_handle
3042 * @handle: Handle acquired by ti_sci_get_handle
3052 int ti_sci_put_handle(const struct ti_sci_handle *handle) in ti_sci_put_handle() argument
3056 if (IS_ERR(handle)) in ti_sci_put_handle()
3057 return PTR_ERR(handle); in ti_sci_put_handle()
3058 if (!handle) in ti_sci_put_handle()
3061 info = handle_to_ti_sci_info(handle); in ti_sci_put_handle()
3074 const struct ti_sci_handle *handle = *ptr; in devm_ti_sci_release() local
3077 ret = ti_sci_put_handle(handle); in devm_ti_sci_release()
3079 dev_err(dev, "failed to put handle %d\n", ret); in devm_ti_sci_release()
3083 * devm_ti_sci_get_handle() - Managed get handle
3084 * @dev: device for which we want SCI handle for.
3086 * NOTE: This releases the handle once the device resources are
3096 const struct ti_sci_handle *handle; in devm_ti_sci_get_handle() local
3101 handle = ti_sci_get_handle(dev); in devm_ti_sci_get_handle()
3103 if (!IS_ERR(handle)) { in devm_ti_sci_get_handle()
3104 *ptr = handle; in devm_ti_sci_get_handle()
3110 return handle; in devm_ti_sci_get_handle()
3115 * ti_sci_get_by_phandle() - Get the TI SCI handle using DT phandle
3122 * Return: pointer to handle if successful, else:
3130 struct ti_sci_handle *handle = NULL; in ti_sci_get_by_phandle() local
3148 handle = &info->handle; in ti_sci_get_by_phandle()
3156 if (!handle) in ti_sci_get_by_phandle()
3159 return handle; in ti_sci_get_by_phandle()
3164 * devm_ti_sci_get_by_phandle() - Managed get handle using phandle
3165 * @dev: Device pointer requesting TISCI handle
3168 * NOTE: This releases the handle once the device resources are
3178 const struct ti_sci_handle *handle; in devm_ti_sci_get_by_phandle() local
3184 handle = ti_sci_get_by_phandle(dev_of_node(dev), property); in devm_ti_sci_get_by_phandle()
3186 if (!IS_ERR(handle)) { in devm_ti_sci_get_by_phandle()
3187 *ptr = handle; in devm_ti_sci_get_by_phandle()
3193 return handle; in devm_ti_sci_get_by_phandle()
3264 * @handle: TISCI handle
3273 devm_ti_sci_get_of_resource(const struct ti_sci_handle *handle, in devm_ti_sci_get_of_resource() argument
3304 ret = handle->ops.rm_core_ops.get_range(handle, dev_id, in devm_ti_sci_get_of_resource()
3339 const struct ti_sci_handle *handle = &info->handle; in tisci_reboot_handler() local
3341 ti_sci_cmd_core_reboot(handle); in tisci_reboot_handler()
3352 /* Limited by MBOX_TX_QUEUE_LEN. K2G can handle upto 128 messages! */
3373 /* Limited by MBOX_TX_QUEUE_LEN. K2G can handle upto 128 messages! */
3512 info->handle.version.abi_major, info->handle.version.abi_minor, in ti_sci_probe()
3513 info->handle.version.firmware_revision, in ti_sci_probe()
3514 info->handle.version.firmware_description); in ti_sci_probe()