Home
last modified time | relevance | path

Searched refs:instance (Results 1 – 25 of 870) sorted by relevance

12345678910>>...35

/titanic_41/usr/src/uts/common/io/mr_sas/
H A Dmr_sas_tbolt.c57 extern int mrsas_complete_pending_cmds(struct mrsas_instance *instance);
83 destroy_mfi_mpi_frame_pool(struct mrsas_instance *instance) in destroy_mfi_mpi_frame_pool() argument
91 cmd = instance->cmd_list[i]; in destroy_mfi_mpi_frame_pool()
93 (void) mrsas_free_dma_obj(instance, in destroy_mfi_mpi_frame_pool()
104 destroy_mpi2_frame_pool(struct mrsas_instance *instance) in destroy_mpi2_frame_pool() argument
107 if (instance->mpi2_frame_pool_dma_obj.status == DMA_OBJ_ALLOCATED) { in destroy_mpi2_frame_pool()
108 (void) mrsas_free_dma_obj(instance, in destroy_mpi2_frame_pool()
109 instance->mpi2_frame_pool_dma_obj); in destroy_mpi2_frame_pool()
110 instance->mpi2_frame_pool_dma_obj.status |= DMA_OBJ_FREED; in destroy_mpi2_frame_pool()
119 mrsas_tbolt_free_additional_dma_buffer(struct mrsas_instance *instance) in mrsas_tbolt_free_additional_dma_buffer() argument
[all …]
H A Dmr_sas.c85 #define WR_IB_PICK_QPORT(addr, instance) \ argument
86 if ((instance)->skinny) { \
87 WR_IB_LOW_QPORT((addr), (instance)); \
88 WR_IB_HIGH_QPORT(0, (instance)); \
90 WR_IB_QPORT((addr), (instance)); \
159 static void flush_cache(struct mrsas_instance *instance);
161 static int start_mfi_aen(struct mrsas_instance *instance);
162 static int handle_drv_ioctl(struct mrsas_instance *instance,
164 static int handle_mfi_ioctl(struct mrsas_instance *instance,
166 static int handle_mfi_aen(struct mrsas_instance *instance,
[all …]
H A Dmr_sas.h408 struct mrsas_instance *instance; member
542 int instance; member
725 #define MRDRV_IS_LOGICAL_SCSA(instance, acmd) \ argument
729 #define MAP_DEVICE_ID(instance, ap) \ argument
835 struct mrsas_instance *instance[MAX_MGMT_ADAPTERS]; member
1102 #define WR_IB_WRITE_SEQ(v, instance) ddi_put32((instance)->regmap_handle, \ argument
1103 (uint32_t *)((uintptr_t)(instance)->regmap + WRITE_SEQ_OFF), (v))
1105 #define RD_OB_DRWE(instance) ddi_get32((instance)->regmap_handle, \ argument
1106 (uint32_t *)((uintptr_t)(instance)->regmap + HOST_DIAG_OFF))
1108 #define WR_IB_DRWE(v, instance) ddi_put32((instance)->regmap_handle, \ argument
[all …]
/titanic_41/usr/src/uts/common/io/mega_sas/
H A Dmegaraid_sas.c307 struct megasas_instance *instance; in megasas_attach() local
340 instance = (struct megasas_instance *)ddi_get_soft_state in megasas_attach()
343 if (instance == NULL) { in megasas_attach()
352 bzero((caddr_t)instance, in megasas_attach()
355 instance->func_ptr = kmem_zalloc( in megasas_attach()
357 ASSERT(instance->func_ptr); in megasas_attach()
360 if (pci_config_setup(dip, &instance->pci_handle) != in megasas_attach()
366 kmem_free(instance->func_ptr, in megasas_attach()
377 pci_config_teardown(&instance->pci_handle); in megasas_attach()
378 kmem_free(instance->func_ptr, in megasas_attach()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/inetd/
H A Dinetd.c244 exec_method(instance_t *instance, instance_method_t method, method_info_t *mi,
588 tcp_wrappers_ok(instance_t *instance) in tcp_wrappers_ok() argument
592 basic_cfg_t *cfg = instance->config->basic; in tcp_wrappers_ok()
604 daemon_name = instance->config->methods[ in tcp_wrappers_ok()
616 instance->conn_fd, NULL); in tcp_wrappers_ok()
624 req.sink(instance->conn_fd); in tcp_wrappers_ok()
631 req.sink(instance->conn_fd); in tcp_wrappers_ok()
653 instance_t *instance = arg; in conn_rate_online() local
655 assert(instance->cur_istate == IIS_OFFLINE_CONRATE); in conn_rate_online()
656 instance->timer_id = -1; in conn_rate_online()
[all …]
/titanic_41/usr/src/uts/i86pc/io/amd_iommu/
H A Damd_iommu.c245 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()
[all …]
/titanic_41/usr/src/uts/sun4u/opl/io/oplpanel/
H A Doplpanel.c176 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)) == NULL) { in panel_attach()
[all …]
/titanic_41/usr/src/uts/common/io/fibre-channel/fca/qlge/
H A Dqlge_mpi.c135 __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 Dqlge_flash.c53 __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, faddr, len)); in qlge_load_flash()
[all …]
/titanic_41/usr/src/uts/i86pc/io/acpi/acpinex/
H A Dacpinex_drv.c230 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
260 instance = ddi_get_instance(devi); in acpinex_attach()
261 if (instance >= ACPINEX_INSTANCE_MAX) { in acpinex_attach()
264 instance, ACPINEX_INSTANCE_MAX - 1); in acpinex_attach()
269 if (ddi_soft_state_zalloc(acpinex_softstates, instance) in acpinex_attach()
275 softsp = ddi_get_soft_state(acpinex_softstates, instance); in acpinex_attach()
284 ddi_soft_state_free(acpinex_softstates, instance); in acpinex_attach()
[all …]
/titanic_41/usr/src/uts/sun/io/
H A Dsbusmem.c155 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()
[all …]
/titanic_41/usr/src/uts/common/io/
H A Dpseudonex.c210 int instance; in pseudonex_attach() local
225 instance = ddi_get_instance(devi); in pseudonex_attach()
226 if (ddi_soft_state_zalloc(pseudonex_state, instance) != DDI_SUCCESS) in pseudonex_attach()
228 pnx_state = ddi_get_soft_state(pseudonex_state, instance); in pseudonex_attach()
231 if (ddi_create_minor_node(devi, "devctl", S_IFCHR, instance, in pseudonex_attach()
234 ddi_soft_state_free(pseudonex_state, instance); in pseudonex_attach()
245 int instance = ddi_get_instance(devi); in pseudonex_detach() local
251 ddi_soft_state_free(pseudonex_state, instance); in pseudonex_detach()
259 int instance; in pseudonex_open() local
264 instance = getminor(*devp); in pseudonex_open()
[all …]
H A Dtclient.c152 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()
[all …]
/titanic_41/usr/src/uts/sun4u/excalibur/io/
H A Dxcalwd.c203 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()
258 S_IFCHR, instance, DDI_PSEUDO, NULL) == DDI_FAILURE) { in xcalwd_attach()
[all …]
/titanic_41/usr/src/uts/intel/io/agpgart/
H A Damd64_gart.c18 #define GETSOFTC(instance) ((amd64_gart_softstate_t *) \ argument
19 ddi_get_soft_state(amd64_gart_glob_soft_handle, (instance)));
135 int instance, rval = DDI_FAILURE; in amd64_gart_getinfo() local
141 instance = DEV2INST(dev); in amd64_gart_getinfo()
142 st = ddi_get_soft_state(amd64_gart_glob_soft_handle, instance); in amd64_gart_getinfo()
155 instance = DEV2INST(dev); in amd64_gart_getinfo()
156 *resultp = (void *)(uintptr_t)instance; in amd64_gart_getinfo()
169 int instance; in amd64_gart_attach() local
186 instance = ddi_get_instance(dip); in amd64_gart_attach()
188 if (ddi_soft_state_zalloc(amd64_gart_glob_soft_handle, instance) != in amd64_gart_attach()
[all …]
/titanic_41/usr/src/uts/sun4u/io/i2c/clients/
H A Dltc1427.c149 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 = getminor(dev); in ltc1427_ioctl()
[all …]
H A Dpic16f819.c206 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 = getminor(dev); in pic16f819_ioctl()
[all …]
H A Dtda8444.c148 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()
[all …]
H A Dpcf8591.c153 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()
[all …]
/titanic_41/usr/src/uts/sun4u/grover/io/
H A Dgrfans.c148 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()
186 instance); in grfans_do_attach()
[all …]
/titanic_41/usr/src/uts/sun4u/serengeti/io/
H A Dssm.c96 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, "nodeid"); in ssm_attach()
[all …]
/titanic_41/usr/src/uts/common/io/chxge/com/
H A Dch_mac.c98 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->index), data32); in mac_set_speed_duplex_fc()
[all …]
/titanic_41/usr/src/uts/common/io/1394/targets/dcam1394/
H A Ddcam.c214 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()
261 (void) sprintf(tmp_str, "dcamctl%d", instance); in dcam_attach()
[all …]
/titanic_41/usr/src/uts/sun4u/starfire/io/
H A Didn.conf28 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_41/usr/src/uts/common/fs/getgen/
H A Dgetgen.c135 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)) == NULL) in gg_open()
228 int instance; in gg_detach() local
[all …]

12345678910>>...35