Lines Matching +full:0 +full:x1103

39 static int attach_generic = 0;
49 if (pci_get_vendor(dev) != 0x1103 && !attach_generic) in hpt_match()
52 for (i=0; him->get_supported_device_id(i, &pci_id); i++) { in hpt_match()
103 hba->pciaddr.tree = 0; in hpt_attach()
133 return 0; in hpt_attach()
144 M_DEVBUF, M_WAITOK, BUS_SPACE_MAXADDR_24BIT, BUS_SPACE_MAXADDR, PAGE_SIZE, 0); in __get_free_pages()
162 ldm_get_mem_info((PVBUS)vbus_ext->vbus, 0); in hpt_alloc_mem()
167 for (i=0; i<f->count; i++) { in hpt_alloc_mem()
178 HPT_ASSERT((f->size & (f->alignment-1))==0); in hpt_alloc_mem()
180 for (order=0, size=PAGE_SIZE; size<f->size; order++, size<<=1) in hpt_alloc_mem()
187 for (i=0; i<f->count;) { in hpt_alloc_mem()
201 for (i=0; i<os_max_cache_pages; i++) { in hpt_alloc_mem()
202 p = (void **)__get_free_pages(0); in hpt_alloc_mem()
204 HPT_ASSERT(((HPT_UPTR)p & (DMAPOOL_PAGE_SIZE-1))==0); in hpt_alloc_mem()
208 return 0; in hpt_alloc_mem()
228 for (i=0; i<os_max_cache_pages; i++) { in hpt_free_mem()
241 for (order=0, size=PAGE_SIZE; size<f->size; order++, size<<=1) ; in hpt_free_mem()
248 if (((HPT_UPTR)p & (PAGE_SIZE-1))==0) in hpt_free_mem()
269 return 0; in hpt_init_vbus()
295 int result = 0, done; in hpt_flush_vdev()
318 done = 0; in hpt_flush_vdev()
351 vbus_ext->worker.ta_context = 0; in hpt_shutdown_vbus()
354 for (i=0; i<osm_max_targets; i++) { in hpt_shutdown_vbus()
389 vbus_ext->tasks = 0; in __hpt_do_tasks()
394 t->next = 0; in __hpt_do_tasks()
497 HPT_ASSERT(0); in os_buildsgl()
515 if (nsegs != 0) { in hpt_io_dmamap_callback()
516 for (idx = 0; idx < nsegs; idx++, psg++) { in hpt_io_dmamap_callback()
519 psg->eot = 0; in hpt_io_dmamap_callback()
552 *(HPT_U32 *)&cdb[0], *(HPT_U32 *)&cdb[4], *(HPT_U32 *)&cdb[8] in hpt_scsi_io()
556 if (ccb->ccb_h.target_lun != 0 || in hpt_scsi_io()
573 switch (cdb[0]) { in hpt_scsi_io()
583 memset(ccb->csio.data_ptr, 0, ccb->csio.dxfer_len); in hpt_scsi_io()
589 memcpy(&inquiryData->ProductId, "DISK 0_0 ", 16); in hpt_scsi_io()
592 inquiryData->ProductId[7] = (vd->target_id % 100) / 10 + '0'; in hpt_scsi_io()
593 inquiryData->ProductId[8] = (vd->target_id % 100) % 10 + '0'; in hpt_scsi_io()
596 inquiryData->ProductId[7] = (vd->target_id % 100) % 10 + '0'; in hpt_scsi_io()
609 if (vd->capacity>0xfffffffful) in hpt_scsi_io()
610 cap = 0xfffffffful; in hpt_scsi_io()
614 rbuf[0] = (HPT_U8)(cap>>24); in hpt_scsi_io()
618 rbuf[4] = 0; in hpt_scsi_io()
619 rbuf[5] = 0; in hpt_scsi_io()
621 rbuf[7] = 0; in hpt_scsi_io()
632 rbuf[0] = (HPT_U8)(cap>>56); in hpt_scsi_io()
640 rbuf[8] = 0; in hpt_scsi_io()
641 rbuf[9] = 0; in hpt_scsi_io()
643 rbuf[11] = 0; in hpt_scsi_io()
655 case 0x13: in hpt_scsi_io()
656 case 0x2f: in hpt_scsi_io()
667 switch (cdb[0]) { in hpt_scsi_io()
670 case 0x13: in hpt_scsi_io()
697 switch (cdb[0]) { in hpt_scsi_io()
775 cpi->target_sprt = 0; in hpt_action()
777 cpi->hba_eng_cnt = 0; in hpt_action()
779 cpi->max_lun = 0; in hpt_action()
828 return 0; in hpt_shutdown()
839 arg->ioctl_cmnd = 0; in hpt_ioctl_done()
853 if (hpt_sleep(vbus_ext, ioctl_args, PPAUSE, "hptctl", HPT_OSM_TIMEOUT)==0) in __hpt_do_ioctl()
883 arg.lpBytesReturned = 0;\
888 #define DEVICEID_VALID(id) ((id) && ((HPT_U32)(id)!=0xffffffff))
899 nMaxCount = (int)pIds[0]; in hpt_get_logical_devices()
900 for (i=0; i<nMaxCount; i++) pIds[i] = pIds[i+1]; in hpt_get_logical_devices()
915 DEVICEID param[2] = { id, 0 }; in __hpt_stop_tasks()
934 KdPrint(("SET_ARRAY_STATE(%x, %d)", param[0], param[1])); in __hpt_stop_tasks()
936 param, sizeof(param), 0, 0); in __hpt_stop_tasks()
938 for (i=0; i<devinfo.u.array.nDisk; i++) in __hpt_stop_tasks()
950 count = hpt_get_logical_devices((DEVICEID *)&ids, sizeof(ids)/sizeof(ids[0])); in hpt_stop_tasks()
952 for (i=0; i<count; i++) in hpt_stop_tasks()
985 i = 0; in hpt_final_init()
1004 callout_init_mtx(&vbus_ext->timer, &vbus_ext->lock, 0); in hpt_final_init()
1024 0x10000, /* maxsegsize */ in hpt_final_init()
1033 for (i=0; i<os_max_queue_comm; i++) { in hpt_final_init()
1039 if (bus_dmamap_create(vbus_ext->io_dmat, 0, &ext->dma_map)) { in hpt_final_init()
1043 callout_init_mtx(&ext->timeout, &vbus_ext->lock, 0); in hpt_final_init()
1052 vbus_ext, 0, &vbus_ext->lock, os_max_queue_comm, in hpt_final_init()
1062 if (xpt_bus_register(vbus_ext->sim, NULL, 0) != CAM_SUCCESS) { in hpt_final_init()
1083 memset(&ccb, 0, sizeof(ccb)); in hpt_final_init()
1092 int rid = 0; in hpt_final_init()
1116 TASK_INIT(&vbus_ext->worker, 0, (task_fn_t *)hpt_do_tasks, vbus_ext); in hpt_final_init()
1153 if(strcmp(dl->driver->name, driver_name) == 0) { in override_kernel_driver()
1177 if (config_intrhook_establish(&hpt_ich) != 0) { in hpt_init()
1211 __DRIVER_MODULE(TARGETNAME, pci, hpt_pci_driver, 0, 0);
1217 return 0; in hpt_open()
1222 return 0; in hpt_close()
1229 HPT_U32 bytesReturned = 0; in hpt_ioctl()
1242 memset(&ioctl_args, 0, sizeof(ioctl_args)); in hpt_ioctl()
1274 return 0; in hpt_ioctl()
1313 return(0); in hpt_rescan_bus()