Home
last modified time | relevance | path

Searched refs:n_elem (Results 1 – 6 of 6) sorted by relevance

/linux-2.4.37.9/drivers/block/
Dsx8.c243 int n_elem; member
625 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() local
1082 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 …]
/linux-2.4.37.9/drivers/scsi/
Dlibata-core.c2409 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() argument
2587 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 …]
Dahci.c739 unsigned int n_elem; in ahci_qc_prep() local
770 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()
Dsata_qstor.c281 assert(qc->n_elem > 0); in qs_fill_sg()
Dlibata-scsi.c359 qc->n_elem = cmd->use_sg; in ata_scsi_qc_new()
362 qc->n_elem = 1; in ata_scsi_qc_new()
/linux-2.4.37.9/include/linux/
Dlibata.h259 unsigned int n_elem; member
470 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()