Lines Matching refs:pad_len
2417 if (qc->pad_len && !(qc->tf.flags & ATA_TFLAG_WRITE)) in ata_sg_clean()
2424 sg[qc->orig_n_elem - 1].length += qc->pad_len; in ata_sg_clean()
2428 memcpy(addr + psg->offset, pad_buf, qc->pad_len); in ata_sg_clean()
2437 sg->length += qc->pad_len; in ata_sg_clean()
2439 memcpy(qc->buf_virt + sg->length - qc->pad_len, in ata_sg_clean()
2440 pad_buf, qc->pad_len); in ata_sg_clean()
2612 qc->pad_len = sg->length & 3; in ata_sg_setup_one()
2613 if (qc->pad_len) { in ata_sg_setup_one()
2622 memcpy(pad_buf, qc->buf_virt + sg->length - qc->pad_len, in ata_sg_setup_one()
2623 qc->pad_len); in ata_sg_setup_one()
2628 sg->length -= qc->pad_len; in ata_sg_setup_one()
2631 sg->length, qc->pad_len); in ata_sg_setup_one()
2643 sg->length += qc->pad_len; in ata_sg_setup_one()
2682 qc->pad_len = lsg->length & 3; in ata_sg_setup()
2683 if (qc->pad_len) { in ata_sg_setup()
2696 offset = lsg->offset + lsg->length - qc->pad_len; in ata_sg_setup()
2702 memcpy(pad_buf, addr + psg->offset, qc->pad_len); in ata_sg_setup()
2709 lsg->length -= qc->pad_len; in ata_sg_setup()
2714 qc->n_elem - 1, lsg->length, qc->pad_len); in ata_sg_setup()
2730 lsg->length += qc->pad_len; in ata_sg_setup()