/drivers/clk/ |
D | clkdev.c | 36 static struct clk_lookup *clk_find(const char *dev_id, const char *con_id) in clk_find() argument 43 if (con_id) in clk_find() 55 if (p->con_id) { in clk_find() 56 if (!con_id || strcmp(p->con_id, con_id)) in clk_find() 72 struct clk_hw *clk_find_hw(const char *dev_id, const char *con_id) in clk_find_hw() argument 78 cl = clk_find(dev_id, con_id); in clk_find_hw() 87 const char *con_id) in __clk_get_sys() argument 89 struct clk_hw *hw = clk_find_hw(dev_id, con_id); in __clk_get_sys() 91 return clk_hw_create_clk(dev, hw, dev_id, con_id); in __clk_get_sys() 94 struct clk *clk_get_sys(const char *dev_id, const char *con_id) in clk_get_sys() argument [all …]
|
D | clk.h | 13 int index, const char *con_id); 16 int index, const char *con_id) in of_clk_get_hw() argument 22 struct clk_hw *clk_find_hw(const char *dev_id, const char *con_id); 26 const char *dev_id, const char *con_id); 32 const char *con_id) in clk_hw_create_clk() argument
|
/drivers/soc/tegra/fuse/ |
D | fuse-tegra30.c | 141 .con_id = "calibration", 146 .con_id = "calibration", 151 .con_id = "common", 156 .con_id = "realignment", 161 .con_id = "cpu0", 166 .con_id = "cpu1", 171 .con_id = "cpu2", 176 .con_id = "cpu3", 181 .con_id = "mem0", 186 .con_id = "mem1", [all …]
|
/drivers/clk/tegra/ |
D | clk-tegra30.c | 539 { .con_id = "pll_c", .dt_id = TEGRA30_CLK_PLL_C }, 540 { .con_id = "pll_c_out1", .dt_id = TEGRA30_CLK_PLL_C_OUT1 }, 541 { .con_id = "pll_p", .dt_id = TEGRA30_CLK_PLL_P }, 542 { .con_id = "pll_p_out1", .dt_id = TEGRA30_CLK_PLL_P_OUT1 }, 543 { .con_id = "pll_p_out2", .dt_id = TEGRA30_CLK_PLL_P_OUT2 }, 544 { .con_id = "pll_p_out3", .dt_id = TEGRA30_CLK_PLL_P_OUT3 }, 545 { .con_id = "pll_p_out4", .dt_id = TEGRA30_CLK_PLL_P_OUT4 }, 546 { .con_id = "pll_m", .dt_id = TEGRA30_CLK_PLL_M }, 547 { .con_id = "pll_m_out1", .dt_id = TEGRA30_CLK_PLL_M_OUT1 }, 548 { .con_id = "pll_x", .dt_id = TEGRA30_CLK_PLL_X }, [all …]
|
D | clk-tegra114.c | 809 { .con_id = "clk_m", .dt_id = TEGRA114_CLK_CLK_M }, 810 { .con_id = "pll_ref", .dt_id = TEGRA114_CLK_PLL_REF }, 811 { .con_id = "clk_32k", .dt_id = TEGRA114_CLK_CLK_32K }, 812 { .con_id = "osc", .dt_id = TEGRA114_CLK_OSC }, 813 { .con_id = "osc_div2", .dt_id = TEGRA114_CLK_OSC_DIV2 }, 814 { .con_id = "osc_div4", .dt_id = TEGRA114_CLK_OSC_DIV4 }, 815 { .con_id = "pll_c", .dt_id = TEGRA114_CLK_PLL_C }, 816 { .con_id = "pll_c_out1", .dt_id = TEGRA114_CLK_PLL_C_OUT1 }, 817 { .con_id = "pll_c2", .dt_id = TEGRA114_CLK_PLL_C2 }, 818 { .con_id = "pll_c3", .dt_id = TEGRA114_CLK_PLL_C3 }, [all …]
|
D | clk-tegra124.c | 935 { .con_id = "clk_m", .dt_id = TEGRA124_CLK_CLK_M }, 936 { .con_id = "pll_ref", .dt_id = TEGRA124_CLK_PLL_REF }, 937 { .con_id = "clk_32k", .dt_id = TEGRA124_CLK_CLK_32K }, 938 { .con_id = "osc", .dt_id = TEGRA124_CLK_OSC }, 939 { .con_id = "osc_div2", .dt_id = TEGRA124_CLK_OSC_DIV2 }, 940 { .con_id = "osc_div4", .dt_id = TEGRA124_CLK_OSC_DIV4 }, 941 { .con_id = "pll_c", .dt_id = TEGRA124_CLK_PLL_C }, 942 { .con_id = "pll_c_out1", .dt_id = TEGRA124_CLK_PLL_C_OUT1 }, 943 { .con_id = "pll_c2", .dt_id = TEGRA124_CLK_PLL_C2 }, 944 { .con_id = "pll_c3", .dt_id = TEGRA124_CLK_PLL_C3 }, [all …]
|
D | clk-tegra20.c | 421 { .con_id = "pll_c", .dt_id = TEGRA20_CLK_PLL_C }, 422 { .con_id = "pll_c_out1", .dt_id = TEGRA20_CLK_PLL_C_OUT1 }, 423 { .con_id = "pll_p", .dt_id = TEGRA20_CLK_PLL_P }, 424 { .con_id = "pll_p_out1", .dt_id = TEGRA20_CLK_PLL_P_OUT1 }, 425 { .con_id = "pll_p_out2", .dt_id = TEGRA20_CLK_PLL_P_OUT2 }, 426 { .con_id = "pll_p_out3", .dt_id = TEGRA20_CLK_PLL_P_OUT3 }, 427 { .con_id = "pll_p_out4", .dt_id = TEGRA20_CLK_PLL_P_OUT4 }, 428 { .con_id = "pll_m", .dt_id = TEGRA20_CLK_PLL_M }, 429 { .con_id = "pll_m_out1", .dt_id = TEGRA20_CLK_PLL_M_OUT1 }, 430 { .con_id = "pll_x", .dt_id = TEGRA20_CLK_PLL_X }, [all …]
|
D | clk-tegra210.c | 2561 { .con_id = "clk_m", .dt_id = TEGRA210_CLK_CLK_M }, 2562 { .con_id = "pll_ref", .dt_id = TEGRA210_CLK_PLL_REF }, 2563 { .con_id = "clk_32k", .dt_id = TEGRA210_CLK_CLK_32K }, 2564 { .con_id = "osc", .dt_id = TEGRA210_CLK_OSC }, 2565 { .con_id = "osc_div2", .dt_id = TEGRA210_CLK_OSC_DIV2 }, 2566 { .con_id = "osc_div4", .dt_id = TEGRA210_CLK_OSC_DIV4 }, 2567 { .con_id = "pll_c", .dt_id = TEGRA210_CLK_PLL_C }, 2568 { .con_id = "pll_c_out1", .dt_id = TEGRA210_CLK_PLL_C_OUT1 }, 2569 { .con_id = "pll_c2", .dt_id = TEGRA210_CLK_PLL_C2 }, 2570 { .con_id = "pll_c3", .dt_id = TEGRA210_CLK_PLL_C3 }, [all …]
|
/drivers/base/power/ |
D | clock_ops.c | 33 char *con_id; member 176 ce->clk = clk_get(dev, ce->con_id); in pm_clk_acquire() 192 ce->clk, ce->con_id); in pm_clk_acquire() 195 static int __pm_clk_add(struct device *dev, const char *con_id, in __pm_clk_add() argument 208 if (con_id) { in __pm_clk_add() 209 ce->con_id = kstrdup(con_id, GFP_KERNEL); in __pm_clk_add() 210 if (!ce->con_id) { in __pm_clk_add() 240 int pm_clk_add(struct device *dev, const char *con_id) in pm_clk_add() argument 242 return __pm_clk_add(dev, con_id, NULL); in pm_clk_add() 375 kfree(ce->con_id); in __pm_clk_remove() [all …]
|
/drivers/gpio/ |
D | gpiolib-of.c | 38 static int of_gpio_spi_cs_get_count(struct device *dev, const char *con_id) in of_gpio_spi_cs_get_count() argument 44 if (!con_id || strcmp(con_id, "cs")) in of_gpio_spi_cs_get_count() 59 int of_gpio_get_count(struct device *dev, const char *con_id) in of_gpio_get_count() argument 65 ret = of_gpio_spi_cs_get_count(dev, con_id); in of_gpio_get_count() 70 if (con_id) in of_gpio_get_count() 72 con_id, gpio_suffixes[i]); in of_gpio_get_count() 374 const char *con_id, in of_find_spi_gpio() argument 388 if (!of_device_is_compatible(np, "spi-gpio") || !con_id) in of_find_spi_gpio() 392 snprintf(prop_name, sizeof(prop_name), "%s-%s", "gpio", con_id); in of_find_spi_gpio() 403 const char *con_id, in of_find_spi_cs_gpio() argument [all …]
|
D | gpiolib-devres.c | 57 const char *con_id, in devm_gpiod_get() argument 60 return devm_gpiod_get_index(dev, con_id, 0, flags); in devm_gpiod_get() 75 const char *con_id, in devm_gpiod_get_optional() argument 78 return devm_gpiod_get_index_optional(dev, con_id, 0, flags); in devm_gpiod_get_optional() 94 const char *con_id, in devm_gpiod_get_index() argument 101 desc = gpiod_get_index(dev, con_id, idx, flags); in devm_gpiod_get_index() 204 const char *con_id, int index, in devm_fwnode_gpiod_get_index() argument 216 desc = fwnode_gpiod_get_index(fwnode, con_id, index, flags, label); in devm_fwnode_gpiod_get_index() 242 const char *con_id, in devm_gpiod_get_index_optional() argument 248 desc = devm_gpiod_get_index(dev, con_id, index, flags); in devm_gpiod_get_index_optional() [all …]
|
D | gpiolib-of.h | 11 const char *con_id, 16 int of_gpio_get_count(struct device *dev, const char *con_id); 21 const char *con_id, in of_find_gpio() argument 29 static inline int of_gpio_get_count(struct device *dev, const char *con_id) in of_gpio_get_count() argument
|
D | gpiolib-acpi.h | 52 const char *con_id, 60 int acpi_gpio_count(struct device *dev, const char *con_id); 86 acpi_find_gpio(struct device *dev, const char *con_id, in acpi_find_gpio() argument 98 static inline int acpi_gpio_count(struct device *dev, const char *con_id) in acpi_gpio_count() argument
|
D | gpiolib.c | 3736 static struct gpio_desc *gpiod_find(struct device *dev, const char *con_id, in gpiod_find() argument 3755 if (p->con_id && (!con_id || strcmp(p->con_id, con_id))) in gpiod_find() 3802 static int platform_gpio_count(struct device *dev, const char *con_id) in platform_gpio_count() argument 3813 if ((con_id && p->con_id && !strcmp(con_id, p->con_id)) || in platform_gpio_count() 3814 (!con_id && !p->con_id)) in platform_gpio_count() 3911 const char *con_id, int index, in fwnode_gpiod_get_index() argument 3920 if (con_id) in fwnode_gpiod_get_index() 3922 con_id, gpio_suffixes[i]); in fwnode_gpiod_get_index() 3943 int gpiod_count(struct device *dev, const char *con_id) in gpiod_count() argument 3949 count = of_gpio_get_count(dev, con_id); in gpiod_count() [all …]
|
D | gpio-max3191x.c | 333 struct device *dev, const char *con_id, in devm_gpiod_get_array_optional_count() argument 337 int found = gpiod_count(dev, con_id); in devm_gpiod_get_array_optional_count() 344 con_id, found, expected); in devm_gpiod_get_array_optional_count() 348 descs = devm_gpiod_get_array_optional(dev, con_id, flags); in devm_gpiod_get_array_optional_count() 352 con_id, PTR_ERR(descs)); in devm_gpiod_get_array_optional_count()
|
/drivers/clk/pxa/ |
D | clk-pxa25x.c | 113 #define PXA25X_CKEN(dev_id, con_id, parents, mult, div, \ argument 115 PXA_CKEN(dev_id, con_id, bit, parents, mult, div, mult, div, \ 117 #define PXA25X_PBUS95_CKEN(dev_id, con_id, bit, mult_hp, div_hp, delay) \ argument 118 PXA25X_CKEN(dev_id, con_id, pxa25x_pbus95_parents, mult_hp, \ 120 #define PXA25X_PBUS147_CKEN(dev_id, con_id, bit, mult_hp, div_hp, delay)\ argument 121 PXA25X_CKEN(dev_id, con_id, pxa25x_pbus147_parents, mult_hp, \ 123 #define PXA25X_OSC3_CKEN(dev_id, con_id, bit, mult_hp, div_hp, delay) \ argument 124 PXA25X_CKEN(dev_id, con_id, pxa25x_osc3_parents, mult_hp, \ 127 #define PXA25X_CKEN_1RATE(dev_id, con_id, bit, parents, delay) \ argument 128 PXA_CKEN_1RATE(dev_id, con_id, bit, parents, \ [all …]
|
D | clk-pxa27x.c | 109 #define PXA27X_CKEN(dev_id, con_id, parents, mult_hp, div_hp, \ argument 111 PXA_CKEN(dev_id, con_id, bit, parents, 1, 1, mult_hp, div_hp, \ 113 #define PXA27X_PBUS_CKEN(dev_id, con_id, bit, mult_hp, div_hp, delay) \ argument 114 PXA27X_CKEN(dev_id, con_id, pxa27x_pbus_parents, mult_hp, \ 123 #define PXA27X_CKEN_1RATE(dev_id, con_id, bit, parents, delay) \ argument 124 PXA_CKEN_1RATE(dev_id, con_id, bit, parents, \ 126 #define PXA27X_CKEN_1RATE_AO(dev_id, con_id, bit, parents, delay) \ argument 127 PXA_CKEN_1RATE(dev_id, con_id, bit, parents, \ 431 { .con_id = _con_id, .dev_id = _dev_id, .parent = _parent } 433 const char *con_id; member [all …]
|
D | clk-pxa3xx.c | 221 #define PXA3XX_CKEN(dev_id, con_id, parents, mult_lp, div_lp, mult_hp, \ argument 223 PXA_CKEN(dev_id, con_id, bit, parents, mult_lp, div_lp, \ 226 #define PXA3XX_PBUS_CKEN(dev_id, con_id, bit, mult_lp, div_lp, \ argument 228 PXA3XX_CKEN(dev_id, con_id, pxa3xx_pbus_parents, mult_lp, \ 230 #define PXA3XX_CKEN_1RATE(dev_id, con_id, bit, parents) \ argument 231 PXA_CKEN_1RATE(dev_id, con_id, bit, parents, \ 394 { .con_id = _con_id, .dev_id = _dev_id, .parent = _parent } 396 const char *con_id; member 416 name = d->dev_id ? d->dev_id : d->con_id; in pxa3xx_dummy_clocks_init() 418 clk_register_clkdev(clk, d->con_id, d->dev_id); in pxa3xx_dummy_clocks_init()
|
D | clk-pxa.h | 111 const char *con_id; member 124 .dev_id = _dev_id, .con_id = _con_id, .parent_names = parents,\ 131 #define PXA_CKEN_1RATE(dev_id, con_id, name, parents, cken_reg, \ argument 133 PXA_CKEN(dev_id, con_id, name, parents, 1, 1, 1, 1, \ 149 extern void clkdev_pxa_register(int ckid, const char *con_id,
|
/drivers/pwm/ |
D | core.c | 738 const char *con_id) in of_pwm_get() argument 747 if (con_id) { in of_pwm_get() 748 index = of_property_match_string(np, "pwm-names", con_id); in of_pwm_get() 786 if (!con_id) { in of_pwm_get() 788 &con_id); in of_pwm_get() 790 con_id = np->name; in of_pwm_get() 793 pwm->label = con_id; in of_pwm_get() 900 struct pwm_device *pwm_get(struct device *dev, const char *con_id) in pwm_get() argument 914 return of_pwm_get(dev, to_of_node(fwnode), con_id); in pwm_get() 955 if (p->con_id) { in pwm_get() [all …]
|
/drivers/soc/qcom/ |
D | smem_state.c | 89 const char *con_id, in qcom_smem_state_get() argument 97 if (con_id) { in qcom_smem_state_get() 100 con_id); in qcom_smem_state_get() 170 const char *con_id, in devm_qcom_smem_state_get() argument 179 state = qcom_smem_state_get(dev, con_id, bit); in devm_qcom_smem_state_get()
|
/drivers/mmc/core/ |
D | slot-gpio.c | 173 int mmc_gpiod_request_cd(struct mmc_host *host, const char *con_id, in mmc_gpiod_request_cd() argument 181 desc = devm_gpiod_get_index(host->parent, con_id, idx, GPIOD_IN); in mmc_gpiod_request_cd() 186 if (!con_id) in mmc_gpiod_request_cd() 226 int mmc_gpiod_request_ro(struct mmc_host *host, const char *con_id, in mmc_gpiod_request_ro() argument 233 desc = devm_gpiod_get_index(host->parent, con_id, idx, GPIOD_IN); in mmc_gpiod_request_ro() 238 if (!con_id) in mmc_gpiod_request_ro()
|
/drivers/phy/ |
D | phy-core.c | 64 int phy_create_lookup(struct phy *phy, const char *con_id, const char *dev_id) in phy_create_lookup() argument 68 if (!phy || !dev_id || !con_id) in phy_create_lookup() 76 pl->con_id = con_id; in phy_create_lookup() 96 void phy_remove_lookup(struct phy *phy, const char *con_id, const char *dev_id) in phy_remove_lookup() argument 100 if (!phy || !dev_id || !con_id) in phy_remove_lookup() 106 !strcmp(pl->con_id, con_id)) { in phy_remove_lookup() 115 static struct phy *phy_find(struct device *dev, const char *con_id) in phy_find() argument 122 if (!strcmp(p->dev_id, dev_id) && !strcmp(p->con_id, con_id)) { in phy_find() 615 struct phy *of_phy_get(struct device_node *np, const char *con_id) in of_phy_get() argument 620 if (con_id) in of_phy_get() [all …]
|
/drivers/base/ |
D | property.c | 1277 const char *con_id, void *data, in fwnode_graph_devcon_matches() argument 1299 ret = match(node, con_id, data); in fwnode_graph_devcon_matches() 1311 const char *con_id, void *data, in fwnode_devcon_matches() argument 1325 node = fwnode_find_reference(fwnode, con_id, i); in fwnode_devcon_matches() 1353 const char *con_id, void *data, in fwnode_connection_find_match() argument 1362 count = fwnode_graph_devcon_matches(fwnode, con_id, data, match, &ret, 1); in fwnode_connection_find_match() 1366 count = fwnode_devcon_matches(fwnode, con_id, data, match, &ret, 1); in fwnode_connection_find_match() 1391 const char *con_id, void *data, in fwnode_connection_find_matches() argument 1401 count_graph = fwnode_graph_devcon_matches(fwnode, con_id, data, match, in fwnode_connection_find_matches() 1409 count_ref = fwnode_devcon_matches(fwnode, con_id, data, match, in fwnode_connection_find_matches()
|
/drivers/gpu/drm/ |
D | drm_privacy_screen.c | 116 const char *con_id) in drm_privacy_screen_get() argument 152 if (l->con_id) { in drm_privacy_screen_get() 153 if (!con_id || strcmp(l->con_id, con_id)) in drm_privacy_screen_get()
|