Home
last modified time | relevance | path

Searched refs:num_ifs (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/freescale/dpaa2/
Ddpsw.c12 static void build_if_id_bitmap(__le64 *bmap, const u16 *id, const u16 num_ifs) in build_if_id_bitmap() argument
16 for (i = 0; (i < num_ifs) && (i < DPSW_MAX_IF); i++) { in build_if_id_bitmap()
315 attr->num_ifs = le16_to_cpu(rsp_params->num_ifs); in dpsw_get_attributes()
726 build_if_id_bitmap(&cmd_params->if_id, cfg->if_id, cfg->num_ifs); in dpsw_vlan_add_if()
761 build_if_id_bitmap(&cmd_params->if_id, cfg->if_id, cfg->num_ifs); in dpsw_vlan_add_if_untagged()
792 build_if_id_bitmap(&cmd_params->if_id, cfg->if_id, cfg->num_ifs); in dpsw_vlan_remove_if()
825 build_if_id_bitmap(&cmd_params->if_id, cfg->if_id, cfg->num_ifs); in dpsw_vlan_remove_if_untagged()
1057 cmd_params->num_ifs = cpu_to_le16(cfg->num_ifs); in dpsw_fdb_add_multicast()
1059 build_if_id_bitmap(&cmd_params->if_id, cfg->if_id, cfg->num_ifs); in dpsw_fdb_add_multicast()
1096 cmd_params->num_ifs = cpu_to_le16(cfg->num_ifs); in dpsw_fdb_remove_multicast()
[all …]
Ddpsw.h160 u16 num_ifs; member
450 u16 num_ifs; member
529 u16 num_ifs; member
626 u16 num_ifs; member
656 u16 num_ifs; member
Ddpaa2-switch-flower.c414 mirror_port_enabled = (ethsw->mirror_port != ethsw->sw_attr.num_ifs); in dpaa2_switch_block_add_mirror()
426 for_each_set_bit(port, &block_ports, ethsw->sw_attr.num_ifs) { in dpaa2_switch_block_add_mirror()
454 for_each_set_bit(port, &ports_added, ethsw->sw_attr.num_ifs) { in dpaa2_switch_block_add_mirror()
460 ethsw->mirror_port = ethsw->sw_attr.num_ifs; in dpaa2_switch_block_add_mirror()
477 for_each_set_bit(port, &block_ports, ethsw->sw_attr.num_ifs) in dpaa2_switch_block_remove_mirror()
487 ethsw->mirror_port = ethsw->sw_attr.num_ifs; in dpaa2_switch_block_remove_mirror()
596 mirror_port_enabled = (ethsw->mirror_port != ethsw->sw_attr.num_ifs); in dpaa2_switch_cls_flower_replace_mirror()
749 mirror_port_enabled = (ethsw->mirror_port != ethsw->sw_attr.num_ifs); in dpaa2_switch_cls_matchall_replace_mirror()
Ddpsw-cmd.h121 __le16 num_ifs; member
202 __le16 num_ifs; member
394 __le16 num_ifs; member
488 __le16 num_ifs; member
Ddpaa2-switch.c37 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) in dpaa2_switch_fdb_get_unused()
48 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) in dpaa2_switch_filter_block_get_unused()
135 for (j = 0; j < ethsw->sw_attr.num_ifs; j++) { in dpaa2_switch_fdb_get_flood_cfg()
148 cfg->if_id[i++] = ethsw->sw_attr.num_ifs; in dpaa2_switch_fdb_get_flood_cfg()
152 cfg->num_ifs = i; in dpaa2_switch_fdb_get_flood_cfg()
299 vcfg.num_ifs = 1; in dpaa2_switch_port_add_vlan()
394 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) { in dpaa2_switch_dellink()
455 entry.num_ifs = 1; in dpaa2_switch_port_fdb_add_mc()
478 entry.num_ifs = 1; in dpaa2_switch_port_fdb_del_mc()
1202 acl_if_cfg.num_ifs = 1; in dpaa2_switch_port_acl_tbl_bind()
[all …]
Ddpaa2-switch.h200 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) in dpaa2_switch_get_index()
224 if (ethsw->sw_attr.max_fdbs < ethsw->sw_attr.num_ifs) { in dpaa2_switch_supports_cpu_traffic()