Searched refs:pDev (Results 1 - 4 of 4) sorted by relevance

/linux-4.4.14/drivers/scsi/
H A Ddpt_i2o.c192 struct pci_dev *pDev = NULL; adpt_detect() local
199 while ((pDev = pci_get_device( PCI_DPT_VENDOR_ID, PCI_ANY_ID, pDev))) { adpt_detect()
200 if(pDev->device == PCI_DPT_DEVICE_ID || adpt_detect()
201 pDev->device == PCI_DPT_RAPTOR_DEVICE_ID){ adpt_detect()
202 if(adpt_install_hba(sht, pDev) ){ adpt_detect()
207 pci_dev_get(pDev); adpt_detect()
330 buf = dma_alloc_coherent(&pHba->pDev->dev, 80, &addr, GFP_KERNEL); adpt_inquiry()
394 dma_free_coherent(&pHba->pDev->dev, 80, buf, addr); adpt_inquiry()
403 dma_free_coherent(&pHba->pDev->dev, 80, buf, addr); adpt_inquiry()
427 struct adpt_device* pDev = NULL; /* dpt per device information */ adpt_queue_lck() local
454 if((pDev = (struct adpt_device*) (cmd->device->hostdata)) == NULL) { adpt_queue_lck()
460 if ((pDev = adpt_find_device(pHba, (u32)cmd->device->channel, (u32)cmd->device->id, cmd->device->lun)) == NULL) { adpt_queue_lck()
467 cmd->device->hostdata = pDev; adpt_queue_lck()
469 pDev->pScsi_dev = cmd->device; adpt_queue_lck()
475 if (pDev->state & DPTI_DEV_RESET ) { adpt_queue_lck()
478 return adpt_scsi_to_i2o(pHba, cmd, pDev); adpt_queue_lck()
904 static int adpt_install_hba(struct scsi_host_template* sht, struct pci_dev* pDev) adpt_install_hba() argument
919 if(pci_enable_device(pDev)) { adpt_install_hba()
923 if (pci_request_regions(pDev, "dpt_i2o")) { adpt_install_hba()
928 pci_set_master(pDev); adpt_install_hba()
934 pci_set_dma_mask(pDev, DMA_BIT_MASK(64)) == 0) { adpt_install_hba()
935 if (dma_get_required_mask(&pDev->dev) > DMA_BIT_MASK(32)) adpt_install_hba()
938 if (!dma64 && pci_set_dma_mask(pDev, DMA_BIT_MASK(32)) != 0) adpt_install_hba()
942 pci_set_consistent_dma_mask(pDev, DMA_BIT_MASK(32)); adpt_install_hba()
944 base_addr0_phys = pci_resource_start(pDev,0); adpt_install_hba()
945 hba_map0_area_size = pci_resource_len(pDev,0); adpt_install_hba()
948 if(pDev->device == PCI_DPT_DEVICE_ID){ adpt_install_hba()
949 if(pDev->subsystem_device >=0xc032 && pDev->subsystem_device <= 0xc03b){ adpt_install_hba()
959 base_addr1_phys = pci_resource_start(pDev,1); adpt_install_hba()
960 hba_map1_area_size = pci_resource_len(pDev,1); adpt_install_hba()
985 pci_release_regions(pDev); adpt_install_hba()
995 pci_release_regions(pDev); adpt_install_hba()
1008 pci_release_regions(pDev); adpt_install_hba()
1027 pHba->pDev = pDev; adpt_install_hba()
1043 pHba->pDev = pDev; adpt_install_hba()
1055 hba_map0_area_size, pDev->irq, adpt_install_hba()
1059 hba_count-1, pDev->irq, adpt_install_hba()
1065 if (request_irq (pDev->irq, adpt_isr, IRQF_SHARED, pHba->name, pHba)) { adpt_install_hba()
1066 printk(KERN_ERR"%s: Couldn't register IRQ %d\n", pHba->name, pDev->irq); adpt_install_hba()
1083 struct adpt_device* pDev; adpt_i2o_delete_hba() local
1109 pci_release_regions(pHba->pDev); adpt_i2o_delete_hba()
1116 dma_free_coherent(&pHba->pDev->dev, adpt_i2o_delete_hba()
1121 dma_free_coherent(&pHba->pDev->dev, pHba->lct_size, adpt_i2o_delete_hba()
1125 dma_free_coherent(&pHba->pDev->dev, sizeof(i2o_status_block), adpt_i2o_delete_hba()
1129 dma_free_coherent(&pHba->pDev->dev, adpt_i2o_delete_hba()
1141 for(pDev = pHba->channel[i].device[j]; pDev; pDev = pNext){ adpt_i2o_delete_hba()
1142 pNext = pDev->next_lun; adpt_i2o_delete_hba()
1143 kfree(pDev); adpt_i2o_delete_hba()
1148 pci_dev_put(pHba->pDev); adpt_i2o_delete_hba()
1377 status = dma_alloc_coherent(&pHba->pDev->dev, 4, &addr, GFP_KERNEL); adpt_i2o_reset_hba()
1405 /* dma_free_coherent(&pHba->pDev->dev, 4, buf, addr); */ adpt_i2o_reset_hba()
1427 /* dma_free_coherent(&pHba->pDev->dev, 4, buf, addr); */ adpt_i2o_reset_hba()
1444 dma_free_coherent(&pHba->pDev->dev, 4, status, addr); adpt_i2o_reset_hba()
1465 struct adpt_device* pDev; adpt_i2o_parse_lct() local
1580 pDev = kzalloc(sizeof(struct adpt_device),GFP_KERNEL); adpt_i2o_parse_lct()
1581 if(pDev == NULL) { adpt_i2o_parse_lct()
1584 pHba->channel[bus_no].device[scsi_id] = pDev; adpt_i2o_parse_lct()
1586 for( pDev = pHba->channel[bus_no].device[scsi_id]; adpt_i2o_parse_lct()
1587 pDev->next_lun; pDev = pDev->next_lun){ adpt_i2o_parse_lct()
1589 pDev->next_lun = kzalloc(sizeof(struct adpt_device),GFP_KERNEL); adpt_i2o_parse_lct()
1590 if(pDev->next_lun == NULL) { adpt_i2o_parse_lct()
1593 pDev = pDev->next_lun; adpt_i2o_parse_lct()
1595 pDev->tid = tid; adpt_i2o_parse_lct()
1596 pDev->scsi_channel = bus_no; adpt_i2o_parse_lct()
1597 pDev->scsi_id = scsi_id; adpt_i2o_parse_lct()
1598 pDev->scsi_lun = scsi_lun; adpt_i2o_parse_lct()
1599 pDev->pI2o_dev = d; adpt_i2o_parse_lct()
1600 d->owner = pDev; adpt_i2o_parse_lct()
1601 pDev->type = (buf[0])&0xff; adpt_i2o_parse_lct()
1602 pDev->flags = (buf[0]>>8)&0xff; adpt_i2o_parse_lct()
1778 p = dma_alloc_coherent(&pHba->pDev->dev, sg_size, &addr, GFP_KERNEL); adpt_i2o_passthru()
1887 dma_free_coherent(&pHba->pDev->dev, adpt_i2o_passthru()
2036 HbaInfo.pciBusNum = pHba->pDev->bus->number; adpt_ioctl()
2037 HbaInfo.pciDeviceNum=PCI_SLOT(pHba->pDev->devfn); adpt_ioctl()
2038 HbaInfo.Interrupt = pHba->pDev->irq; adpt_ioctl()
2353 host->irq = pHba->pDev->irq; adpt_scsi_host_alloc()
2524 struct adpt_device* pDev = NULL; adpt_i2o_reparse_lct() local
2538 pDev =(struct adpt_device*) d->owner; adpt_i2o_reparse_lct()
2539 if(!pDev){ adpt_i2o_reparse_lct()
2542 pDev->state |= DPTI_DEV_UNSCANNED; adpt_i2o_reparse_lct()
2570 pDev = pHba->channel[bus_no].device[scsi_id]; adpt_i2o_reparse_lct()
2572 while(pDev) { adpt_i2o_reparse_lct()
2573 if(pDev->scsi_lun == scsi_lun) { adpt_i2o_reparse_lct()
2576 pDev = pDev->next_lun; adpt_i2o_reparse_lct()
2578 if(!pDev ) { // Something new add it adpt_i2o_reparse_lct()
2596 pDev = pHba->channel[bus_no].device[scsi_id]; adpt_i2o_reparse_lct()
2597 if( pDev == NULL){ adpt_i2o_reparse_lct()
2598 pDev = adpt_i2o_reparse_lct()
2601 if(pDev == NULL) { adpt_i2o_reparse_lct()
2604 pHba->channel[bus_no].device[scsi_id] = pDev; adpt_i2o_reparse_lct()
2606 while (pDev->next_lun) { adpt_i2o_reparse_lct()
2607 pDev = pDev->next_lun; adpt_i2o_reparse_lct()
2609 pDev = pDev->next_lun = adpt_i2o_reparse_lct()
2612 if(pDev == NULL) { adpt_i2o_reparse_lct()
2616 pDev->tid = d->lct_data.tid; adpt_i2o_reparse_lct()
2617 pDev->scsi_channel = bus_no; adpt_i2o_reparse_lct()
2618 pDev->scsi_id = scsi_id; adpt_i2o_reparse_lct()
2619 pDev->scsi_lun = scsi_lun; adpt_i2o_reparse_lct()
2620 pDev->pI2o_dev = d; adpt_i2o_reparse_lct()
2621 d->owner = pDev; adpt_i2o_reparse_lct()
2622 pDev->type = (buf[0])&0xff; adpt_i2o_reparse_lct()
2623 pDev->flags = (buf[0]>>8)&0xff; adpt_i2o_reparse_lct()
2635 while(pDev) { adpt_i2o_reparse_lct()
2636 if(pDev->scsi_lun == scsi_lun) { adpt_i2o_reparse_lct()
2637 if(!scsi_device_online(pDev->pScsi_dev)) { adpt_i2o_reparse_lct()
2640 if (pDev->pScsi_dev) { adpt_i2o_reparse_lct()
2641 scsi_device_set_state(pDev->pScsi_dev, SDEV_RUNNING); adpt_i2o_reparse_lct()
2644 d = pDev->pI2o_dev; adpt_i2o_reparse_lct()
2646 pDev->tid = tid; adpt_i2o_reparse_lct()
2648 if (pDev->pScsi_dev) { adpt_i2o_reparse_lct()
2649 pDev->pScsi_dev->changed = TRUE; adpt_i2o_reparse_lct()
2650 pDev->pScsi_dev->removable = TRUE; adpt_i2o_reparse_lct()
2654 pDev->state = DPTI_DEV_ONLINE; adpt_i2o_reparse_lct()
2657 pDev = pDev->next_lun; adpt_i2o_reparse_lct()
2662 pDev =(struct adpt_device*) pI2o_dev->owner; adpt_i2o_reparse_lct()
2663 if(!pDev){ adpt_i2o_reparse_lct()
2668 if (pDev->state & DPTI_DEV_UNSCANNED){ adpt_i2o_reparse_lct()
2669 pDev->state = DPTI_DEV_OFFLINE; adpt_i2o_reparse_lct()
2670 printk(KERN_WARNING"%s: Device (%d,%d,%llu) offline\n",pHba->name,pDev->scsi_channel,pDev->scsi_id,pDev->scsi_lun); adpt_i2o_reparse_lct()
2671 if (pDev->pScsi_dev) { adpt_i2o_reparse_lct()
2672 scsi_device_set_state(pDev->pScsi_dev, SDEV_OFFLINE); adpt_i2o_reparse_lct()
2835 status = dma_alloc_coherent(&pHba->pDev->dev, 4, &addr, GFP_KERNEL); adpt_i2o_init_outbound_q()
2869 /* dma_free_coherent(&pHba->pDev->dev, 4, status, addr); */ adpt_i2o_init_outbound_q()
2878 dma_free_coherent(&pHba->pDev->dev, 4, status, addr); adpt_i2o_init_outbound_q()
2881 dma_free_coherent(&pHba->pDev->dev, 4, status, addr); adpt_i2o_init_outbound_q()
2884 dma_free_coherent(&pHba->pDev->dev, adpt_i2o_init_outbound_q()
2889 pHba->reply_pool = dma_alloc_coherent(&pHba->pDev->dev, adpt_i2o_init_outbound_q()
2927 pHba->status_block = dma_alloc_coherent(&pHba->pDev->dev, adpt_i2o_status_get()
3054 pHba->lct = dma_alloc_coherent(&pHba->pDev->dev, adpt_i2o_lct_get()
3083 dma_free_coherent(&pHba->pDev->dev, pHba->lct_size, adpt_i2o_lct_get()
3119 dma_free_coherent(&pHba->pDev->dev, sys_tbl_len, adpt_i2o_build_sys_table()
3125 sys_tbl = dma_alloc_coherent(&pHba->pDev->dev, adpt_i2o_build_sys_table()
3292 pHba->hrt = dma_alloc_coherent(&pHba->pDev->dev, adpt_i2o_hrt_get()
3314 dma_free_coherent(&pHba->pDev->dev, size, adpt_i2o_hrt_get()
3338 resblk_va = dma_alloc_coherent(&pHba->pDev->dev, adpt_i2o_query_scalar()
3345 opblk_va = dma_alloc_coherent(&pHba->pDev->dev, adpt_i2o_query_scalar()
3348 dma_free_coherent(&pHba->pDev->dev, sizeof(u8) * (8+buflen), adpt_i2o_query_scalar()
3361 dma_free_coherent(&pHba->pDev->dev, sizeof(opblk), opblk_va, opblk_pa); adpt_i2o_query_scalar()
3363 dma_free_coherent(&pHba->pDev->dev, sizeof(u8) * (8+buflen), adpt_i2o_query_scalar()
3368 dma_free_coherent(&pHba->pDev->dev, sizeof(u8) * (8+buflen), adpt_i2o_query_scalar()
3376 dma_free_coherent(&pHba->pDev->dev, sizeof(u8) * (8+buflen), adpt_i2o_query_scalar()
3585 error = scsi_add_host(pHba->host, &pHba->pDev->dev); adpt_init()
H A Ddpti.h208 struct pci_dev *pDev; member in struct:_adpt_hba
304 static int adpt_install_hba(struct scsi_host_template* sht, struct pci_dev* pDev) ;
/linux-4.4.14/drivers/video/fbdev/kyro/
H A DSTG4000InitDevice.c243 int SetCoreClockPLL(volatile STG4000REG __iomem *pSTGReg, struct pci_dev *pDev) SetCoreClockPLL() argument
277 pci_read_config_word(pDev, PCI_CONFIG_SUBSYS_ID, &sub); SetCoreClockPLL()
280 (u32)pDev->revision); SetCoreClockPLL()
293 pci_write_config_word(pDev, CorePllControl, tmp); SetCoreClockPLL()
300 pci_write_config_word(pDev, CorePllControl, tmp); SetCoreClockPLL()
306 pci_write_config_word(pDev, CorePllControl, tmp); SetCoreClockPLL()
310 pci_write_config_word(pDev, CorePllControl, tmp); SetCoreClockPLL()
H A DSTG4000Interface.h38 extern int SetCoreClockPLL(volatile STG4000REG __iomem *pSTGReg, struct pci_dev *pDev);

Completed in 138 milliseconds