Searched refs:ipatoe (Results 1 – 2 of 2) sorted by relevance
/Linux-v6.6/drivers/s390/net/ |
D | qeth_l3_sys.c | 369 struct qeth_ipato_entry *ipatoe; in qeth_l3_dev_ipato_add_show() local 374 list_for_each_entry(ipatoe, &card->ipato.entries, entry) { in qeth_l3_dev_ipato_add_show() 375 if (ipatoe->proto != proto) in qeth_l3_dev_ipato_add_show() 378 qeth_l3_ipaddr_to_string(proto, ipatoe->addr, addr_str); in qeth_l3_dev_ipato_add_show() 380 addr_str, ipatoe->mask_bits); in qeth_l3_dev_ipato_add_show() 425 struct qeth_ipato_entry *ipatoe; in qeth_l3_dev_ipato_add_store() local 434 ipatoe = kzalloc(sizeof(struct qeth_ipato_entry), GFP_KERNEL); in qeth_l3_dev_ipato_add_store() 435 if (!ipatoe) in qeth_l3_dev_ipato_add_store() 438 ipatoe->proto = proto; in qeth_l3_dev_ipato_add_store() 439 memcpy(ipatoe->addr, addr, (proto == QETH_PROT_IPV4) ? 4 : 16); in qeth_l3_dev_ipato_add_store() [all …]
|
D | qeth_l3_main.c | 90 struct qeth_ipato_entry *ipatoe; in qeth_l3_is_addr_covered_by_ipato() local 102 list_for_each_entry(ipatoe, &card->ipato.entries, entry) { in qeth_l3_is_addr_covered_by_ipato() 103 if (addr->proto != ipatoe->proto) in qeth_l3_is_addr_covered_by_ipato() 105 qeth_l3_convert_addr_to_bits(ipatoe->addr, ipatoe_bits, in qeth_l3_is_addr_covered_by_ipato() 106 (ipatoe->proto == QETH_PROT_IPV4) ? in qeth_l3_is_addr_covered_by_ipato() 108 rc = !memcmp(addr_bits, ipatoe_bits, ipatoe->mask_bits); in qeth_l3_is_addr_covered_by_ipato() 515 struct qeth_ipato_entry *ipatoe, *tmp; in qeth_l3_clear_ipato_list() local 519 list_for_each_entry_safe(ipatoe, tmp, &card->ipato.entries, entry) { in qeth_l3_clear_ipato_list() 520 list_del(&ipatoe->entry); in qeth_l3_clear_ipato_list() 521 kfree(ipatoe); in qeth_l3_clear_ipato_list() [all …]
|