Lines Matching refs:chba
316 struct cxgbi_hba *chba; in cxgbi_hbas_remove() local
322 chba = cdev->hbas[i]; in cxgbi_hbas_remove()
323 if (chba) { in cxgbi_hbas_remove()
325 iscsi_host_remove(chba->shost); in cxgbi_hbas_remove()
327 iscsi_host_free(chba->shost); in cxgbi_hbas_remove()
337 struct cxgbi_hba *chba; in cxgbi_hbas_add() local
344 shost = iscsi_host_alloc(sht, sizeof(*chba), 1); in cxgbi_hbas_add()
358 chba = iscsi_host_priv(shost); in cxgbi_hbas_add()
359 chba->cdev = cdev; in cxgbi_hbas_add()
360 chba->ndev = cdev->ports[i]; in cxgbi_hbas_add()
361 chba->shost = shost; in cxgbi_hbas_add()
365 cdev, i, cdev->ports[i]->name, chba); in cxgbi_hbas_add()
377 cdev->hbas[i] = chba; in cxgbi_hbas_add()
1458 static void ddp_tag_release(struct cxgbi_hba *chba, u32 tag) in ddp_tag_release() argument
1460 struct cxgbi_device *cdev = chba->cdev; in ddp_tag_release()
1478 cdev->csk_ddp_clear(chba, tag, idx, npods); in ddp_tag_release()
1689 struct cxgbi_hba *chba = cconn->chba; in task_release_itt() local
1690 struct cxgbi_tag_format *tformat = &chba->cdev->tag_format; in task_release_itt()
1694 "cdev 0x%p, release tag 0x%x.\n", chba->cdev, tag); in task_release_itt()
1698 ddp_tag_release(chba, tag); in task_release_itt()
1708 struct cxgbi_hba *chba = cconn->chba; in task_reserve_itt() local
1709 struct cxgbi_tag_format *tformat = &chba->cdev->tag_format; in task_reserve_itt()
1735 chba->cdev, task, sw_tag, task->itt, sess->age, tag, *hdr_itt); in task_reserve_itt()
1743 struct cxgbi_device *cdev = cconn->chba->cdev; in cxgbi_parse_pdu_itt()
2092 struct cxgbi_device *cdev = cconn->chba->cdev; in cxgbi_conn_alloc_pdu()
2353 struct cxgbi_device *cdev = cconn->chba->cdev; in cxgbi_conn_max_xmit_dlength()
2358 max = min(cconn->chba->cdev->tx_max_size, max); in cxgbi_conn_max_xmit_dlength()
2372 unsigned int max = cconn->chba->cdev->rx_max_size; in cxgbi_conn_max_recv_dlength()
2551 cconn->chba = cep->chba; in cxgbi_bind_conn()
2574 struct cxgbi_hba *chba; in cxgbi_create_session() local
2585 chba = cep->chba; in cxgbi_create_session()
2586 shost = chba->shost; in cxgbi_create_session()
2588 BUG_ON(chba != iscsi_host_priv(shost)); in cxgbi_create_session()
2590 cls_session = iscsi_session_setup(chba->cdev->itp, shost, in cxgbi_create_session()
2625 struct cxgbi_hba *chba = iscsi_host_priv(shost); in cxgbi_set_host_param() local
2627 if (!chba->ndev) { in cxgbi_set_host_param()
2635 shost, chba, chba->ndev->name, param, buflen, buf); in cxgbi_set_host_param()
2642 "hba %s, req. ipv4 %pI4.\n", chba->ndev->name, &addr); in cxgbi_set_host_param()
2643 cxgbi_set_iscsi_ipv4(chba, addr); in cxgbi_set_host_param()
2658 struct cxgbi_hba *chba = iscsi_host_priv(shost); in cxgbi_get_host_param() local
2661 if (!chba->ndev) { in cxgbi_get_host_param()
2669 shost, chba, chba->ndev->name, param); in cxgbi_get_host_param()
2673 len = sysfs_format_mac(buf, chba->ndev->dev_addr, 6); in cxgbi_get_host_param()
2676 len = sprintf(buf, "%s\n", chba->ndev->name); in cxgbi_get_host_param()
2680 struct cxgbi_sock *csk = find_sock_on_port(chba->cdev, in cxgbi_get_host_param()
2681 chba->port_id); in cxgbi_get_host_param()
2687 "hba %s, addr %s.\n", chba->ndev->name, buf); in cxgbi_get_host_param()
2772 cep->chba = hba; in cxgbi_ep_connect()