Home
last modified time | relevance | path

Searched refs:ifh (Results 1 – 18 of 18) sorted by relevance

/openbmc/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_packet.c35 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()
67 u32 ifh[IFH_LEN]; in sparx5_xtr_grp() local
72 ifh[i] = spx5_rd(sparx5, QS_XTR_RD(grp)); in sparx5_xtr_grp()
75 sparx5_ifh_parse(ifh, &fi); in sparx5_xtr_grp()
167 u32 *ifh, in sparx5_inject() argument
189 spx5_wr(ifh[w], sparx5, QS_INJ_WR(grp)); in sparx5_inject()
234 u32 ifh[IFH_LEN]; in sparx5_port_xmit_impl() local
237 memset(ifh, 0, IFH_LEN * 4); in sparx5_port_xmit_impl()
238 sparx5_set_port_ifh(ifh, port->portno); in sparx5_port_xmit_impl()
[all …]
H A Dsparx5_netdev.c17 #define ifh_encode_bitfield(ifh, value, pos, _width) \ argument
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 Dsparx5_fdma.c309 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()
H A Dsparx5_main.h313 void sparx5_ifh_parse(u32 *ifh, struct frame_info *info);
322 int sparx5_fdma_xmit(struct sparx5 *sparx5, u32 *ifh, struct sk_buff *skb);
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_main.c226 __be32 *ifh, in lan966x_port_ifh_xmit() argument
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, u64 qos) in lan966x_ifh_set_qos_class() argument
[all …]
H A Dlan966x_fdma.c714 __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, struct net_device *dev) in lan966x_fdma_xmit() argument
[all …]
H A Dlan966x_main.h487 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);
/openbmc/qemu/tests/qtest/
H A Dcdrom-test.c44 int ifh, ret = -1; in prepare_image() local
50 ifh = mkstemp(isoimagepath); in prepare_image()
51 if (ifh < 0) { in prepare_image()
88 close(ifh); in prepare_image()
/openbmc/u-boot/drivers/net/mscc_eswitch/
H A Docelot_switch.c406 u32 ifh[IFH_LEN]; in ocelot_send() local
421 ifh[0] = IFH_INJ_BYPASS; in ocelot_send()
422 ifh[1] = (0xf00 & port) >> 8; in ocelot_send()
423 ifh[2] = (0xff & port) << 24; in ocelot_send()
424 ifh[3] = (IFH_TAG_TYPE_C << 16); in ocelot_send()
427 ifh, IFH_LEN, buf, length); in ocelot_send()
H A Dmscc_xfer.c28 u32 *ifh, size_t ifh_len, u32 *buff, size_t buff_len) in mscc_send() argument
36 writel(ifh[i], regs + mscc_qs_offset[MSCC_QS_INJ_WR]); in mscc_send()
H A Dmscc_xfer.h17 u32 *ifh, size_t ifh_len, u32 *buff, size_t buff_len);
H A Dluton_switch.c586 u32 ifh[IFH_LEN]; in luton_send() local
590 ifh[0] = IFH_INJ_BYPASS | port; in luton_send()
591 ifh[1] = (IFH_TAG_TYPE_C << 16); in luton_send()
594 ifh, IFH_LEN, buf, length); in luton_send()
/openbmc/linux/net/dsa/
H A Dtag_ocelot.c12 __be32 ifh_prefix, void **ifh) in ocelot_xmit_common() argument
43 *ifh = injection; in ocelot_xmit_common()
/openbmc/linux/drivers/net/ethernet/mscc/
H A Docelot.c1024 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()
1253 void ocelot_ifh_set_basic(void *ifh, struct ocelot *ocelot, int port, in ocelot_ifh_set_basic() argument
1267 memset(ifh, 0, OCELOT_TAG_LEN); in ocelot_ifh_set_basic()
1268 ocelot_ifh_set_bypass(ifh, 1); in ocelot_ifh_set_basic()
1269 ocelot_ifh_set_src(ifh, ocelot->num_phys_ports); in ocelot_ifh_set_basic()
1270 ocelot_ifh_set_dest(ifh, BIT_ULL(port)); in ocelot_ifh_set_basic()
1271 ocelot_ifh_set_qos_class(ifh, qos_class); in ocelot_ifh_set_basic()
1272 ocelot_ifh_set_tag_type(ifh, tag_type); in ocelot_ifh_set_basic()
1273 ocelot_ifh_set_vlan_tci(ifh, vlan_tci); in ocelot_ifh_set_basic()
[all …]
H A Docelot_fdma.c645 void *ifh; in ocelot_fdma_prepare_skb() local
666 ifh = skb_push(skb, OCELOT_TAG_LEN); in ocelot_fdma_prepare_skb()
668 ocelot_ifh_set_basic(ifh, ocelot, port, rew_op, skb); in ocelot_fdma_prepare_skb()
/openbmc/linux/include/linux/
H A Dperf_event.h1667 struct perf_addr_filters_head *ifh = &event->addr_filters; in perf_event_addr_filters() local
1670 ifh = &event->parent->addr_filters; in perf_event_addr_filters()
1672 return ifh; in perf_event_addr_filters()
/openbmc/linux/kernel/events/
H A Dcore.c3129 struct perf_addr_filters_head *ifh = perf_event_addr_filters(event); in perf_event_addr_filters_sync() local
3134 raw_spin_lock(&ifh->lock); in perf_event_addr_filters_sync()
3139 raw_spin_unlock(&ifh->lock); in perf_event_addr_filters_sync()
8072 struct perf_addr_filters_head *ifh = perf_event_addr_filters(event); in perf_event_addr_filters_exec() local
8080 raw_spin_lock_irqsave(&ifh->lock, flags); in perf_event_addr_filters_exec()
8081 list_for_each_entry(filter, &ifh->list, entry) { in perf_event_addr_filters_exec()
8093 raw_spin_unlock_irqrestore(&ifh->lock, flags); in perf_event_addr_filters_exec()
8895 struct perf_addr_filters_head *ifh = perf_event_addr_filters(event); in __perf_addr_filters_adjust() local
8907 raw_spin_lock_irqsave(&ifh->lock, flags); in __perf_addr_filters_adjust()
8908 list_for_each_entry(filter, &ifh->list, entry) { in __perf_addr_filters_adjust()
[all …]
/openbmc/linux/include/soc/mscc/
H A Docelot.h979 void ocelot_ifh_set_basic(void *ifh, struct ocelot *ocelot, int port,