/linux/drivers/mmc/host/ |
H A D | toshsd.c | 160 struct sg_mapping_iter *sg_miter = &host->sg_miter; in toshsd_thread_irq() local 175 if (!sg_miter_next(sg_miter)) in toshsd_thread_irq() 178 buf = sg_miter->addr; in toshsd_thread_irq() 183 count = sg_miter->length; in toshsd_thread_irq() 196 sg_miter->consumed = count; in toshsd_thread_irq() 197 sg_miter_stop(sg_miter); in toshsd_thread_irq() 488 sg_miter_start(&host->sg_miter, data->sg, data->sg_len, flags); in toshsd_start_data()
|
H A D | dw_mmc.c | 1165 sg_miter_start(&host->sg_miter, data->sg, data->sg_len, flags); in dw_mci_submit_data() 1756 sg_miter_stop(&host->sg_miter); in dw_mci_reset() 2683 struct sg_mapping_iter *sg_miter = &host->sg_miter; in dw_mci_read_data_pio() local 2693 if (!sg_miter_next(sg_miter)) in dw_mci_read_data_pio() 2696 host->sg = sg_miter->piter.sg; in dw_mci_read_data_pio() 2697 buf = sg_miter->addr; in dw_mci_read_data_pio() 2698 remain = sg_miter->length; in dw_mci_read_data_pio() 2713 sg_miter->consumed = offset; in dw_mci_read_data_pio() 2721 if (!sg_miter_next(sg_miter)) in dw_mci_read_data_pio() 2737 struct sg_mapping_iter *sg_miter = &host->sg_miter; dw_mci_write_data_pio() local [all...] |
H A D | sh_mmcif.c | 235 struct sg_mapping_iter sg_miter; member 610 sg_miter_start(&host->sg_miter, data->sg, data->sg_len, in sh_mmcif_single_read() 621 struct sg_mapping_iter *sgm = &host->sg_miter; in sh_mmcif_read_block() 645 sg_miter_stop(&host->sg_miter); in sh_mmcif_read_block() 657 struct sg_mapping_iter *sgm = &host->sg_miter; in sh_mmcif_multi_read() 682 struct sg_mapping_iter *sgm = &host->sg_miter; in sh_mmcif_mread_block() 720 sg_miter_start(&host->sg_miter, data->sg, data->sg_len, in sh_mmcif_single_write() 731 struct sg_mapping_iter *sgm = &host->sg_miter; in sh_mmcif_write_block() 755 sg_miter_stop(&host->sg_miter); in sh_mmcif_write_block() 767 struct sg_mapping_iter *sgm = &host->sg_miter; in sh_mmcif_multi_write() [all...] |
H A D | alcor.c | 56 struct sg_mapping_iter sg_miter; /* SG state for PIO */ member 205 if (!sg_miter_next(&host->sg_miter)) in alcor_trf_block_pio() 209 len = min(host->sg_miter.length, blksize); in alcor_trf_block_pio() 214 host->sg_miter.consumed = len; in alcor_trf_block_pio() 217 buf = host->sg_miter.addr; in alcor_trf_block_pio() 224 sg_miter_stop(&host->sg_miter); in alcor_trf_block_pio() 236 sg_miter_start(&host->sg_miter, data->sg, data->sg_len, flags); in alcor_prepare_sg_miter()
|
H A D | sunplus-mmc.c | 630 struct sg_mapping_iter sg_miter; in spmmc_xfer_data_pio() local 637 sg_miter_start(&sg_miter, data->sg, data->sg_len, flags); in spmmc_xfer_data_pio() 640 if (!sg_miter_next(&sg_miter)) in spmmc_xfer_data_pio() 642 buf = sg_miter.addr; in spmmc_xfer_data_pio() 643 remain = sg_miter.length; in spmmc_xfer_data_pio() 659 sg_miter.consumed = consumed; in spmmc_xfer_data_pio() 663 sg_miter_stop(&sg_miter); in spmmc_xfer_data_pio()
|
H A D | bcm2835.c | 159 struct sg_mapping_iter sg_miter; /* SG state for PIO */ member 345 if (!sg_miter_next(&host->sg_miter)) { in bcm2835_transfer_block_pio() 350 len = min(host->sg_miter.length, blksize); in bcm2835_transfer_block_pio() 357 host->sg_miter.consumed = len; in bcm2835_transfer_block_pio() 359 buf = (u32 *)host->sg_miter.addr; in bcm2835_transfer_block_pio() 421 sg_miter_stop(&host->sg_miter); in bcm2835_transfer_block_pio() 563 sg_miter_start(&host->sg_miter, data->sg, data->sg_len, flags); in bcm2835_prepare_data()
|
H A D | toshsd.h | 169 struct sg_mapping_iter sg_miter; /* for PIO */ member
|
H A D | davinci_mmc.c | 192 struct sg_mapping_iter sg_miter; member 212 struct sg_mapping_iter *sgm = &host->sg_miter; in davinci_fifo_data_trans() 571 sg_miter_start(&host->sg_miter, data->sg, data->sg_len, flags); in mmc_davinci_prepare_data() 838 sg_miter_stop(&host->sg_miter); in davinci_abort_data() 921 sg_miter_stop(&host->sg_miter); in mmc_davinci_irq()
|
H A D | sdhci.c | 548 BUG_ON(!sg_miter_next(&host->sg_miter)); in sdhci_read_block_pio() 550 len = min(host->sg_miter.length, blksize); in sdhci_read_block_pio() 553 host->sg_miter.consumed = len; in sdhci_read_block_pio() 555 buf = host->sg_miter.addr; in sdhci_read_block_pio() 572 sg_miter_stop(&host->sg_miter); in sdhci_read_block_pio() 588 BUG_ON(!sg_miter_next(&host->sg_miter)); in sdhci_write_block_pio() 590 len = min(host->sg_miter.length, blksize); in sdhci_write_block_pio() 593 host->sg_miter.consumed = len; in sdhci_write_block_pio() 595 buf = host->sg_miter.addr; in sdhci_write_block_pio() 612 sg_miter_stop(&host->sg_miter); in sdhci_write_block_pio() [all...] |
H A D | dw_mmc.h | 66 * @sg_miter: PIO mapping scatterlist iterator. 169 struct sg_mapping_iter sg_miter; member
|
H A D | sdhci.h | 604 struct sg_mapping_iter sg_miter; /* SG state for PIO */ member
|
/linux/drivers/usb/musb/ |
H A D | musb_host.c | 814 sg_miter_start(&qh->sg_miter, urb->sg, 1, in musb_ep_program() 817 if (!sg_miter_next(&qh->sg_miter)) { in musb_ep_program() 821 sg_miter_stop(&qh->sg_miter); in musb_ep_program() 824 buf = qh->sg_miter.addr + urb->sg->offset + in musb_ep_program() 827 qh->sg_miter.length); in musb_ep_program() 829 qh->sg_miter.consumed = load_count; in musb_ep_program() 830 sg_miter_stop(&qh->sg_miter); in musb_ep_program() 1441 if (!sg_miter_next(&qh->sg_miter)) { in musb_host_tx() 1443 sg_miter_stop(&qh->sg_miter); in musb_host_tx() 1447 length = min_t(u32, length, qh->sg_miter in musb_host_tx() [all...] |
H A D | musb_host.h | 41 struct sg_mapping_iter sg_miter; /* for highmem in PIO mode */ member
|