Searched refs:bsize_elem (Results 1 – 2 of 2) sorted by relevance
/drivers/scsi/ |
D | pmcraid.c | 3260 int bsize_elem; in pmcraid_copy_sglist() local 3265 bsize_elem = PAGE_SIZE * (1 << sglist->order); in pmcraid_copy_sglist() 3269 for (i = 0; i < (len / bsize_elem); i++, sg = sg_next(sg), buffer += bsize_elem) { in pmcraid_copy_sglist() 3274 rc = copy_from_user(kaddr, buffer, bsize_elem); in pmcraid_copy_sglist() 3276 rc = copy_to_user(buffer, kaddr, bsize_elem); in pmcraid_copy_sglist() 3285 sg->length = bsize_elem; in pmcraid_copy_sglist() 3288 if (len % bsize_elem) { in pmcraid_copy_sglist() 3294 rc = copy_from_user(kaddr, buffer, len % bsize_elem); in pmcraid_copy_sglist() 3296 rc = copy_to_user(buffer, kaddr, len % bsize_elem); in pmcraid_copy_sglist() 3300 sg->length = len % bsize_elem; in pmcraid_copy_sglist()
|
D | ipr.c | 3903 int bsize_elem, i, result = 0; in ipr_copy_ucode_buffer() local 3908 bsize_elem = PAGE_SIZE * (1 << sglist->order); in ipr_copy_ucode_buffer() 3912 for (i = 0; i < (len / bsize_elem); i++, sg = sg_next(sg), in ipr_copy_ucode_buffer() 3913 buffer += bsize_elem) { in ipr_copy_ucode_buffer() 3917 memcpy(kaddr, buffer, bsize_elem); in ipr_copy_ucode_buffer() 3920 sg->length = bsize_elem; in ipr_copy_ucode_buffer() 3928 if (len % bsize_elem) { in ipr_copy_ucode_buffer() 3932 memcpy(kaddr, buffer, len % bsize_elem); in ipr_copy_ucode_buffer() 3935 sg->length = len % bsize_elem; in ipr_copy_ucode_buffer()
|