Home
last modified time | relevance | path

Searched refs:ale (Results 1 – 20 of 20) sorted by relevance

/drivers/net/ethernet/ti/
Dcpsw_ale.c229 static int cpsw_ale_entry_get_fld(struct cpsw_ale *ale, in cpsw_ale_entry_get_fld() argument
237 if (!ale || !ale_entry) in cpsw_ale_entry_get_fld()
242 dev_err(ale->params.dev, "get: wrong ale fld id %d\n", fld_id); in cpsw_ale_entry_get_fld()
248 bits = ale->port_mask_bits; in cpsw_ale_entry_get_fld()
253 static void cpsw_ale_entry_set_fld(struct cpsw_ale *ale, in cpsw_ale_entry_set_fld() argument
262 if (!ale || !ale_entry) in cpsw_ale_entry_set_fld()
267 dev_err(ale->params.dev, "set: wrong ale fld id %d\n", fld_id); in cpsw_ale_entry_set_fld()
273 bits = ale->port_mask_bits; in cpsw_ale_entry_set_fld()
278 static int cpsw_ale_vlan_get_fld(struct cpsw_ale *ale, in cpsw_ale_vlan_get_fld() argument
282 return cpsw_ale_entry_get_fld(ale, ale_entry, in cpsw_ale_vlan_get_fld()
[all …]
Dcpsw_ale.h107 void cpsw_ale_start(struct cpsw_ale *ale);
108 void cpsw_ale_stop(struct cpsw_ale *ale);
110 int cpsw_ale_flush_multicast(struct cpsw_ale *ale, int port_mask, int vid);
111 int cpsw_ale_add_ucast(struct cpsw_ale *ale, const u8 *addr, int port,
113 int cpsw_ale_del_ucast(struct cpsw_ale *ale, const u8 *addr, int port,
115 int cpsw_ale_add_mcast(struct cpsw_ale *ale, const u8 *addr, int port_mask,
117 int cpsw_ale_del_mcast(struct cpsw_ale *ale, const u8 *addr, int port_mask,
119 int cpsw_ale_add_vlan(struct cpsw_ale *ale, u16 vid, int port, int untag,
121 int cpsw_ale_del_vlan(struct cpsw_ale *ale, u16 vid, int port);
122 void cpsw_ale_set_allmulti(struct cpsw_ale *ale, int allmulti, int port);
[all …]
Dcpsw_new.c102 cpsw_ale_control_set(cpsw->ale, HOST_PORT_NUM, in cpsw_set_promiscious()
108 cpsw_ale_control_set(cpsw->ale, HOST_PORT_NUM, in cpsw_set_promiscious()
137 ret = cpsw_ale_add_mcast(cpsw->ale, addr, mask, flags, vid, 0); in cpsw_set_mc()
139 ret = cpsw_ale_del_mcast(cpsw->ale, addr, 0, flags, vid); in cpsw_set_mc()
257 cpsw_ale_set_allmulti(cpsw->ale, IFF_ALLMULTI, priv->emac_port); in cpsw_ndo_set_rx_mode()
265 cpsw_ale_set_allmulti(cpsw->ale, in cpsw_ndo_set_rx_mode()
420 ret = cpsw_ale_add_vlan(cpsw->ale, vid, port_mask, 0, port_mask, in cpsw_add_vlan_ale_entry()
425 ret = cpsw_ale_add_ucast(cpsw->ale, priv->mac_addr, in cpsw_add_vlan_ale_entry()
430 ret = cpsw_ale_add_mcast(cpsw->ale, priv->ndev->broadcast, in cpsw_add_vlan_ale_entry()
437 cpsw_ale_del_ucast(cpsw->ale, priv->mac_addr, in cpsw_add_vlan_ale_entry()
[all …]
Dcpsw.c97 struct cpsw_ale *ale = cpsw->ale; in cpsw_set_promiscious() local
118 cpsw_ale_control_set(ale, 0, ALE_BYPASS, 1); in cpsw_set_promiscious()
123 cpsw_ale_control_set(ale, 0, ALE_BYPASS, 0); in cpsw_set_promiscious()
132 cpsw_ale_control_set(ale, i, in cpsw_set_promiscious()
134 cpsw_ale_control_set(ale, i, in cpsw_set_promiscious()
139 cpsw_ale_control_set(ale, 0, ALE_AGEOUT, 1); in cpsw_set_promiscious()
142 if (cpsw_ale_control_get(ale, 0, ALE_AGEOUT)) in cpsw_set_promiscious()
145 cpsw_ale_control_set(ale, 0, ALE_AGEOUT, 1); in cpsw_set_promiscious()
148 cpsw_ale_flush_multicast(ale, ALE_ALL_PORTS, -1); in cpsw_set_promiscious()
152 cpsw_ale_control_set(ale, 0, ALE_P0_UNI_FLOOD, 1); in cpsw_set_promiscious()
[all …]
Dcpsw_switchdev.c55 ret = cpsw_ale_control_set(cpsw->ale, priv->emac_port, in cpsw_port_stp_state_set()
78 cpsw_ale_set_unreg_mcast(cpsw->ale, BIT(priv->emac_port), in cpsw_port_attr_br_flags_set()
197 ret = cpsw_ale_vlan_add_modify(cpsw->ale, vid, port_mask, untag_mask, in cpsw_port_vlan_add()
205 cpsw_ale_add_ucast(cpsw->ale, priv->mac_addr, in cpsw_port_vlan_add()
230 ret = cpsw_ale_del_vlan(cpsw->ale, vid, port_mask); in cpsw_port_vlan_del()
238 cpsw_ale_del_ucast(cpsw->ale, priv->mac_addr, in cpsw_port_vlan_del()
247 cpsw_ale_del_mcast(cpsw->ale, priv->ndev->broadcast, in cpsw_port_vlan_del()
322 err = cpsw_ale_add_mcast(cpsw->ale, mdb->addr, port_mask, in cpsw_port_mdb_add()
345 err = cpsw_ale_del_mcast(cpsw->ale, mdb->addr, del_mask, in cpsw_port_mdb_del()
444 cpsw_ale_add_ucast(cpsw->ale, (u8 *)fdb->addr, port, in cpsw_switchdev_event_work()
[all …]
Dam65-cpsw-nuss.c195 cpsw_ale_control_set(common->ale, port->port_id, in am65_cpsw_nuss_adjust_link()
204 cpsw_ale_control_set(common->ale, port->port_id, in am65_cpsw_nuss_adjust_link()
244 ret = cpsw_ale_add_vlan(common->ale, vid, port_mask, in am65_cpsw_nuss_ndo_slave_add_vid()
267 ret = cpsw_ale_del_vlan(common->ale, vid, 0); in am65_cpsw_nuss_ndo_slave_kill_vid()
280 cpsw_ale_control_set(common->ale, port->port_id, in am65_cpsw_slave_set_promisc_2g()
285 cpsw_ale_control_set(common->ale, port->port_id, in am65_cpsw_slave_set_promisc_2g()
305 cpsw_ale_set_allmulti(common->ale, in am65_cpsw_nuss_ndo_slave_set_rx_mode()
310 cpsw_ale_flush_multicast(common->ale, port_mask, -1); in am65_cpsw_nuss_ndo_slave_set_rx_mode()
317 cpsw_ale_add_mcast(common->ale, ha->addr, in am65_cpsw_nuss_ndo_slave_set_rx_mode()
446 cpsw_ale_start(common->ale); in am65_cpsw_nuss_common_open()
[all …]
Dnetcp_ethss.c738 struct cpsw_ale *ale; member
2094 cpsw_ale_control_set(gbe_dev->ale, slave->port_num, in netcp_ethss_link_state_action()
2106 cpsw_ale_control_set(gbe_dev->ale, slave->port_num, in netcp_ethss_link_state_action()
2262 cpsw_ale_control_set(gbe_dev->ale, slave->port_num, in gbe_slave_stop()
2264 cpsw_ale_del_mcast(gbe_dev->ale, intf->ndev->broadcast, in gbe_slave_stop()
2310 cpsw_ale_control_set(priv->ale, slave->port_num, in gbe_slave_open()
2312 cpsw_ale_add_mcast(priv->ale, gbe_intf->ndev->broadcast, in gbe_slave_open()
2373 cpsw_ale_start(priv->ale); in gbe_init_host_port()
2378 cpsw_ale_control_set(priv->ale, 0, ALE_BYPASS, bypass_en); in gbe_init_host_port()
2380 cpsw_ale_control_set(priv->ale, 0, ALE_NO_PORT_VLAN, 1); in gbe_init_host_port()
[all …]
Dam65-cpsw-nuss.h96 struct cpsw_ale *ale; member
Dam65-cpsw-ethtool.c577 ale_entries = cpsw_ale_get_num_entries(common->ale); in am65_cpsw_get_regs_len()
600 ale_entries = cpsw_ale_get_num_entries(common->ale); in am65_cpsw_get_regs()
612 cpsw_ale_dump(common->ale, &reg[pos]); in am65_cpsw_get_regs()
Dcpsw_priv.c255 if (!cpsw_ale_get_vlan_p0_untag(cpsw->ale, vid)) { in cpsw_rx_vlan_encap()
506 cpsw->ale = cpsw_ale_create(&ale_params); in cpsw_init_common()
507 if (IS_ERR(cpsw->ale)) { in cpsw_init_common()
509 return PTR_ERR(cpsw->ale); in cpsw_init_common()
Dcpsw_ethtool.c342 return cpsw_ale_get_num_entries(cpsw->ale) * in cpsw_get_regs_len()
354 cpsw_ale_dump(cpsw->ale, reg); in cpsw_get_regs()
Dcpsw_priv.h347 struct cpsw_ale *ale; member
/drivers/isdn/hardware/mISDN/
DmISDNinfineon.c723 hw->isac.a.io.ale = (u32)hw->cfg.start + DIVA_ISAC_ALE; in setup_io()
726 hw->hscx.a.io.ale = (u32)hw->cfg.start + DIVA_HSCX_ALE; in setup_io()
749 hw->isac.a.io.ale = (u32)hw->cfg.start + TIGER_IPAC_ALE; in setup_io()
752 hw->hscx.a.io.ale = (u32)hw->cfg.start + TIGER_IPAC_ALE; in setup_io()
764 hw->isac.a.io.ale = (u32)hw->addr.start; in setup_io()
767 hw->hscx.a.io.ale = (u32)hw->addr.start; in setup_io()
774 hw->isac.a.io.ale = (u32)hw->addr.start + NICCY_ISAC_ALE; in setup_io()
777 hw->hscx.a.io.ale = (u32)hw->addr.start + NICCY_HSCX_ALE; in setup_io()
783 hw->isac.a.io.ale = (u32)hw->addr.start; in setup_io()
784 hw->isac.a.io.port = hw->isac.a.io.ale + 4; in setup_io()
[all …]
Diohelper.h22 u32 ale; member
46 outb(off, hw->ap.ale); \
51 outb(off, hw->ap.ale); \
56 outb(off, hw->ap.ale); \
61 outb(off, hw->ap.ale); \
Dspeedfax.c327 sf->p_isac.ale = sf->cfg + SFAX_PCI_ADDR; in setup_speedfax()
329 sf->p_isar.ale = sf->cfg + SFAX_PCI_ADDR; in setup_speedfax()
/drivers/bus/
Dts-nbus.c37 struct gpio_desc *ale; member
73 ts_nbus->ale = devm_gpiod_get(&pdev->dev, "ts,ale", GPIOD_OUT_HIGH); in ts_nbus_init_pdata()
74 if (IS_ERR(ts_nbus->ale)) { in ts_nbus_init_pdata()
76 return PTR_ERR(ts_nbus->ale); in ts_nbus_init_pdata()
121 gpiod_set_value_cansleep(ts_nbus->ale, 0); in ts_nbus_reset_bus()
189 gpiod_set_value_cansleep(ts_nbus->ale, 1); in ts_nbus_write_bus()
/drivers/mtd/nand/raw/
Dgpio.c38 struct gpio_desc *ale; member
93 gpiod_set_value(gpiomtd->ale, 1); in gpio_nand_exec_instr()
98 gpiod_set_value(gpiomtd->ale, 0); in gpio_nand_exec_instr()
333 gpiomtd->ale = devm_gpiod_get(dev, "ale", GPIOD_OUT_LOW); in gpio_nand_probe()
334 if (IS_ERR(gpiomtd->ale)) { in gpio_nand_probe()
335 ret = PTR_ERR(gpiomtd->ale); in gpio_nand_probe()
Dorion_nand.c42 offs = (1 << board->ale); in orion_nand_cmd_ctrl()
138 board->ale = (u8)val; in orion_nand_probe()
140 board->ale = 1; in orion_nand_probe()
Dnandsim.c346 int ale; /* address Latch Enable */ member
1885 if (ns->lines.ale || ns->lines.cle) { in ns_nand_read_byte()
1945 if (ns->lines.ale && ns->lines.cle) { in ns_nand_write_byte()
1998 } else if (ns->lines.ale == 1) { in ns_nand_write_byte()
2130 if (ns->lines.ale || ns->lines.cle) { in ns_nand_read_buf()
2183 ns->lines.ale = 0; in ns_exec_op()
2191 ns->lines.ale = 1; in ns_exec_op()
/drivers/ata/
Dpata_octeon_cf.c117 reg_cfg.s.ale = 0; /* Don't do address multiplexing */ in octeon_cf_set_boot_reg_cfg()
186 reg_tim.s.ale = 0; in octeon_cf_set_piomode()