| /linux/drivers/clk/ |
| H A 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 …]
|
| H A 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
|
| H A D | clk_kunit_helpers.c | 64 clk_get_kunit(struct kunit *test, struct device *dev, const char *con_id) in clk_get_kunit() argument 68 clk = clk_get(dev, con_id); in clk_get_kunit() 108 clk_hw_get_clk_kunit(struct kunit *test, struct clk_hw *hw, const char *con_id) in clk_hw_get_clk_kunit() argument 112 clk = clk_hw_get_clk(hw, con_id); in clk_hw_get_clk_kunit() 139 const char *con_id) in clk_hw_get_clk_prepared_enabled_kunit() argument 144 clk = clk_hw_get_clk_kunit(test, hw, con_id); in clk_hw_get_clk_prepared_enabled_kunit()
|
| /linux/drivers/clk/tegra/ |
| H A 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 …]
|
| H A D | clk-tegra114.c | 810 { .con_id = "clk_m", .dt_id = TEGRA114_CLK_CLK_M }, 811 { .con_id = "pll_ref", .dt_id = TEGRA114_CLK_PLL_REF }, 812 { .con_id = "clk_32k", .dt_id = TEGRA114_CLK_CLK_32K }, 813 { .con_id = "osc", .dt_id = TEGRA114_CLK_OSC }, 814 { .con_id = "osc_div2", .dt_id = TEGRA114_CLK_OSC_DIV2 }, 815 { .con_id = "osc_div4", .dt_id = TEGRA114_CLK_OSC_DIV4 }, 816 { .con_id = "pll_c", .dt_id = TEGRA114_CLK_PLL_C }, 817 { .con_id = "pll_c_out1", .dt_id = TEGRA114_CLK_PLL_C_OUT1 }, 818 { .con_id = "pll_c2", .dt_id = TEGRA114_CLK_PLL_C2 }, 819 { .con_id = "pll_c3", .dt_id = TEGRA114_CLK_PLL_C3 }, [all …]
|
| H A 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 …]
|
| H A D | clk-tegra20.c | 420 { .con_id = "pll_c", .dt_id = TEGRA20_CLK_PLL_C }, 421 { .con_id = "pll_c_out1", .dt_id = TEGRA20_CLK_PLL_C_OUT1 }, 422 { .con_id = "pll_p", .dt_id = TEGRA20_CLK_PLL_P }, 423 { .con_id = "pll_p_out1", .dt_id = TEGRA20_CLK_PLL_P_OUT1 }, 424 { .con_id = "pll_p_out2", .dt_id = TEGRA20_CLK_PLL_P_OUT2 }, 425 { .con_id = "pll_p_out3", .dt_id = TEGRA20_CLK_PLL_P_OUT3 }, 426 { .con_id = "pll_p_out4", .dt_id = TEGRA20_CLK_PLL_P_OUT4 }, 427 { .con_id = "pll_m", .dt_id = TEGRA20_CLK_PLL_M }, 428 { .con_id = "pll_m_out1", .dt_id = TEGRA20_CLK_PLL_M_OUT1 }, 429 { .con_id = "pll_x", .dt_id = TEGRA20_CLK_PLL_X }, [all …]
|
| H A 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 …]
|
| /linux/drivers/gpio/ |
| H A D | gpiolib-devres.c | 48 const char *con_id, in devm_gpiod_get() argument 51 return devm_gpiod_get_index(dev, con_id, 0, flags); in devm_gpiod_get() 71 const char *con_id, in devm_gpiod_get_optional() argument 74 return devm_gpiod_get_index_optional(dev, con_id, 0, flags); in devm_gpiod_get_optional() 95 const char *con_id, in devm_gpiod_get_index() argument 102 desc = gpiod_get_index(dev, con_id, idx, flags); in devm_gpiod_get_index() 145 const char *con_id, int index, in devm_fwnode_gpiod_get_index() argument 152 desc = gpiod_find_and_request(dev, fwnode, con_id, index, flags, label, false); in devm_fwnode_gpiod_get_index() 182 const char *con_id, in devm_gpiod_get_index_optional() argument 188 desc = devm_gpiod_get_index(dev, con_id, index, flags); in devm_gpiod_get_index_optional() [all …]
|
| H A D | gpiolib-of.h | 20 const char *con_id, 26 int of_gpio_count(const struct fwnode_handle *fwnode, const char *con_id); 29 const char *con_id, in of_find_gpio() argument 43 const char *con_id) in of_gpio_count() argument
|
| H A D | gpiolib-acpi.h | 31 const char *con_id, 36 int acpi_gpio_count(const struct fwnode_handle *fwnode, const char *con_id); 48 acpi_find_gpio(struct fwnode_handle *fwnode, const char *con_id, in acpi_find_gpio() argument 55 const char *con_id) in acpi_gpio_count() argument
|
| H A D | gpiolib-swnode.c | 61 const char *con_id, unsigned int idx, in swnode_find_gpio() argument 74 for_each_gpio_property_name(propname, con_id) { in swnode_find_gpio() 114 int swnode_gpio_count(const struct fwnode_handle *fwnode, const char *con_id) in swnode_gpio_count() argument 124 for_each_gpio_property_name(propname, con_id) { in swnode_gpio_count()
|
| H A D | gpiolib-shared.c | 37 char *con_id; member 205 ref->con_id = kstrdup(prop->name, GFP_KERNEL); in gpio_shared_of_traverse() 206 if (!ref->con_id) in gpio_shared_of_traverse() 209 con_id_len = strlen(ref->con_id); in gpio_shared_of_traverse() 212 ref->con_id[con_id_len - suffix_len] = '\0'; in gpio_shared_of_traverse() 217 kfree(ref->con_id); in gpio_shared_of_traverse() 399 dev_id, key, ref->con_id ?: "none"); in gpio_shared_add_proxy_lookup() 403 ref->con_id, lflags); in gpio_shared_add_proxy_lookup() 607 kfree(ref->con_id); in gpio_shared_drop_ref()
|
| /linux/drivers/clk/pxa/ |
| H A D | clk-pxa25x.c | 115 #define PXA25X_CKEN(dev_id, con_id, parents, mult, div, \ argument 117 PXA_CKEN(dev_id, con_id, bit, parents, mult, div, mult, div, \ 119 #define PXA25X_PBUS95_CKEN(dev_id, con_id, bit, mult_hp, div_hp, delay) \ argument 120 PXA25X_CKEN(dev_id, con_id, pxa25x_pbus95_parents, mult_hp, \ 122 #define PXA25X_PBUS147_CKEN(dev_id, con_id, bit, mult_hp, div_hp, delay)\ argument 123 PXA25X_CKEN(dev_id, con_id, pxa25x_pbus147_parents, mult_hp, \ 125 #define PXA25X_OSC3_CKEN(dev_id, con_id, bit, mult_hp, div_hp, delay) \ argument 126 PXA25X_CKEN(dev_id, con_id, pxa25x_osc3_parents, mult_hp, \ 129 #define PXA25X_CKEN_1RATE(dev_id, con_id, bit, parents, delay) \ argument 130 PXA_CKEN_1RATE(dev_id, con_id, bit, parents, \ [all …]
|
| H A D | clk-pxa27x.c | 110 #define PXA27X_CKEN(dev_id, con_id, parents, mult_hp, div_hp, \ argument 112 PXA_CKEN(dev_id, con_id, bit, parents, 1, 1, mult_hp, div_hp, \ 114 #define PXA27X_PBUS_CKEN(dev_id, con_id, bit, mult_hp, div_hp, delay) \ argument 115 PXA27X_CKEN(dev_id, con_id, pxa27x_pbus_parents, mult_hp, \ 124 #define PXA27X_CKEN_1RATE(dev_id, con_id, bit, parents, delay) \ argument 125 PXA_CKEN_1RATE(dev_id, con_id, bit, parents, \ 127 #define PXA27X_CKEN_1RATE_AO(dev_id, con_id, bit, parents, delay) \ argument 128 PXA_CKEN_1RATE(dev_id, con_id, bit, parents, \ 432 { .con_id = _con_id, .dev_id = _dev_id, .parent = _parent } 434 const char *con_id; member [all …]
|
| H A 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()
|
| H A 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,
|
| /linux/include/linux/ |
| H A D | clkdev.h | 21 const char *con_id; member 29 .con_id = n, \ 36 struct clk_lookup *clkdev_create(struct clk *clk, const char *con_id, 38 struct clk_lookup *clkdev_hw_create(struct clk_hw *hw, const char *con_id, 48 const char *con_id, const char *dev_id);
|
| /linux/include/linux/framer/ |
| H A D | framer.h | 111 struct framer *framer_get(struct device *dev, const char *con_id); 114 struct framer *devm_framer_get(struct device *dev, const char *con_id); 115 struct framer *devm_framer_optional_get(struct device *dev, const char *con_id); 184 static inline struct framer *framer_get(struct device *dev, const char *con_id) in framer_get() argument 193 static inline struct framer *devm_framer_get(struct device *dev, const char *con_id) in devm_framer_get() argument 198 static inline struct framer *devm_framer_optional_get(struct device *dev, const char *con_id) in devm_framer_optional_get() argument
|
| /linux/include/linux/phy/ |
| H A D | phy.h | 215 const char *con_id; member 282 const char *con_id); 284 const char *con_id); 290 struct phy *of_phy_get(struct device_node *np, const char *con_id); 310 int phy_create_lookup(struct phy *phy, const char *con_id, const char *dev_id); 311 void phy_remove_lookup(struct phy *phy, const char *con_id, const char *dev_id); 480 const char *con_id) in devm_of_phy_get() argument 487 const char *con_id) in devm_of_phy_optional_get() argument 511 static inline struct phy *of_phy_get(struct device_node *np, const char *con_id) in of_phy_get() argument 569 phy_create_lookup(struct phy *phy, const char *con_id, const char *dev_id) in phy_create_lookup() argument [all …]
|
| /linux/include/linux/soc/qcom/ |
| H A D | smem_state.h | 16 struct qcom_smem_state *qcom_smem_state_get(struct device *dev, const char *con_id, unsigned *bit); 17 struct qcom_smem_state *devm_qcom_smem_state_get(struct device *dev, const char *con_id, unsigned *… 28 const char *con_id, unsigned *bit) in qcom_smem_state_get() argument 34 const char *con_id, in devm_qcom_smem_state_get() argument
|
| /linux/drivers/phy/ |
| H A D | phy-core.c | 71 int phy_create_lookup(struct phy *phy, const char *con_id, const char *dev_id) in phy_create_lookup() argument 75 if (!phy || !dev_id || !con_id) in phy_create_lookup() 83 pl->con_id = con_id; in phy_create_lookup() 103 void phy_remove_lookup(struct phy *phy, const char *con_id, const char *dev_id) in phy_remove_lookup() argument 107 if (!phy || !dev_id || !con_id) in phy_remove_lookup() 113 !strcmp(pl->con_id, con_id)) { in phy_remove_lookup() 122 static struct phy *phy_find(struct device *dev, const char *con_id) in phy_find() argument 129 if (!strcmp(p->dev_id, dev_id) && !strcmp(p->con_id, con_id)) { in phy_find() 676 struct phy *of_phy_get(struct device_node *np, const char *con_id) in of_phy_get() argument 681 if (con_id) in of_phy_get() [all …]
|
| /linux/drivers/mmc/core/ |
| H A D | slot-gpio.c | 175 int mmc_gpiod_request_cd(struct mmc_host *host, const char *con_id, in mmc_gpiod_request_cd() argument 183 desc = devm_gpiod_get_index(host->parent, con_id, idx, GPIOD_IN); in mmc_gpiod_request_cd() 188 if (!con_id) in mmc_gpiod_request_cd() 248 int mmc_gpiod_request_ro(struct mmc_host *host, const char *con_id, in mmc_gpiod_request_ro() argument 255 desc = devm_gpiod_get_index(host->parent, con_id, idx, GPIOD_IN); in mmc_gpiod_request_ro() 260 if (!con_id) in mmc_gpiod_request_ro()
|
| /linux/include/kunit/ |
| H A D | clk.h | 13 clk_get_kunit(struct kunit *test, struct device *dev, const char *con_id); 18 clk_hw_get_clk_kunit(struct kunit *test, struct clk_hw *hw, const char *con_id); 21 const char *con_id);
|
| /linux/rust/kernel/ |
| H A D | clk.rs | 139 let con_id = name.map_or(ptr::null(), |n| n.as_char_ptr()); in get() localVariable 145 bindings::clk_get(dev.as_raw(), con_id) in get() 307 let con_id = name.map_or(ptr::null(), |n| n.as_char_ptr()); in get() localVariable 314 bindings::clk_get_optional(dev.as_raw(), con_id) in get()
|