Searched refs:bsize_elem (Results 1 – 2 of 2) sorted by relevance
/drivers/scsi/ |
D | pmcraid.c | 3352 int bsize_elem; in pmcraid_alloc_sglist() local 3356 bsize_elem = PAGE_SIZE * (1 << order); in pmcraid_alloc_sglist() 3359 if (buflen % bsize_elem) in pmcraid_alloc_sglist() 3360 num_elem = (buflen / bsize_elem) + 1; in pmcraid_alloc_sglist() 3362 num_elem = buflen / bsize_elem; in pmcraid_alloc_sglist() 3388 sg_size < bsize_elem ? sg_size : bsize_elem, 0); in pmcraid_alloc_sglist() 3389 sg_size -= bsize_elem; in pmcraid_alloc_sglist() 3416 int bsize_elem; in pmcraid_copy_sglist() local 3421 bsize_elem = PAGE_SIZE * (1 << sglist->order); in pmcraid_copy_sglist() 3425 for (i = 0; i < (len / bsize_elem); i++, buffer += bsize_elem) { in pmcraid_copy_sglist() [all …]
|
D | ipr.c | 3732 int sg_size, order, bsize_elem, num_elem, i, j; in ipr_alloc_ucode_buffer() local 3744 bsize_elem = PAGE_SIZE * (1 << order); in ipr_alloc_ucode_buffer() 3747 if (buf_len % bsize_elem) in ipr_alloc_ucode_buffer() 3748 num_elem = (buf_len / bsize_elem) + 1; in ipr_alloc_ucode_buffer() 3750 num_elem = buf_len / bsize_elem; in ipr_alloc_ucode_buffer() 3822 int bsize_elem, i, result = 0; in ipr_copy_ucode_buffer() local 3827 bsize_elem = PAGE_SIZE * (1 << sglist->order); in ipr_copy_ucode_buffer() 3831 for (i = 0; i < (len / bsize_elem); i++, buffer += bsize_elem) { in ipr_copy_ucode_buffer() 3835 memcpy(kaddr, buffer, bsize_elem); in ipr_copy_ucode_buffer() 3838 scatterlist[i].length = bsize_elem; in ipr_copy_ucode_buffer() [all …]
|