Lines Matching defs:chap_table
1579 struct ql4_chap_table *chap_table;
1582 chap_table = dma_pool_zalloc(ha->chap_dma_pool, GFP_KERNEL, &chap_dma);
1583 if (chap_table == NULL)
1607 __le16_to_cpu(chap_table->cookie)));
1609 if (__le16_to_cpu(chap_table->cookie) != CHAP_VALID_COOKIE) {
1614 strscpy(password, chap_table->secret, QL4_CHAP_MAX_SECRET_LEN);
1615 strscpy(username, chap_table->name, QL4_CHAP_MAX_NAME_LEN);
1616 chap_table->cookie = cpu_to_le16(CHAP_VALID_COOKIE);
1619 dma_pool_free(ha->chap_dma_pool, chap_table, chap_dma);
1641 struct ql4_chap_table *chap_table;
1645 chap_table = dma_pool_zalloc(ha->chap_dma_pool, GFP_KERNEL, &chap_dma);
1646 if (chap_table == NULL) {
1652 chap_table->flags |= BIT_6; /* peer */
1654 chap_table->flags |= BIT_7; /* local */
1655 chap_table->secret_len = strlen(password);
1656 strncpy(chap_table->secret, password, MAX_CHAP_SECRET_LEN - 1);
1657 strncpy(chap_table->name, username, MAX_CHAP_NAME_LEN - 1);
1658 chap_table->cookie = cpu_to_le16(CHAP_VALID_COOKIE);
1661 chap_size = MAX_CHAP_ENTRIES_40XX * sizeof(*chap_table);
1680 chap_table, sizeof(struct ql4_chap_table));
1682 dma_pool_free(ha->chap_dma_pool, chap_table, chap_dma);
1695 struct ql4_chap_table *chap_table = NULL;
1723 chap_table = (struct ql4_chap_table *)ha->chap_list + chap_index;
1724 if (chap_table->cookie != cpu_to_le16(CHAP_VALID_COOKIE)) {
1729 if (!(chap_table->flags & BIT_7)) {
1735 strscpy(password, chap_table->secret, MAX_CHAP_SECRET_LEN);
1736 strscpy(username, chap_table->name, MAX_CHAP_NAME_LEN);
1765 struct ql4_chap_table *chap_table;
1785 chap_table = (struct ql4_chap_table *)ha->chap_list + i;
1786 if (chap_table->cookie !=
1793 if (chap_table->flags & BIT_7)
1796 if (chap_table->flags & BIT_6)
1799 if (!strncmp(chap_table->secret, password,
1801 !strncmp(chap_table->name, username,