Home
last modified time | relevance | path

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

12

/linux/drivers/clk/samsung/
H A Dclk-cpu.c44 typedef int (*exynos_rate_change_fn_t)(struct clk_notifier_data *ndata,
196 static int exynos_cpuclk_pre_rate_change(struct clk_notifier_data *ndata, in exynos_cpuclk_pre_rate_change() argument
207 while ((cfg_data->prate * 1000) != ndata->new_rate) { in exynos_cpuclk_pre_rate_change()
236 if (alt_prate > ndata->old_rate || ndata->old_rate > ndata->new_rate) { in exynos_cpuclk_pre_rate_change()
237 unsigned long tmp_rate = min(ndata->old_rate, ndata->new_rate); in exynos_cpuclk_pre_rate_change()
275 static int exynos_cpuclk_post_rate_change(struct clk_notifier_data *ndata, in exynos_cpuclk_post_rate_change() argument
287 while ((cfg_data->prate * 1000) != ndata->new_rate) { in exynos_cpuclk_post_rate_change()
323 static int exynos5433_cpuclk_pre_rate_change(struct clk_notifier_data *ndata, in exynos5433_cpuclk_pre_rate_change() argument
334 while ((cfg_data->prate * 1000) != ndata->new_rate) { in exynos5433_cpuclk_pre_rate_change()
357 if (alt_prate > ndata->old_rate || ndata->old_rate > ndata->new_rate) { in exynos5433_cpuclk_pre_rate_change()
[all …]
/linux/drivers/interconnect/qcom/
H A Dicc-common.c15 struct icc_node_data *ndata; in qcom_icc_xlate_extended() local
22 ndata = kzalloc(sizeof(*ndata), GFP_KERNEL); in qcom_icc_xlate_extended()
23 if (!ndata) in qcom_icc_xlate_extended()
26 ndata->node = node; in qcom_icc_xlate_extended()
29 ndata->tag = spec->args[1]; in qcom_icc_xlate_extended()
34 return ndata; in qcom_icc_xlate_extended()
/linux/drivers/clk/rockchip/
H A 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 …]
H A Dclk-mmc-phase.c161 struct clk_notifier_data *ndata = data; in rockchip_mmc_clk_rate_notify() local
177 if (ndata->old_rate <= ndata->new_rate) in rockchip_mmc_clk_rate_notify()
/linux/drivers/clocksource/
H A Dtimer-cadence-ttc.c240 struct clk_notifier_data *ndata = data; in ttc_rate_change_clocksource_cb() local
251 if (ndata->new_rate > ndata->old_rate) { in ttc_rate_change_clocksource_cb()
252 factor = DIV_ROUND_CLOSEST(ndata->new_rate, in ttc_rate_change_clocksource_cb()
253 ndata->old_rate); in ttc_rate_change_clocksource_cb()
254 rate_low = ndata->old_rate; in ttc_rate_change_clocksource_cb()
255 rate_high = ndata->new_rate; in ttc_rate_change_clocksource_cb()
257 factor = DIV_ROUND_CLOSEST(ndata->old_rate, in ttc_rate_change_clocksource_cb()
258 ndata->new_rate); in ttc_rate_change_clocksource_cb()
259 rate_low = ndata->new_rate; in ttc_rate_change_clocksource_cb()
260 rate_high = ndata->old_rate; in ttc_rate_change_clocksource_cb()
[all …]
H A 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()
/linux/sound/pci/ice1712/
H A 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()
649 unsigned char data, ndata; in snd_ice1712_ews88mt_output_sense_put() local
656ndata = (data & ~ICE1712_EWS88MT_OUTPUT_SENSE) | (ucontrol->value.enumerated.item[0] ? ICE1712_EWS… in snd_ice1712_ews88mt_output_sense_put()
657 if (ndata != data && snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_PCF2], in snd_ice1712_ews88mt_output_sense_put()
658 &ndata, 1) != 1) { in snd_ice1712_ews88mt_output_sense_put()
663 return ndata != data; in snd_ice1712_ews88mt_output_sense_put()
693 unsigned char data, ndata; in snd_ice1712_ews88mt_input_sense_put() local
[all …]
/linux/fs/ocfs2/dlm/
H A Ddlmrecovery.c230 struct dlm_reco_node_data *ndata; in dlm_print_reco_node_status() local
238 list_for_each_entry(ndata, &dlm->reco.node_data, list) { in dlm_print_reco_node_status()
240 switch (ndata->state) { in dlm_print_reco_node_status()
267 dlm->name, ndata->node_num, st); in dlm_print_reco_node_status()
537 struct dlm_reco_node_data *ndata; in dlm_remaster_locks() local
555 list_for_each_entry(ndata, &dlm->reco.node_data, list) { in dlm_remaster_locks()
556 BUG_ON(ndata->state != DLM_RECO_NODE_DATA_INIT); in dlm_remaster_locks()
557 ndata->state = DLM_RECO_NODE_DATA_REQUESTING; in dlm_remaster_locks()
560 ndata->node_num); in dlm_remaster_locks()
562 if (ndata->node_num == dlm->node_num) { in dlm_remaster_locks()
[all …]
/linux/drivers/net/ethernet/cavium/liquidio/
H A 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()
H A 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 …]
H A Dlio_main.c2235 struct octnic_data_pkt *ndata, in send_nic_timestamp_pkt() argument
2247 sc = octeon_alloc_soft_command_resp(oct, &ndata->cmd, in send_nic_timestamp_pkt()
2256 if (ndata->reqtype == REQTYPE_NORESP_NET) in send_nic_timestamp_pkt()
2257 ndata->reqtype = REQTYPE_RESP_NET; in send_nic_timestamp_pkt()
2258 else if (ndata->reqtype == REQTYPE_NORESP_NET_SG) in send_nic_timestamp_pkt()
2259 ndata->reqtype = REQTYPE_RESP_NET_SG; in send_nic_timestamp_pkt()
2263 sc->iq_no = ndata->q_no; in send_nic_timestamp_pkt()
2275 sc, len, ndata->reqtype); in send_nic_timestamp_pkt()
2301 struct octnic_data_pkt ndata; in liquidio_xmit() local
2342 memset(&ndata, 0, sizeof(struct octnic_data_pkt)); in liquidio_xmit()
[all …]
/linux/sound/soc/sof/
H A Dipc4-control.c658 struct sof_ipc4_notify_module_data *ndata = ipc4_msg->data_ptr; in sof_ipc4_control_update() local
669 if (ndata->event_data_size < sizeof(*msg_data)) { in sof_ipc4_control_update()
672 __func__, ndata->module_id, ndata->instance_id, in sof_ipc4_control_update()
673 ndata->event_data_size); in sof_ipc4_control_update()
677 event_param_id = ndata->event_id & SOF_IPC4_NOTIFY_MODULE_EVENTID_ALSA_PARAMID_MASK; in sof_ipc4_control_update()
688 __func__, ndata->module_id, ndata->instance_id, in sof_ipc4_control_update()
694 swidget = sof_ipc4_find_swidget_by_ids(sdev, ndata->module_id, in sof_ipc4_control_update()
695 ndata->instance_id); in sof_ipc4_control_update()
698 __func__, ndata->module_id, ndata->instance_id); in sof_ipc4_control_update()
703 msg_data = (struct sof_ipc4_control_msg_payload *)ndata->event_data; in sof_ipc4_control_update()
[all …]
/linux/tools/testing/selftests/net/
H A Dreuseport_bpf.c218 uint32_t data, ndata; in test_recv_order() local
236 ndata = htonl(data); in test_recv_order()
237 memcpy(send_buf, &ndata, sizeof(ndata)); in test_recv_order()
238 send_from(p, sport, send_buf, sizeof(ndata)); in test_recv_order()
255 if (i != sizeof(ndata)) in test_recv_order()
257 sizeof(ndata), i); in test_recv_order()
262 memcpy(&ndata, recv_buf, sizeof(ndata)); in test_recv_order()
263 fprintf(stderr, "Socket %d: %d\n", i, ntohl(ndata)); in test_recv_order()
/linux/drivers/memory/tegra/
H A 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()
H A 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()
H A 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()
H A Dtegra20-emc.c953 struct icc_node_data *ndata; in emc_of_icc_xlate_extended() local
961 ndata = kzalloc(sizeof(*ndata), GFP_KERNEL); in emc_of_icc_xlate_extended()
962 if (!ndata) in emc_of_icc_xlate_extended()
969 ndata->tag = TEGRA_MC_ICC_TAG_ISO; in emc_of_icc_xlate_extended()
970 ndata->node = node; in emc_of_icc_xlate_extended()
972 return ndata; in emc_of_icc_xlate_extended()
H A Dtegra124-emc.c1288 struct icc_node_data *ndata; in emc_of_icc_xlate_extended() local
1296 ndata = kzalloc(sizeof(*ndata), GFP_KERNEL); in emc_of_icc_xlate_extended()
1297 if (!ndata) in emc_of_icc_xlate_extended()
1304 ndata->tag = TEGRA_MC_ICC_TAG_ISO; in emc_of_icc_xlate_extended()
1305 ndata->node = node; in emc_of_icc_xlate_extended()
1307 return ndata; in emc_of_icc_xlate_extended()
H A Dtegra30-emc.c1471 struct icc_node_data *ndata; in emc_of_icc_xlate_extended() local
1479 ndata = kzalloc(sizeof(*ndata), GFP_KERNEL); in emc_of_icc_xlate_extended()
1480 if (!ndata) in emc_of_icc_xlate_extended()
1487 ndata->tag = TEGRA_MC_ICC_TAG_ISO; in emc_of_icc_xlate_extended()
1488 ndata->node = node; in emc_of_icc_xlate_extended()
1490 return ndata; in emc_of_icc_xlate_extended()
/linux/net/dsa/
H A Dconduit.c160 uint8_t *ndata; in dsa_conduit_get_strings() local
181 ndata = data + mcount * len; in dsa_conduit_get_strings()
186 ds->ops->get_strings(ds, port, stringset, ndata); in dsa_conduit_get_strings()
191 memmove(ndata + (i * len + sizeof(pfx)), in dsa_conduit_get_strings()
192 ndata + i * len, len - sizeof(pfx)); in dsa_conduit_get_strings()
193 memcpy(ndata + i * len, pfx, sizeof(pfx)); in dsa_conduit_get_strings()
/linux/tools/testing/selftests/kvm/x86_64/
H A Dsev_smoke_test.c102 TEST_ASSERT_EQ(vcpu->run->system_event.ndata, 1); in test_sync_vmsa()
131 TEST_ASSERT_EQ(vcpu->run->system_event.ndata, 1); in test_sev()
H A Dflds_emulation.h34 TEST_ASSERT(run->emulation_failure.ndata >= 3 && in handle_flds_emulation_failure_exit()
/linux/sound/i2c/
H A Dcs8427.c104 unsigned char *ndata, in snd_cs8427_send_corudata() argument
113 if (!memcmp(hw_data, ndata, count)) in snd_cs8427_send_corudata()
118 memcpy(hw_data, ndata, count); in snd_cs8427_send_corudata()
132 data[idx + 1] = bitrev8(ndata[idx]); in snd_cs8427_send_corudata()
/linux/drivers/mtd/spi-nor/
H A Dmacronix.c22 #define MXIC_NOR_WR_CR2(addr, ndata, buf) \ argument
26 SPI_MEM_OP_DATA_OUT(ndata, buf, 0))
/linux/arch/mips/boot/
H A 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()

12