Lines Matching refs:cs84xx
2838 ha->cs84xx = qla84xx_get_chip(vha); in qla2x00_initialize_adapter()
2839 if (!ha->cs84xx) { in qla2x00_initialize_adapter()
9012 struct qla_chip_state_84xx *cs84xx; in qla84xx_get_chip() local
9018 list_for_each_entry(cs84xx, &qla_cs84xx_list, list) { in qla84xx_get_chip()
9019 if (cs84xx->bus == ha->pdev->bus) { in qla84xx_get_chip()
9020 kref_get(&cs84xx->kref); in qla84xx_get_chip()
9025 cs84xx = kzalloc(sizeof(*cs84xx), GFP_KERNEL); in qla84xx_get_chip()
9026 if (!cs84xx) in qla84xx_get_chip()
9029 kref_init(&cs84xx->kref); in qla84xx_get_chip()
9030 spin_lock_init(&cs84xx->access_lock); in qla84xx_get_chip()
9031 mutex_init(&cs84xx->fw_update_mutex); in qla84xx_get_chip()
9032 cs84xx->bus = ha->pdev->bus; in qla84xx_get_chip()
9034 list_add_tail(&cs84xx->list, &qla_cs84xx_list); in qla84xx_get_chip()
9037 return cs84xx; in qla84xx_get_chip()
9043 struct qla_chip_state_84xx *cs84xx = in __qla84xx_chip_release() local
9047 list_del(&cs84xx->list); in __qla84xx_chip_release()
9049 kfree(cs84xx); in __qla84xx_chip_release()
9057 if (ha->cs84xx) in qla84xx_put_chip()
9058 kref_put(&ha->cs84xx->kref, __qla84xx_chip_release); in qla84xx_put_chip()
9068 mutex_lock(&ha->cs84xx->fw_update_mutex); in qla84xx_init_chip()
9072 mutex_unlock(&ha->cs84xx->fw_update_mutex); in qla84xx_init_chip()