Home
last modified time | relevance | path

Searched refs:bgp (Results 1 - 13 of 13) sorted by relevance

/kernel/linux/linux-5.10/drivers/thermal/ti-soc-thermal/
H A Dti-bandgap.c38 static int ti_bandgap_force_single_read(struct ti_bandgap *bgp, int id);
48 * @bgp: pointer to ti_bandgap structure
54 static u32 ti_bandgap_readl(struct ti_bandgap *bgp, u32 reg) in ti_bandgap_readl() argument
56 return readl(bgp->base + reg); in ti_bandgap_readl()
61 * @bgp: pointer to ti_bandgap structure
67 static void ti_bandgap_writel(struct ti_bandgap *bgp, u32 val, u32 reg) in ti_bandgap_writel() argument
69 writel(val, bgp->base + reg); in ti_bandgap_writel()
78 #define RMW_BITS(bgp, id, reg, mask, val) \
83 t = bgp->conf->sensors[(id)].registers; \
84 r = ti_bandgap_readl(bgp,
102 ti_bandgap_power(struct ti_bandgap *bgp, bool on) ti_bandgap_power() argument
131 ti_errata814_bandgap_read_temp(struct ti_bandgap *bgp, u32 reg) ti_errata814_bandgap_read_temp() argument
158 ti_bandgap_read_temp(struct ti_bandgap *bgp, int id) ti_bandgap_read_temp() argument
206 struct ti_bandgap *bgp = data; ti_bandgap_talert_irq_handler() local
292 ti_bandgap_adc_to_mcelsius(struct ti_bandgap *bgp, int adc_val, int *t) ti_bandgap_adc_to_mcelsius() argument
315 ti_bandgap_validate(struct ti_bandgap *bgp, int id) ti_bandgap_validate() argument
337 ti_bandgap_read_counter(struct ti_bandgap *bgp, int id, int *interval) ti_bandgap_read_counter() argument
357 ti_bandgap_read_counter_delay(struct ti_bandgap *bgp, int id, int *interval) ti_bandgap_read_counter_delay() argument
401 ti_bandgap_read_update_interval(struct ti_bandgap *bgp, int id, int *interval) ti_bandgap_read_update_interval() argument
434 ti_bandgap_write_counter_delay(struct ti_bandgap *bgp, int id, u32 interval) ti_bandgap_write_counter_delay() argument
476 ti_bandgap_write_counter(struct ti_bandgap *bgp, int id, u32 interval) ti_bandgap_write_counter() argument
493 ti_bandgap_write_update_interval(struct ti_bandgap *bgp, int id, u32 interval) ti_bandgap_write_update_interval() argument
524 ti_bandgap_read_temperature(struct ti_bandgap *bgp, int id, int *temperature) ti_bandgap_read_temperature() argument
562 ti_bandgap_set_sensor_data(struct ti_bandgap *bgp, int id, void *data) ti_bandgap_set_sensor_data() argument
581 ti_bandgap_get_sensor_data(struct ti_bandgap *bgp, int id) ti_bandgap_get_sensor_data() argument
603 ti_bandgap_force_single_read(struct ti_bandgap *bgp, int id) ti_bandgap_force_single_read() argument
649 ti_bandgap_set_continuous_mode(struct ti_bandgap *bgp) ti_bandgap_set_continuous_mode() argument
677 ti_bandgap_get_trend(struct ti_bandgap *bgp, int id, int *trend) ti_bandgap_get_trend() argument
753 ti_bandgap_tshut_init(struct ti_bandgap *bgp, struct platform_device *pdev) ti_bandgap_tshut_init() argument
780 ti_bandgap_talert_init(struct ti_bandgap *bgp, struct platform_device *pdev) ti_bandgap_talert_init() argument
817 struct ti_bandgap *bgp; ti_bandgap_build() local
884 struct ti_bandgap *bgp; ti_bandgap_probe() local
1069 struct ti_bandgap *bgp = platform_get_drvdata(pdev); ti_bandgap_remove() local
1101 ti_bandgap_save_ctxt(struct ti_bandgap *bgp) ti_bandgap_save_ctxt() argument
1133 ti_bandgap_restore_ctxt(struct ti_bandgap *bgp) ti_bandgap_restore_ctxt() argument
1175 struct ti_bandgap *bgp = dev_get_drvdata(dev); ti_bandgap_suspend() local
1192 struct ti_bandgap *bgp; bandgap_omap_cpu_notifier() local
1223 struct ti_bandgap *bgp = dev_get_drvdata(dev); ti_bandgap_resume() local
[all...]
H A Dti-thermal-common.c31 struct ti_bandgap *bgp; member
71 struct ti_bandgap *bgp; in __ti_thermal_get_temp() local
79 bgp = data->bgp; in __ti_thermal_get_temp()
80 s = &bgp->conf->sensors[data->sensor_id]; in __ti_thermal_get_temp()
82 ret = ti_bandgap_read_temperature(bgp, data->sensor_id, &tmp); in __ti_thermal_get_temp()
99 dev_err(bgp->dev, in __ti_thermal_get_temp()
120 struct ti_bandgap *bgp; in __ti_thermal_get_trend() local
123 bgp = data->bgp; in __ti_thermal_get_trend()
146 ti_thermal_build_data(struct ti_bandgap *bgp, int id) ti_thermal_build_data() argument
165 ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, char *domain) ti_thermal_expose_sensor() argument
193 ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id) ti_thermal_remove_sensor() argument
207 ti_thermal_report_sensor_temperature(struct ti_bandgap *bgp, int id) ti_thermal_report_sensor_temperature() argument
218 ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id) ti_thermal_register_cpu_cooling() argument
259 ti_thermal_unregister_cpu_cooling(struct ti_bandgap *bgp, int id) ti_thermal_unregister_cpu_cooling() argument
[all...]
H A Dti-thermal.h57 int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, char *domain);
58 int ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id);
59 int ti_thermal_report_sensor_temperature(struct ti_bandgap *bgp, int id);
60 int ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id);
61 int ti_thermal_unregister_cpu_cooling(struct ti_bandgap *bgp, int id);
64 int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, char *domain) in ti_thermal_expose_sensor() argument
70 int ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id) in ti_thermal_remove_sensor() argument
76 int ti_thermal_report_sensor_temperature(struct ti_bandgap *bgp, int id) in ti_thermal_report_sensor_temperature() argument
82 int ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id) in ti_thermal_register_cpu_cooling() argument
88 int ti_thermal_unregister_cpu_cooling(struct ti_bandgap *bgp, in argument
[all...]
H A Dti-bandgap.h239 int (*register_cooling)(struct ti_bandgap *bgp, int id);
240 int (*unregister_cooling)(struct ti_bandgap *bgp, int id);
329 int (*report_temperature)(struct ti_bandgap *bgp, int id);
330 int (*expose_sensor)(struct ti_bandgap *bgp, int id, char *domain);
331 int (*remove_sensor)(struct ti_bandgap *bgp, int id);
337 int ti_bandgap_read_thot(struct ti_bandgap *bgp, int id, int *thot);
338 int ti_bandgap_write_thot(struct ti_bandgap *bgp, int id, int val);
339 int ti_bandgap_read_tcold(struct ti_bandgap *bgp, int id, int *tcold);
340 int ti_bandgap_write_tcold(struct ti_bandgap *bgp, int id, int val);
341 int ti_bandgap_read_update_interval(struct ti_bandgap *bgp, in
[all...]
/kernel/linux/linux-6.6/drivers/thermal/ti-soc-thermal/
H A Dti-bandgap.c38 static int ti_bandgap_force_single_read(struct ti_bandgap *bgp, int id);
48 * @bgp: pointer to ti_bandgap structure
54 static u32 ti_bandgap_readl(struct ti_bandgap *bgp, u32 reg) in ti_bandgap_readl() argument
56 return readl(bgp->base + reg); in ti_bandgap_readl()
61 * @bgp: pointer to ti_bandgap structure
67 static void ti_bandgap_writel(struct ti_bandgap *bgp, u32 val, u32 reg) in ti_bandgap_writel() argument
69 writel(val, bgp->base + reg); in ti_bandgap_writel()
78 #define RMW_BITS(bgp, id, reg, mask, val) \
83 t = bgp->conf->sensors[(id)].registers; \
84 r = ti_bandgap_readl(bgp,
102 ti_bandgap_power(struct ti_bandgap *bgp, bool on) ti_bandgap_power() argument
131 ti_errata814_bandgap_read_temp(struct ti_bandgap *bgp, u32 reg) ti_errata814_bandgap_read_temp() argument
158 ti_bandgap_read_temp(struct ti_bandgap *bgp, int id) ti_bandgap_read_temp() argument
206 struct ti_bandgap *bgp = data; ti_bandgap_talert_irq_handler() local
292 ti_bandgap_adc_to_mcelsius(struct ti_bandgap *bgp, int adc_val, int *t) ti_bandgap_adc_to_mcelsius() argument
315 ti_bandgap_validate(struct ti_bandgap *bgp, int id) ti_bandgap_validate() argument
337 ti_bandgap_read_counter(struct ti_bandgap *bgp, int id, int *interval) ti_bandgap_read_counter() argument
357 ti_bandgap_read_counter_delay(struct ti_bandgap *bgp, int id, int *interval) ti_bandgap_read_counter_delay() argument
401 ti_bandgap_read_update_interval(struct ti_bandgap *bgp, int id, int *interval) ti_bandgap_read_update_interval() argument
434 ti_bandgap_write_counter_delay(struct ti_bandgap *bgp, int id, u32 interval) ti_bandgap_write_counter_delay() argument
476 ti_bandgap_write_counter(struct ti_bandgap *bgp, int id, u32 interval) ti_bandgap_write_counter() argument
493 ti_bandgap_write_update_interval(struct ti_bandgap *bgp, int id, u32 interval) ti_bandgap_write_update_interval() argument
524 ti_bandgap_read_temperature(struct ti_bandgap *bgp, int id, int *temperature) ti_bandgap_read_temperature() argument
562 ti_bandgap_set_sensor_data(struct ti_bandgap *bgp, int id, void *data) ti_bandgap_set_sensor_data() argument
581 ti_bandgap_get_sensor_data(struct ti_bandgap *bgp, int id) ti_bandgap_get_sensor_data() argument
603 ti_bandgap_force_single_read(struct ti_bandgap *bgp, int id) ti_bandgap_force_single_read() argument
654 ti_bandgap_set_continuous_mode(struct ti_bandgap *bgp) ti_bandgap_set_continuous_mode() argument
682 ti_bandgap_get_trend(struct ti_bandgap *bgp, int id, int *trend) ti_bandgap_get_trend() argument
758 ti_bandgap_tshut_init(struct ti_bandgap *bgp, struct platform_device *pdev) ti_bandgap_tshut_init() argument
785 ti_bandgap_talert_init(struct ti_bandgap *bgp, struct platform_device *pdev) ti_bandgap_talert_init() argument
822 struct ti_bandgap *bgp; ti_bandgap_build() local
889 struct ti_bandgap *bgp; ti_bandgap_probe() local
1074 struct ti_bandgap *bgp = platform_get_drvdata(pdev); ti_bandgap_remove() local
1106 ti_bandgap_save_ctxt(struct ti_bandgap *bgp) ti_bandgap_save_ctxt() argument
1138 ti_bandgap_restore_ctxt(struct ti_bandgap *bgp) ti_bandgap_restore_ctxt() argument
1176 struct ti_bandgap *bgp = dev_get_drvdata(dev); ti_bandgap_suspend() local
1193 struct ti_bandgap *bgp; bandgap_omap_cpu_notifier() local
1224 struct ti_bandgap *bgp = dev_get_drvdata(dev); ti_bandgap_resume() local
[all...]
H A Dti-thermal-common.c34 struct ti_bandgap *bgp; member
48 dev_dbg(data->bgp->dev, "updated thermal zone %s\n", in ti_thermal_work()
74 struct ti_bandgap *bgp; in __ti_thermal_get_temp() local
82 bgp = data->bgp; in __ti_thermal_get_temp()
83 s = &bgp->conf->sensors[data->sensor_id]; in __ti_thermal_get_temp()
85 ret = ti_bandgap_read_temperature(bgp, data->sensor_id, &tmp); in __ti_thermal_get_temp()
102 dev_err(bgp->dev, in __ti_thermal_get_temp()
117 struct ti_bandgap *bgp; in __ti_thermal_get_trend() local
120 bgp in __ti_thermal_get_trend()
143 ti_thermal_build_data(struct ti_bandgap *bgp, int id) ti_thermal_build_data() argument
162 ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, char *domain) ti_thermal_expose_sensor() argument
192 ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id) ti_thermal_remove_sensor() argument
206 ti_thermal_report_sensor_temperature(struct ti_bandgap *bgp, int id) ti_thermal_report_sensor_temperature() argument
217 ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id) ti_thermal_register_cpu_cooling() argument
258 ti_thermal_unregister_cpu_cooling(struct ti_bandgap *bgp, int id) ti_thermal_unregister_cpu_cooling() argument
[all...]
H A Dti-thermal.h42 int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, char *domain);
43 int ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id);
44 int ti_thermal_report_sensor_temperature(struct ti_bandgap *bgp, int id);
45 int ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id);
46 int ti_thermal_unregister_cpu_cooling(struct ti_bandgap *bgp, int id);
49 int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, char *domain) in ti_thermal_expose_sensor() argument
55 int ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id) in ti_thermal_remove_sensor() argument
61 int ti_thermal_report_sensor_temperature(struct ti_bandgap *bgp, int id) in ti_thermal_report_sensor_temperature() argument
67 int ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id) in ti_thermal_register_cpu_cooling() argument
73 int ti_thermal_unregister_cpu_cooling(struct ti_bandgap *bgp, in argument
[all...]
H A Dti-bandgap.h239 int (*register_cooling)(struct ti_bandgap *bgp, int id);
240 int (*unregister_cooling)(struct ti_bandgap *bgp, int id);
331 int (*report_temperature)(struct ti_bandgap *bgp, int id);
332 int (*expose_sensor)(struct ti_bandgap *bgp, int id, char *domain);
333 int (*remove_sensor)(struct ti_bandgap *bgp, int id);
339 int ti_bandgap_read_thot(struct ti_bandgap *bgp, int id, int *thot);
340 int ti_bandgap_write_thot(struct ti_bandgap *bgp, int id, int val);
341 int ti_bandgap_read_tcold(struct ti_bandgap *bgp, int id, int *tcold);
342 int ti_bandgap_write_tcold(struct ti_bandgap *bgp, int id, int val);
343 int ti_bandgap_read_update_interval(struct ti_bandgap *bgp, in
[all...]
/kernel/linux/linux-5.10/drivers/thermal/
H A Dk3_bandgap.c85 struct k3_bandgap *bgp; member
110 struct k3_bandgap *bgp; in k3_bgp_read_temp() local
113 bgp = devdata->bgp; in k3_bgp_read_temp()
124 s0 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp()
126 s1 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp()
128 s2 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp()
163 struct k3_bandgap *bgp; in k3_bandgap_probe() local
170 bgp = devm_kzalloc(&pdev->dev, sizeof(*bgp), GFP_KERNE in k3_bandgap_probe()
[all...]
/kernel/linux/linux-6.6/drivers/thermal/
H A Dk3_bandgap.c87 struct k3_bandgap *bgp; member
112 struct k3_bandgap *bgp; in k3_bgp_read_temp() local
115 bgp = devdata->bgp; in k3_bgp_read_temp()
126 s0 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp()
128 s1 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp()
130 s2 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp()
165 struct k3_bandgap *bgp; in k3_bandgap_probe() local
172 bgp = devm_kzalloc(&pdev->dev, sizeof(*bgp), GFP_KERNE in k3_bandgap_probe()
[all...]
H A Dk3_j72xx_bandgap.c185 struct k3_j72xx_bandgap *bgp; member
219 struct k3_j72xx_bandgap *bgp; in k3_bgp_read_temp() local
222 bgp = devdata->bgp; in k3_bgp_read_temp()
232 s0 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp()
234 s1 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp()
236 s2 = readl(bgp->base + devdata->stat_offset) & in k3_bgp_read_temp()
351 struct k3_j72xx_bandgap *bgp; in k3_j72xx_bandgap_probe() local
374 bgp = devm_kzalloc(&pdev->dev, sizeof(*bgp), GFP_KERNE in k3_j72xx_bandgap_probe()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/
H A Dbridge_mdb.sh491 filter_mode exclude source_list $src1 proto bgp
492 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "bgp"
493 check_err $? "(*, G) protocol not changed to \"bgp\" after replace"
494 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | grep -q "bgp"
495 check_err $? "(S, G) protocol not changed to \"bgp\" after replace"
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/dsa/
H A Dbridge_mdb.sh491 filter_mode exclude source_list $src1 proto bgp
492 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "bgp"
493 check_err $? "(*, G) protocol not changed to \"bgp\" after replace"
494 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | grep -q "bgp"
495 check_err $? "(S, G) protocol not changed to \"bgp\" after replace"

Completed in 12 milliseconds