Lines Matching refs:pio
109 } pio;
247 host->pio.index = 0;
248 host->pio.offset = 0;
249 host->pio.len = 0;
360 (data->blocks * data->blksz) - host->pio.len;
390 sg = &data->sg[host->pio.index];
391 sg_ptr = kmap_local_page(sg_page(sg)) + sg->offset + host->pio.offset;
394 sg_len = data->sg[host->pio.index].length - host->pio.offset;
397 max = (sg_len > host->pio.len) ? host->pio.len : sg_len;
414 host->pio.len -= count;
415 host->pio.offset += count;
418 host->pio.index++;
419 host->pio.offset = 0;
422 if (host->pio.len == 0) {
445 max = host->pio.len;
447 if (host->pio.index < host->dma.len) {
448 sg = &data->sg[host->pio.index];
449 sg_ptr = kmap_local_page(sg_page(sg)) + sg->offset + host->pio.offset;
452 sg_len = sg_dma_len(&data->sg[host->pio.index]) - host->pio.offset;
470 host->pio.len, count);
476 host->pio.len, count);
481 host->pio.len, count);
493 host->pio.len -= count;
494 host->pio.offset += count;
497 host->pio.index++;
498 host->pio.offset = 0;
501 if (host->pio.len == 0) {
654 host->pio.index = 0;
655 host->pio.offset = 0;
656 host->pio.len = datalen;
1076 host->flags & HOST_F_DMA ? "dma" : "pio");