Lines Matching defs:info
536 static int ocelot_parse_ifh(u32 *_ifh, struct frame_info *info)
547 info->len = OCELOT_BUFFER_CELL_SZ * wlen + llen - 80;
549 info->timestamp = IFH_EXTRACT_BITFIELD64(ifh[0], 21, 32);
551 info->port = IFH_EXTRACT_BITFIELD64(ifh[1], 43, 4);
553 info->tag_type = IFH_EXTRACT_BITFIELD64(ifh[1], 16, 1);
554 info->vid = IFH_EXTRACT_BITFIELD64(ifh[1], 0, 12);
616 struct frame_info info = {};
640 ocelot_parse_ifh(ifh, &info);
642 ocelot_port = ocelot->ports[info.port];
647 skb = netdev_alloc_skb(dev, info.len);
654 buf_len = info.len - ETH_FCS_LEN;
683 if ((tod_in_ns & 0xffffffff) < info.timestamp)
685 info.timestamp;
688 info.timestamp;
698 if (ocelot->bridge_mask & BIT(info.port))