/illumos-gate/usr/src/uts/common/sys/ib/adapters/hermon/ |
H A D | hermon_cmd.h | 677 int hermon_cmd_post(hermon_state_t *state, hermon_cmd_post_t *cmdpost); 678 int hermon_mbox_alloc(hermon_state_t *state, hermon_mbox_info_t *mbox_info, 680 void hermon_mbox_free(hermon_state_t *state, hermon_mbox_info_t *mbox_info); 681 int hermon_cmd_complete_handler(hermon_state_t *state, hermon_eqhdl_t eq, 683 int hermon_inmbox_list_init(hermon_state_t *state); 684 int hermon_intr_inmbox_list_init(hermon_state_t *state); 685 int hermon_outmbox_list_init(hermon_state_t *state); 686 int hermon_intr_outmbox_list_init(hermon_state_t *state); 687 void hermon_inmbox_list_fini(hermon_state_t *state); 688 void hermon_intr_inmbox_list_fini(hermon_state_t *state); [all …]
|
H A D | hermon_fm.h | 283 extern void hermon_fm_init(hermon_state_t *); 284 extern void hermon_fm_fini(hermon_state_t *); 285 extern int hermon_fm_ereport_init(hermon_state_t *); 286 extern void hermon_fm_ereport_fini(hermon_state_t *); 287 extern int hermon_get_state(hermon_state_t *); 288 extern boolean_t hermon_init_failure(hermon_state_t *); 290 extern void hermon_fm_ereport(hermon_state_t *, int, int); 291 extern int hermon_regs_map_setup(hermon_state_t *, uint_t, caddr_t *, offset_t, 293 extern void hermon_regs_map_free(hermon_state_t *, ddi_acc_handle_t *); 294 extern int hermon_pci_config_setup(hermon_state_t *, ddi_acc_handle_t *); [all …]
|
H A D | hermon_misc.h | 455 hermon_state_t *hki64_state; 553 hermon_state_t *hls_state; 577 hermon_state_t *fmr_state; 626 int hermon_dbr_page_alloc(hermon_state_t *state, hermon_dbr_info_t **info); 627 int hermon_dbr_alloc(hermon_state_t *state, uint_t index, 630 void hermon_dbr_free(hermon_state_t *state, uint_t indx, hermon_dbr_t *record); 631 void hermon_dbr_kern_free(hermon_state_t *state); 634 int hermon_create_fmr_pool(hermon_state_t *state, hermon_pdhdl_t pdhdl, 636 int hermon_destroy_fmr_pool(hermon_state_t *state, hermon_fmrhdl_t fmrhdl); 637 int hermon_flush_fmr_pool(hermon_state_t *state, hermon_fmrhdl_t fmrhdl); [all …]
|
H A D | hermon_mr.h | 291 int hermon_dma_mr_register(hermon_state_t *state, hermon_pdhdl_t pdhdl, 293 int hermon_mr_register(hermon_state_t *state, hermon_pdhdl_t pdhdl, 296 int hermon_mr_register_buf(hermon_state_t *state, hermon_pdhdl_t pdhdl, 299 int hermon_mr_mtt_bind(hermon_state_t *state, hermon_bind_info_t *bind, 302 int hermon_mr_mtt_unbind(hermon_state_t *state, hermon_bind_info_t *bind, 304 int hermon_mr_register_shared(hermon_state_t *state, hermon_mrhdl_t mrhdl, 306 int hermon_mr_deregister(hermon_state_t *state, hermon_mrhdl_t *mrhdl, 308 int hermon_mr_query(hermon_state_t *state, hermon_mrhdl_t mrhdl, 310 int hermon_mr_reregister(hermon_state_t *state, hermon_mrhdl_t mrhdl, 313 int hermon_mr_reregister_buf(hermon_state_t *state, hermon_mrhdl_t mr, [all …]
|
H A D | hermon_fcoib.h | 80 int hermon_fcoib_set_id(hermon_state_t *state, int port, uint32_t rfci_qpn, 82 int hermon_fcoib_get_id_idx(hermon_state_t *state, int port, 84 int hermon_fcoib_check_exch_base_off(hermon_state_t *state, int port, 86 uint_t hermon_fcoib_qpnum_from_fexch(hermon_state_t *state, int port, 88 int hermon_fcoib_is_fexch_qpn(hermon_state_t *state, uint_t qpnum); 89 uint32_t hermon_fcoib_qpn_to_mkey(hermon_state_t *state, uint_t qpnum); 90 int hermon_fcoib_fexch_mkey_init(hermon_state_t *state, hermon_pdhdl_t pd, 92 int hermon_fcoib_fexch_mkey_fini(hermon_state_t *state, hermon_pdhdl_t pd, 94 uint32_t hermon_fcoib_fexch_relative_qpn(hermon_state_t *state, uint8_t port, 96 int hermon_fcoib_init(hermon_state_t *state); [all …]
|
H A D | hermon_cq.h | 267 int hermon_cq_alloc(hermon_state_t *state, ibt_cq_hdl_t ibt_cqhdl, 270 int hermon_cq_free(hermon_state_t *state, hermon_cqhdl_t *cqhdl, 272 int hermon_cq_resize(hermon_state_t *state, hermon_cqhdl_t cqhdl, 274 int hermon_cq_modify(hermon_state_t *state, hermon_cqhdl_t cqhdl, 276 int hermon_cq_notify(hermon_state_t *state, hermon_cqhdl_t cqhdl, 278 int hermon_cq_poll(hermon_state_t *state, hermon_cqhdl_t cqhdl, ibt_wc_t *wc_p, 280 int hermon_cq_sched_alloc(hermon_state_t *state, ibt_cq_sched_attr_t *attr, 282 int hermon_cq_sched_free(hermon_state_t *state, hermon_cq_sched_t *cq_schedp); 283 int hermon_cq_handler(hermon_state_t *state, hermon_eqhdl_t eq, 285 int hermon_cq_err_handler(hermon_state_t *state, hermon_eqhdl_t eq, [all …]
|
H A D | hermon_qp.h | 370 int hermon_qp_alloc(hermon_state_t *state, hermon_qp_info_t *qpinfo, 372 int hermon_special_qp_alloc(hermon_state_t *state, hermon_qp_info_t *qpinfo, 374 int hermon_qp_alloc_range(hermon_state_t *state, uint_t log2, 377 int hermon_qp_free(hermon_state_t *state, hermon_qphdl_t *qphdl, 379 int hermon_qp_query(hermon_state_t *state, hermon_qphdl_t qphdl, 381 hermon_qphdl_t hermon_qphdl_from_qpnum(hermon_state_t *state, uint_t qpnum); 382 void hermon_qp_release_qpn(hermon_state_t *state, hermon_qpn_entry_t *entry, 384 void hermon_qpn_avl_init(hermon_state_t *state); 385 void hermon_qpn_avl_fini(hermon_state_t *state); 388 int hermon_qp_modify(hermon_state_t *state, hermon_qphdl_t qp, [all …]
|
H A D | hermon_event.h | 286 int (*eq_func)(hermon_state_t *state, hermon_eqhdl_t eq, 292 int hermon_eq_init_all(hermon_state_t *state); 293 int hermon_eq_fini_all(hermon_state_t *state); 294 int hermon_eq_arm_all(hermon_state_t *state); 296 void hermon_eq_doorbell(hermon_state_t *state, uint32_t eq_cmd, uint32_t eqn, 298 void hermon_eq_overflow_handler(hermon_state_t *state, hermon_eqhdl_t eq, 300 void hermon_eq_reset_uar_baseaddr(hermon_state_t *state);
|
H A D | hermon_rsrc.h | 319 hermon_state_t *rsrc_state; 372 int hermon_rsrc_alloc(hermon_state_t *state, hermon_rsrc_type_t rsrc, 374 void hermon_rsrc_free(hermon_state_t *state, hermon_rsrc_t **hdl); 375 int hermon_rsrc_init_phase1(hermon_state_t *state); 376 int hermon_rsrc_init_phase2(hermon_state_t *state); 377 void hermon_rsrc_fini(hermon_state_t *state, 381 int hermon_rsrc_reserve(hermon_state_t *state, hermon_rsrc_type_t rsrc,
|
H A D | hermon_wr.h | 176 int hermon_post_send(hermon_state_t *state, hermon_qphdl_t qphdl, 178 int hermon_post_recv(hermon_state_t *state, hermon_qphdl_t qphdl, 180 int hermon_post_srq(hermon_state_t *state, hermon_srqhdl_t srqhdl, 184 int hermon_wrid_from_reset_handling(hermon_state_t *state, hermon_qphdl_t qp); 185 int hermon_wrid_to_reset_handling(hermon_state_t *state, hermon_qphdl_t qp); 191 void hermon_check_qp_debug(hermon_state_t *state, hermon_qphdl_t qp);
|
H A D | hermon_srq.h | 165 int hermon_srq_alloc(hermon_state_t *state, hermon_srq_info_t *srqinfo, 167 int hermon_srq_free(hermon_state_t *state, hermon_srqhdl_t *srqhdl, 169 int hermon_srq_modify(hermon_state_t *state, hermon_srqhdl_t srq, 171 int hermon_srq_post(hermon_state_t *state, hermon_srqhdl_t srq, 175 hermon_srqhdl_t hermon_srqhdl_from_srqnum(hermon_state_t *state, uint_t srqnum);
|
H A D | hermon.h | 880 hermon_state_t *hdt_state; 959 int hermon_dma_alloc(hermon_state_t *state, hermon_dma_info_t *dma_info, 961 void hermon_dma_attr_init(hermon_state_t *state, ddi_dma_attr_t *dma_attr); 963 int hermon_icm_alloc(hermon_state_t *state, hermon_rsrc_type_t type, 965 void hermon_icm_free(hermon_state_t *state, hermon_rsrc_type_t type, 967 void *hermon_icm_num_to_hdl(hermon_state_t *state, hermon_rsrc_type_t type, 969 void hermon_icm_set_num_to_hdl(hermon_state_t *state, hermon_rsrc_type_t type, 971 int hermon_device_mode(hermon_state_t *state); 976 ibt_status_t hermon_umap_ci_data_in(hermon_state_t *state, 979 ibt_status_t hermon_umap_ci_data_out(hermon_state_t *state, [all …]
|
H A D | hermon_agents.h | 135 hermon_state_t *agl_state; 157 int hermon_agent_handlers_init(hermon_state_t *state); 158 int hermon_agent_handlers_fini(hermon_state_t *state);
|
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/ |
H A D | hermon_ci.c | 373 hermon_state_t *state; in hermon_ci_query_hca_ports() 378 state = (hermon_state_t *)hca; in hermon_ci_query_hca_ports() 413 hermon_state_t *state; in hermon_ci_modify_ports() 417 state = (hermon_state_t *)hca; in hermon_ci_modify_ports() 451 hermon_state_t *state; in hermon_ci_alloc_pd() 458 state = (hermon_state_t *)hca; in hermon_ci_alloc_pd() 481 hermon_state_t *state; in hermon_ci_free_pd() 486 state = (hermon_state_t *)hca; in hermon_ci_free_pd() 542 hermon_state_t *state; in hermon_ci_alloc_ah() 548 state = (hermon_state_t *)hca; in hermon_ci_alloc_ah() [all …]
|
H A D | hermon_event.c | 46 static void hermon_eq_poll(hermon_state_t *state, hermon_eqhdl_t eq); 47 static void hermon_eq_catastrophic(hermon_state_t *state); 48 static int hermon_eq_alloc(hermon_state_t *state, uint32_t log_eq_size, 50 static int hermon_eq_free(hermon_state_t *state, hermon_eqhdl_t *eqhdl); 51 static int hermon_eq_handler_init(hermon_state_t *state, hermon_eqhdl_t eq, 52 uint_t evt_type_mask, int (*eqfunc)(hermon_state_t *state, 54 static int hermon_eq_handler_fini(hermon_state_t *state, hermon_eqhdl_t eq); 55 static int hermon_port_state_change_handler(hermon_state_t *state, 57 static int hermon_comm_estbl_handler(hermon_state_t *state, 59 static int hermon_local_wq_cat_err_handler(hermon_state_t *state, [all …]
|
H A D | hermon_ioctl.c | 55 static int hermon_ioctl_flash_read(hermon_state_t *state, dev_t dev, 57 static int hermon_ioctl_flash_write(hermon_state_t *state, dev_t dev, 59 static int hermon_ioctl_flash_erase(hermon_state_t *state, dev_t dev, 61 static int hermon_ioctl_flash_init(hermon_state_t *state, dev_t dev, 63 static int hermon_ioctl_flash_fini(hermon_state_t *state, dev_t dev); 64 static int hermon_ioctl_flash_cleanup(hermon_state_t *state); 65 static int hermon_ioctl_flash_cleanup_nolock(hermon_state_t *state); 67 static int hermon_ioctl_reg_write(hermon_state_t *state, intptr_t arg, 69 static int hermon_ioctl_reg_read(hermon_state_t *state, intptr_t arg, 72 static int hermon_ioctl_write_boot_addr(hermon_state_t *state, dev_t dev, [all …]
|
H A D | hermon_agents.c | 51 static int hermon_agent_list_init(hermon_state_t *state); 52 static void hermon_agent_list_fini(hermon_state_t *state); 53 static int hermon_agent_register_all(hermon_state_t *state); 54 static int hermon_agent_unregister_all(hermon_state_t *state, int num_reg); 55 static void hermon_agent_mad_resp_handling(hermon_state_t *state, 63 hermon_agent_handlers_init(hermon_state_t *state) in hermon_agent_handlers_init() 122 hermon_agent_handlers_fini(hermon_state_t *state) in hermon_agent_handlers_fini() 165 hermon_state_t *state; in hermon_agent_request_cb() 209 hermon_get_smlid(hermon_state_t *state, uint_t port) in hermon_get_smlid() 259 hermon_set_port_capability(hermon_state_t *state, uint8_t port, in hermon_set_port_capability() [all …]
|
H A D | hermon_fm.c | 149 hermon_hca_fm_init(hermon_state_t *state, hermon_hca_fm_t *hca_fm) in hermon_hca_fm_init() 173 hermon_hca_fm_fini(hermon_state_t *state) in hermon_hca_fm_fini() 206 hermon_clr_state_nolock(hermon_state_t *state, int fm_state) in hermon_clr_state_nolock() 240 hermon_clr_state(hermon_state_t *state, int fm_state) in hermon_clr_state() 275 hermon_set_state(hermon_state_t *state, int fm_state) in hermon_set_state() 314 hermon_get_state(hermon_state_t *state) in hermon_get_state() 343 hermon_fm_init(hermon_state_t *state) in hermon_fm_init() 426 hermon_fm_fini(hermon_state_t *state) in hermon_fm_fini() 479 hermon_fm_ereport_init(hermon_state_t *state) in hermon_fm_ereport_init() 777 hermon_regs_map_setup(hermon_state_t *state, uint_t rnumber, caddr_t *addrp, in hermon_regs_map_setup() [all …]
|
H A D | hermon.c | 79 static int hermon_drv_init(hermon_state_t *state, dev_info_t *dip, 81 static void hermon_drv_fini(hermon_state_t *state); 82 static void hermon_drv_fini2(hermon_state_t *state); 83 static int hermon_isr_init(hermon_state_t *state); 84 static void hermon_isr_fini(hermon_state_t *state); 86 static int hermon_hw_init(hermon_state_t *state); 88 static void hermon_hw_fini(hermon_state_t *state, 90 static int hermon_soft_state_init(hermon_state_t *state); 91 static void hermon_soft_state_fini(hermon_state_t *state); 92 static int hermon_icm_config_setup(hermon_state_t *state, [all …]
|
H A D | hermon_fcoib.c | 41 hermon_fcoib_enable(hermon_state_t *state, int port) in hermon_fcoib_enable() 82 hermon_fcoib_set_id(hermon_state_t *state, int port, uint32_t rfci_qpn, in hermon_fcoib_set_id() 124 hermon_fcoib_get_id_idx(hermon_state_t *state, int port, ibt_fc_attr_t *fcp) in hermon_fcoib_get_id_idx() 145 hermon_fcoib_check_exch_base_off(hermon_state_t *state, int port, in hermon_fcoib_check_exch_base_off() 167 hermon_fcoib_is_fexch_qpn(hermon_state_t *state, uint_t qpnum) in hermon_fcoib_is_fexch_qpn() 181 hermon_fcoib_qpnum_from_fexch(hermon_state_t *state, int port, in hermon_fcoib_qpnum_from_fexch() 199 hermon_fcoib_qpn_to_mkey(hermon_state_t *state, uint_t qpnum) in hermon_fcoib_qpn_to_mkey() 219 hermon_fcoib_fexch_relative_qpn(hermon_state_t *state, uint8_t port, in hermon_fcoib_fexch_relative_qpn() 233 hermon_fcoib_fexch_mkey_init(hermon_state_t *state, hermon_pdhdl_t pd, in hermon_fcoib_fexch_mkey_init() 263 hermon_fcoib_fexch_mkey_fini(hermon_state_t *state, hermon_pdhdl_t pd, in hermon_fcoib_fexch_mkey_fini() [all …]
|
H A D | hermon_cmd.c | 45 static int hermon_impl_mbox_alloc(hermon_state_t *state, 49 static int hermon_impl_mboxlist_init(hermon_state_t *state, 51 static void hermon_impl_mboxlist_fini(hermon_state_t *state, 53 static int hermon_outstanding_cmd_alloc(hermon_state_t *state, 55 static void hermon_outstanding_cmd_free(hermon_state_t *state, 57 static int hermon_write_hcr(hermon_state_t *state, hermon_cmd_post_t *cmdpost, 61 static void hermon_cmd_check_status(hermon_state_t *state, int status); 72 hermon_cmd_post(hermon_state_t *state, hermon_cmd_post_t *cmdpost) in hermon_cmd_post() 235 hermon_cmd_check_status(hermon_state_t *state, int status) in hermon_cmd_check_status() 287 hermon_mbox_alloc(hermon_state_t *state, hermon_mbox_info_t *mbox_info, in hermon_mbox_alloc() [all …]
|
H A D | hermon_rsrc.c | 89 static int hermon_rsrc_mbox_init(hermon_state_t *state, 91 static void hermon_rsrc_mbox_fini(hermon_state_t *state, 94 static int hermon_rsrc_sw_handles_init(hermon_state_t *state, 96 static void hermon_rsrc_sw_handles_fini(hermon_state_t *state, 99 static int hermon_rsrc_pd_handles_init(hermon_state_t *state, 101 static void hermon_rsrc_pd_handles_fini(hermon_state_t *state, 134 static int hermon_rsrc_fexch_alloc(hermon_state_t *state, 136 static void hermon_rsrc_fexch_free(hermon_state_t *state, hermon_rsrc_t *hdl); 137 static int hermon_rsrc_rfci_alloc(hermon_state_t *state, 139 static void hermon_rsrc_rfci_free(hermon_state_t *state, hermon_rsrc_t *hdl); [all …]
|
H A D | hermon_stats.c | 44 static kstat_t *hermon_kstat_picN_create(hermon_state_t *state, int num_pic, 46 static kstat_t *hermon_kstat_cntr_create(hermon_state_t *state, int num_pic, 50 void hermon_kstat_perfcntr64_create(hermon_state_t *state, uint_t port_num); 51 static int hermon_kstat_perfcntr64_read(hermon_state_t *state, uint_t port, 100 hermon_kstat_init(hermon_state_t *state) in hermon_kstat_init() 186 hermon_kstat_fini(hermon_state_t *state) in hermon_kstat_fini() 231 hermon_kstat_picN_create(hermon_state_t *state, int num_pic, int num_evt, in hermon_kstat_picN_create() 284 hermon_kstat_cntr_create(hermon_state_t *state, int num_pic, in hermon_kstat_cntr_create() 339 hermon_state_t *state; in hermon_kstat_cntr_update() 594 hermon_kstat_perfcntr64_create(hermon_state_t *state, uint_t port_num) in hermon_kstat_perfcntr64_create() [all …]
|
H A D | hermon_misc.c | 51 static int hermon_mcg_qplist_add(hermon_state_t *state, hermon_mcghdl_t mcg, 57 static uint_t hermon_mcg_walk_mgid_hash(hermon_state_t *state, 61 static int hermon_mcg_hash_list_remove(hermon_state_t *state, uint_t curr_indx, 63 static int hermon_mcg_entry_invalidate(hermon_state_t *state, 75 hermon_dbr_new_user_page(hermon_state_t *state, uint_t index, in hermon_dbr_new_user_page() 132 hermon_user_dbr_alloc(hermon_state_t *state, uint_t index, in hermon_user_dbr_alloc() 210 hermon_user_dbr_free(hermon_state_t *state, uint_t index, hermon_dbr_t *record) in hermon_user_dbr_free() 265 hermon_dbr_page_alloc(hermon_state_t *state, hermon_dbr_info_t **dinfo) in hermon_dbr_page_alloc() 352 hermon_dbr_alloc(hermon_state_t *state, uint_t index, ddi_acc_handle_t *acchdl, in hermon_dbr_alloc() 401 hermon_dbr_free(hermon_state_t *state, uint_t indx, hermon_dbr_t *record) in hermon_dbr_free() [all …]
|
H A D | hermon_cfg.c | 192 static void hermon_cfg_wqe_sizes(hermon_state_t *state, 195 static void hermon_check_iommu_bypass(hermon_state_t *state, 204 hermon_cfg_profile_init_phase1(hermon_state_t *state) in hermon_cfg_profile_init_phase1() 270 hermon_cfg_profile_init_phase2(hermon_state_t *state) in hermon_cfg_profile_init_phase2() 406 hermon_cfg_profile_fini(hermon_state_t *state) in hermon_cfg_profile_fini() 420 hermon_cfg_wqe_sizes(hermon_state_t *state, hermon_cfg_profile_t *cp) in hermon_cfg_wqe_sizes() 471 hermon_check_iommu_bypass(hermon_state_t *state, hermon_cfg_profile_t *cp) in hermon_check_iommu_bypass()
|