/Linux-v5.10/drivers/spi/ |
D | spi-mt65xx.c | 181 static void mtk_spi_reset(struct mtk_spi *mdata) in mtk_spi_reset() argument 186 reg_val = readl(mdata->base + SPI_CMD_REG); in mtk_spi_reset() 188 writel(reg_val, mdata->base + SPI_CMD_REG); in mtk_spi_reset() 190 reg_val = readl(mdata->base + SPI_CMD_REG); in mtk_spi_reset() 192 writel(reg_val, mdata->base + SPI_CMD_REG); in mtk_spi_reset() 202 struct mtk_spi *mdata = spi_master_get_devdata(master); in mtk_spi_prepare_message() local 207 reg_val = readl(mdata->base + SPI_CMD_REG); in mtk_spi_prepare_message() 235 if (mdata->dev_comp->enhance_timing) { in mtk_spi_prepare_message() 257 writel(reg_val, mdata->base + SPI_CMD_REG); in mtk_spi_prepare_message() 260 if (mdata->dev_comp->need_pad_sel) in mtk_spi_prepare_message() [all …]
|
D | spi-slave-mt27xx.c | 81 static void mtk_spi_slave_disable_dma(struct mtk_spi_slave *mdata) in mtk_spi_slave_disable_dma() argument 85 reg_val = readl(mdata->base + SPIS_DMA_CFG_REG); in mtk_spi_slave_disable_dma() 88 writel(reg_val, mdata->base + SPIS_DMA_CFG_REG); in mtk_spi_slave_disable_dma() 91 static void mtk_spi_slave_disable_xfer(struct mtk_spi_slave *mdata) in mtk_spi_slave_disable_xfer() argument 95 reg_val = readl(mdata->base + SPIS_CFG_REG); in mtk_spi_slave_disable_xfer() 98 writel(reg_val, mdata->base + SPIS_CFG_REG); in mtk_spi_slave_disable_xfer() 101 static int mtk_spi_slave_wait_for_completion(struct mtk_spi_slave *mdata) in mtk_spi_slave_wait_for_completion() argument 103 if (wait_for_completion_interruptible(&mdata->xfer_done) || in mtk_spi_slave_wait_for_completion() 104 mdata->slave_aborted) { in mtk_spi_slave_wait_for_completion() 105 dev_err(mdata->dev, "interrupted\n"); in mtk_spi_slave_wait_for_completion() [all …]
|
/Linux-v5.10/sound/soc/fsl/ |
D | p1022_ds.c | 85 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 …]
|
D | p1022_rdk.c | 91 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-v5.10/drivers/net/ethernet/mellanox/mlx5/core/en/rep/ |
D | bond.c | 53 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-v5.10/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ipsec_rxtx.c | 90 struct mlx5e_ipsec_metadata *mdata; in mlx5e_ipsec_add_metadata() local 93 if (unlikely(skb_cow_head(skb, sizeof(*mdata)))) in mlx5e_ipsec_add_metadata() 96 eth = (struct ethhdr *)skb_push(skb, sizeof(*mdata)); in mlx5e_ipsec_add_metadata() 97 skb->mac_header -= sizeof(*mdata); in mlx5e_ipsec_add_metadata() 98 mdata = (struct mlx5e_ipsec_metadata *)(eth + 1); in mlx5e_ipsec_add_metadata() 100 memmove(skb->data, skb->data + sizeof(*mdata), in mlx5e_ipsec_add_metadata() 105 memset(mdata->content.raw, 0, sizeof(mdata->content.raw)); in mlx5e_ipsec_add_metadata() 106 return mdata; in mlx5e_ipsec_add_metadata() 203 struct mlx5e_ipsec_metadata *mdata, in mlx5e_ipsec_set_metadata() argument 222 mdata->syndrome = MLX5E_IPSEC_TX_SYNDROME_OFFLOAD_WITH_LSO_TCP; in mlx5e_ipsec_set_metadata() [all …]
|
D | tls_rxtx.c | 312 struct mlx5e_tls_metadata *mdata) in tls_update_resync_sn() argument 319 if (mdata->ethertype != htons(ETH_P_IP)) in tls_update_resync_sn() 322 iph = (struct iphdr *)(mdata + 1); in tls_update_resync_sn() 350 memcpy(&seq, &mdata->content.recv.sync_seq, sizeof(seq)); in tls_update_resync_sn() 360 struct mlx5e_tls_metadata *mdata; in mlx5e_tls_handle_rx_skb_metadata() local 364 mdata = (struct mlx5e_tls_metadata *)(skb->data + ETH_HLEN); in mlx5e_tls_handle_rx_skb_metadata() 365 switch (mdata->content.recv.syndrome) { in mlx5e_tls_handle_rx_skb_metadata() 370 tls_update_resync_sn(rq->netdev, skb, mdata); in mlx5e_tls_handle_rx_skb_metadata()
|
/Linux-v5.10/drivers/iio/magnetometer/ |
D | st_magn_core.c | 390 struct st_sensor_data *mdata = iio_priv(indio_dev); in st_magn_read_raw() local 402 (mdata->current_fullscale->gain2 != 0)) in st_magn_read_raw() 403 *val2 = mdata->current_fullscale->gain2; in st_magn_read_raw() 405 *val2 = mdata->current_fullscale->gain; in st_magn_read_raw() 408 *val = mdata->odr; in st_magn_read_raw() 491 struct st_sensor_data *mdata = iio_priv(indio_dev); in st_magn_common_probe() local 505 mdata->num_data_channels = ST_MAGN_NUMBER_DATA_CHANNELS; in st_magn_common_probe() 506 indio_dev->channels = mdata->sensor_settings->ch; in st_magn_common_probe() 509 mdata->current_fullscale = &mdata->sensor_settings->fs.fs_avl[0]; in st_magn_common_probe() 510 mdata->odr = mdata->sensor_settings->odr.odr_avl[0].hz; in st_magn_common_probe() [all …]
|
D | st_magn_spi.c | 51 struct st_sensor_data *mdata; in st_magn_spi_probe() local 64 indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*mdata)); in st_magn_spi_probe() 68 mdata = iio_priv(indio_dev); in st_magn_spi_probe() 69 mdata->sensor_settings = (struct st_sensor_settings *)settings; in st_magn_spi_probe()
|
D | st_magn_i2c.c | 57 struct st_sensor_data *mdata; in st_magn_i2c_probe() local 70 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*mdata)); in st_magn_i2c_probe() 74 mdata = iio_priv(indio_dev); in st_magn_i2c_probe() 75 mdata->sensor_settings = (struct st_sensor_settings *)settings; in st_magn_i2c_probe()
|
/Linux-v5.10/fs/udf/ |
D | partition.c | 311 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 …]
|
D | super.c | 280 struct udf_meta_data *mdata; in udf_free_partition() local 290 mdata = &map->s_type_specific.s_metadata; in udf_free_partition() 291 iput(mdata->s_metadata_fe); in udf_free_partition() 292 mdata->s_metadata_fe = NULL; in udf_free_partition() 294 iput(mdata->s_mirror_fe); in udf_free_partition() 295 mdata->s_mirror_fe = NULL; in udf_free_partition() 297 iput(mdata->s_bitmap_fe); in udf_free_partition() 298 mdata->s_bitmap_fe = NULL; in udf_free_partition() 939 struct udf_meta_data *mdata; in udf_load_metadata_files() local 944 mdata = &map->s_type_specific.s_metadata; in udf_load_metadata_files() [all …]
|
/Linux-v5.10/drivers/infiniband/hw/hfi1/ |
D | driver.c | 548 static inline void init_ps_mdata(struct ps_mdata *mdata, in init_ps_mdata() argument 553 mdata->rcd = rcd; in init_ps_mdata() 554 mdata->rsize = packet->rsize; in init_ps_mdata() 555 mdata->maxcnt = packet->maxcnt; in init_ps_mdata() 556 mdata->ps_head = packet->rhqoff; in init_ps_mdata() 559 mdata->ps_tail = get_rcvhdrtail(rcd); in init_ps_mdata() 561 mdata->ps_seq = hfi1_seq_cnt(rcd); in init_ps_mdata() 563 mdata->ps_seq = 0; /* not used with DMA_RTAIL */ in init_ps_mdata() 565 mdata->ps_tail = 0; /* used only with DMA_RTAIL*/ in init_ps_mdata() 566 mdata->ps_seq = hfi1_seq_cnt(rcd); in init_ps_mdata() [all …]
|
D | vnic_main.c | 262 struct opa_vnic_skb_mdata *mdata; in hfi1_netdev_start_xmit() local 274 mdata = (struct opa_vnic_skb_mdata *)skb->data; in hfi1_netdev_start_xmit() 275 skb_pull(skb, sizeof(*mdata)); in hfi1_netdev_start_xmit() 276 if (unlikely(mdata->flags & OPA_VNIC_SKB_MDATA_ENCAP_ERR)) { in hfi1_netdev_start_xmit() 293 pbc = create_bypass_pbc(mdata->vl, total_len); in hfi1_netdev_start_xmit() 325 struct opa_vnic_skb_mdata *mdata; in hfi1_vnic_select_queue() local 328 mdata = (struct opa_vnic_skb_mdata *)skb->data; in hfi1_vnic_select_queue() 329 sde = sdma_select_engine_vl(vinfo->dd, mdata->entropy, mdata->vl); in hfi1_vnic_select_queue()
|
/Linux-v5.10/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | utils.c | 1228 struct iwl_mvm_tcm_mac *mdata = &mvm->tcm.data[mac]; in iwl_mvm_calc_tcm_stats() local 1230 u32 airtime = mdata->rx.airtime + mdata->tx.airtime; in iwl_mvm_calc_tcm_stats() 1241 vo_vi_pkts += mdata->rx.pkts[ac] + in iwl_mvm_calc_tcm_stats() 1242 mdata->tx.pkts[ac]; in iwl_mvm_calc_tcm_stats() 1252 memset(&mdata->rx.pkts, 0, sizeof(mdata->rx.pkts)); in iwl_mvm_calc_tcm_stats() 1253 memset(&mdata->tx.pkts, 0, sizeof(mdata->tx.pkts)); in iwl_mvm_calc_tcm_stats() 1262 mdata->uapsd_nonagg_detect.rx_bytes = 0; in iwl_mvm_calc_tcm_stats() 1263 memset(&mdata->rx.airtime, 0, sizeof(mdata->rx.airtime)); in iwl_mvm_calc_tcm_stats() 1264 memset(&mdata->tx.airtime, 0, sizeof(mdata->tx.airtime)); in iwl_mvm_calc_tcm_stats() 1371 struct iwl_mvm_tcm_mac *mdata = &mvm->tcm.data[mac]; in iwl_mvm_resume_tcm() local [all …]
|
D | rx.c | 263 struct iwl_mvm_tcm_mac *mdata; in iwl_mvm_rx_handle_tcm() local 281 mdata = &mvm->tcm.data[mac]; in iwl_mvm_rx_handle_tcm() 282 mdata->rx.pkts[ac]++; in iwl_mvm_rx_handle_tcm() 285 if (mdata->rx.last_ampdu_ref != mvm->ampdu_ref) { in iwl_mvm_rx_handle_tcm() 286 mdata->rx.last_ampdu_ref = mvm->ampdu_ref; in iwl_mvm_rx_handle_tcm() 287 mdata->rx.airtime += le16_to_cpu(phy_info->frame_time); in iwl_mvm_rx_handle_tcm() 295 if (mdata->opened_rx_ba_sessions || in iwl_mvm_rx_handle_tcm() 296 mdata->uapsd_nonagg_detect.detected || in iwl_mvm_rx_handle_tcm() 320 mdata->uapsd_nonagg_detect.rx_bytes += len; in iwl_mvm_rx_handle_tcm() 321 ewma_rate_add(&mdata->uapsd_nonagg_detect.rate, thr); in iwl_mvm_rx_handle_tcm() [all …]
|
/Linux-v5.10/drivers/infiniband/ulp/opa_vnic/ |
D | opa_vnic_netdev.c | 101 struct opa_vnic_skb_mdata *mdata; in opa_vnic_select_queue() local 105 mdata = skb_push(skb, sizeof(*mdata)); in opa_vnic_select_queue() 106 mdata->entropy = opa_vnic_calc_entropy(skb); in opa_vnic_select_queue() 107 mdata->vl = opa_vnic_get_vl(adapter, skb); in opa_vnic_select_queue() 109 skb_pull(skb, sizeof(*mdata)); in opa_vnic_select_queue()
|
D | opa_vnic_encap.c | 486 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-v5.10/fs/jffs2/ |
D | fs.c | 39 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 …]
|
D | gc.c | 765 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-v5.10/drivers/scsi/ |
D | ips.c | 4093 IPS_SCSI_MODE_PAGE_DATA mdata; in ips_msense() local 4110 memset(&mdata, 0, sizeof (IPS_SCSI_MODE_PAGE_DATA)); in ips_msense() 4112 mdata.hdr.BlockDescLength = 8; in ips_msense() 4116 mdata.pdata.pg3.PageCode = 3; in ips_msense() 4117 mdata.pdata.pg3.PageLength = sizeof (IPS_SCSI_MODE_PAGE3); in ips_msense() 4118 mdata.hdr.DataLength = in ips_msense() 4119 3 + mdata.hdr.BlockDescLength + mdata.pdata.pg3.PageLength; in ips_msense() 4120 mdata.pdata.pg3.TracksPerZone = 0; in ips_msense() 4121 mdata.pdata.pg3.AltSectorsPerZone = 0; in ips_msense() 4122 mdata.pdata.pg3.AltTracksPerZone = 0; in ips_msense() [all …]
|
/Linux-v5.10/drivers/bus/ |
D | ti-sysc.c | 122 struct ti_sysc_module_data *mdata; member 1889 error = pdata->init_module(ddata->dev, ddata->mdata, &ddata->cookie); in sysc_legacy_init() 2650 struct ti_sysc_module_data *mdata; in sysc_init_pdata() local 2655 mdata = devm_kzalloc(ddata->dev, sizeof(*mdata), GFP_KERNEL); in sysc_init_pdata() 2656 if (!mdata) in sysc_init_pdata() 2660 mdata->name = ddata->legacy_mode; in sysc_init_pdata() 2661 mdata->module_pa = ddata->module_pa; in sysc_init_pdata() 2662 mdata->module_size = ddata->module_size; in sysc_init_pdata() 2663 mdata->offsets = ddata->offsets; in sysc_init_pdata() 2664 mdata->nr_offsets = SYSC_MAX_REGS; in sysc_init_pdata() [all …]
|
/Linux-v5.10/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | init.c | 1506 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-v5.10/drivers/usb/chipidea/ |
D | ci_hdrc_imx.c | 279 struct imx_usbmisc_data *mdata = data->usbmisc_data; in ci_hdrc_imx_notify_event() local 293 ret = imx_usbmisc_hsic_set_connect(mdata); in ci_hdrc_imx_notify_event() 300 ret = imx_usbmisc_charger_detection(mdata, true); in ci_hdrc_imx_notify_event() 302 ret = imx_usbmisc_charger_detection(mdata, false); in ci_hdrc_imx_notify_event()
|
/Linux-v5.10/drivers/staging/rtl8188eu/core/ |
D | rtw_xmit.c | 324 pattrib->mdata = 0; in update_attrib_phy_info() 795 if (pattrib->mdata) in rtw_make_wlanhdr() 1849 pxmitframe->attrib.mdata = 1; in wakeup_sta_to_xmit() 1851 pxmitframe->attrib.mdata = 0; in wakeup_sta_to_xmit() 1856 pxmitframe->attrib.mdata = 1; in wakeup_sta_to_xmit() 1859 pxmitframe->attrib.mdata = 0; in wakeup_sta_to_xmit() 1910 pxmitframe->attrib.mdata = 1; in wakeup_sta_to_xmit() 1912 pxmitframe->attrib.mdata = 0; in wakeup_sta_to_xmit() 1982 pxmitframe->attrib.mdata = 1; in xmit_delivery_enabled_frames() 1985 pxmitframe->attrib.mdata = 0; in xmit_delivery_enabled_frames()
|