Lines Matching refs:chba
320 struct cxgbi_hba *chba; in cxgbi_hbas_remove() local
326 chba = cdev->hbas[i]; in cxgbi_hbas_remove()
327 if (chba) { in cxgbi_hbas_remove()
329 iscsi_host_remove(chba->shost); in cxgbi_hbas_remove()
331 iscsi_host_free(chba->shost); in cxgbi_hbas_remove()
341 struct cxgbi_hba *chba; in cxgbi_hbas_add() local
348 shost = iscsi_host_alloc(sht, sizeof(*chba), 1); in cxgbi_hbas_add()
362 chba = iscsi_host_priv(shost); in cxgbi_hbas_add()
363 chba->cdev = cdev; in cxgbi_hbas_add()
364 chba->ndev = cdev->ports[i]; in cxgbi_hbas_add()
365 chba->shost = shost; in cxgbi_hbas_add()
369 cdev, i, cdev->ports[i]->name, chba); in cxgbi_hbas_add()
381 cdev->hbas[i] = chba; in cxgbi_hbas_add()
1462 static void ddp_tag_release(struct cxgbi_hba *chba, u32 tag) in ddp_tag_release() argument
1464 struct cxgbi_device *cdev = chba->cdev; in ddp_tag_release()
1482 cdev->csk_ddp_clear(chba, tag, idx, npods); in ddp_tag_release()
1693 struct cxgbi_hba *chba = cconn->chba; in task_release_itt() local
1694 struct cxgbi_tag_format *tformat = &chba->cdev->tag_format; in task_release_itt()
1698 "cdev 0x%p, release tag 0x%x.\n", chba->cdev, tag); in task_release_itt()
1702 ddp_tag_release(chba, tag); in task_release_itt()
1712 struct cxgbi_hba *chba = cconn->chba; in task_reserve_itt() local
1713 struct cxgbi_tag_format *tformat = &chba->cdev->tag_format; in task_reserve_itt()
1739 chba->cdev, task, sw_tag, task->itt, sess->age, tag, *hdr_itt); in task_reserve_itt()
1747 struct cxgbi_device *cdev = cconn->chba->cdev; in cxgbi_parse_pdu_itt()
2096 struct cxgbi_device *cdev = cconn->chba->cdev; in cxgbi_conn_alloc_pdu()
2357 struct cxgbi_device *cdev = cconn->chba->cdev; in cxgbi_conn_max_xmit_dlength()
2362 max = min(cconn->chba->cdev->tx_max_size, max); in cxgbi_conn_max_xmit_dlength()
2376 unsigned int max = cconn->chba->cdev->rx_max_size; in cxgbi_conn_max_recv_dlength()
2555 cconn->chba = cep->chba; in cxgbi_bind_conn()
2578 struct cxgbi_hba *chba; in cxgbi_create_session() local
2589 chba = cep->chba; in cxgbi_create_session()
2590 shost = chba->shost; in cxgbi_create_session()
2592 BUG_ON(chba != iscsi_host_priv(shost)); in cxgbi_create_session()
2594 cls_session = iscsi_session_setup(chba->cdev->itp, shost, in cxgbi_create_session()
2629 struct cxgbi_hba *chba = iscsi_host_priv(shost); in cxgbi_set_host_param() local
2631 if (!chba->ndev) { in cxgbi_set_host_param()
2639 shost, chba, chba->ndev->name, param, buflen, buf); in cxgbi_set_host_param()
2646 "hba %s, req. ipv4 %pI4.\n", chba->ndev->name, &addr); in cxgbi_set_host_param()
2647 cxgbi_set_iscsi_ipv4(chba, addr); in cxgbi_set_host_param()
2662 struct cxgbi_hba *chba = iscsi_host_priv(shost); in cxgbi_get_host_param() local
2665 if (!chba->ndev) { in cxgbi_get_host_param()
2673 shost, chba, chba->ndev->name, param); in cxgbi_get_host_param()
2677 len = sysfs_format_mac(buf, chba->ndev->dev_addr, 6); in cxgbi_get_host_param()
2680 len = sprintf(buf, "%s\n", chba->ndev->name); in cxgbi_get_host_param()
2684 struct cxgbi_sock *csk = find_sock_on_port(chba->cdev, in cxgbi_get_host_param()
2685 chba->port_id); in cxgbi_get_host_param()
2691 "hba %s, addr %s.\n", chba->ndev->name, buf); in cxgbi_get_host_param()
2776 cep->chba = hba; in cxgbi_ep_connect()