Lines Matching defs:ixpnpe_softc
105 struct ixpnpe_softc {
126 static struct ixpnpe_softc *npes[NPE_MAX];
194 static int npe_checkbits(struct ixpnpe_softc *, uint32_t reg, uint32_t);
195 static int npe_isstopped(struct ixpnpe_softc *);
196 static int npe_load_ins(struct ixpnpe_softc *,
198 static int npe_load_data(struct ixpnpe_softc *,
200 static int npe_load_stateinfo(struct ixpnpe_softc *,
202 static int npe_load_image(struct ixpnpe_softc *,
204 static int npe_cpu_reset(struct ixpnpe_softc *);
205 static int npe_cpu_start(struct ixpnpe_softc *);
206 static int npe_cpu_stop(struct ixpnpe_softc *);
207 static void npe_cmd_issue_write(struct ixpnpe_softc *,
209 static uint32_t npe_cmd_issue_read(struct ixpnpe_softc *,
211 static int npe_ins_write(struct ixpnpe_softc *,
213 static int npe_data_write(struct ixpnpe_softc *,
215 static void npe_ecs_reg_write(struct ixpnpe_softc *,
217 static uint32_t npe_ecs_reg_read(struct ixpnpe_softc *, uint32_t reg);
218 static void npe_issue_cmd(struct ixpnpe_softc *, uint32_t command);
219 static void npe_cpu_step_save(struct ixpnpe_softc *);
220 static int npe_cpu_step(struct ixpnpe_softc *, uint32_t npeInstruction,
222 static void npe_cpu_step_restore(struct ixpnpe_softc *);
223 static int npe_logical_reg_read(struct ixpnpe_softc *,
226 static int npe_logical_reg_write(struct ixpnpe_softc *,
229 static int npe_physical_reg_write(struct ixpnpe_softc *,
231 static int npe_ctx_reg_write(struct ixpnpe_softc *, uint32_t ctxtNum,
237 npe_reg_read(struct ixpnpe_softc *sc, bus_size_t off)
245 npe_reg_write(struct ixpnpe_softc *sc, bus_size_t off, uint32_t val)
251 struct ixpnpe_softc *
285 struct ixpnpe_softc *sc;
301 sc = malloc(sizeof(struct ixpnpe_softc), M_TEMP, M_WAITOK | M_ZERO);
345 ixpnpe_detach(struct ixpnpe_softc *sc)
362 ixpnpe_stopandreset(struct ixpnpe_softc *sc)
379 ixpnpe_start_locked(struct ixpnpe_softc *sc)
395 ixpnpe_start(struct ixpnpe_softc *sc)
406 ixpnpe_stop(struct ixpnpe_softc *sc)
436 npe_findimage(struct ixpnpe_softc *sc,
468 ixpnpe_load_firmware(struct ixpnpe_softc *sc, const char *imageName,
547 ixpnpe_init(struct ixpnpe_softc *sc)
598 ixpnpe_getfunctionality(struct ixpnpe_softc *sc)
604 npe_checkbits(struct ixpnpe_softc *sc, uint32_t reg, uint32_t expectedBitsSet)
616 npe_isstopped(struct ixpnpe_softc *sc)
623 npe_load_ins(struct ixpnpe_softc *sc,
647 npe_load_data(struct ixpnpe_softc *sc,
670 npe_load_stateinfo(struct ixpnpe_softc *sc,
723 npe_load_image(struct ixpnpe_softc *sc,
829 npe_cpu_reset(struct ixpnpe_softc *sc)
978 npe_cpu_start(struct ixpnpe_softc *sc)
1012 npe_cpu_stop(struct ixpnpe_softc *sc)
1038 npe_cmd_issue_write(struct ixpnpe_softc *sc,
1047 npe_cmd_issue_read(struct ixpnpe_softc *sc, uint32_t cmd, uint32_t addr)
1060 npe_ins_write(struct ixpnpe_softc *sc, uint32_t addr, uint32_t data, int verify)
1090 npe_data_write(struct ixpnpe_softc *sc, uint32_t addr, uint32_t data, int verify)
1107 npe_ecs_reg_write(struct ixpnpe_softc *sc, uint32_t reg, uint32_t data)
1113 npe_ecs_reg_read(struct ixpnpe_softc *sc, uint32_t reg)
1119 npe_issue_cmd(struct ixpnpe_softc *sc, uint32_t command)
1125 npe_cpu_step_save(struct ixpnpe_softc *sc)
1143 npe_cpu_step(struct ixpnpe_softc *sc, uint32_t npeInstruction,
1198 npe_cpu_step_restore(struct ixpnpe_softc *sc)
1214 npe_logical_reg_read(struct ixpnpe_softc *sc,
1260 npe_logical_reg_write(struct ixpnpe_softc *sc, uint32_t regAddr, uint32_t regVal,
1340 npe_physical_reg_write(struct ixpnpe_softc *sc,
1363 npe_ctx_reg_write(struct ixpnpe_softc *sc, uint32_t ctxtNum,
1406 ofifo_wait(struct ixpnpe_softc *sc)
1421 getmsg(struct ixpnpe_softc *sc, uint32_t msg[2])
1439 struct ixpnpe_softc *sc = arg;
1463 ififo_wait(struct ixpnpe_softc *sc)
1478 putmsg(struct ixpnpe_softc *sc, const uint32_t msg[2])
1498 ixpnpe_sendandrecvmsg_sync(struct ixpnpe_softc *sc,
1516 ixpnpe_sendmsg_async(struct ixpnpe_softc *sc, const uint32_t msg[2])
1528 recvmsg_locked(struct ixpnpe_softc *sc, uint32_t msg[2])
1548 ixpnpe_recvmsg_async(struct ixpnpe_softc *sc, uint32_t msg[2])
1564 ixpnpe_recvmsg_sync(struct ixpnpe_softc *sc, uint32_t msg[2])