Lines Matching refs:work
104 struct work_struct work; member
535 static void mlx4_ib_mcg_timeout_handler(struct work_struct *work) in mlx4_ib_mcg_timeout_handler() argument
537 struct delayed_work *delay = to_delayed_work(work); in mlx4_ib_mcg_timeout_handler()
574 if (!queue_work(group->demux->mcg_wq, &group->work)) in mlx4_ib_mcg_timeout_handler()
638 static void mlx4_ib_mcg_work_handler(struct work_struct *work) in mlx4_ib_mcg_work_handler() argument
648 group = container_of(work, typeof(*group), work); in mlx4_ib_mcg_work_handler()
837 INIT_WORK(&group->work, mlx4_ib_mcg_work_handler); in acquire_group()
878 if (!queue_work(group->demux->mcg_wq, &group->work)) in queue_req()
914 if (!queue_work(ctx->mcg_wq, &group->work)) in mlx4_ib_mcg_demux_handler()
1112 struct work_struct work; member
1117 static void mcg_clean_task(struct work_struct *work) in mcg_clean_task() argument
1119 struct clean_work *cw = container_of(work, struct clean_work, work); in mcg_clean_task()
1128 struct clean_work *work; in mlx4_ib_mcg_port_cleanup() local
1141 work = kmalloc(sizeof *work, GFP_KERNEL); in mlx4_ib_mcg_port_cleanup()
1142 if (!work) { in mlx4_ib_mcg_port_cleanup()
1148 work->ctx = ctx; in mlx4_ib_mcg_port_cleanup()
1149 work->destroy_wq = destroy_wq; in mlx4_ib_mcg_port_cleanup()
1150 INIT_WORK(&work->work, mcg_clean_task); in mlx4_ib_mcg_port_cleanup()
1151 queue_work(clean_wq, &work->work); in mlx4_ib_mcg_port_cleanup()