Lines Matching refs:proto

20 				    enum qeth_prot_versions proto, u8 *addr)  in qeth_l3_string_to_ipaddr()  argument
24 if ((proto == QETH_PROT_IPV4 && !in4_pton(buf, -1, addr, -1, &end)) || in qeth_l3_string_to_ipaddr()
25 (proto == QETH_PROT_IPV6 && !in6_pton(buf, -1, addr, -1, &end))) in qeth_l3_string_to_ipaddr()
367 enum qeth_prot_versions proto) in qeth_l3_dev_ipato_add_show() argument
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()
395 static int qeth_l3_parse_ipatoe(const char *buf, enum qeth_prot_versions proto, in qeth_l3_parse_ipatoe() argument
408 rc = qeth_l3_string_to_ipaddr(buf, proto, addr); in qeth_l3_parse_ipatoe()
416 if (*mask_bits > ((proto == QETH_PROT_IPV4) ? 32 : 128)) in qeth_l3_parse_ipatoe()
423 struct qeth_card *card, enum qeth_prot_versions proto) in qeth_l3_dev_ipato_add_store() argument
430 rc = qeth_l3_parse_ipatoe(buf, proto, addr, &mask_bits); 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()
462 struct qeth_card *card, enum qeth_prot_versions proto) in qeth_l3_dev_ipato_del_store() argument
468 rc = qeth_l3_parse_ipatoe(buf, proto, addr, &mask_bits); in qeth_l3_dev_ipato_del_store()
470 rc = qeth_l3_del_ipato_entry(card, proto, addr, mask_bits); in qeth_l3_dev_ipato_del_store()
571 enum qeth_prot_versions proto, in qeth_l3_dev_ip_add_show() argument
582 if (ipaddr->proto != proto || ipaddr->type != type) in qeth_l3_dev_ip_add_show()
585 qeth_l3_ipaddr_to_string(proto, (u8 *)&ipaddr->u, addr_str); in qeth_l3_dev_ip_add_show()
602 size_t count, enum qeth_prot_versions proto) in qeth_l3_vipa_store() argument
608 rc = qeth_l3_string_to_ipaddr(buf, proto, addr); in qeth_l3_vipa_store()
611 QETH_IP_TYPE_VIPA, proto); in qeth_l3_vipa_store()
682 static int qeth_l3_parse_rxipe(const char *buf, enum qeth_prot_versions proto, in qeth_l3_parse_rxipe() argument
688 if (qeth_l3_string_to_ipaddr(buf, proto, addr)) { in qeth_l3_parse_rxipe()
691 if (proto == QETH_PROT_IPV4) { in qeth_l3_parse_rxipe()
697 } else if (proto == QETH_PROT_IPV6) { in qeth_l3_parse_rxipe()
709 size_t count, enum qeth_prot_versions proto) in qeth_l3_rxip_store() argument
715 rc = qeth_l3_parse_rxipe(buf, proto, addr); in qeth_l3_rxip_store()
718 QETH_IP_TYPE_RXIP, proto); in qeth_l3_rxip_store()