| /linux/drivers/gpio/ |
| H A D | gpio-ep93xx.c | 80 int port_mask = BIT(offset); in ep93xx_gpio_int_debounce() local 83 eic->int_debounce |= port_mask; in ep93xx_gpio_int_debounce() 85 eic->int_debounce &= ~port_mask; in ep93xx_gpio_int_debounce() 131 int port_mask = BIT(irqd_to_hwirq(d)); in ep93xx_gpio_irq_ack() local 134 eic->int_type2 ^= port_mask; /* switch edge direction */ in ep93xx_gpio_irq_ack() 138 writeb(port_mask, eic->base + EP93XX_INT_EOI_OFFSET); in ep93xx_gpio_irq_ack() 146 int port_mask = BIT(hwirq); in ep93xx_gpio_irq_mask_ack() local 149 eic->int_type2 ^= port_mask; /* switch edge direction */ in ep93xx_gpio_irq_mask_ack() 151 eic->int_unmasked &= ~port_mask; in ep93xx_gpio_irq_mask_ack() 154 writeb(port_mask, eic->base + EP93XX_INT_EOI_OFFSET); in ep93xx_gpio_irq_mask_ack() [all …]
|
| /linux/drivers/net/ethernet/ti/ |
| 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_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 | cpsw_ale.c | 249 DEFINE_ALE_FIELD1(port_mask, 66) 445 int port_mask) in cpsw_ale_flush_mcast() argument 451 if ((mask & port_mask) == 0) in cpsw_ale_flush_mcast() 453 mask &= (~port_mask | ALE_PORT_HOST); in cpsw_ale_flush_mcast() 462 int cpsw_ale_flush_multicast(struct cpsw_ale *ale, int port_mask, int vid) in cpsw_ale_flush_multicast() argument 489 cpsw_ale_flush_mcast(ale, ale_entry, port_mask); in cpsw_ale_flush_multicast() 552 int cpsw_ale_add_mcast(struct cpsw_ale *ale, const u8 *addr, int port_mask, in cpsw_ale_add_mcast() argument 570 port_mask |= mask; in cpsw_ale_add_mcast() 571 cpsw_ale_set_port_mask(ale_entry, port_mask, in cpsw_ale_add_mcast() 586 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);
|
| /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 | 631 int port_mask; in icssg_prueth_add_mcast() local 638 port_mask = BIT(emac->port_id) | icssg_fdb_lookup(emac, addr, vlan_id); in icssg_prueth_add_mcast() 639 icssg_fdb_add_del(emac, addr, vlan_id, port_mask, true); in icssg_prueth_add_mcast() 640 icssg_vtbl_modify(emac, vlan_id, port_mask, port_mask, true); in icssg_prueth_add_mcast() 650 int port_mask; in icssg_prueth_del_mcast() local 657 port_mask = BIT(emac->port_id); in icssg_prueth_del_mcast() 658 other_port_mask = port_mask ^ icssg_fdb_lookup(emac, addr, vlan_id); in icssg_prueth_del_mcast() 660 icssg_fdb_add_del(emac, addr, vlan_id, port_mask, false); in icssg_prueth_del_mcast() 661 icssg_vtbl_modify(emac, vlan_id, port_mask, port_mask, false); in icssg_prueth_del_mcast() 1364 int port_mask = BIT(emac->port_id); in emac_ndo_vlan_rx_add_vid() local [all …]
|
| /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/reset/ |
| H A D | reset-rzg2l-usbphy-ctrl.c | 50 u32 port_mask = PHY_RESET_PORT1 | PHY_RESET_PORT2; in rzg2l_usbphy_ctrl_assert() local 58 if (port_mask == (val & port_mask)) in rzg2l_usbphy_ctrl_assert() 89 u32 port_mask; in rzg2l_usbphy_ctrl_status() local 91 port_mask = id ? PHY_RESET_PORT2 : PHY_RESET_PORT1; in rzg2l_usbphy_ctrl_status() 93 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() 701 rule->port_mask |= BIT(port); in sja1105_vl_gate() 719 rule->port_mask &= ~BIT(port); in sja1105_vl_gate() 720 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/net/dsa/ |
| H A D | tag_brcm.c | 95 u16 port_mask; in brcm_tag_xmit_ll() local 123 port_mask = dsa_xmit_port_mask(skb, dev); in brcm_tag_xmit_ll() 124 brcm_tag[2] = (port_mask >> 8) & BRCM_IG_DSTMAP2_MASK; in brcm_tag_xmit_ll() 125 brcm_tag[3] = port_mask & BRCM_IG_DSTMAP1_MASK; in brcm_tag_xmit_ll()
|
| /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() 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 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/net/ethernet/mucse/rnpgbe/ |
| H A D | rnpgbe_mbx_fw.h | 22 u8 port_mask; member 55 __le32 port_mask; member
|
| /linux/include/net/ |
| H A D | fib_rules.h | 154 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/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-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,
|
| H A D | pinctrl-mtk-common.h | 185 u8 port_mask; member 272 unsigned char port_mask; member
|
| /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/include/uapi/linux/netfilter/ |
| H A D | xt_HMARK.h | 43 union hmark_ports port_mask; member
|