Searched refs:n_elem (Results 1 – 6 of 6) sorted by relevance
243 int n_elem; member625 crq->n_elem = 0; in carm_get_request()645 assert(host->hw_sg_used >= crq->n_elem); in carm_put_request()648 host->hw_sg_used -= crq->n_elem; in carm_put_request()1058 crq->n_elem = 0; in carm_oob_tasklet()1076 int n_elem = 0; in blk_rq_map_sg() local1082 sg[n_elem - 1].length += bh->b_size; in blk_rq_map_sg()1085 if (unlikely(n_elem == CARM_MAX_REQ_SG)) in blk_rq_map_sg()1087 sg[n_elem].page = bh->b_page; in blk_rq_map_sg()1088 sg[n_elem].length = bh->b_size; in blk_rq_map_sg()[all …]
2409 assert(qc->n_elem == 1); in ata_sg_clean()2411 VPRINTK("unmapping %u sg elements\n", qc->n_elem); in ata_sg_clean()2421 if (qc->n_elem) in ata_sg_clean()2422 dma_unmap_sg(ap->host_set->dev, sg, qc->n_elem, dir); in ata_sg_clean()2465 assert(qc->n_elem > 0); in ata_fill_sg()2560 qc->n_elem = 1; in ata_sg_init_one()2583 unsigned int n_elem) in ata_sg_init() argument2587 qc->n_elem = n_elem; in ata_sg_init()2588 qc->orig_n_elem = n_elem; in ata_sg_init()2675 struct scatterlist *lsg = &sg[qc->n_elem - 1]; in ata_sg_setup()[all …]
739 unsigned int n_elem; in ahci_qc_prep() local770 n_elem = ahci_fill_sg(qc); in ahci_qc_prep()772 pp->cmd_slot[0].opts |= cpu_to_le32(n_elem << 16); in ahci_qc_prep()
281 assert(qc->n_elem > 0); in qs_fill_sg()
359 qc->n_elem = cmd->use_sg; in ata_scsi_qc_new()362 qc->n_elem = 1; in ata_scsi_qc_new()
259 unsigned int n_elem; member470 unsigned int n_elem);537 if (((sg - qc->__sg) + 1) == qc->n_elem) in ata_sg_is_last()547 if (++sg - qc->__sg < qc->n_elem) in ata_qc_next_sg()