Name

ata_sg_setup — DMA-map the scatter-gather table associated with a command.

Synopsis

int ata_sg_setup (struct ata_queued_cmd * qc);
 

Arguments

struct ata_queued_cmd * qc

Command with scatter-gather table to be mapped.

Description

DMA-map the scatter-gather table associated with queued_cmd qc.

LOCKING: spin_lock_irqsave(host lock)

Return

Zero on success, negative on error.