Lines Matching defs:chap_table
733 struct ql4_chap_table *chap_table;
748 chap_table = (struct ql4_chap_table *)ha->chap_list + i;
750 if ((chap_table->cookie !=
773 struct ql4_chap_table *chap_table;
798 chap_table = (struct ql4_chap_table *)ha->chap_list + i;
799 if (chap_table->cookie !=
804 strlcpy(chap_rec->username, chap_table->name,
806 strlcpy(chap_rec->password, chap_table->secret,
808 chap_rec->password_length = chap_table->secret_len;
810 if (chap_table->flags & BIT_7) /* local */
813 if (chap_table->flags & BIT_6) /* peer */
872 struct ql4_chap_table *chap_table;
879 chap_table = dma_pool_zalloc(ha->chap_dma_pool, GFP_KERNEL, &chap_dma);
880 if (chap_table == NULL)
924 __le16_to_cpu(chap_table->cookie)));
926 if (__le16_to_cpu(chap_table->cookie) != CHAP_VALID_COOKIE) {
931 chap_table->cookie = __constant_cpu_to_le16(0xFFFF);
941 chap_table, sizeof(struct ql4_chap_table));
948 dma_pool_free(ha->chap_dma_pool, chap_table, chap_dma);
6047 struct ql4_chap_table *chap_table;
6062 chap_table = (struct ql4_chap_table *)ha->chap_list + i;
6063 if (chap_table->cookie !=
6068 if (chap_table->flags & BIT_7) /* local */
6071 if (!(chap_table->flags & BIT_6)) /* Not BIDI */
6074 strlcpy(password, chap_table->secret, QL4_CHAP_MAX_SECRET_LEN);
6075 strlcpy(username, chap_table->name, QL4_CHAP_MAX_NAME_LEN);