Lines Matching refs:cnt

277 static int vlan_proc_get_vlan_info(char* buf, unsigned int cnt)  in vlan_proc_get_vlan_info()  argument
286 printk(VLAN_DBG __FUNCTION__ ": cnt == %i\n", cnt); in vlan_proc_get_vlan_info()
301 cnt += sprintf(buf + cnt, "Name-Type: %s\n", nm_type); in vlan_proc_get_vlan_info()
311 if ((cnt + 100) > VLAN_PROC_BUFSZ) { in vlan_proc_get_vlan_info()
312 if ((cnt+strlen(term_msg)) < VLAN_PROC_BUFSZ) in vlan_proc_get_vlan_info()
313 cnt += sprintf(buf+cnt, "%s", term_msg); in vlan_proc_get_vlan_info()
319 cnt += sprintf(buf + cnt, "%-15s| %d | %s\n", in vlan_proc_get_vlan_info()
329 return cnt; in vlan_proc_get_vlan_info()
359 int cnt = 0; in vlandev_get_info() local
367 cnt += sprintf(buf + cnt, "%s VID: %d REORDER_HDR: %i dev->priv_flags: %hx\n", in vlandev_get_info()
373 cnt += sprintf(buf + cnt, "%30s: %12lu\n", in vlandev_get_info()
376 cnt += sprintf(buf + cnt, "%30s: %12lu\n", in vlandev_get_info()
379 cnt += sprintf(buf + cnt, "%30s: %12lu\n", in vlandev_get_info()
382 cnt += sprintf(buf + cnt, "\n%30s: %12lu\n", in vlandev_get_info()
385 cnt += sprintf(buf + cnt, "%30s: %12lu\n", in vlandev_get_info()
388 cnt += sprintf(buf + cnt, "%30s: %12lu\n", in vlandev_get_info()
391 cnt += sprintf(buf + cnt, "%30s: %12lu\n", in vlandev_get_info()
394 cnt += sprintf(buf + cnt, "Device: %s", dev_info->real_dev->name); in vlandev_get_info()
397cnt += sprintf(buf + cnt, "\nINGRESS priority mappings: 0:%lu 1:%lu 2:%lu 3:%lu 4:%lu 5:%lu … in vlandev_get_info()
407 if ((cnt + 100) > VLAN_PROC_BUFSZ) { in vlandev_get_info()
408 if ((cnt + strlen(term_msg)) >= VLAN_PROC_BUFSZ) { in vlandev_get_info()
410 return cnt; in vlandev_get_info()
412 cnt += sprintf(buf + cnt, "%s", term_msg); in vlandev_get_info()
413 return cnt; in vlandev_get_info()
417 cnt += sprintf(buf + cnt, "EGRESSS priority Mappings: "); in vlandev_get_info()
422 cnt += sprintf(buf + cnt, "%lu:%hu ", in vlandev_get_info()
425 if ((cnt + 100) > VLAN_PROC_BUFSZ) { in vlandev_get_info()
426 if ((cnt + strlen(term_msg)) >= VLAN_PROC_BUFSZ) { in vlandev_get_info()
428 return cnt; in vlandev_get_info()
430 cnt += sprintf(buf + cnt, "%s", term_msg); in vlandev_get_info()
431 return cnt; in vlandev_get_info()
438 cnt += sprintf(buf + cnt, "\n"); in vlandev_get_info()
440 return cnt; in vlandev_get_info()