Lines Matching refs:pcm_data

123 	struct pcm_int_data *pcm_data = map->fldrv_priv;  in ow_reg_add()  local
125 val = map->pfow_base + offset*pcm_data->bus_width; in ow_reg_add()
138 struct pcm_int_data *pcm_data = map->fldrv_priv; in ow_enable() local
140 writel_relaxed(build_mr_cfgmask(pcm_data->bus_width) | 0x18, in ow_enable()
141 pcm_data->ctl_regs + LPDDR2_MODE_REG_CFG); in ow_enable()
142 writel_relaxed(0x01, pcm_data->ctl_regs + LPDDR2_MODE_REG_DATA); in ow_enable()
153 struct pcm_int_data *pcm_data = map->fldrv_priv; in ow_disable() local
155 writel_relaxed(build_mr_cfgmask(pcm_data->bus_width) | 0x18, in ow_disable()
156 pcm_data->ctl_regs + LPDDR2_MODE_REG_CFG); in ow_disable()
157 writel_relaxed(0x02, pcm_data->ctl_regs + LPDDR2_MODE_REG_DATA); in ow_disable()
171 struct pcm_int_data *pcm_data = map->fldrv_priv; in lpddr2_nvm_do_op() local
172 u_int sr_ok_datamask = build_sr_ok_datamask(pcm_data->bus_width); in lpddr2_nvm_do_op()
191 if (pcm_data->bus_width == 0x0004) { /* 2x16 devices stacked */ in lpddr2_nvm_do_op()
213 if (pcm_data->bus_width == 0x0004) /* 2x16 devices stacked */ in lpddr2_nvm_do_op()
220 if (pcm_data->bus_width == 0x0004) {/* 2x16 devices stacked */ in lpddr2_nvm_do_op()
320 struct pcm_int_data *pcm_data = map->fldrv_priv; in lpddr2_nvm_write() local
338 if (pcm_data->bus_width == 0x0004) {/* 2x16 devices */ in lpddr2_nvm_write()
347 add += pcm_data->bus_width; in lpddr2_nvm_write()
348 tot_len += pcm_data->bus_width; in lpddr2_nvm_write()
416 struct pcm_int_data *pcm_data; in lpddr2_nvm_probe() local
419 pcm_data = devm_kzalloc(&pdev->dev, sizeof(*pcm_data), GFP_KERNEL); in lpddr2_nvm_probe()
420 if (!pcm_data) in lpddr2_nvm_probe()
423 pcm_data->bus_width = BUS_WIDTH; in lpddr2_nvm_probe()
443 .bankwidth = pcm_data->bus_width / 2, in lpddr2_nvm_probe()
445 .fldrv_priv = pcm_data, in lpddr2_nvm_probe()
454 pcm_data->ctl_regs = devm_ioremap_resource(&pdev->dev, control_regs); in lpddr2_nvm_probe()
455 if (IS_ERR(pcm_data->ctl_regs)) in lpddr2_nvm_probe()
456 return PTR_ERR(pcm_data->ctl_regs); in lpddr2_nvm_probe()
464 mtd->erasesize = ERASE_BLOCKSIZE * pcm_data->bus_width; in lpddr2_nvm_probe()
465 mtd->writebufsize = WRITE_BUFFSIZE * pcm_data->bus_width; in lpddr2_nvm_probe()