Home
last modified time | relevance | path

Searched refs:chap_size (Results 1 – 2 of 2) sorted by relevance

/drivers/scsi/qla4xxx/
Dql4_mbx.c1578 uint32_t offset = 0, chap_size; in qla4xxx_get_chap() local
1586 chap_size = sizeof(struct ql4_chap_table); in qla4xxx_get_chap()
1589 offset = FLASH_CHAP_OFFSET | (idx * chap_size); in qla4xxx_get_chap()
1597 offset += (idx * chap_size); in qla4xxx_get_chap()
1600 rval = qla4xxx_get_flash(ha, chap_dma, offset, chap_size); in qla4xxx_get_chap()
1642 uint32_t chap_size = 0; in qla4xxx_set_chap() local
1661 chap_size = MAX_CHAP_ENTRIES_40XX * sizeof(*chap_table); in qla4xxx_set_chap()
1666 chap_size = ha->hw.flt_chap_size / 2; in qla4xxx_set_chap()
1669 offset += chap_size; in qla4xxx_set_chap()
Dql4_os.c637 uint32_t chap_size = 0; in qla4xxx_create_chap_list() local
640 chap_size = MAX_CHAP_ENTRIES_40XX * in qla4xxx_create_chap_list()
645 chap_size = ha->hw.flt_chap_size / 2; in qla4xxx_create_chap_list()
647 chap_flash_data = dma_alloc_coherent(&ha->pdev->dev, chap_size, in qla4xxx_create_chap_list()
659 offset += chap_size; in qla4xxx_create_chap_list()
662 rval = qla4xxx_get_flash(ha, chap_dma, offset, chap_size); in qla4xxx_create_chap_list()
667 ha->chap_list = vmalloc(chap_size); in qla4xxx_create_chap_list()
673 memset(ha->chap_list, 0, 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()
[all …]