Lines Matching defs:chap_table
730 struct ql4_chap_table *chap_table;
745 chap_table = (struct ql4_chap_table *)ha->chap_list + i;
747 if ((chap_table->cookie !=
770 struct ql4_chap_table *chap_table;
795 chap_table = (struct ql4_chap_table *)ha->chap_list + i;
796 if (chap_table->cookie !=
801 strscpy(chap_rec->username, chap_table->name,
803 strscpy(chap_rec->password, chap_table->secret,
805 chap_rec->password_length = chap_table->secret_len;
807 if (chap_table->flags & BIT_7) /* local */
810 if (chap_table->flags & BIT_6) /* peer */
867 struct ql4_chap_table *chap_table;
874 chap_table = dma_pool_zalloc(ha->chap_dma_pool, GFP_KERNEL, &chap_dma);
875 if (chap_table == NULL)
919 __le16_to_cpu(chap_table->cookie)));
921 if (__le16_to_cpu(chap_table->cookie) != CHAP_VALID_COOKIE) {
926 chap_table->cookie = cpu_to_le16(0xFFFF);
936 chap_table, sizeof(struct ql4_chap_table));
943 dma_pool_free(ha->chap_dma_pool, chap_table, chap_dma);
6038 struct ql4_chap_table *chap_table;
6053 chap_table = (struct ql4_chap_table *)ha->chap_list + i;
6054 if (chap_table->cookie !=
6059 if (chap_table->flags & BIT_7) /* local */
6062 if (!(chap_table->flags & BIT_6)) /* Not BIDI */
6065 strscpy(password, chap_table->secret, QL4_CHAP_MAX_SECRET_LEN);
6066 strscpy(username, chap_table->name, QL4_CHAP_MAX_NAME_LEN);