Lines Matching refs:sync_ctx
148 struct addr_sync_ctx *sync_ctx = ctx; in cpsw_update_vlan_mc() local
157 if (ether_addr_equal(ha->addr, sync_ctx->addr)) { in cpsw_update_vlan_mc()
164 sync_ctx->consumed++; in cpsw_update_vlan_mc()
166 if (sync_ctx->flush) { in cpsw_update_vlan_mc()
168 cpsw_set_mc(sync_ctx->ndev, sync_ctx->addr, vid, 0); in cpsw_update_vlan_mc()
173 ret = cpsw_set_mc(sync_ctx->ndev, sync_ctx->addr, vid, 1); in cpsw_update_vlan_mc()
180 struct addr_sync_ctx sync_ctx; in cpsw_add_mc_addr() local
183 sync_ctx.consumed = 0; in cpsw_add_mc_addr()
184 sync_ctx.addr = addr; in cpsw_add_mc_addr()
185 sync_ctx.ndev = ndev; in cpsw_add_mc_addr()
186 sync_ctx.flush = 0; in cpsw_add_mc_addr()
188 ret = vlan_for_each(ndev, cpsw_update_vlan_mc, &sync_ctx); in cpsw_add_mc_addr()
189 if (sync_ctx.consumed < num && !ret) in cpsw_add_mc_addr()
197 struct addr_sync_ctx sync_ctx; in cpsw_del_mc_addr() local
199 sync_ctx.consumed = 0; in cpsw_del_mc_addr()
200 sync_ctx.addr = addr; in cpsw_del_mc_addr()
201 sync_ctx.ndev = ndev; in cpsw_del_mc_addr()
202 sync_ctx.flush = 1; in cpsw_del_mc_addr()
204 vlan_for_each(ndev, cpsw_update_vlan_mc, &sync_ctx); in cpsw_del_mc_addr()
205 if (sync_ctx.consumed == num) in cpsw_del_mc_addr()
213 struct addr_sync_ctx *sync_ctx = ctx; in cpsw_purge_vlan_mc() local
222 if (ether_addr_equal(ha->addr, sync_ctx->addr)) { in cpsw_purge_vlan_mc()
231 sync_ctx->consumed++; in cpsw_purge_vlan_mc()
232 cpsw_set_mc(sync_ctx->ndev, sync_ctx->addr, vid, 0); in cpsw_purge_vlan_mc()
238 struct addr_sync_ctx sync_ctx; in cpsw_purge_all_mc() local
240 sync_ctx.addr = addr; in cpsw_purge_all_mc()
241 sync_ctx.ndev = ndev; in cpsw_purge_all_mc()
242 sync_ctx.consumed = 0; in cpsw_purge_all_mc()
244 vlan_for_each(ndev, cpsw_purge_vlan_mc, &sync_ctx); in cpsw_purge_all_mc()
245 if (sync_ctx.consumed < num) in cpsw_purge_all_mc()