Lines Matching refs:qpe_work
357 struct mlx5_ib_qp_event_work *qpe_work = in mlx5_ib_handle_qp_event() local
359 struct ib_qp *ibqp = &to_mibqp(qpe_work->qp)->ibqp; in mlx5_ib_handle_qp_event()
364 switch (qpe_work->type) { in mlx5_ib_handle_qp_event()
391 qpe_work->type, qpe_work->qp->qpn); in mlx5_ib_handle_qp_event()
402 mlx5_core_res_put(&qpe_work->qp->common); in mlx5_ib_handle_qp_event()
403 kfree(qpe_work); in mlx5_ib_handle_qp_event()
409 struct mlx5_ib_qp_event_work *qpe_work; in mlx5_ib_qp_event() local
419 qpe_work = kzalloc(sizeof(*qpe_work), GFP_ATOMIC); in mlx5_ib_qp_event()
420 if (!qpe_work) in mlx5_ib_qp_event()
423 qpe_work->qp = qp; in mlx5_ib_qp_event()
424 qpe_work->type = type; in mlx5_ib_qp_event()
425 INIT_WORK(&qpe_work->work, mlx5_ib_handle_qp_event); in mlx5_ib_qp_event()
426 queue_work(mlx5_ib_qp_event_wq, &qpe_work->work); in mlx5_ib_qp_event()