Lines Matching refs:buf_len
323 unsigned char *buf, int buf_len) in ahci_fill_sg() argument
331 sg_count = ((buf_len - 1) / max_bytes) + 1; in ahci_fill_sg()
342 (buf_len < max_bytes in ahci_fill_sg()
343 ? (buf_len - 1) in ahci_fill_sg()
346 buf_len -= max_bytes; in ahci_fill_sg()
370 struct sata_fis_h2d *cfis, u8 *buf, u32 buf_len, in ahci_exec_ata_cmd() argument
385 if (buf_len > MAX_BYTES_PER_TRANS) { in ahci_exec_ata_cmd()
392 if (buf && buf_len) in ahci_exec_ata_cmd()
393 sg_count = ahci_fill_sg(uc_priv, port, buf, buf_len); in ahci_exec_ata_cmd()
397 flush_cache((ulong)buf, buf_len); in ahci_exec_ata_cmd()
414 invalidate_dcache_range((ulong)buf, (ulong)buf+buf_len); in ahci_exec_ata_cmd()
416 return buf_len; in ahci_exec_ata_cmd()