Lines Matching refs:sync_ctx
205 struct addr_sync_ctx *sync_ctx = ctx; in cpsw_update_vlan_mc() local
214 if (ether_addr_equal(ha->addr, sync_ctx->addr)) { in cpsw_update_vlan_mc()
221 sync_ctx->consumed++; in cpsw_update_vlan_mc()
223 if (sync_ctx->flush) { in cpsw_update_vlan_mc()
225 cpsw_set_mc(sync_ctx->ndev, sync_ctx->addr, vid, 0); in cpsw_update_vlan_mc()
230 ret = cpsw_set_mc(sync_ctx->ndev, sync_ctx->addr, vid, 1); in cpsw_update_vlan_mc()
237 struct addr_sync_ctx sync_ctx; in cpsw_add_mc_addr() local
240 sync_ctx.consumed = 0; in cpsw_add_mc_addr()
241 sync_ctx.addr = addr; in cpsw_add_mc_addr()
242 sync_ctx.ndev = ndev; in cpsw_add_mc_addr()
243 sync_ctx.flush = 0; in cpsw_add_mc_addr()
245 ret = vlan_for_each(ndev, cpsw_update_vlan_mc, &sync_ctx); in cpsw_add_mc_addr()
246 if (sync_ctx.consumed < num && !ret) in cpsw_add_mc_addr()
254 struct addr_sync_ctx sync_ctx; in cpsw_del_mc_addr() local
256 sync_ctx.consumed = 0; in cpsw_del_mc_addr()
257 sync_ctx.addr = addr; in cpsw_del_mc_addr()
258 sync_ctx.ndev = ndev; in cpsw_del_mc_addr()
259 sync_ctx.flush = 1; in cpsw_del_mc_addr()
261 vlan_for_each(ndev, cpsw_update_vlan_mc, &sync_ctx); in cpsw_del_mc_addr()
262 if (sync_ctx.consumed == num) in cpsw_del_mc_addr()
270 struct addr_sync_ctx *sync_ctx = ctx; in cpsw_purge_vlan_mc() local
279 if (ether_addr_equal(ha->addr, sync_ctx->addr)) { in cpsw_purge_vlan_mc()
288 sync_ctx->consumed++; in cpsw_purge_vlan_mc()
289 cpsw_set_mc(sync_ctx->ndev, sync_ctx->addr, vid, 0); in cpsw_purge_vlan_mc()
295 struct addr_sync_ctx sync_ctx; in cpsw_purge_all_mc() local
297 sync_ctx.addr = addr; in cpsw_purge_all_mc()
298 sync_ctx.ndev = ndev; in cpsw_purge_all_mc()
299 sync_ctx.consumed = 0; in cpsw_purge_all_mc()
301 vlan_for_each(ndev, cpsw_purge_vlan_mc, &sync_ctx); in cpsw_purge_all_mc()
302 if (sync_ctx.consumed < num) in cpsw_purge_all_mc()