Lines Matching refs:sg_used
2806 int sg_used, enum dma_data_direction data_direction) in hpsa_pci_unmap() argument
2810 for (i = 0; i < sg_used; i++) in hpsa_pci_unmap()
6499 BYTE sg_used = 0; in hpsa_big_passthru_ioctl() local
6530 buff_size[sg_used] = sz; in hpsa_big_passthru_ioctl()
6531 buff[sg_used] = kmalloc(sz, GFP_KERNEL); in hpsa_big_passthru_ioctl()
6532 if (buff[sg_used] == NULL) { in hpsa_big_passthru_ioctl()
6537 if (copy_from_user(buff[sg_used], data_ptr, sz)) { in hpsa_big_passthru_ioctl()
6542 memset(buff[sg_used], 0, sz); in hpsa_big_passthru_ioctl()
6545 sg_used++; in hpsa_big_passthru_ioctl()
6552 c->Header.SGList = (u8) sg_used; in hpsa_big_passthru_ioctl()
6553 c->Header.SGTotal = cpu_to_le16(sg_used); in hpsa_big_passthru_ioctl()
6558 for (i = 0; i < sg_used; i++) { in hpsa_big_passthru_ioctl()
6578 if (sg_used) in hpsa_big_passthru_ioctl()
6579 hpsa_pci_unmap(h->pdev, c, sg_used, DMA_BIDIRECTIONAL); in hpsa_big_passthru_ioctl()
6593 for (i = 0; i < sg_used; i++) { in hpsa_big_passthru_ioctl()
6608 for (i = 0; i < sg_used; i++) in hpsa_big_passthru_ioctl()