Lines Matching defs:event
165 /* All active slaves need to receive the event */
171 phys_port = eqe->event.port_mgmt_change.port;
175 eqe->event.port_mgmt_change.port = slave_port;
178 mlx4_warn(dev, "Failed to generate event for slave %d\n",
181 eqe->event.port_mgmt_change.port = phys_port;
185 mlx4_warn(dev, "Failed to generate event for slave %d\n",
262 eqe.event.port_mgmt_change.port = mlx4_phys_to_slave_port(dev, slave, port);
279 eqe.event.port_mgmt_change.port = mlx4_phys_to_slave_port(dev, slave, port);
298 eqe.event.port_change.port = cpu_to_be32(slave_port << 28);
340 static void set_all_slave_state(struct mlx4_dev *dev, u8 port, int event)
350 event, &gen_event);
353 The function get as input the new event to that port,
362 u8 port, int event,
387 if (MLX4_PORT_STATE_DEV_EVENT_PORT_UP == event)
392 if (MLX4_PORT_STATE_DEV_EVENT_PORT_DOWN == event)
395 else if (MLX4_PORT_STATE_IB_PORT_STATE_EVENT_GID_VALID == event) {
402 if (MLX4_PORT_STATE_DEV_EVENT_PORT_DOWN == event) {
407 event) {
435 eqe.event.port_mgmt_change.port = port;
436 eqe.event.port_mgmt_change.params.port_info.changed_attr =
516 cqn = be32_to_cpu(eqe->event.comp.cqn) & 0xffffff;
528 mlx4_dbg(dev, "event %d arrived\n", eqe->type);
533 be32_to_cpu(eqe->event.qp.qpn)
536 mlx4_dbg(dev, "QP event %02x(%02x) on EQ %d at index %u: could not get slave id (%d)\n",
548 mlx4_qp_event(dev, be32_to_cpu(eqe->event.qp.qpn) &
560 be32_to_cpu(eqe->event.srq.srqn)
564 mlx4_warn(dev, "SRQ event %02x(%02x) on EQ %d at index %u: could not get slave id (%d)\n",
569 mlx4_warn(dev, "%s: slave:%d, srq_no:0x%x, event: %02x(%02x)\n",
571 be32_to_cpu(eqe->event.srq.srqn),
575 mlx4_warn(dev, "%s: sending event %02x(%02x) to slave:%d\n",
582 mlx4_srq_event(dev, be32_to_cpu(eqe->event.srq.srqn) &
588 be16_to_cpu(eqe->event.cmd.token),
589 eqe->event.cmd.status,
590 be64_to_cpu(eqe->event.cmd.out_param));
595 port = be32_to_cpu(eqe->event.port_change.port) >> 28;
616 eqe->event.port_change.port =
618 (be32_to_cpu(eqe->event.port_change.port) & 0xFFFFFFF)
626 /*we can be in pending state, then do not send port_down event*/
630 eqe->event.port_change.port =
632 (be32_to_cpu(eqe->event.port_change.port) & 0xFFFFFFF)
657 eqe->event.port_change.port =
659 (be32_to_cpu(eqe->event.port_change.port) & 0xFFFFFFF)
665 /* port-up event will be sent to a slave when the
675 eqe->event.cq_err.syndrome == 1 ?
677 be32_to_cpu(eqe->event.cq_err.cqn) & 0xffffff);
681 be32_to_cpu(eqe->event.cq_err.cqn)
684 mlx4_dbg(dev, "CQ event %02x(%02x) on EQ %d at index %u: could not get slave id (%d)\n",
696 be32_to_cpu(eqe->event.cq_err.cqn)
715 mlx4_warn(dev, "Received comm channel event for non master device\n");
719 eqe->event.comm_channel_arm.bit_vec,
720 sizeof eqe->event.comm_channel_arm.bit_vec);
726 flr_slave = be32_to_cpu(eqe->event.flr_event.slave_id);
728 mlx4_warn(dev, "Non-master function received FLR event\n");
732 mlx4_dbg(dev, "FLR event for slave: %d\n", flr_slave);
766 be16_to_cpu(eqe->event.warming.warning_threshold),
767 be16_to_cpu(eqe->event.warming.current_temperature));
769 mlx4_warn(dev, "Unhandled event FATAL WARNING (%02x), subtype %02x on EQ %d at index %u. owner=%x, nent=0x%x, slave=%x, ownership=%s\n",
787 eqe->event.bad_cable.port);
794 "Unhandled recoverable error event detected: %02x(%02x) on EQ %d at index %u. owner=%x, nent=0x%x, ownership=%s\n",
806 mlx4_warn(dev, "Unhandled event %02x(%02x) on EQ %d at index %u. owner=%x, nent=0x%x, slave=%x, ownership=%s\n",