Lines Matching refs:chap_size
638 uint32_t chap_size = 0; in qla4xxx_create_chap_list() local
641 chap_size = MAX_CHAP_ENTRIES_40XX * in qla4xxx_create_chap_list()
646 chap_size = ha->hw.flt_chap_size / 2; in qla4xxx_create_chap_list()
648 chap_flash_data = dma_alloc_coherent(&ha->pdev->dev, chap_size, in qla4xxx_create_chap_list()
660 offset += chap_size; in qla4xxx_create_chap_list()
663 rval = qla4xxx_get_flash(ha, chap_dma, offset, chap_size); in qla4xxx_create_chap_list()
668 ha->chap_list = vmalloc(chap_size); in qla4xxx_create_chap_list()
674 memcpy(ha->chap_list, chap_flash_data, chap_size); in qla4xxx_create_chap_list()
677 dma_free_coherent(&ha->pdev->dev, chap_size, chap_flash_data, chap_dma); in qla4xxx_create_chap_list()
871 uint32_t chap_size; in qla4xxx_delete_chap() local
899 chap_size = sizeof(struct ql4_chap_table); in qla4xxx_delete_chap()
901 offset = FLASH_CHAP_OFFSET | (chap_tbl_idx * chap_size); in qla4xxx_delete_chap()
909 offset += (chap_tbl_idx * chap_size); in qla4xxx_delete_chap()
912 ret = qla4xxx_get_flash(ha, chap_dma, offset, chap_size); in qla4xxx_delete_chap()
930 ret = qla4xxx_set_flash(ha, chap_dma, offset, chap_size, in qla4xxx_delete_chap()