Lines Matching refs:nports
113 "cdev 0x%p, p# %u.\n", cdev, cdev->nports); in cxgbi_device_destroy()
128 unsigned int nports) in cxgbi_device_register() argument
132 cdev = kzalloc(sizeof(*cdev) + extra + nports * in cxgbi_device_register()
137 pr_warn("nport %d, OOM.\n", nports); in cxgbi_device_register()
141 cdev->hbas = (struct cxgbi_hba **)(((char*)cdev->ports) + nports * in cxgbi_device_register()
145 nports * sizeof(struct cxgbi_hba *); in cxgbi_device_register()
157 "cdev 0x%p, p# %u.\n", cdev, nports); in cxgbi_device_register()
166 cdev, cdev->nports, cdev->nports ? cdev->ports[0]->name : ""); in cxgbi_device_unregister()
232 for (i = 0; i < cdev->nports; i++) { in cxgbi_device_find_by_netdev()
264 for (i = 0; i < cdev->nports; i++) { in cxgbi_device_find_by_netdev_rcu()
298 for (i = 0; i < cdev->nports; i++) { in cxgbi_device_find_by_mac()
323 "cdev 0x%p, p#%u.\n", cdev, cdev->nports); in cxgbi_hbas_remove()
325 for (i = 0; i < cdev->nports; i++) { in cxgbi_hbas_remove()
345 log_debug(1 << CXGBI_DBG_DEV, "cdev 0x%p, p#%u.\n", cdev, cdev->nports); in cxgbi_hbas_add()
347 for (i = 0; i < cdev->nports; i++) { in cxgbi_hbas_add()