Lines Matching refs:ibev
269 struct ib_event ibev = { }; in mlx5_netdev_event() local
280 ibev.device = &ibdev->ib_dev; in mlx5_netdev_event()
282 ibev.event = IB_EVENT_PORT_ERR; in mlx5_netdev_event()
284 ibev.event = IB_EVENT_PORT_ACTIVE; in mlx5_netdev_event()
288 ibev.element.port_num = port_num; in mlx5_netdev_event()
289 ib_dispatch_event(&ibev); in mlx5_netdev_event()
2679 struct ib_event *ibev) in handle_general_event() argument
2695 struct ib_event *ibev) in handle_port_change() argument
2699 ibev->element.port_num = port; in handle_port_change()
2712 ibev->event = (eqe->sub_type == MLX5_PORT_CHANGE_SUBTYPE_ACTIVE) ? in handle_port_change()
2717 ibev->event = IB_EVENT_LID_CHANGE; in handle_port_change()
2721 ibev->event = IB_EVENT_PKEY_CHANGE; in handle_port_change()
2726 ibev->event = IB_EVENT_GID_CHANGE; in handle_port_change()
2730 ibev->event = IB_EVENT_CLIENT_REREGISTER; in handle_port_change()
2744 struct ib_event ibev; in mlx5_ib_handle_event() local
2757 ibev.event = IB_EVENT_DEVICE_FATAL; in mlx5_ib_handle_event()
2759 ibev.element.port_num = (u8)(unsigned long)work->param; in mlx5_ib_handle_event()
2763 if (handle_port_change(ibdev, work->param, &ibev)) in mlx5_ib_handle_event()
2767 handle_general_event(ibdev, work->param, &ibev); in mlx5_ib_handle_event()
2773 ibev.device = &ibdev->ib_dev; in mlx5_ib_handle_event()
2775 if (!rdma_is_port_valid(&ibdev->ib_dev, ibev.element.port_num)) { in mlx5_ib_handle_event()
2776 mlx5_ib_warn(ibdev, "warning: event on port %d\n", ibev.element.port_num); in mlx5_ib_handle_event()
2781 ib_dispatch_event(&ibev); in mlx5_ib_handle_event()