Home
last modified time | relevance | path

Searched refs:np (Results 1 - 25 of 185) sorted by relevance

12345678

/device/soc/rockchip/common/sdk_linux/drivers/opp/
H A Dof.c34 static struct device_node *_opp_of_get_opp_desc_node(struct device_node *np, int index) in _opp_of_get_opp_desc_node() argument
37 return of_parse_phandle(np, "operating-points-v2", index); in _opp_of_get_opp_desc_node()
50 struct device_node *np; in _managed_opp() local
52 np = _opp_of_get_opp_desc_node(dev->of_node, index); in _managed_opp()
53 if (!np) { in _managed_opp()
59 if (opp_table->np == np) { in _managed_opp()
62 * so will have same node-pointer, np. in _managed_opp()
76 of_node_put(np); in _managed_opp()
90 if (opp->np in _find_opp_of_np()
102 of_parse_required_opp(struct device_node *np, int index) of_parse_required_opp() argument
167 struct device_node *required_np, *np; _opp_table_alloc_required_tables() local
224 struct device_node *np, *opp_np; _of_init_opp_table() local
301 struct device_node *np; _of_opp_alloc_required_opps() local
344 struct device_node *np, *opp_np; _bandwidth_supported() local
378 struct device_node *np; dev_pm_opp_of_find_icc_paths() local
440 _opp_is_supported(struct device *dev, struct opp_table *opp_table, struct device_node *np) _opp_is_supported() argument
641 _read_bw(struct dev_pm_opp *new_opp, struct opp_table *table, struct device_node *np, bool peak) _read_bw() argument
683 _read_opp_key(struct dev_pm_opp *new_opp, struct opp_table *table, struct device_node *np, bool *rate_not_available) _read_opp_key() argument
753 _opp_add_static_v2(struct opp_table *opp_table, struct device *dev, struct device_node *np) _opp_add_static_v2() argument
851 struct device_node *np; _of_add_opp_table_v2() local
1137 struct device_node *np, *tmp_np, *cpu_np; dev_pm_opp_of_get_sharing_cpus() local
1201 of_get_required_opp_performance_state(struct device_node *np, int index) of_get_required_opp_performance_state() argument
1268 struct device_node *np; _get_power() local
1320 struct device_node *np; dev_pm_opp_of_register_em() local
[all...]
/device/soc/rockchip/common/sdk_linux/drivers/gpio/
H A Dgpiolib-of.c40 struct device_node *np = dev->of_node; in of_gpio_spi_cs_get_count() local
48 if (!of_device_is_compatible(np, "fsl,spi") && !of_device_is_compatible(np, "aeroflexgaisler,spictrl") && in of_gpio_spi_cs_get_count()
49 !of_device_is_compatible(np, "ibm,ppc4xx-spi")) { in of_gpio_spi_cs_get_count()
52 return of_gpio_named_count(np, "gpios"); in of_gpio_spi_cs_get_count()
91 return chip->gpiodev->dev.of_node == gpiospec->np && chip->of_xlate && chip->of_xlate(chip, gpiospec, NULL) >= 0; in of_gpiochip_match_node_and_xlate()
126 struct device_node *np = gc->of_node; in of_gpio_need_valid_mask() local
128 size = of_property_count_u32_elems(np, "gpio-reserved-ranges"); in of_gpio_need_valid_mask()
135 static void of_gpio_flags_quirks(struct device_node *np, const char *propname, enum of_gpio_flags *flags, int index) in of_gpio_flags_quirks() argument
142 (of_device_is_compatible(np, "regulato in of_gpio_flags_quirks()
233 of_get_named_gpiod_flags(struct device_node *np, const char *propname, int index, enum of_gpio_flags *flags) of_get_named_gpiod_flags() argument
271 of_get_named_gpio_flags(struct device_node *np, const char *list_name, int index, enum of_gpio_flags *flags) of_get_named_gpio_flags() argument
370 struct device_node *np = dev->of_node; of_find_spi_gpio() local
401 struct device_node *np = dev->of_node; of_find_spi_cs_gpio() local
438 struct device_node *np = dev->of_node; of_find_regulator_gpio() local
580 of_parse_own_gpio(struct device_node *np, struct gpio_chip *chip, unsigned int idx, const char **name, unsigned long *lflags, enum gpiod_flags *dflags) of_parse_own_gpio() argument
696 struct device_node *np; of_gpiochip_scan_gpios() local
740 of_find_gpiochip_by_node(struct device_node *np) of_find_gpiochip_by_node() argument
861 of_mm_gpiochip_add_data(struct device_node *np, struct of_mm_gpio_chip *mm_gc, void *data) of_mm_gpiochip_add_data() argument
918 struct device_node *np = chip->of_node; of_gpiochip_init_valid_mask() local
941 struct device_node *np = chip->of_node; of_gpiochip_add_pin_range() local
[all...]
/device/soc/rockchip/common/vendor/drivers/rockchip/
H A Drockchip_opp_select.c87 static int rockchip_nvmem_cell_read_common(struct device_node *np, const char *cell_id, void *val, size_t count) in rockchip_nvmem_cell_read_common() argument
93 cell = of_nvmem_cell_get(np, cell_id); in rockchip_nvmem_cell_read_common()
115 int rockchip_nvmem_cell_read_u8(struct device_node *np, const char *cell_id, u8 *val) in rockchip_nvmem_cell_read_u8() argument
117 return rockchip_nvmem_cell_read_common(np, cell_id, val, sizeof(*val)); in rockchip_nvmem_cell_read_u8()
121 int rockchip_nvmem_cell_read_u16(struct device_node *np, const char *cell_id, u16 *val) in rockchip_nvmem_cell_read_u16() argument
123 return rockchip_nvmem_cell_read_common(np, cell_id, val, sizeof(*val)); in rockchip_nvmem_cell_read_u16()
127 static int rockchip_get_sel_table(struct device_node *np, char *porp_name, struct sel_table **table) in rockchip_get_sel_table() argument
133 prop = of_find_property(np, porp_name, NULL); in rockchip_get_sel_table()
142 count = of_property_count_u32_elems(np, porp_name); in rockchip_get_sel_table()
157 of_property_read_u32_index(np, porp_nam in rockchip_get_sel_table()
170 rockchip_get_bin_sel_table(struct device_node *np, char *porp_name, struct bin_sel_table **table) rockchip_get_bin_sel_table() argument
212 rockchip_get_sel(struct device_node *np, char *name, int value, int *sel) rockchip_get_sel() argument
236 rockchip_get_bin_sel(struct device_node *np, char *name, int value, int *sel) rockchip_get_bin_sel() argument
261 rockchip_parse_pvtm_config(struct device_node *np, struct pvtm_config *pvtm) rockchip_parse_pvtm_config() argument
306 rockchip_get_pvtm_specific_value(struct device *dev, struct device_node *np, struct clk *clk, struct regulator *reg, int *target_value) rockchip_get_pvtm_specific_value() argument
444 rockchip_adjust_leakage(struct device *dev, struct device_node *np, int *leakage) rockchip_adjust_leakage() argument
513 rockchip_get_leakage_v1(struct device *dev, struct device_node *np, char *lkg_name, int *leakage) rockchip_get_leakage_v1() argument
535 rockchip_get_leakage_v2(struct device *dev, struct device_node *np, char *lkg_name, int *leakage) rockchip_get_leakage_v2() argument
553 rockchip_get_leakage_v3(struct device *dev, struct device_node *np, char *lkg_name, int *leakage) rockchip_get_leakage_v3() argument
568 struct device_node *np; rockchip_of_get_leakage() local
610 rockchip_of_get_lkg_sel(struct device *dev, struct device_node *np, char *lkg_name, int process, int *volt_sel, int *scale_sel) rockchip_of_get_lkg_sel() argument
678 rockchip_get_pvtm(struct device *dev, struct device_node *np, char *reg_name) rockchip_get_pvtm() argument
726 rockchip_of_get_pvtm_sel(struct device *dev, struct device_node *np, char *reg_name, int process, int *volt_sel, int *scale_sel) rockchip_of_get_pvtm_sel() argument
771 rockchip_of_get_bin_sel(struct device *dev, struct device_node *np, int bin, int *scale_sel) rockchip_of_get_bin_sel() argument
786 rockchip_of_get_bin_volt_sel(struct device *dev, struct device_node *np, int bin, int *bin_volt_sel) rockchip_of_get_bin_volt_sel() argument
815 rockchip_get_volt_rm_table(struct device *dev, struct device_node *np, char *porp_name, struct volt_rm_table **table) rockchip_get_volt_rm_table() argument
862 struct device_node *np; rockchip_get_scale_volt_sel() local
912 rockchip_adjust_opp_by_irdrop(struct device *dev, struct device_node *np, unsigned long *safe_rate, unsigned long *max_rate) rockchip_adjust_opp_by_irdrop() argument
987 rockchip_adjust_opp_by_mbist_vmin(struct device *dev, struct device_node *np) rockchip_adjust_opp_by_mbist_vmin() argument
1052 struct device_node *np; rockchip_adjust_power_scale() local
1144 struct device_node *np; rockchip_init_opp_table() local
[all...]
H A Drockchip_system_monitor.c387 static int rockchip_get_temp_freq_table(struct device_node *np, char *porp_name, struct temp_freq_table **freq_table) in rockchip_get_temp_freq_table() argument
393 prop = of_find_property(np, porp_name, NULL); in rockchip_get_temp_freq_table()
402 count = of_property_count_u32_elems(np, porp_name); in rockchip_get_temp_freq_table()
417 of_property_read_u32_index(np, porp_name, 0x2 * i, &table[i].temp); in rockchip_get_temp_freq_table()
418 of_property_read_u32_index(np, porp_name, 0x2 * i + 1, &table[i].freq); in rockchip_get_temp_freq_table()
426 static int rockchip_get_adjust_volt_table(struct device_node *np, char *porp_name, struct volt_adjust_table **table) in rockchip_get_adjust_volt_table() argument
432 prop = of_find_property(np, porp_name, NULL); in rockchip_get_adjust_volt_table()
441 count = of_property_count_u32_elems(np, porp_name); in rockchip_get_adjust_volt_table()
456 of_property_read_u32_index(np, porp_name, 0x3 * i, &volt_table[i].min); in rockchip_get_adjust_volt_table()
457 of_property_read_u32_index(np, porp_nam in rockchip_get_adjust_volt_table()
564 monitor_device_parse_wide_temp_config(struct device_node *np, struct monitor_dev_info *info) monitor_device_parse_wide_temp_config() argument
642 monitor_device_parse_status_config(struct device_node *np, struct monitor_dev_info *info) monitor_device_parse_status_config() argument
658 monitor_device_parse_early_min_volt(struct device_node *np, struct monitor_dev_info *info) monitor_device_parse_early_min_volt() argument
663 monitor_device_parse_read_margin(struct device_node *np, struct monitor_dev_info *info) monitor_device_parse_read_margin() argument
671 monitor_device_parse_scmi_clk(struct device_node *np, struct monitor_dev_info *info) monitor_device_parse_scmi_clk() argument
684 struct device_node *np; monitor_device_parse_dt() local
1296 struct device_node *np = monitor->dev->of_node; rockchip_system_monitor_parse_dt() local
[all...]
H A Drk_fiq_debugger.c913 struct device_node *np = pdev->dev.of_node; in rk_fiqdbg_probe() local
924 if (!of_device_is_available(np)) { in rk_fiqdbg_probe()
929 if (of_property_read_u32(np, "rockchip,serial-id", &serial_id)) { in rk_fiqdbg_probe()
938 if (of_property_read_u32(np, "rockchip,irq-mode-enable", &irq_mode)) { in rk_fiqdbg_probe()
942 signal_irq = irq_of_parse_and_map(np, 0); in rk_fiqdbg_probe()
947 if (of_property_read_u32(np, "rockchip,wake-irq", &wake_irq)) { in rk_fiqdbg_probe()
951 if (of_property_read_u32(np, "rockchip,baudrate", &baudrate)) { in rk_fiqdbg_probe()
955 np = NULL; in rk_fiqdbg_probe()
958 np = of_find_node_by_name(np, "seria in rk_fiqdbg_probe()
[all...]
H A Dgrf.c209 struct device_node *np; in rockchip_grf_init() local
213 np = of_find_matching_node_and_match(NULL, rockchip_grf_dt_match, &match); in rockchip_grf_init()
214 if (!np) { in rockchip_grf_init()
224 grf = syscon_node_to_regmap(np); in rockchip_grf_init()
/device/soc/rockchip/rk3588/kernel/drivers/soc/rockchip/
H A Drockchip_opp_select.c124 static int rockchip_nvmem_cell_read_common(struct device_node *np, in rockchip_nvmem_cell_read_common() argument
132 cell = of_nvmem_cell_get(np, cell_id); in rockchip_nvmem_cell_read_common()
153 int rockchip_nvmem_cell_read_u8(struct device_node *np, const char *cell_id, in rockchip_nvmem_cell_read_u8() argument
156 return rockchip_nvmem_cell_read_common(np, cell_id, val, sizeof(*val)); in rockchip_nvmem_cell_read_u8()
160 int rockchip_nvmem_cell_read_u16(struct device_node *np, const char *cell_id, in rockchip_nvmem_cell_read_u16() argument
163 return rockchip_nvmem_cell_read_common(np, cell_id, val, sizeof(*val)); in rockchip_nvmem_cell_read_u16()
167 static int rockchip_get_sel_table(struct device_node *np, char *porp_name, in rockchip_get_sel_table() argument
174 prop = of_find_property(np, porp_name, NULL); in rockchip_get_sel_table()
181 count = of_property_count_u32_elems(np, porp_name); in rockchip_get_sel_table()
193 of_property_read_u32_index(np, porp_nam in rockchip_get_sel_table()
209 rockchip_get_bin_sel_table(struct device_node *np, char *porp_name, struct bin_sel_table **table) rockchip_get_bin_sel_table() argument
249 rockchip_get_sel(struct device_node *np, char *name, int value, int *sel) rockchip_get_sel() argument
272 rockchip_get_bin_sel(struct device_node *np, char *name, int value, int *sel) rockchip_get_bin_sel() argument
296 rockchip_parse_pvtm_config(struct device_node *np, struct pvtm_config *pvtm) rockchip_parse_pvtm_config() argument
334 rockchip_get_pvtm_specific_value(struct device *dev, struct device_node *np, struct clk *clk, struct regulator *reg, int *target_value) rockchip_get_pvtm_specific_value() argument
474 rockchip_adjust_leakage(struct device *dev, struct device_node *np, int *leakage) rockchip_adjust_leakage() argument
541 rockchip_get_leakage_v1(struct device *dev, struct device_node *np, char *lkg_name, int *leakage) rockchip_get_leakage_v1() argument
563 rockchip_get_leakage_v2(struct device *dev, struct device_node *np, char *lkg_name, int *leakage) rockchip_get_leakage_v2() argument
580 rockchip_get_leakage_v3(struct device *dev, struct device_node *np, char *lkg_name, int *leakage) rockchip_get_leakage_v3() argument
595 struct device_node *np; rockchip_of_get_leakage() local
636 rockchip_of_get_lkg_sel(struct device *dev, struct device_node *np, char *lkg_name, int process, int *volt_sel, int *scale_sel) rockchip_of_get_lkg_sel() argument
700 rockchip_get_pvtm(struct device *dev, struct device_node *np, char *reg_name) rockchip_get_pvtm() argument
747 rockchip_of_get_pvtm_sel(struct device *dev, struct device_node *np, char *reg_name, int process, int *volt_sel, int *scale_sel) rockchip_of_get_pvtm_sel() argument
788 rockchip_of_get_bin_sel(struct device *dev, struct device_node *np, int bin, int *scale_sel) rockchip_of_get_bin_sel() argument
803 rockchip_of_get_bin_volt_sel(struct device *dev, struct device_node *np, int bin, int *bin_volt_sel) rockchip_of_get_bin_volt_sel() argument
832 rockchip_get_volt_rm_table(struct device *dev, struct device_node *np, char *porp_name, struct volt_rm_table **table) rockchip_get_volt_rm_table() argument
878 struct device_node *np; rockchip_get_scale_volt_sel() local
929 rockchip_adjust_opp_by_irdrop(struct device *dev, struct device_node *np, unsigned long *safe_rate, unsigned long *max_rate) rockchip_adjust_opp_by_irdrop() argument
999 rockchip_adjust_opp_by_mbist_vmin(struct device *dev, struct device_node *np) rockchip_adjust_opp_by_mbist_vmin() argument
1060 struct device_node *np; rockchip_adjust_power_scale() local
1148 struct device_node *np; rockchip_init_opp_table() local
[all...]
H A Drockchip_system_monitor.c393 static int rockchip_get_temp_freq_table(struct device_node *np, in rockchip_get_temp_freq_table() argument
401 prop = of_find_property(np, porp_name, NULL); in rockchip_get_temp_freq_table()
408 count = of_property_count_u32_elems(np, porp_name); in rockchip_get_temp_freq_table()
420 of_property_read_u32_index(np, porp_name, 2 * i, in rockchip_get_temp_freq_table()
422 of_property_read_u32_index(np, porp_name, 2 * i + 1, in rockchip_get_temp_freq_table()
431 static int rockchip_get_adjust_volt_table(struct device_node *np, in rockchip_get_adjust_volt_table() argument
439 prop = of_find_property(np, porp_name, NULL); in rockchip_get_adjust_volt_table()
446 count = of_property_count_u32_elems(np, porp_name); in rockchip_get_adjust_volt_table()
458 of_property_read_u32_index(np, porp_name, 3 * i, in rockchip_get_adjust_volt_table()
460 of_property_read_u32_index(np, porp_nam in rockchip_get_adjust_volt_table()
564 monitor_device_parse_wide_temp_config(struct device_node *np, struct monitor_dev_info *info) monitor_device_parse_wide_temp_config() argument
644 monitor_device_parse_status_config(struct device_node *np, struct monitor_dev_info *info) monitor_device_parse_status_config() argument
663 monitor_device_parse_early_min_volt(struct device_node *np, struct monitor_dev_info *info) monitor_device_parse_early_min_volt() argument
670 monitor_device_parse_read_margin(struct device_node *np, struct monitor_dev_info *info) monitor_device_parse_read_margin() argument
678 monitor_device_parse_scmi_clk(struct device_node *np, struct monitor_dev_info *info) monitor_device_parse_scmi_clk() argument
692 struct device_node *np; monitor_device_parse_dt() local
1313 struct device_node *np = monitor->dev->of_node; rockchip_system_monitor_parse_dt() local
[all...]
H A Drk_fiq_debugger.c936 struct device_node *np = pdev->dev.of_node; in rk_fiqdbg_probe() local
947 if (!of_device_is_available(np)) { in rk_fiqdbg_probe()
952 if (of_property_read_u32(np, "rockchip,serial-id", &serial_id)) in rk_fiqdbg_probe()
960 if (of_property_read_u32(np, "rockchip,irq-mode-enable", &irq_mode)) in rk_fiqdbg_probe()
963 signal_irq = irq_of_parse_and_map(np, 0); in rk_fiqdbg_probe()
967 if (of_property_read_u32(np, "rockchip,wake-irq", &wake_irq)) in rk_fiqdbg_probe()
970 if (of_property_read_u32(np, "rockchip,baudrate", &baudrate)) in rk_fiqdbg_probe()
973 np = NULL; in rk_fiqdbg_probe()
976 np = of_find_node_by_name(np, "seria in rk_fiqdbg_probe()
[all...]
/device/soc/rockchip/common/sdk_linux/drivers/regulator/
H A Dof_regulator.c24 static int of_get_regulation_constraints(struct device *dev, struct device_node *np, in of_get_regulation_constraints() argument
35 n_phandles = of_count_phandle_with_args(np, "regulator-coupled-with", NULL); in of_get_regulation_constraints()
38 constraints->name = of_get_property(np, "regulator-name", NULL); in of_get_regulation_constraints()
40 if (!of_property_read_u32(np, "regulator-min-microvolt", &pval)) { in of_get_regulation_constraints()
44 if (!of_property_read_u32(np, "regulator-max-microvolt", &pval)) { in of_get_regulation_constraints()
58 if (!of_property_read_u32(np, "regulator-microvolt-offset", &pval)) { in of_get_regulation_constraints()
61 if (!of_property_read_u32(np, "regulator-min-microamp", &pval)) { in of_get_regulation_constraints()
64 if (!of_property_read_u32(np, "regulator-max-microamp", &pval)) { in of_get_regulation_constraints()
68 if (!of_property_read_u32(np, "regulator-input-current-limit-microamp", &pval)) { in of_get_regulation_constraints()
77 constraints->boot_on = of_property_read_bool(np, "regulato in of_get_regulation_constraints()
480 of_find_regulator_by_node(struct device_node *np) of_find_regulator_by_node() argument
[all...]
/device/soc/rockchip/common/sdk_linux/include/soc/rockchip/
H A Drockchip_opp_select.h19 int (*get_soc_info)(struct device *dev, struct device_node *np, int *bin, int *process);
35 void rockchip_of_get_lkg_sel(struct device *dev, struct device_node *np, char *lkg_name, int process, int *volt_sel,
37 void rockchip_of_get_pvtm_sel(struct device *dev, struct device_node *np, char *reg_name, int process, int *volt_sel,
39 void rockchip_of_get_bin_sel(struct device *dev, struct device_node *np, int bin, int *scale_sel);
40 void rockchip_of_get_bin_volt_sel(struct device *dev, struct device_node *np, int bin, int *bin_volt_sel);
41 int rockchip_nvmem_cell_read_u8(struct device_node *np, const char *cell_id, u8 *val);
42 int rockchip_nvmem_cell_read_u16(struct device_node *np, const char *cell_id, u16 *val);
43 int rockchip_get_volt_rm_table(struct device *dev, struct device_node *np, char *porp_name,
57 static inline void rockchip_of_get_lkg_sel(struct device *dev, struct device_node *np, char *lkg_name, int process, in rockchip_of_get_lkg_sel() argument
62 static inline void rockchip_of_get_pvtm_sel(struct device *dev, struct device_node *np, cha argument
67 rockchip_of_get_bin_sel(struct device *dev, struct device_node *np, int bin, int *scale_sel) rockchip_of_get_bin_sel() argument
71 rockchip_of_get_bin_volt_sel(struct device *dev, struct device_node *np, int bin, int *bin_volt_sel) rockchip_of_get_bin_volt_sel() argument
75 rockchip_nvmem_cell_read_u8(struct device_node *np, const char *cell_id, u8 *val) rockchip_nvmem_cell_read_u8() argument
80 rockchip_nvmem_cell_read_u16(struct device_node *np, const char *cell_id, u16 *val) rockchip_nvmem_cell_read_u16() argument
85 rockchip_get_volt_rm_table(struct device *dev, struct device_node *np, char *porp_name, struct volt_rm_table **table) rockchip_get_volt_rm_table() argument
[all...]
/device/soc/rockchip/rk3588/kernel/include/soc/rockchip/
H A Drockchip_opp_select.h19 int (*get_soc_info)(struct device *dev, struct device_node *np,
39 void rockchip_of_get_lkg_sel(struct device *dev, struct device_node *np,
42 void rockchip_of_get_pvtm_sel(struct device *dev, struct device_node *np,
45 void rockchip_of_get_bin_sel(struct device *dev, struct device_node *np,
47 void rockchip_of_get_bin_volt_sel(struct device *dev, struct device_node *np,
49 int rockchip_nvmem_cell_read_u8(struct device_node *np, const char *cell_id,
51 int rockchip_nvmem_cell_read_u16(struct device_node *np, const char *cell_id,
53 int rockchip_get_volt_rm_table(struct device *dev, struct device_node *np,
74 struct device_node *np, in rockchip_of_get_lkg_sel()
81 struct device_node *np, in rockchip_of_get_pvtm_sel()
73 rockchip_of_get_lkg_sel(struct device *dev, struct device_node *np, char *lkg_name, int process, int *volt_sel, int *scale_sel) rockchip_of_get_lkg_sel() argument
80 rockchip_of_get_pvtm_sel(struct device *dev, struct device_node *np, char *reg_name, int process, int *volt_sel, int *scale_sel) rockchip_of_get_pvtm_sel() argument
87 rockchip_of_get_bin_sel(struct device *dev, struct device_node *np, int bin, int *scale_sel) rockchip_of_get_bin_sel() argument
93 rockchip_of_get_bin_volt_sel(struct device *dev, struct device_node *np, int bin, int *bin_volt_sel) rockchip_of_get_bin_volt_sel() argument
99 rockchip_nvmem_cell_read_u8(struct device_node *np, const char *cell_id, u8 *val) rockchip_nvmem_cell_read_u8() argument
105 rockchip_nvmem_cell_read_u16(struct device_node *np, const char *cell_id, u16 *val) rockchip_nvmem_cell_read_u16() argument
111 rockchip_get_volt_rm_table(struct device *dev, struct device_node *np, char *porp_name, struct volt_rm_table **table) rockchip_get_volt_rm_table() argument
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/
H A Dosal_platform.c27 struct device_node *np = ((struct platform_device*)pdev)->dev.of_node; in osal_platform_get_modparam_uint() local
30 if (of_property_read_u32(np, name, &temp_value)) { in osal_platform_get_modparam_uint()
41 struct device_node *np = ((struct platform_device*)pdev)->dev.of_node; in osal_platform_get_modparam_int() local
44 if (of_property_read_u32(np, name, &temp_value)) { in osal_platform_get_modparam_int()
55 struct device_node *np = ((struct platform_device*)pdev)->dev.of_node; in osal_platform_get_modparam_uchar() local
58 if (of_property_read_u8(np, name, &temp_value)) { in osal_platform_get_modparam_uchar()
69 struct device_node *np = ((struct platform_device*)pdev)->dev.of_node; in osal_platform_get_modparam_ushort() local
72 if (of_property_read_u16(np, name, &temp_value)) { in osal_platform_get_modparam_ushort()
83 struct device_node *np = ((struct platform_device*)pdev)->dev.of_node; in osal_platform_get_modparam_string() local
86 if (of_property_read_string(np, nam in osal_platform_get_modparam_string()
97 osal_of_property_read_u32(const void *np, const char *propname, unsigned int *value) osal_of_property_read_u32() argument
[all...]
/device/soc/rockchip/common/vendor/drivers/cpufreq/
H A Drockchip-cpufreq.c48 static int px30_get_soc_info(struct device *dev, struct device_node *np, int *bin, int *process) in px30_get_soc_info() argument
57 if (of_property_match_string(np, "nvmem-cell-names", "performance") >= 0) { in px30_get_soc_info()
58 ret = rockchip_nvmem_cell_read_u8(np, "performance", &value); in px30_get_soc_info()
72 static int rk3288_get_soc_info(struct device *dev, struct device_node *np, int *bin, int *process) in rk3288_get_soc_info() argument
81 if (of_property_match_string(np, "nvmem-cell-names", "special") >= 0) { in rk3288_get_soc_info()
82 ret = rockchip_nvmem_cell_read_u8(np, "special", &value); in rk3288_get_soc_info()
100 if (of_property_match_string(np, "nvmem-cell-names", name) >= 0) { in rk3288_get_soc_info()
101 ret = rockchip_nvmem_cell_read_u8(np, name, &value); in rk3288_get_soc_info()
120 if (of_property_match_string(np, "nvmem-cell-names", "process") >= 0) { in rk3288_get_soc_info()
121 ret = rockchip_nvmem_cell_read_u8(np, "proces in rk3288_get_soc_info()
138 rk3399_get_soc_info(struct device *dev, struct device_node *np, int *bin, int *process) rk3399_get_soc_info() argument
220 rv1126_get_soc_info(struct device *dev, struct device_node *np, int *bin, int *process) rv1126_get_soc_info() argument
414 struct device_node *np; rockchip_cpufreq_cluster_init() local
[all...]
/device/soc/rockchip/common/sdk_linux/drivers/cpufreq/
H A Dcpufreq-dt-platdev.c389 struct device_node *np = of_cpu_device_node_get(0); in cpu0_node_has_opp_v2_prop() local
392 if (of_get_property(np, "operating-points-v2", NULL)) { in cpu0_node_has_opp_v2_prop()
396 of_node_put(np); in cpu0_node_has_opp_v2_prop()
402 struct device_node *np = of_find_node_by_path("/"); in cpufreq_dt_platdev_init() local
406 if (!np) { in cpufreq_dt_platdev_init()
410 match = of_match_node(whitelist, np); in cpufreq_dt_platdev_init()
416 if (cpu0_node_has_opp_v2_prop() && !of_match_node(blacklist, np)) { in cpufreq_dt_platdev_init()
420 of_node_put(np); in cpufreq_dt_platdev_init()
424 of_node_put(np); in cpufreq_dt_platdev_init()
/device/soc/rockchip/rk3588/kernel/drivers/cpufreq/
H A Drockchip-cpufreq.c53 static int px30_get_soc_info(struct device *dev, struct device_node *np, in px30_get_soc_info() argument
62 if (of_property_match_string(np, "nvmem-cell-names", in px30_get_soc_info()
64 ret = rockchip_nvmem_cell_read_u8(np, "performance", &value); in px30_get_soc_info()
77 static int rk3288_get_soc_info(struct device *dev, struct device_node *np, in rk3288_get_soc_info() argument
86 if (of_property_match_string(np, "nvmem-cell-names", "special") >= 0) { in rk3288_get_soc_info()
87 ret = rockchip_nvmem_cell_read_u8(np, "special", &value); in rk3288_get_soc_info()
103 if (of_property_match_string(np, "nvmem-cell-names", name) >= 0) { in rk3288_get_soc_info()
104 ret = rockchip_nvmem_cell_read_u8(np, name, &value); in rk3288_get_soc_info()
120 if (of_property_match_string(np, "nvmem-cell-names", in rk3288_get_soc_info()
122 ret = rockchip_nvmem_cell_read_u8(np, "proces in rk3288_get_soc_info()
137 rk3399_get_soc_info(struct device *dev, struct device_node *np, int *bin, int *process) rk3399_get_soc_info() argument
235 rv1126_get_soc_info(struct device *dev, struct device_node *np, int *bin, int *process) rv1126_get_soc_info() argument
455 struct device_node *np; rockchip_cpufreq_cluster_init() local
[all...]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/platform/arm/
H A Djuno_opp.c71 struct device_node *np; in setup_opps() local
75 np = of_find_node_by_name(NULL, "gpu"); in setup_opps()
76 if (!np) { in setup_opps()
81 pdev = of_find_device_by_node(np); in setup_opps()
84 of_node_put(np); in setup_opps()
90 of_node_put(np); in setup_opps()
/device/soc/rockchip/common/sdk_linux/drivers/clocksource/
H A Dtimer-rockchip.c131 static int __init rk_timer_probe(struct rk_timer *timer, struct device_node *np) in rk_timer_probe() argument
138 timer->base = of_iomap(np, 0); in rk_timer_probe()
144 if (of_device_is_compatible(np, "rockchip,rk3399-timer")) { in rk_timer_probe()
150 pclk = of_clk_get_by_name(np, "pclk"); in rk_timer_probe()
164 timer_clk = of_clk_get_by_name(np, "timer"); in rk_timer_probe()
180 irq = irq_of_parse_and_map(np, 0); in rk_timer_probe()
209 static int __init rk_clkevt_init(struct device_node *np) in rk_clkevt_init() argument
220 ret = rk_timer_probe(&rk_clkevt->timer, np); in rk_clkevt_init()
255 static int __init rk_clksrc_init(struct device_node *np) in rk_clksrc_init() argument
265 ret = rk_timer_probe(rk_clksrc, np); in rk_clksrc_init()
294 rk_timer_init(struct device_node *np) rk_timer_init() argument
[all...]
/device/soc/rockchip/common/sdk_linux/drivers/soc/rockchip/
H A Dgrf.c209 struct device_node *np; in rockchip_grf_init() local
213 np = of_find_matching_node_and_match(NULL, rockchip_grf_dt_match, &match); in rockchip_grf_init()
214 if (!np) { in rockchip_grf_init()
219 of_node_put(np); in rockchip_grf_init()
225 grf = syscon_node_to_regmap(np); in rockchip_grf_init()
226 of_node_put(np); in rockchip_grf_init()
/device/soc/rockchip/common/sdk_linux/drivers/clk/rockchip/
H A Dclk-rk3128.c485 static struct rockchip_clk_provider *__init rk3128_common_clk_init(struct device_node *np) in rk3128_common_clk_init() argument
491 reg_base = of_iomap(np, 0); in rk3128_common_clk_init()
498 ctx = rockchip_clk_init(np, reg_base, CLK_NR_CLKS); in rk3128_common_clk_init()
512 rockchip_register_softrst(np, 9, reg_base + RK2928_SOFTRST_CON(0), ROCKCHIP_SOFTRST_HIWORD_MASK); in rk3128_common_clk_init()
523 static void __init rk3126_clk_init(struct device_node *np) in rk3126_clk_init() argument
527 ctx = rk3128_common_clk_init(np); in rk3126_clk_init()
534 rockchip_clk_of_add_provider(np, ctx); in rk3126_clk_init()
539 static void __init rk3128_clk_init(struct device_node *np) in rk3128_clk_init() argument
543 ctx = rk3128_common_clk_init(np); in rk3128_clk_init()
550 rockchip_clk_of_add_provider(np, ct in rk3128_clk_init()
582 struct device_node *np = pdev->dev.of_node; clk_rk3128_probe() local
[all...]
H A Dclk-rk3188.c611 static struct rockchip_clk_provider *__init rk3188_common_clk_init(struct device_node *np) in rk3188_common_clk_init() argument
616 reg_base = of_iomap(np, 0); in rk3188_common_clk_init()
622 ctx = rockchip_clk_init(np, reg_base, CLK_NR_CLKS); in rk3188_common_clk_init()
631 rockchip_register_softrst(np, 9, reg_base + RK2928_SOFTRST_CON(0), ROCKCHIP_SOFTRST_HIWORD_MASK); in rk3188_common_clk_init()
638 static void __init rk3066a_clk_init(struct device_node *np) in rk3066a_clk_init() argument
643 ctx = rk3188_common_clk_init(np); in rk3066a_clk_init()
653 rockchip_clk_of_add_provider(np, ctx); in rk3066a_clk_init()
657 static void __init rk3188a_clk_init(struct device_node *np) in rk3188a_clk_init() argument
664 ctx = rk3188_common_clk_init(np); in rk3188a_clk_init()
689 rockchip_clk_of_add_provider(np, ct in rk3188a_clk_init()
693 rk3188_clk_init(struct device_node *np) rk3188_clk_init() argument
751 struct device_node *np = pdev->dev.of_node; clk_rk3188_probe() local
[all...]
/device/soc/rockchip/common/sdk_linux/drivers/devfreq/event/
H A Drockchip-dfi.c448 struct device_node *np = pdev->dev.of_node, *node; in px30_dfi_init() local
458 node = of_parse_phandle(np, "rockchip,pmugrf", 0); in px30_dfi_init()
484 struct device_node *np = pdev->dev.of_node, *node; in rk3128_dfi_init() local
486 node = of_parse_phandle(np, "rockchip,grf", 0); in rk3128_dfi_init()
502 struct device_node *np = pdev->dev.of_node, *node; in rk3288_dfi_init() local
505 node = of_parse_phandle(np, "rockchip,pmu", 0); in rk3288_dfi_init()
513 node = of_parse_phandle(np, "rockchip,grf", 0); in rk3288_dfi_init()
559 struct device_node *np = pdev->dev.of_node, *node; in rockchip_dfi_init() local
574 node = of_parse_phandle(np, "rockchip,pmu", 0); in rockchip_dfi_init()
595 struct device_node *np in rk3328_dfi_init() local
641 struct device_node *np = pdev->dev.of_node; rockchip_dfi_probe() local
[all...]
/device/soc/rockchip/common/vendor/drivers/devfreq/
H A Drockchip_dmc.c561 static void of_get_px30_timings(struct device *dev, struct device_node *np, uint32_t *timing) in of_get_px30_timings() argument
572 np_tim = of_parse_phandle(np, "ddr_timing", 0); in of_get_px30_timings()
613 static void of_get_rk1808_timings(struct device *dev, struct device_node *np, uint32_t *timing) in of_get_rk1808_timings() argument
623 np_tim = of_parse_phandle(np, "ddr_timing", 0); in of_get_rk1808_timings()
665 static void of_get_rk3128_timings(struct device *dev, struct device_node *np, uint32_t *timing) in of_get_rk3128_timings() argument
676 if (of_property_read_u32(np, "vop-dclk-mode", &init_timing->vop_dclk_mode)) { in of_get_rk3128_timings()
681 np_tim = of_parse_phandle(np, "rockchip,ddr_timing", 0); in of_get_rk3128_timings()
701 static uint32_t of_get_rk3228_timings(struct device *dev, struct device_node *np, uint32_t *timing) in of_get_rk3228_timings() argument
709 np_tim = of_parse_phandle(np, "rockchip,dram_timing", 0); in of_get_rk3228_timings()
726 static void of_get_rk3288_timings(struct device *dev, struct device_node *np, uint32_ argument
762 of_get_rk3328_timings(struct device *dev, struct device_node *np, uint32_t *timing) of_get_rk3328_timings() argument
814 of_get_rv1126_timings(struct device *dev, struct device_node *np, uint32_t *timing) of_get_rv1126_timings() argument
866 of_get_rk3368_timings(struct device *dev, struct device_node *np) of_get_rk3368_timings() argument
913 of_get_rk3399_timings(struct device *dev, struct device_node *np) of_get_rk3399_timings() argument
1466 struct device_node *np = pdev->dev.of_node; rk3368_dmc_init() local
1554 struct device_node *np = pdev->dev.of_node; rk3399_dmc_init() local
1842 rockchip_get_freq_map_talbe(struct device_node *np, char *porp_name, struct freq_map_table **table) rockchip_get_freq_map_talbe() argument
1888 rockchip_get_rl_map_talbe(struct device_node *np, char *porp_name, struct rl_map_table **table) rockchip_get_rl_map_talbe() argument
1930 rockchip_get_system_status_rate(struct device_node *np, char *porp_name, struct rockchip_dmcfreq *dmcfreq) rockchip_get_system_status_rate() argument
2033 rockchip_get_system_status_level(struct device_node *np, char *porp_name, struct rockchip_dmcfreq *dmcfreq) rockchip_get_system_status_level() argument
2535 struct device_node *events_np, *np = dev->of_node; rockchip_dmcfreq_get_event() local
2637 struct device_node *np = dev->of_node; rockchip_dmcfreq_parse_dt() local
[all...]
/device/soc/rockchip/rk3588/kernel/drivers/devfreq/
H A Drockchip_dmc.c568 struct device_node *np, uint32_t *timing) in of_get_px30_timings()
581 np_tim = of_parse_phandle(np, "ddr_timing", 0); in of_get_px30_timings()
626 struct device_node *np, uint32_t *timing) in of_get_rk1808_timings()
638 np_tim = of_parse_phandle(np, "ddr_timing", 0); in of_get_rk1808_timings()
687 struct device_node *np, uint32_t *timing) in of_get_rk3128_timings()
698 if (of_property_read_u32(np, "vop-dclk-mode", in of_get_rk3128_timings()
703 np_tim = of_parse_phandle(np, "rockchip,ddr_timing", 0); in of_get_rk3128_timings()
727 struct device_node *np, uint32_t *timing) in of_get_rk3228_timings()
735 np_tim = of_parse_phandle(np, "rockchip,dram_timing", 0); in of_get_rk3228_timings()
753 struct device_node *np, uint32_ in of_get_rk3288_timings()
567 of_get_px30_timings(struct device *dev, struct device_node *np, uint32_t *timing) of_get_px30_timings() argument
625 of_get_rk1808_timings(struct device *dev, struct device_node *np, uint32_t *timing) of_get_rk1808_timings() argument
686 of_get_rk3128_timings(struct device *dev, struct device_node *np, uint32_t *timing) of_get_rk3128_timings() argument
726 of_get_rk3228_timings(struct device *dev, struct device_node *np, uint32_t *timing) of_get_rk3228_timings() argument
752 of_get_rk3288_timings(struct device *dev, struct device_node *np, uint32_t *timing) of_get_rk3288_timings() argument
792 of_get_rk3328_timings(struct device *dev, struct device_node *np, uint32_t *timing) of_get_rk3328_timings() argument
850 of_get_rv1126_timings(struct device *dev, struct device_node *np, uint32_t *timing) of_get_rv1126_timings() argument
911 of_get_rk3368_timings(struct device *dev, struct device_node *np) of_get_rk3368_timings() argument
975 of_get_rk3399_timings(struct device *dev, struct device_node *np) of_get_rk3399_timings() argument
1598 struct device_node *np = pdev->dev.of_node; rk3368_dmc_init() local
1689 struct device_node *np = pdev->dev.of_node; rk3399_dmc_init() local
1997 rockchip_get_freq_map_talbe(struct device_node *np, char *porp_name, struct freq_map_table **table) rockchip_get_freq_map_talbe() argument
2041 rockchip_get_rl_map_talbe(struct device_node *np, char *porp_name, struct rl_map_table **table) rockchip_get_rl_map_talbe() argument
2080 rockchip_get_system_status_rate(struct device_node *np, char *porp_name, struct rockchip_dmcfreq *dmcfreq) rockchip_get_system_status_rate() argument
2183 rockchip_get_system_status_level(struct device_node *np, char *porp_name, struct rockchip_dmcfreq *dmcfreq) rockchip_get_system_status_level() argument
2691 struct device_node *events_np, *np = dev->of_node; rockchip_dmcfreq_get_event() local
2793 struct device_node *np = dev->of_node; rockchip_dmcfreq_parse_dt() local
[all...]
/device/soc/rockchip/common/sdk_linux/include/linux/
H A Dthermal.h91 struct device_node *np; member
360 struct thermal_cooling_device *thermal_of_cooling_device_register(struct device_node *np, const char *, void *,
362 struct thermal_cooling_device *devm_thermal_of_cooling_device_register(struct device *dev, struct device_node *np,
392 thermal_of_cooling_device_register(struct device_node *np, const char *type, void *devdata, in thermal_of_cooling_device_register() argument
398 devm_thermal_of_cooling_device_register(struct device *dev, struct device_node *np, char *type, void *devdata, in devm_thermal_of_cooling_device_register() argument

Completed in 26 milliseconds

12345678