Home
last modified time | relevance | path

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

12

/linux/drivers/spi/
H A Dspi-mt65xx.c270 static void mtk_spi_reset(struct mtk_spi *mdata) in mtk_spi_reset() argument
275 reg_val = readl(mdata->base + SPI_CMD_REG); in mtk_spi_reset()
277 writel(reg_val, mdata->base + SPI_CMD_REG); in mtk_spi_reset()
279 reg_val = readl(mdata->base + SPI_CMD_REG); in mtk_spi_reset()
281 writel(reg_val, mdata->base + SPI_CMD_REG); in mtk_spi_reset()
286 struct mtk_spi *mdata = spi_controller_get_devdata(spi->controller); in mtk_spi_set_hw_cs_timing() local
297 setup = (delay * DIV_ROUND_UP(mdata->spi_clk_hz, 1000000)) / 1000; in mtk_spi_set_hw_cs_timing()
302 hold = (delay * DIV_ROUND_UP(mdata->spi_clk_hz, 1000000)) / 1000; in mtk_spi_set_hw_cs_timing()
307 inactive = (delay * DIV_ROUND_UP(mdata->spi_clk_hz, 1000000)) / 1000; in mtk_spi_set_hw_cs_timing()
310 reg_val = readl(mdata->base + SPI_CFG0_REG); in mtk_spi_set_hw_cs_timing()
[all …]
H A Dspi-slave-mt27xx.c98 static void mtk_spi_slave_disable_dma(struct mtk_spi_slave *mdata) in mtk_spi_slave_disable_dma() argument
102 reg_val = readl(mdata->base + SPIS_DMA_CFG_REG); in mtk_spi_slave_disable_dma()
105 writel(reg_val, mdata->base + SPIS_DMA_CFG_REG); in mtk_spi_slave_disable_dma()
108 static void mtk_spi_slave_disable_xfer(struct mtk_spi_slave *mdata) in mtk_spi_slave_disable_xfer() argument
112 reg_val = readl(mdata->base + SPIS_CFG_REG); in mtk_spi_slave_disable_xfer()
115 writel(reg_val, mdata->base + SPIS_CFG_REG); in mtk_spi_slave_disable_xfer()
118 static int mtk_spi_slave_wait_for_completion(struct mtk_spi_slave *mdata) in mtk_spi_slave_wait_for_completion() argument
120 if (wait_for_completion_interruptible(&mdata->xfer_done) || in mtk_spi_slave_wait_for_completion()
121 mdata->target_aborted) { in mtk_spi_slave_wait_for_completion()
122 dev_err(mdata->dev, "interrupted\n"); in mtk_spi_slave_wait_for_completion()
[all …]
/linux/sound/soc/fsl/
H A Dp1022_ds.c85 struct machine_data *mdata = in p1022_ds_machine_probe() local
104 guts_set_dmuxcr(guts, mdata->dma_id[0], mdata->dma_channel_id[0], in p1022_ds_machine_probe()
107 guts_set_dmuxcr(guts, mdata->dma_id[1], mdata->dma_channel_id[1], in p1022_ds_machine_probe()
125 struct machine_data *mdata = in p1022_ds_startup() local
131 ret = snd_soc_dai_set_fmt(snd_soc_rtd_to_codec(rtd, 0), mdata->dai_format); in p1022_ds_startup()
141 ret = snd_soc_dai_set_sysclk(snd_soc_rtd_to_codec(rtd, 0), 0, mdata->clk_frequency, in p1022_ds_startup()
142 mdata->codec_clk_direction); in p1022_ds_startup()
159 struct machine_data *mdata = in p1022_ds_machine_remove() local
172 guts_set_dmuxcr(guts, mdata->dma_id[0], mdata->dma_channel_id[0], 0); in p1022_ds_machine_remove()
173 guts_set_dmuxcr(guts, mdata->dma_id[1], mdata->dma_channel_id[1], 0); in p1022_ds_machine_remove()
[all …]
H A Dp1022_rdk.c94 struct machine_data *mdata = in p1022_rdk_machine_probe() local
113 guts_set_dmuxcr(guts, mdata->dma_id[0], mdata->dma_channel_id[0], in p1022_rdk_machine_probe()
116 guts_set_dmuxcr(guts, mdata->dma_id[1], mdata->dma_channel_id[1], in p1022_rdk_machine_probe()
137 struct machine_data *mdata = in p1022_rdk_startup() local
143 ret = snd_soc_dai_set_fmt(snd_soc_rtd_to_codec(rtd, 0), mdata->dai_format); in p1022_rdk_startup()
150 ret = snd_soc_dai_set_pll(snd_soc_rtd_to_codec(rtd, 0), 0, 0, mdata->clk_frequency, in p1022_rdk_startup()
151 mdata->clk_frequency); in p1022_rdk_startup()
172 struct machine_data *mdata = in p1022_rdk_machine_remove() local
185 guts_set_dmuxcr(guts, mdata->dma_id[0], mdata->dma_channel_id[0], 0); in p1022_rdk_machine_remove()
186 guts_set_dmuxcr(guts, mdata->dma_id[1], mdata->dma_channel_id[1], 0); in p1022_rdk_machine_remove()
[all …]
/linux/tools/testing/cxl/test/
H A Dmem.c168 struct cxl_mockmem_data *mdata = dev_get_drvdata(dev); in event_find_log() local
172 return &mdata->mes.mock_logs[log_type]; in event_find_log()
338 struct cxl_mockmem_data *mdata = dev_get_drvdata(dev); in cxl_mock_event_trigger() local
339 struct mock_event_store *mes = &mdata->mes; in cxl_mock_event_trigger()
350 cxl_mem_get_event_records(mdata->mds, mes->ev_status); in cxl_mock_event_trigger()
466 struct cxl_mockmem_data *mdata = dev_get_drvdata(cxlds->dev); in mock_set_timestamp() local
475 mdata->timestamp = le64_to_cpu(ts->timestamp); in mock_set_timestamp()
633 static int mock_sanitize(struct cxl_mockmem_data *mdata, in mock_sanitize() argument
636 struct cxl_memdev_state *mds = mdata->mds; in mock_sanitize()
646 if (mdata->security_state & CXL_PMEM_SEC_STATE_USER_PASS_SET) { in mock_sanitize()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
H A Dbond.c53 mlx5e_lookup_rep_bond_slave_entry(struct mlx5e_rep_bond_metadata *mdata, in mlx5e_lookup_rep_bond_slave_entry() argument
59 list_for_each_entry(cur, &mdata->slaves_list, list) { in mlx5e_lookup_rep_bond_slave_entry()
69 static void mlx5e_rep_bond_metadata_release(struct mlx5e_rep_bond_metadata *mdata) in mlx5e_rep_bond_metadata_release() argument
71 netdev_dbg(mdata->lag_dev, "destroy rep_bond_metadata(%d)\n", in mlx5e_rep_bond_metadata_release()
72 mdata->metadata_reg_c_0); in mlx5e_rep_bond_metadata_release()
73 list_del(&mdata->list); in mlx5e_rep_bond_metadata_release()
74 mlx5_esw_match_metadata_free(mdata->esw, mdata->metadata_reg_c_0); in mlx5e_rep_bond_metadata_release()
75 WARN_ON(!list_empty(&mdata->slaves_list)); in mlx5e_rep_bond_metadata_release()
76 kfree(mdata); in mlx5e_rep_bond_metadata_release()
84 struct mlx5e_rep_bond_metadata *mdata; in mlx5e_rep_bond_enslave() local
[all …]
/linux/drivers/iio/magnetometer/
H A Dst_magn_core.c61 struct st_sensor_data *mdata = iio_priv(indio_dev); in st_magn_get_mount_matrix() local
63 return &mdata->mount_matrix; in st_magn_get_mount_matrix()
514 struct st_sensor_data *mdata = iio_priv(indio_dev); in st_magn_read_raw() local
526 (mdata->current_fullscale->gain2 != 0)) in st_magn_read_raw()
527 *val2 = mdata->current_fullscale->gain2; in st_magn_read_raw()
529 *val2 = mdata->current_fullscale->gain; in st_magn_read_raw()
532 *val = mdata->odr; in st_magn_read_raw()
608 struct st_sensor_data *mdata = iio_priv(indio_dev); in st_magn_common_probe() local
620 mdata->num_data_channels = ST_MAGN_NUMBER_DATA_CHANNELS; in st_magn_common_probe()
621 indio_dev->channels = mdata->sensor_settings->ch; in st_magn_common_probe()
[all …]
H A Dst_magn_spi.c59 struct st_sensor_data *mdata; in st_magn_spi_probe() local
72 indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*mdata)); in st_magn_spi_probe()
76 mdata = iio_priv(indio_dev); in st_magn_spi_probe()
77 mdata->sensor_settings = (struct st_sensor_settings *)settings; in st_magn_spi_probe()
H A Dst_magn_i2c.c64 struct st_sensor_data *mdata; in st_magn_i2c_probe() local
77 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*mdata)); in st_magn_i2c_probe()
81 mdata = iio_priv(indio_dev); in st_magn_i2c_probe()
82 mdata->sensor_settings = (struct st_sensor_settings *)settings; in st_magn_i2c_probe()
/linux/drivers/infiniband/hw/hfi1/
H A Ddriver.c501 static inline void init_ps_mdata(struct ps_mdata *mdata, in init_ps_mdata() argument
506 mdata->rcd = rcd; in init_ps_mdata()
507 mdata->rsize = packet->rsize; in init_ps_mdata()
508 mdata->maxcnt = packet->maxcnt; in init_ps_mdata()
509 mdata->ps_head = packet->rhqoff; in init_ps_mdata()
512 mdata->ps_tail = get_rcvhdrtail(rcd); in init_ps_mdata()
514 mdata->ps_seq = hfi1_seq_cnt(rcd); in init_ps_mdata()
516 mdata->ps_seq = 0; /* not used with DMA_RTAIL */ in init_ps_mdata()
518 mdata->ps_tail = 0; /* used only with DMA_RTAIL*/ in init_ps_mdata()
519 mdata->ps_seq = hfi1_seq_cnt(rcd); in init_ps_mdata()
[all …]
H A Dvnic_main.c220 struct opa_vnic_skb_mdata *mdata; in hfi1_netdev_start_xmit() local
232 mdata = (struct opa_vnic_skb_mdata *)skb->data; in hfi1_netdev_start_xmit()
233 skb_pull(skb, sizeof(*mdata)); in hfi1_netdev_start_xmit()
234 if (unlikely(mdata->flags & OPA_VNIC_SKB_MDATA_ENCAP_ERR)) { in hfi1_netdev_start_xmit()
251 pbc = create_bypass_pbc(mdata->vl, total_len); in hfi1_netdev_start_xmit()
283 struct opa_vnic_skb_mdata *mdata; in hfi1_vnic_select_queue() local
286 mdata = (struct opa_vnic_skb_mdata *)skb->data; in hfi1_vnic_select_queue()
287 sde = sdma_select_engine_vl(vinfo->dd, mdata->entropy, mdata->vl); in hfi1_vnic_select_queue()
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dutils.c1004 struct iwl_mvm_tcm_mac *mdata = &mvm->tcm.data[mac]; in iwl_mvm_calc_tcm_stats() local
1006 u32 airtime = mdata->rx.airtime + mdata->tx.airtime; in iwl_mvm_calc_tcm_stats()
1017 vo_vi_pkts += mdata->rx.pkts[ac] + in iwl_mvm_calc_tcm_stats()
1018 mdata->tx.pkts[ac]; in iwl_mvm_calc_tcm_stats()
1028 memset(&mdata->rx.pkts, 0, sizeof(mdata->rx.pkts)); in iwl_mvm_calc_tcm_stats()
1029 memset(&mdata->tx.pkts, 0, sizeof(mdata->tx.pkts)); in iwl_mvm_calc_tcm_stats()
1038 mdata->uapsd_nonagg_detect.rx_bytes = 0; in iwl_mvm_calc_tcm_stats()
1039 memset(&mdata->rx.airtime, 0, sizeof(mdata->rx.airtime)); in iwl_mvm_calc_tcm_stats()
1040 memset(&mdata->tx.airtime, 0, sizeof(mdata->tx.airtime)); in iwl_mvm_calc_tcm_stats()
1145 struct iwl_mvm_tcm_mac *mdata = &mvm->tcm.data[mac]; in iwl_mvm_resume_tcm() local
[all …]
H A Drx.c206 struct iwl_mvm_tcm_mac *mdata; in iwl_mvm_rx_handle_tcm() local
228 mdata = &mvm->tcm.data[mac]; in iwl_mvm_rx_handle_tcm()
229 mdata->rx.pkts[ac]++; in iwl_mvm_rx_handle_tcm()
232 if (mdata->rx.last_ampdu_ref != mvm->ampdu_ref) { in iwl_mvm_rx_handle_tcm()
233 mdata->rx.last_ampdu_ref = mvm->ampdu_ref; in iwl_mvm_rx_handle_tcm()
234 mdata->rx.airtime += le16_to_cpu(phy_info->frame_time); in iwl_mvm_rx_handle_tcm()
242 if (mdata->opened_rx_ba_sessions || in iwl_mvm_rx_handle_tcm()
243 mdata->uapsd_nonagg_detect.detected || in iwl_mvm_rx_handle_tcm()
266 mdata->uapsd_nonagg_detect.rx_bytes += len; in iwl_mvm_rx_handle_tcm()
267 ewma_rate_add(&mdata->uapsd_nonagg_detect.rate, thr); in iwl_mvm_rx_handle_tcm()
[all …]
/linux/fs/jffs2/
H A Dfs.c39 unsigned char *mdata = NULL; in jffs2_do_setattr() local
56 mdata = (char *)&dev; in jffs2_do_setattr()
62 mdata = kmalloc(f->metadata->size, GFP_USER); in jffs2_do_setattr()
63 if (!mdata) { in jffs2_do_setattr()
67 ret = jffs2_read_dnode(c, f, f->metadata, mdata, 0, mdatalen); in jffs2_do_setattr()
70 kfree(mdata); in jffs2_do_setattr()
81 kfree(mdata); in jffs2_do_setattr()
90 kfree(mdata); in jffs2_do_setattr()
135 ri->data_crc = cpu_to_je32(crc32(0, mdata, mdatalen)); in jffs2_do_setattr()
139 new_metadata = jffs2_write_dnode(c, f, ri, mdata, mdatalen, alloc_type); in jffs2_do_setattr()
[all …]
H A Dgc.c765 char *mdata = NULL; in jffs2_garbage_collect_metadata() local
774 mdata = (char *)&dev; in jffs2_garbage_collect_metadata()
779 mdata = kmalloc(fn->size, GFP_KERNEL); in jffs2_garbage_collect_metadata()
780 if (!mdata) { in jffs2_garbage_collect_metadata()
784 ret = jffs2_read_dnode(c, f, fn, mdata, 0, mdatalen); in jffs2_garbage_collect_metadata()
788 kfree(mdata); in jffs2_garbage_collect_metadata()
832 ri.data_crc = cpu_to_je32(crc32(0, mdata, mdatalen)); in jffs2_garbage_collect_metadata()
834 new_fn = jffs2_write_dnode(c, f, &ri, mdata, mdatalen, ALLOC_GC); in jffs2_garbage_collect_metadata()
846 kfree(mdata); in jffs2_garbage_collect_metadata()
/linux/drivers/infiniband/ulp/opa_vnic/
H A Dopa_vnic_netdev.c100 struct opa_vnic_skb_mdata *mdata; in opa_vnic_select_queue() local
104 mdata = skb_push(skb, sizeof(*mdata)); in opa_vnic_select_queue()
105 mdata->entropy = opa_vnic_calc_entropy(skb); in opa_vnic_select_queue()
106 mdata->vl = opa_vnic_get_vl(adapter, skb); in opa_vnic_select_queue()
108 skb_pull(skb, sizeof(*mdata)); in opa_vnic_select_queue()
H A Dopa_vnic_encap.c486 struct opa_vnic_skb_mdata *mdata; in opa_vnic_encap_skb() local
501 mdata = skb_push(skb, sizeof(*mdata)); in opa_vnic_encap_skb()
502 mdata->vl = opa_vnic_get_vl(adapter, skb); in opa_vnic_encap_skb()
503 mdata->entropy = entropy; in opa_vnic_encap_skb()
504 mdata->flags = 0; in opa_vnic_encap_skb()
506 mdata->flags = OPA_VNIC_SKB_MDATA_ENCAP_ERR; in opa_vnic_encap_skb()
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_npc_hash.c594 u64 mdata = FIELD_PREP(GENMASK_ULL(63, 63), enable ? 1 : 0); in rvu_exact_prepare_table_entry() local
597 mdata |= FIELD_PREP(GENMASK_ULL(61, 60), ctype); in rvu_exact_prepare_table_entry()
600 mdata |= FIELD_PREP(GENMASK_ULL(59, 48), chan); in rvu_exact_prepare_table_entry()
603 mdata |= FIELD_PREP(GENMASK_ULL(47, 0), ldata); in rvu_exact_prepare_table_entry()
605 return mdata; in rvu_exact_prepare_table_entry()
873 u32 index, u64 mdata) in rvu_npc_exact_mem_table_write() argument
875 rvu_write64(rvu, blkaddr, NPC_AF_EXACT_MEM_ENTRY(ways, index), mdata); in rvu_npc_exact_mem_table_write()
886 u32 index, u64 mdata) in rvu_npc_exact_cam_table_write() argument
888 rvu_write64(rvu, blkaddr, NPC_AF_EXACT_CAM_ENTRY(index), mdata); in rvu_npc_exact_cam_table_write()
1325 u64 mdata; in rvu_npc_exact_add_table_entry() local
[all …]
/linux/drivers/scsi/
H A Dips.c4078 IPS_SCSI_MODE_PAGE_DATA mdata; in ips_msense() local
4095 memset(&mdata, 0, sizeof (IPS_SCSI_MODE_PAGE_DATA)); in ips_msense()
4097 mdata.hdr.BlockDescLength = 8; in ips_msense()
4101 mdata.pdata.pg3.PageCode = 3; in ips_msense()
4102 mdata.pdata.pg3.PageLength = sizeof (IPS_SCSI_MODE_PAGE3); in ips_msense()
4103 mdata.hdr.DataLength = in ips_msense()
4104 3 + mdata.hdr.BlockDescLength + mdata.pdata.pg3.PageLength; in ips_msense()
4105 mdata.pdata.pg3.TracksPerZone = 0; in ips_msense()
4106 mdata.pdata.pg3.AltSectorsPerZone = 0; in ips_msense()
4107 mdata.pdata.pg3.AltTracksPerZone = 0; in ips_msense()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Dinit.c1506 u16 mdata = bmp_mem_init_table(init->subdev->device->bios); in init_configure_mem_clk() local
1507 if (mdata) in init_configure_mem_clk()
1508 mdata += (init_rdvgai(init, 0x03d4, 0x3c) >> 4) * 66; in init_configure_mem_clk()
1509 return mdata; in init_configure_mem_clk()
1516 u16 mdata, sdata; in init_configure_mem() local
1528 mdata = init_configure_mem_clk(init); in init_configure_mem()
1530 if (nvbios_rd08(bios, mdata) & 0x01) in init_configure_mem()
1532 mdata += 6; /* skip to data */ in init_configure_mem()
1545 data = nvbios_rd32(bios, mdata); in init_configure_mem()
1546 mdata += 4; in init_configure_mem()
[all …]
/linux/drivers/bus/
H A Dti-sysc.c144 struct ti_sysc_module_data *mdata; member
2135 error = pdata->init_module(ddata->dev, ddata->mdata, &ddata->cookie); in sysc_legacy_init()
2871 struct ti_sysc_module_data *mdata; in sysc_init_pdata() local
2876 mdata = devm_kzalloc(ddata->dev, sizeof(*mdata), GFP_KERNEL); in sysc_init_pdata()
2877 if (!mdata) in sysc_init_pdata()
2881 mdata->name = ddata->legacy_mode; in sysc_init_pdata()
2882 mdata->module_pa = ddata->module_pa; in sysc_init_pdata()
2883 mdata->module_size = ddata->module_size; in sysc_init_pdata()
2884 mdata->offsets = ddata->offsets; in sysc_init_pdata()
2885 mdata->nr_offsets = SYSC_MAX_REGS; in sysc_init_pdata()
[all …]
/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dconntrack.c821 u8 *key, *msk, *kdata, *mdata; in nfp_fl_ct_add_offload() local
869 mdata = flow_pay->mask_data; in nfp_fl_ct_add_offload()
873 msk = mdata + offset; in nfp_fl_ct_add_offload()
881 msk = mdata + offset; in nfp_fl_ct_add_offload()
894 msk = mdata + offset; in nfp_fl_ct_add_offload()
917 msk = mdata + offset; in nfp_fl_ct_add_offload()
927 msk = mdata + offset; in nfp_fl_ct_add_offload()
943 msk = mdata + offset; in nfp_fl_ct_add_offload()
954 msk = mdata + offset; in nfp_fl_ct_add_offload()
965 msk = mdata + offset; in nfp_fl_ct_add_offload()
[all …]
/linux/drivers/media/i2c/ccs/
H A Dccs-reg-access.c158 return __ccs_static_data_read_ro_reg(sensor->mdata.module_read_only_regs, in ccs_static_data_read_ro_reg()
159 sensor->mdata.num_module_read_only_regs, in ccs_static_data_read_ro_reg()
/linux/drivers/media/usb/gspca/
H A Dvc032x.c2967 u8 ldata, mdata, hdata; in read_sensor_register() local
2988 mdata = gspca_dev->usb_buf[0]; in read_sensor_register()
2991 if (hdata != 0 && mdata != 0 && ldata != 0) in read_sensor_register()
2993 hdata, mdata, ldata); in read_sensor_register()
2996 return (hdata << 8) + mdata; in read_sensor_register()
/linux/sound/soc/sunxi/
H A Dsun8i-codec.c1355 unsigned int mdata; in sun8i_codec_jack_work() local
1410 regmap_read(scodec->regmap, SUN8I_HMIC_STS, &mdata); in sun8i_codec_jack_work()
1411 mdata &= SUN8I_HMIC_STS_HMIC_DATA_MASK; in sun8i_codec_jack_work()
1412 mdata >>= SUN8I_HMIC_STS_HMIC_DATA; in sun8i_codec_jack_work()
1416 type = mdata < 16 ? SND_JACK_HEADPHONE : SND_JACK_HEADSET; in sun8i_codec_jack_work()

12