Searched refs:chap_table (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.4/drivers/scsi/qla4xxx/ |
D | ql4_mbx.c | 1584 struct ql4_chap_table *chap_table; in qla4xxx_get_chap() local 1587 chap_table = dma_pool_zalloc(ha->chap_dma_pool, GFP_KERNEL, &chap_dma); in qla4xxx_get_chap() 1588 if (chap_table == NULL) in qla4xxx_get_chap() 1612 __le16_to_cpu(chap_table->cookie))); in qla4xxx_get_chap() 1614 if (__le16_to_cpu(chap_table->cookie) != CHAP_VALID_COOKIE) { in qla4xxx_get_chap() 1619 strlcpy(password, chap_table->secret, QL4_CHAP_MAX_SECRET_LEN); in qla4xxx_get_chap() 1620 strlcpy(username, chap_table->name, QL4_CHAP_MAX_NAME_LEN); in qla4xxx_get_chap() 1621 chap_table->cookie = __constant_cpu_to_le16(CHAP_VALID_COOKIE); in qla4xxx_get_chap() 1624 dma_pool_free(ha->chap_dma_pool, chap_table, chap_dma); in qla4xxx_get_chap() 1646 struct ql4_chap_table *chap_table; in qla4xxx_set_chap() local [all …]
|
D | ql4_os.c | 699 struct ql4_chap_table *chap_table; in qla4xxx_find_free_chap_index() local 714 chap_table = (struct ql4_chap_table *)ha->chap_list + i; in qla4xxx_find_free_chap_index() 716 if ((chap_table->cookie != in qla4xxx_find_free_chap_index() 739 struct ql4_chap_table *chap_table; in qla4xxx_get_chap_list() local 764 chap_table = (struct ql4_chap_table *)ha->chap_list + i; in qla4xxx_get_chap_list() 765 if (chap_table->cookie != in qla4xxx_get_chap_list() 770 strlcpy(chap_rec->username, chap_table->name, in qla4xxx_get_chap_list() 772 strlcpy(chap_rec->password, chap_table->secret, in qla4xxx_get_chap_list() 774 chap_rec->password_length = chap_table->secret_len; in qla4xxx_get_chap_list() 776 if (chap_table->flags & BIT_7) /* local */ in qla4xxx_get_chap_list() [all …]
|