Lines Matching +full:0 +full:x1103

195 	return 0;  in hptiop_open()
203 return 0; in hptiop_close()
239 outbound_tail = 0; in hptiop_mv_outbound_read()
244 return 0; in hptiop_mv_outbound_read()
253 head = 0; in hptiop_mv_inbound_write()
285 u_int32_t req=0; in hptiop_wait_ready_itl()
288 for (i = 0; i < millisec; i++) { in hptiop_wait_ready_itl()
298 return 0; in hptiop_wait_ready_itl()
309 return 0; in hptiop_wait_ready_mv()
318 return 0; in hptiop_wait_ready_mvfrey()
332 if (hba->firmware_version > 0x01020000 || in hptiop_request_callback_itl()
333 hba->interface_version > 0x01020000) { in hptiop_request_callback_itl()
360 temp64 = 0; in hptiop_request_callback_itl()
383 if (cdb[0] == SYNCHRONIZE_CACHE) { /* ??? */ in hptiop_request_callback_itl()
422 memset(&ccb->csio.sense_data, 0, in hptiop_request_callback_itl()
428 ccb->csio.sense_resid = 0; in hptiop_request_callback_itl()
496 int ret = 0; in hptiop_intr_itl()
535 if (cdb[0] == SYNCHRONIZE_CACHE) { /* ??? */ in hptiop_request_callback_mv()
574 memset(&ccb->csio.sense_data, 0, in hptiop_request_callback_mv()
580 ccb->csio.sense_resid = 0; in hptiop_request_callback_mv()
615 u_int32_t req_type = _tag & 0xf; in hptiop_request_callback_mvfrey()
629 srb = hba->srb[(_tag >> 4) & 0xff]; in hptiop_request_callback_mvfrey()
641 if (cdb[0] == SYNCHRONIZE_CACHE) { /* ??? */ in hptiop_request_callback_mvfrey()
681 memset(&ccb->csio.sense_data, 0, in hptiop_request_callback_mvfrey()
687 ccb->csio.sense_resid = 0; in hptiop_request_callback_mvfrey()
733 int ret = 0; in hptiop_intr_mv()
758 int ret = 0; in hptiop_intr_mvfrey()
761 BUS_SPACE_WRT4_MVFREY2(pcie_f0_int_enable, 0); in hptiop_intr_mvfrey()
778 cptr = *hba->u.mvfrey.outlist_cptr & 0xff; in hptiop_intr_mvfrey()
782 hba->u.mvfrey.outlist_rptr = 0; in hptiop_intr_mvfrey()
789 } while (cptr != (*hba->u.mvfrey.outlist_cptr & 0xff)); in hptiop_intr_mvfrey()
793 BUS_SPACE_WRT4_MVFREY2(pcie_f0_int_enable, 0x1010); in hptiop_intr_mvfrey()
808 for (i = 0; i < millisec; i++) { in hptiop_send_sync_request_itl()
814 return 0; in hptiop_send_sync_request_itl()
826 hba->config_done = 0; in hptiop_send_sync_request_mv()
836 for (i = 0; i < millisec; i++) { in hptiop_send_sync_request_mv()
839 return 0; in hptiop_send_sync_request_mv()
853 hba->config_done = 0; in hptiop_send_sync_request_mvfrey()
859 | ((phy_addr >> 16) & 0xffff0000); in hptiop_send_sync_request_mvfrey()
860 reqhdr->context = ((phy_addr & 0xffffffff) << 32 ) in hptiop_send_sync_request_mvfrey()
864 index = hba->u.mvfrey.inlist_wptr & 0x3fff; in hptiop_send_sync_request_mvfrey()
867 index = 0; in hptiop_send_sync_request_mvfrey()
868 hba->u.mvfrey.inlist_wptr &= ~0x3fff; in hptiop_send_sync_request_mvfrey()
878 for (i = 0; i < millisec; i++) { in hptiop_send_sync_request_mvfrey()
881 return 0; in hptiop_send_sync_request_mvfrey()
892 hba->msg_done = 0; in hptiop_send_sync_msg()
895 for (i=0; i<millisec; i++) { in hptiop_send_sync_msg()
902 return hba->msg_done? 0 : -1; in hptiop_send_sync_msg()
914 config->header.context = 0; in hptiop_get_config_itl()
935 return 0; in hptiop_get_config_itl()
946 req->header.flags = 0; in hptiop_get_config_mv()
958 return 0; in hptiop_get_config_mv()
989 return 0; in hptiop_get_config_mvfrey()
1006 config->header.context = 0; in hptiop_set_config_itl()
1019 return 0; in hptiop_set_config_itl()
1035 req->header.flags = 0; in hptiop_set_config_mv()
1046 return 0; in hptiop_set_config_mv()
1071 return 0; in hptiop_set_config_mvfrey()
1097 req.bytes_returned = 0; in hptiop_post_ioctl_command_itl()
1112 PPAUSE, "hptctl", HPT_OSM_TIMEOUT)==0) in hptiop_post_ioctl_command_itl()
1122 return 0; in hptiop_post_ioctl_command_itl()
1131 for (i=0; i<size; i++) { in hptiop_bus_space_copyin()
1137 return 0; in hptiop_bus_space_copyin()
1146 for (i=0; i<size; i++) { in hptiop_bus_space_copyout()
1152 return 0; in hptiop_bus_space_copyout()
1199 return 0; in hptiop_do_ioctl_itl()
1213 int size = 0; in hptiop_post_ioctl_command_mv()
1238 while (hba->config_done == 0) { in hptiop_post_ioctl_command_mv()
1240 "hptctl", HPT_OSM_TIMEOUT)==0) in hptiop_post_ioctl_command_mv()
1244 return 0; in hptiop_post_ioctl_command_mv()
1257 hba->config_done = 0; in hptiop_do_ioctl_mv()
1280 return 0; in hptiop_do_ioctl_mv()
1316 | ((phy_addr >> 16) & 0xffff0000); in hptiop_post_ioctl_command_mvfrey()
1317 req->header.context = ((phy_addr & 0xffffffff) << 32 ) in hptiop_post_ioctl_command_mvfrey()
1321 index = hba->u.mvfrey.inlist_wptr & 0x3fff; in hptiop_post_ioctl_command_mvfrey()
1324 index = 0; in hptiop_post_ioctl_command_mvfrey()
1325 hba->u.mvfrey.inlist_wptr &= ~0x3fff; in hptiop_post_ioctl_command_mvfrey()
1335 while (hba->config_done == 0) { in hptiop_post_ioctl_command_mvfrey()
1337 "hptctl", HPT_OSM_TIMEOUT)==0) in hptiop_post_ioctl_command_mvfrey()
1341 return 0; in hptiop_post_ioctl_command_mvfrey()
1354 hba->config_done = 0; in hptiop_do_ioctl_mvfrey()
1377 return 0; in hptiop_do_ioctl_mvfrey()
1397 return(0); in hptiop_rescan_bus()
1407 hba->bar0_rid = 0x10; in hptiop_alloc_pci_res_itl()
1428 return 0; in hptiop_alloc_pci_res_itl()
1433 hba->bar0_rid = 0x10; in hptiop_alloc_pci_res_mv()
1453 hba->bar2_rid = 0x18; in hptiop_alloc_pci_res_mv()
1477 return 0; in hptiop_alloc_pci_res_mv()
1482 hba->bar0_rid = 0x10; in hptiop_alloc_pci_res_mvfrey()
1502 hba->bar2_rid = 0x18; in hptiop_alloc_pci_res_mvfrey()
1527 return 0; in hptiop_alloc_pci_res_mvfrey()
1561 0, in hptiop_internal_memalloc_mv()
1565 0x800 - 0x8, in hptiop_internal_memalloc_mv()
1578 &hba->ctlcfg_dmamap) != 0) { in hptiop_internal_memalloc_mv()
1588 hptiop_mv_map_ctlcfg, hba, 0)) { in hptiop_internal_memalloc_mv()
1598 return 0; in hptiop_internal_memalloc_mv()
1607 if (list_count == 0) { in hptiop_internal_memalloc_mvfrey()
1612 hba->u.mvfrey.internal_mem_size = 0x800 in hptiop_internal_memalloc_mvfrey()
1618 0, in hptiop_internal_memalloc_mvfrey()
1635 &hba->ctlcfg_dmamap) != 0) { in hptiop_internal_memalloc_mvfrey()
1645 hptiop_mvfrey_map_ctlcfg, hba, 0)) { in hptiop_internal_memalloc_mvfrey()
1655 return 0; in hptiop_internal_memalloc_mvfrey()
1659 return 0; in hptiop_internal_memfree_itl()
1671 return 0; in hptiop_internal_memfree_mv()
1683 return 0; in hptiop_internal_memfree_mvfrey()
1699 hba->u.mvfrey.inlist_phy & 0xffffffff); in hptiop_reset_comm_mvfrey()
1704 hba->u.mvfrey.outlist_phy & 0xffffffff); in hptiop_reset_comm_mvfrey()
1709 hba->u.mvfrey.outlist_cptr_phy & 0xffffffff); in hptiop_reset_comm_mvfrey()
1719 return 0; in hptiop_reset_comm_mvfrey()
1731 { 0, 0 }
1737 .internal_memalloc = 0,
1749 .reset_comm = 0,
1767 .reset_comm = 0,
1794 DRIVER_MODULE(hptiop, pci, hptiop_pci_driver, 0, 0);
1801 int sas = 0; in hptiop_probe()
1804 if (pci_get_vendor(dev) != 0x1103) in hptiop_probe()
1810 case 0x4520: in hptiop_probe()
1811 case 0x4521: in hptiop_probe()
1812 case 0x4522: in hptiop_probe()
1814 case 0x3620: in hptiop_probe()
1815 case 0x3622: in hptiop_probe()
1816 case 0x3640: in hptiop_probe()
1819 case 0x4210: in hptiop_probe()
1820 case 0x4211: in hptiop_probe()
1821 case 0x4310: in hptiop_probe()
1822 case 0x4311: in hptiop_probe()
1823 case 0x4320: in hptiop_probe()
1824 case 0x4321: in hptiop_probe()
1825 case 0x4322: in hptiop_probe()
1827 case 0x3220: in hptiop_probe()
1828 case 0x3320: in hptiop_probe()
1829 case 0x3410: in hptiop_probe()
1830 case 0x3520: in hptiop_probe()
1831 case 0x3510: in hptiop_probe()
1832 case 0x3511: in hptiop_probe()
1833 case 0x3521: in hptiop_probe()
1834 case 0x3522: in hptiop_probe()
1835 case 0x3530: in hptiop_probe()
1836 case 0x3540: in hptiop_probe()
1837 case 0x3560: in hptiop_probe()
1840 case 0x3020: in hptiop_probe()
1841 case 0x3120: in hptiop_probe()
1842 case 0x3122: in hptiop_probe()
1861 return 0; in hptiop_probe()
1870 int rid = 0; in hptiop_attach()
1898 0, /* boundary */ in hptiop_attach()
1905 0, /* flags */ in hptiop_attach()
1952 0x20000, /* maxsegsize */ in hptiop_attach()
1964 0, /* boundary */ in hptiop_attach()
1968 HPT_SRB_MAX_SIZE * HPT_SRB_MAX_QUEUE_SIZE + 0x20, in hptiop_attach()
1971 0, /* flags */ in hptiop_attach()
1982 &hba->srb_dmamap) != 0) in hptiop_attach()
1990 (HPT_SRB_MAX_SIZE * HPT_SRB_MAX_QUEUE_SIZE) + 0x20, in hptiop_attach()
1991 hptiop_map_srb, hba, 0)) in hptiop_attach()
2010 if (xpt_bus_register(hba->sim, dev, 0) != CAM_SUCCESS) in hptiop_attach()
2034 memset(&ccb, 0, sizeof(ccb)); in hptiop_attach()
2042 rid = 0; in hptiop_attach()
2074 return 0; in hptiop_attach()
2081 bus_release_resource(dev, SYS_RES_IRQ, 0, hba->irq_res); in hptiop_attach()
2132 for (i = 0; i < hba->max_devices; i++) in hptiop_detach()
2139 if ((error = hptiop_shutdown(dev)) != 0) in hptiop_detach()
2147 return (0); in hptiop_detach()
2157 int error = 0; in hptiop_shutdown()
2215 BUS_SPACE_WRT4_MVFREY2(isr_enable, 0x1); in hptiop_enable_intr_mvfrey()
2218 BUS_SPACE_WRT4_MVFREY2(pcie_f0_int_enable, 0x1010); in hptiop_enable_intr_mvfrey()
2246 BUS_SPACE_WRT4_MVFREY2(f0_doorbell_enable, 0); in hptiop_disable_intr_mvfrey()
2249 BUS_SPACE_WRT4_MVFREY2(isr_enable, 0); in hptiop_disable_intr_mvfrey()
2252 BUS_SPACE_WRT4_MVFREY2(pcie_f0_int_enable, 0); in hptiop_disable_intr_mvfrey()
2292 if (ccb->ccb_h.target_lun != 0 || in hptiop_action()
2314 0); in hptiop_action()
2331 hba->msg_done = 0; in hptiop_action()
2350 cpi->target_sprt = 0; in hptiop_action()
2352 cpi->hba_eng_cnt = 0; in hptiop_action()
2354 cpi->max_lun = 0; in hptiop_action()
2411 if (ccb->csio.dxfer_len && nsegs > 0) { in hptiop_post_req_itl()
2413 for (idx = 0; idx < nsegs; idx++, psg++) { in hptiop_post_req_itl()
2416 psg->eot = 0; in hptiop_post_req_itl()
2427 req.header.flags = 0; in hptiop_post_req_itl()
2431 req.channel = 0; in hptiop_post_req_itl()
2451 if (ccb->csio.dxfer_len && nsegs > 0) { in hptiop_post_req_itl()
2453 for (idx = 0; idx < nsegs; idx++, psg++) { in hptiop_post_req_itl()
2457 psg->eot = 0; in hptiop_post_req_itl()
2467 req->channel = 0; in hptiop_post_req_itl()
2485 if (hba->firmware_version > 0x01020000 in hptiop_post_req_itl()
2486 || hba->interface_version > 0x01020000) { in hptiop_post_req_itl()
2518 if (ccb->csio.dxfer_len && nsegs > 0) { in hptiop_post_req_mv()
2520 for (idx = 0; idx < nsegs; idx++, psg++) { in hptiop_post_req_mv()
2523 psg->eot = 0; in hptiop_post_req_mv()
2536 req->channel = 0; in hptiop_post_req_mv()
2572 if (ccb->csio.dxfer_len && nsegs > 0) { in hptiop_post_req_mvfrey()
2574 for (idx = 0; idx < nsegs; idx++, psg++) { in hptiop_post_req_mvfrey()
2577 psg->eot = 0; in hptiop_post_req_mvfrey()
2590 req->channel = 0; in hptiop_post_req_mvfrey()
2606 | ((req_phy >> 16) & 0xffff0000); in hptiop_post_req_mvfrey()
2607 req->header.context = ((req_phy & 0xffffffff) << 32 ) in hptiop_post_req_mvfrey()
2612 index = hba->u.mvfrey.inlist_wptr & 0x3fff; in hptiop_post_req_mvfrey()
2615 index = 0; in hptiop_post_req_mvfrey()
2616 hba->u.mvfrey.inlist_wptr &= ~0x3fff; in hptiop_post_req_mvfrey()
2657 hba->ctlcfgcmd_phy = ((u_int64_t)segs->ds_addr + 0x1F) in hptiop_mv_map_ctlcfg()
2658 & ~(u_int64_t)0x1F; in hptiop_mv_map_ctlcfg()
2659 hba->ctlcfg_ptr = (u_int8_t *)(((unsigned long)hba->ctlcfg_ptr + 0x1F) in hptiop_mv_map_ctlcfg()
2660 & ~0x1F); in hptiop_mv_map_ctlcfg()
2671 phy = ((u_int64_t)segs->ds_addr + 0x1F) in hptiop_mvfrey_map_ctlcfg()
2672 & ~(u_int64_t)0x1F; in hptiop_mvfrey_map_ctlcfg()
2673 p = (u_int8_t *)(((unsigned long)hba->ctlcfg_ptr + 0x1F) in hptiop_mvfrey_map_ctlcfg()
2674 & ~0x1F); in hptiop_mvfrey_map_ctlcfg()
2679 p += 0x800; in hptiop_mvfrey_map_ctlcfg()
2680 phy += 0x800; in hptiop_mvfrey_map_ctlcfg()
2702 bus_addr_t phy_addr = (segs->ds_addr + 0x1F) & ~(bus_addr_t)0x1F; in hptiop_map_srb()
2706 if (error || nsegs == 0) { in hptiop_map_srb()
2713 (((unsigned long)hba->uncached_ptr + 0x1F) in hptiop_map_srb()
2714 & ~(unsigned long)0x1F); in hptiop_map_srb()
2716 for (i = 0; i < HPT_SRB_MAX_QUEUE_SIZE; i++) { in hptiop_map_srb()
2719 if (((unsigned long)tmp_srb & 0x1F) == 0) { in hptiop_map_srb()
2721 0, &tmp_srb->dma_map)) { in hptiop_map_srb()
2729 if (hba->ctlcfg_ptr == 0) {/*itl iop*/ in hptiop_map_srb()
2739 callout_init_mtx(&tmp_srb->timeout, &hba->lock, 0); in hptiop_map_srb()
2761 int status, retval = 0; in hptiop_os_query_remove_device()
2763 status = xpt_create_path(&path, NULL, hba->sim->path_id, target_id, 0); in hptiop_os_query_remove_device()
2769 "target_id=0x%x," in hptiop_os_query_remove_device()
2790 memset(&ccb, 0, sizeof(ccb)); in hptiop_release_resource()
2793 ccb.event_enable = 0; in hptiop_release_resource()
2817 for (i = 0; i < HPT_SRB_MAX_QUEUE_SIZE; i++) { in hptiop_release_resource()
2838 0, hba->irq_res); in hptiop_release_resource()