Home
last modified time | relevance | path

Searched refs:ndata (Results 1 – 25 of 29) sorted by relevance

12

/drivers/clk/samsung/
Dclk-cpu.c149 static int exynos_cpuclk_pre_rate_change(struct clk_notifier_data *ndata, in exynos_cpuclk_pre_rate_change() argument
159 while ((cfg_data->prate * 1000) != ndata->new_rate) { in exynos_cpuclk_pre_rate_change()
188 if (alt_prate > ndata->old_rate || ndata->old_rate > ndata->new_rate) { in exynos_cpuclk_pre_rate_change()
189 unsigned long tmp_rate = min(ndata->old_rate, ndata->new_rate); in exynos_cpuclk_pre_rate_change()
226 static int exynos_cpuclk_post_rate_change(struct clk_notifier_data *ndata, in exynos_cpuclk_post_rate_change() argument
236 while ((cfg_data->prate * 1000) != ndata->new_rate) { in exynos_cpuclk_post_rate_change()
277 static int exynos5433_cpuclk_pre_rate_change(struct clk_notifier_data *ndata, in exynos5433_cpuclk_pre_rate_change() argument
287 while ((cfg_data->prate * 1000) != ndata->new_rate) { in exynos5433_cpuclk_pre_rate_change()
310 if (alt_prate > ndata->old_rate || ndata->old_rate > ndata->new_rate) { in exynos5433_cpuclk_pre_rate_change()
311 unsigned long tmp_rate = min(ndata->old_rate, ndata->new_rate); in exynos5433_cpuclk_pre_rate_change()
[all …]
/drivers/clk/rockchip/
Dclk-cpu.c153 struct clk_notifier_data *ndata) in rockchip_cpuclk_pre_rate_change() argument
162 rate = rockchip_get_cpuclk_settings(cpuclk, ndata->new_rate); in rockchip_cpuclk_pre_rate_change()
165 __func__, ndata->new_rate); in rockchip_cpuclk_pre_rate_change()
179 if (alt_prate > ndata->old_rate) { in rockchip_cpuclk_pre_rate_change()
181 alt_div = DIV_ROUND_UP(alt_prate, ndata->old_rate) - 1; in rockchip_cpuclk_pre_rate_change()
196 __func__, alt_div, alt_prate, ndata->old_rate); in rockchip_cpuclk_pre_rate_change()
224 struct clk_notifier_data *ndata) in rockchip_cpuclk_post_rate_change() argument
231 rate = rockchip_get_cpuclk_settings(cpuclk, ndata->new_rate); in rockchip_cpuclk_post_rate_change()
234 __func__, ndata->new_rate); in rockchip_cpuclk_post_rate_change()
240 if (ndata->old_rate < ndata->new_rate) in rockchip_cpuclk_post_rate_change()
[all …]
Dclk-mmc-phase.c162 struct clk_notifier_data *ndata = data; in rockchip_mmc_clk_rate_notify() local
178 if (ndata->old_rate <= ndata->new_rate) in rockchip_mmc_clk_rate_notify()
Dclk.c144 struct clk_notifier_data *ndata = data; in rockchip_clk_frac_notifier_cb() local
150 __func__, event, ndata->old_rate, ndata->new_rate); in rockchip_clk_frac_notifier_cb()
/drivers/clocksource/
Dtimer-cadence-ttc.c230 struct clk_notifier_data *ndata = data; in ttc_rate_change_clocksource_cb() local
241 if (ndata->new_rate > ndata->old_rate) { in ttc_rate_change_clocksource_cb()
242 factor = DIV_ROUND_CLOSEST(ndata->new_rate, in ttc_rate_change_clocksource_cb()
243 ndata->old_rate); in ttc_rate_change_clocksource_cb()
244 rate_low = ndata->old_rate; in ttc_rate_change_clocksource_cb()
245 rate_high = ndata->new_rate; in ttc_rate_change_clocksource_cb()
247 factor = DIV_ROUND_CLOSEST(ndata->old_rate, in ttc_rate_change_clocksource_cb()
248 ndata->new_rate); in ttc_rate_change_clocksource_cb()
249 rate_low = ndata->new_rate; in ttc_rate_change_clocksource_cb()
250 rate_high = ndata->old_rate; in ttc_rate_change_clocksource_cb()
[all …]
Darm_global_timer.c288 struct clk_notifier_data *ndata = data; in gt_clk_rate_change_cb() local
295 psv = DIV_ROUND_CLOSEST(ndata->new_rate, gt_target_rate); in gt_clk_rate_change_cb()
297 abs(gt_target_rate - (ndata->new_rate / psv)) > MAX_F_ERR) in gt_clk_rate_change_cb()
313 if (ndata->new_rate < ndata->old_rate) in gt_clk_rate_change_cb()
322 if (ndata->new_rate > ndata->old_rate) in gt_clk_rate_change_cb()
331 if (ndata->new_rate < ndata->old_rate) in gt_clk_rate_change_cb()
Dtimer-sun5i.c151 struct clk_notifier_data *ndata = data; in sun5i_rate_cb() local
160 clocksource_register_hz(&cs->clksrc, ndata->new_rate); in sun5i_rate_cb()
161 clockevents_update_freq(&cs->clkevt, ndata->new_rate); in sun5i_rate_cb()
162 cs->ticks_per_jiffy = DIV_ROUND_UP(ndata->new_rate, HZ); in sun5i_rate_cb()
/drivers/interconnect/qcom/
Dicc-common.c14 struct icc_node_data *ndata; in qcom_icc_xlate_extended() local
21 ndata = kzalloc(sizeof(*ndata), GFP_KERNEL); in qcom_icc_xlate_extended()
22 if (!ndata) in qcom_icc_xlate_extended()
25 ndata->node = node; in qcom_icc_xlate_extended()
28 ndata->tag = spec->args[1]; in qcom_icc_xlate_extended()
33 return ndata; in qcom_icc_xlate_extended()
/drivers/net/ethernet/cavium/liquidio/
Docteon_nic.c85 struct octnic_data_pkt *ndata, in octnet_send_nic_data_pkt() argument
90 return octeon_send_command(oct, ndata->q_no, ring_doorbell, &ndata->cmd, in octnet_send_nic_data_pkt()
91 ndata->buf, ndata->datasize, in octnet_send_nic_data_pkt()
92 ndata->reqtype); in octnet_send_nic_data_pkt()
Dlio_vf_main.c1351 struct octnic_data_pkt *ndata, in send_nic_timestamp_pkt() argument
1363 sc = octeon_alloc_soft_command_resp(oct, &ndata->cmd, in send_nic_timestamp_pkt()
1372 if (ndata->reqtype == REQTYPE_NORESP_NET) in send_nic_timestamp_pkt()
1373 ndata->reqtype = REQTYPE_RESP_NET; in send_nic_timestamp_pkt()
1374 else if (ndata->reqtype == REQTYPE_NORESP_NET_SG) in send_nic_timestamp_pkt()
1375 ndata->reqtype = REQTYPE_RESP_NET_SG; in send_nic_timestamp_pkt()
1379 sc->iq_no = ndata->q_no; in send_nic_timestamp_pkt()
1386 sc, len, ndata->reqtype); in send_nic_timestamp_pkt()
1410 struct octnic_data_pkt ndata; in liquidio_xmit() local
1451 memset(&ndata, 0, sizeof(struct octnic_data_pkt)); in liquidio_xmit()
[all …]
Dlio_main.c2241 struct octnic_data_pkt *ndata, in send_nic_timestamp_pkt() argument
2253 sc = octeon_alloc_soft_command_resp(oct, &ndata->cmd, in send_nic_timestamp_pkt()
2262 if (ndata->reqtype == REQTYPE_NORESP_NET) in send_nic_timestamp_pkt()
2263 ndata->reqtype = REQTYPE_RESP_NET; in send_nic_timestamp_pkt()
2264 else if (ndata->reqtype == REQTYPE_NORESP_NET_SG) in send_nic_timestamp_pkt()
2265 ndata->reqtype = REQTYPE_RESP_NET_SG; in send_nic_timestamp_pkt()
2269 sc->iq_no = ndata->q_no; in send_nic_timestamp_pkt()
2281 sc, len, ndata->reqtype); in send_nic_timestamp_pkt()
2307 struct octnic_data_pkt ndata; in liquidio_xmit() local
2348 memset(&ndata, 0, sizeof(struct octnic_data_pkt)); in liquidio_xmit()
[all …]
Docteon_nic.h275 struct octnic_data_pkt *ndata,
/drivers/i2c/busses/
Di2c-cadence.c1120 struct clk_notifier_data *ndata = data; in cdns_i2c_clk_notifier_cb() local
1129 unsigned long input_clk = ndata->new_rate; in cdns_i2c_clk_notifier_cb()
1142 if (ndata->new_rate > ndata->old_rate) in cdns_i2c_clk_notifier_cb()
1143 cdns_i2c_setclk(ndata->new_rate, id); in cdns_i2c_clk_notifier_cb()
1148 id->input_clk = ndata->new_rate; in cdns_i2c_clk_notifier_cb()
1150 if (ndata->new_rate < ndata->old_rate) in cdns_i2c_clk_notifier_cb()
1151 cdns_i2c_setclk(ndata->new_rate, id); in cdns_i2c_clk_notifier_cb()
1155 if (ndata->new_rate > ndata->old_rate) in cdns_i2c_clk_notifier_cb()
1156 cdns_i2c_setclk(ndata->old_rate, id); in cdns_i2c_clk_notifier_cb()
Di2c-rk3x.c929 struct clk_notifier_data *ndata = data; in rk3x_i2c_clk_notifier_cb() local
940 if (i2c->soc_data->calc_timings(ndata->new_rate, &i2c->t, in rk3x_i2c_clk_notifier_cb()
945 if (ndata->new_rate > ndata->old_rate) in rk3x_i2c_clk_notifier_cb()
946 rk3x_i2c_adapt_div(i2c, ndata->new_rate); in rk3x_i2c_clk_notifier_cb()
951 if (ndata->new_rate < ndata->old_rate) in rk3x_i2c_clk_notifier_cb()
952 rk3x_i2c_adapt_div(i2c, ndata->new_rate); in rk3x_i2c_clk_notifier_cb()
956 if (ndata->new_rate > ndata->old_rate) in rk3x_i2c_clk_notifier_cb()
957 rk3x_i2c_adapt_div(i2c, ndata->old_rate); in rk3x_i2c_clk_notifier_cb()
/drivers/memory/tegra/
Dtegra20.c397 struct icc_node_data *ndata; in tegra20_mc_of_icc_xlate_extended() local
404 ndata = kzalloc(sizeof(*ndata), GFP_KERNEL); in tegra20_mc_of_icc_xlate_extended()
405 if (!ndata) in tegra20_mc_of_icc_xlate_extended()
408 ndata->node = node; in tegra20_mc_of_icc_xlate_extended()
413 ndata->tag = TEGRA_MC_ICC_TAG_ISO; in tegra20_mc_of_icc_xlate_extended()
415 ndata->tag = TEGRA_MC_ICC_TAG_DEFAULT; in tegra20_mc_of_icc_xlate_extended()
417 return ndata; in tegra20_mc_of_icc_xlate_extended()
Dtegra124.c1178 struct icc_node_data *ndata; in tegra124_mc_of_icc_xlate_extended() local
1185 ndata = kzalloc(sizeof(*ndata), GFP_KERNEL); in tegra124_mc_of_icc_xlate_extended()
1186 if (!ndata) in tegra124_mc_of_icc_xlate_extended()
1190 ndata->node = node; in tegra124_mc_of_icc_xlate_extended()
1198 ndata->tag = TEGRA_MC_ICC_TAG_ISO; in tegra124_mc_of_icc_xlate_extended()
1202 ndata->tag = TEGRA_MC_ICC_TAG_DEFAULT; in tegra124_mc_of_icc_xlate_extended()
1206 return ndata; in tegra124_mc_of_icc_xlate_extended()
Dtegra30.c1340 struct icc_node_data *ndata; in tegra30_mc_of_icc_xlate_extended() local
1347 ndata = kzalloc(sizeof(*ndata), GFP_KERNEL); in tegra30_mc_of_icc_xlate_extended()
1348 if (!ndata) in tegra30_mc_of_icc_xlate_extended()
1352 ndata->node = node; in tegra30_mc_of_icc_xlate_extended()
1360 ndata->tag = TEGRA_MC_ICC_TAG_ISO; in tegra30_mc_of_icc_xlate_extended()
1364 ndata->tag = TEGRA_MC_ICC_TAG_DEFAULT; in tegra30_mc_of_icc_xlate_extended()
1368 return ndata; in tegra30_mc_of_icc_xlate_extended()
Dtegra20-emc.c956 struct icc_node_data *ndata; in emc_of_icc_xlate_extended() local
964 ndata = kzalloc(sizeof(*ndata), GFP_KERNEL); in emc_of_icc_xlate_extended()
965 if (!ndata) in emc_of_icc_xlate_extended()
972 ndata->tag = TEGRA_MC_ICC_TAG_ISO; in emc_of_icc_xlate_extended()
973 ndata->node = node; in emc_of_icc_xlate_extended()
975 return ndata; in emc_of_icc_xlate_extended()
Dtegra124-emc.c1291 struct icc_node_data *ndata; in emc_of_icc_xlate_extended() local
1299 ndata = kzalloc(sizeof(*ndata), GFP_KERNEL); in emc_of_icc_xlate_extended()
1300 if (!ndata) in emc_of_icc_xlate_extended()
1307 ndata->tag = TEGRA_MC_ICC_TAG_ISO; in emc_of_icc_xlate_extended()
1308 ndata->node = node; in emc_of_icc_xlate_extended()
1310 return ndata; in emc_of_icc_xlate_extended()
Dtegra30-emc.c1474 struct icc_node_data *ndata; in emc_of_icc_xlate_extended() local
1482 ndata = kzalloc(sizeof(*ndata), GFP_KERNEL); in emc_of_icc_xlate_extended()
1483 if (!ndata) in emc_of_icc_xlate_extended()
1490 ndata->tag = TEGRA_MC_ICC_TAG_ISO; in emc_of_icc_xlate_extended()
1491 ndata->node = node; in emc_of_icc_xlate_extended()
1493 return ndata; in emc_of_icc_xlate_extended()
/drivers/clk/xilinx/
Dclk-xlnx-clock-wizard.c537 struct clk_notifier_data *ndata = data; in clk_wzrd_clk_notifier() local
543 if (ndata->clk == clk_wzrd->clk_in1) in clk_wzrd_clk_notifier()
545 else if (ndata->clk == clk_wzrd->axi_clk) in clk_wzrd_clk_notifier()
552 if (ndata->new_rate > max) in clk_wzrd_clk_notifier()
/drivers/pwm/
Dpwm-sifive.c212 struct clk_notifier_data *ndata = data; in pwm_sifive_clock_notifier() local
218 pwm_sifive_update_clock(ddata, ndata->new_rate); in pwm_sifive_clock_notifier()
/drivers/mtd/spi-nor/
Dmicron-st.c32 #define MICRON_ST_NOR_WR_ANY_REG_OP(naddr, addr, ndata, buf) \ argument
36 SPI_MEM_OP_DATA_OUT(ndata, buf, 0))
Dspansion.c48 #define CYPRESS_NOR_WR_ANY_REG_OP(naddr, addr, ndata, buf) \ argument
52 SPI_MEM_OP_DATA_OUT(ndata, buf, 0))
/drivers/tty/serial/
Dxilinx_uartps.c485 struct clk_notifier_data *ndata = data; in cdns_uart_clk_notifier_cb() local
503 if (!cdns_uart_calc_baud_divs(ndata->new_rate, cdns_uart->baud, in cdns_uart_clk_notifier_cb()
529 port->uartclk = ndata->new_rate; in cdns_uart_clk_notifier_cb()

12