Lines Matching refs:buf_len
329 unsigned char *buf, int buf_len) in ahci_fill_sg() argument
337 sg_count = ((buf_len - 1) / max_bytes) + 1; in ahci_fill_sg()
348 (buf_len < max_bytes in ahci_fill_sg()
349 ? (buf_len - 1) in ahci_fill_sg()
352 buf_len -= max_bytes; in ahci_fill_sg()
376 struct sata_fis_h2d *cfis, u8 *buf, u32 buf_len, in ahci_exec_ata_cmd() argument
391 if (buf_len > MAX_BYTES_PER_TRANS) { in ahci_exec_ata_cmd()
398 if (buf && buf_len) in ahci_exec_ata_cmd()
399 sg_count = ahci_fill_sg(uc_priv, port, buf, buf_len); in ahci_exec_ata_cmd()
403 flush_cache((ulong)buf, buf_len); in ahci_exec_ata_cmd()
420 invalidate_dcache_range((ulong)buf, (ulong)buf+buf_len); in ahci_exec_ata_cmd()
422 return buf_len; in ahci_exec_ata_cmd()