Lines Matching refs:ptr

215 static char* FAST_FUNC UNSPEC_print(unsigned char *ptr)  in UNSPEC_print()  argument
225 sprintf(pos, "%02X-", *ptr++); in UNSPEC_print()
689 static char* FAST_FUNC ether_print(unsigned char *ptr) in ether_print() argument
693 ptr[0], ptr[1], ptr[2], ptr[3], ptr[4], ptr[5] in ether_print()
847 static void ife_print6(struct interface *ptr) in ife_print6() argument
865 if (strcmp(devname, ptr->name) == 0) { in ife_print6()
904 static void ife_print(struct interface *ptr) in ife_print() argument
911 ap = get_afntype(ptr->addr.sa_family); in ife_print()
915 hf = ptr->type; in ife_print()
924 printf("%-9s Link encap:%s ", ptr->name, hw->title); in ife_print()
928 && !(hw_null_address(hw, ptr->hwaddr) && hw->suppress_null_addr) in ife_print()
930 printf("HWaddr %s ", hw->print((unsigned char *)ptr->hwaddr)); in ife_print()
933 if (ptr->flags & IFF_PORTSEL) { in ife_print()
934 printf("Media:%s", if_port_text[ptr->map.port] /* [0] */); in ife_print()
935 if (ptr->flags & IFF_AUTOMEDIA) in ife_print()
941 if (ptr->has_ip) { in ife_print()
943 ap->sprint(&ptr->addr, 1)); in ife_print()
944 if (ptr->flags & IFF_POINTOPOINT) { in ife_print()
945 printf(" P-t-P:%s ", ap->sprint(&ptr->dstaddr, 1)); in ife_print()
947 if (ptr->flags & IFF_BROADCAST) { in ife_print()
948 printf(" Bcast:%s ", ap->sprint(&ptr->broadaddr, 1)); in ife_print()
950 printf(" Mask:%s\n", ap->sprint(&ptr->netmask, 1)); in ife_print()
953 ife_print6(ptr); in ife_print()
958 if (ptr->flags == 0) { in ife_print()
1000 if (ptr->flags & *mask) { in ife_print()
1009 printf(" MTU:%d Metric:%d", ptr->mtu, ptr->metric ? ptr->metric : 1); in ife_print()
1012 if (ptr->outfill || ptr->keepalive) in ife_print()
1013 printf(" Outfill:%d Keepalive:%d", ptr->outfill, ptr->keepalive); in ife_print()
1020 if (ptr->statistics_valid) { in ife_print()
1028 ptr->stats.rx_packets, ptr->stats.rx_errors, in ife_print()
1029 ptr->stats.rx_dropped, ptr->stats.rx_fifo_errors, in ife_print()
1030 ptr->stats.rx_frame_errors); in ife_print()
1033 ptr->stats.rx_compressed); in ife_print()
1036 ptr->stats.tx_packets, ptr->stats.tx_errors, in ife_print()
1037 ptr->stats.tx_dropped, ptr->stats.tx_fifo_errors, in ife_print()
1038 ptr->stats.tx_carrier_errors); in ife_print()
1039 printf(" collisions:%lu ", ptr->stats.collisions); in ife_print()
1041 printf("compressed:%lu ", ptr->stats.tx_compressed); in ife_print()
1042 if (ptr->tx_queue_len != -1) in ife_print()
1043 printf("txqueuelen:%d ", ptr->tx_queue_len); in ife_print()
1045 print_bytes_scaled(ptr->stats.rx_bytes, " T"); in ife_print()
1046 print_bytes_scaled(ptr->stats.tx_bytes, "\n"); in ife_print()
1049 if (ptr->map.irq || ptr->map.mem_start in ife_print()
1050 || ptr->map.dma || ptr->map.base_addr in ife_print()
1053 if (ptr->map.irq) in ife_print()
1054 printf("Interrupt:%d ", ptr->map.irq); in ife_print()
1055 if (ptr->map.base_addr >= 0x100) /* Only print devices using it for I/O maps */ in ife_print()
1057 (unsigned long) ptr->map.base_addr); in ife_print()
1058 if (ptr->map.mem_start) { in ife_print()
1059 printf("Memory:%lx-%lx ", ptr->map.mem_start, in ife_print()
1060 ptr->map.mem_end); in ife_print()
1062 if (ptr->map.dma) in ife_print()
1063 printf("DMA chan:%x ", ptr->map.dma); in ife_print()