raid_dev 251 drivers/md/dm-raid.c struct raid_dev dev[0]; raid_dev 1127 drivers/md/dm-raid.c struct raid_dev *rd; raid_dev 700 drivers/scsi/megaraid/megaraid_mbox.c mraid_device_t *raid_dev; raid_dev 712 drivers/scsi/megaraid/megaraid_mbox.c raid_dev = kzalloc(sizeof(mraid_device_t), GFP_KERNEL); raid_dev 713 drivers/scsi/megaraid/megaraid_mbox.c if (raid_dev == NULL) return -1; raid_dev 719 drivers/scsi/megaraid/megaraid_mbox.c adapter->raid_device = (caddr_t)raid_dev; raid_dev 720 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->fast_load = megaraid_fast_load; raid_dev 724 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->baseport = pci_resource_start(pdev, 0); raid_dev 734 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->baseaddr = ioremap_nocache(raid_dev->baseport, 128); raid_dev 736 drivers/scsi/megaraid/megaraid_mbox.c if (!raid_dev->baseaddr) { raid_dev 745 drivers/scsi/megaraid/megaraid_mbox.c spin_lock_init(&raid_dev->mailbox_lock); raid_dev 816 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->random_del_supported = 1; raid_dev 896 drivers/scsi/megaraid/megaraid_mbox.c iounmap(raid_dev->baseaddr); raid_dev 900 drivers/scsi/megaraid/megaraid_mbox.c kfree(raid_dev); raid_dev 913 drivers/scsi/megaraid/megaraid_mbox.c mraid_device_t *raid_dev = ADAP2RAIDDEV(adapter); raid_dev 926 drivers/scsi/megaraid/megaraid_mbox.c iounmap(raid_dev->baseaddr); raid_dev 930 drivers/scsi/megaraid/megaraid_mbox.c kfree(raid_dev); raid_dev 948 drivers/scsi/megaraid/megaraid_mbox.c mraid_device_t *raid_dev = ADAP2RAIDDEV(adapter); raid_dev 965 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->una_mbox64 = dma_alloc_coherent(&adapter->pdev->dev, raid_dev 967 drivers/scsi/megaraid/megaraid_mbox.c &raid_dev->una_mbox64_dma, raid_dev 970 drivers/scsi/megaraid/megaraid_mbox.c if (!raid_dev->una_mbox64) { raid_dev 980 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->mbox = &raid_dev->una_mbox64->mbox32; raid_dev 982 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->mbox = (mbox_t *)((((unsigned long)raid_dev->mbox) + 15) & raid_dev 985 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->mbox64 = (mbox64_t *)(((unsigned long)raid_dev->mbox) - 8); raid_dev 987 drivers/scsi/megaraid/megaraid_mbox.c align = ((void *)raid_dev->mbox - raid_dev 988 drivers/scsi/megaraid/megaraid_mbox.c ((void *)&raid_dev->una_mbox64->mbox32)); raid_dev 990 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->mbox_dma = (unsigned long)raid_dev->una_mbox64_dma + 8 + raid_dev 1034 drivers/scsi/megaraid/megaraid_mbox.c epthru_pci_blk = raid_dev->epthru_pool; raid_dev 1035 drivers/scsi/megaraid/megaraid_mbox.c sg_pci_blk = raid_dev->sg_pool; raid_dev 1036 drivers/scsi/megaraid/megaraid_mbox.c mbox_pci_blk = raid_dev->mbox_pool; raid_dev 1040 drivers/scsi/megaraid/megaraid_mbox.c ccb = raid_dev->ccb_list + i; raid_dev 1093 drivers/scsi/megaraid/megaraid_mbox.c (caddr_t)raid_dev->una_mbox64, raid_dev->una_mbox64_dma); raid_dev 1108 drivers/scsi/megaraid/megaraid_mbox.c mraid_device_t *raid_dev = ADAP2RAIDDEV(adapter); raid_dev 1118 drivers/scsi/megaraid/megaraid_mbox.c (caddr_t)raid_dev->una_mbox64, raid_dev->una_mbox64_dma); raid_dev 1133 drivers/scsi/megaraid/megaraid_mbox.c mraid_device_t *raid_dev = ADAP2RAIDDEV(adapter); raid_dev 1142 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->mbox_pool_handle = dma_pool_create("megaraid mbox pool", raid_dev 1147 drivers/scsi/megaraid/megaraid_mbox.c if (raid_dev->mbox_pool_handle == NULL) { raid_dev 1151 drivers/scsi/megaraid/megaraid_mbox.c mbox_pci_blk = raid_dev->mbox_pool; raid_dev 1154 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->mbox_pool_handle, raid_dev 1170 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->epthru_pool_handle = dma_pool_create("megaraid mbox pthru", raid_dev 1173 drivers/scsi/megaraid/megaraid_mbox.c if (raid_dev->epthru_pool_handle == NULL) { raid_dev 1177 drivers/scsi/megaraid/megaraid_mbox.c epthru_pci_blk = raid_dev->epthru_pool; raid_dev 1180 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->epthru_pool_handle, raid_dev 1191 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->sg_pool_handle = dma_pool_create("megaraid mbox sg", raid_dev 1196 drivers/scsi/megaraid/megaraid_mbox.c if (raid_dev->sg_pool_handle == NULL) { raid_dev 1200 drivers/scsi/megaraid/megaraid_mbox.c sg_pci_blk = raid_dev->sg_pool; raid_dev 1203 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->sg_pool_handle, raid_dev 1229 drivers/scsi/megaraid/megaraid_mbox.c mraid_device_t *raid_dev = ADAP2RAIDDEV(adapter); raid_dev 1236 drivers/scsi/megaraid/megaraid_mbox.c sg_pci_blk = raid_dev->sg_pool; raid_dev 1238 drivers/scsi/megaraid/megaraid_mbox.c dma_pool_free(raid_dev->sg_pool_handle, sg_pci_blk[i].vaddr, raid_dev 1241 drivers/scsi/megaraid/megaraid_mbox.c dma_pool_destroy(raid_dev->sg_pool_handle); raid_dev 1244 drivers/scsi/megaraid/megaraid_mbox.c epthru_pci_blk = raid_dev->epthru_pool; raid_dev 1246 drivers/scsi/megaraid/megaraid_mbox.c dma_pool_free(raid_dev->epthru_pool_handle, raid_dev 1249 drivers/scsi/megaraid/megaraid_mbox.c dma_pool_destroy(raid_dev->epthru_pool_handle); raid_dev 1252 drivers/scsi/megaraid/megaraid_mbox.c mbox_pci_blk = raid_dev->mbox_pool; raid_dev 1254 drivers/scsi/megaraid/megaraid_mbox.c dma_pool_free(raid_dev->mbox_pool_handle, raid_dev 1257 drivers/scsi/megaraid/megaraid_mbox.c dma_pool_destroy(raid_dev->mbox_pool_handle); raid_dev 1376 drivers/scsi/megaraid/megaraid_mbox.c mraid_device_t *raid_dev = ADAP2RAIDDEV(adapter); raid_dev 1385 drivers/scsi/megaraid/megaraid_mbox.c mbox = raid_dev->mbox; raid_dev 1386 drivers/scsi/megaraid/megaraid_mbox.c mbox64 = raid_dev->mbox64; raid_dev 1392 drivers/scsi/megaraid/megaraid_mbox.c spin_lock_irqsave(MAILBOX_LOCK(raid_dev), flags); raid_dev 1403 drivers/scsi/megaraid/megaraid_mbox.c spin_unlock_irqrestore(MAILBOX_LOCK(raid_dev), flags); raid_dev 1421 drivers/scsi/megaraid/megaraid_mbox.c WRINDOOR(raid_dev, raid_dev->mbox_dma | 0x1); raid_dev 1423 drivers/scsi/megaraid/megaraid_mbox.c spin_unlock_irqrestore(MAILBOX_LOCK(raid_dev), flags); raid_dev 2035 drivers/scsi/megaraid/megaraid_mbox.c mraid_device_t *raid_dev = ADAP2RAIDDEV(adapter); raid_dev 2047 drivers/scsi/megaraid/megaraid_mbox.c mbox = raid_dev->mbox; raid_dev 2054 drivers/scsi/megaraid/megaraid_mbox.c spin_lock_irqsave(MAILBOX_LOCK(raid_dev), flags); raid_dev 2060 drivers/scsi/megaraid/megaraid_mbox.c dword = RDOUTDOOR(raid_dev); raid_dev 2065 drivers/scsi/megaraid/megaraid_mbox.c WROUTDOOR(raid_dev, 0x10001234); raid_dev 2114 drivers/scsi/megaraid/megaraid_mbox.c WRINDOOR(raid_dev, 0x02); raid_dev 2118 drivers/scsi/megaraid/megaraid_mbox.c spin_unlock_irqrestore(MAILBOX_LOCK(raid_dev), flags); raid_dev 2174 drivers/scsi/megaraid/megaraid_mbox.c mraid_device_t *raid_dev; raid_dev 2195 drivers/scsi/megaraid/megaraid_mbox.c raid_dev = ADAP2RAIDDEV(adapter); raid_dev 2258 drivers/scsi/megaraid/megaraid_mbox.c && IS_RAID_CH(raid_dev, scb->dev_channel)) { raid_dev 2274 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->pdrv_state[pdev_index] & 0x0F; raid_dev 2387 drivers/scsi/megaraid/megaraid_mbox.c mraid_device_t *raid_dev; raid_dev 2396 drivers/scsi/megaraid/megaraid_mbox.c raid_dev = ADAP2RAIDDEV(adapter); raid_dev 2404 drivers/scsi/megaraid/megaraid_mbox.c if (raid_dev->hw_error) { raid_dev 2527 drivers/scsi/megaraid/megaraid_mbox.c mraid_device_t *raid_dev; raid_dev 2536 drivers/scsi/megaraid/megaraid_mbox.c raid_dev = ADAP2RAIDDEV(adapter); raid_dev 2539 drivers/scsi/megaraid/megaraid_mbox.c if (raid_dev->hw_error) { raid_dev 2620 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->hw_error = 1; raid_dev 2675 drivers/scsi/megaraid/megaraid_mbox.c mraid_device_t *raid_dev = ADAP2RAIDDEV(adapter); raid_dev 2680 drivers/scsi/megaraid/megaraid_mbox.c mbox = raid_dev->mbox; raid_dev 2685 drivers/scsi/megaraid/megaraid_mbox.c if (megaraid_busywait_mbox(raid_dev) != 0) raid_dev 2700 drivers/scsi/megaraid/megaraid_mbox.c WRINDOOR(raid_dev, raid_dev->mbox_dma | 0x1); raid_dev 2753 drivers/scsi/megaraid/megaraid_mbox.c WRINDOOR(raid_dev, raid_dev->mbox_dma | 0x2); raid_dev 2757 drivers/scsi/megaraid/megaraid_mbox.c if (RDINDOOR(raid_dev) & 0x2) { raid_dev 2760 drivers/scsi/megaraid/megaraid_mbox.c for (i = 0; (RDINDOOR(raid_dev) & 0x2) && (i < 1000); i++) { raid_dev 2805 drivers/scsi/megaraid/megaraid_mbox.c mraid_device_t *raid_dev = ADAP2RAIDDEV(adapter); raid_dev 2810 drivers/scsi/megaraid/megaraid_mbox.c mbox = raid_dev->mbox; raid_dev 2825 drivers/scsi/megaraid/megaraid_mbox.c WRINDOOR(raid_dev, raid_dev->mbox_dma | 0x1); raid_dev 2839 drivers/scsi/megaraid/megaraid_mbox.c WRINDOOR(raid_dev, raid_dev->mbox_dma | 0x2); raid_dev 2854 drivers/scsi/megaraid/megaraid_mbox.c megaraid_busywait_mbox(mraid_device_t *raid_dev) raid_dev 2856 drivers/scsi/megaraid/megaraid_mbox.c mbox_t *mbox = raid_dev->mbox; raid_dev 2880 drivers/scsi/megaraid/megaraid_mbox.c mraid_device_t *raid_dev = ADAP2RAIDDEV(adapter); raid_dev 2931 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->pdrv_state[i] = mraid_inq3->pdrv_state[i]; raid_dev 3171 drivers/scsi/megaraid/megaraid_mbox.c mraid_device_t *raid_dev = ADAP2RAIDDEV(adapter); raid_dev 3189 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->channel_class = 0xFF; raid_dev 3191 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->channel_class = *(uint8_t *)adapter->ibuf; raid_dev 3238 drivers/scsi/megaraid/megaraid_mbox.c mraid_device_t *raid_dev = ADAP2RAIDDEV(adapter); raid_dev 3249 drivers/scsi/megaraid/megaraid_mbox.c mbox = raid_dev->mbox; raid_dev 3252 drivers/scsi/megaraid/megaraid_mbox.c if (megaraid_busywait_mbox(raid_dev) != 0) { raid_dev 3267 drivers/scsi/megaraid/megaraid_mbox.c WRINDOOR(raid_dev, raid_dev->mbox_dma | 0x1); raid_dev 3292 drivers/scsi/megaraid/megaraid_mbox.c dword = RDOUTDOOR(raid_dev); raid_dev 3293 drivers/scsi/megaraid/megaraid_mbox.c WROUTDOOR(raid_dev, dword); raid_dev 3294 drivers/scsi/megaraid/megaraid_mbox.c WRINDOOR(raid_dev,2); raid_dev 3405 drivers/scsi/megaraid/megaraid_mbox.c mraid_device_t *raid_dev = ADAP2RAIDDEV(adapter); raid_dev 3438 drivers/scsi/megaraid/megaraid_mbox.c ccb = raid_dev->uccb_list + i; raid_dev 3441 drivers/scsi/megaraid/megaraid_mbox.c ccb->mbox64 = raid_dev->umbox64 + i; raid_dev 3770 drivers/scsi/megaraid/megaraid_mbox.c mraid_device_t *raid_dev = ADAP2RAIDDEV(adapter); raid_dev 3773 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->sysfs_uioc = kmalloc(sizeof(uioc_t), GFP_KERNEL); raid_dev 3775 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->sysfs_mbox64 = kmalloc(sizeof(mbox64_t), GFP_KERNEL); raid_dev 3777 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->sysfs_buffer = dma_alloc_coherent(&adapter->pdev->dev, raid_dev 3778 drivers/scsi/megaraid/megaraid_mbox.c PAGE_SIZE, &raid_dev->sysfs_buffer_dma, GFP_KERNEL); raid_dev 3780 drivers/scsi/megaraid/megaraid_mbox.c if (!raid_dev->sysfs_uioc || !raid_dev->sysfs_mbox64 || raid_dev 3781 drivers/scsi/megaraid/megaraid_mbox.c !raid_dev->sysfs_buffer) { raid_dev 3792 drivers/scsi/megaraid/megaraid_mbox.c mutex_init(&raid_dev->sysfs_mtx); raid_dev 3794 drivers/scsi/megaraid/megaraid_mbox.c init_waitqueue_head(&raid_dev->sysfs_wait_q); raid_dev 3809 drivers/scsi/megaraid/megaraid_mbox.c mraid_device_t *raid_dev = ADAP2RAIDDEV(adapter); raid_dev 3811 drivers/scsi/megaraid/megaraid_mbox.c kfree(raid_dev->sysfs_uioc); raid_dev 3812 drivers/scsi/megaraid/megaraid_mbox.c kfree(raid_dev->sysfs_mbox64); raid_dev 3814 drivers/scsi/megaraid/megaraid_mbox.c if (raid_dev->sysfs_buffer) { raid_dev 3816 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->sysfs_buffer, raid_dev->sysfs_buffer_dma); raid_dev 3831 drivers/scsi/megaraid/megaraid_mbox.c mraid_device_t *raid_dev = ADAP2RAIDDEV(adapter); raid_dev 3835 drivers/scsi/megaraid/megaraid_mbox.c wake_up(&raid_dev->sysfs_wait_q); raid_dev 3852 drivers/scsi/megaraid/megaraid_mbox.c mraid_device_t *raid_dev = ADAP2RAIDDEV(adapter); raid_dev 3856 drivers/scsi/megaraid/megaraid_mbox.c wake_up(&raid_dev->sysfs_wait_q); raid_dev 3880 drivers/scsi/megaraid/megaraid_mbox.c mraid_device_t *raid_dev = ADAP2RAIDDEV(adapter); raid_dev 3892 drivers/scsi/megaraid/megaraid_mbox.c mutex_lock(&raid_dev->sysfs_mtx); raid_dev 3894 drivers/scsi/megaraid/megaraid_mbox.c uioc = raid_dev->sysfs_uioc; raid_dev 3895 drivers/scsi/megaraid/megaraid_mbox.c mbox64 = raid_dev->sysfs_mbox64; raid_dev 3896 drivers/scsi/megaraid/megaraid_mbox.c ldmap = raid_dev->sysfs_buffer; raid_dev 3900 drivers/scsi/megaraid/megaraid_mbox.c memset(ldmap, 0, sizeof(raid_dev->curr_ldmap)); raid_dev 3913 drivers/scsi/megaraid/megaraid_mbox.c mbox->xferaddr = (uint32_t)raid_dev->sysfs_buffer_dma; raid_dev 3934 drivers/scsi/megaraid/megaraid_mbox.c wait_event(raid_dev->sysfs_wait_q, (uioc->status != -ENODATA)); raid_dev 3950 drivers/scsi/megaraid/megaraid_mbox.c memcpy(raid_dev->curr_ldmap, ldmap, raid_dev 3951 drivers/scsi/megaraid/megaraid_mbox.c sizeof(raid_dev->curr_ldmap)); raid_dev 3967 drivers/scsi/megaraid/megaraid_mbox.c mutex_unlock(&raid_dev->sysfs_mtx); raid_dev 4016 drivers/scsi/megaraid/megaraid_mbox.c mraid_device_t *raid_dev = ADAP2RAIDDEV(adapter); raid_dev 4025 drivers/scsi/megaraid/megaraid_mbox.c if (raid_dev->random_del_supported && raid_dev 4039 drivers/scsi/megaraid/megaraid_mbox.c if (raid_dev->curr_ldmap[i] == mapped_sdev_id) { raid_dev 4045 drivers/scsi/megaraid/megaraid_mbox.c ldid_map = raid_dev->curr_ldmap[i]; raid_dev 221 drivers/scsi/raid_class.c int raid_component_add(struct raid_template *r,struct device *raid_dev, raid_dev 226 drivers/scsi/raid_class.c raid_dev);