Searched defs:instance (Results 226 - 250 of 540) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/uts/sun4v/io/n2rng/
H A Dn2rng.c164 int instance; local
169 instance = ddi_get_instance(dip);
170 DBG1(NULL, DENTRY, "n2rng_attach called, instance %d", instance);
172 * Only instance 0 of n2rng driver is allowed.
174 if (instance != 0) {
175 n2rng_diperror(dip, "only one instance (0) allowed");
182 instance);
195 rv = ddi_soft_state_zalloc(n2rng_softstate, instance);
200 n2rng = (n2rng_t *)ddi_get_soft_state(n2rng_softstate, instance);
329 int instance; local
[all...]
/illumos-gate/usr/src/uts/sun4v/io/niumx/
H A Dniumx.c249 int instance = ddi_get_instance(dip); local
269 if (ddi_soft_state_zalloc(niumx_state, instance)
275 instance);
280 DBG(NIUMX_DBG_ATTACH, dip, "soft state alloc'd instance = %d, "
281 "niumxds_p = %p\n", instance, niumxds_p);
574 * Non-peristent nodes indicate a prototype node with per-instance
919 int instance = ddi_get_instance(dip); local
922 instance);
1051 int instance = ddi_get_instance(dip); local
1054 instance);
1142 int instance = ddi_get_instance(dip); local
[all...]
/illumos-gate/usr/src/uts/sun4v/io/
H A Dqcn.c347 * There is only once instance of this driver.
484 int instance = 0; local
501 *result = (void *)(uintptr_t)instance;
H A Dvldc.c98 * node. This template is copied for each vldc instance and filled
433 /* get the unique vldc instance assigned by the LDom manager */
442 /* get the name of the vldc instance */
451 D1("i_vldc_mdeg_register: name=%s, instance=%d\n", nameprop, inst);
454 * Allocate and initialize a per-instance copy
456 * uniquely identify this vldc instance.
471 /* copy in the instance property */
869 * called once for each instance of the device on the system.
874 int i, instance; local
881 instance
937 int i, instance; local
1431 int instance; local
1658 int instance; local
[all...]
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/sun4v/sys/
H A Dvsw.h118 * vsw instance state information.
121 int instance; /* instance # */ member in struct:vsw
/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/sun4/io/px/
H A Dpx_ib.c48 char *path_name, int instance);
1093 char *path_name, int instance)
1097 dev->dev_inst = instance;
1092 px_fill_in_intr_devs(pcitool_intr_dev_t *dev, char *driver_name, char *path_name, int instance) argument
/illumos-gate/usr/src/uts/sun4u/io/i2c/nexus/
H A Di2bsc.c230 int instance = ddi_get_instance(dip); local
232 i2c = (i2bsc_t *)ddi_get_soft_state(i2bsc_state, instance);
248 ddi_soft_state_free(i2bsc_state, instance);
255 int instance = ddi_get_instance(dip); local
260 if (ddi_soft_state_zalloc(i2bsc_state, instance) != DDI_SUCCESS) {
264 i2c = (i2bsc_t *)ddi_get_soft_state(i2bsc_state, instance);
267 i2c->minornum = instance;
273 "%s_%d", ddi_node_name(dip), instance);
289 if (ddi_create_minor_node(dip, "devctl", S_IFCHR, instance,
366 int instance; local
399 int instance; local
488 int instance = ddi_get_instance(dip); local
533 int instance; local
550 int instance; local
[all...]
H A Dpcf8584.c280 int instance = ddi_get_instance(dip); local
282 i2c = (pcf8584_t *)ddi_get_soft_state(pcf8584_state, instance);
308 ddi_soft_state_free(pcf8584_state, instance);
315 int instance = ddi_get_instance(dip); local
320 if (ddi_soft_state_zalloc(pcf8584_state, instance) != DDI_SUCCESS) {
325 i2c = (pcf8584_t *)ddi_get_soft_state(pcf8584_state, instance);
330 "%s_%d", ddi_node_name(dip), instance);
405 if (ddi_create_minor_node(dip, "devctl", S_IFCHR, instance,
465 int instance; local
474 instance
498 int instance; local
604 int instance; local
621 int instance; local
[all...]
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...]
H A Dpci_tools.c988 int instance = ddi_get_instance(dip); local
991 PCIHP_AP_MINOR_NUM(instance, PCI_TOOL_REG_MINOR_NUM),
996 PCIHP_AP_MINOR_NUM(instance, PCI_TOOL_INTR_MINOR_NUM),
/illumos-gate/usr/src/uts/sun4u/io/
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);
H A Dsbbc.c57 * kernel virtual address space resources (as one instance of the driver
59 * one instance of the driver is created on the SSC).
145 static void sbbc_dump_devid(dev_info_t *, struct sbbcsoft *, int instance);
291 int instance; local
306 instance = ddi_get_instance(dip);
312 ddi_get_soft_state(sbbcsoft_statep, instance))) {
314 "to acquire sbbcsoftp for instance %d",
315 instance);
331 if (ddi_soft_state_zalloc(sbbcsoft_statep, instance) != 0) {
333 "for instance
455 int instance; local
521 int instance; local
673 int instance, i, rval = DDI_SUCCESS; local
727 int instance, i, rval = DDI_SUCCESS; local
775 int instance, i; local
1030 int instance, ret; local
1065 int instance; local
1101 int instance; local
1480 sbbc_dump_devid(dev_info_t *dip, struct sbbcsoft *sbbcsoftp, int instance) argument
[all...]
H A Dtodds1287.c156 static int instance = -1; variable
262 if (instance == -1)
267 if ((softsp = ddi_get_soft_state(ds1287_state, instance))
274 *result = (void *)(uintptr_t)instance;
297 if (instance != -1) {
298 cmn_err(CE_WARN, "ds1287_attach: Another instance is already "
303 instance = ddi_get_instance(dip);
313 if (ddi_soft_state_zalloc(ds1287_state, instance) != DDI_SUCCESS) {
319 softsp = ddi_get_soft_state(ds1287_state, instance);
320 DPRINTF("ds1287_attach: instance
[all...]
H A Dupa64s.c148 * Initialize per instance bus soft state pointer.
205 int instance; local
211 * Allocate and get the per instance soft state structure.
213 instance = ddi_get_instance(dip);
214 if (alloc_upa64s_soft_state(instance) != DDI_SUCCESS) {
216 ddi_get_name(dip), instance);
219 upa64s_p = get_upa64s_soft_state(instance);
236 "property.", ddi_get_name(dip), instance);
248 ddi_get_name(dip), instance);
264 ddi_get_name(dip), instance);
332 int instance = ddi_get_instance(dip); local
376 int instance = ddi_get_instance(dip); local
606 int upaport, instance = ddi_get_instance(dip); local
858 int instance = ddi_get_instance(dip); local
1174 int instance = ddi_get_instance(dip); local
[all...]
/illumos-gate/usr/src/uts/sun4u/montecarlo/io/
H A Dacebus.c229 int instance; local
236 * Allocate soft state for this instance.
238 instance = ddi_get_instance(dip);
239 if (ddi_soft_state_zalloc(per_acebus_state, instance)
244 ebus_p = get_acebus_soft_state(instance);
252 free_acebus_soft_state(instance);
260 free_acebus_soft_state(instance);
274 instance = ddi_get_instance(dip);
275 ebus_p = get_acebus_soft_state(instance);
282 free_acebus_soft_state(instance);
298 int instance = ddi_get_instance(dip); local
[all...]
H A Dpcf8574_nct.c219 register int instance; local
222 instance = getminor(*devp);
223 if (instance < 0) {
228 ddi_get_soft_state(pcf8574_soft_statep, instance);
264 register int instance; local
271 instance = getminor(dev);
273 if (instance < 0) {
278 ddi_get_soft_state(pcf8574_soft_statep, instance);
305 register int instance; local
310 instance
354 int instance = ddi_get_instance(dip); local
371 int instance; local
450 int instance; local
669 int instance = ddi_get_instance(dip); local
704 int instance; local
979 register int instance; local
[all...]
H A Dpcf8591_nct.c216 int instance = PCF8591_MINOR_TO_DEVINST(minor); local
219 if (instance < 0) {
224 ddi_get_soft_state(pcf8591_soft_statep, instance);
262 int instance = PCF8591_MINOR_TO_DEVINST(minor); local
270 if (instance < 0) {
275 ddi_get_soft_state(pcf8591_soft_statep, instance);
297 int instance = PCF8591_MINOR_TO_DEVINST(minor); local
310 if (instance < 0) {
315 ddi_get_soft_state(pcf8591_soft_statep, instance);
522 int instance local
663 int instance; local
722 int instance = ddi_get_instance(dip); local
752 int instance = ddi_get_instance(dip); local
771 int i, instance; local
894 int instance; local
1078 int instance = ddi_get_instance(dip); local
[all...]
/illumos-gate/usr/src/uts/sun4u/montecarlo/sys/
H A Dpcf8591_nct.h198 int instance; member in struct:pcf8591_unit
/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/sun4u/serengeti/io/
H A Dsbdp.c707 int instance; local
719 instance = sbdp_info->instance;
723 SBDP_DBG_MISC("sbdp_setup_instance: instance %d wnode %d\n", instance,
745 int instance; local
757 instance = sbdp_info->instance;
760 SBDP_DBG_MISC("sbdp_teardown_instance: instance %d wnode %d\n",
761 instance, wnod
[all...]
/illumos-gate/usr/src/uts/intel/io/heci/
H A Dheci_main.c55 #include <sys/instance.h>
220 int instance, status; local
236 instance = ddi_get_instance(dip); /* find out which unit */
237 status = ddi_soft_state_zalloc(heci_soft_state_p, instance);
240 device = ddi_get_soft_state(heci_soft_state_p, instance);
247 ddi_soft_state_free(heci_soft_state_p, instance);
252 MAKE_MINOR_NUM(HECI_MINOR_NUMBER, instance),
258 ddi_soft_state_free(heci_soft_state_p, instance);
483 int minor, instance; local
490 instance
608 int minor, if_num, instance; local
685 int minor, if_num, instance; local
817 int instance, minor, if_num, err; local
981 int instance, minor, if_num, err; local
1251 int instance, minor, if_num; local
1330 int instance, minor, if_num; local
[all...]
/illumos-gate/usr/src/uts/intel/io/
H A Diommulib.c128 int instance = ddi_get_instance(dip); local
152 f, driver, instance, (void *)nexops);
161 f, driver, instance, (void *)nexops);
168 driver, instance, (void *)nexops);
175 driver, instance, (void *)nexops);
182 driver, instance, (void *)nexops);
189 driver, instance, (void *)nexops);
196 driver, instance, (void *)nexops);
203 driver, instance, (void *)nexops);
210 driver, instance, (voi
301 int instance; local
347 int instance = ddi_get_instance(dip); local
495 int instance; local
550 int instance = ddi_get_instance(rdip); local
605 int instance; local
[all...]

Completed in 125 milliseconds

1234567891011>>