/drivers/crypto/caam/ |
H A D | sg_sw_sec4.h | 33 sg_to_sec4_sg(struct scatterlist *sg, int sg_count, argument 36 while (sg_count) { 41 sg_count--; 50 static inline void sg_to_sec4_sg_last(struct scatterlist *sg, int sg_count, argument 54 sec4_sg_ptr = sg_to_sec4_sg(sg, sg_count, sec4_sg_ptr, offset); 77 static inline int sg_count(struct scatterlist *sg_list, int nbytes, function
|
H A D | caamalg.c | 1296 assoc_nents = sg_count(req->assoc, req->assoclen, &assoc_chained); 1299 src_nents = sg_count(req->src, req->cryptlen, &src_chained); 1300 dst_nents = sg_count(req->dst, 1305 src_nents = sg_count(req->src, 1494 assoc_nents = sg_count(req->assoc, req->assoclen, &assoc_chained); 1495 src_nents = sg_count(req->src, req->cryptlen, &src_chained); 1498 dst_nents = sg_count(req->dst, req->cryptlen + ctx->authsize, 1663 src_nents = sg_count(req->src, req->nbytes, &src_chained); 1666 dst_nents = sg_count(req->dst, req->nbytes, &dst_chained);
|
/drivers/message/i2o/ |
H A D | memory.c | 33 u16 sg_count = local 42 sg_count -= 2; 43 sg_count /= 3; 45 sg_count /= 2; 47 if (c->short_req && (sg_count > 8)) 48 sg_count = 8; 50 return sg_count; 116 * @sg_count: number of elements in the SG list 128 int sg_count, enum dma_data_direction direction, u32 ** sg_ptr) 144 sg_count 127 i2o_dma_map_sg(struct i2o_controller *c, struct scatterlist *sg, int sg_count, enum dma_data_direction direction, u32 ** sg_ptr) argument [all...] |
H A D | i2o_config.c | 538 u32 sg_count = 0; local 614 sg_count = 616 if (sg_count > SG_TABLESIZE) { 618 c->name, sg_count); 623 for (i = 0; i < sg_count; i++) { 641 c->name, sg_size, i, sg_count); 700 sg_count = 705 for (j = 0; j < sg_count; j++) { 789 u32 sg_count = 0; local 857 sg_count [all...] |
/drivers/spi/ |
H A D | spi-mxs.c | 181 int sg_count; local 210 for (sg_count = 0; sg_count < sgs; sg_count++) { 218 if ((sg_count + 1 == sgs) && (flags & TXRX_DEASSERT_CS)) 226 dma_xfer[sg_count].pio[0] = ctrl0; 227 dma_xfer[sg_count].pio[3] = min; 241 sg_init_one(&dma_xfer[sg_count].sg, sg_buf, min); 242 ret = dma_map_sg(ssp->dev, &dma_xfer[sg_count].sg, 1, 250 (struct scatterlist *)dma_xfer[sg_count] [all...] |
/drivers/scsi/arm/ |
H A D | scsi.h | 101 unsigned i, sg_count = scsi_sg_count(SCpnt); local 103 scsi_for_each_sg(SCpnt, sg, sg_count, i)
|
/drivers/crypto/ |
H A D | talitos.c | 907 static int sg_to_link_tbl(struct scatterlist *sg, int sg_count, argument 910 int n_sg = sg_count; 927 sg_count--; 935 return sg_count; 953 int sg_count, ret; local 971 sg_count = sg_to_link_tbl(areq->assoc, edesc->assoc_nents - 1, 975 tbl_ptr += sg_count - 1; 1014 sg_count = talitos_map_sg(dev, areq->src, edesc->src_nents ? : 1, 1019 if (sg_count == 1) { 1027 sg_count 1094 static int sg_count(struct scatterlist *sg_list, int nbytes, bool *chained) function 1375 int sg_count, ret; local 1564 int sg_count, ret; local [all...] |
H A D | picoxcell_crypto.c | 264 static int sg_count(struct scatterlist *sg_list, int nbytes) function 300 nents = sg_count(payload, nbytes); 328 unsigned nents = sg_count(areq->src, areq->cryptlen); 348 sg_count(areq->assoc, areq->assoclen), DMA_TO_DEVICE); 412 unsigned nents = sg_count(areq->src, areq->cryptlen); 417 sg_count(areq->dst, areq->cryptlen), 423 sg_count(areq->assoc, areq->assoclen), DMA_TO_DEVICE); 435 unsigned nents = sg_count(payload, nbytes);
|
H A D | bfin_crc.c | 103 static int sg_count(struct scatterlist *sg_list) function 163 if (sg_count(req->src) > CRC_MAX_DMA_DESC) { 380 nsg = ctx->sg_nents = sg_count(ctx->sg);
|
/drivers/scsi/ |
H A D | storvsc_drv.c | 543 unsigned int sg_count) 548 for (i = 0; i < sg_count; i++) { 557 static int do_bounce_buffer(struct scatterlist *sgl, unsigned int sg_count) argument 562 if (sg_count < 2) 566 for (i = 0; i < sg_count; i++) { 571 } else if (i == sg_count - 1) { 585 unsigned int sg_count, 1568 unsigned int sg_count = 0; local 1646 sg_count = scsi_sg_count(scmnd); 1669 sg_count 542 destroy_bounce_buffer(struct scatterlist *sgl, unsigned int sg_count) argument 584 create_bounce_buffer(struct scatterlist *sgl, unsigned int sg_count, unsigned int len, int write) argument [all...] |
H A D | qlogicpti.c | 895 int sg_count; local 898 sg_count = dma_map_sg(&qpti->op->dev, sg, 903 cmd->segment_cnt = sg_count; 906 n = sg_count; 913 sg_count -= 4; 915 while (sg_count > 0) { 930 n = sg_count; 937 sg_count -= n;
|
H A D | stex.c | 183 __le16 sg_count; member in struct:st_sgtable 286 int sg_count; member in struct:st_ccb 425 ccb->sg_count = nseg; 426 dst->sg_count = cpu_to_le16((u16)nseg); 457 ccb->sg_count = nseg; 458 dst->sg_count = cpu_to_le16((u16)nseg); 534 addr += (hba->ccb[tag].sg_count+4)/11; 693 hba->ccb[tag].sg_count = 0; 1753 hba->ccb[tag].sg_count = 0;
|
H A D | dc395x.c | 236 u8 sg_count; /* No of HW sg entries for this request */ member in struct:ScsiReqBlk 990 srb->sg_count = 0; 1019 srb->sg_count = nseg; 1024 srb->sg_count); 1026 scsi_for_each_sg(cmd, sg, srb->sg_count, i) { 1033 sgp += srb->sg_count - 1; 1212 srb->segment_x, srb->sg_count, srb->sg_index, 1939 for (; idx < srb->sg_count; psge++, idx++) 1969 for (idx = srb->sg_index; idx < srb->sg_count; idx++) { 2284 srb->sg_count, [all...] |
H A D | ips.h | 430 uint8_t sg_count; member in struct:__anon5517 639 uint8_t sg_count; member in struct:__anon5534 654 uint16_t sg_count; member in struct:__anon5535 1105 int sg_count; member in struct:ips_scb
|
H A D | aha1542.c | 663 int i, sg_count = scsi_sg_count(SCpnt); local 665 SCpnt->host_scribble = kmalloc(sizeof(*cptr)*sg_count, 673 scsi_for_each_sg(SCpnt, sg, sg_count, i) { 677 any2scsi(ccb[mbo].datalen, sg_count * sizeof(struct chain));
|
H A D | mvumi.c | 199 * @sg_count return the number of SG elements 204 void *sgl_p, unsigned char *sg_count) 214 *sg_count = pci_map_sg(mhba->pdev, sg, sgnum, 216 if (*sg_count > mhba->max_sge) { 219 *sg_count, mhba->max_sge); 222 for (i = 0; i < *sg_count; i++) { 228 if ((i + 1) == *sg_count) 244 *sg_count = 1; 203 mvumi_make_sgl(struct mvumi_hba *mhba, struct scsi_cmnd *scmd, void *sgl_p, unsigned char *sg_count) argument
|
H A D | 3w-sas.c | 331 int i, sg_count; local 373 sg_count = twl_map_scsi_sg_data(tw_dev, request_id); 374 if (sg_count == 0) 377 scsi_for_each_sg(srb, sg, sg_count, i) {
|
H A D | hpsa_cmd.h | 530 u8 sg_count; /* Number of sg elements */ member in struct:io_accel2_cmd
|
H A D | hptiop.c | 1013 int sg_count = 0; local 1050 sg_count = hptiop_buildsgl(scp, req->sg_list); 1051 if (!sg_count) 1064 + sg_count * sizeof(struct hpt_iopsg));
|
/drivers/crypto/ccp/ |
H A D | ccp-crypto-aes-cmac.c | 66 unsigned int need_pad, sg_count; local 109 sg_count = (nbytes) ? sg_nents(req->src) + 2 : 2; 112 ret = sg_alloc_table(&rctx->data_sg, sg_count, gfp);
|
H A D | ccp-crypto-sha.c | 65 unsigned int sg_count; local 102 sg_count = sg_nents(req->src) + 1; 103 ret = sg_alloc_table(&rctx->data_sg, sg_count, gfp);
|
/drivers/scsi/fnic/ |
H A D | fnic_scsi.c | 321 int sg_count) 336 if (sg_count) { 339 for_each_sg(scsi_sglist(sc), sg, sg_count, i) { local 349 sizeof(io_req->sgl_list[0]) * sg_count, 430 int sg_count = 0; local 470 sg_count = scsi_dma_map(sc); 471 if (sg_count < 0) { 474 sg_count, CMD_STATE(sc)); 480 io_req->sgl_cnt = sg_count; 482 if (sg_count > FNIC_DFLT_SG_DESC_CN 317 fnic_queue_wq_copy_desc(struct fnic *fnic, struct vnic_wq_copy *wq, struct fnic_io_req *io_req, struct scsi_cmnd *sc, int sg_count) argument [all...] |
/drivers/memstick/host/ |
H A D | r592.c | 280 int len, sg_count; local 298 sg_count = dma_map_sg(&dev->pci_dev->dev, &dev->req->sg, 1, is_write ? 301 if (sg_count != 1 ||
|
/drivers/mmc/host/ |
H A D | rtsx_pci_sdmmc.c | 56 unsigned int sg_count; member in struct:realtek_pci_sdmmc 134 host->sg_count = count; 505 err = rtsx_pci_dma_transfer(pcr, data->sg, host->sg_count, read, 10000);
|
/drivers/scsi/aic7xxx/ |
H A D | aic7xxx_osm.c | 475 if ((scb->sg_count + 1) > AHC_NSEG) 1532 scb->sg_count = 0; 1542 * The sg_count may be larger than nseg if 1555 scb->sg_count += consumed; 1576 scb->sg_count = 0;
|