/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_packet.c | 35 void sparx5_ifh_parse(u32 *ifh, struct frame_info *info) in sparx5_ifh_parse() argument 37 u8 *xtr_hdr = (u8 *)ifh; in sparx5_ifh_parse() 63 u32 ifh[IFH_LEN]; in sparx5_xtr_grp() local 68 ifh[i] = spx5_rd(sparx5, QS_XTR_RD(grp)); in sparx5_xtr_grp() 71 sparx5_ifh_parse(ifh, &fi); in sparx5_xtr_grp() 163 u32 *ifh, in sparx5_inject() 185 spx5_wr(ifh[w], sparx5, QS_INJ_WR(grp)); in sparx5_inject() 230 u32 ifh[IFH_LEN]; in sparx5_port_xmit_impl() local 233 memset(ifh, 0, IFH_LEN * 4); in sparx5_port_xmit_impl() 234 sparx5_set_port_ifh(ifh, por in sparx5_port_xmit_impl() 162 sparx5_inject(struct sparx5 *sparx5, u32 *ifh, struct sk_buff *skb, struct net_device *ndev) sparx5_inject() argument [all...] |
H A D | sparx5_netdev.c | 17 #define ifh_encode_bitfield(ifh, value, pos, _width) \ 26 __ifh_encode_bitfield((ifh), (value), (pos), width); \ 29 static void __ifh_encode_bitfield(void *ifh, u64 value, u32 pos, u32 width) in __ifh_encode_bitfield() argument 31 u8 *ifh_hdr = ifh; in __ifh_encode_bitfield()
|
H A D | sparx5_main.h | 313 void sparx5_ifh_parse(u32 *ifh, struct frame_info *info); 322 int sparx5_fdma_xmit(struct sparx5 *sparx5, u32 *ifh, struct sk_buff *skb);
|
H A D | sparx5_fdma.c | 309 int sparx5_fdma_xmit(struct sparx5 *sparx5, u32 *ifh, struct sk_buff *skb) in sparx5_fdma_xmit() argument 329 memcpy(db->cpu_addr, ifh, IFH_LEN * 4); in sparx5_fdma_xmit()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_main.c | 226 __be32 *ifh, in lan966x_port_ifh_xmit() 253 lan_wr((__force u32)ifh[i], lan966x, QS_INJ_WR(grp)); in lan966x_port_ifh_xmit() 308 static void lan966x_ifh_set(u8 *ifh, size_t val, size_t pos, size_t length) in lan966x_ifh_set() argument 319 ifh[p] |= v << ((pos + i) % 8); in lan966x_ifh_set() 320 ifh[p - 1] |= v >> (8 - (pos + i) % 8); in lan966x_ifh_set() 326 void lan966x_ifh_set_bypass(void *ifh, u64 bypass) in lan966x_ifh_set_bypass() argument 328 lan966x_ifh_set(ifh, bypass, IFH_POS_BYPASS, IFH_WID_BYPASS); in lan966x_ifh_set_bypass() 331 void lan966x_ifh_set_port(void *ifh, u64 port) in lan966x_ifh_set_port() argument 333 lan966x_ifh_set(ifh, port, IFH_POS_DSTS, IFH_WID_DSTS); in lan966x_ifh_set_port() 336 static void lan966x_ifh_set_qos_class(void *ifh, u6 argument 225 lan966x_port_ifh_xmit(struct sk_buff *skb, __be32 *ifh, struct net_device *dev) lan966x_port_ifh_xmit() argument 341 lan966x_ifh_set_ipv(void *ifh, u64 ipv) lan966x_ifh_set_ipv() argument 346 lan966x_ifh_set_vid(void *ifh, u64 vid) lan966x_ifh_set_vid() argument 351 lan966x_ifh_set_rew_op(void *ifh, u64 rew_op) lan966x_ifh_set_rew_op() argument 356 lan966x_ifh_set_timestamp(void *ifh, u64 timestamp) lan966x_ifh_set_timestamp() argument 366 __be32 ifh[IFH_LEN]; lan966x_port_xmit() local 605 lan966x_ifh_get(u8 *ifh, size_t pos, size_t length) lan966x_ifh_get() argument 624 lan966x_ifh_get_src_port(void *ifh, u64 *src_port) lan966x_ifh_get_src_port() argument 629 lan966x_ifh_get_len(void *ifh, u64 *len) lan966x_ifh_get_len() argument 634 lan966x_ifh_get_timestamp(void *ifh, u64 *timestamp) lan966x_ifh_get_timestamp() argument 652 u32 ifh[IFH_LEN]; lan966x_xtr_irq_handler() local [all...] |
H A D | lan966x_fdma.c | 714 __be32 *ifh; in lan966x_fdma_xmit_xdpf() local 739 ifh = xdpf->data - IFH_LEN_BYTES; in lan966x_fdma_xmit_xdpf() 740 memset(ifh, 0x0, sizeof(__be32) * IFH_LEN); in lan966x_fdma_xmit_xdpf() 741 lan966x_ifh_set_bypass(ifh, 1); in lan966x_fdma_xmit_xdpf() 742 lan966x_ifh_set_port(ifh, BIT_ULL(port->chip_port)); in lan966x_fdma_xmit_xdpf() 763 ifh = page_address(page) + XDP_PACKET_HEADROOM; in lan966x_fdma_xmit_xdpf() 764 memset(ifh, 0x0, sizeof(__be32) * IFH_LEN); in lan966x_fdma_xmit_xdpf() 765 lan966x_ifh_set_bypass(ifh, 1); in lan966x_fdma_xmit_xdpf() 766 lan966x_ifh_set_port(ifh, BIT_ULL(port->chip_port)); in lan966x_fdma_xmit_xdpf() 800 int lan966x_fdma_xmit(struct sk_buff *skb, __be32 *ifh, struc argument [all...] |
H A D | lan966x_main.h | 487 void lan966x_ifh_get_src_port(void *ifh, u64 *src_port); 488 void lan966x_ifh_get_timestamp(void *ifh, u64 *timestamp); 489 void lan966x_ifh_set_bypass(void *ifh, u64 bypass); 490 void lan966x_ifh_set_port(void *ifh, u64 bypass); 601 int lan966x_fdma_xmit(struct sk_buff *skb, __be32 *ifh, struct net_device *dev);
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mscc/ |
H A D | ocelot_vsc7514.c | 539 u64 ifh[2]; in ocelot_parse_ifh() local 541 ifh[0] = be64_to_cpu(((__force __be64 *)_ifh)[0]); in ocelot_parse_ifh() 542 ifh[1] = be64_to_cpu(((__force __be64 *)_ifh)[1]); in ocelot_parse_ifh() 544 wlen = IFH_EXTRACT_BITFIELD64(ifh[0], 7, 8); in ocelot_parse_ifh() 545 llen = IFH_EXTRACT_BITFIELD64(ifh[0], 15, 6); in ocelot_parse_ifh() 549 info->timestamp = IFH_EXTRACT_BITFIELD64(ifh[0], 21, 32); in ocelot_parse_ifh() 551 info->port = IFH_EXTRACT_BITFIELD64(ifh[1], 43, 4); in ocelot_parse_ifh() 553 info->tag_type = IFH_EXTRACT_BITFIELD64(ifh[1], 16, 1); in ocelot_parse_ifh() 554 info->vid = IFH_EXTRACT_BITFIELD64(ifh[1], 0, 12); in ocelot_parse_ifh() 559 static int ocelot_rx_frame_word(struct ocelot *ocelot, u8 grp, bool ifh, in ocelot_rx_frame_word() argument 618 u32 ifh[4], val, *buf; ocelot_xtr_irq_handler() local [all...] |
H A D | ocelot_net.c | 312 static int ocelot_gen_ifh(u32 *ifh, struct frame_info *info) in ocelot_gen_ifh() argument 314 ifh[0] = IFH_INJ_BYPASS | ((0x1ff & info->rew_op) << 21); in ocelot_gen_ifh() 315 ifh[1] = (0xf00 & info->port) >> 8; in ocelot_gen_ifh() 316 ifh[2] = (0xff & info->port) << 24; in ocelot_gen_ifh() 317 ifh[3] = (info->tag_type << 16) | info->vid; in ocelot_gen_ifh() 328 u32 val, ifh[OCELOT_TAG_LEN / 4]; in ocelot_port_xmit() local 371 ocelot_gen_ifh(ifh, &info); in ocelot_port_xmit() 374 ocelot_write_rix(ocelot, (__force u32)cpu_to_be32(ifh[i]), in ocelot_port_xmit()
|
/kernel/linux/linux-6.6/net/dsa/ |
H A D | tag_ocelot.c | 46 __be32 ifh_prefix, void **ifh) in ocelot_xmit_common() 76 *ifh = injection; in ocelot_xmit_common() 45 ocelot_xmit_common(struct sk_buff *skb, struct net_device *netdev, __be32 ifh_prefix, void **ifh) ocelot_xmit_common() argument
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mscc/ |
H A D | ocelot.c | 1024 static int ocelot_rx_frame_word(struct ocelot *ocelot, u8 grp, bool ifh, in ocelot_rx_frame_word() argument 1031 if (ifh) in ocelot_rx_frame_word() 1196 void ocelot_ifh_port_set(void *ifh, int port, u32 rew_op, u32 vlan_tag) in ocelot_ifh_port_set() argument 1198 ocelot_ifh_set_bypass(ifh, 1); in ocelot_ifh_port_set() 1199 ocelot_ifh_set_dest(ifh, BIT_ULL(port)); in ocelot_ifh_port_set() 1200 ocelot_ifh_set_tag_type(ifh, IFH_TAG_TYPE_C); in ocelot_ifh_port_set() 1202 ocelot_ifh_set_vlan_tci(ifh, vlan_tag); in ocelot_ifh_port_set() 1204 ocelot_ifh_set_rew_op(ifh, rew_op); in ocelot_ifh_port_set() 1211 u32 ifh[OCELOT_TAG_LEN / 4] = {0}; in ocelot_port_inject_frame() local 1217 ocelot_ifh_port_set(ifh, por in ocelot_port_inject_frame() [all...] |
H A D | ocelot_fdma.c | 645 void *ifh; in ocelot_fdma_prepare_skb() local 666 ifh = skb_push(skb, OCELOT_TAG_LEN); in ocelot_fdma_prepare_skb() 668 memset(ifh, 0, OCELOT_TAG_LEN); in ocelot_fdma_prepare_skb() 669 ocelot_ifh_port_set(ifh, port, rew_op, skb_vlan_tag_get(skb)); in ocelot_fdma_prepare_skb()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | perf_event.h | 1411 struct perf_addr_filters_head *ifh = &event->addr_filters; in perf_event_addr_filters() local 1414 ifh = &event->parent->addr_filters; in perf_event_addr_filters() 1416 return ifh; in perf_event_addr_filters()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | perf_event.h | 1672 struct perf_addr_filters_head *ifh = &event->addr_filters; in perf_event_addr_filters() local 1675 ifh = &event->parent->addr_filters; in perf_event_addr_filters() 1677 return ifh; in perf_event_addr_filters()
|
/kernel/linux/linux-5.10/kernel/events/ |
H A D | core.c | 3196 struct perf_addr_filters_head *ifh = perf_event_addr_filters(event); in perf_event_addr_filters_sync() local 3201 raw_spin_lock(&ifh->lock); in perf_event_addr_filters_sync() 3206 raw_spin_unlock(&ifh->lock); in perf_event_addr_filters_sync() 7556 struct perf_addr_filters_head *ifh = perf_event_addr_filters(event); in perf_event_addr_filters_exec() local 7564 raw_spin_lock_irqsave(&ifh->lock, flags); in perf_event_addr_filters_exec() 7565 list_for_each_entry(filter, &ifh->list, entry) { in perf_event_addr_filters_exec() 7577 raw_spin_unlock_irqrestore(&ifh->lock, flags); in perf_event_addr_filters_exec() 8380 struct perf_addr_filters_head *ifh = perf_event_addr_filters(event); in __perf_addr_filters_adjust() local 8392 raw_spin_lock_irqsave(&ifh->lock, flags); in __perf_addr_filters_adjust() 8393 list_for_each_entry(filter, &ifh in __perf_addr_filters_adjust() 10106 struct perf_addr_filters_head *ifh = perf_event_addr_filters(event); perf_event_addr_filters_apply() local 11511 struct perf_addr_filters_head *ifh = perf_event_addr_filters(event); perf_event_alloc() local [all...] |
/kernel/linux/linux-6.6/kernel/events/ |
H A D | core.c | 3128 struct perf_addr_filters_head *ifh = perf_event_addr_filters(event); in perf_event_addr_filters_sync() local 3133 raw_spin_lock(&ifh->lock); in perf_event_addr_filters_sync() 3138 raw_spin_unlock(&ifh->lock); in perf_event_addr_filters_sync() 8017 struct perf_addr_filters_head *ifh = perf_event_addr_filters(event); in perf_event_addr_filters_exec() local 8025 raw_spin_lock_irqsave(&ifh->lock, flags); in perf_event_addr_filters_exec() 8026 list_for_each_entry(filter, &ifh->list, entry) { in perf_event_addr_filters_exec() 8038 raw_spin_unlock_irqrestore(&ifh->lock, flags); in perf_event_addr_filters_exec() 8840 struct perf_addr_filters_head *ifh = perf_event_addr_filters(event); in __perf_addr_filters_adjust() local 8852 raw_spin_lock_irqsave(&ifh->lock, flags); in __perf_addr_filters_adjust() 8853 list_for_each_entry(filter, &ifh in __perf_addr_filters_adjust() 10685 struct perf_addr_filters_head *ifh = perf_event_addr_filters(event); perf_event_addr_filters_apply() local 12048 struct perf_addr_filters_head *ifh = perf_event_addr_filters(event); perf_event_alloc() local [all...] |
/kernel/linux/linux-6.6/include/soc/mscc/ |
H A D | ocelot.h | 972 void ocelot_ifh_port_set(void *ifh, int port, u32 rew_op, u32 vlan_tag);
|