Lines Matching defs:buffer

286 	SasIOUnitPage0_t *buffer;
303 buffer = dma_alloc_coherent(&ioc->pcidev->dev, hdr.ExtPageLength * 4,
305 if (!buffer)
314 if (!(buffer->PhyData[0].PortFlags &
319 dma_free_coherent(&ioc->pcidev->dev, hdr.ExtPageLength * 4, buffer,
1194 * is in proper (pre-alloc'd) request buffer range...
4314 * chain buffer control arrays and spinlock.
4354 * num_sge = num sge in request frame + last chain buffer
4355 * scale = num sge per chain buffer if no chain element
4484 sz = num_chain * ioc->req_sz; /* chain buffer pool size */
4896 /* don't overflow our IOC hs_reply[] buffer! */
5655 pRaidVolumePage0_t buffer = NULL;
5674 buffer = dma_alloc_coherent(&ioc->pcidev->dev, hdr.PageLength * 4,
5677 if (!buffer)
5686 if (!buffer->NumPhysDisks)
5690 (buffer->VolumeStatus.Flags & MPI_RAIDVOL0_STATUS_FLAG_VOLUME_INACTIVE ||
5691 (buffer->VolumeStatus.Flags & MPI_RAIDVOL0_STATUS_FLAG_ENABLED) == 0 ||
5692 buffer->VolumeStatus.State == MPI_RAIDVOL0_STATUS_STATE_FAILED ||
5693 buffer->VolumeStatus.State == MPI_RAIDVOL0_STATUS_STATE_MISSING) ? 1 : 0;
5699 for (i = 0; i < buffer->NumPhysDisks; i++) {
5701 buffer->PhysDisk[i].PhysDiskNum, &phys_disk) != 0)
5721 if (buffer)
5723 buffer, dma_handle);
5744 pRaidPhysDiskPage0_t buffer = NULL;
5767 buffer = dma_alloc_coherent(&ioc->pcidev->dev, hdr.PageLength * 4,
5770 if (!buffer) {
5785 memcpy(phys_disk, buffer, sizeof(*buffer));
5786 phys_disk->MaxLBA = le32_to_cpu(buffer->MaxLBA);
5790 if (buffer)
5792 buffer, dma_handle);
5811 pRaidPhysDiskPage1_t buffer = NULL;
5834 buffer = dma_alloc_coherent(&ioc->pcidev->dev, hdr.PageLength * 4,
5837 if (!buffer) {
5851 rc = buffer->NumPhysDiskPaths;
5854 if (buffer)
5856 buffer, dma_handle);
5880 pRaidPhysDiskPage1_t buffer = NULL;
5906 buffer = dma_alloc_coherent(&ioc->pcidev->dev, hdr.PageLength * 4,
5909 if (!buffer) {
5923 phys_disk->NumPhysDiskPaths = buffer->NumPhysDiskPaths;
5926 phys_disk->Path[i].PhysDiskID = buffer->Path[i].PhysDiskID;
5927 phys_disk->Path[i].PhysDiskBus = buffer->Path[i].PhysDiskBus;
5929 buffer->Path[i].OwnerIdentifier;
5930 phys_disk->Path[i].Flags = le16_to_cpu(buffer->Path[i].Flags);
5931 memcpy(&sas_address, &buffer->Path[i].WWID, sizeof(__le64));
5935 &buffer->Path[i].OwnerWWID, sizeof(__le64));
5943 if (buffer)
5945 buffer, dma_handle);
6799 * mpt_print_ioc_summary - Write ASCII summary of IOC to a buffer.
6801 * @buffer: Pointer to buffer where IOC summary info should be written
6803 * @len: Offset at which to start writing in buffer
6807 * a summary of IOC information, to a buffer.
6810 mpt_print_ioc_summary(MPT_ADAPTER *ioc, char *buffer, int *size, int len, int showlan)
6820 y = sprintf(buffer+len, "%s: %s, %s%08xh%s, Ports=%d, MaxQ=%d",
6831 y += sprintf(buffer+len+y, ", LanAddr=%pMR", a);
6834 y += sprintf(buffer+len+y, ", IRQ=%d", ioc->pci_irq);
6837 y += sprintf(buffer+len+y, " (disabled)");
6839 y += sprintf(buffer+len+y, "\n");
7746 * When buffer is full, start again at the top.