Searched refs:pmcs_hw_t (Results 1 - 17 of 17) sorted by relevance

/illumos-gate/usr/src/uts/common/sys/scsi/adapters/pmcs/
H A Dpmcs_proto.h62 pmcs_prt_impl(pmcs_hw_t *, pmcs_prt_level_t, pmcs_phy_t *, pmcs_xscsi_t *,
65 boolean_t pmcs_assign_device(pmcs_hw_t *, pmcs_xscsi_t *);
66 void pmcs_remove_device(pmcs_hw_t *, pmcs_phy_t *);
67 void pmcs_handle_dead_phys(pmcs_hw_t *);
69 int pmcs_acquire_scratch(pmcs_hw_t *, boolean_t);
70 void pmcs_release_scratch(pmcs_hw_t *);
73 pmcwork_t *pmcs_gwork(pmcs_hw_t *, uint32_t, pmcs_phy_t *);
76 void pmcs_pwork(pmcs_hw_t *, struct pmcwork *);
79 pmcwork_t *pmcs_tag2wp(pmcs_hw_t *, uint32_t, boolean_t);
84 int pmcs_abort(pmcs_hw_t *, pmcs_phy_
[all...]
H A Dpmcs_sgl.h73 int pmcs_dma_load(pmcs_hw_t *, pmcs_cmd_t *, uint32_t *);
74 void pmcs_dma_unload(pmcs_hw_t *, pmcs_cmd_t *);
80 void pmcs_idma_chunks(pmcs_hw_t *, pmcs_dmachunk_t *,
H A Dpmcs_smhba.h55 void pmcs_smhba_add_hba_prop(pmcs_hw_t *, data_type_t, char *, void *);
59 void pmcs_smhba_set_scsi_device_props(pmcs_hw_t *, pmcs_phy_t *,
66 void pmcs_smhba_log_sysevent(pmcs_hw_t *, char *, char *, pmcs_phy_t *);
H A Dpmcs_scsa.h46 #define TRAN2PMC(tran) ((pmcs_hw_t *)(tran)->tran_hba_private)
74 int pmcs_scsa_init(pmcs_hw_t *, const ddi_dma_attr_t *);
76 void pmcs_latch_status(pmcs_hw_t *, pmcs_cmd_t *, uint8_t, uint8_t *,
79 boolean_t pmcs_scsa_wq_run_one(pmcs_hw_t *, pmcs_xscsi_t *);
80 void pmcs_scsa_wq_run(pmcs_hw_t *);
83 int pmcs_config_one(pmcs_hw_t *, uint64_t, int, long, dev_info_t **);
85 dev_info_t *pmcs_find_child_smp(pmcs_hw_t *, char *);
86 int pmcs_config_one_smp(pmcs_hw_t *, uint64_t, dev_info_t **);
88 int pmcs_run_sata_special(pmcs_hw_t *, pmcs_xscsi_t *);
H A Dpmcs_reg.h368 uint32_t pmcs_rd_msgunit(pmcs_hw_t *, uint32_t);
369 uint32_t pmcs_rd_gsm_reg(pmcs_hw_t *, uint8_t, uint32_t);
370 uint32_t pmcs_rd_topunit(pmcs_hw_t *, uint32_t);
371 uint32_t pmcs_rd_mpi_tbl(pmcs_hw_t *, uint32_t);
372 uint32_t pmcs_rd_gst_tbl(pmcs_hw_t *, uint32_t);
373 uint32_t pmcs_rd_iqc_tbl(pmcs_hw_t *, uint32_t);
374 uint32_t pmcs_rd_oqc_tbl(pmcs_hw_t *, uint32_t);
375 uint32_t pmcs_rd_iqci(pmcs_hw_t *, uint32_t);
376 uint32_t pmcs_rd_iqpi(pmcs_hw_t *, uint32_t);
377 uint32_t pmcs_rd_oqci(pmcs_hw_t *, uint32_
[all...]
H A Dpmcs.h62 typedef struct pmcs_hw pmcs_hw_t; typedef in typeref:struct:pmcs_hw
125 pmcs_hw_t *pwp;
202 pmcs_hw_t *cq_pwp;
243 pmcs_hw_t *pwp; /* back pointer to HBA state */
H A Dpmcs_def.h125 pmcs_hw_t *pwp; /* back ptr to hba struct */
526 typedef void (*pmcs_cb_t) (pmcs_hw_t *, pmcwork_t *, uint32_t *);
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_attach.c109 static int pmcs_unattach(pmcs_hw_t *);
111 static int pmcs_add_more_chunks(pmcs_hw_t *, unsigned long);
113 static int pmcs_setup_intr(pmcs_hw_t *);
114 static int pmcs_teardown_intr(pmcs_hw_t *);
123 static boolean_t pmcs_fabricate_wwid(pmcs_hw_t *);
128 static void pmcs_fm_fini(pmcs_hw_t *pwp);
129 static void pmcs_fm_init(pmcs_hw_t *pwp);
192 ret = ddi_soft_state_init(&pmcs_softc_state, sizeof (pmcs_hw_t), 1);
262 pmcs_hw_t *pwp;
431 pmcs_hw_t *pw
[all...]
H A Dpmcs_subr.c40 static void pmcs_new_tport(pmcs_hw_t *, pmcs_phy_t *);
41 static void pmcs_configure_expander(pmcs_hw_t *, pmcs_phy_t *, pmcs_iport_t *);
43 static void pmcs_check_expanders(pmcs_hw_t *, pmcs_phy_t *);
44 static void pmcs_check_expander(pmcs_hw_t *, pmcs_phy_t *);
45 static void pmcs_clear_expander(pmcs_hw_t *, pmcs_phy_t *, int);
47 static int pmcs_expander_get_nphy(pmcs_hw_t *, pmcs_phy_t *);
48 static int pmcs_expander_content_discover(pmcs_hw_t *, pmcs_phy_t *,
51 static int pmcs_smp_function_result(pmcs_hw_t *, smp_response_frame_t *);
52 static void pmcs_flush_nonio_cmds(pmcs_hw_t *pwp, pmcs_xscsi_t *tgt);
54 static void pmcs_clear_phys(pmcs_hw_t *, pmcs_phy_
[all...]
H A Dpmcs_fwlog.c32 static int pmcs_dump_ioqs(pmcs_hw_t *, caddr_t, uint32_t);
33 static int pmcs_dump_spc_ver(pmcs_hw_t *, caddr_t, uint32_t);
34 static int pmcs_dump_mpi_table(pmcs_hw_t *, caddr_t, uint32_t);
35 static int pmcs_dump_gsm_conf(pmcs_hw_t *, caddr_t, uint32_t);
36 static int pmcs_dump_pcie_conf(pmcs_hw_t *, caddr_t, uint32_t);
37 static uint32_t pmcs_get_axil(pmcs_hw_t *);
38 static boolean_t pmcs_shift_axil(pmcs_hw_t *, uint32_t);
39 static void pmcs_restore_axil(pmcs_hw_t *, uint32_t);
40 static int pmcs_dump_gsm(pmcs_hw_t *, caddr_t, uint32_t);
41 static int pmcs_dump_gsm_addiregs(pmcs_hw_t *, caddr_
[all...]
H A Dpmcs_smhba.c32 pmcs_smhba_add_hba_prop(pmcs_hw_t *pwp, data_type_t dt,
125 pmcs_smhba_set_scsi_device_props(pmcs_hw_t *pwp, pmcs_phy_t *pptr,
171 pmcs_hw_t *pwp = iport->pwp;
234 pmcs_smhba_log_sysevent(pmcs_hw_t *pwp, char *subclass, char *etype,
H A Dpmcs_ds.c36 pmcs_xscsi_t *tgt, pmcs_hw_t *pwp, const char *func_name,
43 pmcs_get_dev_state(pmcs_hw_t *pwp, pmcs_phy_t *phyp, pmcs_xscsi_t *xp,
138 pmcs_set_dev_state(pmcs_hw_t *pwp, pmcs_phy_t *phyp, pmcs_xscsi_t *xp,
226 pmcs_hw_t *pwp;
258 pmcs_dev_state_recovery(pmcs_hw_t *pwp, pmcs_phy_t *phyp)
498 pmcs_send_err_recovery_cmd(pmcs_hw_t *pwp, uint8_t dev_state, pmcs_phy_t *phyp,
605 pmcs_start_ssp_event_recovery(pmcs_hw_t *pwp, pmcwork_t *pwrk, uint32_t *iomb,
748 pmcs_tgt_event_recovery(pmcs_hw_t *pwp, pmcwork_t *pwrk)
818 pmcs_ssp_event_recovery(pmcs_hw_t *pwp)
929 pmcs_hw_t *pw
[all...]
H A Dpmcs_intr.c104 pmcs_complete_work(pmcs_hw_t *pwp, pmcwork_t *pwrk, uint32_t *iomb, size_t amt)
124 pmcs_work_not_found(pmcs_hw_t *pwp, uint32_t htag, uint32_t *iomb)
164 pmcs_process_io_completion(pmcs_hw_t *pwp, pmcs_iocomp_cb_t *ioccb, size_t amt)
237 pmcs_process_completion(pmcs_hw_t *pwp, void *iomb, size_t amt)
255 pmcs_kill_port(pmcs_hw_t *pwp, int portid)
290 pmcs_process_sas_hw_event(pmcs_hw_t *pwp, void *iomb, size_t amt)
1064 pmcs_process_echo_completion(pmcs_hw_t *pwp, void *iomb, size_t amt)
1082 pmcs_process_ssp_event(pmcs_hw_t *pwp, void *iomb, size_t amt)
1133 pmcs_process_sata_event(pmcs_hw_t *pwp, void *iomb, size_t amt)
1206 pmcs_process_abort_completion(pmcs_hw_t *pw
[all...]
H A Dpmcs_sata.c58 pmcs_sata_special_work(pmcs_hw_t *pwp, pmcs_xscsi_t *xp)
538 pmcs_run_sata_special(pmcs_hw_t *pwp, pmcs_xscsi_t *xp)
557 pmcs_sata_work(pmcs_hw_t *pwp)
605 pmcs_sata_identify(pmcs_hw_t *pwp, pmcs_phy_t *pptr)
621 pmcs_run_sata_cmd(pmcs_hw_t *pwp, pmcs_phy_t *pptr, fis_t fis, uint32_t mode,
H A Dpmcs_nvram.c34 static int pmcs_flash_chunk(pmcs_hw_t *, uint8_t *);
46 pmcs_firmware_update(pmcs_hw_t *pwp)
267 pmcs_fw_flash(pmcs_hw_t *pwp, pmcs_fw_hdr_t *hdr, uint32_t length)
328 pmcs_flash_chunk(pmcs_hw_t *pwp, uint8_t *chunk)
452 pmcs_validate_vpd(pmcs_hw_t *pwp, uint8_t *data)
625 pmcs_get_nvmd(pmcs_hw_t *pwp, pmcs_nvmd_type_t nvmd_type, uint8_t nvmd,
789 pmcs_set_nvmd(pmcs_hw_t *pwp, pmcs_nvmd_type_t nvmd_type, uint8_t *buf,
H A Dpmcs_scsa.c59 static void pmcs_SAS_done(pmcs_hw_t *, pmcwork_t *, uint32_t *);
62 static void pmcs_SATA_done(pmcs_hw_t *, pmcwork_t *, uint32_t *);
65 static void pmcs_ioerror(pmcs_hw_t *, pmcs_dtype_t pmcs_dtype,
70 pmcs_scsa_init(pmcs_hw_t *pwp, const ddi_dma_attr_t *ap)
153 pmcs_hw_t *pwp = NULL;
414 pmcs_hw_t *pwp;
505 pmcs_hw_t *pwp = ADDR2PMC(ap);
625 pmcs_hw_t *pwp = ADDR2PMC(ap);
751 pmcs_hw_t *pwp = ADDR2PMC(ap);
837 pmcs_hw_t *pw
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/pmcs/
H A Dpmcs.c63 static pmcs_hw_t ss;
2379 if (mdb_vread(&ss, sizeof (pmcs_hw_t), wsp->walk_addr) !=
2380 sizeof (pmcs_hw_t)) {
2490 if (mdb_vread(&ss, sizeof (pmcs_hw_t), wsp->walk_addr) !=
2491 sizeof (pmcs_hw_t)) {
2695 NOREAD(pmcs_hw_t, addr);
2700 NOREAD(pmcs_hw_t, addr);
2839 NOREAD(pmcs_hw_t, addr);
2844 NOREAD(pmcs_hw_t, addr);
2886 NOREAD(pmcs_hw_t, add
[all...]

Completed in 88 milliseconds