Lines Matching +full:psi +full:- +full:l
1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com
15 #include "k3-psil-priv.h"
44 soc_ep_map = soc->data; in psil_get_ep_config()
48 return ERR_PTR(-ENOTSUPP); in psil_get_ep_config()
50 pr_debug("%s: Using map for %s\n", __func__, soc_ep_map->name); in psil_get_ep_config()
54 if (thread_id & K3_PSIL_DST_THREAD_ID_OFFSET && soc_ep_map->dst) { in psil_get_ep_config()
56 for (i = 0; i < soc_ep_map->dst_count; i++) { in psil_get_ep_config()
57 if (soc_ep_map->dst[i].thread_id == thread_id) in psil_get_ep_config()
58 return &soc_ep_map->dst[i].ep_config; in psil_get_ep_config()
63 if (soc_ep_map->src) { in psil_get_ep_config()
64 for (i = 0; i < soc_ep_map->src_count; i++) { in psil_get_ep_config()
65 if (soc_ep_map->src[i].thread_id == thread_id) in psil_get_ep_config()
66 return &soc_ep_map->src[i].ep_config; in psil_get_ep_config()
70 return ERR_PTR(-ENOENT); in psil_get_ep_config()
82 if (!dev || !dev->of_node) in psil_set_new_ep_config()
83 return -EINVAL; in psil_set_new_ep_config()
85 index = of_property_match_string(dev->of_node, "dma-names", name); in psil_set_new_ep_config()
89 if (of_parse_phandle_with_args(dev->of_node, "dmas", "#dma-cells", in psil_set_new_ep_config()
91 return -ENOENT; in psil_set_new_ep_config()
109 MODULE_DESCRIPTION("K3 PSI-L endpoint configuration");