Lines Matching refs:ipatoe
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()
440 ipatoe->mask_bits = mask_bits; in qeth_l3_dev_ipato_add_store()
442 rc = qeth_l3_add_ipato_entry(card, ipatoe); in qeth_l3_dev_ipato_add_store()
444 kfree(ipatoe); in qeth_l3_dev_ipato_add_store()