Lines Matching refs:db
146 struct dsa_db db) in dsa_mac_addr_find() argument
152 dsa_db_equal(&a->db, &db)) in dsa_mac_addr_find()
160 struct dsa_db db) in dsa_port_do_mdb_add() argument
169 err = ds->ops->port_mdb_add(ds, port, mdb, db); in dsa_port_do_mdb_add()
170 trace_dsa_mdb_add_hw(dp, mdb->addr, mdb->vid, &db, err); in dsa_port_do_mdb_add()
177 a = dsa_mac_addr_find(&dp->mdbs, mdb->addr, mdb->vid, db); in dsa_port_do_mdb_add()
180 trace_dsa_mdb_add_bump(dp, mdb->addr, mdb->vid, &db, in dsa_port_do_mdb_add()
191 err = ds->ops->port_mdb_add(ds, port, mdb, db); in dsa_port_do_mdb_add()
192 trace_dsa_mdb_add_hw(dp, mdb->addr, mdb->vid, &db, err); in dsa_port_do_mdb_add()
200 a->db = db; in dsa_port_do_mdb_add()
212 struct dsa_db db) in dsa_port_do_mdb_del() argument
221 err = ds->ops->port_mdb_del(ds, port, mdb, db); in dsa_port_do_mdb_del()
222 trace_dsa_mdb_del_hw(dp, mdb->addr, mdb->vid, &db, err); in dsa_port_do_mdb_del()
229 a = dsa_mac_addr_find(&dp->mdbs, mdb->addr, mdb->vid, db); in dsa_port_do_mdb_del()
231 trace_dsa_mdb_del_not_found(dp, mdb->addr, mdb->vid, &db); in dsa_port_do_mdb_del()
237 trace_dsa_mdb_del_drop(dp, mdb->addr, mdb->vid, &db, in dsa_port_do_mdb_del()
242 err = ds->ops->port_mdb_del(ds, port, mdb, db); in dsa_port_do_mdb_del()
243 trace_dsa_mdb_del_hw(dp, mdb->addr, mdb->vid, &db, err); in dsa_port_do_mdb_del()
259 u16 vid, struct dsa_db db) in dsa_port_do_fdb_add() argument
268 err = ds->ops->port_fdb_add(ds, port, addr, vid, db); in dsa_port_do_fdb_add()
269 trace_dsa_fdb_add_hw(dp, addr, vid, &db, err); in dsa_port_do_fdb_add()
276 a = dsa_mac_addr_find(&dp->fdbs, addr, vid, db); in dsa_port_do_fdb_add()
279 trace_dsa_fdb_add_bump(dp, addr, vid, &db, &a->refcount); in dsa_port_do_fdb_add()
289 err = ds->ops->port_fdb_add(ds, port, addr, vid, db); in dsa_port_do_fdb_add()
290 trace_dsa_fdb_add_hw(dp, addr, vid, &db, err); in dsa_port_do_fdb_add()
298 a->db = db; in dsa_port_do_fdb_add()
309 u16 vid, struct dsa_db db) in dsa_port_do_fdb_del() argument
318 err = ds->ops->port_fdb_del(ds, port, addr, vid, db); in dsa_port_do_fdb_del()
319 trace_dsa_fdb_del_hw(dp, addr, vid, &db, err); in dsa_port_do_fdb_del()
326 a = dsa_mac_addr_find(&dp->fdbs, addr, vid, db); in dsa_port_do_fdb_del()
328 trace_dsa_fdb_del_not_found(dp, addr, vid, &db); in dsa_port_do_fdb_del()
334 trace_dsa_fdb_del_drop(dp, addr, vid, &db, &a->refcount); in dsa_port_do_fdb_del()
338 err = ds->ops->port_fdb_del(ds, port, addr, vid, db); in dsa_port_do_fdb_del()
339 trace_dsa_fdb_del_hw(dp, addr, vid, &db, err); in dsa_port_do_fdb_del()
356 struct dsa_db db) in dsa_switch_do_lag_fdb_add() argument
363 a = dsa_mac_addr_find(&lag->fdbs, addr, vid, db); in dsa_switch_do_lag_fdb_add()
366 trace_dsa_lag_fdb_add_bump(lag->dev, addr, vid, &db, in dsa_switch_do_lag_fdb_add()
377 err = ds->ops->lag_fdb_add(ds, *lag, addr, vid, db); in dsa_switch_do_lag_fdb_add()
378 trace_dsa_lag_fdb_add_hw(lag->dev, addr, vid, &db, err); in dsa_switch_do_lag_fdb_add()
386 a->db = db; in dsa_switch_do_lag_fdb_add()
398 struct dsa_db db) in dsa_switch_do_lag_fdb_del() argument
405 a = dsa_mac_addr_find(&lag->fdbs, addr, vid, db); in dsa_switch_do_lag_fdb_del()
407 trace_dsa_lag_fdb_del_not_found(lag->dev, addr, vid, &db); in dsa_switch_do_lag_fdb_del()
413 trace_dsa_lag_fdb_del_drop(lag->dev, addr, vid, &db, in dsa_switch_do_lag_fdb_del()
418 err = ds->ops->lag_fdb_del(ds, *lag, addr, vid, db); in dsa_switch_do_lag_fdb_del()
419 trace_dsa_lag_fdb_del_hw(lag->dev, addr, vid, &db, err); in dsa_switch_do_lag_fdb_del()
449 info->db); in dsa_switch_host_fdb_add()
452 info->vid, info->db); in dsa_switch_host_fdb_add()
477 info->db); in dsa_switch_host_fdb_del()
480 info->vid, info->db); in dsa_switch_host_fdb_del()
499 return dsa_port_do_fdb_add(dp, info->addr, info->vid, info->db); in dsa_switch_fdb_add()
511 return dsa_port_do_fdb_del(dp, info->addr, info->vid, info->db); in dsa_switch_fdb_del()
527 info->db); in dsa_switch_lag_fdb_add()
545 info->db); in dsa_switch_lag_fdb_del()
600 return dsa_port_do_mdb_add(dp, info->mdb, info->db); in dsa_switch_mdb_add()
612 return dsa_port_do_mdb_del(dp, info->mdb, info->db); in dsa_switch_mdb_del()
626 err = dsa_port_do_mdb_add(dp, info->mdb, info->db); in dsa_switch_host_mdb_add()
646 err = dsa_port_do_mdb_del(dp, info->mdb, info->db); in dsa_switch_host_mdb_del()