Home
last modified time | relevance | path

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

123

/drivers/gpio/
Dgpio-ep93xx.c96 int port_mask = BIT(offset); in ep93xx_gpio_int_debounce() local
99 gpio_int_debounce[port] |= port_mask; in ep93xx_gpio_int_debounce()
101 gpio_int_debounce[port] &= ~port_mask; in ep93xx_gpio_int_debounce()
158 int port_mask = BIT(d->irq & 7); in ep93xx_gpio_irq_ack() local
161 gpio_int_type2[port] ^= port_mask; /* switch edge direction */ in ep93xx_gpio_irq_ack()
165 writeb(port_mask, epg->base + eoi_register_offset[port]); in ep93xx_gpio_irq_ack()
173 int port_mask = BIT(d->irq & 7); in ep93xx_gpio_irq_mask_ack() local
176 gpio_int_type2[port] ^= port_mask; /* switch edge direction */ in ep93xx_gpio_irq_mask_ack()
178 gpio_int_unmasked[port] &= ~port_mask; in ep93xx_gpio_irq_mask_ack()
181 writeb(port_mask, epg->base + eoi_register_offset[port]); in ep93xx_gpio_irq_mask_ack()
[all …]
Dgpio-pcie-idio-24.c207 const unsigned long port_mask = GENMASK(gpio_reg_size - 1, 0); in idio_24_gpio_get_multiple() local
231 word_mask = mask[word_index] & (port_mask << word_offset); in idio_24_gpio_get_multiple()
301 const unsigned long port_mask = GENMASK(gpio_reg_size, 0); in idio_24_gpio_set_multiple() local
312 const unsigned long ttl_mask = (mask[ttl_i] >> word_offset) & port_mask; in idio_24_gpio_set_multiple()
321 gpio_mask = (*mask >> bits_offset) & port_mask; in idio_24_gpio_set_multiple()
Dgpio-104-idi-48.c95 const unsigned long port_mask = GENMASK(gpio_reg_size - 1, 0); in idi_48_gpio_get_multiple() local
113 word_mask = mask[word_index] & (port_mask << word_offset); in idi_48_gpio_get_multiple()
Dgpio-pci-idio-16.c109 const unsigned long port_mask = GENMASK(gpio_reg_size - 1, 0); in idio_16_gpio_get_multiple() local
131 word_mask = mask[word_index] & (port_mask << word_offset); in idio_16_gpio_get_multiple()
Dgpio-gpio-mm.c178 const unsigned long port_mask = GENMASK(gpio_reg_size - 1, 0); in gpiomm_gpio_get_multiple() local
196 word_mask = mask[word_index] & (port_mask << word_offset); in gpiomm_gpio_get_multiple()
/drivers/staging/comedi/drivers/
Dni_65xx.c303 unsigned int port_mask, port_rising, port_falling; in ni_65xx_update_edge_detection() local
309 port_mask = ~0U >> bitshift; in ni_65xx_update_edge_detection()
313 port_mask = ~0U << -bitshift; in ni_65xx_update_edge_detection()
317 if (port_mask & 0xff) { in ni_65xx_update_edge_detection()
318 if (~port_mask & 0xff) { in ni_65xx_update_edge_detection()
322 ~port_mask; in ni_65xx_update_edge_detection()
326 ~port_mask; in ni_65xx_update_edge_detection()
429 unsigned int port_mask, port_data, bits; in ni_65xx_dio_insn_bits() local
434 port_mask = data[0]; in ni_65xx_dio_insn_bits()
437 port_mask >>= bitshift; in ni_65xx_dio_insn_bits()
[all …]
/drivers/net/ethernet/ti/
Dcpsw_ale.c108 DEFINE_ALE_FIELD1(port_mask, 66)
243 int port_mask) in cpsw_ale_flush_mcast() argument
249 if ((mask & port_mask) == 0) in cpsw_ale_flush_mcast()
251 mask &= ~port_mask; in cpsw_ale_flush_mcast()
261 int cpsw_ale_flush_multicast(struct cpsw_ale *ale, int port_mask, int vid) in cpsw_ale_flush_multicast() argument
288 cpsw_ale_flush_mcast(ale, ale_entry, port_mask); in cpsw_ale_flush_multicast()
348 int cpsw_ale_add_mcast(struct cpsw_ale *ale, const u8 *addr, int port_mask, in cpsw_ale_add_mcast() argument
366 port_mask |= mask; in cpsw_ale_add_mcast()
367 cpsw_ale_set_port_mask(ale_entry, port_mask, in cpsw_ale_add_mcast()
381 int cpsw_ale_del_mcast(struct cpsw_ale *ale, const u8 *addr, int port_mask, in cpsw_ale_del_mcast() argument
[all …]
Dcpsw_ale.h99 int cpsw_ale_flush_multicast(struct cpsw_ale *ale, int port_mask, int vid);
104 int cpsw_ale_add_mcast(struct cpsw_ale *ale, const u8 *addr, int port_mask,
106 int cpsw_ale_del_mcast(struct cpsw_ale *ale, const u8 *addr, int port_mask,
/drivers/net/dsa/
Dqca8k.c296 fdb->port_mask = (reg[1] >> QCA8K_ATU_PORT_S) & QCA8K_ATU_PORT_M; in qca8k_fdb_read()
307 qca8k_fdb_write(struct qca8k_priv *priv, u16 vid, u8 port_mask, const u8 *mac, in qca8k_fdb_write() argument
318 reg[1] = (port_mask & QCA8K_ATU_PORT_M) << QCA8K_ATU_PORT_S; in qca8k_fdb_write()
367 qca8k_fdb_write(priv, fdb->vid, fdb->port_mask, fdb->mac, fdb->aging); in qca8k_fdb_next()
376 qca8k_fdb_add(struct qca8k_priv *priv, const u8 *mac, u16 port_mask, in qca8k_fdb_add() argument
382 qca8k_fdb_write(priv, vid, port_mask, mac, aging); in qca8k_fdb_add()
390 qca8k_fdb_del(struct qca8k_priv *priv, const u8 *mac, u16 port_mask, u16 vid) in qca8k_fdb_del() argument
395 qca8k_fdb_write(priv, vid, port_mask, mac, 0); in qca8k_fdb_del()
887 int port_mask = BIT(QCA8K_CPU_PORT); in qca8k_port_bridge_join() local
900 port_mask |= BIT(i); in qca8k_port_bridge_join()
[all …]
Dmt7530.c389 fdb->port_mask = (reg[2] >> PORT_MAP) & PORT_MAP_MASK; in mt7530_fdb_read()
401 u8 port_mask, const u8 *mac, in mt7530_fdb_write() argument
409 reg[2] |= (port_mask & PORT_MAP_MASK) << PORT_MAP; in mt7530_fdb_write()
952 u8 port_mask = BIT(port); in mt7530_port_fdb_add() local
955 mt7530_fdb_write(priv, vid, port_mask, addr, -1, STATIC_ENT); in mt7530_port_fdb_add()
968 u8 port_mask = BIT(port); in mt7530_port_fdb_del() local
971 mt7530_fdb_write(priv, vid, port_mask, addr, -1, STATIC_EMP); in mt7530_port_fdb_del()
997 if (_fdb.port_mask & BIT(port)) { in mt7530_port_fdb_dump()
/drivers/ata/
Dahci_brcm.c85 u32 port_mask; member
134 if (priv->port_mask & BIT(i)) in brcm_sata_alpm_init()
202 if (priv->port_mask & BIT(i)) in brcm_sata_phys_enable()
211 if (priv->port_mask & BIT(i)) in brcm_sata_phys_disable()
472 priv->port_mask = brcm_ahci_get_portmask(hpriv, priv); in brcm_ahci_probe()
473 if (!priv->port_mask) { in brcm_ahci_probe()
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()
/drivers/media/pci/solo6x10/
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()
/drivers/infiniband/ulp/opa_vnic/
Dopa_vnic_netdev.c142 u16 port_mask; in opa_vnic_process_vema_config() local
169 port_mask = info->vesw.def_port_mask; in opa_vnic_process_vema_config()
171 if (port_mask & 1) in opa_vnic_process_vema_config()
173 port_mask >>= 1; in opa_vnic_process_vema_config()
/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch_offloads_termtbl.c183 u32 port_mask, port_value; in mlx5_eswitch_offload_is_uplink_port() local
189 port_mask = MLX5_GET(fte_match_param, spec->match_criteria, in mlx5_eswitch_offload_is_uplink_port()
193 return (port_mask & port_value & 0xffff) == MLX5_VPORT_UPLINK; in mlx5_eswitch_offload_is_uplink_port()
/drivers/pinctrl/mediatek/
Dpinctrl-mtk-common.h185 u8 port_mask; member
253 unsigned char port_mask; member
Dpinctrl-mt8516.c325 .port_mask = 0xf,
328 .port_mask = 7,
Dpinctrl-mt8127.c293 .port_mask = 0xf,
296 .port_mask = 7,
Dpinctrl-mt6397.c34 .port_mask = 0x3,
Dpinctrl-mt8173.c333 .port_mask = 0xf,
336 .port_mask = 7,
Dmtk-eint.h36 u8 port_mask; member
Dpinctrl-mt2712.c577 .port_mask = 0xf,
580 .port_mask = 0xf,
Dpinctrl-mt2701.c524 .port_mask = 0x1f,
527 .port_mask = 6,
Dpinctrl-mt8135.c306 .port_mask = 0xf,
309 .port_mask = 7,
/drivers/net/dsa/microchip/
Dksz8795.c671 data |= (member & dev->port_mask); in ksz8795_cfg_port_member()
977 member = dev->port_mask; in ksz8795_port_setup()
1005 p->vid_member = dev->port_mask; in ksz8795_config_cpu_port()
1018 p->member = dev->port_mask; in ksz8795_config_cpu_port()
1248 dev->port_mask = BIT(dev->port_cnt) - 1; in ksz8795_switch_init()
1249 dev->port_mask |= dev->host_mask; in ksz8795_switch_init()

123