Lines Matching defs:boundary

39 /* Default Flex-OneNAND boundary and lock respectively */
45 "DIE_BDRY: SLC boundary of the die"
46 "LOCK: Locking information for SLC boundary"
47 " : 0->Set boundary in unlocked status"
48 " : 1->Set boundary in locked status");
303 unsigned boundary, blk, die = 0;
310 boundary = this->boundary[die];
313 if (blk > boundary)
314 blk = (blk + boundary + 1) >> 1;
337 int die = 0, boundary;
345 boundary = this->boundary[die];
347 if (block > (boundary + 1))
348 ofs += (loff_t)(block - boundary - 1) << (this->erase_shift - 1);
1226 int ret = 0, boundary = 0;
1270 * Chip boundary handling in DDP
1277 boundary = 1;
1279 boundary = 0;
1304 if (unlikely(boundary))
2203 /* do not cross chip boundary */
2364 /* Start address within region must align on block boundary.
2371 /* Start address must align on block boundary */
2377 /* Length must align on block boundary */
3060 /* Check User/Factory boundary */
3391 * flexonenand_get_boundary - Reads the SLC boundary
3416 this->boundary[die] = bdry & FLEXONENAND_PI_MASK;
3421 printk(KERN_INFO "Die %d boundary: %d%s\n", die,
3422 this->boundary[die], locked ? "(Locked)" : "(Unlocked)");
3432 * boundary[], diesize[], mtd->size, mtd->erasesize
3450 /* This fills up the device boundary */
3455 if (!die || this->boundary[die-1] != maxbdry) {
3460 this->boundary[die] + 1;
3466 this->boundary[die] + 1;
3467 ofs += (this->boundary[die] + 1) << (eraseshift - 1);
3469 if (this->boundary[die] != maxbdry) {
3474 this->boundary[die];
3496 this->diesize[die] -= (loff_t)(this->boundary[die] + 1)
3560 * flexonenand_set_boundary - Writes the SLC boundary
3563 int boundary, int lock)
3573 /* boundary value of -1 indicates no required change */
3574 if (boundary < 0 || boundary == this->boundary[die])
3581 if (boundary >= blksperdie) {
3582 printk(KERN_ERR "%s: Invalid boundary value. "
3588 old = this->boundary[die] + (die * this->density_mask);
3589 new = boundary + (die * this->density_mask);
3593 "before boundary change\n", __func__);
3600 /* Check is boundary is locked */
3606 printk(KERN_ERR "%s: boundary locked\n", __func__);
3611 printk(KERN_INFO "Changing die %d boundary: %d%s\n",
3612 die, boundary, lock ? "(Locked)" : "(Unlocked)");
3616 boundary &= FLEXONENAND_PI_MASK;
3617 boundary |= lock ? 0 : (3 << FLEXONENAND_PI_UNLOCK_SHIFT);
3627 this->write_word(boundary, this->base + ONENAND_DATARAM);
3642 /* Recalculate device size on boundary change*/