Searched refs:slot_id (Results 1 - 22 of 22) sorted by relevance

/linux-4.1.27/drivers/usb/host/
H A Dxhci-hub.c244 int slot_id; xhci_find_slot_id_by_port() local
248 slot_id = 0; xhci_find_slot_id_by_port()
255 slot_id = i; xhci_find_slot_id_by_port()
260 return slot_id; xhci_find_slot_id_by_port()
269 static int xhci_stop_device(struct xhci_hcd *xhci, int slot_id, int suspend) xhci_stop_device() argument
278 virt_dev = xhci->devs[slot_id]; xhci_stop_device()
297 xhci_queue_stop_endpoint(xhci, command, slot_id, i, xhci_stop_device()
301 xhci_queue_stop_endpoint(xhci, cmd, slot_id, 0, suspend); xhci_stop_device()
319 void xhci_ring_device(struct xhci_hcd *xhci, int slot_id) xhci_ring_device() argument
325 ep = &xhci->devs[slot_id]->eps[i]; xhci_ring_device()
329 xhci_ring_ep_doorbell(xhci, slot_id, i, s); xhci_ring_device()
331 xhci_ring_ep_doorbell(xhci, slot_id, i, 0); xhci_ring_device()
581 int slot_id; variable
640 slot_id = xhci_find_slot_id_by_port(hcd,
642 if (!slot_id) {
643 xhci_dbg(xhci, "slot_id is zero\n");
646 xhci_ring_device(xhci, slot_id);
717 int slot_id; xhci_hub_control() local
831 slot_id = xhci_find_slot_id_by_port(hcd, xhci, xhci_hub_control()
833 if (!slot_id) { xhci_hub_control()
834 xhci_warn(xhci, "slot_id is zero\n"); xhci_hub_control()
839 xhci_stop_device(xhci, slot_id, 1); xhci_hub_control()
890 slot_id = xhci_find_slot_id_by_port(hcd, xhci, xhci_hub_control()
892 if (slot_id) { xhci_hub_control()
897 xhci_stop_device(xhci, slot_id, 1); xhci_hub_control()
1008 slot_id = xhci_find_slot_id_by_port(hcd, xhci, xhci_hub_control()
1010 if (!slot_id) { xhci_hub_control()
1011 xhci_dbg(xhci, "slot_id is zero\n"); xhci_hub_control()
1014 xhci_ring_device(xhci, slot_id); xhci_hub_control()
1146 int slot_id; xhci_bus_suspend() local
1153 slot_id = xhci_find_slot_id_by_port(hcd, xhci, xhci_bus_suspend()
1155 if (slot_id) { xhci_bus_suspend()
1157 xhci_stop_device(xhci, slot_id, 1); xhci_bus_suspend()
1220 int slot_id; xhci_bus_resume() local
1254 slot_id = xhci_find_slot_id_by_port(hcd, xhci_bus_resume()
1256 if (slot_id) xhci_bus_resume()
1257 xhci_ring_device(xhci, slot_id); xhci_bus_resume()
H A Dxhci-ring.c326 unsigned int slot_id, xhci_ring_ep_doorbell()
330 __le32 __iomem *db_addr = &xhci->dba->doorbell[slot_id]; xhci_ring_ep_doorbell()
331 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; xhci_ring_ep_doorbell()
351 unsigned int slot_id, ring_doorbell_for_active_rings()
357 ep = &xhci->devs[slot_id]->eps[ep_index]; ring_doorbell_for_active_rings()
362 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, 0); ring_doorbell_for_active_rings()
370 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, ring_doorbell_for_active_rings()
376 unsigned int slot_id, unsigned int ep_index, xhci_triad_to_transfer_ring()
381 ep = &xhci->devs[slot_id]->eps[ep_index]; xhci_triad_to_transfer_ring()
390 slot_id, ep_index); xhci_triad_to_transfer_ring()
401 slot_id, ep_index, xhci_triad_to_transfer_ring()
414 return xhci_triad_to_transfer_ring(xhci, urb->dev->slot_id, xhci_urb_to_transfer_ring()
437 unsigned int slot_id, unsigned int ep_index, xhci_find_new_dequeue_state()
441 struct xhci_virt_device *dev = xhci->devs[slot_id]; xhci_find_new_dequeue_state()
451 ep_ring = xhci_triad_to_transfer_ring(xhci, slot_id, xhci_find_new_dequeue_state()
636 static void xhci_handle_cmd_stop_ep(struct xhci_hcd *xhci, int slot_id, xhci_handle_cmd_stop_ep() argument
649 if (!xhci->devs[slot_id]) xhci_handle_cmd_stop_ep()
652 slot_id); xhci_handle_cmd_stop_ep()
658 ep = &xhci->devs[slot_id]->eps[ep_index]; xhci_handle_cmd_stop_ep()
663 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); xhci_handle_cmd_stop_ep()
702 xhci_find_new_dequeue_state(xhci, slot_id, ep_index, xhci_handle_cmd_stop_ep()
720 xhci_queue_new_dequeue_state(xhci, slot_id, ep_index, xhci_handle_cmd_stop_ep()
725 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); xhci_handle_cmd_stop_ep()
772 int slot_id, int ep_index) xhci_kill_endpoint_urbs()
778 ep = &xhci->devs[slot_id]->eps[ep_index]; xhci_kill_endpoint_urbs()
787 slot_id, ep_index, stream_id + 1); xhci_kill_endpoint_urbs()
797 slot_id, ep_index); xhci_kill_endpoint_urbs()
953 static void xhci_handle_cmd_set_deq(struct xhci_hcd *xhci, int slot_id, xhci_handle_cmd_set_deq() argument
966 dev = xhci->devs[slot_id]; xhci_handle_cmd_set_deq()
1000 slot_id); xhci_handle_cmd_set_deq()
1044 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); xhci_handle_cmd_set_deq()
1047 static void xhci_handle_cmd_reset_ep(struct xhci_hcd *xhci, int slot_id, xhci_handle_cmd_reset_ep() argument
1073 xhci->devs[slot_id]->in_ctx->dma, slot_id, xhci_handle_cmd_reset_ep()
1078 xhci->devs[slot_id]->eps[ep_index].ep_state &= ~EP_HALTED; xhci_handle_cmd_reset_ep()
1082 static void xhci_handle_cmd_enable_slot(struct xhci_hcd *xhci, int slot_id, xhci_handle_cmd_enable_slot() argument
1086 xhci->slot_id = slot_id; xhci_handle_cmd_enable_slot()
1088 xhci->slot_id = 0; xhci_handle_cmd_enable_slot()
1091 static void xhci_handle_cmd_disable_slot(struct xhci_hcd *xhci, int slot_id) xhci_handle_cmd_disable_slot() argument
1095 virt_dev = xhci->devs[slot_id]; xhci_handle_cmd_disable_slot()
1101 xhci_free_virt_device(xhci, slot_id); xhci_handle_cmd_disable_slot()
1104 static void xhci_handle_cmd_config_ep(struct xhci_hcd *xhci, int slot_id, xhci_handle_cmd_config_ep() argument
1121 virt_dev = xhci->devs[slot_id]; xhci_handle_cmd_config_ep()
1151 ring_doorbell_for_active_rings(xhci, slot_id, ep_index); xhci_handle_cmd_config_ep()
1157 static void xhci_handle_cmd_reset_dev(struct xhci_hcd *xhci, int slot_id, xhci_handle_cmd_reset_dev() argument
1161 if (!xhci->devs[slot_id]) xhci_handle_cmd_reset_dev()
1163 "for disabled slot %u\n", slot_id); xhci_handle_cmd_reset_dev()
1292 int slot_id = TRB_TO_SLOT_ID(le32_to_cpu(event->flags)); handle_cmd_completion() local
1349 xhci_handle_cmd_enable_slot(xhci, slot_id, cmd_comp_code); handle_cmd_completion()
1352 xhci_handle_cmd_disable_slot(xhci, slot_id); handle_cmd_completion()
1356 xhci_handle_cmd_config_ep(xhci, slot_id, event, handle_cmd_completion()
1364 WARN_ON(slot_id != TRB_TO_SLOT_ID( handle_cmd_completion()
1366 xhci_handle_cmd_stop_ep(xhci, slot_id, cmd_trb, event); handle_cmd_completion()
1369 WARN_ON(slot_id != TRB_TO_SLOT_ID( handle_cmd_completion()
1371 xhci_handle_cmd_set_deq(xhci, slot_id, cmd_trb, cmd_comp_code); handle_cmd_completion()
1379 WARN_ON(slot_id != TRB_TO_SLOT_ID( handle_cmd_completion()
1381 xhci_handle_cmd_reset_ep(xhci, slot_id, cmd_trb, cmd_comp_code); handle_cmd_completion()
1387 slot_id = TRB_TO_SLOT_ID( handle_cmd_completion()
1389 xhci_handle_cmd_reset_dev(xhci, slot_id, event); handle_cmd_completion()
1465 u32 slot_id; handle_device_notification() local
1468 slot_id = TRB_TO_SLOT_ID(le32_to_cpu(event->generic.field[3])); handle_device_notification()
1469 if (!xhci->devs[slot_id]) { handle_device_notification()
1471 "unused slot %u\n", slot_id); handle_device_notification()
1476 slot_id); handle_device_notification()
1477 udev = xhci->devs[slot_id]->udev; handle_device_notification()
1489 int slot_id; handle_port_status() local
1607 slot_id = xhci_find_slot_id_by_port(hcd, xhci, handle_port_status()
1609 if (slot_id && xhci->devs[slot_id]) handle_port_status()
1610 xhci_ring_device(xhci, slot_id); handle_port_status()
1734 unsigned int slot_id, unsigned int ep_index, xhci_cleanup_halted_endpoint()
1738 struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; xhci_cleanup_halted_endpoint()
1747 xhci_queue_reset_ep(xhci, command, slot_id, ep_index); xhci_cleanup_halted_endpoint()
1806 unsigned int slot_id; finish_td() local
1814 slot_id = TRB_TO_SLOT_ID(le32_to_cpu(event->flags)); finish_td()
1815 xdev = xhci->devs[slot_id]; finish_td()
1840 xhci_cleanup_halted_endpoint(xhci, slot_id, ep_index, finish_td()
1899 unsigned int slot_id; process_ctrl_td() local
1904 slot_id = TRB_TO_SLOT_ID(le32_to_cpu(event->flags)); process_ctrl_td()
1905 xdev = xhci->devs[slot_id]; process_ctrl_td()
2228 unsigned int slot_id; variable
2244 slot_id = TRB_TO_SLOT_ID(le32_to_cpu(event->flags));
2245 xdev = xhci->devs[slot_id];
2950 static void giveback_first_trb(struct xhci_hcd *xhci, int slot_id, giveback_first_trb() argument
2963 xhci_ring_ep_doorbell(xhci, slot_id, ep_index, stream_id); giveback_first_trb()
2973 struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_intr_tx()
2976 xhci->devs[slot_id]->out_ctx, ep_index); xhci_queue_intr_tx()
3000 return xhci_queue_bulk_tx(xhci, mem_flags, urb, slot_id, ep_index); xhci_queue_intr_tx()
3046 struct urb *urb, int slot_id, unsigned int ep_index) queue_bulk_sg_tx()
3074 ret = prepare_transfer(xhci, xhci->devs[slot_id], queue_bulk_sg_tx()
3088 ret = prepare_transfer(xhci, xhci->devs[slot_id], queue_bulk_sg_tx()
3210 giveback_first_trb(xhci, slot_id, ep_index, urb->stream_id, queue_bulk_sg_tx()
3217 struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_bulk_tx()
3236 return queue_bulk_sg_tx(xhci, mem_flags, urb, slot_id, ep_index); xhci_queue_bulk_tx()
3259 ret = prepare_transfer(xhci, xhci->devs[slot_id], xhci_queue_bulk_tx()
3273 ret = prepare_transfer(xhci, xhci->devs[slot_id], xhci_queue_bulk_tx()
3362 giveback_first_trb(xhci, slot_id, ep_index, urb->stream_id, xhci_queue_bulk_tx()
3369 struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_ctrl_tx()
3401 ret = prepare_transfer(xhci, xhci->devs[slot_id], xhci_queue_ctrl_tx()
3485 giveback_first_trb(xhci, slot_id, ep_index, 0, xhci_queue_ctrl_tx()
3566 struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_isoc_tx()
3581 ep_ring = xhci->devs[slot_id]->eps[ep_index].ring; xhci_queue_isoc_tx()
3618 ret = prepare_transfer(xhci, xhci->devs[slot_id], ep_index, xhci_queue_isoc_tx()
3714 giveback_first_trb(xhci, slot_id, ep_index, urb->stream_id, xhci_queue_isoc_tx()
3749 struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_isoc_tx_prepare()
3760 xdev = xhci->devs[slot_id]; xhci_queue_isoc_tx_prepare()
3807 return xhci_queue_isoc_tx(xhci, mem_flags, urb, slot_id, ep_index); xhci_queue_isoc_tx_prepare()
3863 u32 trb_type, u32 slot_id) xhci_queue_slot_control()
3866 TRB_TYPE(trb_type) | SLOT_ID_FOR_TRB(slot_id), false); xhci_queue_slot_control()
3871 dma_addr_t in_ctx_ptr, u32 slot_id, enum xhci_setup_dev setup) xhci_queue_address_device()
3875 TRB_TYPE(TRB_ADDR_DEV) | SLOT_ID_FOR_TRB(slot_id) xhci_queue_address_device()
3887 u32 slot_id) xhci_queue_reset_device()
3890 TRB_TYPE(TRB_RESET_DEV) | SLOT_ID_FOR_TRB(slot_id), xhci_queue_reset_device()
3897 u32 slot_id, bool command_must_succeed) xhci_queue_configure_endpoint()
3901 TRB_TYPE(TRB_CONFIG_EP) | SLOT_ID_FOR_TRB(slot_id), xhci_queue_configure_endpoint()
3907 dma_addr_t in_ctx_ptr, u32 slot_id, bool command_must_succeed) xhci_queue_evaluate_context()
3911 TRB_TYPE(TRB_EVAL_CONTEXT) | SLOT_ID_FOR_TRB(slot_id), xhci_queue_evaluate_context()
3920 int slot_id, unsigned int ep_index, int suspend) xhci_queue_stop_endpoint()
3922 u32 trb_slot_id = SLOT_ID_FOR_TRB(slot_id); xhci_queue_stop_endpoint()
3933 unsigned int slot_id, unsigned int ep_index, xhci_queue_new_dequeue_state()
3938 u32 trb_slot_id = SLOT_ID_FOR_TRB(slot_id); xhci_queue_new_dequeue_state()
3964 ep = &xhci->devs[slot_id]->eps[ep_index]; xhci_queue_new_dequeue_state()
4000 int slot_id, unsigned int ep_index) xhci_queue_reset_ep()
4002 u32 trb_slot_id = SLOT_ID_FOR_TRB(slot_id); xhci_queue_reset_ep()
325 xhci_ring_ep_doorbell(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, unsigned int stream_id) xhci_ring_ep_doorbell() argument
350 ring_doorbell_for_active_rings(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index) ring_doorbell_for_active_rings() argument
375 xhci_triad_to_transfer_ring(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, unsigned int stream_id) xhci_triad_to_transfer_ring() argument
436 xhci_find_new_dequeue_state(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, unsigned int stream_id, struct xhci_td *cur_td, struct xhci_dequeue_state *state) xhci_find_new_dequeue_state() argument
771 xhci_kill_endpoint_urbs(struct xhci_hcd *xhci, int slot_id, int ep_index) xhci_kill_endpoint_urbs() argument
1733 xhci_cleanup_halted_endpoint(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, unsigned int stream_id, struct xhci_td *td, union xhci_trb *event_trb) xhci_cleanup_halted_endpoint() argument
2972 xhci_queue_intr_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_intr_tx() argument
3045 queue_bulk_sg_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) queue_bulk_sg_tx() argument
3216 xhci_queue_bulk_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_bulk_tx() argument
3368 xhci_queue_ctrl_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_ctrl_tx() argument
3565 xhci_queue_isoc_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_isoc_tx() argument
3748 xhci_queue_isoc_tx_prepare(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_isoc_tx_prepare() argument
3862 xhci_queue_slot_control(struct xhci_hcd *xhci, struct xhci_command *cmd, u32 trb_type, u32 slot_id) xhci_queue_slot_control() argument
3870 xhci_queue_address_device(struct xhci_hcd *xhci, struct xhci_command *cmd, dma_addr_t in_ctx_ptr, u32 slot_id, enum xhci_setup_dev setup) xhci_queue_address_device() argument
3886 xhci_queue_reset_device(struct xhci_hcd *xhci, struct xhci_command *cmd, u32 slot_id) xhci_queue_reset_device() argument
3895 xhci_queue_configure_endpoint(struct xhci_hcd *xhci, struct xhci_command *cmd, dma_addr_t in_ctx_ptr, u32 slot_id, bool command_must_succeed) xhci_queue_configure_endpoint() argument
3906 xhci_queue_evaluate_context(struct xhci_hcd *xhci, struct xhci_command *cmd, dma_addr_t in_ctx_ptr, u32 slot_id, bool command_must_succeed) xhci_queue_evaluate_context() argument
3919 xhci_queue_stop_endpoint(struct xhci_hcd *xhci, struct xhci_command *cmd, int slot_id, unsigned int ep_index, int suspend) xhci_queue_stop_endpoint() argument
3932 xhci_queue_new_dequeue_state(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, unsigned int stream_id, struct xhci_dequeue_state *deq_state) xhci_queue_new_dequeue_state() argument
3999 xhci_queue_reset_ep(struct xhci_hcd *xhci, struct xhci_command *cmd, int slot_id, unsigned int ep_index) xhci_queue_reset_ep() argument
H A Dxhci-trace.h87 __field(int, slot_id)
100 __entry->slot_id = udev->slot_id;
H A Dxhci.c1225 if (!udev->slot_id || !xhci->devs[udev->slot_id]) { xhci_check_args()
1231 virt_dev = xhci->devs[udev->slot_id]; xhci_check_args()
1255 static int xhci_check_maxpacket(struct xhci_hcd *xhci, unsigned int slot_id, xhci_check_maxpacket() argument
1266 out_ctx = xhci->devs[slot_id]->out_ctx; xhci_check_maxpacket()
1291 command->in_ctx = xhci->devs[slot_id]->in_ctx; xhci_check_maxpacket()
1300 xhci_endpoint_copy(xhci, xhci->devs[slot_id]->in_ctx, xhci_check_maxpacket()
1301 xhci->devs[slot_id]->out_ctx, ep_index); xhci_check_maxpacket()
1310 xhci_dbg(xhci, "Slot %d input context\n", slot_id); xhci_check_maxpacket()
1312 xhci_dbg(xhci, "Slot %d output context\n", slot_id); xhci_check_maxpacket()
1339 unsigned int slot_id, ep_index; xhci_urb_enqueue() local
1347 slot_id = urb->dev->slot_id; xhci_urb_enqueue()
1392 ret = xhci_check_maxpacket(xhci, slot_id, xhci_urb_enqueue()
1408 slot_id, ep_index); xhci_urb_enqueue()
1416 if (xhci->devs[slot_id]->eps[ep_index].ep_state & xhci_urb_enqueue()
1421 } else if (xhci->devs[slot_id]->eps[ep_index].ep_state & xhci_urb_enqueue()
1429 slot_id, ep_index); xhci_urb_enqueue()
1439 slot_id, ep_index); xhci_urb_enqueue()
1448 slot_id, ep_index); xhci_urb_enqueue()
1474 unsigned int slot_id; xhci_urb_to_transfer_ring() local
1479 slot_id = urb->dev->slot_id; xhci_urb_to_transfer_ring()
1482 ep = &xhci->devs[slot_id]->eps[ep_index]; xhci_urb_to_transfer_ring()
1491 slot_id, ep_index); xhci_urb_to_transfer_ring()
1502 slot_id, ep_index, xhci_urb_to_transfer_ring()
1564 i < urb_priv->length && xhci->devs[urb->dev->slot_id]; xhci_urb_dequeue()
1594 ep = &xhci->devs[urb->dev->slot_id]->eps[ep_index]; xhci_urb_dequeue()
1632 xhci_queue_stop_endpoint(xhci, command, urb->dev->slot_id, xhci_urb_dequeue()
1652 * the xhci->devs[slot_id] structure.
1681 in_ctx = xhci->devs[udev->slot_id]->in_ctx; xhci_drop_endpoint()
1682 out_ctx = xhci->devs[udev->slot_id]->out_ctx; xhci_drop_endpoint()
1700 if (xhci->devs[udev->slot_id]->eps[ep_index].ring != NULL) xhci_drop_endpoint()
1712 xhci_endpoint_zero(xhci, xhci->devs[udev->slot_id], ep); xhci_drop_endpoint()
1716 udev->slot_id, xhci_drop_endpoint()
1733 * for mutual exclusion to protect the xhci->devs[slot_id] structure.
1768 virt_dev = xhci->devs[udev->slot_id]; xhci_add_endpoint()
1825 udev->slot_id, xhci_add_endpoint()
1919 struct xhci_virt_device *virt_dev = xhci->devs[udev->slot_id]; xhci_evaluate_context_result()
2240 virt_dev->tt_info->slot_id, xhci_check_bw_table()
2411 xhci->devs[udev->slot_id]->bw_table->ss_bw_in -= xhci_drop_ep_from_interval_table()
2414 xhci->devs[udev->slot_id]->bw_table->ss_bw_out -= xhci_drop_ep_from_interval_table()
2475 xhci->devs[udev->slot_id]->bw_table->ss_bw_in += xhci_add_ep_to_interval_table()
2478 xhci->devs[udev->slot_id]->bw_table->ss_bw_out += xhci_add_ep_to_interval_table()
2659 virt_dev = xhci->devs[udev->slot_id]; xhci_configure_endpoint()
2689 udev->slot_id, must_succeed); xhci_configure_endpoint()
2693 udev->slot_id, must_succeed); xhci_configure_endpoint()
2750 * else should be touching the xhci->devs[slot_id] structure, so we
2772 virt_dev = xhci->devs[udev->slot_id]; xhci_check_bandwidth()
2869 virt_dev = xhci->devs[udev->slot_id]; xhci_reset_bandwidth()
2896 unsigned int slot_id, unsigned int ep_index, xhci_setup_input_ctx_for_quirk()
2905 in_ctx = xhci->devs[slot_id]->in_ctx; xhci_setup_input_ctx_for_quirk()
2913 xhci_endpoint_copy(xhci, xhci->devs[slot_id]->in_ctx, xhci_setup_input_ctx_for_quirk()
2914 xhci->devs[slot_id]->out_ctx, ep_index); xhci_setup_input_ctx_for_quirk()
2929 xhci_setup_input_ctx_for_config_ep(xhci, xhci->devs[slot_id]->in_ctx, xhci_setup_input_ctx_for_quirk()
2930 xhci->devs[slot_id]->out_ctx, ctrl_ctx, xhci_setup_input_ctx_for_quirk()
2943 ep = &xhci->devs[udev->slot_id]->eps[ep_index]; xhci_cleanup_stalled_ring()
2947 xhci_find_new_dequeue_state(xhci, udev->slot_id, xhci_cleanup_stalled_ring()
2959 xhci_queue_new_dequeue_state(xhci, udev->slot_id, xhci_cleanup_stalled_ring()
2970 xhci_setup_input_ctx_for_quirk(xhci, udev->slot_id, xhci_cleanup_stalled_ring()
3006 unsigned int slot_id) xhci_check_streams_endpoint()
3025 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; xhci_check_streams_endpoint()
3035 if (!list_empty(&xhci->devs[slot_id]->eps[ep_index].ring->td_list)) { xhci_check_streams_endpoint()
3082 eps[i], udev->slot_id); xhci_calculate_streams_and_bitmask()
3107 unsigned int slot_id; xhci_calculate_no_streams_bitmask() local
3112 slot_id = udev->slot_id; xhci_calculate_no_streams_bitmask()
3113 if (!xhci->devs[slot_id]) xhci_calculate_no_streams_bitmask()
3118 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; xhci_calculate_no_streams_bitmask()
3223 vdev = xhci->devs[udev->slot_id]; xhci_alloc_streams()
3288 udev->slot_id, ep_index); xhci_alloc_streams()
3334 vdev = xhci->devs[udev->slot_id]; xhci_free_streams()
3364 xhci->devs[udev->slot_id]->eps[ep_index].ep_state |= xhci_free_streams()
3457 unsigned int slot_id; xhci_discover_or_reset_device() local
3468 slot_id = udev->slot_id; xhci_discover_or_reset_device()
3469 virt_dev = xhci->devs[slot_id]; xhci_discover_or_reset_device()
3472 "not exist. Re-allocate the device\n", slot_id); xhci_discover_or_reset_device()
3490 slot_id); xhci_discover_or_reset_device()
3504 xhci_dbg(xhci, "Resetting device with slot ID %u\n", slot_id); xhci_discover_or_reset_device()
3520 ret = xhci_queue_reset_device(xhci, reset_device_cmd, slot_id); xhci_discover_or_reset_device()
3546 slot_id, xhci_discover_or_reset_device()
3647 virt_dev = xhci->devs[udev->slot_id]; xhci_free_dev()
3660 xhci_free_virt_device(xhci, udev->slot_id); xhci_free_dev()
3667 udev->slot_id)) { xhci_free_dev()
3712 int ret, slot_id; xhci_alloc_dev() local
3719 /* xhci->slot_id and xhci->addr_dev are not thread-safe */ xhci_alloc_dev()
3735 slot_id = xhci->slot_id; xhci_alloc_dev()
3738 if (!slot_id || command->status != COMP_SUCCESS) { xhci_alloc_dev()
3763 if (!xhci_alloc_virt_device(xhci, slot_id, udev, GFP_NOIO)) { xhci_alloc_dev()
3767 udev->slot_id = slot_id; xhci_alloc_dev()
3790 udev->slot_id)) xhci_alloc_dev()
3820 if (!udev->slot_id) { xhci_setup_device()
3822 "Bad Slot ID %d", udev->slot_id); xhci_setup_device()
3827 virt_dev = xhci->devs[udev->slot_id]; xhci_setup_device()
3835 xhci_warn(xhci, "Virt dev invalid for slot_id 0x%x!\n", xhci_setup_device()
3836 udev->slot_id); xhci_setup_device()
3880 xhci_dbg(xhci, "Slot ID %d Input Context:\n", udev->slot_id); xhci_setup_device()
3887 udev->slot_id, setup); xhci_setup_device()
3913 act, udev->slot_id); xhci_setup_device()
3933 xhci_dbg(xhci, "Slot ID %d Output Context:\n", udev->slot_id); xhci_setup_device()
3946 udev->slot_id, xhci_setup_device()
3947 &xhci->dcbaa->dev_context_ptrs[udev->slot_id], xhci_setup_device()
3949 le64_to_cpu(xhci->dcbaa->dev_context_ptrs[udev->slot_id])); xhci_setup_device()
3953 xhci_dbg(xhci, "Slot ID %d Input Context:\n", udev->slot_id); xhci_setup_device()
3957 xhci_dbg(xhci, "Slot ID %d Output Context:\n", udev->slot_id); xhci_setup_device()
4027 virt_dev = xhci->devs[udev->slot_id]; xhci_change_max_exit_latency()
4061 xhci_dbg(xhci, "Slot %u Input Context:\n", udev->slot_id); xhci_change_max_exit_latency()
4067 xhci_dbg(xhci, "Slot %u Output Context:\n", udev->slot_id); xhci_change_max_exit_latency()
4217 pm_val |= PORT_HIRD(hird) | PORT_RWE | PORT_L1DS(udev->slot_id); xhci_set_usb2_hardware_lpm()
4688 !xhci->devs[udev->slot_id]) xhci_enable_usb3_lpm_timeout()
4714 !xhci->devs[udev->slot_id]) xhci_disable_usb3_lpm_timeout()
4770 vdev = xhci->devs[hdev->slot_id]; xhci_update_hub_device()
4840 xhci_dbg(xhci, "Slot %u Input Context:\n", hdev->slot_id); xhci_update_hub_device()
4853 xhci_dbg(xhci, "Slot %u Output Context:\n", hdev->slot_id); xhci_update_hub_device()
2895 xhci_setup_input_ctx_for_quirk(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, struct xhci_dequeue_state *deq_state) xhci_setup_input_ctx_for_quirk() argument
3004 xhci_check_streams_endpoint(struct xhci_hcd *xhci, struct usb_device *udev, struct usb_host_endpoint *ep, unsigned int slot_id) xhci_check_streams_endpoint() argument
H A Dxhci-mem.c842 int slot_id) xhci_free_tt_info()
860 if (tt_info->slot_id == slot_id) { list_for_each_entry_safe()
893 tt_info->slot_id = virt_dev->udev->slot_id; xhci_alloc_tt_info()
903 xhci_free_tt_info(xhci, virt_dev, virt_dev->udev->slot_id); xhci_alloc_tt_info()
913 void xhci_free_virt_device(struct xhci_hcd *xhci, int slot_id) xhci_free_virt_device() argument
920 if (slot_id == 0 || !xhci->devs[slot_id]) xhci_free_virt_device()
923 dev = xhci->devs[slot_id]; xhci_free_virt_device()
924 xhci->dcbaa->dev_context_ptrs[slot_id] = 0; xhci_free_virt_device()
945 slot_id, i); xhci_free_virt_device()
948 xhci_free_tt_info(xhci, dev, slot_id); xhci_free_virt_device()
963 kfree(xhci->devs[slot_id]); xhci_free_virt_device()
964 xhci->devs[slot_id] = NULL; xhci_free_virt_device()
967 int xhci_alloc_virt_device(struct xhci_hcd *xhci, int slot_id, xhci_alloc_virt_device() argument
974 if (slot_id == 0 || xhci->devs[slot_id]) { xhci_alloc_virt_device()
975 xhci_warn(xhci, "Bad Slot ID %d\n", slot_id); xhci_alloc_virt_device()
979 xhci->devs[slot_id] = kzalloc(sizeof(*xhci->devs[slot_id]), flags); xhci_alloc_virt_device()
980 if (!xhci->devs[slot_id]) xhci_alloc_virt_device()
982 dev = xhci->devs[slot_id]; xhci_alloc_virt_device()
989 xhci_dbg(xhci, "Slot %d output ctx = 0x%llx (dma)\n", slot_id, xhci_alloc_virt_device()
997 xhci_dbg(xhci, "Slot %d input ctx = 0x%llx (dma)\n", slot_id, xhci_alloc_virt_device()
1024 xhci->dcbaa->dev_context_ptrs[slot_id] = cpu_to_le64(dev->out_ctx->dma); xhci_alloc_virt_device()
1026 slot_id, xhci_alloc_virt_device()
1027 &xhci->dcbaa->dev_context_ptrs[slot_id], xhci_alloc_virt_device()
1028 le64_to_cpu(xhci->dcbaa->dev_context_ptrs[slot_id])); xhci_alloc_virt_device()
1032 xhci_free_virt_device(xhci, slot_id); xhci_alloc_virt_device()
1043 virt_dev = xhci->devs[udev->slot_id]; xhci_copy_ep0_dequeue_into_input_ctx()
1097 dev = xhci->devs[udev->slot_id]; xhci_setup_addressable_virt_dev()
1099 if (udev->slot_id == 0 || !dev) { xhci_setup_addressable_virt_dev()
1101 udev->slot_id); xhci_setup_addressable_virt_dev()
1164 if (tt_bw->slot_id != udev->tt->hub->slot_id) xhci_setup_addressable_virt_dev()
1181 slot_ctx->tt_info = cpu_to_le32(udev->tt->hub->slot_id | xhci_setup_addressable_virt_dev()
840 xhci_free_tt_info(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int slot_id) xhci_free_tt_info() argument
H A Dxhci.h967 int slot_id; member in struct:xhci_tt_bw_info
1506 int slot_id; member in struct:xhci_hcd
1673 unsigned int slot_id, unsigned int ep_index,
1681 void xhci_free_virt_device(struct xhci_hcd *xhci, int slot_id);
1682 int xhci_alloc_virt_device(struct xhci_hcd *xhci, int slot_id, struct usb_device *udev, gfp_t flags);
1808 u32 trb_type, u32 slot_id);
1810 dma_addr_t in_ctx_ptr, u32 slot_id, enum xhci_setup_dev);
1814 int slot_id, unsigned int ep_index, int suspend);
1816 int slot_id, unsigned int ep_index);
1818 int slot_id, unsigned int ep_index);
1820 int slot_id, unsigned int ep_index);
1822 struct urb *urb, int slot_id, unsigned int ep_index);
1824 struct xhci_command *cmd, dma_addr_t in_ctx_ptr, u32 slot_id,
1827 dma_addr_t in_ctx_ptr, u32 slot_id, bool command_must_succeed);
1829 int slot_id, unsigned int ep_index);
1831 u32 slot_id);
1833 unsigned int slot_id, unsigned int ep_index,
1837 unsigned int slot_id, unsigned int ep_index,
1843 unsigned int slot_id, unsigned int ep_index,
1848 void xhci_ring_ep_doorbell(struct xhci_hcd *xhci, unsigned int slot_id,
1877 void xhci_ring_device(struct xhci_hcd *xhci, int slot_id);
H A Dxhci-dbg.c370 unsigned int slot_id, unsigned int ep_index, xhci_dbg_ep_rings()
380 slot_id, ep_index, i); xhci_dbg_ep_rings()
388 slot_id, ep_index); xhci_dbg_ep_rings()
369 xhci_dbg_ep_rings(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, struct xhci_virt_ep *ep) xhci_dbg_ep_rings() argument
/linux-4.1.27/drivers/fmc/
H A Dfmc-dump.c53 fmc->carrier_name, fmc->slot_id, dev_name(&fmc->dev)); fmc_dump_eeprom()
91 fmc->carrier_name, fmc->slot_id, dev_name(&fmc->dev)); fmc_dump_sdb()
H A Dfmc-core.c172 fmc->slot_id); fmc_device_register_n()
177 fmc->slot_id); fmc_device_register_n()
182 fmc->slot_id); fmc_device_register_n()
227 "\"%s\"\n", fmc->slot_id, fmc->dev.kobj.name); fmc_device_register_n()
H A Dfmc-match.c75 dev_info(fmc->hwdev, "mezzanine %i\n", fmc->slot_id); /* header */ fmc_fill_id_info()
H A Dfmc-fakedev.c291 fmc->slot_id = i; ff_dev_create()
/linux-4.1.27/drivers/pci/hotplug/
H A Dacpiphp_ibm.c72 u16 slot_id; member in struct:apci_descriptor::__anon8255
182 ibm_slot->slot.slot_num, ibm_slot->slot.slot_id, ibm_set_attention_status()
186 args[0].integer.value = ibm_slot->slot.slot_id; ibm_set_attention_status()
227 ibm_slot->slot.slot_num, ibm_slot->slot.slot_id, ibm_get_attention_status()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
H A Dfwsignal.c621 struct sk_buff *pkt, u32 slot_id) brcmf_fws_hanger_pushpkt()
623 if (slot_id >= BRCMF_FWS_HANGER_MAXITEMS) brcmf_fws_hanger_pushpkt()
626 if (h->items[slot_id].state != BRCMF_FWS_HANGER_ITEM_STATE_FREE) { brcmf_fws_hanger_pushpkt()
632 h->items[slot_id].state = BRCMF_FWS_HANGER_ITEM_STATE_INUSE; brcmf_fws_hanger_pushpkt()
633 h->items[slot_id].pkt = pkt; brcmf_fws_hanger_pushpkt()
639 u32 slot_id, struct sk_buff **pktout, brcmf_fws_hanger_poppkt()
642 if (slot_id >= BRCMF_FWS_HANGER_MAXITEMS) brcmf_fws_hanger_poppkt()
645 if (h->items[slot_id].state == BRCMF_FWS_HANGER_ITEM_STATE_FREE) { brcmf_fws_hanger_poppkt()
651 *pktout = h->items[slot_id].pkt; brcmf_fws_hanger_poppkt()
653 h->items[slot_id].state = BRCMF_FWS_HANGER_ITEM_STATE_FREE; brcmf_fws_hanger_poppkt()
654 h->items[slot_id].pkt = NULL; brcmf_fws_hanger_poppkt()
661 u32 slot_id) brcmf_fws_hanger_mark_suppressed()
663 if (slot_id >= BRCMF_FWS_HANGER_MAXITEMS) brcmf_fws_hanger_mark_suppressed()
666 if (h->items[slot_id].state == BRCMF_FWS_HANGER_ITEM_STATE_FREE) { brcmf_fws_hanger_mark_suppressed()
671 h->items[slot_id].state = BRCMF_FWS_HANGER_ITEM_STATE_INUSE_SUPPRESSED; brcmf_fws_hanger_mark_suppressed()
620 brcmf_fws_hanger_pushpkt(struct brcmf_fws_hanger *h, struct sk_buff *pkt, u32 slot_id) brcmf_fws_hanger_pushpkt() argument
638 brcmf_fws_hanger_poppkt(struct brcmf_fws_hanger *h, u32 slot_id, struct sk_buff **pktout, bool remove_item) brcmf_fws_hanger_poppkt() argument
660 brcmf_fws_hanger_mark_suppressed(struct brcmf_fws_hanger *h, u32 slot_id) brcmf_fws_hanger_mark_suppressed() argument
/linux-4.1.27/drivers/ipack/carriers/
H A Dtpci200.h131 * @slot_id Slot identification gived to external interface
/linux-4.1.27/drivers/gpu/drm/qxl/
H A Dqxl_drv.h374 int slot_id = bo->type == QXL_GEM_DOMAIN_VRAM ? qdev->main_mem_slot : qdev->surfaces_mem_slot; qxl_bo_physical_address() local
375 struct qxl_memslot *slot = &(qdev->mem_slots[slot_id]); qxl_bo_physical_address()
H A Dqxl_cmd.c514 int slot_id = surf->type == QXL_GEM_DOMAIN_VRAM ? qdev->main_mem_slot : qdev->surfaces_mem_slot; qxl_hw_surface_alloc() local
515 struct qxl_memslot *slot = &(qdev->mem_slots[slot_id]); qxl_hw_surface_alloc()
/linux-4.1.27/drivers/mmc/host/
H A Datmel-mci.c530 u32 slot_id; atmci_of_init() local
544 if (of_property_read_u32(cnp, "reg", &slot_id)) { for_each_child_of_node()
550 if (slot_id >= ATMCI_MAX_NR_SLOTS) { for_each_child_of_node()
557 &pdata->slot[slot_id].bus_width)) for_each_child_of_node()
558 pdata->slot[slot_id].bus_width = 1; for_each_child_of_node()
560 pdata->slot[slot_id].detect_pin = for_each_child_of_node()
563 pdata->slot[slot_id].detect_is_active_high = for_each_child_of_node()
566 pdata->slot[slot_id].non_removable = for_each_child_of_node()
569 pdata->slot[slot_id].wp_pin = for_each_child_of_node()
/linux-4.1.27/drivers/scsi/device_handler/
H A Dscsi_dh_rdac.c128 u8 slot_id[SLOT_ID_LEN]; member in struct:c4_inquiry
508 if (inqp->slot_id[1] == 0x31) initialize_controller()
/linux-4.1.27/arch/powerpc/include/asm/
H A Dopal.h143 int64_t opal_set_slot_led_status(uint64_t phb_id, uint64_t slot_id, uint8_t led_type, uint8_t led_action);
/linux-4.1.27/include/linux/
H A Dfmc.h173 int slot_id; /* Index in the slot array */ member in struct:fmc_device
H A Dusb.h524 * @slot_id: Slot ID assigned by xHCI
606 int slot_id; member in struct:usb_device
/linux-4.1.27/drivers/media/dvb-core/
H A Ddvb_ca_en50221.c1300 /* Incoming packet has a 2 byte header. hdr[0] = slot_id, hdr[1] = connection_id */ dvb_ca_en50221_io_write()
1444 /* Outgoing packet has a 2 byte header. hdr[0] = slot_id, hdr[1] = connection_id */ dvb_ca_en50221_io_read()

Completed in 1287 milliseconds