Lines Matching refs:alu
235 struct alu_struct alu; in ksz_port_fdb_dump() local
238 alu.is_static = false; in ksz_port_fdb_dump()
239 ret = dev->dev_ops->r_dyn_mac_table(dev, i, alu.mac, &fid, in ksz_port_fdb_dump()
243 ret = cb(alu.mac, alu.fid, alu.is_static, data); in ksz_port_fdb_dump()
268 struct alu_struct alu; in ksz_port_mdb_add() local
272 alu.port_forward = 0; in ksz_port_mdb_add()
274 if (!dev->dev_ops->r_sta_mac_table(dev, index, &alu)) { in ksz_port_mdb_add()
276 if (!memcmp(alu.mac, mdb->addr, ETH_ALEN) && in ksz_port_mdb_add()
277 alu.fid == mdb->vid) in ksz_port_mdb_add()
292 memset(&alu, 0, sizeof(alu)); in ksz_port_mdb_add()
293 memcpy(alu.mac, mdb->addr, ETH_ALEN); in ksz_port_mdb_add()
294 alu.is_static = true; in ksz_port_mdb_add()
296 alu.port_forward |= BIT(port); in ksz_port_mdb_add()
298 alu.is_use_fid = true; in ksz_port_mdb_add()
301 alu.fid = mdb->vid; in ksz_port_mdb_add()
303 dev->dev_ops->w_sta_mac_table(dev, index, &alu); in ksz_port_mdb_add()
311 struct alu_struct alu; in ksz_port_mdb_del() local
316 if (!dev->dev_ops->r_sta_mac_table(dev, index, &alu)) { in ksz_port_mdb_del()
318 if (!memcmp(alu.mac, mdb->addr, ETH_ALEN) && in ksz_port_mdb_del()
319 alu.fid == mdb->vid) in ksz_port_mdb_del()
329 alu.port_forward &= ~BIT(port); in ksz_port_mdb_del()
330 if (!alu.port_forward) in ksz_port_mdb_del()
331 alu.is_static = false; in ksz_port_mdb_del()
332 dev->dev_ops->w_sta_mac_table(dev, index, &alu); in ksz_port_mdb_del()