Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/drivers/spi/
A Dspi-mt65xx.c574 if (mdata->tx_sgl_len && mdata->rx_sgl_len) { in mtk_spi_update_mdata_len()
575 if (mdata->tx_sgl_len > mdata->rx_sgl_len) { in mtk_spi_update_mdata_len()
579 mdata->tx_sgl_len -= mdata->xfer_len; in mtk_spi_update_mdata_len()
584 mdata->rx_sgl_len -= mdata->xfer_len; in mtk_spi_update_mdata_len()
780 mdata->num_xfered += mdata->xfer_len; in mtk_spi_interrupt()
814 mdata->tx_sgl = sg_next(mdata->tx_sgl); in mtk_spi_interrupt()
821 mdata->rx_sgl = sg_next(mdata->rx_sgl); in mtk_spi_interrupt()
828 if (!mdata->tx_sgl && !mdata->rx_sgl) { in mtk_spi_interrupt()
1056 mdata->rx_dma = dma_map_single(mdata->dev, in mtk_spi_mem_exec_op()
1090 dma_unmap_single(mdata->dev, mdata->rx_dma, in mtk_spi_mem_exec_op()
[all …]
A Dspi-slave-mt27xx.c121 mdata->slave_aborted) { in mtk_spi_slave_wait_for_completion()
289 mdata->slave_aborted = false; in mtk_spi_slave_transfer_one()
290 mdata->cur_transfer = xfer; in mtk_spi_slave_transfer_one()
321 mdata->slave_aborted = true; in mtk_slave_abort()
322 complete(&mdata->xfer_done); in mtk_slave_abort()
378 mdata->cur_transfer = NULL; in mtk_spi_slave_interrupt()
379 complete(&mdata->xfer_done); in mtk_spi_slave_interrupt()
387 struct mtk_spi_slave *mdata; in mtk_spi_slave_probe() local
422 mdata->dev = &pdev->dev; in mtk_spi_slave_probe()
424 if (IS_ERR(mdata->base)) { in mtk_spi_slave_probe()
[all …]
/linux-6.3-rc2/sound/soc/fsl/
A Dp1022_ds.c104 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()
172 guts_set_dmuxcr(guts, mdata->dma_id[0], mdata->dma_channel_id[0], 0); in p1022_ds_machine_remove()
215 if (!mdata) { in p1022_ds_probe()
343 mdata->dai[0].platforms->name = mdata->platform_name[0]; in p1022_ds_probe()
353 mdata->dai[1].platforms->name = mdata->platform_name[1]; in p1022_ds_probe()
365 mdata->dai[0].name = mdata->dai[0].stream_name; in p1022_ds_probe()
366 mdata->dai[1].name = mdata->dai[1].stream_name; in p1022_ds_probe()
374 mdata->card.dai_link = mdata->dai; in p1022_ds_probe()
388 kfree(mdata); in p1022_ds_probe()
[all …]
A Dp1022_rdk.c110 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()
218 if (!mdata) { in p1022_rdk_probe()
260 mdata->dai[1].codecs->dai_name = mdata->dai[0].codecs->dai_name; in p1022_rdk_probe()
292 mdata->dai[0].platforms->name = mdata->platform_name[0]; in p1022_rdk_probe()
303 mdata->dai[1].platforms->name = mdata->platform_name[1]; in p1022_rdk_probe()
316 mdata->dai[0].name = mdata->dai[0].stream_name; in p1022_rdk_probe()
317 mdata->dai[1].name = mdata->dai[1].stream_name; in p1022_rdk_probe()
325 mdata->card.dai_link = mdata->dai; in p1022_rdk_probe()
337 kfree(mdata); in p1022_rdk_probe()
[all …]
/linux-6.3-rc2/tools/testing/cxl/test/
A Dmem.c520 mdata->master_limit++; in master_plimit_check()
529 mdata->user_limit++; in user_plimit_check()
651 mdata->user_limit = 0; in mock_disable_passphrase()
719 mdata->user_limit = 0; in mock_unlock_security()
771 mdata->user_limit = 0; in mock_passphrase_secure_erase()
801 mdata->user_limit = 0; in mock_passphrase_secure_erase()
827 void *lsa = mdata->lsa; in mock_get_lsa()
847 void *lsa = mdata->lsa; in mock_set_lsa()
984 mdata = devm_kzalloc(dev, sizeof(*mdata), GFP_KERNEL); in cxl_mock_mem_probe()
985 if (!mdata) in cxl_mock_mem_probe()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
A Dbond.c73 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()
76 kfree(mdata); in mlx5e_rep_bond_metadata_release()
93 if (!mdata) { in mlx5e_rep_bond_enslave()
95 mdata = kzalloc(sizeof(*mdata), GFP_KERNEL); in mlx5e_rep_bond_enslave()
96 if (!mdata) in mlx5e_rep_bond_enslave()
100 mdata->esw = esw; in mlx5e_rep_bond_enslave()
104 kfree(mdata); in mlx5e_rep_bond_enslave()
128 mdata->slaves++; in mlx5e_rep_bond_enslave()
138 if (!mdata->slaves) in mlx5e_rep_bond_enslave()
[all …]
/linux-6.3-rc2/drivers/iio/magnetometer/
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()
513 struct st_sensor_data *mdata = iio_priv(indio_dev); in st_magn_read_raw() local
525 (mdata->current_fullscale->gain2 != 0)) in st_magn_read_raw()
526 *val2 = mdata->current_fullscale->gain2; in st_magn_read_raw()
528 *val2 = mdata->current_fullscale->gain; in st_magn_read_raw()
531 *val = mdata->odr; in st_magn_read_raw()
620 indio_dev->channels = mdata->sensor_settings->ch; in st_magn_common_probe()
627 mdata->current_fullscale = &mdata->sensor_settings->fs.fs_avl[0]; in st_magn_common_probe()
628 mdata->odr = mdata->sensor_settings->odr.odr_avl[0].hz; in st_magn_common_probe()
[all …]
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()
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-6.3-rc2/fs/udf/
A Dpartition.c310 struct udf_meta_data *mdata; in udf_get_pblock_meta25() local
317 mdata = &map->s_type_specific.s_metadata; in udf_get_pblock_meta25()
318 inode = mdata->s_metadata_fe ? : mdata->s_mirror_fe; in udf_get_pblock_meta25()
324 if (retblk == 0xFFFFFFFF && mdata->s_metadata_fe) { in udf_get_pblock_meta25()
326 if (!(mdata->s_flags & MF_MIRROR_FE_LOADED)) { in udf_get_pblock_meta25()
328 mdata->s_mirror_file_loc, in udf_get_pblock_meta25()
329 mdata->s_phys_partition_ref); in udf_get_pblock_meta25()
330 if (IS_ERR(mdata->s_mirror_fe)) in udf_get_pblock_meta25()
331 mdata->s_mirror_fe = NULL; in udf_get_pblock_meta25()
332 mdata->s_flags |= MF_MIRROR_FE_LOADED; in udf_get_pblock_meta25()
[all …]
A Dsuper.c284 struct udf_meta_data *mdata; in udf_free_partition() local
295 iput(mdata->s_metadata_fe); in udf_free_partition()
298 iput(mdata->s_mirror_fe); in udf_free_partition()
299 mdata->s_mirror_fe = NULL; in udf_free_partition()
301 iput(mdata->s_bitmap_fe); in udf_free_partition()
302 mdata->s_bitmap_fe = NULL; in udf_free_partition()
960 mdata->s_meta_file_loc, mdata->s_phys_partition_ref); in udf_load_metadata_files()
967 mdata->s_mirror_file_loc, mdata->s_phys_partition_ref); in udf_load_metadata_files()
976 mdata->s_mirror_fe = fe; in udf_load_metadata_files()
978 mdata->s_metadata_fe = fe; in udf_load_metadata_files()
[all …]
/linux-6.3-rc2/drivers/net/wireless/intel/iwlwifi/mvm/
A Dutils.c922 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()
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()
1064 memset(&mdata->rx.pkts, 0, sizeof(mdata->rx.pkts)); in iwl_mvm_resume_tcm()
1065 memset(&mdata->tx.pkts, 0, sizeof(mdata->tx.pkts)); in iwl_mvm_resume_tcm()
1066 memset(&mdata->rx.airtime, 0, sizeof(mdata->rx.airtime)); in iwl_mvm_resume_tcm()
[all …]
A 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()
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()
740 mdata->rx.airtime += airtime; in iwl_mvm_update_tcm_from_stats()
741 mdata->uapsd_nonagg_detect.rx_bytes += rx_bytes; in iwl_mvm_update_tcm_from_stats()
[all …]
/linux-6.3-rc2/drivers/infiniband/hw/hfi1/
A Ddriver.c506 mdata->rcd = rcd; in init_ps_mdata()
507 mdata->rsize = packet->rsize; in init_ps_mdata()
527 return mdata->ps_head == mdata->ps_tail; in ps_done()
538 if ((rcd->ctxt == HFI1_CTRL_CTXT) && (mdata->ps_head != mdata->ps_tail)) in ps_skip()
547 mdata->ps_head += mdata->rsize; in update_ps_mdata()
548 if (mdata->ps_head >= mdata->maxcnt) in update_ps_mdata()
549 mdata->ps_head = 0; in update_ps_mdata()
554 mdata->ps_seq = hfi1_seq_incr_wrap(mdata->ps_seq); in update_ps_mdata()
573 struct ps_mdata mdata; in __prescan_rxq() local
575 init_ps_mdata(&mdata, packet); in __prescan_rxq()
[all …]
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-6.3-rc2/drivers/infiniband/ulp/opa_vnic/
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()
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-6.3-rc2/fs/jffs2/
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 …]
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-6.3-rc2/drivers/net/ethernet/marvell/octeontx2/af/
A Drvu_npc_hash.c552 u64 mdata = FIELD_PREP(GENMASK_ULL(63, 63), enable ? 1 : 0); in rvu_exact_prepare_table_entry() local
555 mdata |= FIELD_PREP(GENMASK_ULL(61, 60), ctype); in rvu_exact_prepare_table_entry()
558 mdata |= FIELD_PREP(GENMASK_ULL(59, 48), chan); in rvu_exact_prepare_table_entry()
561 mdata |= FIELD_PREP(GENMASK_ULL(47, 0), ldata); in rvu_exact_prepare_table_entry()
563 return mdata; in rvu_exact_prepare_table_entry()
831 u32 index, u64 mdata) in rvu_npc_exact_mem_table_write() argument
844 u32 index, u64 mdata) in rvu_npc_exact_cam_table_write() argument
846 rvu_write64(rvu, blkaddr, NPC_AF_EXACT_CAM_ENTRY(index), mdata); in rvu_npc_exact_cam_table_write()
1281 u64 mdata; in rvu_npc_exact_add_table_entry() local
1298 rvu_npc_exact_cam_table_write(rvu, blkaddr, index, mdata); in rvu_npc_exact_add_table_entry()
[all …]
/linux-6.3-rc2/drivers/scsi/
A Dips.c4096 IPS_SCSI_MODE_PAGE_DATA mdata; in ips_msense() local
4115 mdata.hdr.BlockDescLength = 8; in ips_msense()
4119 mdata.pdata.pg3.PageCode = 3; in ips_msense()
4121 mdata.hdr.DataLength = in ips_msense()
4122 3 + mdata.hdr.BlockDescLength + mdata.pdata.pg3.PageLength; in ips_msense()
4138 mdata.hdr.DataLength = in ips_msense()
4139 3 + mdata.hdr.BlockDescLength + mdata.pdata.pg4.PageLength; in ips_msense()
4151 mdata.pdata.pg4.flags = 0; in ips_msense()
4158 mdata.hdr.DataLength = in ips_msense()
4159 3 + mdata.hdr.BlockDescLength + mdata.pdata.pg8.PageLength; in ips_msense()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/netronome/nfp/flower/
A Dconntrack.c837 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()
940 msk = mdata + offset; in nfp_fl_ct_add_offload()
951 msk = mdata + offset; in nfp_fl_ct_add_offload()
[all …]
/linux-6.3-rc2/drivers/bus/
A Dti-sysc.c132 struct ti_sysc_module_data *mdata; member
2971 struct ti_sysc_module_data *mdata; in sysc_init_pdata() local
2976 mdata = devm_kzalloc(ddata->dev, sizeof(*mdata), GFP_KERNEL); in sysc_init_pdata()
2977 if (!mdata) in sysc_init_pdata()
2981 mdata->name = ddata->legacy_mode; in sysc_init_pdata()
2982 mdata->module_pa = ddata->module_pa; in sysc_init_pdata()
2984 mdata->offsets = ddata->offsets; in sysc_init_pdata()
2985 mdata->nr_offsets = SYSC_MAX_REGS; in sysc_init_pdata()
2986 mdata->cap = ddata->cap; in sysc_init_pdata()
2987 mdata->cfg = &ddata->cfg; in sysc_init_pdata()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
A Dinit.c1507 if (mdata) 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()
1566 u16 mdata, clock; in init_configure_clk() local
1577 mdata = init_configure_mem_clk(init); in init_configure_clk()
[all …]
/linux-6.3-rc2/drivers/usb/chipidea/
A 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()

Completed in 79 milliseconds

12