Lines Matching refs:entry_len
375 int entry_len; in qeth_l3_dev_ipato_add_show() local
380 entry_len = qeth_l3_ipaddr_to_string(proto, ipatoe->addr, in qeth_l3_dev_ipato_add_show()
382 if (entry_len < 0) in qeth_l3_dev_ipato_add_show()
386 entry_len += 1 + ((proto == QETH_PROT_IPV4) ? 2 : 3); in qeth_l3_dev_ipato_add_show()
388 if (entry_len + 1 > PAGE_SIZE - str_len - 1) in qeth_l3_dev_ipato_add_show()
391 entry_len = scnprintf(buf, PAGE_SIZE - str_len, in qeth_l3_dev_ipato_add_show()
393 str_len += entry_len; in qeth_l3_dev_ipato_add_show()
394 buf += entry_len; in qeth_l3_dev_ipato_add_show()
596 int entry_len; in qeth_l3_dev_ip_add_show() local
601 entry_len = qeth_l3_ipaddr_to_string(proto, (u8 *)&ipaddr->u, in qeth_l3_dev_ip_add_show()
603 if (entry_len < 0) in qeth_l3_dev_ip_add_show()
607 if (entry_len + 1 > PAGE_SIZE - str_len - 1) in qeth_l3_dev_ip_add_show()
610 entry_len = scnprintf(buf, PAGE_SIZE - str_len, "%s\n", in qeth_l3_dev_ip_add_show()
612 str_len += entry_len; in qeth_l3_dev_ip_add_show()
613 buf += entry_len; in qeth_l3_dev_ip_add_show()