Lines Matching defs:work
56 struct work_struct work;
79 * doesn't work on kernel modules memory
2705 static void pkey_change_handler(struct work_struct *work)
2708 container_of(work, struct mlx5_ib_port_resources,
2773 static void delay_drop_handler(struct work_struct *work)
2777 container_of(work, struct mlx5_ib_delay_drop,
2855 struct mlx5_ib_event_work *work =
2856 container_of(_work, struct mlx5_ib_event_work, work);
2861 if (work->is_slave) {
2862 ibdev = mlx5_ib_get_ibdev_from_mpi(work->mpi);
2866 ibdev = work->dev;
2869 switch (work->event) {
2873 ibev.element.port_num = (u8)(unsigned long)work->param;
2877 if (handle_port_change(ibdev, work->param, &ibev))
2881 handle_general_event(ibdev, work->param, &ibev);
2900 kfree(work);
2906 struct mlx5_ib_event_work *work;
2908 work = kmalloc(sizeof(*work), GFP_ATOMIC);
2909 if (!work)
2912 INIT_WORK(&work->work, mlx5_ib_handle_event);
2913 work->dev = container_of(nb, struct mlx5_ib_dev, mdev_events);
2914 work->is_slave = false;
2915 work->param = param;
2916 work->event = event;
2918 queue_work(mlx5_ib_event_wq, &work->work);
2926 struct mlx5_ib_event_work *work;
2928 work = kmalloc(sizeof(*work), GFP_ATOMIC);
2929 if (!work)
2932 INIT_WORK(&work->work, mlx5_ib_handle_event);
2933 work->mpi = container_of(nb, struct mlx5_ib_multiport_info, mdev_events);
2934 work->is_slave = true;
2935 work->param = param;
2936 work->event = event;
2937 queue_work(mlx5_ib_event_wq, &work->work);
3180 /* Make sure no change P_Key work items are still executing */