Lines Matching refs:die
303 unsigned boundary, blk, die = 0; in flexonenand_block() local
306 die = 1; in flexonenand_block()
310 boundary = this->boundary[die]; in flexonenand_block()
316 blk += die ? this->density_mask : 0; in flexonenand_block()
337 int die = 0, boundary; in flexonenand_addr() local
341 die = 1; in flexonenand_addr()
345 boundary = this->boundary[die]; in flexonenand_addr()
3385 unsigned die, bdry; in flexonenand_get_boundary() local
3392 for (die = 0; die < this->dies; die++) { in flexonenand_get_boundary()
3393 this->command(mtd, FLEXONENAND_CMD_PI_ACCESS, die, 0); in flexonenand_get_boundary()
3396 this->command(mtd, FLEXONENAND_CMD_READ_PI, die, 0); in flexonenand_get_boundary()
3404 this->boundary[die] = bdry & FLEXONENAND_PI_MASK; in flexonenand_get_boundary()
3409 printk(KERN_INFO "Die %d boundary: %d%s\n", die, in flexonenand_get_boundary()
3410 this->boundary[die], locked ? "(Locked)" : "(Unlocked)"); in flexonenand_get_boundary()
3426 int die, i, eraseshift, density; in flexonenand_get_size() local
3440 die = ofs = 0; in flexonenand_get_size()
3442 for (; die < this->dies; die++) { in flexonenand_get_size()
3443 if (!die || this->boundary[die-1] != maxbdry) { in flexonenand_get_size()
3448 this->boundary[die] + 1; in flexonenand_get_size()
3454 this->boundary[die] + 1; in flexonenand_get_size()
3455 ofs += (this->boundary[die] + 1) << (eraseshift - 1); in flexonenand_get_size()
3457 if (this->boundary[die] != maxbdry) { in flexonenand_get_size()
3462 this->boundary[die]; in flexonenand_get_size()
3482 for (die = 0, mtd->size = 0; die < this->dies; die++) { in flexonenand_get_size()
3483 this->diesize[die] = (loff_t)blksperdie << this->erase_shift; in flexonenand_get_size()
3484 this->diesize[die] -= (loff_t)(this->boundary[die] + 1) in flexonenand_get_size()
3486 mtd->size += this->diesize[die]; in flexonenand_get_size()
3550 static int flexonenand_set_boundary(struct mtd_info *mtd, int die, in flexonenand_set_boundary() argument
3558 if (die && (!ONENAND_IS_DDP(this))) in flexonenand_set_boundary()
3562 if (boundary < 0 || boundary == this->boundary[die]) in flexonenand_set_boundary()
3576 old = this->boundary[die] + (die * this->density_mask); in flexonenand_set_boundary()
3577 new = boundary + (die * this->density_mask); in flexonenand_set_boundary()
3585 this->command(mtd, FLEXONENAND_CMD_PI_ACCESS, die, 0); in flexonenand_set_boundary()
3589 this->command(mtd, FLEXONENAND_CMD_READ_PI, die, 0); in flexonenand_set_boundary()
3600 die, boundary, lock ? "(Locked)" : "(Unlocked)"); in flexonenand_set_boundary()
3602 addr = die ? this->diesize[0] : 0; in flexonenand_set_boundary()
3611 __func__, die); in flexonenand_set_boundary()
3620 __func__, die); in flexonenand_set_boundary()
3624 this->command(mtd, FLEXONENAND_CMD_PI_UPDATE, die, 0); in flexonenand_set_boundary()