Lines Matching refs:slot
150 int slot; member
279 static void ptd_read(void __iomem *base, u32 ptd_offset, u32 slot, in ptd_read() argument
283 ISP_BANK(0) + ptd_offset + slot*sizeof(*ptd)); in ptd_read()
285 bank_reads8(base, ptd_offset + slot*sizeof(*ptd), ISP_BANK(0), in ptd_read()
289 static void ptd_write(void __iomem *base, u32 ptd_offset, u32 slot, in ptd_write() argument
292 mem_writes8(base, ptd_offset + slot*sizeof(*ptd) + sizeof(ptd->dw0), in ptd_write()
297 mem_writes8(base, ptd_offset + slot*sizeof(*ptd), &ptd->dw0, in ptd_write()
423 qh->slot = -1; in qh_alloc()
431 WARN_ON(qh->slot > -1); in qh_free()
720 static void start_bus_transfer(struct usb_hcd *hcd, u32 ptd_offset, int slot, in start_bus_transfer() argument
728 WARN_ON((slot < 0) || (slot > 31)); in start_bus_transfer()
730 WARN_ON(slots[slot].qtd); in start_bus_transfer()
731 WARN_ON(slots[slot].qh); in start_bus_transfer()
738 priv->atl_done_map &= ~(1 << slot); in start_bus_transfer()
742 priv->int_done_map &= ~(1 << slot); in start_bus_transfer()
745 qh->slot = slot; in start_bus_transfer()
747 slots[slot].timestamp = jiffies; in start_bus_transfer()
748 slots[slot].qtd = qtd; in start_bus_transfer()
749 slots[slot].qh = qh; in start_bus_transfer()
750 ptd_write(hcd->regs, ptd_offset, slot, ptd); in start_bus_transfer()
754 skip_map &= ~(1 << qh->slot); in start_bus_transfer()
758 skip_map &= ~(1 << qh->slot); in start_bus_transfer()
1074 int slot; in handle_done_ptds() local
1092 slot = __ffs(priv->int_done_map); in handle_done_ptds()
1093 priv->int_done_map &= ~(1 << slot); in handle_done_ptds()
1097 if (!slots[slot].qh) { in handle_done_ptds()
1102 ptd_read(hcd->regs, INT_PTD_OFFSET, slot, &ptd); in handle_done_ptds()
1104 slots[slot].qtd->urb); in handle_done_ptds()
1107 slot = __ffs(priv->atl_done_map); in handle_done_ptds()
1108 priv->atl_done_map &= ~(1 << slot); in handle_done_ptds()
1112 if (!slots[slot].qh) { in handle_done_ptds()
1117 ptd_read(hcd->regs, ATL_PTD_OFFSET, slot, &ptd); in handle_done_ptds()
1119 slots[slot].qtd->urb); in handle_done_ptds()
1122 qtd = slots[slot].qtd; in handle_done_ptds()
1123 slots[slot].qtd = NULL; in handle_done_ptds()
1124 qh = slots[slot].qh; in handle_done_ptds()
1125 slots[slot].qh = NULL; in handle_done_ptds()
1126 qh->slot = -1; in handle_done_ptds()
1198 start_bus_transfer(hcd, ptd_offset, slot, slots, qtd, in handle_done_ptds()
1268 int slot; in errata2_function() local
1274 for (slot = 0; slot < 32; slot++) in errata2_function()
1275 if (priv->atl_slots[slot].qh && time_after(jiffies, in errata2_function()
1276 priv->atl_slots[slot].timestamp + in errata2_function()
1278 ptd_read(hcd->regs, ATL_PTD_OFFSET, slot, &ptd); in errata2_function()
1281 priv->atl_done_map |= 1 << slot; in errata2_function()
1585 WARN_ON(qh->slot == -1); in kill_transfer()
1591 skip_map |= (1 << qh->slot); in kill_transfer()
1593 priv->atl_slots[qh->slot].qh = NULL; in kill_transfer()
1594 priv->atl_slots[qh->slot].qtd = NULL; in kill_transfer()
1597 skip_map |= (1 << qh->slot); in kill_transfer()
1599 priv->int_slots[qh->slot].qh = NULL; in kill_transfer()
1600 priv->int_slots[qh->slot].qtd = NULL; in kill_transfer()
1603 qh->slot = -1; in kill_transfer()