/titanic_52/usr/src/uts/common/io/mr_sas/ |
H A D | mr_sas_tbolt.c | 58 extern int mrsas_complete_pending_cmds(struct mrsas_instance *instance); 84 destroy_mfi_mpi_frame_pool(struct mrsas_instance *instance) in destroy_mfi_mpi_frame_pool() argument 92 cmd = instance->cmd_list[i]; in destroy_mfi_mpi_frame_pool() 94 (void) mrsas_free_dma_obj(instance, in destroy_mfi_mpi_frame_pool() 105 destroy_mpi2_frame_pool(struct mrsas_instance *instance) in destroy_mpi2_frame_pool() argument 108 if (instance->mpi2_frame_pool_dma_obj.status == DMA_OBJ_ALLOCATED) { in destroy_mpi2_frame_pool() 109 (void) mrsas_free_dma_obj(instance, in destroy_mpi2_frame_pool() 110 instance->mpi2_frame_pool_dma_obj); in destroy_mpi2_frame_pool() 111 instance->mpi2_frame_pool_dma_obj.status |= DMA_OBJ_FREED; in destroy_mpi2_frame_pool() 120 mrsas_tbolt_free_additional_dma_buffer(struct mrsas_instance *instance) in mrsas_tbolt_free_additional_dma_buffer() argument 149 free_req_rep_desc_pool(struct mrsas_instance * instance) free_req_rep_desc_pool() argument 171 create_mpi2_frame_pool(struct mrsas_instance * instance) create_mpi2_frame_pool() argument 299 mrsas_tbolt_alloc_additional_dma_buffer(struct mrsas_instance * instance) mrsas_tbolt_alloc_additional_dma_buffer() argument 400 mr_sas_get_request_descriptor(struct mrsas_instance * instance,uint16_t index) mr_sas_get_request_descriptor() argument 431 alloc_req_rep_desc(struct mrsas_instance * instance) alloc_req_rep_desc() argument 562 mrsas_alloc_cmd_pool_tbolt(struct mrsas_instance * instance) mrsas_alloc_cmd_pool_tbolt() argument 641 free_space_for_mpi2(struct mrsas_instance * instance) free_space_for_mpi2() argument 670 alloc_space_for_mpi2(struct mrsas_instance * instance) alloc_space_for_mpi2() argument 772 mrsas_init_adapter_tbolt(struct mrsas_instance * instance) mrsas_init_adapter_tbolt() argument 826 mrsas_issue_init_mpi2(struct mrsas_instance * instance) mrsas_issue_init_mpi2() argument 890 mrsas_tbolt_ioc_init(struct mrsas_instance * instance,dma_obj_t * mpi2_dma_obj) mrsas_tbolt_ioc_init() argument 1102 wait_for_outstanding_poll_io(struct mrsas_instance * instance) wait_for_outstanding_poll_io() argument 1132 struct mrsas_instance *instance = ADDR2MR(ap); mrsas_tbolt_tran_start() local 1241 mr_sas_tbolt_build_sgl(struct mrsas_instance * instance,struct scsa_cmd * acmd,struct mrsas_cmd * cmd,Mpi2RaidSCSIIORequest_t * scsi_raid_io,uint32_t * datalen) mr_sas_tbolt_build_sgl() argument 1438 mrsas_tbolt_build_cmd(struct mrsas_instance * instance,struct scsi_address * ap,struct scsi_pkt * pkt,uchar_t * cmd_done) mrsas_tbolt_build_cmd() argument 1900 tbolt_read_fw_status_reg(struct mrsas_instance * instance) tbolt_read_fw_status_reg() argument 1906 tbolt_issue_cmd(struct mrsas_cmd * cmd,struct mrsas_instance * instance) tbolt_issue_cmd() argument 1956 tbolt_issue_cmd_in_sync_mode(struct mrsas_instance * instance,struct mrsas_cmd * cmd) tbolt_issue_cmd_in_sync_mode() argument 2030 tbolt_issue_cmd_in_poll_mode(struct mrsas_instance * instance,struct mrsas_cmd * cmd) tbolt_issue_cmd_in_poll_mode() argument 2082 tbolt_enable_intr(struct mrsas_instance * instance) tbolt_enable_intr() argument 2096 tbolt_disable_intr(struct mrsas_instance * instance) tbolt_disable_intr() argument 2109 tbolt_intr_ack(struct mrsas_instance * instance) tbolt_intr_ack() argument 2148 get_raid_msg_pkt(struct mrsas_instance * instance) get_raid_msg_pkt() argument 2175 get_raid_msg_mfi_pkt(struct mrsas_instance * instance) get_raid_msg_mfi_pkt() argument 2209 return_raid_msg_pkt(struct mrsas_instance * instance,struct mrsas_cmd * cmd) return_raid_msg_pkt() argument 2221 return_raid_msg_mfi_pkt(struct mrsas_instance * instance,struct mrsas_cmd * cmd) return_raid_msg_mfi_pkt() argument 2233 mr_sas_tbolt_build_mfi_cmd(struct mrsas_instance * instance,struct mrsas_cmd * cmd) mr_sas_tbolt_build_mfi_cmd() argument 2316 tbolt_complete_cmd(struct mrsas_instance * instance,struct mrsas_cmd * cmd) tbolt_complete_cmd() argument 2636 mr_sas_tbolt_process_outstanding_cmd(struct mrsas_instance * instance) mr_sas_tbolt_process_outstanding_cmd() argument 2782 tbolt_complete_cmd_in_sync_mode(struct mrsas_instance * instance,struct mrsas_cmd * cmd) tbolt_complete_cmd_in_sync_mode() argument 2809 mrsas_tbolt_get_ld_map_info(struct mrsas_instance * instance) mrsas_tbolt_get_ld_map_info() argument 2876 mrsas_dump_reply_desc(struct mrsas_instance * instance) mrsas_dump_reply_desc() argument 2900 mrsas_tbolt_prepare_cdb(struct mrsas_instance * instance,U8 cdb[],struct IO_REQUEST_INFO * io_info,Mpi2RaidSCSIIORequest_t * scsi_io_request,U32 ref_tag) mrsas_tbolt_prepare_cdb() argument 3130 mrsas_tbolt_check_map_info(struct mrsas_instance * instance) mrsas_tbolt_check_map_info() argument 3172 mrsas_tbolt_kill_adapter(struct mrsas_instance * instance) mrsas_tbolt_kill_adapter() argument 3194 mrsas_reset_reply_desc(struct mrsas_instance * instance) mrsas_reset_reply_desc() argument 3210 mrsas_tbolt_reset_ppc(struct mrsas_instance * instance) mrsas_tbolt_reset_ppc() argument 3418 mrsas_tbolt_sync_map_info(struct mrsas_instance * instance) mrsas_tbolt_sync_map_info() argument 3516 abort_syncmap_cmd(struct mrsas_instance * instance,struct mrsas_cmd * cmd_to_abort) abort_syncmap_cmd() argument 3583 mrsas_tbolt_config_pd(struct mrsas_instance * instance,uint16_t tgt,uint8_t lun,dev_info_t ** ldip) mrsas_tbolt_config_pd() argument 3658 mrsas_tbolt_get_pd_info(struct mrsas_instance * instance,struct mrsas_tbolt_pd_info * pds,int tgt) mrsas_tbolt_get_pd_info() argument [all...] |
H A D | mr_sas.c | 86 #define WR_IB_PICK_QPORT(addr, instance) \ argument 87 if ((instance)->skinny) { \ 88 WR_IB_LOW_QPORT((addr), (instance)); \ 89 WR_IB_HIGH_QPORT(0, (instance)); \ 91 WR_IB_QPORT((addr), (instance)); \ 160 static void flush_cache(struct mrsas_instance *instance); 162 static int start_mfi_aen(struct mrsas_instance *instance); 163 static int handle_drv_ioctl(struct mrsas_instance *instance, 165 static int handle_mfi_ioctl(struct mrsas_instance *instance, 167 static int handle_mfi_aen(struct mrsas_instance *instance, 474 struct mrsas_instance *instance; mrsas_attach() local 1014 struct mrsas_instance *instance; mrsas_getinfo() local 1063 struct mrsas_instance *instance; mrsas_detach() local 1139 mrsas_undo_resources(dev_info_t * dip,struct mrsas_instance * instance) mrsas_undo_resources() argument 1403 struct mrsas_instance *instance; mrsas_ioctl() local 1496 struct mrsas_instance *instance; mrsas_reset() local 1526 struct mrsas_instance *instance; mrsas_quiesce() local 1601 struct mrsas_instance *instance; mrsas_tran_tgt_init() local 1667 struct mrsas_instance *instance; mrsas_tran_tgt_free() local 1696 mrsas_find_child(struct mrsas_instance * instance,uint16_t tgt,uint8_t lun) mrsas_find_child() argument 1779 struct mrsas_instance *instance; mrsas_tran_init_pkt() local 1865 struct mrsas_instance *instance = ADDR2MR(ap); mrsas_tran_start() local 2020 struct mrsas_instance *instance = ADDR2MR(ap); mrsas_tran_reset() local 2051 struct mrsas_instance *instance = ADDR2MR(ap); mrsas_tran_getcap() local 2302 mrsas_isr(struct mrsas_instance * instance) mrsas_isr() argument 2445 mrsas_get_mfi_pkt(struct mrsas_instance * instance) mrsas_get_mfi_pkt() argument 2468 get_mfi_app_pkt(struct mrsas_instance * instance) get_mfi_app_pkt() argument 2493 mrsas_return_mfi_pkt(struct mrsas_instance * instance,struct mrsas_cmd * cmd) mrsas_return_mfi_pkt() argument 2503 return_mfi_app_pkt(struct mrsas_instance * instance,struct mrsas_cmd * cmd) return_mfi_app_pkt() argument 2512 push_pending_mfi_pkt(struct mrsas_instance * instance,struct mrsas_cmd * cmd) push_pending_mfi_pkt() argument 2565 mrsas_print_pending_cmds(struct mrsas_instance * instance) mrsas_print_pending_cmds() argument 2639 mrsas_complete_pending_cmds(struct mrsas_instance * instance) mrsas_complete_pending_cmds() argument 2703 mrsas_print_cmd_details(struct mrsas_instance * instance,struct mrsas_cmd * cmd,int detail) mrsas_print_cmd_details() argument 2774 mrsas_issue_pending_cmds(struct mrsas_instance * instance) mrsas_issue_pending_cmds() argument 2864 destroy_mfi_frame_pool(struct mrsas_instance * instance) destroy_mfi_frame_pool() argument 2889 create_mfi_frame_pool(struct mrsas_instance * instance) create_mfi_frame_pool() argument 2971 free_additional_dma_buffer(struct mrsas_instance * instance) free_additional_dma_buffer() argument 2990 alloc_additional_dma_buffer(struct mrsas_instance * instance) alloc_additional_dma_buffer() argument 3064 mrsas_free_cmd_pool(struct mrsas_instance * instance) mrsas_free_cmd_pool() argument 3111 mrsas_alloc_cmd_pool(struct mrsas_instance * instance) mrsas_alloc_cmd_pool() argument 3197 free_space_for_mfi(struct mrsas_instance * instance) free_space_for_mfi() argument 3220 alloc_space_for_mfi(struct mrsas_instance * instance) alloc_space_for_mfi() argument 3259 get_ctrl_info(struct mrsas_instance * instance,struct mrsas_ctrl_info * ctrl_info) get_ctrl_info() argument 3364 abort_aen_cmd(struct mrsas_instance * instance,struct mrsas_cmd * cmd_to_abort) abort_aen_cmd() argument 3440 mrsas_build_init_cmd(struct mrsas_instance * instance,struct mrsas_cmd ** cmd_ptr) mrsas_build_init_cmd() argument 3550 mrsas_init_adapter_ppc(struct mrsas_instance * instance) mrsas_init_adapter_ppc() argument 3623 mrsas_init_adapter(struct mrsas_instance * instance) mrsas_init_adapter() argument 3683 mrsas_issue_init_mfi(struct mrsas_instance * instance) mrsas_issue_init_mfi() argument 3779 mfi_state_transition_to_ready(struct mrsas_instance * instance) mfi_state_transition_to_ready() argument 3968 get_seq_num(struct mrsas_instance * instance,struct mrsas_evt_log_info * eli) get_seq_num() argument 4066 start_mfi_aen(struct mrsas_instance * instance) start_mfi_aen() argument 4104 flush_cache(struct mrsas_instance * instance) flush_cache() argument 4169 service_mfi_aen(struct mrsas_instance * instance,struct mrsas_cmd * cmd) service_mfi_aen() argument 4366 complete_cmd_in_sync_mode(struct mrsas_instance * instance,struct mrsas_cmd * cmd) complete_cmd_in_sync_mode() argument 4393 mrsas_initiate_ocr_if_fw_is_faulty(struct mrsas_instance * instance) mrsas_initiate_ocr_if_fw_is_faulty() argument 4428 mrsas_softintr(struct mrsas_instance * instance) mrsas_softintr() argument 4742 mrsas_alloc_dma_obj(struct mrsas_instance * instance,dma_obj_t * obj,uchar_t endian_flags) mrsas_alloc_dma_obj() argument 4821 mrsas_free_dma_obj(struct mrsas_instance * instance,dma_obj_t obj) mrsas_free_dma_obj() argument 4856 mrsas_dma_alloc(struct mrsas_instance * instance,struct scsi_pkt * pkt,struct buf * bp,int flags,int (* callback)()) mrsas_dma_alloc() argument 5010 mrsas_dma_move(struct mrsas_instance * instance,struct scsi_pkt * pkt,struct buf * bp) mrsas_dma_move() argument 5074 build_cmd(struct mrsas_instance * instance,struct scsi_address * ap,struct scsi_pkt * pkt,uchar_t * cmd_done) build_cmd() argument 5356 wait_for_outstanding(struct mrsas_instance * instance) wait_for_outstanding() argument 5380 issue_mfi_pthru(struct mrsas_instance * instance,struct mrsas_ioctl * ioctl,struct mrsas_cmd * cmd,int mode) issue_mfi_pthru() argument 5551 issue_mfi_dcmd(struct mrsas_instance * instance,struct mrsas_ioctl * ioctl,struct mrsas_cmd * cmd,int mode) issue_mfi_dcmd() argument 5688 issue_mfi_smp(struct mrsas_instance * instance,struct mrsas_ioctl * ioctl,struct mrsas_cmd * cmd,int mode) issue_mfi_smp() argument 5953 issue_mfi_stp(struct mrsas_instance * instance,struct mrsas_ioctl * ioctl,struct mrsas_cmd * cmd,int mode) issue_mfi_stp() argument 6179 handle_drv_ioctl(struct mrsas_instance * instance,struct mrsas_ioctl * ioctl,int mode) handle_drv_ioctl() argument 6291 handle_mfi_ioctl(struct mrsas_instance * instance,struct mrsas_ioctl * ioctl,int mode) handle_mfi_ioctl() argument 6356 handle_mfi_aen(struct mrsas_instance * instance,struct mrsas_aen * aen) handle_mfi_aen() argument 6369 register_mfi_aen(struct mrsas_instance * instance,uint32_t seq_num,uint32_t class_locale_word) register_mfi_aen() argument 6581 struct mrsas_instance *instance = arg; io_timeout_checker() local 6703 read_fw_status_reg_ppc(struct mrsas_instance * instance) read_fw_status_reg_ppc() argument 6709 issue_cmd_ppc(struct mrsas_cmd * cmd,struct mrsas_instance * instance) issue_cmd_ppc() argument 6746 issue_cmd_in_sync_mode_ppc(struct mrsas_instance * instance,struct mrsas_cmd * cmd) issue_cmd_in_sync_mode_ppc() argument 6799 issue_cmd_in_poll_mode_ppc(struct mrsas_instance * instance,struct mrsas_cmd * cmd) issue_cmd_in_poll_mode_ppc() argument 6839 enable_intr_ppc(struct mrsas_instance * instance) enable_intr_ppc() argument 6864 disable_intr_ppc(struct mrsas_instance * instance) disable_intr_ppc() argument 6888 intr_ack_ppc(struct mrsas_instance * instance) intr_ack_ppc() argument 6942 mrsas_kill_adapter(struct mrsas_instance * instance) mrsas_kill_adapter() argument 6960 mrsas_reset_ppc(struct mrsas_instance * instance) mrsas_reset_ppc() argument 7123 mrsas_common_check(struct mrsas_instance * instance,struct mrsas_cmd * cmd) mrsas_common_check() argument 7183 mrsas_fm_init(struct mrsas_instance * instance) mrsas_fm_init() argument 7226 mrsas_fm_fini(struct mrsas_instance * instance) mrsas_fm_fini() argument 7283 mrsas_fm_ereport(struct mrsas_instance * instance,char * detail) mrsas_fm_ereport() argument 7297 mrsas_add_intrs(struct mrsas_instance * instance,int intr_type) mrsas_add_intrs() argument 7445 mrsas_rem_intrs(struct mrsas_instance * instance) mrsas_rem_intrs() argument 7480 struct mrsas_instance *instance; mrsas_tran_bus_config() local 7546 mrsas_config_all_devices(struct mrsas_instance * instance) mrsas_config_all_devices() argument 7613 mrsas_config_ld(struct mrsas_instance * instance,uint16_t tgt,uint8_t lun,dev_info_t ** ldip) mrsas_config_ld() argument 7661 mrsas_config_scsi_device(struct mrsas_instance * instance,struct scsi_device * sd,dev_info_t ** dipp) mrsas_config_scsi_device() argument 7744 mrsas_service_evt(struct mrsas_instance * instance,int tgt,int lun,int event,uint64_t wwn) mrsas_service_evt() argument 7780 struct mrsas_instance *instance = mrevt->instance; mrsas_issue_evt_taskq() local [all...] |
H A D | mr_sas.h | 410 struct mrsas_instance *instance; member 544 int instance; member 727 #define MRDRV_IS_LOGICAL_SCSA(instance, acmd) \ argument 731 #define MAP_DEVICE_ID(instance, ap) \ argument 837 struct mrsas_instance *instance[MAX_MGMT_ADAPTERS]; member 1104 #define WR_IB_WRITE_SEQ(v, instance) ddi_put32((instance)->regmap_handle, \ argument 1105 (uint32_t *)((uintptr_t)(instance)->regmap + WRITE_SEQ_OFF), (v)) 1107 #define RD_OB_DRWE(instance) ddi_get32((instance) argument 1110 WR_IB_DRWE(v,instance) global() argument 1120 WR_IB_MSG_0(v,instance) global() argument 1123 RD_OB_MSG_0(instance) global() argument 1126 WR_IB_DOORBELL(v,instance) global() argument 1129 RD_IB_DOORBELL(instance) global() argument 1132 WR_OB_INTR_STATUS(v,instance) global() argument 1135 RD_OB_INTR_STATUS(instance) global() argument 1138 WR_OB_INTR_MASK(v,instance) global() argument 1141 RD_OB_INTR_MASK(instance) global() argument 1144 WR_IB_QPORT(v,instance) global() argument 1147 WR_OB_DOORBELL_CLEAR(v,instance) global() argument 1151 RD_OB_SCRATCH_PAD_0(instance) global() argument 1155 RD_OB_SCRATCH_PAD_2(instance) global() argument 1158 WR_TBOLT_IB_WRITE_SEQ(v,instance) global() argument 1162 RD_TBOLT_HOST_DIAG(instance) global() argument 1165 WR_TBOLT_HOST_DIAG(v,instance) global() argument 1168 RD_TBOLT_RESET_STAT(instance) global() argument 1172 WR_MPI2_REPLY_POST_INDEX(v,instance) global() argument 1179 RD_MPI2_REPLY_POST_INDEX(instance) global() argument 1184 WR_IB_LOW_QPORT(v,instance) global() argument 1187 WR_IB_HIGH_QPORT(v,instance) global() argument 1190 WR_OB_DOORBELL_REGISTER_CLEAR(v,instance) global() argument 1195 WR_RESERVED0_REGISTER(v,instance) global() argument 1199 RD_RESERVED0_REGISTER(instance) global() argument 1224 MFI_ENABLE_INTR(instance) global() argument 1226 MFI_DISABLE_INTR(instance) global() argument [all...] |
/titanic_52/usr/src/uts/common/io/mega_sas/ |
H A D | megaraid_sas.c | 182 * anything that has to do with a particular instance of the device. 183 * Per-instance initialization must be done in attach(). 269 * The kernel calls a driver's attach() entry point to attach an instance of 270 * a device (for MegaRAID, it is instance of a controller) or to resume 271 * operation for an instance of a device that has been suspended or has been 275 * - allocate a soft-state structure for the device instance (for MegaRAID, 276 * controller instance) 277 * - initialize per-instance mutexes 280 * - map the registers and memory of the device instance (for MegaRAID, 281 * controller instance) 307 struct megasas_instance *instance; megasas_attach() local 765 struct megasas_instance *instance; megasas_getinfo() local 813 struct megasas_instance *instance; megasas_detach() local 997 struct megasas_instance *instance; megasas_ioctl() local 1083 struct megasas_instance *instance; megasas_reset() local 1163 struct megasas_instance *instance; megasas_tran_init_pkt() local 1250 struct megasas_instance *instance = ADDR2MEGA(ap); megasas_tran_start() local 1376 struct megasas_instance *instance = ADDR2MEGA(ap); megasas_tran_reset() local 1405 struct megasas_instance *instance = ddi_get_soft_state(megasas_state, megasas_tran_bus_reset() local 1435 struct megasas_instance *instance = ADDR2MEGA(ap); megasas_tran_getcap() local 1688 megasas_isr(struct megasas_instance * instance) megasas_isr() argument 1772 get_mfi_pkt(struct megasas_instance * instance) get_mfi_pkt() argument 1795 return_mfi_pkt(struct megasas_instance * instance,struct megasas_cmd * cmd) return_mfi_pkt() argument 1809 destroy_mfi_frame_pool(struct megasas_instance * instance) destroy_mfi_frame_pool() argument 1833 create_mfi_frame_pool(struct megasas_instance * instance) create_mfi_frame_pool() argument 1909 free_additional_dma_buffer(struct megasas_instance * instance) free_additional_dma_buffer() argument 1928 alloc_additional_dma_buffer(struct megasas_instance * instance) alloc_additional_dma_buffer() argument 1993 free_space_for_mfi(struct megasas_instance * instance) free_space_for_mfi() argument 2029 alloc_space_for_mfi(struct megasas_instance * instance) alloc_space_for_mfi() argument 2083 get_ctrl_info(struct megasas_instance * instance,struct megasas_ctrl_info * ctrl_info) get_ctrl_info() argument 2148 abort_aen_cmd(struct megasas_instance * instance,struct megasas_cmd * cmd_to_abort) abort_aen_cmd() argument 2200 init_mfi(struct megasas_instance * instance) init_mfi() argument 2345 mfi_state_transition_to_ready(struct megasas_instance * instance) mfi_state_transition_to_ready() argument 2486 get_seq_num(struct megasas_instance * instance,struct megasas_evt_log_info * eli) get_seq_num() argument 2561 start_mfi_aen(struct megasas_instance * instance) start_mfi_aen() argument 2596 flush_cache(struct megasas_instance * instance) flush_cache() argument 2635 service_mfi_aen(struct megasas_instance * instance,struct megasas_cmd * cmd) service_mfi_aen() argument 2685 complete_cmd_in_sync_mode(struct megasas_instance * instance,struct megasas_cmd * cmd) complete_cmd_in_sync_mode() argument 2707 megasas_softintr(struct megasas_instance * instance) megasas_softintr() argument 2992 mega_alloc_dma_obj(struct megasas_instance * instance,dma_obj_t * obj) mega_alloc_dma_obj() argument 3067 mega_free_dma_obj(struct megasas_instance * instance,dma_obj_t obj) mega_free_dma_obj() argument 3094 megasas_dma_alloc(struct megasas_instance * instance,struct scsi_pkt * pkt,struct buf * bp,int flags,int (* callback)()) megasas_dma_alloc() argument 3241 megasas_dma_move(struct megasas_instance * instance,struct scsi_pkt * pkt,struct buf * bp) megasas_dma_move() argument 3305 build_cmd(struct megasas_instance * instance,struct scsi_address * ap,struct scsi_pkt * pkt,uchar_t * cmd_done) build_cmd() argument 3515 wait_for_outstanding(struct megasas_instance * instance) wait_for_outstanding() argument 3541 issue_mfi_pthru(struct megasas_instance * instance,struct megasas_ioctl * ioctl,struct megasas_cmd * cmd,int mode) issue_mfi_pthru() argument 3666 issue_mfi_dcmd(struct megasas_instance * instance,struct megasas_ioctl * ioctl,struct megasas_cmd * cmd,int mode) issue_mfi_dcmd() argument 3778 issue_mfi_smp(struct megasas_instance * instance,struct megasas_ioctl * ioctl,struct megasas_cmd * cmd,int mode) issue_mfi_smp() argument 4005 issue_mfi_stp(struct megasas_instance * instance,struct megasas_ioctl * ioctl,struct megasas_cmd * cmd,int mode) issue_mfi_stp() argument 4195 handle_drv_ioctl(struct megasas_instance * instance,struct megasas_ioctl * ioctl,int mode) handle_drv_ioctl() argument 4310 handle_mfi_ioctl(struct megasas_instance * instance,struct megasas_ioctl * ioctl,int mode) handle_mfi_ioctl() argument 4360 handle_mfi_aen(struct megasas_instance * instance,struct megasas_aen * aen) handle_mfi_aen() argument 4373 register_mfi_aen(struct megasas_instance * instance,uint32_t seq_num,uint32_t class_locale_word) register_mfi_aen() argument 4554 read_fw_status_reg_xscale(struct megasas_instance * instance) read_fw_status_reg_xscale() argument 4560 read_fw_status_reg_ppc(struct megasas_instance * instance) read_fw_status_reg_ppc() argument 4566 issue_cmd_xscale(struct megasas_cmd * cmd,struct megasas_instance * instance) issue_cmd_xscale() argument 4576 issue_cmd_ppc(struct megasas_cmd * cmd,struct megasas_instance * instance) issue_cmd_ppc() argument 4589 issue_cmd_in_sync_mode_xscale(struct megasas_instance * instance,struct megasas_cmd * cmd) issue_cmd_in_sync_mode_xscale() argument 4616 issue_cmd_in_sync_mode_ppc(struct megasas_instance * instance,struct megasas_cmd * cmd) issue_cmd_in_sync_mode_ppc() argument 4650 issue_cmd_in_poll_mode_xscale(struct megasas_instance * instance,struct megasas_cmd * cmd) issue_cmd_in_poll_mode_xscale() argument 4681 issue_cmd_in_poll_mode_ppc(struct megasas_instance * instance,struct megasas_cmd * cmd) issue_cmd_in_poll_mode_ppc() argument 4714 enable_intr_xscale(struct megasas_instance * instance) enable_intr_xscale() argument 4720 enable_intr_ppc(struct megasas_instance * instance) enable_intr_ppc() argument 4744 disable_intr_xscale(struct megasas_instance * instance) disable_intr_xscale() argument 4750 disable_intr_ppc(struct megasas_instance * instance) disable_intr_ppc() argument 4773 intr_ack_xscale(struct megasas_instance * instance) intr_ack_xscale() argument 4791 intr_ack_ppc(struct megasas_instance * instance) intr_ack_ppc() argument 4822 megasas_common_check(struct megasas_instance * instance,struct megasas_cmd * cmd) megasas_common_check() argument 4880 megasas_fm_init(struct megasas_instance * instance) megasas_fm_init() argument 4923 megasas_fm_fini(struct megasas_instance * instance) megasas_fm_fini() argument 4980 megasas_fm_ereport(struct megasas_instance * instance,char * detail) megasas_fm_ereport() argument [all...] |
/titanic_52/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | inetd.c | 44 * - instance specific events originating from the SMF master restarter. 54 * Inetd implements a state machine for each instance. The states within the 56 * specializations of the offline state for when an instance exceeds one of 57 * its DOS limits. The state of an instance can be changed as a 59 * started up. The ongoing state of an instance is stored in the SMF 61 * to view the state of each instance, and, if inetd was to terminate 65 * of a state transition to aid/ effect a change in an instance's state. The 77 * When the event has been processed (which may be delayed if the instance 244 exec_method(instance_t *instance, instance_method_t method, method_info_t *mi, 272 "Invalid configuration for instance in log_invalid_cfg() 588 tcp_wrappers_ok(instance_t * instance) tcp_wrappers_ok() argument 653 instance_t *instance = arg; conn_rate_online() local 806 instance_t *instance = arg; retry_bind() local 834 poll_bound_fds(instance_t * instance,boolean_t listen,char * proto_name) poll_bound_fds() argument 863 handle_bind_failure(instance_t * instance) handle_bind_failure() argument 1076 create_bound_fds(instance_t * instance) create_bound_fds() argument 1189 destroy_bound_fds(instance_t * instance) destroy_bound_fds() argument 1494 remove_instance(instance_t * instance) remove_instance() argument 1693 handle_restarter_event(instance_t * instance,restarter_event_type_t event,boolean_t send_ack) handle_restarter_event() argument 2050 instance_t *instance; process_restarter_event() local 2659 passes_basic_exec_checks(const char * instance,const char * method,const char * path) passes_basic_exec_checks() argument 2693 exec_method(instance_t * instance,instance_method_t method,method_info_t * mi,struct method_context * mthd_ctxt,const proto_info_t * pi) exec_method() argument 2961 smf_kill_process(instance_t * instance,int sig) smf_kill_process() argument 2994 run_method(instance_t * instance,instance_method_t method,const proto_info_t * start_info) run_method() argument 3171 pending_connections(instance_t * instance,proto_info_t * pi) pending_connections() argument 3183 accept_connection(instance_t * instance,proto_info_t * pi) accept_connection() argument 3219 process_nowait_request(instance_t * instance,proto_info_t * pi) process_nowait_request() argument 3345 process_wait_request(instance_t * instance,const proto_info_t * pi) process_wait_request() argument 3435 instance_t *instance; process_network_events() local 3499 instance_t *instance; event_loop() local [all...] |
/titanic_52/usr/src/uts/i86pc/io/amd_iommu/ |
H A D | amd_iommu.c | 245 int instance = ddi_get_instance(dip); in amd_iommu_attach() local 249 ASSERT(instance >= 0); in amd_iommu_attach() 254 if (ddi_soft_state_zalloc(amd_iommu_statep, instance) in amd_iommu_attach() 257 "%s%d", driver, instance); in amd_iommu_attach() 261 statep = ddi_get_soft_state(amd_iommu_statep, instance); in amd_iommu_attach() 264 "%s%d", driver, instance); in amd_iommu_attach() 265 ddi_soft_state_free(amd_iommu_statep, instance); in amd_iommu_attach() 270 AMD_IOMMU_INST2MINOR(instance), AMD_IOMMU_NODETYPE, in amd_iommu_attach() 273 "%s%d", driver, instance); in amd_iommu_attach() 275 ddi_soft_state_free(amd_iommu_statep, instance); in amd_iommu_attach() 315 int instance = ddi_get_instance(dip); amd_iommu_detach() local 342 int instance = AMD_IOMMU_MINOR2INST(getminor(*devp)); amd_iommu_open() local 378 int instance = AMD_IOMMU_MINOR2INST(getminor(dev)); amd_iommu_close() local 414 int instance = AMD_IOMMU_MINOR2INST(getminor(dev)); amd_iommu_ioctl() local 451 int instance = ddi_get_instance(dip); amd_iommu_quiesce() local [all...] |
/titanic_52/usr/src/uts/sun4u/opl/io/oplpanel/ |
H A D | oplpanel.c | 176 int instance; in panel_attach() local 185 instance = ddi_get_instance(dip); in panel_attach() 187 DCMN_ERR((CE_CONT, "%s%d: attach\n", panel_name, instance)); in panel_attach() 192 panel_name, instance)); in panel_attach() 197 panel_name, instance)); in panel_attach() 200 ddi_get_soft_state(panelstates, instance)) == NULL) { in panel_attach() 202 panel_name, instance); in panel_attach() 220 if (ddi_soft_state_zalloc(panelstates, instance) != DDI_SUCCESS) { in panel_attach() 222 panel_name, instance); in panel_attach() 226 ddi_get_soft_state(panelstates, instance)) in panel_attach() 277 int instance; panel_detach() local 327 int instance; panel_getinfo() local [all...] |
/titanic_52/usr/src/uts/common/io/fibre-channel/fca/qlge/ |
H A D | qlge_mpi.c | 135 __func__, qlge->instance); in ql_read_mailbox_cmd() 151 __func__, qlge->instance, i, reg_status)); in ql_read_mailbox_cmd() 203 __func__, qlge->instance, mbx_cmd->mb[i], i, addr)); in ql_issue_mailbox_cmd() 241 __func__, qlge->instance); in ql_issue_mailbox_cmd_and_poll_rsp() 252 __func__, qlge->instance)); in ql_issue_mailbox_cmd_and_poll_rsp() 273 __func__, qlge->instance)); in ql_issue_mailbox_cmd_and_poll_rsp() 317 __func__, qlge->instance); in ql_issue_mailbox_cmd_and_wait_rsp() 339 __func__, qlge->instance); in ql_issue_mailbox_cmd_and_wait_rsp() 345 " \n", __func__, qlge->instance)); in ql_issue_mailbox_cmd_and_wait_rsp() 376 __func__, qlge->instance)); in ql_async_event_parser() [all...] |
H A D | qlge_flash.c | 53 __func__, qlge->instance, fdata)); in ql_flash_id() 62 __func__, qlge->instance, fdata); in ql_flash_id() 69 __func__, qlge->instance, in ql_flash_id() 87 __func__, qlge->instance, startpos, size)); in qlge_dump_fcode() 92 " flsz=%xh", __func__, qlge->instance, in qlge_dump_fcode() 100 __func__, qlge->instance); in qlge_dump_fcode() 140 __func__, qlge->instance, faddr, size)); in ql_erase_and_write_to_flash() 145 __func__, qlge->instance); in ql_erase_and_write_to_flash() 202 __func__, qlge->instance, rval); in ql_erase_and_write_to_flash() 230 __func__, qlge->instance, fadd in qlge_load_flash() [all...] |
/titanic_52/usr/src/uts/i86pc/io/acpi/acpinex/ |
H A D | acpinex_drv.c | 230 int instance; in acpinex_info() local 234 instance = ACPINEX_GET_INSTANCE(getminor(dev)); in acpinex_info() 235 *result = (void *)(uintptr_t)instance; in acpinex_info() 245 int instance; in acpinex_attach() local 259 /* Get and check instance number. */ in acpinex_attach() 260 instance = ddi_get_instance(devi); in acpinex_attach() 261 if (instance >= ACPINEX_INSTANCE_MAX) { in acpinex_attach() 262 cmn_err(CE_WARN, "acpinex: instance number %d is out of range " in acpinex_attach() 264 instance, ACPINEX_INSTANCE_MAX - 1); in acpinex_attach() 269 if (ddi_soft_state_zalloc(acpinex_softstates, instance) in acpinex_attach() 310 int instance; acpinex_detach() local 442 minor_t minor, instance; acpinex_open() local 476 minor_t minor, instance; acpinex_close() local 512 minor_t minor, instance; acpinex_ioctl() local [all...] |
/titanic_52/usr/src/uts/sun/io/ |
H A D | sbusmem.c | 155 int instance, ilen; in sbmem_attach() local 161 instance = ddi_get_instance(devi); in sbmem_attach() 168 "sbmem_attach%d: No size property\n", instance); in sbmem_attach() 179 "sbmem_attach%d: No reg property\n", instance); in sbmem_attach() 182 "sbmem_attach%d: slot 0x%x size 0x%x\n", instance, in sbmem_attach() 193 "sbmem_attach%d: No ident property\n", instance); in sbmem_attach() 199 instance) != DDI_SUCCESS) in sbmem_attach() 203 instance)) == NULL) { in sbmem_attach() 204 ddi_soft_state_free(sbusmem_state_head, instance); in sbmem_attach() 208 if (ddi_create_minor_node(devi, ident, S_IFCHR, instance, in sbmem_attach() 240 int instance; sbmem_detach() local 259 int instance; sbmem_open() local 284 int instance, error = DDI_FAILURE; sbmem_info() local 337 int instance, error = 0; sbmem_rw() local 389 int instance, error; sbmem_devmap() local [all...] |
/titanic_52/usr/src/uts/common/io/ |
H A D | pseudonex.c | 33 * name="foo" parent="/pseudo" instance=0; 45 * name="foo" parent="/pseudo" instance=<n> valid-children="bar","baz"; 53 * At some point in the future, it would be desirable to extend the instance 55 * or devfs to online nexus children of pseudo, auto-selecting an instance #, 56 * and the instance number selected would be preserved across reboot in 66 #include <sys/instance.h> 210 int instance; in pseudonex_attach() local 223 * Save the devi for this instance in the soft_state data. in pseudonex_attach() 225 instance = ddi_get_instance(devi); in pseudonex_attach() 226 if (ddi_soft_state_zalloc(pseudonex_state, instance) ! in pseudonex_attach() 245 int instance = ddi_get_instance(devi); pseudonex_detach() local 259 int instance; pseudonex_open() local 275 int instance; pseudonex_close() local 292 int instance; pseudonex_ioctl() local 392 int instance = -1; pseudonex_ctl() local [all...] |
H A D | tclient.c | 152 int instance = ddi_get_instance(devi); in tcli_attach() local 159 if (ddi_soft_state_zalloc(dstates, instance) != DDI_SUCCESS) { in tcli_attach() 161 ddi_get_name(devi), instance); in tcli_attach() 165 dstatep = ddi_get_soft_state(dstates, instance); in tcli_attach() 169 (INST_TO_MINOR(instance)), DDI_PSEUDO, NULL); in tcli_attach() 172 ddi_soft_state_free(dstates, instance); in tcli_attach() 174 ddi_get_name(devi), instance); in tcli_attach() 186 int instance; in tcli_detach() local 192 instance = ddi_get_instance(devi); in tcli_detach() 193 ddi_soft_state_free(dstates, instance); in tcli_detach() 202 int instance; tcli_info() local 260 int instance; tcli_ioctl() local [all...] |
/titanic_52/usr/src/uts/sun4u/excalibur/io/ |
H A D | xcalwd.c | 53 * Define your per instance state data 203 int instance; in xcalwd_getinfo() local 209 instance = getminor(dev); in xcalwd_getinfo() 210 tsp = ddi_get_soft_state(xcalwd_statep, instance); in xcalwd_getinfo() 231 int instance; in xcalwd_attach() local 236 instance = ddi_get_instance(dip); in xcalwd_attach() 243 if (ddi_soft_state_zalloc(xcalwd_statep, instance) != in xcalwd_attach() 246 "%d state structure", instance); in xcalwd_attach() 250 tsp = ddi_get_soft_state(xcalwd_statep, instance); in xcalwd_attach() 253 instance); in xcalwd_attach() 283 int instance; xcalwd_detach() local 308 int instance = (int)(uintptr_t)arg; xcalwd_timeout() local 333 int instance; xcalwd_open() local 357 int instance; xcalwd_close() local 401 int instance; xcalwd_ioctl() local [all...] |
/titanic_52/usr/src/uts/sun4u/io/i2c/clients/ |
H A D | ltc1427.c | 149 int instance; in ltc1427_open() local 152 instance = getminor(*devp); in ltc1427_open() 154 if (instance < 0) { in ltc1427_open() 159 ddi_get_soft_state(ltc1427soft_statep, instance); in ltc1427_open() 196 int instance; in ltc1427_close() local 198 instance = getminor(dev); in ltc1427_close() 200 if (instance < 0) { in ltc1427_close() 205 ddi_get_soft_state(ltc1427soft_statep, instance); in ltc1427_close() 226 int instance; in ltc1427_ioctl() local 237 instance in ltc1427_ioctl() 339 int instance; ltc1427_do_attach() local 401 int instance; ltc1427_do_detach() local [all...] |
H A D | pic16f819.c | 206 int instance; in pic16f819_open() local 209 instance = getminor(*devp); in pic16f819_open() 211 if (instance < 0) { in pic16f819_open() 216 ddi_get_soft_state(pic16f819soft_statep, instance); in pic16f819_open() 253 int instance; in pic16f819_close() local 255 instance = getminor(dev); in pic16f819_close() 257 if (instance < 0) { in pic16f819_close() 262 ddi_get_soft_state(pic16f819soft_statep, instance); in pic16f819_close() 283 int instance; in pic16f819_ioctl() local 294 instance in pic16f819_ioctl() 370 int instance; pic16f819_do_attach() local 434 int instance; pic16f819_do_detach() local [all...] |
H A D | tda8444.c | 148 int instance; in tda8444_info() local 152 instance = TDA8444_MINOR_TO_DEVINST(dev); in tda8444_info() 153 *result = (void *)(uintptr_t)instance; in tda8444_info() 162 int instance = ddi_get_instance(dip); in tda8444_do_resume() local 168 ddi_get_soft_state(tda8444_soft_statep, instance); in tda8444_do_resume() 201 int instance; in tda8444_do_attach() local 205 instance = ddi_get_instance(dip); in tda8444_do_attach() 207 if (ddi_soft_state_zalloc(tda8444_soft_statep, instance) != 0) { in tda8444_do_attach() 209 ddi_get_name(dip), instance); in tda8444_do_attach() 214 unitp = ddi_get_soft_state(tda8444_soft_statep, instance); in tda8444_do_attach() 288 int instance; tda8444_do_detach() local 307 int instance; tda8444_do_suspend() local 352 int instance = TDA8444_MINOR_TO_DEVINST(*devp); tda8444_open() local 399 int instance = TDA8444_MINOR_TO_DEVINST(dev); tda8444_close() local 442 int instance = TDA8444_MINOR_TO_DEVINST(getminor(dev)); tda8444_io() local [all...] |
H A D | pcf8591.c | 153 int instance; in pcf8591_open() local 156 instance = MINOR_TO_INST(getminor(*devp)); in pcf8591_open() 158 if (instance < 0) { in pcf8591_open() 163 ddi_get_soft_state(pcf8591soft_statep, instance); in pcf8591_open() 200 int instance; in pcf8591_close() local 202 instance = MINOR_TO_INST(getminor(dev)); in pcf8591_close() 204 if (instance < 0) { in pcf8591_close() 209 ddi_get_soft_state(pcf8591soft_statep, instance); in pcf8591_close() 233 int instance = MINOR_TO_INST(getminor(dev)); in pcf8591_ioctl() local 246 ddi_get_soft_state(pcf8591soft_statep, instance); in pcf8591_ioctl() 416 int instance; pcf8591_info() local 457 int instance; pcf8591_do_attach() local 529 int instance; pcf8591_do_detach() local [all...] |
H A D | ics951601.c | 176 int instance; in ics951601_open() local 187 instance = getminor(*devp); in ics951601_open() 188 if (instance < 0) { in ics951601_open() 192 instance); in ics951601_open() 224 int instance; in ics951601_close() 234 instance = getminor(dev); in ics951601_close() 236 instance); in ics951601_close() 251 int instance = ddi_get_instance(dip); in ics951601_attach() local 253 if (ddi_soft_state_zalloc(ics951601_soft_statep, instance) != 0) { in ics951601_attach() 255 ddi_get_name(dip), instance); in ics951601_attach() 336 int instance; ics951601_detach() local 354 int instance = getminor((dev_t)arg); ics951601_info() local 378 int instance = ddi_get_instance(dip); ics951601_suspend() local 416 int instance = ddi_get_instance(dip); ics951601_resume() local 492 int instance = getminor(dev); ics951601_ioctl() local [all...] |
/titanic_52/usr/src/uts/sun4u/grover/io/ |
H A D | grfans.c | 148 int instance; in grfans_info() local 152 instance = MINOR_TO_DEVINST(dev); in grfans_info() 153 *result = (void *)(uintptr_t)instance; in grfans_info() 163 int instance; in grfans_do_attach() local 168 instance = ddi_get_instance(dip); in grfans_do_attach() 170 if (ddi_soft_state_zalloc(grfans_soft_statep, instance) != 0) { in grfans_do_attach() 172 ddi_get_name(dip), instance); in grfans_do_attach() 178 printf("attached instance number %d\n", instance); in grfans_do_attach() 181 unitp = ddi_get_soft_state(grfans_soft_statep, instance); in grfans_do_attach() 266 int instance; grfans_do_detach() local 303 int instance = MINOR_TO_DEVINST(*devp); grfans_open() local 356 int instance = MINOR_TO_DEVINST(dev); grfans_close() local 391 int instance = MINOR_TO_DEVINST(getminor(dev)); grfans_io() local [all...] |
/titanic_52/usr/src/uts/sun4u/serengeti/io/ |
H A D | ssm.c | 96 ssm_make_nodes(dev_info_t *dip, int instance, int ssm_nodeid); 318 int instance; in ssm_info() local 322 instance = (getminor(dev) >> SSM_INSTANCE_SHIFT); in ssm_info() 323 *result = (void *)(uintptr_t)instance; in ssm_info() 336 int instance; in ssm_attach() local 353 instance = ddi_get_instance(devi); in ssm_attach() 355 if (ddi_soft_state_zalloc(ssm_softstates, instance) != DDI_SUCCESS) in ssm_attach() 358 softsp = ddi_get_soft_state(ssm_softstates, instance); in ssm_attach() 366 instance, (void *)devi, (void *)softsp)); in ssm_attach() 371 instance, "nodei in ssm_attach() 457 int instance, rv; ssm_detach() local 675 ssm_make_nodes(dev_info_t * dip,int instance,int ssm_nodeid) ssm_make_nodes() argument 709 minor_t board, instance; ssm_open() local 782 minor_t board, instance; ssm_close() local 806 int instance, rv = 0; ssm_ioctl() local [all...] |
/titanic_52/usr/src/uts/common/io/chxge/com/ |
H A D | ch_mac.c | 98 mac_intr |= static_aPorts[mac->instance->index]; in mac_intr_enable() 124 mac_intr &= ~(static_aPorts[mac->instance->index]); in mac_intr_disable() 149 mac_intr |= (static_aPorts[mac->instance->index]); in mac_intr_clear() 162 MAC_REG_IDLO(mac->instance->index)); in mac_get_address() 164 MAC_REG_IDHI(mac->instance->index)); in mac_get_address() 179 int idx = mac->instance->index; in mac_reset() 207 MAC_REG_CSR(mac->instance->index)); in mac_set_rx_mode() 212 MAC_REG_CSR(mac->instance->index), val); in mac_set_rx_mode() 223 MAC_REG_CSR(mac->instance->index)); in mac_set_speed_duplex_fc() 249 MAC_REG_CSR(mac->instance in mac_set_speed_duplex_fc() [all...] |
/titanic_52/usr/src/uts/common/io/1394/targets/dcam1394/ |
H A D | dcam.c | 214 int instance; in dcam_attach() local 220 instance = ddi_get_instance(dip); in dcam_attach() 222 if (ddi_soft_state_zalloc(dcam_state_p, instance) != in dcam_attach() 227 if ((softc_p = ddi_get_soft_state(dcam_state_p, instance)) == in dcam_attach() 229 ddi_soft_state_free(dcam_state_p, instance); in dcam_attach() 237 softc_p->instance = instance; in dcam_attach() 252 (void) sprintf(tmp_str, "dcam%d", instance); in dcam_attach() 254 if (ddi_create_minor_node(dip, tmp_str, S_IFCHR, instance, in dcam_attach() 256 ddi_soft_state_free(dcam_state_p, instance); in dcam_attach() 387 int instance; dcam_power() local 412 int instance; dcam_getinfo() local 452 int instance; dcam_detach() local 526 int instance; dcam_open() local 618 int instance; dcam_close() local 690 int index, instance; dcam_read() local 861 int instance, is_ctrl_file, rc, i; dcam_ioctl() local 1052 int instance, ring_buff_has_data, read_ptr_id; dcam_chpoll() local [all...] |
/titanic_52/usr/src/uts/sun4u/starfire/io/ |
H A D | idn.conf | 28 name="idn" parent="pseudo" instance=0; 29 name="idn" parent="pseudo" instance=1; 30 name="idn" parent="pseudo" instance=2; 31 name="idn" parent="pseudo" instance=3; 32 name="idn" parent="pseudo" instance=4; 33 name="idn" parent="pseudo" instance=5; 34 name="idn" parent="pseudo" instance=6; 35 name="idn" parent="pseudo" instance=7;
|
/titanic_52/usr/src/uts/common/fs/getgen/ |
H A D | getgen.c | 20 /* per-instance context */ 135 int instance; in gg_ioctl() local 137 instance = getminor(dev); in gg_ioctl() 138 if (ddi_get_soft_state(statep, instance) == NULL) in gg_ioctl() 162 int instance; in gg_close() local 164 instance = getminor(dev); in gg_close() 165 if ((sp = ddi_get_soft_state(statep, instance)) == NULL) in gg_close() 185 int instance; in gg_open() local 187 instance = getminor(*devp); in gg_open() 188 if ((sp = ddi_get_soft_state(statep, instance)) in gg_open() 228 int instance; gg_detach() local 264 int instance; gg_attach() local 298 int instance; gg_getinfo() local [all...] |