Lines Matching refs:sg_used
2802 int sg_used, enum dma_data_direction data_direction) in hpsa_pci_unmap() argument
2806 for (i = 0; i < sg_used; i++) in hpsa_pci_unmap()
6471 BYTE sg_used = 0; in hpsa_big_passthru_ioctl() local
6502 buff_size[sg_used] = sz; in hpsa_big_passthru_ioctl()
6503 buff[sg_used] = kmalloc(sz, GFP_KERNEL); in hpsa_big_passthru_ioctl()
6504 if (buff[sg_used] == NULL) { in hpsa_big_passthru_ioctl()
6509 if (copy_from_user(buff[sg_used], data_ptr, sz)) { in hpsa_big_passthru_ioctl()
6514 memset(buff[sg_used], 0, sz); in hpsa_big_passthru_ioctl()
6517 sg_used++; in hpsa_big_passthru_ioctl()
6524 c->Header.SGList = (u8) sg_used; in hpsa_big_passthru_ioctl()
6525 c->Header.SGTotal = cpu_to_le16(sg_used); in hpsa_big_passthru_ioctl()
6530 for (i = 0; i < sg_used; i++) { in hpsa_big_passthru_ioctl()
6550 if (sg_used) in hpsa_big_passthru_ioctl()
6551 hpsa_pci_unmap(h->pdev, c, sg_used, DMA_BIDIRECTIONAL); in hpsa_big_passthru_ioctl()
6565 for (i = 0; i < sg_used; i++) { in hpsa_big_passthru_ioctl()
6580 for (i = 0; i < sg_used; i++) in hpsa_big_passthru_ioctl()