Lines Matching refs:boundary
303 unsigned boundary, blk, die = 0; in flexonenand_block() local
310 boundary = this->boundary[die]; in flexonenand_block()
313 if (blk > boundary) in flexonenand_block()
314 blk = (blk + boundary + 1) >> 1; in flexonenand_block()
337 int die = 0, boundary; in flexonenand_addr() local
345 boundary = this->boundary[die]; in flexonenand_addr()
347 if (block > (boundary + 1)) in flexonenand_addr()
348 ofs += (loff_t)(block - boundary - 1) << (this->erase_shift - 1); in flexonenand_addr()
1226 int ret = 0, boundary = 0; in onenand_read_ops_nolock() local
1277 boundary = 1; in onenand_read_ops_nolock()
1279 boundary = 0; in onenand_read_ops_nolock()
1304 if (unlikely(boundary)) in onenand_read_ops_nolock()
3416 this->boundary[die] = bdry & FLEXONENAND_PI_MASK; in flexonenand_get_boundary()
3422 this->boundary[die], locked ? "(Locked)" : "(Unlocked)"); in flexonenand_get_boundary()
3455 if (!die || this->boundary[die-1] != maxbdry) { in flexonenand_get_size()
3460 this->boundary[die] + 1; in flexonenand_get_size()
3466 this->boundary[die] + 1; in flexonenand_get_size()
3467 ofs += (this->boundary[die] + 1) << (eraseshift - 1); in flexonenand_get_size()
3469 if (this->boundary[die] != maxbdry) { in flexonenand_get_size()
3474 this->boundary[die]; in flexonenand_get_size()
3496 this->diesize[die] -= (loff_t)(this->boundary[die] + 1) in flexonenand_get_size()
3563 int boundary, int lock) in flexonenand_set_boundary() argument
3574 if (boundary < 0 || boundary == this->boundary[die]) in flexonenand_set_boundary()
3581 if (boundary >= blksperdie) { in flexonenand_set_boundary()
3588 old = this->boundary[die] + (die * this->density_mask); in flexonenand_set_boundary()
3589 new = boundary + (die * this->density_mask); in flexonenand_set_boundary()
3612 die, boundary, lock ? "(Locked)" : "(Unlocked)"); in flexonenand_set_boundary()
3616 boundary &= FLEXONENAND_PI_MASK; in flexonenand_set_boundary()
3617 boundary |= lock ? 0 : (3 << FLEXONENAND_PI_UNLOCK_SHIFT); in flexonenand_set_boundary()
3627 this->write_word(boundary, this->base + ONENAND_DATARAM); in flexonenand_set_boundary()