Lines Matching +refs:add +refs:addr +refs:attrs

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()
280 .attrs = qeth_l3_device_attrs,
378 qeth_l3_ipaddr_to_string(proto, ipatoe->addr, addr_str); in qeth_l3_dev_ipato_add_show()
396 u8 *addr, unsigned int *mask_bits) in qeth_l3_parse_ipatoe() argument
408 rc = qeth_l3_string_to_ipaddr(buf, proto, addr); in qeth_l3_parse_ipatoe()
427 u8 addr[16]; in qeth_l3_dev_ipato_add_store() local
430 rc = qeth_l3_parse_ipatoe(buf, proto, addr, &mask_bits); 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()
465 u8 addr[16]; in qeth_l3_dev_ipato_del_store() local
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()
567 .attrs = qeth_ipato_device_attrs,
601 static ssize_t qeth_l3_vipa_store(struct device *dev, const char *buf, bool add, in qeth_l3_vipa_store() argument
605 u8 addr[16] = {0, }; in qeth_l3_vipa_store() local
608 rc = qeth_l3_string_to_ipaddr(buf, proto, addr); in qeth_l3_vipa_store()
610 rc = qeth_l3_modify_rxip_vipa(card, add, addr, in qeth_l3_vipa_store()
671 .attrs = qeth_vipa_device_attrs,
683 u8 *addr) in qeth_l3_parse_rxipe() argument
688 if (qeth_l3_string_to_ipaddr(buf, proto, addr)) { in qeth_l3_parse_rxipe()
692 memcpy(&ipv4_addr, addr, sizeof(ipv4_addr)); in qeth_l3_parse_rxipe()
698 memcpy(&ipv6_addr, addr, sizeof(ipv6_addr)); in qeth_l3_parse_rxipe()
708 static ssize_t qeth_l3_rxip_store(struct device *dev, const char *buf, bool add, in qeth_l3_rxip_store() argument
712 u8 addr[16] = {0, }; in qeth_l3_rxip_store() local
715 rc = qeth_l3_parse_rxipe(buf, proto, addr); in qeth_l3_rxip_store()
717 rc = qeth_l3_modify_rxip_vipa(card, add, addr, in qeth_l3_rxip_store()
778 .attrs = qeth_rxip_device_attrs,