Lines Matching refs:chba
322 struct cxgbi_hba *chba; in cxgbi_hbas_remove() local
328 chba = cdev->hbas[i]; in cxgbi_hbas_remove()
329 if (chba) { in cxgbi_hbas_remove()
331 iscsi_host_remove(chba->shost, false); in cxgbi_hbas_remove()
333 iscsi_host_free(chba->shost); in cxgbi_hbas_remove()
343 struct cxgbi_hba *chba; in cxgbi_hbas_add() local
350 shost = iscsi_host_alloc(sht, sizeof(*chba), 1); in cxgbi_hbas_add()
364 chba = iscsi_host_priv(shost); in cxgbi_hbas_add()
365 chba->cdev = cdev; in cxgbi_hbas_add()
366 chba->ndev = cdev->ports[i]; in cxgbi_hbas_add()
367 chba->shost = shost; in cxgbi_hbas_add()
373 cdev, i, cdev->ports[i]->name, chba); in cxgbi_hbas_add()
385 cdev->hbas[i] = chba; in cxgbi_hbas_add()
1356 struct cxgbi_device *cdev = cconn->chba->cdev; in task_release_itt()
1389 struct cxgbi_device *cdev = cconn->chba->cdev; in task_reserve_itt()
1429 struct cxgbi_device *cdev = cconn->chba->cdev; in cxgbi_parse_pdu_itt()
1891 struct cxgbi_device *cdev = cconn->chba->cdev; in cxgbi_conn_alloc_pdu()
2531 struct cxgbi_device *cdev = cconn->chba->cdev; in cxgbi_conn_max_xmit_dlength()
2536 max = min(cconn->chba->cdev->tx_max_size, max); in cxgbi_conn_max_xmit_dlength()
2550 unsigned int max = cconn->chba->cdev->rx_max_size; in cxgbi_conn_max_recv_dlength()
2706 cconn->chba = cep->chba; in cxgbi_bind_conn()
2731 struct cxgbi_hba *chba; in cxgbi_create_session() local
2742 chba = cep->chba; in cxgbi_create_session()
2743 shost = chba->shost; in cxgbi_create_session()
2745 BUG_ON(chba != iscsi_host_priv(shost)); in cxgbi_create_session()
2747 cls_session = iscsi_session_setup(chba->cdev->itp, shost, in cxgbi_create_session()
2782 struct cxgbi_hba *chba = iscsi_host_priv(shost); in cxgbi_set_host_param() local
2784 if (!chba->ndev) { in cxgbi_set_host_param()
2792 shost, chba, chba->ndev->name, param, buflen, buf); in cxgbi_set_host_param()
2799 "hba %s, req. ipv4 %pI4.\n", chba->ndev->name, &addr); in cxgbi_set_host_param()
2800 cxgbi_set_iscsi_ipv4(chba, addr); in cxgbi_set_host_param()
2815 struct cxgbi_hba *chba = iscsi_host_priv(shost); in cxgbi_get_host_param() local
2818 if (!chba->ndev) { in cxgbi_get_host_param()
2826 shost, chba, chba->ndev->name, param); in cxgbi_get_host_param()
2830 len = sysfs_format_mac(buf, chba->ndev->dev_addr, 6); in cxgbi_get_host_param()
2833 len = sprintf(buf, "%s\n", chba->ndev->name); in cxgbi_get_host_param()
2837 struct cxgbi_sock *csk = find_sock_on_port(chba->cdev, in cxgbi_get_host_param()
2838 chba->port_id); in cxgbi_get_host_param()
2844 "hba %s, addr %s.\n", chba->ndev->name, buf); in cxgbi_get_host_param()
2938 cep->chba = hba; in cxgbi_ep_connect()