/linux-6.1.9/drivers/scsi/ |
D | scsi_lib_dma.c | 25 int nseg = 0; in scsi_dma_map() local 30 nseg = dma_map_sg(dev, scsi_sglist(cmd), scsi_sg_count(cmd), in scsi_dma_map() 32 if (unlikely(!nseg)) in scsi_dma_map() 35 return nseg; in scsi_dma_map()
|
D | aha1740.c | 332 int ecbno, nseg; in aha1740_queuecommand_lck() local 403 nseg = scsi_dma_map(SCpnt); in aha1740_queuecommand_lck() 404 BUG_ON(nseg < 0); in aha1740_queuecommand_lck() 405 if (nseg) { in aha1740_queuecommand_lck() 414 scsi_for_each_sg(SCpnt, sg, nseg, i) { in aha1740_queuecommand_lck() 418 host->ecb[ecbno].datalen = nseg * sizeof(struct aha1740_chain); in aha1740_queuecommand_lck()
|
D | stex.c | 429 int i, nseg; in stex_map_sg() local 432 nseg = scsi_dma_map(cmd); in stex_map_sg() 433 BUG_ON(nseg < 0); in stex_map_sg() 434 if (nseg) { in stex_map_sg() 437 ccb->sg_count = nseg; in stex_map_sg() 438 dst->sg_count = cpu_to_le16((u16)nseg); in stex_map_sg() 443 scsi_for_each_sg(cmd, sg, nseg, i) { in stex_map_sg() 451 return nseg; in stex_map_sg() 461 int i, nseg; in stex_ss_map_sg() local 464 nseg = scsi_dma_map(cmd); in stex_ss_map_sg() [all …]
|
D | mac53c94.c | 360 int i, dma_cmd, total, nseg; in set_dma_cmds() local 366 nseg = scsi_dma_map(cmd); in set_dma_cmds() 367 BUG_ON(nseg < 0); in set_dma_cmds() 368 if (!nseg) in set_dma_cmds() 376 scsi_for_each_sg(cmd, scl, nseg, i) { in set_dma_cmds()
|
D | hptiop.c | 851 int idx, nseg; in hptiop_buildsgl() local 853 nseg = scsi_dma_map(scp); in hptiop_buildsgl() 854 BUG_ON(nseg < 0); in hptiop_buildsgl() 855 if (!nseg) in hptiop_buildsgl() 858 HPT_SCP(scp)->sgcnt = nseg; in hptiop_buildsgl()
|
D | mesh.c | 1265 int nseg; in set_dma_cmds() local 1269 nseg = scsi_dma_map(cmd); in set_dma_cmds() 1270 BUG_ON(nseg < 0); in set_dma_cmds() 1272 if (nseg) { in set_dma_cmds() 1276 scsi_for_each_sg(cmd, scl, nseg, i) { in set_dma_cmds()
|
D | pmcraid.c | 3140 int i, nseg; in pmcraid_build_ioadl() local 3152 nseg = scsi_dma_map(scsi_cmd); in pmcraid_build_ioadl() 3154 if (nseg < 0) { in pmcraid_build_ioadl() 3157 } else if (nseg > PMCRAID_MAX_IOADLS) { in pmcraid_build_ioadl() 3160 "sg count is (%d) more than allowed!\n", nseg); in pmcraid_build_ioadl() 3170 ioadl = pmcraid_init_ioadls(cmd, nseg); in pmcraid_build_ioadl() 3173 scsi_for_each_sg(scsi_cmd, sglist, nseg, i) { in pmcraid_build_ioadl()
|
D | initio.c | 2536 int i, nseg; in initio_build_scb() local 2573 nseg = scsi_dma_map(cmnd); in initio_build_scb() 2574 BUG_ON(nseg < 0); in initio_build_scb() 2575 if (nseg) { in initio_build_scb() 2582 cblk->sglen = nseg; in initio_build_scb()
|
D | dc395x.c | 865 int nseg; in build_srb() local 887 nseg = scsi_dma_map(cmd); in build_srb() 888 BUG_ON(nseg < 0); in build_srb() 890 if (dir == DMA_NONE || !nseg) { in build_srb() 901 srb->sg_count = nseg; in build_srb()
|
/linux-6.1.9/include/scsi/ |
D | scsi_cmnd.h | 200 #define scsi_for_each_sg(cmd, sg, nseg, __i) \ argument 201 for_each_sg(scsi_sglist(cmd), sg, nseg, __i) 325 #define scsi_for_each_prot_sg(cmd, sg, nseg, __i) \ argument 326 for_each_sg(scsi_prot_sglist(cmd), sg, nseg, __i)
|
/linux-6.1.9/drivers/block/xen-blkback/ |
D | blkback.c | 920 int indirect_grefs, rc, n, nseg, i; in xen_blkbk_parse_indirect() local 923 nseg = pending_req->nr_segs; in xen_blkbk_parse_indirect() 924 indirect_grefs = INDIRECT_PAGES(nseg); in xen_blkbk_parse_indirect() 934 for (n = 0; n < nseg; n++) { in xen_blkbk_parse_indirect() 1192 unsigned int nseg; in dispatch_rw_block_io() local 1238 nseg = req->operation == BLKIF_OP_INDIRECT ? in dispatch_rw_block_io() 1241 if (unlikely(nseg == 0 && operation_flags != REQ_PREFLUSH) || in dispatch_rw_block_io() 1243 (nseg > BLKIF_MAX_SEGMENTS_PER_REQUEST)) || in dispatch_rw_block_io() 1245 (nseg > MAX_INDIRECT_SEGMENTS))) { in dispatch_rw_block_io() 1246 pr_debug("Bad number of segments in request (%d)\n", nseg); in dispatch_rw_block_io() [all …]
|
/linux-6.1.9/drivers/scsi/qla2xxx/ |
D | qla_iocb.c | 325 int nseg; in qla2x00_start_scsi() local 368 nseg = dma_map_sg(&ha->pdev->dev, scsi_sglist(cmd), in qla2x00_start_scsi() 370 if (unlikely(!nseg)) in qla2x00_start_scsi() 373 nseg = 0; in qla2x00_start_scsi() 375 tot_dsds = nseg; in qla2x00_start_scsi() 1541 int nseg; in qla24xx_start_scsi() local 1582 nseg = dma_map_sg(&ha->pdev->dev, scsi_sglist(cmd), in qla24xx_start_scsi() 1584 if (unlikely(!nseg)) in qla24xx_start_scsi() 1587 nseg = 0; in qla24xx_start_scsi() 1589 tot_dsds = nseg; in qla24xx_start_scsi() [all …]
|
D | qla_mr.c | 3049 int nseg; in qlafx00_start_scsi() local 3080 nseg = dma_map_sg(&ha->pdev->dev, scsi_sglist(cmd), in qlafx00_start_scsi() 3082 if (unlikely(!nseg)) in qlafx00_start_scsi() 3085 nseg = 0; in qlafx00_start_scsi() 3087 tot_dsds = nseg; in qlafx00_start_scsi()
|
D | qla_edif.c | 2926 int nseg; in qla28xx_start_scsi_edif() local 2981 nseg = dma_map_sg(&ha->pdev->dev, scsi_sglist(cmd), in qla28xx_start_scsi_edif() 2983 if (unlikely(!nseg)) in qla28xx_start_scsi_edif() 2986 nseg = 0; in qla28xx_start_scsi_edif() 2989 tot_dsds = nseg; in qla28xx_start_scsi_edif()
|
/linux-6.1.9/drivers/scsi/aacraid/ |
D | aachba.c | 225 int pages, int nseg, int nseg_new); 3796 int nseg; in aac_build_sg() local 3805 nseg = scsi_dma_map(scsicmd); in aac_build_sg() 3806 if (nseg <= 0) in aac_build_sg() 3807 return nseg; in aac_build_sg() 3809 psg->count = cpu_to_le32(nseg); in aac_build_sg() 3811 scsi_for_each_sg(scsicmd, sg, nseg, i) { in aac_build_sg() 3837 int nseg; in aac_build_sg64() local 3847 nseg = scsi_dma_map(scsicmd); in aac_build_sg64() 3848 if (nseg <= 0) in aac_build_sg64() [all …]
|
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp_nsp.c | 509 int i, ret, nseg; in nfp_nsp_command_buf_dma_sg() local 514 nseg = DIV_ROUND_UP(max_size, chunk_size); in nfp_nsp_command_buf_dma_sg() 516 chunks = kcalloc(nseg, sizeof(*chunks), GFP_KERNEL); in nfp_nsp_command_buf_dma_sg() 522 for (i = 0; i < nseg; i++) { in nfp_nsp_command_buf_dma_sg() 544 for (i = 0; i < nseg; i++) { in nfp_nsp_command_buf_dma_sg() 565 desc_sz = struct_size(desc, descs, nseg); in nfp_nsp_command_buf_dma_sg() 572 desc->chunk_cnt = cpu_to_le32(nseg); in nfp_nsp_command_buf_dma_sg() 573 for (i = 0; i < nseg; i++) { in nfp_nsp_command_buf_dma_sg() 605 i = nseg; in nfp_nsp_command_buf_dma_sg() 610 i = nseg; in nfp_nsp_command_buf_dma_sg()
|
/linux-6.1.9/drivers/scsi/qla4xxx/ |
D | ql4_iocb.c | 277 int nseg; in qla4xxx_send_command_to_isp() local 307 nseg = scsi_dma_map(cmd); in qla4xxx_send_command_to_isp() 308 if (nseg < 0) in qla4xxx_send_command_to_isp() 310 tot_dsds = nseg; in qla4xxx_send_command_to_isp()
|
/linux-6.1.9/drivers/scsi/lpfc/ |
D | lpfc_nvme.c | 1347 int nseg, i, j; in lpfc_nvme_prep_io_dma() local 1383 nseg = nCmd->sg_cnt; in lpfc_nvme_prep_io_dma() 1388 for (i = 0; i < nseg; i++) { in lpfc_nvme_prep_io_dma() 1392 i, nseg); in lpfc_nvme_prep_io_dma() 1398 if (nseg == 1) { in lpfc_nvme_prep_io_dma() 1408 ((nseg - 1) != i)) { in lpfc_nvme_prep_io_dma() 1433 if ((nseg - 1) == i) in lpfc_nvme_prep_io_dma() 1469 if (nseg == 1 && phba->cfg_enable_pbde) { in lpfc_nvme_prep_io_dma()
|
D | lpfc_scsi.c | 822 int nseg, datadir = scsi_cmnd->sc_data_direction; in lpfc_scsi_prep_dma_buf_s3() local 839 nseg = dma_map_sg(&phba->pcidev->dev, scsi_sglist(scsi_cmnd), in lpfc_scsi_prep_dma_buf_s3() 841 if (unlikely(!nseg)) in lpfc_scsi_prep_dma_buf_s3() 844 lpfc_cmd->seg_cnt = nseg; in lpfc_scsi_prep_dma_buf_s3() 866 scsi_for_each_sg(scsi_cmnd, sgel, nseg, num_bde) { in lpfc_scsi_prep_dma_buf_s3() 871 nseg <= LPFC_EXT_DATA_BDE_COUNT) { in lpfc_scsi_prep_dma_buf_s3() 3074 int nseg, i, j; in lpfc_scsi_prep_dma_buf_s4() local 3093 nseg = scsi_dma_map(scsi_cmnd); in lpfc_scsi_prep_dma_buf_s4() 3094 if (unlikely(nseg <= 0)) in lpfc_scsi_prep_dma_buf_s4() 3103 lpfc_cmd->seg_cnt = nseg; in lpfc_scsi_prep_dma_buf_s4() [all …]
|
/linux-6.1.9/drivers/atm/ |
D | fore200e.h | 114 u32 nseg : 8, /* number of transmit segments */ 163 u32 nseg; /* number of receive segments */ member
|
D | fore200e.c | 988 for (i = 0; i < rpd->nseg; i++) in fore200e_push_rpd() 1008 for (i = 0; i < rpd->nseg; i++) { in fore200e_push_rpd() 1058 for (i = 0; i < rpd->nseg; i++) { in fore200e_collect_rpd() 1649 tpd->spec.nseg = 1; in fore200e_send()
|
/linux-6.1.9/drivers/scsi/aic7xxx/ |
D | aic7xxx_osm.c | 1411 int nseg; in ahc_linux_run_command() local 1438 nseg = scsi_dma_map(cmd); in ahc_linux_run_command() 1439 if (nseg < 0) in ahc_linux_run_command() 1502 if (nseg > 0) { in ahc_linux_run_command() 1513 scsi_for_each_sg(cmd, cur_seg, nseg, i) { in ahc_linux_run_command()
|
D | aic79xx_osm.c | 1544 int nseg; in ahd_linux_run_command() local 1546 nseg = scsi_dma_map(cmd); in ahd_linux_run_command() 1547 if (nseg < 0) in ahd_linux_run_command() 1614 if (nseg > 0) { in ahd_linux_run_command() 1621 scsi_for_each_sg(cmd, cur_seg, nseg, i) { in ahd_linux_run_command() 1629 i == (nseg - 1)); in ahd_linux_run_command()
|
/linux-6.1.9/drivers/scsi/megaraid/ |
D | megaraid_sas_fusion.h | 105 u8 nseg:4; member 109 u8 nseg:4;
|
/linux-6.1.9/drivers/net/ethernet/atheros/atlx/ |
D | atl1.c | 2221 int i, nseg; in atl1_tx_map() local 2224 nseg = (data_len + ATL1_MAX_TX_BUF_LEN - 1) / in atl1_tx_map() 2226 for (i = 0; i < nseg; i++) { in atl1_tx_map() 2260 u16 i, nseg; in atl1_tx_map() local 2264 nseg = (buf_len + ATL1_MAX_TX_BUF_LEN - 1) / in atl1_tx_map() 2266 for (i = 0; i < nseg; i++) { in atl1_tx_map()
|