Home
last modified time | relevance | path

Searched refs:tc_index (Results 1 – 25 of 38) sorted by relevance

12

/Linux-v5.15/drivers/net/ethernet/mscc/
Docelot_devlink.c645 unsigned int sb_index, u16 tc_index, in ocelot_sb_tc_pool_bind_get() argument
654 wm_index = BUF_Q_RSRV_I(port, tc_index); in ocelot_sb_tc_pool_bind_get()
656 wm_index = BUF_Q_RSRV_E(port, tc_index); in ocelot_sb_tc_pool_bind_get()
660 wm_index = REF_Q_RSRV_I(port, tc_index); in ocelot_sb_tc_pool_bind_get()
662 wm_index = REF_Q_RSRV_E(port, tc_index); in ocelot_sb_tc_pool_bind_get()
682 unsigned int sb_index, u16 tc_index, in ocelot_sb_tc_pool_bind_set() argument
701 wm_index = BUF_Q_RSRV_I(port, tc_index); in ocelot_sb_tc_pool_bind_set()
703 wm_index = BUF_Q_RSRV_E(port, tc_index); in ocelot_sb_tc_pool_bind_set()
707 wm_index = REF_Q_RSRV_I(port, tc_index); in ocelot_sb_tc_pool_bind_set()
709 wm_index = REF_Q_RSRV_E(port, tc_index); in ocelot_sb_tc_pool_bind_set()
[all …]
Docelot_net.c78 unsigned int sb_index, u16 tc_index, in ocelot_devlink_sb_tc_pool_bind_get() argument
85 return ocelot_sb_tc_pool_bind_get(ocelot, port, sb_index, tc_index, in ocelot_devlink_sb_tc_pool_bind_get()
92 unsigned int sb_index, u16 tc_index, in ocelot_devlink_sb_tc_pool_bind_set() argument
100 return ocelot_sb_tc_pool_bind_set(ocelot, port, sb_index, tc_index, in ocelot_devlink_sb_tc_pool_bind_set()
135 unsigned int sb_index, u16 tc_index, in ocelot_devlink_sb_occ_tc_port_bind_get() argument
143 tc_index, pool_type, in ocelot_devlink_sb_occ_tc_port_bind_get()
/Linux-v5.15/net/sched/
Dact_meta_skbtcindex.c24 u32 ifetc_index = skb->tc_index; in skbtcindex_encode()
33 skb->tc_index = ntohs(ifetc_index); in skbtcindex_decode()
39 return ife_check_meta_u16(skb->tc_index, e); in skbtcindex_check()
Dsch_dsmark.c221 skb->tc_index = ipv4_get_dsfield(ip_hdr(skb)) in dsmark_enqueue()
231 skb->tc_index = ipv6_get_dsfield(ipv6_hdr(skb)) in dsmark_enqueue()
235 skb->tc_index = 0; in dsmark_enqueue()
241 skb->tc_index = TC_H_MIN(skb->priority); in dsmark_enqueue()
261 skb->tc_index = TC_H_MIN(res.classid); in dsmark_enqueue()
266 skb->tc_index = p->default_index; in dsmark_enqueue()
304 index = skb->tc_index & (p->indices - 1); in dsmark_dequeue()
305 pr_debug("index %d->%d\n", skb->tc_index, index); in dsmark_dequeue()
Dsch_gred.c124 return skb->tc_index & GRED_VQ_MASK; in tc_index_to_dp()
190 skb->tc_index = (skb->tc_index & ~GRED_VQ_MASK) | dp; in gred_enqueue()
/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/
Dskb_ctx.c59 skb.tc_index = 1; in test_skb_ctx()
62 skb.tc_index = 0; in test_skb_ctx()
/Linux-v5.15/tools/testing/selftests/bpf/progs/
Dtest_global_func7.c10 skb->tc_index = 0; in foo()
Dtest_verif_scale1.c24 ctx->tc_index = jhash(ptr, nh_off, ctx->cb[0] + i++); \ in balancer_ingress()
Dtest_verif_scale2.c24 ctx->tc_index = jhash(ptr, nh_off, ctx->cb[0] + i++); \ in balancer_ingress()
Dtest_verif_scale3.c24 ctx->tc_index = jhash(ptr, nh_off, ctx->cb[0] + i++); \ in balancer_ingress()
/Linux-v5.15/drivers/scsi/aic94xx/
Daic94xx_hwi.h133 int tc_index; member
277 ascb->tc_index = -1; in asd_init_ascb()
327 asd_tc_index_release(&ascb->ha->seq, ascb->tc_index); in asd_ascb_free()
Daic94xx_tmf.c239 scb->clear_nexus.index = cpu_to_le16(tascb->tc_index); in asd_clear_nexus_index()
452 scb->abort_task.index = cpu_to_le16((u16)tascb->tc_index); in asd_abort_task()
690 index = ascb->tc_index; in asd_query_task()
Daic94xx_hwi.c1052 ascb->tc_index = asd_tc_index_get(seq, ascb); in asd_ascb_alloc()
1054 if (ascb->tc_index == -1) in asd_ascb_alloc()
1057 ascb->scb->header.index = cpu_to_le16((u16)ascb->tc_index); in asd_ascb_alloc()
/Linux-v5.15/tools/testing/selftests/bpf/verifier/
Dctx_skb.c298 offsetof(struct __sk_buff, tc_index)),
384 offsetof(struct __sk_buff, tc_index)),
495 offsetof(struct __sk_buff, tc_index) + 3),
639 offsetof(struct __sk_buff, tc_index) + 2),
914 offsetof(struct __sk_buff, tc_index)),
934 offsetof(struct __sk_buff, tc_index)),
936 offsetof(struct __sk_buff, tc_index)),
Dcgroup_skb.c48 offsetof(struct __sk_buff, tc_index)),
/Linux-v5.15/drivers/net/ethernet/mellanox/mlxsw/
Dcore.h341 unsigned int sb_index, u16 tc_index,
345 unsigned int sb_index, u16 tc_index,
357 unsigned int sb_index, u16 tc_index,
Dspectrum_buffers.c1454 unsigned int sb_index, u16 tc_index, in mlxsw_sp_sb_tc_pool_bind_get() argument
1462 u8 pg_buff = tc_index; in mlxsw_sp_sb_tc_pool_bind_get()
1474 unsigned int sb_index, u16 tc_index, in mlxsw_sp_sb_tc_pool_bind_set() argument
1484 u8 pg_buff = tc_index; in mlxsw_sp_sb_tc_pool_bind_set()
1500 cm = &mlxsw_sp->sb_vals->cms_ingress[tc_index]; in mlxsw_sp_sb_tc_pool_bind_set()
1502 cm = &mlxsw_sp->sb_vals->cms_egress[tc_index]; in mlxsw_sp_sb_tc_pool_bind_set()
1728 unsigned int sb_index, u16 tc_index, in mlxsw_sp_sb_occ_tc_port_bind_get() argument
1736 u8 pg_buff = tc_index; in mlxsw_sp_sb_occ_tc_port_bind_get()
Dcore.c1328 unsigned int sb_index, u16 tc_index, in mlxsw_devlink_sb_tc_pool_bind_get() argument
1340 tc_index, pool_type, in mlxsw_devlink_sb_tc_pool_bind_get()
1346 unsigned int sb_index, u16 tc_index, in mlxsw_devlink_sb_tc_pool_bind_set() argument
1359 tc_index, pool_type, in mlxsw_devlink_sb_tc_pool_bind_set()
1403 unsigned int sb_index, u16 tc_index, in mlxsw_devlink_sb_occ_tc_port_bind_get() argument
1415 sb_index, tc_index, in mlxsw_devlink_sb_occ_tc_port_bind_get()
/Linux-v5.15/net/dsa/
Ddsa2.c698 unsigned int sb_index, u16 tc_index, in dsa_devlink_sb_tc_pool_bind_get() argument
709 tc_index, pool_type, in dsa_devlink_sb_tc_pool_bind_get()
715 unsigned int sb_index, u16 tc_index, in dsa_devlink_sb_tc_pool_bind_set() argument
727 tc_index, pool_type, in dsa_devlink_sb_tc_pool_bind_set()
771 unsigned int sb_index, u16 tc_index, in dsa_devlink_sb_occ_tc_port_bind_get() argument
782 sb_index, tc_index, in dsa_devlink_sb_occ_tc_port_bind_get()
/Linux-v5.15/drivers/net/dsa/ocelot/
Dfelix.c1539 unsigned int sb_index, u16 tc_index, in felix_sb_tc_pool_bind_get() argument
1545 return ocelot_sb_tc_pool_bind_get(ocelot, port, sb_index, tc_index, in felix_sb_tc_pool_bind_get()
1551 unsigned int sb_index, u16 tc_index, in felix_sb_tc_pool_bind_set() argument
1558 return ocelot_sb_tc_pool_bind_set(ocelot, port, sb_index, tc_index, in felix_sb_tc_pool_bind_set()
1590 unsigned int sb_index, u16 tc_index, in felix_sb_occ_tc_port_bind_get() argument
1596 return ocelot_sb_occ_tc_port_bind_get(ocelot, port, sb_index, tc_index, in felix_sb_occ_tc_port_bind_get()
/Linux-v5.15/include/soc/mscc/
Docelot.h830 unsigned int sb_index, u16 tc_index,
834 unsigned int sb_index, u16 tc_index,
844 unsigned int sb_index, u16 tc_index,
/Linux-v5.15/drivers/net/wireguard/
Dqueueing.h96 skb->tc_index = 0; in wg_reset_packet()
/Linux-v5.15/include/net/
Ddsa.h842 unsigned int sb_index, u16 tc_index,
846 unsigned int sb_index, u16 tc_index,
858 unsigned int sb_index, u16 tc_index,
Ddevlink.h1264 u16 tc_index,
1269 u16 tc_index,
1282 u16 tc_index,
/Linux-v5.15/net/core/
Ddevlink.c2382 struct devlink_sb *devlink_sb, u16 tc_index, in devlink_nl_sb_tc_pool_bind_fill() argument
2394 tc_index, pool_type, in devlink_nl_sb_tc_pool_bind_fill()
2409 if (nla_put_u16(msg, DEVLINK_ATTR_SB_TC_INDEX, tc_index)) in devlink_nl_sb_tc_pool_bind_fill()
2424 tc_index, pool_type, in devlink_nl_sb_tc_pool_bind_fill()
2452 u16 tc_index; in devlink_nl_cmd_sb_tc_pool_bind_get_doit() local
2464 pool_type, &tc_index); in devlink_nl_cmd_sb_tc_pool_bind_get_doit()
2476 devlink_sb, tc_index, pool_type, in devlink_nl_cmd_sb_tc_pool_bind_get_doit()
2495 u16 tc_index; in __sb_tc_pool_bind_get_dumpit() local
2499 for (tc_index = 0; in __sb_tc_pool_bind_get_dumpit()
2500 tc_index < devlink_sb->ingress_tc_count; tc_index++) { in __sb_tc_pool_bind_get_dumpit()
[all …]

12