Lines Matching +full:0 +full:x8030
50 #define PCI_VENDOR_QLOGIC 0x1077
54 #define PCI_PRODUCT_QLOGIC_ISP8030 0x8030
109 { 0, 0 }
116 DRIVER_MODULE(qla83xx, pci, qla_pci_driver, 0, 0);
123 #define QL_STD_REPLENISH_THRES 0
165 ver_str, 0, "Driver Version"); in qla_add_sysctls()
170 ha->fw_ver_str, 0, "firmware version"); in qla_add_sysctls()
175 (void *)ha, 0, qla_sysctl_get_link_status, "I", "Link Status"); in qla_add_sysctls()
177 ha->dbg_level = 0; in qla_add_sysctls()
266 ha->qla_watchdog_exited = 0; in qla_watchdog()
272 if_setdrvflagbits(ifp, 0, IFF_DRV_RUNNING); in qla_watchdog()
278 ha->err_inject = 0; in qla_watchdog()
285 if_setdrvflagbits(ifp, 0, IFF_DRV_RUNNING); in qla_watchdog()
295 ha->watchdog_ticks = 0; in qla_watchdog()
307 ha->qla_watchdog_paused = 0; in qla_watchdog()
327 uint32_t num_rcvq = 0; in qla_pci_attach()
334 memset(ha, 0, sizeof (qla_host_t)); in qla_pci_attach()
341 ha->pci_func = pci_get_function(dev) & 0x1; in qla_pci_attach()
347 ha->reg_rid = PCIR_BAR(0); in qla_pci_attach()
385 QL_DPRINT2(ha, (dev, "%s: ha %p pci_func 0x%x rsrc_count 0x%08x" in qla_pci_attach()
386 " msix_count 0x%x pci_reg %p pci_reg1 %p\n", __func__, ha, in qla_pci_attach()
408 QL_DPRINT2(ha, (dev, "%s: ha %p pci_func 0x%x rsrc_count 0x%08x" in qla_pci_attach()
409 " msix_count 0x%x pci_reg %p pci_reg1 %p num_rcvq = %d\n", in qla_pci_attach()
433 ha->msix_count = 0; in qla_pci_attach()
451 for (i = 0; i < ha->hw.num_sds_rings; i++) { in qla_pci_attach()
482 if (qla_create_fp_taskqueues(ha) != 0) in qla_pci_attach()
504 if (ql_minidump_init(ha) != 0) { in qla_pci_attach()
514 ha->qla_watchdog_pause = 0; in qla_pci_attach()
528 TASK_INIT(&ha->err_task, 0, qla_error_recovery, ha); in qla_pci_attach()
534 TASK_INIT(&ha->async_event_task, 0, qla_async_event, ha); in qla_pci_attach()
540 TASK_INIT(&ha->stats_task, 0, qla_stats, ha); in qla_pci_attach()
546 QL_DPRINT2(ha, (dev, "%s: exit 0\n", __func__)); in qla_pci_attach()
547 return (0); in qla_pci_attach()
581 if_setdrvflagbits(ifp, 0, IFF_DRV_RUNNING); in qla_pci_detach()
582 QLA_LOCK(ha, __func__, -1, 0); in qla_pci_detach()
598 return (0); in qla_pci_detach()
607 int err, ret = 0; in qla_sysctl_get_link_status()
610 err = sysctl_handle_int(oidp, &ret, 0, req); in qla_sysctl_get_link_status()
654 while (ha->qla_watchdog_exited == 0) in qla_release()
676 for (i = 0; i < ha->hw.num_sds_rings; i++) { in qla_release()
713 *((bus_addr_t *)arg) = 0; in qla_dmamap_callback()
720 *((bus_addr_t *)arg) = segs[0].ds_addr; in qla_dmamap_callback()
728 int ret = 0; in ql_alloc_dmabuf()
746 0, /* flags */ in ql_alloc_dmabuf()
782 QL_DPRINT2(ha, (dev, "%s: exit ret 0x%08x tag %p map %p b %p sz 0x%x\n", in ql_alloc_dmabuf()
816 0, /* nsegments */ in qla_alloc_parent_dma_tag()
818 0, /* flags */ in qla_alloc_parent_dma_tag()
830 return (0); in qla_alloc_parent_dma_tag()
838 ha->flags.parent_tag = 0; in qla_free_parent_dma_tag()
883 IFCAP_LRO, 0); in qla_init_ifnet()
891 ifmedia_add(&ha->media, (IFM_ETHER | qla_get_optics(ha) | IFM_FDX), 0, in qla_init_ifnet()
893 ifmedia_add(&ha->media, (IFM_ETHER | IFM_AUTO), 0, NULL); in qla_init_ifnet()
907 ql_sp_log(ha, 14, 0, 0, 0, 0, 0, 0); in qla_init_locked()
911 if (qla_alloc_xmt_bufs(ha) != 0) in qla_init_locked()
916 if (qla_alloc_rcv_bufs(ha) != 0) in qla_init_locked()
922 if_sethwassistbits(ifp, CSUM_TCP_IPV6 | CSUM_UDP_IPV6, 0); in qla_init_locked()
924 ha->stop_rcv = 0; in qla_init_locked()
925 if (ql_init_hw_if(ha) == 0) { in qla_init_locked()
927 if_setdrvflagbits(ifp, IFF_DRV_RUNNING, 0); in qla_init_locked()
928 ha->hw_vlan_tx_frames = 0; in qla_init_locked()
929 ha->tx_tso_frames = 0; in qla_init_locked()
937 ha->qla_watchdog_pause = 0; in qla_init_locked()
951 if (QLA_LOCK(ha, __func__, -1, 0) != 0) in qla_init()
967 return (0); in qla_copy_maddr()
978 int mcnt = 0; in qla_set_multi()
980 int ret = 0; in qla_set_multi()
985 QLA_LOCK_NO_SLEEP) != 0) in qla_set_multi()
990 add_multi, (uint32_t)mcnt, 0); in qla_set_multi()
1014 int ret = 0; in qla_ioctl()
1027 QL_DPRINT4(ha, (ha->pci_dev, "%s: SIOCSIFADDR (0x%lx)\n", in qla_ioctl()
1038 if_setflagbits(ifp, IFF_UP, 0); in qla_ioctl()
1042 ntohl(IA_SIN(ifa)->sin_addr.s_addr), 0, 0); in qla_ioctl()
1050 "%s: SIOCSIFADDR (0x%lx) ipv4 [0x%08x]\n", in qla_ioctl()
1062 QL_DPRINT4(ha, (ha->pci_dev, "%s: SIOCSIFMTU (0x%lx)\n", in qla_ioctl()
1080 ha->max_frame_size, if_getmtu(ifp), 0); in qla_ioctl()
1098 QL_DPRINT4(ha, (ha->pci_dev, "%s: SIOCSIFFLAGS (0x%lx)\n", in qla_ioctl()
1109 ha->if_flags, if_getflags(ifp), 0); in qla_ioctl()
1136 "%s: %s (0x%lx)\n", __func__, "SIOCADDMULTI", cmd)); in qla_ioctl()
1144 "%s: %s (0x%lx)\n", __func__, "SIOCDELMULTI", cmd)); in qla_ioctl()
1146 if (qla_set_multi(ha, 0)) in qla_ioctl()
1153 "%s: SIOCSIFMEDIA/SIOCGIFMEDIA (0x%lx)\n", in qla_ioctl()
1162 QL_DPRINT4(ha, (ha->pci_dev, "%s: SIOCSIFCAP (0x%lx)\n", in qla_ioctl()
1187 mask, if_getcapenable(ifp), 0); in qla_ioctl()
1198 QL_DPRINT4(ha, (ha->pci_dev, "%s: default (0x%lx)\n", in qla_ioctl()
1212 int ret = 0; in qla_media_change()
1269 QL_ASSERT(ha, 0, ("%s [%d]: txr_idx = %d tx_idx = %d "\ in qla_send()
1337 QL_ASSERT(ha, (nsegs != 0), ("qla_send: empty packet")); in qla_send()
1375 return 0; in qla_alloc_tx_br()
1409 int ret = 0; in qla_fp_taskqueue()
1411 uint32_t iscsi_pdu = 0; in qla_fp_taskqueue()
1448 if (ql_iscsi_pdu(ha, mp) == 0) { in qla_fp_taskqueue()
1453 iscsi_pdu = 0; in qla_fp_taskqueue()
1478 if (((if_getdrvflags(ifp) & IFF_DRV_RUNNING) == 0) || in qla_fp_taskqueue()
1487 if ((if_getdrvflags(ifp) & IFF_DRV_RUNNING) == 0) in qla_fp_taskqueue()
1512 for (i = 0; i < ha->hw.num_sds_rings; i++) { in qla_create_fp_taskqueues()
1518 NET_TASK_INIT(&fp->fp_task, 0, qla_fp_taskqueue, fp); in qla_create_fp_taskqueues()
1534 return (0); in qla_create_fp_taskqueues()
1542 for (i = 0; i < ha->hw.num_sds_rings; i++) { in qla_destroy_fp_taskqueues()
1559 for (i = 0; i < ha->hw.num_sds_rings; i++) { in qla_drain_fp_taskqueues()
1574 int rss_id = 0; in qla_transmit()
1575 int ret = 0; in qla_transmit()
1596 ret = 0; in qla_transmit()
1616 for (i = 0; i < ha->hw.num_sds_rings; i++) { in qla_qflush()
1640 int i = 0; in qla_stop()
1642 ql_sp_log(ha, 13, 0, 0, 0, 0, 0, 0); in qla_stop()
1644 if_setdrvflagbits(ifp, 0, IFF_DRV_RUNNING); in qla_stop()
1647 for (i = 0; i < ha->hw.num_sds_rings; i++) { in qla_stop()
1664 ha->qla_interface_up = 0; in qla_stop()
1682 int ret = 0; in qla_alloc_xmt_bufs()
1687 1, 0, /* alignment, bounds */ in qla_alloc_xmt_bufs()
1703 for (i = 0; i < ha->hw.num_tx_rings; i++) { in qla_alloc_xmt_bufs()
1708 for (j = 0; j < ha->hw.num_tx_rings; j++) { in qla_alloc_xmt_bufs()
1709 for (i = 0; i < NUM_TX_DESCRIPTORS; i++) { in qla_alloc_xmt_bufs()
1726 return 0; in qla_alloc_xmt_bufs()
1764 for (j = 0; j < ha->hw.num_tx_rings; j++) { in qla_free_xmt_bufs()
1765 for (i = 0; i < NUM_TX_DESCRIPTORS; i++) in qla_free_xmt_bufs()
1774 for (i = 0; i < ha->hw.num_tx_rings; i++) { in qla_free_xmt_bufs()
1784 int i, j, k, r, ret = 0; in qla_alloc_rcv_std()
1788 for (r = 0; r < ha->hw.num_rds_rings; r++) { in qla_alloc_rcv_std()
1791 for (i = 0; i < NUM_RX_DESCRIPTORS; i++) { in qla_alloc_rcv_std()
1802 for (k = 0; k < r; k++) { in qla_alloc_rcv_std()
1803 for (j = 0; j < NUM_RX_DESCRIPTORS; in qla_alloc_rcv_std()
1811 for (j = 0; j < i; j++) { in qla_alloc_rcv_std()
1822 for (r = 0; r < ha->hw.num_rds_rings; r++) { in qla_alloc_rcv_std()
1825 for (i = 0; i < NUM_RX_DESCRIPTORS; i++) { in qla_alloc_rcv_std()
1846 return 0; in qla_alloc_rcv_std()
1858 for (r = 0; r < ha->hw.num_rds_rings; r++) { in qla_free_rcv_std()
1859 for (i = 0; i < NUM_RX_DESCRIPTORS; i++) { in qla_free_rcv_std()
1875 int i, ret = 0; in qla_alloc_rcv_bufs()
1878 1, 0, /* alignment, bounds */ in qla_alloc_rcv_bufs()
1897 for (i = 0; i < ha->hw.num_sds_rings; i++) { in qla_alloc_rcv_bufs()
1898 ha->hw.sds[i].sdsr_next = 0; in qla_alloc_rcv_bufs()
1900 ha->hw.sds[i].rx_free = 0; in qla_alloc_rcv_bufs()
1922 for (i = 0; i < ha->hw.num_sds_rings; i++) { in qla_free_rcv_bufs()
1923 ha->hw.sds[i].sdsr_next = 0; in qla_free_rcv_bufs()
1925 ha->hw.sds[i].rx_free = 0; in qla_free_rcv_bufs()
1935 int ret = 0; in ql_get_mbuf()
1970 offset = (uint32_t)((unsigned long long)mp->m_data & 0x7ULL); in ql_get_mbuf()
1982 rxb->paddr = segs[0].ds_addr; in ql_get_mbuf()
1988 "%s: bus_dmamap_load failed[%d, 0x%016llx, %d]\n", in ql_get_mbuf()
1998 QL_DPRINT2(ha, (ha->pci_dev, "%s: exit ret = 0x%08x\n", __func__, ret)); in ql_get_mbuf()
2012 for (i = 0; i < count; i++) { in qla_get_peer()
2015 if ((slot >= 0) && (slot == my_slot) && in qla_get_peer()
2043 if_setdrvflagbits(ifp, 0, IFF_DRV_RUNNING); in qla_set_error_recovery()
2056 int i = 0; in qla_error_recovery()
2064 if (QLA_LOCK(ha, __func__, -1, 0) != 0) in qla_error_recovery()
2075 for (i = 0; i < ha->hw.num_sds_rings; i++) { in qla_error_recovery()
2092 if ((ha->pci_func & 0x1) == 0) { in qla_error_recovery()
2101 ha->msg_from_peer = 0; in qla_error_recovery()
2127 ha->msg_from_peer = 0; in qla_error_recovery()
2137 ha->msg_from_peer = 0; in qla_error_recovery()
2142 if (msecs_100 == 0) { in qla_error_recovery()
2166 *((uint32_t *)&ha->hw.flags) = 0; in qla_error_recovery()
2167 ha->qla_initiate_recovery = 0; in qla_error_recovery()
2170 if (qla_alloc_xmt_bufs(ha) != 0) { in qla_error_recovery()
2177 if (qla_alloc_rcv_bufs(ha) != 0) { in qla_error_recovery()
2182 ha->stop_rcv = 0; in qla_error_recovery()
2184 if (ql_init_hw_if(ha) == 0) { in qla_error_recovery()
2186 if_setdrvflagbits(ifp, IFF_DRV_RUNNING, 0); in qla_error_recovery()
2187 ha->qla_watchdog_pause = 0; in qla_error_recovery()
2197 ha->qla_watchdog_pause = 0; in qla_error_recovery()
2227 if (QLA_LOCK(ha, __func__, -1, 0) != 0) in qla_async_event()
2231 ha->async_event = 0; in qla_async_event()