Home
last modified time | relevance | path

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

123

/openbmc/linux/drivers/spi/
H 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()
816 mdata->tx_sgl = sg_next(mdata->tx_sgl); in mtk_spi_interrupt()
823 mdata->rx_sgl = sg_next(mdata->rx_sgl); in mtk_spi_interrupt()
830 if (!mdata->tx_sgl && !mdata->rx_sgl) { in mtk_spi_interrupt()
1058 mdata->rx_dma = dma_map_single(mdata->dev, in mtk_spi_mem_exec_op()
1092 dma_unmap_single(mdata->dev, mdata->rx_dma, in mtk_spi_mem_exec_op()
[all …]
H 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 …]
/openbmc/linux/sound/soc/fsl/
H 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 …]
H 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 …]
/openbmc/linux/tools/testing/cxl/test/
H A Dmem.c632 mdata->master_limit++; in master_plimit_check()
641 mdata->user_limit++; in user_plimit_check()
829 mdata->user_limit = 0; in mock_unlock_security()
1213 void *fw = mdata->fw; in mock_transfer_fw()
1394 mdata = devm_kzalloc(dev, sizeof(*mdata), GFP_KERNEL); in cxl_mock_mem_probe()
1395 if (!mdata) in cxl_mock_mem_probe()
1400 if (!mdata->lsa) in cxl_mock_mem_probe()
1403 if (!mdata->fw) in cxl_mock_mem_probe()
1405 mdata->fw_slot = 2; in cxl_mock_mem_probe()
1451 mdata->mes.mds = mds; in cxl_mock_mem_probe()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
H 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 …]
/openbmc/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()
621 indio_dev->channels = mdata->sensor_settings->ch; in st_magn_common_probe()
628 mdata->current_fullscale = &mdata->sensor_settings->fs.fs_avl[0]; in st_magn_common_probe()
629 mdata->odr = mdata->sensor_settings->odr.odr_avl[0].hz; 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()
/openbmc/qemu/hw/nvme/
H A Ddif.c416 g_free(ctx->mdata.bounce); in nvme_dif_rw_cb()
447 status = nvme_dif_mangle_mdata(ns, ctx->mdata.bounce, ctx->mdata.iov.size, in nvme_dif_rw_check_cb()
455 ctx->mdata.bounce, ctx->mdata.iov.size, prinfo, in nvme_dif_rw_check_cb()
473 status = nvme_bounce_mdata(n, ctx->mdata.bounce, ctx->mdata.iov.size, in nvme_dif_rw_check_cb()
504 qemu_iovec_add(&ctx->mdata.iov, ctx->mdata.bounce, mlen); in nvme_dif_rw_mdata_in_cb()
588 qemu_iovec_add(&ctx->mdata.iov, ctx->mdata.bounce, mlen); in nvme_dif_rw()
669 qemu_iovec_add(&ctx->mdata.iov, ctx->mdata.bounce, mlen); in nvme_dif_rw()
672 status = nvme_bounce_mdata(n, ctx->mdata.bounce, ctx->mdata.iov.size, in nvme_dif_rw()
687 ctx->mdata.bounce, ctx->mdata.iov.size, in nvme_dif_rw()
691 ctx->mdata.bounce, ctx->mdata.iov.size, prinfo, in nvme_dif_rw()
[all …]
/openbmc/linux/fs/udf/
H A Dpartition.c308 struct udf_meta_data *mdata; in udf_get_pblock_meta25() local
315 mdata = &map->s_type_specific.s_metadata; in udf_get_pblock_meta25()
316 inode = mdata->s_metadata_fe ? : mdata->s_mirror_fe; in udf_get_pblock_meta25()
322 if (retblk == 0xFFFFFFFF && mdata->s_metadata_fe) { in udf_get_pblock_meta25()
324 if (!(mdata->s_flags & MF_MIRROR_FE_LOADED)) { in udf_get_pblock_meta25()
326 mdata->s_mirror_file_loc, in udf_get_pblock_meta25()
327 mdata->s_phys_partition_ref); in udf_get_pblock_meta25()
328 if (IS_ERR(mdata->s_mirror_fe)) in udf_get_pblock_meta25()
329 mdata->s_mirror_fe = NULL; in udf_get_pblock_meta25()
330 mdata->s_flags |= MF_MIRROR_FE_LOADED; in udf_get_pblock_meta25()
[all …]
H A Dsuper.c281 struct udf_meta_data *mdata; in udf_free_partition() local
292 iput(mdata->s_metadata_fe); in udf_free_partition()
295 iput(mdata->s_mirror_fe); in udf_free_partition()
296 mdata->s_mirror_fe = NULL; in udf_free_partition()
298 iput(mdata->s_bitmap_fe); in udf_free_partition()
299 mdata->s_bitmap_fe = NULL; in udf_free_partition()
957 mdata->s_meta_file_loc, mdata->s_phys_partition_ref); in udf_load_metadata_files()
964 mdata->s_mirror_file_loc, mdata->s_phys_partition_ref); in udf_load_metadata_files()
973 mdata->s_mirror_fe = fe; in udf_load_metadata_files()
975 mdata->s_metadata_fe = fe; in udf_load_metadata_files()
[all …]
/openbmc/u-boot/drivers/usb/musb-new/
H A Dpic32.c44 struct musb_host_data mdata; member
218 struct musb_host_data *mdata = &pdata->mdata; in musb_usb_probe() local
246 mdata->host = musb_init_controller(&pic32_musb_plat, in musb_usb_probe()
248 if (!mdata->host) in musb_usb_probe()
251 ret = musb_lowlevel_init(mdata); in musb_usb_probe()
254 mdata->host = musb_register(&pic32_musb_plat, &pdata->dev, mregs); in musb_usb_probe()
255 if (!mdata->host) in musb_usb_probe()
258 if ((ret == 0) && mdata->host) in musb_usb_probe()
268 musb_stop(pdata->mdata.host); in musb_usb_remove()
/openbmc/qemu/hw/i2c/
H A Dppc4xx_i2c.c94 memset(i2c->mdata, 0, ARRAY_SIZE(i2c->mdata)); in ppc4xx_i2c_reset()
119 ret = i2c->mdata[0]; in ppc4xx_i2c_readb()
126 i2c->mdata[i] = i2c->mdata[i + 1]; in ppc4xx_i2c_readb()
196 i2c->mdata[++i2c->mdidx] = value; in ppc4xx_i2c_writeb()
245 i2c->mdata[i] = i2c_recv(i2c->bus); in ppc4xx_i2c_writeb()
246 } else if (i2c_send(i2c->bus, i2c->mdata[i]) < 0) { in ppc4xx_i2c_writeb()
279 memset(i2c->mdata, 0, ARRAY_SIZE(i2c->mdata)); in ppc4xx_i2c_writeb()
/openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/
H A D0021-corstone1000-add-fwu-metadata-store-info.patch6 Add fwu-mdata node and handle for the reference
32 + fwu-mdata {
33 + compatible = "u-boot,fwu-mdata-gpt";
34 + fwu-mdata-store = <&nvmxip>;
/openbmc/linux/drivers/infiniband/hw/hfi1/
H 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 …]
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()
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dutils.c954 u32 airtime = mdata->rx.airtime + mdata->tx.airtime; in iwl_mvm_calc_tcm_stats()
965 vo_vi_pkts += mdata->rx.pkts[ac] + in iwl_mvm_calc_tcm_stats()
966 mdata->tx.pkts[ac]; in iwl_mvm_calc_tcm_stats()
976 memset(&mdata->rx.pkts, 0, sizeof(mdata->rx.pkts)); in iwl_mvm_calc_tcm_stats()
977 memset(&mdata->tx.pkts, 0, sizeof(mdata->tx.pkts)); in iwl_mvm_calc_tcm_stats()
987 memset(&mdata->rx.airtime, 0, sizeof(mdata->rx.airtime)); in iwl_mvm_calc_tcm_stats()
988 memset(&mdata->tx.airtime, 0, sizeof(mdata->tx.airtime)); in iwl_mvm_calc_tcm_stats()
1096 memset(&mdata->rx.pkts, 0, sizeof(mdata->rx.pkts)); in iwl_mvm_resume_tcm()
1097 memset(&mdata->tx.pkts, 0, sizeof(mdata->tx.pkts)); in iwl_mvm_resume_tcm()
1098 memset(&mdata->rx.airtime, 0, sizeof(mdata->rx.airtime)); in iwl_mvm_resume_tcm()
[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()
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()
743 mdata->rx.airtime += airtime; in iwl_mvm_update_tcm_from_stats()
744 mdata->uapsd_nonagg_detect.rx_bytes += rx_bytes; in iwl_mvm_update_tcm_from_stats()
[all …]
/openbmc/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()
/openbmc/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 …]
/openbmc/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
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
1342 rvu_npc_exact_cam_table_write(rvu, blkaddr, index, mdata); in rvu_npc_exact_add_table_entry()
[all …]
/openbmc/linux/drivers/scsi/
H 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 …]
/openbmc/qemu/include/hw/i2c/
H A Dppc4xx_i2c.h47 uint8_t mdata[4]; member

123