Searched refs:nseg_new (Results 1 – 1 of 1) sorted by relevance
/Linux-v4.19/drivers/scsi/aacraid/ |
D | aachba.c | 240 int pages, int nseg, int nseg_new); 4106 int j, nseg_new = nseg, err_found; in aac_build_sgraw2() local 4109 nseg_new = 2; in aac_build_sgraw2() 4115 nseg_new += (rio2->sge[j].length / (i*PAGE_SIZE)); in aac_build_sgraw2() 4120 if (i > 0 && nseg_new <= sg_max) { in aac_build_sgraw2() 4121 int ret = aac_convert_sgraw2(rio2, i, nseg, nseg_new); in aac_build_sgraw2() 4138 static int aac_convert_sgraw2(struct aac_raw_io2 *rio2, int pages, int nseg, int nseg_new) in aac_convert_sgraw2() argument 4147 sge = kmalloc_array(nseg_new, sizeof(struct sge_ieee1212), GFP_ATOMIC); in aac_convert_sgraw2() 4164 memcpy(&rio2->sge[1], &sge[1], (nseg_new-1)*sizeof(struct sge_ieee1212)); in aac_convert_sgraw2() 4167 rio2->sgeCnt = cpu_to_le32(nseg_new); in aac_convert_sgraw2()
|