Lines Matching refs:nports
121 "cdev 0x%p, p# %u.\n", cdev, cdev->nports); in cxgbi_device_destroy()
132 unsigned int nports) in cxgbi_device_register() argument
136 cdev = kzalloc(sizeof(*cdev) + extra + nports * in cxgbi_device_register()
141 pr_warn("nport %d, OOM.\n", nports); in cxgbi_device_register()
145 cdev->hbas = (struct cxgbi_hba **)(((char*)cdev->ports) + nports * in cxgbi_device_register()
149 nports * sizeof(struct cxgbi_hba *); in cxgbi_device_register()
161 "cdev 0x%p, p# %u.\n", cdev, nports); in cxgbi_device_register()
170 cdev, cdev->nports, cdev->nports ? cdev->ports[0]->name : ""); in cxgbi_device_unregister()
236 for (i = 0; i < cdev->nports; i++) { in cxgbi_device_find_by_netdev()
268 for (i = 0; i < cdev->nports; i++) { in cxgbi_device_find_by_netdev_rcu()
301 for (i = 0; i < cdev->nports; i++) { in cxgbi_device_find_by_mac()
325 "cdev 0x%p, p#%u.\n", cdev, cdev->nports); in cxgbi_hbas_remove()
327 for (i = 0; i < cdev->nports; i++) { in cxgbi_hbas_remove()
347 log_debug(1 << CXGBI_DBG_DEV, "cdev 0x%p, p#%u.\n", cdev, cdev->nports); in cxgbi_hbas_add()
349 for (i = 0; i < cdev->nports; i++) { in cxgbi_hbas_add()