Lines Matching refs:work
108 struct work_struct work; member
539 static void mlx4_ib_mcg_timeout_handler(struct work_struct *work) in mlx4_ib_mcg_timeout_handler() argument
541 struct delayed_work *delay = to_delayed_work(work); in mlx4_ib_mcg_timeout_handler()
578 if (!queue_work(group->demux->mcg_wq, &group->work)) in mlx4_ib_mcg_timeout_handler()
642 static void mlx4_ib_mcg_work_handler(struct work_struct *work) in mlx4_ib_mcg_work_handler() argument
652 group = container_of(work, typeof(*group), work); in mlx4_ib_mcg_work_handler()
841 INIT_WORK(&group->work, mlx4_ib_mcg_work_handler); in acquire_group()
882 if (!queue_work(group->demux->mcg_wq, &group->work)) in queue_req()
918 if (!queue_work(ctx->mcg_wq, &group->work)) in mlx4_ib_mcg_demux_handler()
1116 struct work_struct work; member
1121 static void mcg_clean_task(struct work_struct *work) in mcg_clean_task() argument
1123 struct clean_work *cw = container_of(work, struct clean_work, work); in mcg_clean_task()
1132 struct clean_work *work; in mlx4_ib_mcg_port_cleanup() local
1145 work = kmalloc(sizeof *work, GFP_KERNEL); in mlx4_ib_mcg_port_cleanup()
1146 if (!work) { in mlx4_ib_mcg_port_cleanup()
1152 work->ctx = ctx; in mlx4_ib_mcg_port_cleanup()
1153 work->destroy_wq = destroy_wq; in mlx4_ib_mcg_port_cleanup()
1154 INIT_WORK(&work->work, mcg_clean_task); in mlx4_ib_mcg_port_cleanup()
1155 queue_work(clean_wq, &work->work); in mlx4_ib_mcg_port_cleanup()