Searched refs:sgp (Results 1 – 7 of 7) sorted by relevance
/drivers/scsi/ |
D | scsi_lib.c | 625 struct scsi_host_sg_pool *sgp; in scsi_sg_free() local 627 sgp = scsi_sg_pools + scsi_sgtable_index(nents); in scsi_sg_free() 628 mempool_free(sgl, sgp->pool); in scsi_sg_free() 633 struct scsi_host_sg_pool *sgp; in scsi_sg_alloc() local 635 sgp = scsi_sg_pools + scsi_sgtable_index(nents); in scsi_sg_alloc() 636 return mempool_alloc(sgp->pool, gfp_mask); in scsi_sg_alloc() 1799 struct scsi_host_sg_pool *sgp = scsi_sg_pools + i; in scsi_init_queue() local 1800 int size = sgp->size * sizeof(struct scatterlist); in scsi_init_queue() 1802 sgp->slab = kmem_cache_create(sgp->name, size, 0, in scsi_init_queue() 1804 if (!sgp->slab) { in scsi_init_queue() [all …]
|
D | initio.c | 1594 struct sg_entry *sgp; in initio_state_5() local 1597 sgp = &scb->sglist[scb->sgidx]; in initio_state_5() 1598 for (i = scb->sgidx; i < scb->sgmax; sgp++, i++) { in initio_state_5() 1599 xcnt -= (long) sgp->len; in initio_state_5() 1601 xcnt += (long) sgp->len; /* xcnt == bytes xferred in this sgp */ in initio_state_5() 1602 sgp->data += (u32) xcnt; /* new ptr to be xfer */ in initio_state_5() 1603 sgp->len -= (u32) xcnt; /* new len to be xfer */ in initio_state_5()
|
D | advansys.c | 2597 ASC_SG_HEAD *sgp; in asc_prt_asc_scsi_q() local 2618 sgp = q->sg_head; in asc_prt_asc_scsi_q() 2619 printk("ASC_SG_HEAD at addr 0x%lx\n", (ulong)sgp); in asc_prt_asc_scsi_q() 2620 printk(" entry_cnt %u, queue_cnt %u\n", sgp->entry_cnt, in asc_prt_asc_scsi_q() 2621 sgp->queue_cnt); in asc_prt_asc_scsi_q() 2622 for (i = 0; i < sgp->entry_cnt; i++) { in asc_prt_asc_scsi_q() 2624 i, (ulong)le32_to_cpu(sgp->sg_list[i].addr), in asc_prt_asc_scsi_q() 2625 (ulong)le32_to_cpu(sgp->sg_list[i].bytes)); in asc_prt_asc_scsi_q() 11284 adv_sgblk_t *sgp; in advansys_wide_init_chip() local 11323 sgp = kmalloc(sizeof(adv_sgblk_t), GFP_KERNEL); in advansys_wide_init_chip() [all …]
|
D | dc395x.c | 1017 struct SGentry *sgp = srb->segment_x; in build_srb() local 1029 sgp[i].address = busaddr; in build_srb() 1030 sgp[i].length = seglen; in build_srb() 1033 sgp += srb->sg_count - 1; in build_srb() 1040 sgp->length -= (srb->total_xfer_length - reqlen); in build_srb() 1048 sgp->length++; in build_srb()
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | sge.c | 239 const struct sg_ent *sgp; in unmap_skb() local 243 sgp = (struct sg_ent *)&q->desc[cidx].flit[d->sflit]; in unmap_skb() 247 pci_unmap_single(pdev, be64_to_cpu(sgp->addr[0]), in unmap_skb() 256 pci_unmap_page(pdev, be64_to_cpu(sgp->addr[j]), in unmap_skb() 261 sgp++; in unmap_skb() 965 struct sg_ent *sgp, unsigned char *start, in make_sgl() argument 973 sgp->len[0] = cpu_to_be32(len); in make_sgl() 974 sgp->addr[0] = cpu_to_be64(mapping); in make_sgl() 984 sgp->len[j] = cpu_to_be32(skb_frag_size(frag)); in make_sgl() 985 sgp->addr[j] = cpu_to_be64(mapping); in make_sgl() [all …]
|
/drivers/scsi/qla2xxx/ |
D | qla_target.c | 3007 struct scatterlist *sg, *sgp, *sg_srr, *sg_srr_start = NULL; in qlt_set_data_offset() local 3064 sgp = &sg_srr[0]; in qlt_set_data_offset() 3071 sg_set_page(sgp, sg_page(sg), in qlt_set_data_offset() 3075 sg_set_page(sgp, sg_page(sg), sg->length, 0); in qlt_set_data_offset() 3077 bufflen += sgp->length; in qlt_set_data_offset() 3079 sgp = sg_next(sgp); in qlt_set_data_offset() 3080 if (!sgp) in qlt_set_data_offset()
|
/drivers/scsi/cxgbi/ |
D | libcxgbi.c | 1784 struct scatterlist **sgp) in sgl_seek_offset() argument 1792 *sgp = sg; in sgl_seek_offset()
|