Lines Matching refs:chba
930 static void update_address(struct cxgbi_hba *chba) in update_address() argument
932 if (chba->ipv4addr) { in update_address()
933 if (chba->vdev && in update_address()
934 chba->ipv4addr != cxgb3i_get_private_ipv4addr(chba->vdev)) { in update_address()
935 cxgb3i_set_private_ipv4addr(chba->vdev, chba->ipv4addr); in update_address()
936 cxgb3i_set_private_ipv4addr(chba->ndev, 0); in update_address()
938 chba->vdev->name, &chba->ipv4addr); in update_address()
939 } else if (chba->ipv4addr != in update_address()
940 cxgb3i_get_private_ipv4addr(chba->ndev)) { in update_address()
941 cxgb3i_set_private_ipv4addr(chba->ndev, chba->ipv4addr); in update_address()
943 chba->ndev->name, &chba->ipv4addr); in update_address()
945 } else if (cxgb3i_get_private_ipv4addr(chba->ndev)) { in update_address()
946 if (chba->vdev) in update_address()
947 cxgb3i_set_private_ipv4addr(chba->vdev, 0); in update_address()
948 cxgb3i_set_private_ipv4addr(chba->ndev, 0); in update_address()
958 struct cxgbi_hba *chba = cdev->hbas[csk->port_id]; in init_act_open() local
965 update_address(chba); in init_act_open()
966 if (chba->ipv4addr) in init_act_open()
967 csk->saddr.sin_addr.s_addr = chba->ipv4addr; in init_act_open()