/linux/drivers/net/ethernet/ti/ |
H A D | cpsw_switchdev.c | 173 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() 192 ret = cpsw_ale_vlan_add_modify(cpsw->ale, vid, port_mask, untag_mask, in cpsw_port_vlan_add() 208 priv->ndev->name, vid, 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() [all …]
|
H A D | am65-cpsw-switchdev.c | 157 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() 176 ret = cpsw_ale_vlan_add_modify(cpsw->ale, vid, port_mask, untag_mask, in am65_cpsw_port_vlan_add() 192 port->ndev->name, vid, 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() [all …]
|
H A D | cpsw_ale.c | 254 DEFINE_ALE_FIELD1(port_mask, 66) 450 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() 468 int cpsw_ale_flush_multicast(struct cpsw_ale *ale, int port_mask, int vid) in cpsw_ale_flush_multicast() argument 495 cpsw_ale_flush_mcast(ale, ale_entry, port_mask); in cpsw_ale_flush_multicast() 555 int cpsw_ale_add_mcast(struct cpsw_ale *ale, const u8 *addr, int port_mask, in cpsw_ale_add_mcast() argument 573 port_mask |= mask; in cpsw_ale_add_mcast() 574 cpsw_ale_set_port_mask(ale_entry, port_mask, in cpsw_ale_add_mcast() 588 int cpsw_ale_del_mcast(struct cpsw_ale *ale, const u8 *addr, int port_mask, in cpsw_ale_del_mcast() argument [all …]
|
H A D | cpsw_ale.h | 164 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);
|
H A D | am65-cpsw-nuss.c | 303 u32 port_mask, unreg_mcast = 0; in am65_cpsw_nuss_ndo_slave_add_vid() local 316 port_mask = BIT(port->port_id) | ALE_PORT_HOST; in am65_cpsw_nuss_ndo_slave_add_vid() 318 unreg_mcast = port_mask; in am65_cpsw_nuss_ndo_slave_add_vid() 320 ret = cpsw_ale_vlan_add_modify(common->ale, vid, port_mask, in am65_cpsw_nuss_ndo_slave_add_vid() 321 unreg_mcast, port_mask, 0); in am65_cpsw_nuss_ndo_slave_add_vid() 379 u32 port_mask; in am65_cpsw_nuss_ndo_slave_set_rx_mode() local 392 port_mask = ALE_PORT_HOST; in am65_cpsw_nuss_ndo_slave_set_rx_mode() 394 cpsw_ale_flush_multicast(common->ale, port_mask, -1); in am65_cpsw_nuss_ndo_slave_set_rx_mode() 402 port_mask, 0, 0, 0); in am65_cpsw_nuss_ndo_slave_set_rx_mode() 724 u32 val, port_mask; in am65_cpsw_nuss_common_open() local [all …]
|
/linux/drivers/net/ethernet/ti/icssg/ |
H A D | icssg_switchdev.c | 235 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() 246 icssg_vtbl_modify(emac, vid, port_mask, untag_mask, true); in prueth_switchdev_vlan_add() 249 vid, port_mask, untag_mask, pvid); 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() 271 icssg_vtbl_modify(emac, vid, port_mask, 0, false); in prueth_switchdev_vlan_del() [all …]
|
H A D | icssg_prueth.c | 476 int port_mask = BIT(emac->port_id); in icssg_prueth_add_mcast() local 478 port_mask |= icssg_fdb_lookup(emac, addr, 0); in icssg_prueth_add_mcast() 479 icssg_fdb_add_del(emac, addr, 0, port_mask, true); in icssg_prueth_add_mcast() 480 icssg_vtbl_modify(emac, 0, port_mask, port_mask, true); in icssg_prueth_add_mcast() 488 int port_mask = BIT(emac->port_id); in icssg_prueth_del_mcast() local 491 other_port_mask = port_mask ^ icssg_fdb_lookup(emac, addr, 0); in icssg_prueth_del_mcast() 493 icssg_fdb_add_del(emac, addr, 0, port_mask, false); in icssg_prueth_del_mcast() 494 icssg_vtbl_modify(emac, 0, port_mask, port_mask, false); in icssg_prueth_del_mcast() 826 int port_mask; in emac_ndo_vlan_rx_add_vid() local 829 port_mask = BIT(PRUETH_PORT_HOST) | BIT(emac->port_id); in emac_ndo_vlan_rx_add_vid() [all …]
|
H A D | icssg_config.c | 730 void icssg_vtbl_modify(struct prueth_emac *emac, u8 vid, u8 port_mask, in icssg_vtbl_modify() argument 747 fid_c1 |= (port_mask | port_mask << 3); in icssg_vtbl_modify() 750 fid_c1 &= ~(port_mask | port_mask << 3); in icssg_vtbl_modify()
|
/linux/drivers/net/dsa/qca/ |
H A D | qca8k-common.c | 128 fdb->port_mask = FIELD_GET(QCA8K_ATU_PORT_MASK, reg[1]); in qca8k_fdb_read() 140 static void qca8k_fdb_write(struct qca8k_priv *priv, u16 vid, u8 port_mask, in qca8k_fdb_write() argument 150 reg[1] = FIELD_PREP(QCA8K_ATU_PORT_MASK, port_mask); in qca8k_fdb_write() 205 qca8k_fdb_write(priv, fdb->vid, fdb->port_mask, fdb->mac, fdb->aging); in qca8k_fdb_next() 214 u16 port_mask, u16 vid, u8 aging) in qca8k_fdb_add() argument 219 qca8k_fdb_write(priv, vid, port_mask, mac, aging); in qca8k_fdb_add() 227 u16 port_mask, u16 vid) in qca8k_fdb_del() argument 232 qca8k_fdb_write(priv, vid, port_mask, mac, 0); in qca8k_fdb_del() 246 static int qca8k_fdb_search_and_insert(struct qca8k_priv *priv, u8 port_mask, in qca8k_fdb_search_and_insert() argument 273 fdb.port_mask |= port_mask; in qca8k_fdb_search_and_insert() [all …]
|
/linux/drivers/comedi/drivers/ |
H A D | ni_65xx.c | 302 unsigned int port_mask, port_rising, port_falling; in ni_65xx_update_edge_detection() local 308 port_mask = ~0U >> bitshift; in ni_65xx_update_edge_detection() 312 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() 428 unsigned int port_mask, port_data, bits; in ni_65xx_dio_insn_bits() local 433 port_mask = data[0]; in ni_65xx_dio_insn_bits() 436 port_mask >>= bitshift; in ni_65xx_dio_insn_bits() [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_display_device.c | 258 .__runtime_defaults.port_mask = BIT(PORT_A) | BIT(PORT_B) | BIT(PORT_C), /* DVO A/B/C */ 267 .__runtime_defaults.port_mask = BIT(PORT_B) | BIT(PORT_C), /* DVO B/C */ 276 .__runtime_defaults.port_mask = BIT(PORT_B) | BIT(PORT_C), /* DVO B/C */ 286 .__runtime_defaults.port_mask = BIT(PORT_B) | BIT(PORT_C), /* DVO B/C */ 301 .__runtime_defaults.port_mask = BIT(PORT_B) | BIT(PORT_C) /* SDVO B/C */ 387 .__runtime_defaults.port_mask = BIT(PORT_B) | BIT(PORT_C), /* SDVO B/C */ 398 .__runtime_defaults.port_mask = BIT(PORT_B) | BIT(PORT_C), /* SDVO B/C */ 409 ….__runtime_defaults.port_mask = BIT(PORT_B) | BIT(PORT_C) | BIT(PORT_D), /* SDVO/HDMI/DP B/C, DP D… 420 ….__runtime_defaults.port_mask = BIT(PORT_B) | BIT(PORT_C) | BIT(PORT_D), /* SDVO/HDMI/DP B/C, DP D… 435 ….__runtime_defaults.port_mask = BIT(PORT_A) | BIT(PORT_B) | BIT(PORT_C) | BIT(PORT_D) /* DP A, SDV… [all …]
|
/linux/drivers/reset/ |
H A D | reset-rzg2l-usbphy-ctrl.c | 48 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/drivers/net/dsa/sja1105/ |
H A D | sja1105_vl.c | 330 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 D | sja1105_flower.c | 70 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/drivers/media/pci/solo6x10/ |
H A D | solo6x10-gpio.c | 20 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/drivers/ata/ |
H A D | ahci_brcm.c | 86 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() 507 priv->port_mask = brcm_ahci_get_portmask(hpriv, priv); in brcm_ahci_probe() 508 if (!priv->port_mask) { in brcm_ahci_probe()
|
H A D | pata_jmicron.c | 48 int port_mask = 1<< (4 * ap->port_no); in jmicron_pre_reset() local 54 if ((control & port_mask) == 0) in jmicron_pre_reset()
|
/linux/drivers/infiniband/ulp/opa_vnic/ |
H A D | opa_vnic_netdev.c | 141 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/drivers/pinctrl/mediatek/ |
H A D | pinctrl-mtk-common.h | 185 u8 port_mask; member 273 unsigned char port_mask; member
|
H A D | pinctrl-mt8167.c | 311 .port_mask = 0xf, 317 .port_mask = 7,
|
H A D | pinctrl-mt8516.c | 311 .port_mask = 0xf, 317 .port_mask = 7,
|
H A D | pinctrl-mt8127.c | 278 .port_mask = 0xf, 284 .port_mask = 7,
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | eswitch_offloads_termtbl.c | 200 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/drivers/soundwire/ |
H A D | qcom.c | 200 unsigned long port_mask; member 1143 unsigned long *port_mask; in qcom_swrm_stream_free_ports() local 1148 port_mask = &ctrl->port_mask; in qcom_swrm_stream_free_ports() 1150 clear_bit(p_rt->num, port_mask); in qcom_swrm_stream_free_ports() 1167 unsigned long *port_mask; in qcom_swrm_stream_alloc_ports() local 1193 port_mask = &ctrl->port_mask; in qcom_swrm_stream_alloc_ports() 1205 pn = find_first_zero_bit(port_mask, maxport); in qcom_swrm_stream_alloc_ports() 1212 set_bit(pn, port_mask); in qcom_swrm_stream_alloc_ports() 1395 set_bit(0, &ctrl->port_mask); in qcom_swrm_get_port_config()
|
/linux/include/uapi/linux/netfilter/ |
H A D | xt_HMARK.h | 43 union hmark_ports port_mask; member
|