msp              1369 drivers/infiniband/hw/qib/qib_iba7322.c 		       const struct qib_hwerror_msgs *msp)
msp              1374 drivers/infiniband/hw/qib/qib_iba7322.c 	while (errs && msp && msp->mask) {
msp              1375 drivers/infiniband/hw/qib/qib_iba7322.c 		multi = (msp->mask & (msp->mask - 1));
msp              1376 drivers/infiniband/hw/qib/qib_iba7322.c 		while (errs & msp->mask) {
msp              1377 drivers/infiniband/hw/qib/qib_iba7322.c 			these = (errs & msp->mask);
msp              1386 drivers/infiniband/hw/qib/qib_iba7322.c 				took = min_t(size_t, msp->sz - (size_t)1, len);
msp              1387 drivers/infiniband/hw/qib/qib_iba7322.c 				memcpy(msg,  msp->msg, took);
msp              1398 drivers/infiniband/hw/qib/qib_iba7322.c 				while (lmask & msp->mask) {
msp              1407 drivers/infiniband/hw/qib/qib_iba7322.c 		++msp;
msp              3067 drivers/media/pci/bt8xx/bttv-cards.c 	int id,msp,gpio;
msp              3073 drivers/media/pci/bt8xx/bttv-cards.c 	msp  = bttv_I2CRead(btv, I2C_ADDR_MSP3400, "MSP34xx");
msp              3089 drivers/media/pci/bt8xx/bttv-cards.c 		if (-1 != msp) {
msp              3099 drivers/media/pci/bt8xx/bttv-cards.c 			(-1 == msp) ? "no" : "yes");
msp              3139 drivers/media/pci/bt8xx/bttv-cards.c 		if (-1 != msp)
msp               852 drivers/media/pci/ngene/ngene.h 	u8    msp[4];
msp              2619 drivers/net/ethernet/marvell/mv643xx_eth.c mv643xx_eth_conf_mbus_windows(struct mv643xx_eth_shared_private *msp,
msp              2622 drivers/net/ethernet/marvell/mv643xx_eth.c 	void __iomem *base = msp->base;
msp              2650 drivers/net/ethernet/marvell/mv643xx_eth.c 	msp->win_protect = win_protect;
msp              2653 drivers/net/ethernet/marvell/mv643xx_eth.c static void infer_hw_params(struct mv643xx_eth_shared_private *msp)
msp              2660 drivers/net/ethernet/marvell/mv643xx_eth.c 	writel(0x02000000, msp->base + 0x0400 + SDMA_CONFIG);
msp              2661 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (readl(msp->base + 0x0400 + SDMA_CONFIG) & 0x02000000)
msp              2662 drivers/net/ethernet/marvell/mv643xx_eth.c 		msp->extended_rx_coal_limit = 1;
msp              2664 drivers/net/ethernet/marvell/mv643xx_eth.c 		msp->extended_rx_coal_limit = 0;
msp              2671 drivers/net/ethernet/marvell/mv643xx_eth.c 	writel(1, msp->base + 0x0400 + TX_BW_MTU_MOVED);
msp              2672 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (readl(msp->base + 0x0400 + TX_BW_MTU_MOVED) & 1) {
msp              2673 drivers/net/ethernet/marvell/mv643xx_eth.c 		msp->tx_bw_control = TX_BW_CONTROL_NEW_LAYOUT;
msp              2675 drivers/net/ethernet/marvell/mv643xx_eth.c 		writel(7, msp->base + 0x0400 + TX_BW_RATE);
msp              2676 drivers/net/ethernet/marvell/mv643xx_eth.c 		if (readl(msp->base + 0x0400 + TX_BW_RATE) & 7)
msp              2677 drivers/net/ethernet/marvell/mv643xx_eth.c 			msp->tx_bw_control = TX_BW_CONTROL_OLD_LAYOUT;
msp              2679 drivers/net/ethernet/marvell/mv643xx_eth.c 			msp->tx_bw_control = TX_BW_CONTROL_ABSENT;
msp              2835 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_shared_private *msp;
msp              2848 drivers/net/ethernet/marvell/mv643xx_eth.c 	msp = devm_kzalloc(&pdev->dev, sizeof(*msp), GFP_KERNEL);
msp              2849 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (msp == NULL)
msp              2851 drivers/net/ethernet/marvell/mv643xx_eth.c 	platform_set_drvdata(pdev, msp);
msp              2853 drivers/net/ethernet/marvell/mv643xx_eth.c 	msp->base = devm_ioremap(&pdev->dev, res->start, resource_size(res));
msp              2854 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (msp->base == NULL)
msp              2857 drivers/net/ethernet/marvell/mv643xx_eth.c 	msp->clk = devm_clk_get(&pdev->dev, NULL);
msp              2858 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (!IS_ERR(msp->clk))
msp              2859 drivers/net/ethernet/marvell/mv643xx_eth.c 		clk_prepare_enable(msp->clk);
msp              2866 drivers/net/ethernet/marvell/mv643xx_eth.c 		mv643xx_eth_conf_mbus_windows(msp, dram);
msp              2873 drivers/net/ethernet/marvell/mv643xx_eth.c 	msp->tx_csum_limit = (pd != NULL && pd->tx_csum_limit) ?
msp              2875 drivers/net/ethernet/marvell/mv643xx_eth.c 	infer_hw_params(msp);
msp              2880 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (!IS_ERR(msp->clk))
msp              2881 drivers/net/ethernet/marvell/mv643xx_eth.c 		clk_disable_unprepare(msp->clk);
msp              2887 drivers/net/ethernet/marvell/mv643xx_eth.c 	struct mv643xx_eth_shared_private *msp = platform_get_drvdata(pdev);
msp              2890 drivers/net/ethernet/marvell/mv643xx_eth.c 	if (!IS_ERR(msp->clk))
msp              2891 drivers/net/ethernet/marvell/mv643xx_eth.c 		clk_disable_unprepare(msp->clk);
msp               134 drivers/net/ethernet/mellanox/mlx5/core/en/health.c 	struct mlx5e_modify_sq_param msp = {};
msp               137 drivers/net/ethernet/mellanox/mlx5/core/en/health.c 	msp.curr_state = MLX5_SQC_STATE_ERR;
msp               138 drivers/net/ethernet/mellanox/mlx5/core/en/health.c 	msp.next_state = MLX5_SQC_STATE_RST;
msp               140 drivers/net/ethernet/mellanox/mlx5/core/en/health.c 	err = mlx5e_modify_sq(mdev, sqn, &msp);
msp               146 drivers/net/ethernet/mellanox/mlx5/core/en/health.c 	memset(&msp, 0, sizeof(msp));
msp               147 drivers/net/ethernet/mellanox/mlx5/core/en/health.c 	msp.curr_state = MLX5_SQC_STATE_RST;
msp               148 drivers/net/ethernet/mellanox/mlx5/core/en/health.c 	msp.next_state = MLX5_SQC_STATE_RDY;
msp               150 drivers/net/ethernet/mellanox/mlx5/core/en/health.c 	err = mlx5e_modify_sq(mdev, sqn, &msp);
msp              1289 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	struct mlx5e_modify_sq_param msp = {0};
msp              1296 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	msp.curr_state = MLX5_SQC_STATE_RST;
msp              1297 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	msp.next_state = MLX5_SQC_STATE_RDY;
msp              1298 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	err = mlx5e_modify_sq(mdev, *sqn, &msp);
msp              1749 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	struct mlx5e_modify_sq_param msp = {0};
msp              1776 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	msp.curr_state = MLX5_SQC_STATE_RDY;
msp              1777 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	msp.next_state = MLX5_SQC_STATE_RDY;
msp              1778 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	msp.rl_index   = rl_index;
msp              1779 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	msp.rl_update  = true;
msp              1780 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	err = mlx5e_modify_sq(mdev, sq->sqn, &msp);
msp               195 drivers/pci/hotplug/shpchp_ctrl.c 		enum pci_bus_speed msp)
msp               212 drivers/pci/hotplug/shpchp_ctrl.c 	if (asp < msp) {
msp               216 drivers/pci/hotplug/shpchp_ctrl.c 		if (bsp != msp)
msp               217 drivers/pci/hotplug/shpchp_ctrl.c 			rc = change_bus_speed(ctrl, pslot, msp);
msp               234 drivers/pci/hotplug/shpchp_ctrl.c 	enum pci_bus_speed asp, bsp, msp;
msp               273 drivers/pci/hotplug/shpchp_ctrl.c 	msp = ctrl->pci_dev->subordinate->max_bus_speed;
msp               281 drivers/pci/hotplug/shpchp_ctrl.c 		 bsp, msp);
msp               283 drivers/pci/hotplug/shpchp_ctrl.c 	rc = fix_bus_speed(ctrl, p_slot, slots_not_empty, asp, bsp, msp);
msp               887 net/mac80211/rc80211_minstrel_ht.c 	struct minstrel_ht_sta_priv *msp = priv_sta;
msp               888 net/mac80211/rc80211_minstrel_ht.c 	struct minstrel_ht_sta *mi = &msp->ht;
msp               896 net/mac80211/rc80211_minstrel_ht.c 	if (!msp->is_ht)
msp               898 net/mac80211/rc80211_minstrel_ht.c 						       &msp->legacy, st);
msp              1294 net/mac80211/rc80211_minstrel_ht.c 	struct minstrel_ht_sta_priv *msp = priv_sta;
msp              1295 net/mac80211/rc80211_minstrel_ht.c 	struct minstrel_ht_sta *mi = &msp->ht;
msp              1299 net/mac80211/rc80211_minstrel_ht.c 	if (!msp->is_ht)
msp              1300 net/mac80211/rc80211_minstrel_ht.c 		return mac80211_minstrel.get_rate(priv, sta, &msp->legacy, txrc);
msp              1387 net/mac80211/rc80211_minstrel_ht.c 	struct minstrel_ht_sta_priv *msp = priv_sta;
msp              1388 net/mac80211/rc80211_minstrel_ht.c 	struct minstrel_ht_sta *mi = &msp->ht;
msp              1410 net/mac80211/rc80211_minstrel_ht.c 	msp->is_ht = true;
msp              1530 net/mac80211/rc80211_minstrel_ht.c 	msp->is_ht = false;
msp              1531 net/mac80211/rc80211_minstrel_ht.c 	memset(&msp->legacy, 0, sizeof(msp->legacy));
msp              1532 net/mac80211/rc80211_minstrel_ht.c 	msp->legacy.r = msp->ratelist;
msp              1533 net/mac80211/rc80211_minstrel_ht.c 	msp->legacy.sample_table = msp->sample_table;
msp              1535 net/mac80211/rc80211_minstrel_ht.c 					   &msp->legacy);
msp              1559 net/mac80211/rc80211_minstrel_ht.c 	struct minstrel_ht_sta_priv *msp;
msp              1571 net/mac80211/rc80211_minstrel_ht.c 	msp = kzalloc(sizeof(*msp), gfp);
msp              1572 net/mac80211/rc80211_minstrel_ht.c 	if (!msp)
msp              1575 net/mac80211/rc80211_minstrel_ht.c 	msp->ratelist = kcalloc(max_rates, sizeof(struct minstrel_rate), gfp);
msp              1576 net/mac80211/rc80211_minstrel_ht.c 	if (!msp->ratelist)
msp              1579 net/mac80211/rc80211_minstrel_ht.c 	msp->sample_table = kmalloc_array(max_rates, SAMPLE_COLUMNS, gfp);
msp              1580 net/mac80211/rc80211_minstrel_ht.c 	if (!msp->sample_table)
msp              1583 net/mac80211/rc80211_minstrel_ht.c 	return msp;
msp              1586 net/mac80211/rc80211_minstrel_ht.c 	kfree(msp->ratelist);
msp              1588 net/mac80211/rc80211_minstrel_ht.c 	kfree(msp);
msp              1595 net/mac80211/rc80211_minstrel_ht.c 	struct minstrel_ht_sta_priv *msp = priv_sta;
msp              1597 net/mac80211/rc80211_minstrel_ht.c 	kfree(msp->sample_table);
msp              1598 net/mac80211/rc80211_minstrel_ht.c 	kfree(msp->ratelist);
msp              1599 net/mac80211/rc80211_minstrel_ht.c 	kfree(msp);
msp              1698 net/mac80211/rc80211_minstrel_ht.c 	struct minstrel_ht_sta_priv *msp = priv_sta;
msp              1699 net/mac80211/rc80211_minstrel_ht.c 	struct minstrel_ht_sta *mi = &msp->ht;
msp              1702 net/mac80211/rc80211_minstrel_ht.c 	if (!msp->is_ht)
msp               123 net/mac80211/rc80211_minstrel_ht_debugfs.c 	struct minstrel_ht_sta_priv *msp = inode->i_private;
msp               124 net/mac80211/rc80211_minstrel_ht_debugfs.c 	struct minstrel_ht_sta *mi = &msp->ht;
msp               130 net/mac80211/rc80211_minstrel_ht_debugfs.c 	if (!msp->is_ht) {
msp               131 net/mac80211/rc80211_minstrel_ht_debugfs.c 		inode->i_private = &msp->legacy;
msp               133 net/mac80211/rc80211_minstrel_ht_debugfs.c 		inode->i_private = msp;
msp               273 net/mac80211/rc80211_minstrel_ht_debugfs.c 	struct minstrel_ht_sta_priv *msp = inode->i_private;
msp               274 net/mac80211/rc80211_minstrel_ht_debugfs.c 	struct minstrel_ht_sta *mi = &msp->ht;
msp               280 net/mac80211/rc80211_minstrel_ht_debugfs.c 	if (!msp->is_ht) {
msp               281 net/mac80211/rc80211_minstrel_ht_debugfs.c 		inode->i_private = &msp->legacy;
msp               283 net/mac80211/rc80211_minstrel_ht_debugfs.c 		inode->i_private = msp;
msp               319 net/mac80211/rc80211_minstrel_ht_debugfs.c 	struct minstrel_ht_sta_priv *msp = priv_sta;
msp               321 net/mac80211/rc80211_minstrel_ht_debugfs.c 	debugfs_create_file("rc_stats", 0444, dir, msp,
msp               323 net/mac80211/rc80211_minstrel_ht_debugfs.c 	debugfs_create_file("rc_stats_csv", 0444, dir, msp,
msp              3116 security/smack/smack_lsm.c 	struct smack_known *msp = smack_of_ipc(isp);
msp              3124 security/smack/smack_lsm.c 	rc = smk_curacc(msp, access, &ad);
msp              3125 security/smack/smack_lsm.c 	rc = smk_bu_current("msq", msp, access, rc);
msp               395 sound/soc/ux500/ux500_msp_dai.c 		dev_err(drvdata->msp->dev,
msp               404 sound/soc/ux500/ux500_msp_dai.c 		dev_err(drvdata->msp->dev,
msp               411 sound/soc/ux500/ux500_msp_dai.c 		dev_err(drvdata->msp->dev,
msp               440 sound/soc/ux500/ux500_msp_dai.c 	if (ux500_msp_i2s_close(drvdata->msp,
msp               472 sound/soc/ux500/ux500_msp_dai.c 	ret = ux500_msp_i2s_open(drvdata->msp, &msp_config);
msp               481 sound/soc/ux500/ux500_msp_dai.c 		(drvdata->msp->f_bitclk > 19200000)) {
msp               651 sound/soc/ux500/ux500_msp_dai.c 		(int)drvdata->msp->id, cmd);
msp               653 sound/soc/ux500/ux500_msp_dai.c 	ret = ux500_msp_i2s_trigger(drvdata->msp, cmd, substream->stream);
msp               676 sound/soc/ux500/ux500_msp_dai.c 	playback_dma_data->addr = drvdata->msp->playback_dma_data.tx_rx_addr;
msp               677 sound/soc/ux500/ux500_msp_dai.c 	capture_dma_data->addr = drvdata->msp->capture_dma_data.tx_rx_addr;
msp               698 sound/soc/ux500/ux500_msp_dai.c 	drvdata->msp->playback_dma_data.data_size = drvdata->slot_width;
msp               699 sound/soc/ux500/ux500_msp_dai.c 	drvdata->msp->capture_dma_data.data_size = drvdata->slot_width;
msp               702 sound/soc/ux500/ux500_msp_dai.c 				  &drvdata->msp->playback_dma_data,
msp               703 sound/soc/ux500/ux500_msp_dai.c 				  &drvdata->msp->capture_dma_data);
msp               793 sound/soc/ux500/ux500_msp_dai.c 	ret = ux500_msp_i2s_init_msp(pdev, &drvdata->msp,
msp               795 sound/soc/ux500/ux500_msp_dai.c 	if (!drvdata->msp) {
msp               807 sound/soc/ux500/ux500_msp_dai.c 			__func__, drvdata->msp->id);
msp               836 sound/soc/ux500/ux500_msp_dai.c 	ux500_msp_i2s_cleanup_msp(pdev, drvdata->msp);
msp                49 sound/soc/ux500/ux500_msp_dai.h 	struct ux500_msp *msp;
msp               117 sound/soc/ux500/ux500_msp_i2s.c static void set_prot_desc_tx(struct ux500_msp *msp,
msp               127 sound/soc/ux500/ux500_msp_i2s.c 	if (msp->def_elem_len) {
msp               141 sound/soc/ux500/ux500_msp_i2s.c 	writel(temp_reg, msp->registers + MSP_TCF);
msp               144 sound/soc/ux500/ux500_msp_i2s.c static void set_prot_desc_rx(struct ux500_msp *msp,
msp               154 sound/soc/ux500/ux500_msp_i2s.c 	if (msp->def_elem_len) {
msp               169 sound/soc/ux500/ux500_msp_i2s.c 	writel(temp_reg, msp->registers + MSP_RCF);
msp               172 sound/soc/ux500/ux500_msp_i2s.c static int configure_protocol(struct ux500_msp *msp,
msp               180 sound/soc/ux500/ux500_msp_i2s.c 	msp->def_elem_len = config->def_elem_len;
msp               183 sound/soc/ux500/ux500_msp_i2s.c 			dev_err(msp->dev, "%s: ERROR: Invalid protocol!\n",
msp               194 sound/soc/ux500/ux500_msp_i2s.c 		dev_err(msp->dev,
msp               201 sound/soc/ux500/ux500_msp_i2s.c 		set_prot_desc_tx(msp, protdesc, data_size);
msp               203 sound/soc/ux500/ux500_msp_i2s.c 		set_prot_desc_rx(msp, protdesc, data_size);
msp               206 sound/soc/ux500/ux500_msp_i2s.c 	temp_reg = readl(msp->registers + MSP_GCR) & ~TX_CLK_POL_RISING;
msp               208 sound/soc/ux500/ux500_msp_i2s.c 	writel(temp_reg, msp->registers + MSP_GCR);
msp               209 sound/soc/ux500/ux500_msp_i2s.c 	temp_reg = readl(msp->registers + MSP_GCR) & ~RX_CLK_POL_RISING;
msp               211 sound/soc/ux500/ux500_msp_i2s.c 	writel(temp_reg, msp->registers + MSP_GCR);
msp               216 sound/soc/ux500/ux500_msp_i2s.c static int setup_bitclk(struct ux500_msp *msp, struct ux500_msp_config *config)
msp               225 sound/soc/ux500/ux500_msp_i2s.c 	reg_val_GCR = readl(msp->registers + MSP_GCR);
msp               226 sound/soc/ux500/ux500_msp_i2s.c 	writel(reg_val_GCR & ~SRG_ENABLE, msp->registers + MSP_GCR);
msp               249 sound/soc/ux500/ux500_msp_i2s.c 		dev_err(msp->dev, "%s: ERROR: Unknown protocol (%d)!\n",
msp               258 sound/soc/ux500/ux500_msp_i2s.c 	writel(temp_reg, msp->registers + MSP_SRG);
msp               260 sound/soc/ux500/ux500_msp_i2s.c 	msp->f_bitclk = (config->f_inputclk)/(sck_div + 1);
msp               264 sound/soc/ux500/ux500_msp_i2s.c 	reg_val_GCR = readl(msp->registers + MSP_GCR);
msp               265 sound/soc/ux500/ux500_msp_i2s.c 	writel(reg_val_GCR | SRG_ENABLE, msp->registers + MSP_GCR);
msp               271 sound/soc/ux500/ux500_msp_i2s.c static int configure_multichannel(struct ux500_msp *msp,
msp               280 sound/soc/ux500/ux500_msp_i2s.c 			dev_err(msp->dev,
msp               294 sound/soc/ux500/ux500_msp_i2s.c 			reg_val_MCR = readl(msp->registers + MSP_MCR);
msp               297 sound/soc/ux500/ux500_msp_i2s.c 				msp->registers + MSP_MCR);
msp               299 sound/soc/ux500/ux500_msp_i2s.c 				msp->registers + MSP_TCE0);
msp               301 sound/soc/ux500/ux500_msp_i2s.c 				msp->registers + MSP_TCE1);
msp               303 sound/soc/ux500/ux500_msp_i2s.c 				msp->registers + MSP_TCE2);
msp               305 sound/soc/ux500/ux500_msp_i2s.c 				msp->registers + MSP_TCE3);
msp               307 sound/soc/ux500/ux500_msp_i2s.c 			dev_err(msp->dev,
msp               315 sound/soc/ux500/ux500_msp_i2s.c 			reg_val_MCR = readl(msp->registers + MSP_MCR);
msp               318 sound/soc/ux500/ux500_msp_i2s.c 				msp->registers + MSP_MCR);
msp               320 sound/soc/ux500/ux500_msp_i2s.c 					msp->registers + MSP_RCE0);
msp               322 sound/soc/ux500/ux500_msp_i2s.c 					msp->registers + MSP_RCE1);
msp               324 sound/soc/ux500/ux500_msp_i2s.c 					msp->registers + MSP_RCE2);
msp               326 sound/soc/ux500/ux500_msp_i2s.c 					msp->registers + MSP_RCE3);
msp               328 sound/soc/ux500/ux500_msp_i2s.c 			dev_err(msp->dev,
msp               334 sound/soc/ux500/ux500_msp_i2s.c 			reg_val_MCR = readl(msp->registers + MSP_MCR);
msp               337 sound/soc/ux500/ux500_msp_i2s.c 				msp->registers + MSP_MCR);
msp               340 sound/soc/ux500/ux500_msp_i2s.c 					msp->registers + MSP_RCM);
msp               342 sound/soc/ux500/ux500_msp_i2s.c 					msp->registers + MSP_RCV);
msp               350 sound/soc/ux500/ux500_msp_i2s.c static int enable_msp(struct ux500_msp *msp, struct ux500_msp_config *config)
msp               356 sound/soc/ux500/ux500_msp_i2s.c 	configure_protocol(msp, config);
msp               357 sound/soc/ux500/ux500_msp_i2s.c 	setup_bitclk(msp, config);
msp               359 sound/soc/ux500/ux500_msp_i2s.c 		status = configure_multichannel(msp, config);
msp               361 sound/soc/ux500/ux500_msp_i2s.c 			dev_warn(msp->dev,
msp               368 sound/soc/ux500/ux500_msp_i2s.c 			!msp->capture_dma_data.dma_cfg) {
msp               369 sound/soc/ux500/ux500_msp_i2s.c 		dev_err(msp->dev, "%s: ERROR: MSP RX-mode is not configured!",
msp               374 sound/soc/ux500/ux500_msp_i2s.c 			!msp->playback_dma_data.dma_cfg) {
msp               375 sound/soc/ux500/ux500_msp_i2s.c 		dev_err(msp->dev, "%s: ERROR: MSP TX-mode is not configured!",
msp               380 sound/soc/ux500/ux500_msp_i2s.c 	reg_val_DMACR = readl(msp->registers + MSP_DMACR);
msp               385 sound/soc/ux500/ux500_msp_i2s.c 	writel(reg_val_DMACR, msp->registers + MSP_DMACR);
msp               387 sound/soc/ux500/ux500_msp_i2s.c 	writel(config->iodelay, msp->registers + MSP_IODLY);
msp               390 sound/soc/ux500/ux500_msp_i2s.c 	reg_val_GCR = readl(msp->registers + MSP_GCR);
msp               391 sound/soc/ux500/ux500_msp_i2s.c 	writel(reg_val_GCR | FRAME_GEN_ENABLE, msp->registers + MSP_GCR);
msp               396 sound/soc/ux500/ux500_msp_i2s.c static void flush_fifo_rx(struct ux500_msp *msp)
msp               401 sound/soc/ux500/ux500_msp_i2s.c 	reg_val_GCR = readl(msp->registers + MSP_GCR);
msp               402 sound/soc/ux500/ux500_msp_i2s.c 	writel(reg_val_GCR | RX_ENABLE, msp->registers + MSP_GCR);
msp               404 sound/soc/ux500/ux500_msp_i2s.c 	reg_val_FLR = readl(msp->registers + MSP_FLR);
msp               406 sound/soc/ux500/ux500_msp_i2s.c 		reg_val_DR = readl(msp->registers + MSP_DR);
msp               407 sound/soc/ux500/ux500_msp_i2s.c 		reg_val_FLR = readl(msp->registers + MSP_FLR);
msp               410 sound/soc/ux500/ux500_msp_i2s.c 	writel(reg_val_GCR, msp->registers + MSP_GCR);
msp               413 sound/soc/ux500/ux500_msp_i2s.c static void flush_fifo_tx(struct ux500_msp *msp)
msp               418 sound/soc/ux500/ux500_msp_i2s.c 	reg_val_GCR = readl(msp->registers + MSP_GCR);
msp               419 sound/soc/ux500/ux500_msp_i2s.c 	writel(reg_val_GCR | TX_ENABLE, msp->registers + MSP_GCR);
msp               420 sound/soc/ux500/ux500_msp_i2s.c 	writel(MSP_ITCR_ITEN | MSP_ITCR_TESTFIFO, msp->registers + MSP_ITCR);
msp               422 sound/soc/ux500/ux500_msp_i2s.c 	reg_val_FLR = readl(msp->registers + MSP_FLR);
msp               424 sound/soc/ux500/ux500_msp_i2s.c 		reg_val_TSTDR = readl(msp->registers + MSP_TSTDR);
msp               425 sound/soc/ux500/ux500_msp_i2s.c 		reg_val_FLR = readl(msp->registers + MSP_FLR);
msp               427 sound/soc/ux500/ux500_msp_i2s.c 	writel(0x0, msp->registers + MSP_ITCR);
msp               428 sound/soc/ux500/ux500_msp_i2s.c 	writel(reg_val_GCR, msp->registers + MSP_GCR);
msp               431 sound/soc/ux500/ux500_msp_i2s.c int ux500_msp_i2s_open(struct ux500_msp *msp,
msp               439 sound/soc/ux500/ux500_msp_i2s.c 		dev_err(msp->dev,
msp               448 sound/soc/ux500/ux500_msp_i2s.c 		dev_err(msp->dev, "%s: Error: No direction selected!\n",
msp               453 sound/soc/ux500/ux500_msp_i2s.c 	tx_busy = (msp->dir_busy & MSP_DIR_TX) > 0;
msp               454 sound/soc/ux500/ux500_msp_i2s.c 	rx_busy = (msp->dir_busy & MSP_DIR_RX) > 0;
msp               456 sound/soc/ux500/ux500_msp_i2s.c 		dev_err(msp->dev, "%s: Error: TX is in use!\n", __func__);
msp               460 sound/soc/ux500/ux500_msp_i2s.c 		dev_err(msp->dev, "%s: Error: RX is in use!\n", __func__);
msp               464 sound/soc/ux500/ux500_msp_i2s.c 	msp->dir_busy |= (tx_sel ? MSP_DIR_TX : 0) | (rx_sel ? MSP_DIR_RX : 0);
msp               479 sound/soc/ux500/ux500_msp_i2s.c 	old_reg = readl(msp->registers + MSP_GCR);
msp               482 sound/soc/ux500/ux500_msp_i2s.c 	writel(new_reg, msp->registers + MSP_GCR);
msp               484 sound/soc/ux500/ux500_msp_i2s.c 	res = enable_msp(msp, config);
msp               486 sound/soc/ux500/ux500_msp_i2s.c 		dev_err(msp->dev, "%s: ERROR: enable_msp failed (%d)!\n",
msp               491 sound/soc/ux500/ux500_msp_i2s.c 		msp->loopback_enable = 1;
msp               494 sound/soc/ux500/ux500_msp_i2s.c 	flush_fifo_tx(msp);
msp               495 sound/soc/ux500/ux500_msp_i2s.c 	flush_fifo_rx(msp);
msp               497 sound/soc/ux500/ux500_msp_i2s.c 	msp->msp_state = MSP_STATE_CONFIGURED;
msp               501 sound/soc/ux500/ux500_msp_i2s.c static void disable_msp_rx(struct ux500_msp *msp)
msp               505 sound/soc/ux500/ux500_msp_i2s.c 	reg_val_GCR = readl(msp->registers + MSP_GCR);
msp               506 sound/soc/ux500/ux500_msp_i2s.c 	writel(reg_val_GCR & ~RX_ENABLE, msp->registers + MSP_GCR);
msp               507 sound/soc/ux500/ux500_msp_i2s.c 	reg_val_DMACR = readl(msp->registers + MSP_DMACR);
msp               508 sound/soc/ux500/ux500_msp_i2s.c 	writel(reg_val_DMACR & ~RX_DMA_ENABLE, msp->registers + MSP_DMACR);
msp               509 sound/soc/ux500/ux500_msp_i2s.c 	reg_val_IMSC = readl(msp->registers + MSP_IMSC);
msp               512 sound/soc/ux500/ux500_msp_i2s.c 			msp->registers + MSP_IMSC);
msp               514 sound/soc/ux500/ux500_msp_i2s.c 	msp->dir_busy &= ~MSP_DIR_RX;
msp               517 sound/soc/ux500/ux500_msp_i2s.c static void disable_msp_tx(struct ux500_msp *msp)
msp               521 sound/soc/ux500/ux500_msp_i2s.c 	reg_val_GCR = readl(msp->registers + MSP_GCR);
msp               522 sound/soc/ux500/ux500_msp_i2s.c 	writel(reg_val_GCR & ~TX_ENABLE, msp->registers + MSP_GCR);
msp               523 sound/soc/ux500/ux500_msp_i2s.c 	reg_val_DMACR = readl(msp->registers + MSP_DMACR);
msp               524 sound/soc/ux500/ux500_msp_i2s.c 	writel(reg_val_DMACR & ~TX_DMA_ENABLE, msp->registers + MSP_DMACR);
msp               525 sound/soc/ux500/ux500_msp_i2s.c 	reg_val_IMSC = readl(msp->registers + MSP_IMSC);
msp               528 sound/soc/ux500/ux500_msp_i2s.c 			msp->registers + MSP_IMSC);
msp               530 sound/soc/ux500/ux500_msp_i2s.c 	msp->dir_busy &= ~MSP_DIR_TX;
msp               533 sound/soc/ux500/ux500_msp_i2s.c static int disable_msp(struct ux500_msp *msp, unsigned int dir)
msp               539 sound/soc/ux500/ux500_msp_i2s.c 	reg_val_GCR = readl(msp->registers + MSP_GCR);
msp               543 sound/soc/ux500/ux500_msp_i2s.c 		reg_val_GCR = readl(msp->registers + MSP_GCR);
msp               545 sound/soc/ux500/ux500_msp_i2s.c 				msp->registers + MSP_GCR);
msp               548 sound/soc/ux500/ux500_msp_i2s.c 		flush_fifo_tx(msp);
msp               551 sound/soc/ux500/ux500_msp_i2s.c 		writel((readl(msp->registers + MSP_GCR) &
msp               552 sound/soc/ux500/ux500_msp_i2s.c 			       (~TX_ENABLE)), msp->registers + MSP_GCR);
msp               555 sound/soc/ux500/ux500_msp_i2s.c 		flush_fifo_rx(msp);
msp               558 sound/soc/ux500/ux500_msp_i2s.c 		writel((readl(msp->registers + MSP_GCR) &
msp               560 sound/soc/ux500/ux500_msp_i2s.c 				msp->registers + MSP_GCR);
msp               562 sound/soc/ux500/ux500_msp_i2s.c 		disable_msp_tx(msp);
msp               563 sound/soc/ux500/ux500_msp_i2s.c 		disable_msp_rx(msp);
msp               565 sound/soc/ux500/ux500_msp_i2s.c 		disable_msp_tx(msp);
msp               567 sound/soc/ux500/ux500_msp_i2s.c 		disable_msp_rx(msp);
msp               572 sound/soc/ux500/ux500_msp_i2s.c int ux500_msp_i2s_trigger(struct ux500_msp *msp, int cmd, int direction)
msp               576 sound/soc/ux500/ux500_msp_i2s.c 	if (msp->msp_state == MSP_STATE_IDLE) {
msp               577 sound/soc/ux500/ux500_msp_i2s.c 		dev_err(msp->dev, "%s: ERROR: MSP is not configured!\n",
msp               590 sound/soc/ux500/ux500_msp_i2s.c 		reg_val_GCR = readl(msp->registers + MSP_GCR);
msp               591 sound/soc/ux500/ux500_msp_i2s.c 		writel(reg_val_GCR | enable_bit, msp->registers + MSP_GCR);
msp               598 sound/soc/ux500/ux500_msp_i2s.c 			disable_msp_tx(msp);
msp               600 sound/soc/ux500/ux500_msp_i2s.c 			disable_msp_rx(msp);
msp               609 sound/soc/ux500/ux500_msp_i2s.c int ux500_msp_i2s_close(struct ux500_msp *msp, unsigned int dir)
msp               613 sound/soc/ux500/ux500_msp_i2s.c 	dev_dbg(msp->dev, "%s: Enter (dir = 0x%01x).\n", __func__, dir);
msp               615 sound/soc/ux500/ux500_msp_i2s.c 	status = disable_msp(msp, dir);
msp               616 sound/soc/ux500/ux500_msp_i2s.c 	if (msp->dir_busy == 0) {
msp               618 sound/soc/ux500/ux500_msp_i2s.c 		msp->msp_state = MSP_STATE_IDLE;
msp               619 sound/soc/ux500/ux500_msp_i2s.c 		writel((readl(msp->registers + MSP_GCR) &
msp               621 sound/soc/ux500/ux500_msp_i2s.c 			      msp->registers + MSP_GCR);
msp               623 sound/soc/ux500/ux500_msp_i2s.c 		writel(0, msp->registers + MSP_GCR);
msp               624 sound/soc/ux500/ux500_msp_i2s.c 		writel(0, msp->registers + MSP_TCF);
msp               625 sound/soc/ux500/ux500_msp_i2s.c 		writel(0, msp->registers + MSP_RCF);
msp               626 sound/soc/ux500/ux500_msp_i2s.c 		writel(0, msp->registers + MSP_DMACR);
msp               627 sound/soc/ux500/ux500_msp_i2s.c 		writel(0, msp->registers + MSP_SRG);
msp               628 sound/soc/ux500/ux500_msp_i2s.c 		writel(0, msp->registers + MSP_MCR);
msp               629 sound/soc/ux500/ux500_msp_i2s.c 		writel(0, msp->registers + MSP_RCM);
msp               630 sound/soc/ux500/ux500_msp_i2s.c 		writel(0, msp->registers + MSP_RCV);
msp               631 sound/soc/ux500/ux500_msp_i2s.c 		writel(0, msp->registers + MSP_TCE0);
msp               632 sound/soc/ux500/ux500_msp_i2s.c 		writel(0, msp->registers + MSP_TCE1);
msp               633 sound/soc/ux500/ux500_msp_i2s.c 		writel(0, msp->registers + MSP_TCE2);
msp               634 sound/soc/ux500/ux500_msp_i2s.c 		writel(0, msp->registers + MSP_TCE3);
msp               635 sound/soc/ux500/ux500_msp_i2s.c 		writel(0, msp->registers + MSP_RCE0);
msp               636 sound/soc/ux500/ux500_msp_i2s.c 		writel(0, msp->registers + MSP_RCE1);
msp               637 sound/soc/ux500/ux500_msp_i2s.c 		writel(0, msp->registers + MSP_RCE2);
msp               638 sound/soc/ux500/ux500_msp_i2s.c 		writel(0, msp->registers + MSP_RCE3);
msp               646 sound/soc/ux500/ux500_msp_i2s.c 				struct ux500_msp *msp,
msp               658 sound/soc/ux500/ux500_msp_i2s.c 	msp->playback_dma_data.dma_cfg = devm_kzalloc(&pdev->dev,
msp               661 sound/soc/ux500/ux500_msp_i2s.c 	if (!msp->playback_dma_data.dma_cfg)
msp               664 sound/soc/ux500/ux500_msp_i2s.c 	msp->capture_dma_data.dma_cfg = devm_kzalloc(&pdev->dev,
msp               667 sound/soc/ux500/ux500_msp_i2s.c 	if (!msp->capture_dma_data.dma_cfg)
msp               679 sound/soc/ux500/ux500_msp_i2s.c 	struct ux500_msp *msp;
msp               683 sound/soc/ux500/ux500_msp_i2s.c 	msp = *msp_p;
msp               684 sound/soc/ux500/ux500_msp_i2s.c 	if (!msp)
msp               689 sound/soc/ux500/ux500_msp_i2s.c 			ret = ux500_msp_i2s_of_init_msp(pdev, msp,
msp               696 sound/soc/ux500/ux500_msp_i2s.c 		msp->playback_dma_data.dma_cfg = platform_data->msp_i2s_dma_tx;
msp               697 sound/soc/ux500/ux500_msp_i2s.c 		msp->capture_dma_data.dma_cfg = platform_data->msp_i2s_dma_rx;
msp               698 sound/soc/ux500/ux500_msp_i2s.c 		msp->id = platform_data->id;
msp               701 sound/soc/ux500/ux500_msp_i2s.c 	msp->dev = &pdev->dev;
msp               710 sound/soc/ux500/ux500_msp_i2s.c 	msp->playback_dma_data.tx_rx_addr = res->start + MSP_DR;
msp               711 sound/soc/ux500/ux500_msp_i2s.c 	msp->capture_dma_data.tx_rx_addr = res->start + MSP_DR;
msp               713 sound/soc/ux500/ux500_msp_i2s.c 	msp->registers = devm_ioremap(&pdev->dev, res->start,
msp               715 sound/soc/ux500/ux500_msp_i2s.c 	if (msp->registers == NULL) {
msp               720 sound/soc/ux500/ux500_msp_i2s.c 	msp->msp_state = MSP_STATE_IDLE;
msp               721 sound/soc/ux500/ux500_msp_i2s.c 	msp->loopback_enable = 0;
msp               727 sound/soc/ux500/ux500_msp_i2s.c 			struct ux500_msp *msp)
msp               729 sound/soc/ux500/ux500_msp_i2s.c 	dev_dbg(msp->dev, "%s: Enter (id = %d).\n", __func__, msp->id);
msp               492 sound/soc/ux500/ux500_msp_i2s.h 			struct ux500_msp *msp);
msp               493 sound/soc/ux500/ux500_msp_i2s.h int ux500_msp_i2s_open(struct ux500_msp *msp, struct ux500_msp_config *config);
msp               494 sound/soc/ux500/ux500_msp_i2s.h int ux500_msp_i2s_close(struct ux500_msp *msp,
msp               496 sound/soc/ux500/ux500_msp_i2s.h int ux500_msp_i2s_trigger(struct ux500_msp *msp, int cmd,