Lines Matching refs:sg_used
1934 struct CommandList *c, int sg_used, int data_direction) in hpsa_pci_unmap() argument
1939 for (i = 0; i < sg_used; i++) { in hpsa_pci_unmap()
5037 BYTE sg_used = 0; in hpsa_big_passthru_ioctl() local
5086 buff_size[sg_used] = sz; in hpsa_big_passthru_ioctl()
5087 buff[sg_used] = kmalloc(sz, GFP_KERNEL); in hpsa_big_passthru_ioctl()
5088 if (buff[sg_used] == NULL) { in hpsa_big_passthru_ioctl()
5093 if (copy_from_user(buff[sg_used], data_ptr, sz)) { in hpsa_big_passthru_ioctl()
5098 memset(buff[sg_used], 0, sz); in hpsa_big_passthru_ioctl()
5101 sg_used++; in hpsa_big_passthru_ioctl()
5110 c->Header.SGList = c->Header.SGTotal = sg_used; in hpsa_big_passthru_ioctl()
5116 for (i = 0; i < sg_used; i++) { in hpsa_big_passthru_ioctl()
5131 c->SG[i].Ext = i < sg_used - 1 ? 0 : HPSA_SG_LAST; in hpsa_big_passthru_ioctl()
5135 if (sg_used) in hpsa_big_passthru_ioctl()
5136 hpsa_pci_unmap(h->pdev, c, sg_used, PCI_DMA_BIDIRECTIONAL); in hpsa_big_passthru_ioctl()
5147 for (i = 0; i < sg_used; i++) { in hpsa_big_passthru_ioctl()
5160 for (i = 0; i < sg_used; i++) in hpsa_big_passthru_ioctl()