Searched refs:instance (Results 376 - 400 of 843) sorted by relevance

<<11121314151617181920>>

/illumos-gate/usr/src/uts/sun4/io/
H A Debus.c247 int instance; local
249 instance = getminor((dev_t)arg);
250 ebus_p = get_ebus_soft_state(instance);
254 *result = (void *)(uintptr_t)instance;
282 int instance; local
290 * Allocate soft state for this instance.
292 instance = ddi_get_instance(dip);
293 if (ddi_soft_state_zalloc(per_ebus_state, instance)
298 ebus_p = get_ebus_soft_state(instance);
315 if (ddi_create_minor_node(dip, "devctl", S_IFCHR, instance,
367 int instance = ddi_get_instance(dip); local
[all...]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlge/
H A Dqlge.c264 __func__, qlge->instance);
274 __func__, qlge->instance, value, fn0_net, fn1_net);
412 * Initialize adapter instance
485 __func__, qlge->instance);
561 __func__, qlge->instance, sem_mask);
590 /* Get adapter instance parameter. */
591 (void) sprintf(buf, "hba%d-%s", qlge->instance, string);
595 /* Adapter instance parameter found? */
802 __func__, qlge->instance, intr, ctx->irq_cnt));
819 __func__, qlge->instance, ct
6193 ql_setup_named_kstat(qlge_t *qlge, int instance, char *name, const ql_ksindex_t *ksip, size_t size, int (*update)(kstat_t *, int)) argument
7390 int instance; local
[all...]
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor.c66 static int tavor_drv_init(tavor_state_t *state, dev_info_t *dip, int instance);
277 minor_t instance; local
284 instance = TAVOR_DEV_INSTANCE(dev);
285 state = ddi_get_soft_state(tavor_statep, instance);
297 instance = TAVOR_DEV_INSTANCE(dev);
298 *result = (void *)(uintptr_t)instance;
321 minor_t instance; local
329 instance = TAVOR_DEV_INSTANCE(*devp);
330 state = ddi_get_soft_state(tavor_statep, instance);
354 * instance an
490 minor_t instance; local
584 int instance; local
743 int instance, status; local
857 tavor_drv_init(tavor_state_t *state, dev_info_t *dip, int instance) argument
[all...]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/ontario/common/
H A Dstpaul.c82 int32_t instance; local
134 instance = stpaul_get_network_instance(path);
137 MOTHERBOARD, "NET", instance);
161 instance = stpaul_get_usb_instance(path);
162 if (instance != -1)
165 MOTHERBOARD, "USB", instance);
169 if ((instance = stpaul_get_io_instance(path, &pn_type)) != -1) {
173 MOTHERBOARD, "PCI-EM", instance);
177 MOTHERBOARD, "NEM", instance);
/illumos-gate/usr/src/uts/common/io/nxge/
H A Dnxge_hio_guest.c71 nxge->function_num = nxge->instance; /* HIOXXX Looking for ideas. */
92 nxge->npi_handle.function.instance = nxge->instance;
100 nxge->npi_reg_handle.function.instance = nxge->instance;
108 nxge->npi_vreg_handle.function.instance = nxge->instance;
248 nxge->instance, cookie));
350 nxge->instance);
940 * group 0 for an instance o
[all...]
/illumos-gate/usr/src/uts/sun4u/daktari/io/
H A Dhpc3130_dak.c272 int instance;
279 instance = MINOR_TO_INST(getminor(*devp));
282 ddi_get_soft_state(hpc3130soft_statep, instance);
314 int instance;
316 instance = MINOR_TO_INST(getminor(dev));
319 ddi_get_soft_state(hpc3130soft_statep, instance);
424 int instance = MINOR_TO_INST(getminor(dev)); local
428 ddi_get_soft_state(hpc3130soft_statep, instance);
437 * index in the per instance slot table. If it is not
448 D2CMN_ERR((CE_NOTE, "ioctl: port = %d instance
694 int instance = MINOR_TO_INST(getminor(dev)); local
719 int instance; local
768 int instance = ddi_get_instance(dip); local
1031 int instance = ddi_get_instance(dip); local
1210 int instance = ddi_get_instance(dip); local
[all...]
/illumos-gate/usr/src/uts/sun4u/lw8/io/
H A Dsgfru.c163 int instance; local
169 instance = ddi_get_instance(dip);
171 error = ddi_soft_state_zalloc(sgfru_statep, instance);
174 "for inst %d.", f, instance);
177 softsp = ddi_get_soft_state(sgfru_statep, instance);
179 ddi_soft_state_free(sgfru_statep, instance);
181 "structure for inst %d.", f, instance);
186 softsp->instance = instance;
189 instance, DDI_PSEUD
210 int instance; local
242 int instance = getminor(*dev_p); local
265 int instance = getminor(dev); local
284 int instance = getminor(dev); local
[all...]
/illumos-gate/usr/src/uts/common/io/audio/drv/audiots/
H A Daudiots.c364 * Attach an instance of the audiots driver. This routine does the
379 int instance; local
381 instance = ddi_get_instance(dip);
389 state = ddi_get_soft_state(audiots_statep, instance);
419 "been disabled.", ddi_driver_name(dip), instance);
425 if (ddi_soft_state_zalloc(audiots_statep, instance) == DDI_FAILURE) {
427 ddi_driver_name(dip), instance);
437 state = ddi_get_soft_state(audiots_statep, instance);
492 * Detach an instance of the audiots driver.
506 int instance; local
562 int instance; local
[all...]
/illumos-gate/usr/src/uts/sun4u/opl/io/
H A Ddm2s.c42 * this driver supports only one instance and is not a high-performance
247 int instance; local
252 instance = ddi_get_instance(dip);
254 /* Only one instance is supported. */
255 if (instance != 0) {
256 cmn_err(CE_WARN, "only one instance is supported");
263 if (ddi_soft_state_zalloc(dm2s_softstate, instance) != DDI_SUCCESS) {
267 dm2sp = (dm2s_t *)ddi_get_soft_state(dm2s_softstate, instance);
269 ddi_soft_state_free(dm2s_softstate, instance);
275 dm2sp->ms_ppa = instance;
355 int instance; local
391 int instance = getminor(*dev); local
[all...]
/illumos-gate/usr/src/uts/common/io/fcoe/
H A Dfcoe.c304 int instance; local
307 instance = ddi_get_instance(dip);
310 ret = ddi_soft_state_zalloc(fcoe_state, instance);
312 FCOE_LOG(0, "soft_state_zalloc-%x/%x", ret, instance);
316 ss = ddi_get_soft_state(fcoe_state, instance);
346 int instance; local
349 instance = ddi_get_instance(dip);
350 ss = ddi_get_soft_state(fcoe_state, instance);
410 * We need specify the dev address for client driver's instance, or we
411 * can't online client driver's instance
447 int instance; local
499 int instance; local
[all...]
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvsw_phys.c194 "unicast address\n", vswp->instance);
221 "unicast address\n", vswp->instance,
291 vswp->instance, vswp->physname, rv);
302 vswp->instance, vswp->physname, rv);
348 vswp->instance,
416 "multicast address(%s) err=%d", vswp->instance,
519 int instance; local
541 instance = ddi_get_instance(vswp->dip);
546 instance, "_port", port->p_instance);
549 dev_name, "_if", instance);
[all...]
/illumos-gate/usr/src/uts/common/io/
H A Demul64.c286 int instance = getminor((dev_t)arg); local
290 foo = ddi_get_soft_state(emul64_state, instance);
300 *result = (void *)(uintptr_t)instance;
311 * Attach an instance of an emul64 host adapter. Allocate data structures,
320 int instance; local
327 instance = ddi_get_instance(dip);
344 "emul64%d: Cmd != DDI_ATTACH/DDI_RESUME", instance);
351 if (ddi_soft_state_zalloc(emul64_state, instance) != DDI_SUCCESS) {
354 instance);
358 emul64 = (struct emul64 *)ddi_get_soft_state(emul64_state, instance);
464 int instance = ddi_get_instance(dip); local
1401 int instance; local
[all...]
/illumos-gate/usr/src/cmd/mdb/sparc/modules/intr/
H A Dintr.c51 int instance; member in struct:intr_info
229 /* Get instance */
243 info.instance = dev.devi_instance;
318 /* Get instance */
330 info.instance = dev.devi_instance;
402 /* Get instance */
414 info.instance = dev.devi_instance;
494 mdb_printf(" %11s#%d\t", info.driver_name, info.instance);
512 mdb_printf("Instance:\t%d\n", info.instance);
/illumos-gate/usr/src/cmd/stat/common/
H A Ddsr.c122 int instance; local
142 /* take <driver><instance><minor_name> snapshot if not established */
150 * Determine if 'instunit' is an 'instance' or 'unit' based on the
152 * and defaults to 'instance' for everything else.
175 instance = 0;
180 instance = instunit;
185 devpath = di_dim_path_dev(di_dim, driver, instance, part);
190 driver, instance, mm->minor_name)) != NULL)
269 driver, instance, NULL);
328 * "<driver><instunit>.<pid>.<phci-driver><instance>,<partitio
[all...]
/illumos-gate/usr/src/uts/common/io/rsm/
H A Drsmka_pathmanager.c658 rsmka_add_adapter(char *name, int instance, rsm_addr_t hwaddr) argument
672 "rsmka_add_adapter: name = %s instance = %d hwaddr = %llx \n",
673 name, instance, hwaddr));
684 adapter_is_supported = rsm_get_controller(name, instance,
701 instance, result));
702 (void) rsm_release_controller(name, instance,
718 srv_hdlr_argp->adapter_instance = instance;
740 instance));
745 adapter = init_adapter(name, instance, hwaddr,
772 rsmka_remove_adapter(char *name, uint_t instance, voi argument
945 rsmka_remove_path(char *adapter_name, int instance, rsm_node_id_t remote_node, rsm_addr_t remote_hwaddr, void *path_cookie, int flags) argument
1103 rsmka_path_down(char *adapter_devname, int instance, rsm_node_id_t remote_node, rsm_addr_t remote_hwaddr, void *path_cookie, int flags) argument
1856 rsmka_lookup_adapter(char *devname, int instance) argument
1973 init_adapter(char *name, int instance, rsm_addr_t hwaddr, rsm_controller_handle_t handle, rsm_ops_t *ops, srv_handler_arg_t *hdlr_argp) argument
[all...]
/illumos-gate/usr/src/uts/intel/io/dktp/controller/ata/
H A Data_common.c227 int instance; local
235 instance = ddi_get_instance(dip);
236 ata_ctlp = ddi_get_soft_state(ata_state, instance);
565 int instance = ddi_get_instance(dip); local
566 if (ddi_create_minor_node(dip, "control", S_IFCHR, instance,
602 int instance; local
617 instance = ddi_get_instance(dip);
618 ata_ctlp = ddi_get_soft_state(ata_state, instance);
768 int instance = ddi_get_instance(d); local
769 ata_ctl_t *ata_ctlp = ddi_get_soft_state(ata_state, instance);
984 int instance; local
1132 int instance; local
3509 int instance; local
3590 int instance; local
3624 int instance; local
3654 int instance; local
3697 int instance; local
[all...]
/illumos-gate/usr/src/uts/sun4u/io/
H A Dmc-us3i.c216 int instance, len, err; local
230 instance = ddi_get_instance(devi);
232 if (ddi_soft_state_zalloc(mcp, instance) != DDI_SUCCESS)
235 softsp = ddi_get_soft_state(mcp, instance);
243 instance, "portid"));
248 instance, softsp->portid, CPU->cpu_id));
258 instance, softsp->mcreg1));
264 instance));
293 instance));
316 if (ddi_create_minor_node(devi, "mc-us3i", S_IFCHR, instance,
344 int instance; local
[all...]
H A Dpmubus.c226 int32_t instance; local
231 * Allocate soft state for this instance.
233 instance = ddi_get_instance(dip);
234 if (ddi_soft_state_zalloc(per_pmubus_state, instance) !=
241 pmubusp = ddi_get_soft_state(per_pmubus_state, instance);
293 ddi_soft_state_free(per_pmubus_state, instance);
305 int instance = ddi_get_instance(dip); local
307 instance);
322 ddi_soft_state_free(per_pmubus_state, instance);
/illumos-gate/usr/src/uts/sun4u/io/i2c/nexus/
H A Dsmbus.c286 int instance = ddi_get_instance(dip); local
288 smbus = ddi_get_soft_state(smbus_state, instance);
321 ddi_soft_state_free(smbus_state, instance);
328 int instance = ddi_get_instance(dip); local
333 if (ddi_soft_state_zalloc(smbus_state, instance) != DDI_SUCCESS) {
338 smbus = ddi_get_soft_state(smbus_state, instance);
341 "%s%d", ddi_node_name(dip), instance);
656 int instance; local
658 instance = ddi_get_instance(dip);
659 smbus = ddi_get_soft_state(smbus_state, instance);
673 int instance; local
[all...]
/illumos-gate/usr/src/uts/sun4u/io/pci/
H A Dpci.c247 int instance = PCIHP_AP_MINOR_NUM_TO_INSTANCE(getminor((dev_t)arg)); local
248 pci_t *pci_p = get_pci_soft_state(instance);
257 *result = (void *)(uintptr_t)instance;
280 int instance = ddi_get_instance(dip); local
289 if (alloc_pci_soft_state(instance) != DDI_SUCCESS) {
291 ddi_driver_name(dip), instance);
294 pci_p = get_pci_soft_state(instance);
329 PCIHP_AP_MINOR_NUM(instance, PCIHP_DEVCTL_MINOR),
360 free_pci_soft_state(instance);
371 pci_p = get_pci_soft_state(instance);
404 int instance = ddi_get_instance(dip); local
[all...]
/illumos-gate/usr/src/uts/sun4u/lw2plus/io/
H A Dlombus.c260 int instance; member in struct:lombus_state
366 (void) strlog(ssp->majornum, ssp->instance, code, SL_TRACE,
372 lombus_getstate(dev_info_t *dip, int instance, const char *caller) argument
380 * Use the instance number from the <dip>; also,
383 instance = ddi_get_instance(dip);
392 instance = -1;
396 if (instance >= 0)
397 ssp = ddi_get_soft_state(lombus_statep, instance);
945 * the per-instance state to the per-handle fault flag.
2008 lombus_unattach(struct lombus_state *ssp, int instance) argument
2038 int instance; local
2138 int instance; local
[all...]
/illumos-gate/usr/src/uts/intel/io/agpgart/
H A Dagpgart.c62 #define AGP_INST2MINOR(instance) ((instance) << 4)
247 int instance; local
252 instance = AGP_DEV2INST(dev);
253 softstate = ddi_get_soft_state(agpgart_glob_soft_handle, instance);
321 * We check all possible driver instance from 0
323 * at any instance number. Only one AGP master is supported.
343 * Search all possible instance numbers for the agp master device.
353 "master device found: instance number=%d", i));
372 * We check driver instance fro
2444 int instance; local
2513 int instance; local
2575 int instance, rval = DDI_FAILURE; local
2630 int instance = AGP_DEV2INST(*dev); local
2788 int instance = AGP_DEV2INST(dev); local
3270 int instance; local
3339 int instance; local
3366 int instance, status; local
[all...]
/illumos-gate/usr/src/lib/fm/topo/maps/Joyent,Joyent-Compute-Platform-1101/
H A DJoyent-Compute-Platform-1101-disk-hc-topology.xmlgenksh20 <node instance='${1}'>
/illumos-gate/usr/src/uts/i86pc/io/pci/
H A Dpci.c226 int instance = ddi_get_instance(devi); local
244 if (ddi_soft_state_zalloc(pci_statep, instance) == DDI_SUCCESS) {
245 pcip = ddi_get_soft_state(pci_statep, instance);
291 ddi_soft_state_free(pci_statep, instance);
300 int instance = ddi_get_instance(devi); local
321 ddi_soft_state_free(pci_statep, instance);
664 * Pseudo nodes indicate a prototype node with per-instance
788 int instance = PCI_MINOR_NUM_TO_INSTANCE(minor); local
789 pci_state_t *pci_p = ddi_get_soft_state(pci_statep, instance);
/illumos-gate/usr/src/uts/sun4/io/px/
H A Dpx_debug.c166 int instance = DIP_TO_INST(dip); local
167 px_t *px_p = INST_TO_STATE(instance);

Completed in 98 milliseconds

<<11121314151617181920>>