Lines Matching defs:obj

206 static size_t switchdev_obj_size(const struct switchdev_obj *obj)
208 switch (obj->id) {
223 const struct switchdev_obj *obj,
231 .obj = obj,
248 const struct switchdev_obj *obj,
256 /* Phase I: prepare for obj add. Driver/device should fail
260 * but should not commit the obj.
265 dev, obj, &trans, extack);
269 /* Phase II: commit obj add. This cannot fail as a fault
276 dev, obj, &trans, extack);
277 WARN(err, "%s: Commit of object (id=%d) failed.\n", dev->name, obj->id);
285 const struct switchdev_obj *obj = data;
288 err = switchdev_port_obj_add_now(dev, obj, NULL);
291 err, obj->id);
292 if (obj->complete)
293 obj->complete(dev, err, obj->complete_priv);
297 const struct switchdev_obj *obj)
299 return switchdev_deferred_enqueue(dev, obj, switchdev_obj_size(obj),
307 * @obj: object to add
318 const struct switchdev_obj *obj,
321 if (obj->flags & SWITCHDEV_F_DEFER)
322 return switchdev_port_obj_add_defer(dev, obj);
324 return switchdev_port_obj_add_now(dev, obj, extack);
329 const struct switchdev_obj *obj)
332 dev, obj, NULL, NULL);
338 const struct switchdev_obj *obj = data;
341 err = switchdev_port_obj_del_now(dev, obj);
344 err, obj->id);
345 if (obj->complete)
346 obj->complete(dev, err, obj->complete_priv);
350 const struct switchdev_obj *obj)
352 return switchdev_deferred_enqueue(dev, obj, switchdev_obj_size(obj),
360 * @obj: object to delete
366 const struct switchdev_obj *obj)
368 if (obj->flags & SWITCHDEV_F_DEFER)
369 return switchdev_port_obj_del_defer(dev, obj);
371 return switchdev_port_obj_del_now(dev, obj);
451 const struct switchdev_obj *obj,
463 err = add_cb(dev, port_obj_info->obj, port_obj_info->trans,
494 const struct switchdev_obj *obj,
512 const struct switchdev_obj *obj))
519 err = del_cb(dev, port_obj_info->obj);
549 const struct switchdev_obj *obj))