Lines Matching refs:tr
277 static int do_transfer(struct spectra_nand_dev *tr, struct request *req)
303 if (blk_rq_pos(req) + blk_rq_cur_sectors(req) > get_capacity(tr->gd)) {
309 (int)get_capacity(tr->gd));
328 if (GLOB_FTL_Page_Read(tr->tmp_buf, addr)) {
333 memcpy(buf, tr->tmp_buf + (rsect << 9), tsect << 9);
352 if (GLOB_FTL_Page_Read(tr->tmp_buf, addr)) {
357 memcpy(buf, tr->tmp_buf, (nsect % ratio) << 9);
370 if (GLOB_FTL_Page_Read(tr->tmp_buf, addr)) {
375 memcpy(tr->tmp_buf + (rsect << 9), buf, tsect << 9);
376 if (GLOB_FTL_Page_Write(tr->tmp_buf, addr)) {
399 if (GLOB_FTL_Page_Read(tr->tmp_buf, addr)) {
404 memcpy(tr->tmp_buf, buf, (nsect % ratio) << 9);
405 if (GLOB_FTL_Page_Write(tr->tmp_buf, addr)) {
428 struct spectra_nand_dev *tr = arg;
429 struct request_queue *rq = tr->queue;
453 res = do_transfer(tr, req);