Searched refs:writepos (Results 1 – 3 of 3) sorted by relevance
81 unsigned int writepos; member222 unsigned int writepos = fifo->writepos; in fifo_write() local230 unsigned int nrail = fifo->bufsize - writepos; in fifo_write()238 fifo->writepos = writepos; in fifo_write()247 rc = (*copier)(fifo->mem[writebuf] + writepos, data + done, n); in fifo_write()255 writepos += n; in fifo_write()258 if (writepos == fifo->bufsize) { in fifo_write()259 writepos = 0; in fifo_write()403 fifo->writepos = 0; in fifo_init()
620 loff_t writepos; in mtdswap_write_block() local642 writepos = (loff_t)*bp << PAGE_SHIFT; in mtdswap_write_block()643 ret = mtd_write(mtd, writepos, PAGE_SIZE, &retlen, buf); in mtdswap_write_block()
6221 sector_t writepos, readpos, safepos; in reshape_request() local6263 writepos = conf->reshape_progress; in reshape_request()6264 sector_div(writepos, new_data_disks); in reshape_request()6270 BUG_ON(writepos < reshape_sectors); in reshape_request()6271 writepos -= reshape_sectors; in reshape_request()6275 writepos += reshape_sectors; in reshape_request()6289 stripe_addr = writepos; in reshape_request()6295 BUG_ON(writepos != sector_nr + reshape_sectors); in reshape_request()6323 writepos += conf->min_offset_diff; in reshape_request()6326 ? (safepos > writepos && readpos < writepos) in reshape_request()[all …]