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