Home
last modified time | relevance | path

Searched refs:port_mask (Results 1 – 25 of 114) sorted by relevance

12345

/linux-6.15/drivers/gpio/
H A Dgpio-ep93xx.c76 int port_mask = BIT(offset); in ep93xx_gpio_int_debounce() local
79 eic->int_debounce |= port_mask; in ep93xx_gpio_int_debounce()
142 int port_mask = BIT(hwirq); in ep93xx_gpio_irq_mask_ack() local
186 int port_mask = BIT(hwirq); in ep93xx_gpio_irq_type() local
193 eic->int_type1 |= port_mask; in ep93xx_gpio_irq_type()
194 eic->int_type2 |= port_mask; in ep93xx_gpio_irq_type()
198 eic->int_type1 |= port_mask; in ep93xx_gpio_irq_type()
199 eic->int_type2 &= ~port_mask; in ep93xx_gpio_irq_type()
203 eic->int_type1 &= ~port_mask; in ep93xx_gpio_irq_type()
204 eic->int_type2 |= port_mask; in ep93xx_gpio_irq_type()
[all …]
/linux-6.15/drivers/net/ethernet/ti/
H A Dcpsw_switchdev.c173 int port_mask; in cpsw_port_vlan_add() local
178 port_mask = BIT(HOST_PORT_NUM); in cpsw_port_vlan_add()
180 unreg_mcast_mask = port_mask; in cpsw_port_vlan_add()
182 port_mask = BIT(priv->emac_port); in cpsw_port_vlan_add()
187 reg_mcast_mask = port_mask; in cpsw_port_vlan_add()
190 untag_mask = port_mask; in cpsw_port_vlan_add()
217 int port_mask; in cpsw_port_vlan_del() local
221 port_mask = BIT(HOST_PORT_NUM); in cpsw_port_vlan_del()
243 port_mask, ALE_VLAN, vid); in cpsw_port_vlan_del()
270 int port_mask; in cpsw_port_mdb_add() local
[all …]
H A Dam65-cpsw-switchdev.c157 int port_mask; in am65_cpsw_port_vlan_add() local
162 port_mask = BIT(HOST_PORT_NUM); in am65_cpsw_port_vlan_add()
164 unreg_mcast_mask = port_mask; in am65_cpsw_port_vlan_add()
166 port_mask = BIT(port->port_id); in am65_cpsw_port_vlan_add()
171 reg_mcast_mask = port_mask; in am65_cpsw_port_vlan_add()
174 untag_mask = port_mask; in am65_cpsw_port_vlan_add()
202 int port_mask; in am65_cpsw_port_vlan_del() local
206 port_mask = BIT(HOST_PORT_NUM); in am65_cpsw_port_vlan_del()
208 port_mask = BIT(port->port_id); in am65_cpsw_port_vlan_del()
262 int port_mask; in am65_cpsw_port_mdb_add() local
[all …]
H A Dcpsw_ale.c450 int port_mask) in cpsw_ale_flush_mcast() argument
456 if ((mask & port_mask) == 0) in cpsw_ale_flush_mcast()
458 mask &= ~port_mask; in cpsw_ale_flush_mcast()
573 port_mask |= mask; in cpsw_ale_add_mcast()
601 if (port_mask) { in cpsw_ale_del_mcast()
604 mcast_members &= ~port_mask; in cpsw_ale_del_mcast()
687 u16 vid, int port_mask) in cpsw_ale_vlan_del_modify_int() argument
694 members &= ~port_mask; in cpsw_ale_vlan_del_modify_int()
761 members &= ~port_mask; in cpsw_ale_del_vlan()
763 if (!port_mask || !members) { in cpsw_ale_del_vlan()
[all …]
H A Dcpsw_ale.h164 int cpsw_ale_flush_multicast(struct cpsw_ale *ale, int port_mask, int vid);
169 int cpsw_ale_add_mcast(struct cpsw_ale *ale, const u8 *addr, int port_mask,
171 int cpsw_ale_del_mcast(struct cpsw_ale *ale, const u8 *addr, int port_mask,
192 int cpsw_ale_vlan_add_modify(struct cpsw_ale *ale, u16 vid, int port_mask,
194 int cpsw_ale_vlan_del_modify(struct cpsw_ale *ale, u16 vid, int port_mask);
/linux-6.15/drivers/net/ethernet/ti/icssg/
H A Dicssg_switchdev.c235 int port_mask; in prueth_switchdev_vlan_add() local
239 port_mask = BIT(PRUETH_PORT_HOST); in prueth_switchdev_vlan_add()
241 port_mask = BIT(emac->port_id); in prueth_switchdev_vlan_add()
244 untag_mask = port_mask; in prueth_switchdev_vlan_add()
263 int port_mask; in prueth_switchdev_vlan_del() local
267 port_mask = BIT(PRUETH_PORT_HOST); in prueth_switchdev_vlan_del()
269 port_mask = BIT(emac->port_id); in prueth_switchdev_vlan_del()
281 vid, port_mask); in prueth_switchdev_vlan_del()
321 u8 port_mask, fid_c2; in prueth_switchdev_mdb_add() local
328 port_mask = BIT(PRUETH_PORT_HOST); in prueth_switchdev_mdb_add()
[all …]
H A Dicssg_prueth.c593 int port_mask; in icssg_prueth_add_mcast() local
602 icssg_vtbl_modify(emac, vlan_id, port_mask, port_mask, true); in icssg_prueth_add_mcast()
612 int port_mask; in icssg_prueth_del_mcast() local
619 port_mask = BIT(emac->port_id); in icssg_prueth_del_mcast()
623 icssg_vtbl_modify(emac, vlan_id, port_mask, port_mask, false); in icssg_prueth_del_mcast()
1026 int port_mask = BIT(emac->port_id); in emac_ndo_vlan_rx_add_vid() local
1030 port_mask |= BIT(PRUETH_PORT_HOST); in emac_ndo_vlan_rx_add_vid()
1034 vid, port_mask, untag_mask); in emac_ndo_vlan_rx_add_vid()
1047 int port_mask = BIT(emac->port_id); in emac_ndo_vlan_rx_del_vid() local
1051 port_mask = BIT(PRUETH_PORT_HOST); in emac_ndo_vlan_rx_del_vid()
[all …]
/linux-6.15/drivers/net/dsa/qca/
H A Dqca8k-common.c214 u16 port_mask, u16 vid, u8 aging) in qca8k_fdb_add() argument
227 u16 port_mask, u16 vid) in qca8k_fdb_del() argument
273 fdb.port_mask |= port_mask; in qca8k_fdb_search_and_insert()
311 if (fdb.port_mask == port_mask) in qca8k_fdb_search_and_del()
315 fdb.port_mask &= ~port_mask; in qca8k_fdb_search_and_del()
616 u32 port_mask = BIT(dp->cpu_dp->index); in qca8k_update_port_member() local
635 port_mask |= BIT(i); in qca8k_update_port_member()
651 QCA8K_PORT_LOOKUP_MEMBER, port_mask); in qca8k_update_port_member()
815 u16 port_mask, u16 vid) in qca8k_port_fdb_insert() argument
830 u16 port_mask = BIT(port); in qca8k_port_fdb_add() local
[all …]
/linux-6.15/drivers/comedi/drivers/
H A Dni_65xx.c308 port_mask = ~0U >> bitshift; in ni_65xx_update_edge_detection()
316 if (port_mask & 0xff) { in ni_65xx_update_edge_detection()
317 if (~port_mask & 0xff) { in ni_65xx_update_edge_detection()
321 ~port_mask; in ni_65xx_update_edge_detection()
325 ~port_mask; in ni_65xx_update_edge_detection()
433 port_mask = data[0]; in ni_65xx_dio_insn_bits()
436 port_mask >>= bitshift; in ni_65xx_dio_insn_bits()
439 port_mask <<= -bitshift; in ni_65xx_dio_insn_bits()
442 port_mask &= 0xff; in ni_65xx_dio_insn_bits()
446 if (port_mask) { in ni_65xx_dio_insn_bits()
[all …]
/linux-6.15/drivers/reset/
H A Dreset-rzg2l-usbphy-ctrl.c48 u32 port_mask = PHY_RESET_PORT1 | PHY_RESET_PORT2; in rzg2l_usbphy_ctrl_assert() local
56 if (port_mask == (val & port_mask)) in rzg2l_usbphy_ctrl_assert()
87 u32 port_mask; in rzg2l_usbphy_ctrl_status() local
89 port_mask = id ? PHY_RESET_PORT2 : PHY_RESET_PORT1; in rzg2l_usbphy_ctrl_status()
91 return !!(readl(priv->base + RESET) & port_mask); in rzg2l_usbphy_ctrl_status()
/linux-6.15/drivers/gpu/drm/i915/display/
H A Dintel_display_device.c269 .__runtime_defaults.port_mask = BIT(PORT_B) | BIT(PORT_C), /* DVO B/C */
304 .__runtime_defaults.port_mask = BIT(PORT_B) | BIT(PORT_C) /* SDVO B/C */
1033 .__runtime_defaults.port_mask = BIT(PORT_A) | BIT(PORT_B) |
1050 .__runtime_defaults.port_mask = BIT(PORT_A) | BIT(PORT_B) |
1073 .__runtime_defaults.port_mask = BIT(PORT_A) | BIT(PORT_B) |
1112 .__runtime_defaults.port_mask = BIT(PORT_A) |
1170 .__runtime_defaults.port_mask = BIT(PORT_A) | BIT(PORT_B) |
1338 .__runtime_defaults.port_mask = BIT(PORT_A) | BIT(PORT_B) | \
1356 .__runtime_defaults.port_mask = BIT(PORT_A) |
1724 display_runtime->port_mask &= ~BIT(PORT_D); in __intel_display_device_info_runtime_init()
[all …]
/linux-6.15/drivers/net/dsa/sja1105/
H A Dsja1105_vl.c330 num_virtual_links += hweight_long(rule->port_mask); in sja1105_init_virtual_links()
402 for_each_set_bit(port, &rule->port_mask, SJA1105_MAX_NUM_PORTS) { in sja1105_init_virtual_links()
537 rule->port_mask |= BIT(port); in sja1105_vl_redirect()
545 rule->port_mask &= ~BIT(port); in sja1105_vl_redirect()
546 if (!rule->port_mask) { in sja1105_vl_redirect()
560 rule->port_mask &= ~BIT(port); in sja1105_vl_delete()
561 if (!rule->port_mask) { in sja1105_vl_delete()
702 rule->port_mask |= BIT(port); in sja1105_vl_gate()
720 rule->port_mask &= ~BIT(port); in sja1105_vl_gate()
721 if (!rule->port_mask) { in sja1105_vl_gate()
H A Dsja1105_flower.c70 rule->port_mask |= BIT(port); in sja1105_setup_bcast_policer()
75 for_each_set_bit(p, &rule->port_mask, SJA1105_MAX_NUM_PORTS) { in sja1105_setup_bcast_policer()
142 rule->port_mask |= BIT(port); in sja1105_setup_tc_policer()
147 for_each_set_bit(p, &rule->port_mask, SJA1105_MAX_NUM_PORTS) { in sja1105_setup_tc_policer()
492 rule->port_mask &= ~BIT(port); in sja1105_cls_flower_del()
493 if (!rule->port_mask) { in sja1105_cls_flower_del()
/linux-6.15/drivers/media/pci/solo6x10/
H A Dsolo6x10-gpio.c20 unsigned int port_mask, unsigned int mode) in solo_gpio_mode() argument
29 if (!((1 << port) & port_mask)) in solo_gpio_mode()
42 if (!((1UL << (port + 16)) & port_mask)) in solo_gpio_mode()
/linux-6.15/drivers/ata/
H A Dahci_brcm.c86 u32 port_mask; member
136 if (priv->port_mask & BIT(i)) in brcm_sata_alpm_init()
204 if (priv->port_mask & BIT(i)) in brcm_sata_phys_enable()
213 if (priv->port_mask & BIT(i)) in brcm_sata_phys_disable()
510 priv->port_mask = brcm_ahci_get_portmask(hpriv, priv); in brcm_ahci_probe()
511 if (!priv->port_mask) { in brcm_ahci_probe()
H A Dpata_jmicron.c48 int port_mask = 1<< (4 * ap->port_no); in jmicron_pre_reset() local
54 if ((control & port_mask) == 0) in jmicron_pre_reset()
/linux-6.15/include/net/
H A Dfib_rules.h154 u16 port_mask, __be16 port) in fib_rule_port_match() argument
156 if ((range->start ^ ntohs(port)) & port_mask) in fib_rule_port_match()
158 if (!port_mask && fib_rule_port_range_set(range) && in fib_rule_port_match()
/linux-6.15/drivers/infiniband/ulp/opa_vnic/
H A Dopa_vnic_netdev.c141 u16 port_mask; in opa_vnic_process_vema_config() local
168 port_mask = info->vesw.def_port_mask; in opa_vnic_process_vema_config()
170 if (port_mask & 1) in opa_vnic_process_vema_config()
172 port_mask >>= 1; in opa_vnic_process_vema_config()
/linux-6.15/drivers/pinctrl/mediatek/
H A Dpinctrl-mt8167.c311 .port_mask = 0xf,
317 .port_mask = 7,
H A Dpinctrl-mt8127.c278 .port_mask = 0xf,
284 .port_mask = 7,
H A Dpinctrl-mt8516.c311 .port_mask = 0xf,
317 .port_mask = 7,
H A Dpinctrl-mtk-common.h185 u8 port_mask; member
273 unsigned char port_mask; member
/linux-6.15/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_vcap_impl.c296 u32 port_mask; in sparx5_vcap_add_ingress_range_port_mask() local
301 port_mask = ~BIT(port->portno % BITS_PER_TYPE(u32)); in sparx5_vcap_add_ingress_range_port_mask()
304 vcap_rule_add_key_u32(rule, VCAP_KF_IF_IGR_PORT_MASK, 0, port_mask); in sparx5_vcap_add_ingress_range_port_mask()
312 struct vcap_u72_key port_mask; in sparx5_vcap_add_wide_port_mask() local
316 memset(port_mask.value, 0, sizeof(port_mask.value)); in sparx5_vcap_add_wide_port_mask()
317 memset(port_mask.mask, 0xff, sizeof(port_mask.mask)); in sparx5_vcap_add_wide_port_mask()
319 port_mask.mask[range] = ~BIT(port->portno % BITS_PER_BYTE); in sparx5_vcap_add_wide_port_mask()
320 vcap_rule_add_key_u72(rule, VCAP_KF_IF_IGR_PORT_MASK, &port_mask); in sparx5_vcap_add_wide_port_mask()
327 u32 port_mask; in sparx5_vcap_add_egress_range_port_mask() local
339 port_mask = ~BIT(port->portno % BITS_PER_TYPE(u32)); in sparx5_vcap_add_egress_range_port_mask()
[all …]
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch_offloads_termtbl.c200 u16 port_mask, port_value; in mlx5_eswitch_offload_is_uplink_port() local
206 port_mask = MLX5_GET(fte_match_param, spec->match_criteria, in mlx5_eswitch_offload_is_uplink_port()
210 return (port_mask & port_value) == MLX5_VPORT_UPLINK; in mlx5_eswitch_offload_is_uplink_port()
/linux-6.15/include/uapi/linux/netfilter/
H A Dxt_HMARK.h43 union hmark_ports port_mask; member

12345