Home
last modified time | relevance | path

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

/drivers/scsi/qla4xxx/
Dql4_mbx.c1579 struct ql4_chap_table *chap_table; in qla4xxx_get_chap() local
1582 chap_table = dma_pool_zalloc(ha->chap_dma_pool, GFP_KERNEL, &chap_dma); in qla4xxx_get_chap()
1583 if (chap_table == NULL) in qla4xxx_get_chap()
1607 __le16_to_cpu(chap_table->cookie))); in qla4xxx_get_chap()
1609 if (__le16_to_cpu(chap_table->cookie) != CHAP_VALID_COOKIE) { in qla4xxx_get_chap()
1614 strlcpy(password, chap_table->secret, QL4_CHAP_MAX_SECRET_LEN); in qla4xxx_get_chap()
1615 strlcpy(username, chap_table->name, QL4_CHAP_MAX_NAME_LEN); in qla4xxx_get_chap()
1616 chap_table->cookie = cpu_to_le16(CHAP_VALID_COOKIE); in qla4xxx_get_chap()
1619 dma_pool_free(ha->chap_dma_pool, chap_table, chap_dma); in qla4xxx_get_chap()
1641 struct ql4_chap_table *chap_table; in qla4xxx_set_chap() local
[all …]
Dql4_os.c730 struct ql4_chap_table *chap_table; in qla4xxx_find_free_chap_index() local
745 chap_table = (struct ql4_chap_table *)ha->chap_list + i; in qla4xxx_find_free_chap_index()
747 if ((chap_table->cookie != in qla4xxx_find_free_chap_index()
770 struct ql4_chap_table *chap_table; in qla4xxx_get_chap_list() local
795 chap_table = (struct ql4_chap_table *)ha->chap_list + i; in qla4xxx_get_chap_list()
796 if (chap_table->cookie != in qla4xxx_get_chap_list()
801 strlcpy(chap_rec->username, chap_table->name, in qla4xxx_get_chap_list()
803 strlcpy(chap_rec->password, chap_table->secret, in qla4xxx_get_chap_list()
805 chap_rec->password_length = chap_table->secret_len; in qla4xxx_get_chap_list()
807 if (chap_table->flags & BIT_7) /* local */ in qla4xxx_get_chap_list()
[all …]