lpddr 37 drivers/mtd/lpddr/lpddr_cmds.c struct lpddr_private *lpddr = map->fldrv_priv; lpddr 64 drivers/mtd/lpddr/lpddr_cmds.c mtd->size = 1 << lpddr->qinfo->DevSizeShift; lpddr 65 drivers/mtd/lpddr/lpddr_cmds.c mtd->erasesize = 1 << lpddr->qinfo->UniformBlockSizeShift; lpddr 66 drivers/mtd/lpddr/lpddr_cmds.c mtd->writesize = 1 << lpddr->qinfo->BufSizeShift; lpddr 68 drivers/mtd/lpddr/lpddr_cmds.c shared = kmalloc_array(lpddr->numchips, sizeof(struct flchip_shared), lpddr 75 drivers/mtd/lpddr/lpddr_cmds.c chip = &lpddr->chips[0]; lpddr 76 drivers/mtd/lpddr/lpddr_cmds.c numchips = lpddr->numchips / lpddr->qinfo->HWPartsNum; lpddr 80 drivers/mtd/lpddr/lpddr_cmds.c for (j = 0; j < lpddr->qinfo->HWPartsNum; j++) { lpddr 81 drivers/mtd/lpddr/lpddr_cmds.c *chip = lpddr->chips[i]; lpddr 82 drivers/mtd/lpddr/lpddr_cmds.c chip->start += j << lpddr->chipshift; lpddr 268 drivers/mtd/lpddr/lpddr_cmds.c struct lpddr_private *lpddr = map->fldrv_priv; lpddr 282 drivers/mtd/lpddr/lpddr_cmds.c if (!lpddr->qinfo->SuspEraseSupp || lpddr 380 drivers/mtd/lpddr/lpddr_cmds.c struct lpddr_private *lpddr = map->fldrv_priv; lpddr 387 drivers/mtd/lpddr/lpddr_cmds.c wbufsize = 1 << lpddr->qinfo->BufSizeShift; lpddr 445 drivers/mtd/lpddr/lpddr_cmds.c ret = wait_for_ready(map, chip, (1<<lpddr->qinfo->ProgBufferTime)); lpddr 460 drivers/mtd/lpddr/lpddr_cmds.c struct lpddr_private *lpddr = map->fldrv_priv; lpddr 461 drivers/mtd/lpddr/lpddr_cmds.c int chipnum = adr >> lpddr->chipshift; lpddr 462 drivers/mtd/lpddr/lpddr_cmds.c struct flchip *chip = &lpddr->chips[chipnum]; lpddr 473 drivers/mtd/lpddr/lpddr_cmds.c ret = wait_for_ready(map, chip, (1<<lpddr->qinfo->BlockEraseTime)*1000); lpddr 488 drivers/mtd/lpddr/lpddr_cmds.c struct lpddr_private *lpddr = map->fldrv_priv; lpddr 489 drivers/mtd/lpddr/lpddr_cmds.c int chipnum = adr >> lpddr->chipshift; lpddr 490 drivers/mtd/lpddr/lpddr_cmds.c struct flchip *chip = &lpddr->chips[chipnum]; lpddr 512 drivers/mtd/lpddr/lpddr_cmds.c struct lpddr_private *lpddr = map->fldrv_priv; lpddr 513 drivers/mtd/lpddr/lpddr_cmds.c int chipnum = adr >> lpddr->chipshift; lpddr 515 drivers/mtd/lpddr/lpddr_cmds.c struct flchip *chip = &lpddr->chips[chipnum]; lpddr 522 drivers/mtd/lpddr/lpddr_cmds.c ofs = adr - (chipnum << lpddr->chipshift); lpddr 528 drivers/mtd/lpddr/lpddr_cmds.c if (chipnum >= lpddr->numchips) lpddr 537 drivers/mtd/lpddr/lpddr_cmds.c if ((len + ofs - 1) >> lpddr->chipshift) lpddr 538 drivers/mtd/lpddr/lpddr_cmds.c thislen = (1<<lpddr->chipshift) - ofs; lpddr 554 drivers/mtd/lpddr/lpddr_cmds.c last_end += 1 << lpddr->chipshift; lpddr 556 drivers/mtd/lpddr/lpddr_cmds.c chip = &lpddr->chips[chipnum]; lpddr 564 drivers/mtd/lpddr/lpddr_cmds.c struct lpddr_private *lpddr = map->fldrv_priv; lpddr 565 drivers/mtd/lpddr/lpddr_cmds.c int chipnum = adr >> lpddr->chipshift, err = 0; lpddr 569 drivers/mtd/lpddr/lpddr_cmds.c ofs = adr - (chipnum << lpddr->chipshift); lpddr 575 drivers/mtd/lpddr/lpddr_cmds.c chip = &lpddr->chips[chipnum]; lpddr 576 drivers/mtd/lpddr/lpddr_cmds.c if (chipnum >= lpddr->numchips) lpddr 579 drivers/mtd/lpddr/lpddr_cmds.c if ((len + ofs - 1) >> lpddr->chipshift) lpddr 580 drivers/mtd/lpddr/lpddr_cmds.c thislen = (1<<lpddr->chipshift) - ofs; lpddr 622 drivers/mtd/lpddr/lpddr_cmds.c struct lpddr_private *lpddr = map->fldrv_priv; lpddr 626 drivers/mtd/lpddr/lpddr_cmds.c int wbufsize = 1 << lpddr->qinfo->BufSizeShift; lpddr 635 drivers/mtd/lpddr/lpddr_cmds.c chipnum = to >> lpddr->chipshift; lpddr 647 drivers/mtd/lpddr/lpddr_cmds.c ret = do_write_buffer(map, &lpddr->chips[chipnum], lpddr 670 drivers/mtd/lpddr/lpddr_cmds.c struct lpddr_private *lpddr = map->fldrv_priv; lpddr 671 drivers/mtd/lpddr/lpddr_cmds.c int size = 1 << lpddr->qinfo->UniformBlockSizeShift; lpddr 693 drivers/mtd/lpddr/lpddr_cmds.c struct lpddr_private *lpddr = map->fldrv_priv; lpddr 694 drivers/mtd/lpddr/lpddr_cmds.c int chipnum = adr >> lpddr->chipshift; lpddr 695 drivers/mtd/lpddr/lpddr_cmds.c struct flchip *chip = &lpddr->chips[chipnum]; lpddr 20 drivers/mtd/lpddr/qinfo_probe.c static int lpddr_chip_setup(struct map_info *map, struct lpddr_private *lpddr); lpddr 24 drivers/mtd/lpddr/qinfo_probe.c struct lpddr_private *lpddr); lpddr 91 drivers/mtd/lpddr/qinfo_probe.c static int lpddr_pfow_present(struct map_info *map, struct lpddr_private *lpddr) lpddr 120 drivers/mtd/lpddr/qinfo_probe.c static int lpddr_chip_setup(struct map_info *map, struct lpddr_private *lpddr) lpddr 123 drivers/mtd/lpddr/qinfo_probe.c lpddr->qinfo = kzalloc(sizeof(struct qinfo_chip), GFP_KERNEL); lpddr 124 drivers/mtd/lpddr/qinfo_probe.c if (!lpddr->qinfo) lpddr 128 drivers/mtd/lpddr/qinfo_probe.c lpddr->ManufactId = CMDVAL(map_read(map, map->pfow_base + PFOW_MANUFACTURER_ID)); lpddr 130 drivers/mtd/lpddr/qinfo_probe.c lpddr->DevId = CMDVAL(map_read(map, map->pfow_base + PFOW_DEVICE_ID)); lpddr 132 drivers/mtd/lpddr/qinfo_probe.c lpddr->qinfo->DevSizeShift = lpddr_info_query(map, "DevSizeShift"); lpddr 133 drivers/mtd/lpddr/qinfo_probe.c lpddr->qinfo->TotalBlocksNum = lpddr_info_query(map, "TotalBlocksNum"); lpddr 134 drivers/mtd/lpddr/qinfo_probe.c lpddr->qinfo->BufSizeShift = lpddr_info_query(map, "BufSizeShift"); lpddr 135 drivers/mtd/lpddr/qinfo_probe.c lpddr->qinfo->HWPartsNum = lpddr_info_query(map, "HWPartsNum"); lpddr 136 drivers/mtd/lpddr/qinfo_probe.c lpddr->qinfo->UniformBlockSizeShift = lpddr 138 drivers/mtd/lpddr/qinfo_probe.c lpddr->qinfo->SuspEraseSupp = lpddr_info_query(map, "SuspEraseSupp"); lpddr 139 drivers/mtd/lpddr/qinfo_probe.c lpddr->qinfo->SingleWordProgTime = lpddr 141 drivers/mtd/lpddr/qinfo_probe.c lpddr->qinfo->ProgBufferTime = lpddr_info_query(map, "ProgBufferTime"); lpddr 142 drivers/mtd/lpddr/qinfo_probe.c lpddr->qinfo->BlockEraseTime = lpddr_info_query(map, "BlockEraseTime"); lpddr 147 drivers/mtd/lpddr/qinfo_probe.c struct lpddr_private lpddr; lpddr 158 drivers/mtd/lpddr/qinfo_probe.c memset(&lpddr, 0, sizeof(struct lpddr_private)); lpddr 159 drivers/mtd/lpddr/qinfo_probe.c if (!lpddr_pfow_present(map, &lpddr)) lpddr 162 drivers/mtd/lpddr/qinfo_probe.c if (!lpddr_chip_setup(map, &lpddr)) lpddr 166 drivers/mtd/lpddr/qinfo_probe.c lpddr.chipshift = lpddr.qinfo->DevSizeShift; lpddr 167 drivers/mtd/lpddr/qinfo_probe.c lpddr.numchips = 1; lpddr 169 drivers/mtd/lpddr/qinfo_probe.c numvirtchips = lpddr.numchips * lpddr.qinfo->HWPartsNum; lpddr 175 drivers/mtd/lpddr/qinfo_probe.c memcpy(retlpddr, &lpddr, sizeof(struct lpddr_private)); lpddr 187 drivers/mtd/lpddr/qinfo_probe.c struct lpddr_private *lpddr; lpddr 190 drivers/mtd/lpddr/qinfo_probe.c lpddr = lpddr_probe_chip(map); lpddr 191 drivers/mtd/lpddr/qinfo_probe.c if (!lpddr) lpddr 194 drivers/mtd/lpddr/qinfo_probe.c map->fldrv_priv = lpddr; lpddr 206 drivers/mtd/lpddr/qinfo_probe.c kfree(lpddr->qinfo); lpddr 207 drivers/mtd/lpddr/qinfo_probe.c kfree(lpddr);