Lines Matching refs:ipatoe
114 struct qeth_ipato_entry *ipatoe; in qeth_l3_is_addr_covered_by_ipato() local
126 list_for_each_entry(ipatoe, &card->ipato.entries, entry) { in qeth_l3_is_addr_covered_by_ipato()
127 if (addr->proto != ipatoe->proto) in qeth_l3_is_addr_covered_by_ipato()
129 qeth_l3_convert_addr_to_bits(ipatoe->addr, ipatoe_bits, in qeth_l3_is_addr_covered_by_ipato()
130 (ipatoe->proto == QETH_PROT_IPV4) ? in qeth_l3_is_addr_covered_by_ipato()
134 min(32, ipatoe->mask_bits)); in qeth_l3_is_addr_covered_by_ipato()
137 min(128, ipatoe->mask_bits)); in qeth_l3_is_addr_covered_by_ipato()
549 struct qeth_ipato_entry *ipatoe, *tmp; in qeth_l3_clear_ipato_list() local
553 list_for_each_entry_safe(ipatoe, tmp, &card->ipato.entries, entry) { in qeth_l3_clear_ipato_list()
554 list_del(&ipatoe->entry); in qeth_l3_clear_ipato_list()
555 kfree(ipatoe); in qeth_l3_clear_ipato_list()
565 struct qeth_ipato_entry *ipatoe; in qeth_l3_add_ipato_entry() local
572 list_for_each_entry(ipatoe, &card->ipato.entries, entry) { in qeth_l3_add_ipato_entry()
573 if (ipatoe->proto != new->proto) in qeth_l3_add_ipato_entry()
575 if (!memcmp(ipatoe->addr, new->addr, in qeth_l3_add_ipato_entry()
576 (ipatoe->proto == QETH_PROT_IPV4)? 4:16) && in qeth_l3_add_ipato_entry()
577 (ipatoe->mask_bits == new->mask_bits)) { in qeth_l3_add_ipato_entry()
597 struct qeth_ipato_entry *ipatoe, *tmp; in qeth_l3_del_ipato_entry() local
604 list_for_each_entry_safe(ipatoe, tmp, &card->ipato.entries, entry) { in qeth_l3_del_ipato_entry()
605 if (ipatoe->proto != proto) in qeth_l3_del_ipato_entry()
607 if (!memcmp(ipatoe->addr, addr, in qeth_l3_del_ipato_entry()
609 (ipatoe->mask_bits == mask_bits)) { in qeth_l3_del_ipato_entry()
610 list_del(&ipatoe->entry); in qeth_l3_del_ipato_entry()
612 kfree(ipatoe); in qeth_l3_del_ipato_entry()