Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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.c141 struct clk_notifier_data *ndata = data; in rockchip_clk_frac_notifier_cb() local
147 __func__, event, ndata->old_rate, ndata->new_rate); in rockchip_clk_frac_notifier_cb()
/kernel/linux/linux-5.10/drivers/clocksource/
Dtimer-cadence-ttc.c229 struct clk_notifier_data *ndata = data; in ttc_rate_change_clocksource_cb() local
240 if (ndata->new_rate > ndata->old_rate) { in ttc_rate_change_clocksource_cb()
241 factor = DIV_ROUND_CLOSEST(ndata->new_rate, in ttc_rate_change_clocksource_cb()
242 ndata->old_rate); in ttc_rate_change_clocksource_cb()
243 rate_low = ndata->old_rate; in ttc_rate_change_clocksource_cb()
244 rate_high = ndata->new_rate; in ttc_rate_change_clocksource_cb()
246 factor = DIV_ROUND_CLOSEST(ndata->old_rate, in ttc_rate_change_clocksource_cb()
247 ndata->new_rate); in ttc_rate_change_clocksource_cb()
248 rate_low = ndata->new_rate; in ttc_rate_change_clocksource_cb()
249 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()
/kernel/linux/linux-5.10/sound/pci/ice1712/
Dews.c135 unsigned char data, ndata; in snd_ice1712_ews88mt_chip_select() local
142 ndata = (data & 0xf0) | chip_mask; in snd_ice1712_ews88mt_chip_select()
143 if (ndata != data) in snd_ice1712_ews88mt_chip_select()
144 if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_PCF2], &ndata, 1) in snd_ice1712_ews88mt_chip_select()
645 unsigned char data, ndata; in snd_ice1712_ews88mt_output_sense_put() local
652ndata = (data & ~ICE1712_EWS88MT_OUTPUT_SENSE) | (ucontrol->value.enumerated.item[0] ? ICE1712_EWS… in snd_ice1712_ews88mt_output_sense_put()
653 if (ndata != data && snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_PCF2], in snd_ice1712_ews88mt_output_sense_put()
654 &ndata, 1) != 1) { in snd_ice1712_ews88mt_output_sense_put()
659 return ndata != data; in snd_ice1712_ews88mt_output_sense_put()
689 unsigned char data, ndata; in snd_ice1712_ews88mt_input_sense_put() local
[all …]
/kernel/linux/linux-5.10/drivers/interconnect/qcom/
Dicc-rpmh.c104 struct icc_node_data *ndata; in qcom_icc_xlate_extended() local
111 ndata = kzalloc(sizeof(*ndata), GFP_KERNEL); in qcom_icc_xlate_extended()
112 if (!ndata) in qcom_icc_xlate_extended()
115 ndata->node = node; in qcom_icc_xlate_extended()
118 ndata->tag = spec->args[1]; in qcom_icc_xlate_extended()
123 return ndata; in qcom_icc_xlate_extended()
/kernel/linux/linux-5.10/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.c1360 struct octnic_data_pkt *ndata, in send_nic_timestamp_pkt() argument
1372 sc = octeon_alloc_soft_command_resp(oct, &ndata->cmd, in send_nic_timestamp_pkt()
1381 if (ndata->reqtype == REQTYPE_NORESP_NET) in send_nic_timestamp_pkt()
1382 ndata->reqtype = REQTYPE_RESP_NET; in send_nic_timestamp_pkt()
1383 else if (ndata->reqtype == REQTYPE_NORESP_NET_SG) in send_nic_timestamp_pkt()
1384 ndata->reqtype = REQTYPE_RESP_NET_SG; in send_nic_timestamp_pkt()
1388 sc->iq_no = ndata->q_no; in send_nic_timestamp_pkt()
1395 sc, len, ndata->reqtype); in send_nic_timestamp_pkt()
1419 struct octnic_data_pkt ndata; in liquidio_xmit() local
1460 memset(&ndata, 0, sizeof(struct octnic_data_pkt)); in liquidio_xmit()
[all …]
Dlio_main.c2233 struct octnic_data_pkt *ndata, in send_nic_timestamp_pkt() argument
2245 sc = octeon_alloc_soft_command_resp(oct, &ndata->cmd, in send_nic_timestamp_pkt()
2254 if (ndata->reqtype == REQTYPE_NORESP_NET) in send_nic_timestamp_pkt()
2255 ndata->reqtype = REQTYPE_RESP_NET; in send_nic_timestamp_pkt()
2256 else if (ndata->reqtype == REQTYPE_NORESP_NET_SG) in send_nic_timestamp_pkt()
2257 ndata->reqtype = REQTYPE_RESP_NET_SG; in send_nic_timestamp_pkt()
2261 sc->iq_no = ndata->q_no; in send_nic_timestamp_pkt()
2273 sc, len, ndata->reqtype); in send_nic_timestamp_pkt()
2299 struct octnic_data_pkt ndata; in liquidio_xmit() local
2340 memset(&ndata, 0, sizeof(struct octnic_data_pkt)); in liquidio_xmit()
[all …]
Docteon_nic.h275 struct octnic_data_pkt *ndata,
/kernel/linux/linux-5.10/fs/ocfs2/dlm/
Ddlmrecovery.c239 struct dlm_reco_node_data *ndata; in dlm_print_reco_node_status() local
247 list_for_each_entry(ndata, &dlm->reco.node_data, list) { in dlm_print_reco_node_status()
249 switch (ndata->state) { in dlm_print_reco_node_status()
276 dlm->name, ndata->node_num, st); in dlm_print_reco_node_status()
546 struct dlm_reco_node_data *ndata; in dlm_remaster_locks() local
564 list_for_each_entry(ndata, &dlm->reco.node_data, list) { in dlm_remaster_locks()
565 BUG_ON(ndata->state != DLM_RECO_NODE_DATA_INIT); in dlm_remaster_locks()
566 ndata->state = DLM_RECO_NODE_DATA_REQUESTING; in dlm_remaster_locks()
569 ndata->node_num); in dlm_remaster_locks()
571 if (ndata->node_num == dlm->node_num) { in dlm_remaster_locks()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/net/
Dreuseport_bpf.c220 uint32_t data, ndata; in test_recv_order() local
238 ndata = htonl(data); in test_recv_order()
239 memcpy(send_buf, &ndata, sizeof(ndata)); in test_recv_order()
240 send_from(p, sport, send_buf, sizeof(ndata)); in test_recv_order()
257 if (i != sizeof(ndata)) in test_recv_order()
259 sizeof(ndata), i); in test_recv_order()
264 memcpy(&ndata, recv_buf, sizeof(ndata)); in test_recv_order()
265 fprintf(stderr, "Socket %d: %d\n", i, ntohl(ndata)); in test_recv_order()
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-cadence.c1071 struct clk_notifier_data *ndata = data; in cdns_i2c_clk_notifier_cb() local
1080 unsigned long input_clk = ndata->new_rate; in cdns_i2c_clk_notifier_cb()
1093 if (ndata->new_rate > ndata->old_rate) in cdns_i2c_clk_notifier_cb()
1094 cdns_i2c_setclk(ndata->new_rate, id); in cdns_i2c_clk_notifier_cb()
1099 id->input_clk = ndata->new_rate; in cdns_i2c_clk_notifier_cb()
1101 if (ndata->new_rate < ndata->old_rate) in cdns_i2c_clk_notifier_cb()
1102 cdns_i2c_setclk(ndata->new_rate, id); in cdns_i2c_clk_notifier_cb()
1106 if (ndata->new_rate > ndata->old_rate) in cdns_i2c_clk_notifier_cb()
1107 cdns_i2c_setclk(ndata->old_rate, id); in cdns_i2c_clk_notifier_cb()
Di2c-rk3x.c927 struct clk_notifier_data *ndata = data; in rk3x_i2c_clk_notifier_cb() local
938 if (i2c->soc_data->calc_timings(ndata->new_rate, &i2c->t, in rk3x_i2c_clk_notifier_cb()
943 if (ndata->new_rate > ndata->old_rate) in rk3x_i2c_clk_notifier_cb()
944 rk3x_i2c_adapt_div(i2c, ndata->new_rate); in rk3x_i2c_clk_notifier_cb()
949 if (ndata->new_rate < ndata->old_rate) in rk3x_i2c_clk_notifier_cb()
950 rk3x_i2c_adapt_div(i2c, ndata->new_rate); in rk3x_i2c_clk_notifier_cb()
954 if (ndata->new_rate > ndata->old_rate) in rk3x_i2c_clk_notifier_cb()
955 rk3x_i2c_adapt_div(i2c, ndata->old_rate); in rk3x_i2c_clk_notifier_cb()
Di2c-imx.c564 struct clk_notifier_data *ndata = data; in i2c_imx_clk_notifier_call() local
570 i2c_imx_set_clk(i2c_imx, ndata->new_rate); in i2c_imx_clk_notifier_call()
/kernel/linux/linux-5.10/net/dsa/
Dmaster.c152 uint8_t *ndata; in dsa_master_get_strings() local
173 ndata = data + mcount * len; in dsa_master_get_strings()
178 ds->ops->get_strings(ds, port, stringset, ndata); in dsa_master_get_strings()
183 memmove(ndata + (i * len + sizeof(pfx)), in dsa_master_get_strings()
184 ndata + i * len, len - sizeof(pfx)); in dsa_master_get_strings()
185 memcpy(ndata + i * len, pfx, sizeof(pfx)); in dsa_master_get_strings()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/sound/i2c/
Dcs8427.c100 unsigned char *ndata, in snd_cs8427_send_corudata() argument
109 if (!memcmp(hw_data, ndata, count)) in snd_cs8427_send_corudata()
113 memcpy(hw_data, ndata, count); in snd_cs8427_send_corudata()
127 data[idx + 1] = bitrev8(ndata[idx]); in snd_cs8427_send_corudata()
/kernel/liteos_a/net/lwip-2.1/enhancement/src/
Dapi_shell.c3043 struct netstat_data *ndata = (struct netstat_data *)ctx; local
3053 if (ndata == NULL) {
3056 entry_buf = ndata->netstat_out_buf;
3057 entry_buf_len = ndata->netstat_out_buf_len;
3324 ndata->netstat_out_buf_updated_len = entry_buf_offset;
3325 sys_sem_signal(&ndata->cb_completed);
3331 struct netstat_data ndata; local
3344 ndata.netstat_out_buf = mem_malloc(MAX_NETSTAT_ENTRY);
3345 if (ndata.netstat_out_buf == NULL) {
3349 ndata.netstat_out_buf_len = MAX_NETSTAT_ENTRY;
[all …]
/kernel/linux/linux-5.10/arch/mips/boot/
Delf2ecoff.c362 struct sect ndata, nbss; in main() local
364 ndata.vaddr = ph[i].p_vaddr; in main()
365 ndata.len = ph[i].p_filesz; in main()
369 combine(&data, &ndata, 0); in main()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/tty/serial/
Dxilinx_uartps.c499 struct clk_notifier_data *ndata = data; in cdns_uart_clk_notifier_cb() local
517 if (!cdns_uart_calc_baud_divs(ndata->new_rate, cdns_uart->baud, in cdns_uart_clk_notifier_cb()
543 port->uartclk = ndata->new_rate; in cdns_uart_clk_notifier_cb()
/kernel/linux/linux-5.10/fs/gfs2/
Drgrp.c2350 unsigned int ndata; in gfs2_alloc_blocks() local
2376 ndata = *nblocks; in gfs2_alloc_blocks()
2378 ndata--; in gfs2_alloc_blocks()
2381 ip->i_goal = block + ndata - 1; in gfs2_alloc_blocks()

12