/drivers/spi/ |
D | spi-mt65xx.c | 200 static void mtk_spi_reset(struct mtk_spi *mdata) in mtk_spi_reset() argument 205 reg_val = readl(mdata->base + SPI_CMD_REG); in mtk_spi_reset() 207 writel(reg_val, mdata->base + SPI_CMD_REG); in mtk_spi_reset() 209 reg_val = readl(mdata->base + SPI_CMD_REG); in mtk_spi_reset() 211 writel(reg_val, mdata->base + SPI_CMD_REG); in mtk_spi_reset() 216 struct mtk_spi *mdata = spi_master_get_devdata(spi->master); in mtk_spi_set_hw_cs_timing() local 227 setup = (delay * DIV_ROUND_UP(mdata->spi_clk_hz, 1000000)) / 1000; in mtk_spi_set_hw_cs_timing() 232 hold = (delay * DIV_ROUND_UP(mdata->spi_clk_hz, 1000000)) / 1000; in mtk_spi_set_hw_cs_timing() 237 inactive = (delay * DIV_ROUND_UP(mdata->spi_clk_hz, 1000000)) / 1000; in mtk_spi_set_hw_cs_timing() 240 reg_val = readl(mdata->base + SPI_CFG0_REG); in mtk_spi_set_hw_cs_timing() [all …]
|
D | spi-slave-mt27xx.c | 98 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 …]
|
/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 …]
|
/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() 250 struct mlx5e_ipsec_metadata *mdata, in mlx5e_ipsec_set_metadata() argument 269 mdata->syndrome = MLX5E_IPSEC_TX_SYNDROME_OFFLOAD_WITH_LSO_TCP; in mlx5e_ipsec_set_metadata() [all …]
|
D | tls_rxtx.c | 303 struct mlx5e_tls_metadata *mdata) in tls_update_resync_sn() argument 310 if (mdata->ethertype != htons(ETH_P_IP)) in tls_update_resync_sn() 313 iph = (struct iphdr *)(mdata + 1); in tls_update_resync_sn() 341 memcpy(&seq, &mdata->content.recv.sync_seq, sizeof(seq)); in tls_update_resync_sn() 351 struct mlx5e_tls_metadata *mdata; in mlx5e_tls_handle_rx_skb_metadata() local 355 mdata = (struct mlx5e_tls_metadata *)(skb->data + ETH_HLEN); in mlx5e_tls_handle_rx_skb_metadata() 356 switch (mdata->content.recv.syndrome) { in mlx5e_tls_handle_rx_skb_metadata() 361 tls_update_resync_sn(rq->netdev, skb, mdata); in mlx5e_tls_handle_rx_skb_metadata()
|
/drivers/iio/magnetometer/ |
D | st_magn_core.c | 61 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() 613 struct st_sensor_data *mdata = iio_priv(indio_dev); in st_magn_common_probe() local 614 struct st_sensors_platform_data *pdata = dev_get_platdata(mdata->dev); in st_magn_common_probe() 624 mdata->num_data_channels = ST_MAGN_NUMBER_DATA_CHANNELS; in st_magn_common_probe() [all …]
|
D | st_magn_spi.c | 55 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()
|
D | st_magn_i2c.c | 61 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()
|
/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | utils.c | 912 struct iwl_mvm_tcm_mac *mdata = &mvm->tcm.data[mac]; in iwl_mvm_calc_tcm_stats() local 914 u32 airtime = mdata->rx.airtime + mdata->tx.airtime; in iwl_mvm_calc_tcm_stats() 925 vo_vi_pkts += mdata->rx.pkts[ac] + in iwl_mvm_calc_tcm_stats() 926 mdata->tx.pkts[ac]; in iwl_mvm_calc_tcm_stats() 936 memset(&mdata->rx.pkts, 0, sizeof(mdata->rx.pkts)); in iwl_mvm_calc_tcm_stats() 937 memset(&mdata->tx.pkts, 0, sizeof(mdata->tx.pkts)); in iwl_mvm_calc_tcm_stats() 946 mdata->uapsd_nonagg_detect.rx_bytes = 0; in iwl_mvm_calc_tcm_stats() 947 memset(&mdata->rx.airtime, 0, sizeof(mdata->rx.airtime)); in iwl_mvm_calc_tcm_stats() 948 memset(&mdata->tx.airtime, 0, sizeof(mdata->tx.airtime)); in iwl_mvm_calc_tcm_stats() 1054 struct iwl_mvm_tcm_mac *mdata = &mvm->tcm.data[mac]; in iwl_mvm_resume_tcm() local [all …]
|
D | rx.c | 211 struct iwl_mvm_tcm_mac *mdata; in iwl_mvm_rx_handle_tcm() local 229 mdata = &mvm->tcm.data[mac]; in iwl_mvm_rx_handle_tcm() 230 mdata->rx.pkts[ac]++; in iwl_mvm_rx_handle_tcm() 233 if (mdata->rx.last_ampdu_ref != mvm->ampdu_ref) { in iwl_mvm_rx_handle_tcm() 234 mdata->rx.last_ampdu_ref = mvm->ampdu_ref; in iwl_mvm_rx_handle_tcm() 235 mdata->rx.airtime += le16_to_cpu(phy_info->frame_time); in iwl_mvm_rx_handle_tcm() 243 if (mdata->opened_rx_ba_sessions || in iwl_mvm_rx_handle_tcm() 244 mdata->uapsd_nonagg_detect.detected || in iwl_mvm_rx_handle_tcm() 268 mdata->uapsd_nonagg_detect.rx_bytes += len; in iwl_mvm_rx_handle_tcm() 269 ewma_rate_add(&mdata->uapsd_nonagg_detect.rate, thr); in iwl_mvm_rx_handle_tcm() [all …]
|
D | tx.c | 974 struct iwl_mvm_tcm_mac *mdata; in iwl_mvm_tx_airtime() local 979 mdata = &mvm->tcm.data[mac]; in iwl_mvm_tx_airtime() 987 mdata->tx.airtime += airtime; in iwl_mvm_tx_airtime() 995 struct iwl_mvm_tcm_mac *mdata; in iwl_mvm_tx_pkt_queued() local 1000 mdata = &mvm->tcm.data[mac]; in iwl_mvm_tx_pkt_queued() 1002 mdata->tx.pkts[ac]++; in iwl_mvm_tx_pkt_queued()
|
/drivers/infiniband/hw/hfi1/ |
D | driver.c | 506 static inline void init_ps_mdata(struct ps_mdata *mdata, in init_ps_mdata() argument 511 mdata->rcd = rcd; in init_ps_mdata() 512 mdata->rsize = packet->rsize; in init_ps_mdata() 513 mdata->maxcnt = packet->maxcnt; in init_ps_mdata() 514 mdata->ps_head = packet->rhqoff; in init_ps_mdata() 517 mdata->ps_tail = get_rcvhdrtail(rcd); in init_ps_mdata() 519 mdata->ps_seq = hfi1_seq_cnt(rcd); in init_ps_mdata() 521 mdata->ps_seq = 0; /* not used with DMA_RTAIL */ in init_ps_mdata() 523 mdata->ps_tail = 0; /* used only with DMA_RTAIL*/ in init_ps_mdata() 524 mdata->ps_seq = hfi1_seq_cnt(rcd); in init_ps_mdata() [all …]
|
D | vnic_main.c | 220 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()
|
/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()
|
/drivers/scsi/ |
D | ips.c | 4100 IPS_SCSI_MODE_PAGE_DATA mdata; in ips_msense() local 4117 memset(&mdata, 0, sizeof (IPS_SCSI_MODE_PAGE_DATA)); in ips_msense() 4119 mdata.hdr.BlockDescLength = 8; in ips_msense() 4123 mdata.pdata.pg3.PageCode = 3; in ips_msense() 4124 mdata.pdata.pg3.PageLength = sizeof (IPS_SCSI_MODE_PAGE3); in ips_msense() 4125 mdata.hdr.DataLength = in ips_msense() 4126 3 + mdata.hdr.BlockDescLength + mdata.pdata.pg3.PageLength; in ips_msense() 4127 mdata.pdata.pg3.TracksPerZone = 0; in ips_msense() 4128 mdata.pdata.pg3.AltSectorsPerZone = 0; in ips_msense() 4129 mdata.pdata.pg3.AltTracksPerZone = 0; in ips_msense() [all …]
|
/drivers/net/ethernet/netronome/nfp/flower/ |
D | conntrack.c | 552 u8 *key, *msk, *kdata, *mdata; in nfp_fl_ct_add_offload() local 592 mdata = flow_pay->mask_data; in nfp_fl_ct_add_offload() 596 msk = mdata + offset; in nfp_fl_ct_add_offload() 604 msk = mdata + offset; in nfp_fl_ct_add_offload() 617 msk = mdata + offset; in nfp_fl_ct_add_offload() 640 msk = mdata + offset; in nfp_fl_ct_add_offload() 650 msk = mdata + offset; in nfp_fl_ct_add_offload() 666 msk = mdata + offset; in nfp_fl_ct_add_offload() 677 msk = mdata + offset; in nfp_fl_ct_add_offload() 688 msk = mdata + offset; in nfp_fl_ct_add_offload() [all …]
|
/drivers/bus/ |
D | ti-sysc.c | 133 struct ti_sysc_module_data *mdata; member 2075 error = pdata->init_module(ddata->dev, ddata->mdata, &ddata->cookie); in sysc_legacy_init() 2921 struct ti_sysc_module_data *mdata; in sysc_init_pdata() local 2926 mdata = devm_kzalloc(ddata->dev, sizeof(*mdata), GFP_KERNEL); in sysc_init_pdata() 2927 if (!mdata) in sysc_init_pdata() 2931 mdata->name = ddata->legacy_mode; in sysc_init_pdata() 2932 mdata->module_pa = ddata->module_pa; in sysc_init_pdata() 2933 mdata->module_size = ddata->module_size; in sysc_init_pdata() 2934 mdata->offsets = ddata->offsets; in sysc_init_pdata() 2935 mdata->nr_offsets = SYSC_MAX_REGS; in sysc_init_pdata() [all …]
|
/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 …]
|
/drivers/usb/chipidea/ |
D | ci_hdrc_imx.c | 291 struct imx_usbmisc_data *mdata = data->usbmisc_data; in ci_hdrc_imx_notify_event() local 305 ret = imx_usbmisc_hsic_set_connect(mdata); in ci_hdrc_imx_notify_event() 312 ret = imx_usbmisc_charger_detection(mdata, true); in ci_hdrc_imx_notify_event() 314 ret = imx_usbmisc_charger_detection(mdata, false); in ci_hdrc_imx_notify_event()
|
/drivers/staging/r8188eu/core/ |
D | rtw_xmit.c | 339 pattrib->mdata = 0; in update_attrib_phy_info() 767 if (pattrib->mdata) in rtw_make_wlanhdr() 2002 pxmitframe->attrib.mdata = 1; in wakeup_sta_to_xmit() 2004 pxmitframe->attrib.mdata = 0; in wakeup_sta_to_xmit() 2009 pxmitframe->attrib.mdata = 1; in wakeup_sta_to_xmit() 2012 pxmitframe->attrib.mdata = 0; in wakeup_sta_to_xmit() 2063 pxmitframe->attrib.mdata = 1; in wakeup_sta_to_xmit() 2065 pxmitframe->attrib.mdata = 0; in wakeup_sta_to_xmit() 2135 pxmitframe->attrib.mdata = 1; in xmit_delivery_enabled_frames() 2138 pxmitframe->attrib.mdata = 0; in xmit_delivery_enabled_frames()
|
/drivers/media/usb/gspca/ |
D | vc032x.c | 2967 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()
|
/drivers/staging/rtl8723bs/core/ |
D | rtw_xmit.c | 431 pattrib->mdata = 0; in update_attrib_phy_info() 904 if (pattrib->mdata) in rtw_make_wlanhdr() 2229 pxmitframe->attrib.mdata = 1; in wakeup_sta_to_xmit() 2231 pxmitframe->attrib.mdata = 0; in wakeup_sta_to_xmit() 2236 pxmitframe->attrib.mdata = 1; in wakeup_sta_to_xmit() 2239 pxmitframe->attrib.mdata = 0; in wakeup_sta_to_xmit() 2280 pxmitframe->attrib.mdata = 1; in wakeup_sta_to_xmit() 2282 pxmitframe->attrib.mdata = 0; in wakeup_sta_to_xmit() 2349 pxmitframe->attrib.mdata = 1; in xmit_delivery_enabled_frames() 2352 pxmitframe->attrib.mdata = 0; in xmit_delivery_enabled_frames()
|
/drivers/media/i2c/ccs/ |
D | ccs-reg-access.c | 245 return __ccs_read_data(sensor->mdata.module_read_only_regs, in ccs_read_data() 246 sensor->mdata.num_module_read_only_regs, in ccs_read_data()
|
/drivers/powercap/ |
D | intel_rapl_common.c | 907 u32 mdata; in set_floor_freq_atom() local 918 mdata = power_ctrl_orig_val; in set_floor_freq_atom() 920 mdata &= ~(0x7f << 8); in set_floor_freq_atom() 921 mdata |= 1 << 8; in set_floor_freq_atom() 924 rapl_defaults->floor_freq_reg_addr, mdata); in set_floor_freq_atom()
|