Lines Matching defs:pvscsi_softc
112 struct pvscsi_softc;
118 static inline uint32_t pvscsi_reg_read(struct pvscsi_softc *sc,
120 static inline void pvscsi_reg_write(struct pvscsi_softc *sc, uint32_t offset,
122 static inline uint32_t pvscsi_read_intr_status(struct pvscsi_softc *sc);
123 static inline void pvscsi_write_intr_status(struct pvscsi_softc *sc,
125 static inline void pvscsi_intr_enable(struct pvscsi_softc *sc);
126 static inline void pvscsi_intr_disable(struct pvscsi_softc *sc);
127 static void pvscsi_kick_io(struct pvscsi_softc *sc, uint8_t cdb0);
128 static void pvscsi_write_cmd(struct pvscsi_softc *sc, uint32_t cmd, void *data,
130 static uint32_t pvscsi_get_max_targets(struct pvscsi_softc *sc);
131 static int pvscsi_setup_req_call(struct pvscsi_softc *sc, uint32_t enable);
132 static void pvscsi_setup_rings(struct pvscsi_softc *sc);
133 static void pvscsi_setup_msg_ring(struct pvscsi_softc *sc);
134 static int pvscsi_hw_supports_msg(struct pvscsi_softc *sc);
137 static void pvscsi_adapter_reset(struct pvscsi_softc *sc);
138 static void pvscsi_bus_reset(struct pvscsi_softc *sc);
139 static void pvscsi_device_reset(struct pvscsi_softc *sc, uint32_t target);
140 static void pvscsi_abort(struct pvscsi_softc *sc, uint32_t target,
143 static void pvscsi_process_completion(struct pvscsi_softc *sc,
145 static void pvscsi_process_cmp_ring(struct pvscsi_softc *sc);
146 static void pvscsi_process_msg(struct pvscsi_softc *sc,
148 static void pvscsi_process_msg_ring(struct pvscsi_softc *sc);
150 static void pvscsi_intr_locked(struct pvscsi_softc *sc);
156 static inline uint64_t pvscsi_hcb_to_context(struct pvscsi_softc *sc,
158 static inline struct pvscsi_hcb *pvscsi_context_to_hcb(struct pvscsi_softc *sc,
160 static struct pvscsi_hcb * pvscsi_hcb_get(struct pvscsi_softc *sc);
161 static void pvscsi_hcb_put(struct pvscsi_softc *sc, struct pvscsi_hcb *hcb);
163 static void pvscsi_dma_free(struct pvscsi_softc *sc, struct pvscsi_dma *dma);
164 static int pvscsi_dma_alloc(struct pvscsi_softc *sc, struct pvscsi_dma *dma,
166 static int pvscsi_dma_alloc_ppns(struct pvscsi_softc *sc,
168 static void pvscsi_dma_free_per_hcb(struct pvscsi_softc *sc,
170 static int pvscsi_dma_alloc_per_hcb(struct pvscsi_softc *sc);
171 static void pvscsi_free_rings(struct pvscsi_softc *sc);
172 static int pvscsi_allocate_rings(struct pvscsi_softc *sc);
173 static void pvscsi_free_interrupts(struct pvscsi_softc *sc);
174 static int pvscsi_setup_interrupts(struct pvscsi_softc *sc, const struct pci_attach_args *);
175 static void pvscsi_free_all(struct pvscsi_softc *sc);
247 struct pvscsi_softc *sc;
271 struct pvscsi_softc {
319 CFATTACH_DECL3_NEW(pvscsi, sizeof(struct pvscsi_softc),
336 pvscsi_reg_read(struct pvscsi_softc *sc, uint32_t offset)
343 pvscsi_reg_write(struct pvscsi_softc *sc, uint32_t offset, uint32_t val)
350 pvscsi_read_intr_status(struct pvscsi_softc *sc)
357 pvscsi_write_intr_status(struct pvscsi_softc *sc, uint32_t val)
364 pvscsi_intr_enable(struct pvscsi_softc *sc)
377 pvscsi_intr_disable(struct pvscsi_softc *sc)
384 pvscsi_kick_io(struct pvscsi_softc *sc, uint8_t cdb0)
432 pvscsi_write_cmd(struct pvscsi_softc *sc, uint32_t cmd, void *data,
451 static inline uint64_t pvscsi_hcb_to_context(struct pvscsi_softc *sc,
459 static inline struct pvscsi_hcb* pvscsi_context_to_hcb(struct pvscsi_softc *sc,
467 pvscsi_hcb_get(struct pvscsi_softc *sc)
482 pvscsi_hcb_put(struct pvscsi_softc *sc, struct pvscsi_hcb *hcb)
493 pvscsi_get_max_targets(struct pvscsi_softc *sc)
508 static int pvscsi_setup_req_call(struct pvscsi_softc *sc, uint32_t enable)
545 pvscsi_dma_free(struct pvscsi_softc *sc, struct pvscsi_dma *dma)
557 pvscsi_dma_alloc(struct pvscsi_softc *sc, struct pvscsi_dma *dma,
612 pvscsi_dma_alloc_ppns(struct pvscsi_softc *sc, struct pvscsi_dma *dma,
639 pvscsi_dma_free_per_hcb(struct pvscsi_softc *sc, uint32_t hcbs_allocated)
654 pvscsi_dma_alloc_per_hcb(struct pvscsi_softc *sc)
723 pvscsi_free_rings(struct pvscsi_softc *sc)
745 pvscsi_allocate_rings(struct pvscsi_softc *sc)
797 pvscsi_setup_rings(struct pvscsi_softc *sc)
832 pvscsi_hw_supports_msg(struct pvscsi_softc *sc)
844 pvscsi_setup_msg_ring(struct pvscsi_softc *sc)
871 pvscsi_adapter_reset(struct pvscsi_softc *sc)
885 pvscsi_bus_reset(struct pvscsi_softc *sc)
897 pvscsi_device_reset(struct pvscsi_softc *sc, uint32_t target)
914 pvscsi_abort(struct pvscsi_softc *sc, uint32_t target, struct pvscsi_hcb *hcb)
964 struct pvscsi_softc *sc = hcb->sc;
1003 pvscsi_process_completion(struct pvscsi_softc *sc,
1152 pvscsi_process_cmp_ring(struct pvscsi_softc *sc)
1209 pvscsi_process_msg(struct pvscsi_softc *sc, struct pvscsi_ring_msg_desc *e)
1247 pvscsi_process_msg_ring(struct pvscsi_softc *sc)
1299 pvscsi_intr_locked(struct pvscsi_softc *sc)
1319 struct pvscsi_softc *sc;
1334 struct pvscsi_softc *sc = device_private(chan->chan_adapter->adapt_dev);
1547 pvscsi_free_interrupts(struct pvscsi_softc *sc)
1561 pvscsi_setup_interrupts(struct pvscsi_softc *sc, const struct pci_attach_args *pa)
1627 pvscsi_free_all(struct pvscsi_softc *sc)
1663 struct pvscsi_softc *sc;
1825 struct pvscsi_softc *sc;