Home
last modified time | relevance | path

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

123

/linux-6.1.9/drivers/spi/
Dspi-mt65xx.c269 static void mtk_spi_reset(struct mtk_spi *mdata) in mtk_spi_reset() argument
274 reg_val = readl(mdata->base + SPI_CMD_REG); in mtk_spi_reset()
276 writel(reg_val, mdata->base + SPI_CMD_REG); in mtk_spi_reset()
278 reg_val = readl(mdata->base + SPI_CMD_REG); in mtk_spi_reset()
280 writel(reg_val, mdata->base + SPI_CMD_REG); in mtk_spi_reset()
285 struct mtk_spi *mdata = spi_master_get_devdata(spi->master); in mtk_spi_set_hw_cs_timing() local
296 setup = (delay * DIV_ROUND_UP(mdata->spi_clk_hz, 1000000)) / 1000; in mtk_spi_set_hw_cs_timing()
301 hold = (delay * DIV_ROUND_UP(mdata->spi_clk_hz, 1000000)) / 1000; in mtk_spi_set_hw_cs_timing()
306 inactive = (delay * DIV_ROUND_UP(mdata->spi_clk_hz, 1000000)) / 1000; in mtk_spi_set_hw_cs_timing()
309 reg_val = readl(mdata->base + SPI_CFG0_REG); in mtk_spi_set_hw_cs_timing()
[all …]
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->slave_aborted) { in mtk_spi_slave_wait_for_completion()
122 dev_err(mdata->dev, "interrupted\n"); in mtk_spi_slave_wait_for_completion()
[all …]
/linux-6.1.9/sound/soc/fsl/
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(asoc_rtd_to_codec(rtd, 0), mdata->dai_format); in p1022_ds_startup()
141 ret = snd_soc_dai_set_sysclk(asoc_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 …]
Dp1022_rdk.c91 struct machine_data *mdata = in p1022_rdk_machine_probe() local
110 guts_set_dmuxcr(guts, mdata->dma_id[0], mdata->dma_channel_id[0], in p1022_rdk_machine_probe()
113 guts_set_dmuxcr(guts, mdata->dma_id[1], mdata->dma_channel_id[1], in p1022_rdk_machine_probe()
131 struct machine_data *mdata = in p1022_rdk_startup() local
137 ret = snd_soc_dai_set_fmt(asoc_rtd_to_codec(rtd, 0), mdata->dai_format); in p1022_rdk_startup()
144 ret = snd_soc_dai_set_pll(asoc_rtd_to_codec(rtd, 0), 0, 0, mdata->clk_frequency, in p1022_rdk_startup()
145 mdata->clk_frequency); in p1022_rdk_startup()
163 struct machine_data *mdata = in p1022_rdk_machine_remove() local
176 guts_set_dmuxcr(guts, mdata->dma_id[0], mdata->dma_channel_id[0], 0); in p1022_rdk_machine_remove()
177 guts_set_dmuxcr(guts, mdata->dma_id[1], mdata->dma_channel_id[1], 0); in p1022_rdk_machine_remove()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
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-6.1.9/drivers/iio/magnetometer/
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()
512 struct st_sensor_data *mdata = iio_priv(indio_dev); in st_magn_read_raw() local
524 (mdata->current_fullscale->gain2 != 0)) in st_magn_read_raw()
525 *val2 = mdata->current_fullscale->gain2; in st_magn_read_raw()
527 *val2 = mdata->current_fullscale->gain; in st_magn_read_raw()
530 *val = mdata->odr; in st_magn_read_raw()
606 struct st_sensor_data *mdata = iio_priv(indio_dev); in st_magn_common_probe() local
618 mdata->num_data_channels = ST_MAGN_NUMBER_DATA_CHANNELS; in st_magn_common_probe()
619 indio_dev->channels = mdata->sensor_settings->ch; in st_magn_common_probe()
[all …]
Dst_magn_spi.c55 struct st_sensor_data *mdata; in st_magn_spi_probe() local
68 indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*mdata)); in st_magn_spi_probe()
72 mdata = iio_priv(indio_dev); in st_magn_spi_probe()
73 mdata->sensor_settings = (struct st_sensor_settings *)settings; in st_magn_spi_probe()
Dst_magn_i2c.c61 struct st_sensor_data *mdata; in st_magn_i2c_probe() local
74 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*mdata)); in st_magn_i2c_probe()
78 mdata = iio_priv(indio_dev); in st_magn_i2c_probe()
79 mdata->sensor_settings = (struct st_sensor_settings *)settings; in st_magn_i2c_probe()
/linux-6.1.9/fs/udf/
Dpartition.c311 struct udf_meta_data *mdata; in udf_get_pblock_meta25() local
318 mdata = &map->s_type_specific.s_metadata; in udf_get_pblock_meta25()
319 inode = mdata->s_metadata_fe ? : mdata->s_mirror_fe; in udf_get_pblock_meta25()
325 if (retblk == 0xFFFFFFFF && mdata->s_metadata_fe) { in udf_get_pblock_meta25()
327 if (!(mdata->s_flags & MF_MIRROR_FE_LOADED)) { in udf_get_pblock_meta25()
328 mdata->s_mirror_fe = udf_find_metadata_inode_efe(sb, in udf_get_pblock_meta25()
329 mdata->s_mirror_file_loc, in udf_get_pblock_meta25()
330 mdata->s_phys_partition_ref); in udf_get_pblock_meta25()
331 if (IS_ERR(mdata->s_mirror_fe)) in udf_get_pblock_meta25()
332 mdata->s_mirror_fe = NULL; in udf_get_pblock_meta25()
[all …]
Dsuper.c276 struct udf_meta_data *mdata; in udf_free_partition() local
286 mdata = &map->s_type_specific.s_metadata; in udf_free_partition()
287 iput(mdata->s_metadata_fe); in udf_free_partition()
288 mdata->s_metadata_fe = NULL; in udf_free_partition()
290 iput(mdata->s_mirror_fe); in udf_free_partition()
291 mdata->s_mirror_fe = NULL; in udf_free_partition()
293 iput(mdata->s_bitmap_fe); in udf_free_partition()
294 mdata->s_bitmap_fe = NULL; in udf_free_partition()
942 struct udf_meta_data *mdata; in udf_load_metadata_files() local
947 mdata = &map->s_type_specific.s_metadata; in udf_load_metadata_files()
[all …]
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/mvm/
Dutils.c920 struct iwl_mvm_tcm_mac *mdata = &mvm->tcm.data[mac]; in iwl_mvm_calc_tcm_stats() local
922 u32 airtime = mdata->rx.airtime + mdata->tx.airtime; in iwl_mvm_calc_tcm_stats()
933 vo_vi_pkts += mdata->rx.pkts[ac] + in iwl_mvm_calc_tcm_stats()
934 mdata->tx.pkts[ac]; in iwl_mvm_calc_tcm_stats()
944 memset(&mdata->rx.pkts, 0, sizeof(mdata->rx.pkts)); in iwl_mvm_calc_tcm_stats()
945 memset(&mdata->tx.pkts, 0, sizeof(mdata->tx.pkts)); in iwl_mvm_calc_tcm_stats()
954 mdata->uapsd_nonagg_detect.rx_bytes = 0; in iwl_mvm_calc_tcm_stats()
955 memset(&mdata->rx.airtime, 0, sizeof(mdata->rx.airtime)); in iwl_mvm_calc_tcm_stats()
956 memset(&mdata->tx.airtime, 0, sizeof(mdata->tx.airtime)); in iwl_mvm_calc_tcm_stats()
1062 struct iwl_mvm_tcm_mac *mdata = &mvm->tcm.data[mac]; in iwl_mvm_resume_tcm() local
[all …]
Drx.c206 struct iwl_mvm_tcm_mac *mdata; in iwl_mvm_rx_handle_tcm() local
224 mdata = &mvm->tcm.data[mac]; in iwl_mvm_rx_handle_tcm()
225 mdata->rx.pkts[ac]++; in iwl_mvm_rx_handle_tcm()
228 if (mdata->rx.last_ampdu_ref != mvm->ampdu_ref) { in iwl_mvm_rx_handle_tcm()
229 mdata->rx.last_ampdu_ref = mvm->ampdu_ref; in iwl_mvm_rx_handle_tcm()
230 mdata->rx.airtime += le16_to_cpu(phy_info->frame_time); in iwl_mvm_rx_handle_tcm()
238 if (mdata->opened_rx_ba_sessions || in iwl_mvm_rx_handle_tcm()
239 mdata->uapsd_nonagg_detect.detected || in iwl_mvm_rx_handle_tcm()
263 mdata->uapsd_nonagg_detect.rx_bytes += len; in iwl_mvm_rx_handle_tcm()
264 ewma_rate_add(&mdata->uapsd_nonagg_detect.rate, thr); in iwl_mvm_rx_handle_tcm()
[all …]
/linux-6.1.9/drivers/infiniband/hw/hfi1/
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 …]
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-6.1.9/drivers/infiniband/ulp/opa_vnic/
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()
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-6.1.9/fs/jffs2/
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 …]
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-6.1.9/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_npc_hash.c556 u64 mdata = FIELD_PREP(GENMASK_ULL(63, 63), enable ? 1 : 0); in rvu_exact_prepare_table_entry() local
559 mdata |= FIELD_PREP(GENMASK_ULL(61, 60), ctype); in rvu_exact_prepare_table_entry()
562 mdata |= FIELD_PREP(GENMASK_ULL(59, 48), chan); in rvu_exact_prepare_table_entry()
565 mdata |= FIELD_PREP(GENMASK_ULL(47, 0), ldata); in rvu_exact_prepare_table_entry()
567 return mdata; in rvu_exact_prepare_table_entry()
835 u32 index, u64 mdata) in rvu_npc_exact_mem_table_write() argument
837 rvu_write64(rvu, blkaddr, NPC_AF_EXACT_MEM_ENTRY(ways, index), mdata); in rvu_npc_exact_mem_table_write()
848 u32 index, u64 mdata) in rvu_npc_exact_cam_table_write() argument
850 rvu_write64(rvu, blkaddr, NPC_AF_EXACT_CAM_ENTRY(index), mdata); in rvu_npc_exact_cam_table_write()
1285 u64 mdata; in rvu_npc_exact_add_table_entry() local
[all …]
/linux-6.1.9/drivers/scsi/
Dips.c4097 IPS_SCSI_MODE_PAGE_DATA mdata; in ips_msense() local
4114 memset(&mdata, 0, sizeof (IPS_SCSI_MODE_PAGE_DATA)); in ips_msense()
4116 mdata.hdr.BlockDescLength = 8; in ips_msense()
4120 mdata.pdata.pg3.PageCode = 3; in ips_msense()
4121 mdata.pdata.pg3.PageLength = sizeof (IPS_SCSI_MODE_PAGE3); in ips_msense()
4122 mdata.hdr.DataLength = in ips_msense()
4123 3 + mdata.hdr.BlockDescLength + mdata.pdata.pg3.PageLength; in ips_msense()
4124 mdata.pdata.pg3.TracksPerZone = 0; in ips_msense()
4125 mdata.pdata.pg3.AltSectorsPerZone = 0; in ips_msense()
4126 mdata.pdata.pg3.AltTracksPerZone = 0; in ips_msense()
[all …]
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/flower/
Dconntrack.c793 u8 *key, *msk, *kdata, *mdata; in nfp_fl_ct_add_offload() local
833 mdata = flow_pay->mask_data; in nfp_fl_ct_add_offload()
837 msk = mdata + offset; in nfp_fl_ct_add_offload()
845 msk = mdata + offset; in nfp_fl_ct_add_offload()
858 msk = mdata + offset; in nfp_fl_ct_add_offload()
881 msk = mdata + offset; in nfp_fl_ct_add_offload()
891 msk = mdata + offset; in nfp_fl_ct_add_offload()
907 msk = mdata + offset; in nfp_fl_ct_add_offload()
918 msk = mdata + offset; in nfp_fl_ct_add_offload()
929 msk = mdata + offset; in nfp_fl_ct_add_offload()
[all …]
/linux-6.1.9/drivers/bus/
Dti-sysc.c132 struct ti_sysc_module_data *mdata; member
2130 error = pdata->init_module(ddata->dev, ddata->mdata, &ddata->cookie); in sysc_legacy_init()
2965 struct ti_sysc_module_data *mdata; in sysc_init_pdata() local
2970 mdata = devm_kzalloc(ddata->dev, sizeof(*mdata), GFP_KERNEL); in sysc_init_pdata()
2971 if (!mdata) in sysc_init_pdata()
2975 mdata->name = ddata->legacy_mode; in sysc_init_pdata()
2976 mdata->module_pa = ddata->module_pa; in sysc_init_pdata()
2977 mdata->module_size = ddata->module_size; in sysc_init_pdata()
2978 mdata->offsets = ddata->offsets; in sysc_init_pdata()
2979 mdata->nr_offsets = SYSC_MAX_REGS; in sysc_init_pdata()
[all …]
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
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-6.1.9/drivers/usb/chipidea/
Dci_hdrc_imx.c284 struct imx_usbmisc_data *mdata = data->usbmisc_data; in ci_hdrc_imx_notify_event() local
298 ret = imx_usbmisc_hsic_set_connect(mdata); in ci_hdrc_imx_notify_event()
305 ret = imx_usbmisc_charger_detection(mdata, true); in ci_hdrc_imx_notify_event()
307 ret = imx_usbmisc_charger_detection(mdata, false); in ci_hdrc_imx_notify_event()
/linux-6.1.9/drivers/media/usb/gspca/
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()

123