Home
last modified time | relevance | path

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

/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.c121 struct clk_notifier_data *ndata) in rockchip_cpuclk_pre_rate_change() argument
129 rate = rockchip_get_cpuclk_settings(cpuclk, ndata->new_rate); in rockchip_cpuclk_pre_rate_change()
132 __func__, ndata->new_rate); in rockchip_cpuclk_pre_rate_change()
146 if (alt_prate > ndata->old_rate) { in rockchip_cpuclk_pre_rate_change()
148 alt_div = DIV_ROUND_UP(alt_prate, ndata->old_rate) - 1; in rockchip_cpuclk_pre_rate_change()
163 __func__, alt_div, alt_prate, ndata->old_rate); in rockchip_cpuclk_pre_rate_change()
184 struct clk_notifier_data *ndata) in rockchip_cpuclk_post_rate_change() argument
190 rate = rockchip_get_cpuclk_settings(cpuclk, ndata->new_rate); in rockchip_cpuclk_post_rate_change()
193 __func__, ndata->new_rate); in rockchip_cpuclk_post_rate_change()
199 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.c143 struct clk_notifier_data *ndata = data; in rockchip_clk_frac_notifier_cb() local
149 __func__, event, ndata->old_rate, ndata->new_rate); in rockchip_clk_frac_notifier_cb()
/drivers/clocksource/
Dtimer-cadence-ttc.c227 struct clk_notifier_data *ndata = data; in ttc_rate_change_clocksource_cb() local
238 if (ndata->new_rate > ndata->old_rate) { in ttc_rate_change_clocksource_cb()
239 factor = DIV_ROUND_CLOSEST(ndata->new_rate, in ttc_rate_change_clocksource_cb()
240 ndata->old_rate); in ttc_rate_change_clocksource_cb()
241 rate_low = ndata->old_rate; in ttc_rate_change_clocksource_cb()
242 rate_high = ndata->new_rate; in ttc_rate_change_clocksource_cb()
244 factor = DIV_ROUND_CLOSEST(ndata->old_rate, in ttc_rate_change_clocksource_cb()
245 ndata->new_rate); in ttc_rate_change_clocksource_cb()
246 rate_low = ndata->new_rate; in ttc_rate_change_clocksource_cb()
247 rate_high = ndata->old_rate; in ttc_rate_change_clocksource_cb()
[all …]
Dtimer-sun5i.c166 struct clk_notifier_data *ndata = data; in sun5i_rate_cb_clksrc() local
176 clocksource_register_hz(&cs->clksrc, ndata->new_rate); in sun5i_rate_cb_clksrc()
252 struct clk_notifier_data *ndata = data; in sun5i_rate_cb_clkevt() local
257 clockevents_update_freq(&ce->clkevt, ndata->new_rate); in sun5i_rate_cb_clkevt()
258 ce->timer.ticks_per_jiffy = DIV_ROUND_UP(ndata->new_rate, HZ); in sun5i_rate_cb_clkevt()
/drivers/net/ethernet/cavium/liquidio/
Docteon_nic.c84 struct octnic_data_pkt *ndata, in octnet_send_nic_data_pkt() argument
89 return octeon_send_command(oct, ndata->q_no, ring_doorbell, &ndata->cmd, in octnet_send_nic_data_pkt()
90 ndata->buf, ndata->datasize, in octnet_send_nic_data_pkt()
91 ndata->reqtype); in octnet_send_nic_data_pkt()
Dlio_vf_main.c1350 struct octnic_data_pkt *ndata, in send_nic_timestamp_pkt() argument
1362 sc = octeon_alloc_soft_command_resp(oct, &ndata->cmd, in send_nic_timestamp_pkt()
1371 if (ndata->reqtype == REQTYPE_NORESP_NET) in send_nic_timestamp_pkt()
1372 ndata->reqtype = REQTYPE_RESP_NET; in send_nic_timestamp_pkt()
1373 else if (ndata->reqtype == REQTYPE_NORESP_NET_SG) in send_nic_timestamp_pkt()
1374 ndata->reqtype = REQTYPE_RESP_NET_SG; in send_nic_timestamp_pkt()
1378 sc->iq_no = ndata->q_no; in send_nic_timestamp_pkt()
1385 sc, len, ndata->reqtype); in send_nic_timestamp_pkt()
1408 struct octnic_data_pkt ndata; in liquidio_xmit() local
1449 memset(&ndata, 0, sizeof(struct octnic_data_pkt)); in liquidio_xmit()
[all …]
Dlio_main.c2261 struct octnic_data_pkt *ndata, in send_nic_timestamp_pkt() argument
2273 sc = octeon_alloc_soft_command_resp(oct, &ndata->cmd, in send_nic_timestamp_pkt()
2282 if (ndata->reqtype == REQTYPE_NORESP_NET) in send_nic_timestamp_pkt()
2283 ndata->reqtype = REQTYPE_RESP_NET; in send_nic_timestamp_pkt()
2284 else if (ndata->reqtype == REQTYPE_NORESP_NET_SG) in send_nic_timestamp_pkt()
2285 ndata->reqtype = REQTYPE_RESP_NET_SG; in send_nic_timestamp_pkt()
2289 sc->iq_no = ndata->q_no; in send_nic_timestamp_pkt()
2301 sc, len, ndata->reqtype); in send_nic_timestamp_pkt()
2325 struct octnic_data_pkt ndata; in liquidio_xmit() local
2366 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.c776 struct clk_notifier_data *ndata = data; in cdns_i2c_clk_notifier_cb() local
785 unsigned long input_clk = ndata->new_rate; in cdns_i2c_clk_notifier_cb()
798 if (ndata->new_rate > ndata->old_rate) in cdns_i2c_clk_notifier_cb()
799 cdns_i2c_setclk(ndata->new_rate, id); in cdns_i2c_clk_notifier_cb()
804 id->input_clk = ndata->new_rate; in cdns_i2c_clk_notifier_cb()
806 if (ndata->new_rate < ndata->old_rate) in cdns_i2c_clk_notifier_cb()
807 cdns_i2c_setclk(ndata->new_rate, id); in cdns_i2c_clk_notifier_cb()
811 if (ndata->new_rate > ndata->old_rate) in cdns_i2c_clk_notifier_cb()
812 cdns_i2c_setclk(ndata->old_rate, id); in cdns_i2c_clk_notifier_cb()
Di2c-rk3x.c926 struct clk_notifier_data *ndata = data; in rk3x_i2c_clk_notifier_cb() local
937 if (i2c->soc_data->calc_timings(ndata->new_rate, &i2c->t, in rk3x_i2c_clk_notifier_cb()
942 if (ndata->new_rate > ndata->old_rate) in rk3x_i2c_clk_notifier_cb()
943 rk3x_i2c_adapt_div(i2c, ndata->new_rate); in rk3x_i2c_clk_notifier_cb()
948 if (ndata->new_rate < ndata->old_rate) in rk3x_i2c_clk_notifier_cb()
949 rk3x_i2c_adapt_div(i2c, ndata->new_rate); in rk3x_i2c_clk_notifier_cb()
953 if (ndata->new_rate > ndata->old_rate) in rk3x_i2c_clk_notifier_cb()
954 rk3x_i2c_adapt_div(i2c, ndata->old_rate); in rk3x_i2c_clk_notifier_cb()
Di2c-imx.c522 struct clk_notifier_data *ndata = data; in i2c_imx_clk_notifier_call() local
528 i2c_imx_set_clk(i2c_imx, ndata->new_rate); in i2c_imx_clk_notifier_call()
/drivers/staging/clocking-wizard/
Dclk-xlnx-clock-wizard.c77 struct clk_notifier_data *ndata = data; in clk_wzrd_clk_notifier() local
83 if (ndata->clk == clk_wzrd->clk_in1) in clk_wzrd_clk_notifier()
85 else if (ndata->clk == clk_wzrd->axi_clk) in clk_wzrd_clk_notifier()
92 if (ndata->new_rate > max) in clk_wzrd_clk_notifier()
/drivers/thermal/
Dclock_cooling.c266 struct clk_notifier_data *ndata = data; in clock_cooling_clock_notifier() local
277 if (ndata->new_rate > ccdev->clock_val) in clock_cooling_clock_notifier()
/drivers/pwm/
Dpwm-sifive.c220 struct clk_notifier_data *ndata = data; in pwm_sifive_clock_notifier() local
225 pwm_sifive_update_clock(ddata, ndata->new_rate); in pwm_sifive_clock_notifier()
/drivers/tty/serial/
Dxilinx_uartps.c493 struct clk_notifier_data *ndata = data; in cdns_uart_clk_notifier_cb() local
511 if (!cdns_uart_calc_baud_divs(ndata->new_rate, cdns_uart->baud, in cdns_uart_clk_notifier_cb()
537 port->uartclk = ndata->new_rate; in cdns_uart_clk_notifier_cb()
/drivers/net/wireless/marvell/mwifiex/
Dfw.h1090 __le16 ndata; member
1098 __le16 ndata; member
Dsta_cmd.c54 cmd->params.rssi_info.ndata = cpu_to_le16(priv->data_avg_factor); in mwifiex_cmd_802_11_rssi_info()