Lines Matching defs:event
44 * and endpoint rings. If controller is the producer for the event ring,
52 * 3. Notify the producer. SW is the consumer for the event ring, and it
53 * updates event ring dequeue pointer. Controller is the consumer for the
54 * command and endpoint rings; it generates events on the event ring
143 * See Cycle bit rules. SW is the consumer for the event ring only.
148 /* event ring doesn't have link trbs, check for last trb. */
177 * See Cycle bit rules. SW is the consumer for the event ring only.
196 /* If this is not event ring, there is one less usable TRB. */
551 /* We may get an event for a Link TRB in the middle of a TD */
728 * The event handler won't see a completion for this TD anymore,
766 dev_err(pdev->dev, "Port event with invalid port ID %d\n",
787 union cdnsp_trb *event)
796 if (GET_COMP_CODE(le32_to_cpu(event->generic.field[2])) != COMP_SUCCESS)
797 dev_err(pdev->dev, "ERR: incorrect PSC event\n");
799 port_id = GET_PORT_ID(le32_to_cpu(event->generic.field[0]));
917 struct cdnsp_transfer_event *event,
924 ep_ring = cdnsp_dma_to_transfer_ring(ep, le64_to_cpu(event->buffer));
925 trb_comp_code = GET_COMP_CODE(le32_to_cpu(event->transfer_len));
995 struct cdnsp_transfer_event *event,
1004 ep_ring = cdnsp_dma_to_transfer_ring(pep, le64_to_cpu(event->buffer));
1005 remaining = EVENT_TRB_LEN(le32_to_cpu(event->transfer_len));
1009 * request and flag it as set, so it won't be overwritten in the event
1034 cdnsp_finish_td(pdev, td, event, pep, status);
1043 struct cdnsp_transfer_event *event,
1054 ep_ring = cdnsp_dma_to_transfer_ring(pep, le64_to_cpu(event->buffer));
1055 trb_comp_code = GET_COMP_CODE(le32_to_cpu(event->transfer_len));
1056 remaining = EVENT_TRB_LEN(le32_to_cpu(event->transfer_len));
1101 cdnsp_finish_td(pdev, td, event, pep, &status);
1106 struct cdnsp_transfer_event *event,
1112 ep_ring = cdnsp_dma_to_transfer_ring(pep, le64_to_cpu(event->buffer));
1131 struct cdnsp_transfer_event *event,
1139 ep_ring = cdnsp_dma_to_transfer_ring(ep, le64_to_cpu(event->buffer));
1140 trb_comp_code = GET_COMP_CODE(le32_to_cpu(event->transfer_len));
1141 remaining = EVENT_TRB_LEN(le32_to_cpu(event->transfer_len));
1170 cdnsp_finish_td(pdev, td, event, ep, status);
1174 struct cdnsp_transfer_event *event)
1184 generic = (struct cdnsp_generic_trb *)event;
1185 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1;
1223 * event with a corrupted TRB DMA address or endpoint is disabled.
1226 struct cdnsp_transfer_event *event)
1241 invalidate = le32_to_cpu(event->flags) & TRB_EVENT_INVALIDATE;
1242 ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1;
1243 trb_comp_code = GET_COMP_CODE(le32_to_cpu(event->transfer_len));
1244 ep_trb_dma = le64_to_cpu(event->buffer);
1247 ep_ring = cdnsp_dma_to_transfer_ring(pep, le64_to_cpu(event->buffer));
1252 * We don't want handle such event to avoid racing.
1271 dev_err(pdev->dev, "ERROR: %s event for unknown ring\n",
1309 * endpoint generating an extra completion event, or
1310 * a event for the last TRB of a short TD we already
1311 * got a short event for.
1318 (struct cdnsp_generic_trb *)event);
1368 "ERROR Transfer event TRB DMA ptr not "
1375 cdnsp_skip_isoc_td(pdev, td, event, pep, status);
1386 cdnsp_skip_isoc_td(pdev, td, event, pep, status);
1394 cdnsp_process_ctrl_td(pdev, td, ep_trb, event, pep,
1397 cdnsp_process_isoc_td(pdev, td, ep_trb, event, pep,
1400 cdnsp_process_bulk_intr_td(pdev, td, ep_trb, event, pep,
1406 * Do not update event ring dequeue pointer if we're in a loop
1416 * the event.
1426 lower_32_bits(le64_to_cpu(event->buffer)),
1427 upper_32_bits(le64_to_cpu(event->buffer)),
1428 le32_to_cpu(event->transfer_len),
1429 le32_to_cpu(event->flags));
1434 * This function handles all events on the event ring.
1441 union cdnsp_trb *event;
1447 event = pdev->event_ring->dequeue;
1448 flags = le32_to_cpu(event->event_cmd.flags);
1455 trace_cdnsp_handle_event(pdev->event_ring, &event->generic);
1459 * reads of the event's flags/data below.
1472 cdnsp_handle_port_status(pdev, event);
1476 ret = cdnsp_handle_tx_event(pdev, &event->trans_event);
1485 &event->trans_event.buffer);
1490 cdnsp_handle_tx_nrdy(pdev, &event->trans_event);
1493 comp_code = GET_COMP_CODE(le32_to_cpu(event->generic.field[2]));
1510 dev_warn(pdev->dev, "ERROR unknown event type %ld\n",
1515 /* Update SW event ring dequeue pointer. */
1520 * on the event ring.