Lines Matching refs:proto
452 enum qeth_prot_versions proto) in qeth_l3_dev_ipato_add_show() argument
460 entry_len = (proto == QETH_PROT_IPV4)? 12 : 40; in qeth_l3_dev_ipato_add_show()
462 entry_len += (proto == QETH_PROT_IPV4)? 5 : 6; in qeth_l3_dev_ipato_add_show()
465 if (ipatoe->proto != proto) in qeth_l3_dev_ipato_add_show()
472 qeth_l3_ipaddr_to_string(proto, ipatoe->addr, addr_str); in qeth_l3_dev_ipato_add_show()
493 static int qeth_l3_parse_ipatoe(const char *buf, enum qeth_prot_versions proto, in qeth_l3_parse_ipatoe() argument
507 if (qeth_l3_string_to_ipaddr(buffer, proto, addr)) { in qeth_l3_parse_ipatoe()
514 (*mask_bits > ((proto == QETH_PROT_IPV4) ? 32 : 128))) { in qeth_l3_parse_ipatoe()
521 struct qeth_card *card, enum qeth_prot_versions proto) in qeth_l3_dev_ipato_add_store() argument
529 rc = qeth_l3_parse_ipatoe(buf, proto, addr, &mask_bits); in qeth_l3_dev_ipato_add_store()
538 ipatoe->proto = proto; in qeth_l3_dev_ipato_add_store()
539 memcpy(ipatoe->addr, addr, (proto == QETH_PROT_IPV4)? 4:16); in qeth_l3_dev_ipato_add_store()
566 struct qeth_card *card, enum qeth_prot_versions proto) in qeth_l3_dev_ipato_del_store() argument
573 rc = qeth_l3_parse_ipatoe(buf, proto, addr, &mask_bits); in qeth_l3_dev_ipato_del_store()
575 qeth_l3_del_ipato_entry(card, proto, addr, mask_bits); in qeth_l3_dev_ipato_del_store()
689 enum qeth_prot_versions proto) in qeth_l3_dev_vipa_add_show() argument
697 entry_len = (proto == QETH_PROT_IPV4)? 12 : 40; in qeth_l3_dev_vipa_add_show()
701 if (ipaddr->proto != proto) in qeth_l3_dev_vipa_add_show()
710 qeth_l3_ipaddr_to_string(proto, (const u8 *)&ipaddr->u, in qeth_l3_dev_vipa_add_show()
731 static int qeth_l3_parse_vipae(const char *buf, enum qeth_prot_versions proto, in qeth_l3_parse_vipae() argument
734 if (qeth_l3_string_to_ipaddr(buf, proto, addr)) { in qeth_l3_parse_vipae()
741 struct qeth_card *card, enum qeth_prot_versions proto) in qeth_l3_dev_vipa_add_store() argument
747 rc = qeth_l3_parse_vipae(buf, proto, addr); in qeth_l3_dev_vipa_add_store()
749 rc = qeth_l3_add_vipa(card, proto, addr); in qeth_l3_dev_vipa_add_store()
770 struct qeth_card *card, enum qeth_prot_versions proto) in qeth_l3_dev_vipa_del_store() argument
776 rc = qeth_l3_parse_vipae(buf, proto, addr); in qeth_l3_dev_vipa_del_store()
778 qeth_l3_del_vipa(card, proto, addr); in qeth_l3_dev_vipa_del_store()
851 enum qeth_prot_versions proto) in qeth_l3_dev_rxip_add_show() argument
859 entry_len = (proto == QETH_PROT_IPV4)? 12 : 40; in qeth_l3_dev_rxip_add_show()
863 if (ipaddr->proto != proto) in qeth_l3_dev_rxip_add_show()
872 qeth_l3_ipaddr_to_string(proto, (const u8 *)&ipaddr->u, in qeth_l3_dev_rxip_add_show()
893 static int qeth_l3_parse_rxipe(const char *buf, enum qeth_prot_versions proto, in qeth_l3_parse_rxipe() argument
896 if (qeth_l3_string_to_ipaddr(buf, proto, addr)) { in qeth_l3_parse_rxipe()
903 struct qeth_card *card, enum qeth_prot_versions proto) in qeth_l3_dev_rxip_add_store() argument
909 rc = qeth_l3_parse_rxipe(buf, proto, addr); in qeth_l3_dev_rxip_add_store()
911 rc = qeth_l3_add_rxip(card, proto, addr); in qeth_l3_dev_rxip_add_store()
932 struct qeth_card *card, enum qeth_prot_versions proto) in qeth_l3_dev_rxip_del_store() argument
938 rc = qeth_l3_parse_rxipe(buf, proto, addr); in qeth_l3_dev_rxip_del_store()
940 qeth_l3_del_rxip(card, proto, addr); in qeth_l3_dev_rxip_del_store()