/illumos-gate/usr/src/uts/sun4u/io/i2c/clients/ |
H A D | seeprom.c | 150 int instance; local 153 instance = ddi_get_instance(dip); 155 if (ddi_soft_state_zalloc(seepromsoft_statep, instance) != 0) { 157 ddi_node_name(dip), instance); 162 unitp = ddi_get_soft_state(seepromsoft_statep, instance); 167 "%s%d", ddi_driver_name(dip), instance); 170 instance, SEEPROM_NODE_TYPE, NULL) == DDI_FAILURE) { 173 ddi_soft_state_free(seepromsoft_statep, instance); 181 ddi_soft_state_free(seepromsoft_statep, instance); 200 dev = makedevice(DDI_MAJOR_T_UNKNOWN, instance); 260 int instance; local 380 int instance = getminor(dev); local [all...] |
H A D | ssc100.c | 154 int instance; 157 instance = getminor(*devp); 159 if (instance < 0) { 164 ddi_get_soft_state(ssc100soft_statep, instance); 201 int instance; 203 instance = getminor(dev); 205 if (instance < 0) { 209 ddi_get_soft_state(ssc100soft_statep, instance); 302 int instance; 316 instance 510 int instance; local 582 int instance; local 620 int instance = getminor(dev); local [all...] |
H A D | tda8444.c | 148 int instance; local 152 instance = TDA8444_MINOR_TO_DEVINST(dev); 153 *result = (void *)(uintptr_t)instance; 162 int instance = ddi_get_instance(dip); local 168 ddi_get_soft_state(tda8444_soft_statep, instance); 201 int instance; local 205 instance = ddi_get_instance(dip); 207 if (ddi_soft_state_zalloc(tda8444_soft_statep, instance) != 0) { 209 ddi_get_name(dip), instance); 214 unitp = ddi_get_soft_state(tda8444_soft_statep, instance); 288 int instance; local 307 int instance; local 352 int instance = TDA8444_MINOR_TO_DEVINST(*devp); local 442 int instance = TDA8444_MINOR_TO_DEVINST(getminor(dev)); local [all...] |
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | pmugpio.c | 177 int instance; local 189 /* Get the instance and create soft state */ 190 instance = ddi_get_instance(dip); 191 if (ddi_soft_state_zalloc(pmugpio_statep, instance) != 0) { 194 pmugpio_ptr = ddi_get_soft_state(pmugpio_statep, instance); 200 ddi_soft_state_free(pmugpio_statep, instance); 232 int instance, error; local 241 instance = getminor(dev); 242 *result = (void *)(uintptr_t)instance; 255 int instance; local 317 int instance; local [all...] |
H A D | rmcadm.c | 223 int instance; local 229 * only allow one instance 231 instance = ddi_get_instance(dip); 232 if (instance != 0) 236 instance, DDI_PSEUDO, NULL); 265 int instance; local 269 instance = ddi_get_instance(dip); 270 if (instance != 0) 289 int instance = getminor(*dev_p); local 291 if (instance ! 314 int instance = getminor(dev); local [all...] |
H A D | todds1337.c | 83 static int instance = -1; variable 244 if (instance != -1) { 245 cmn_err(CE_WARN, "todds1337_attach: wrong instance"); 249 instance = ddi_get_instance(dip); 254 if (ddi_soft_state_zalloc(ds1337_statep, instance) != DDI_SUCCESS) { 257 instance = -1; 261 statep = ddi_get_soft_state(ds1337_statep, instance); 265 instance = -1; 272 ddi_soft_state_free(ds1337_statep, instance); 275 instance [all...] |
/illumos-gate/usr/src/uts/sun4u/io/ppm/ |
H A D | jbusppm.c | 191 int instance; local 207 instance = ddi_get_instance(dip); 208 rv = ddi_soft_state_zalloc(jbppm_statep, instance); 216 if ((unitp = ddi_get_soft_state(jbppm_statep, instance)) == NULL) { 256 rv = ddi_create_minor_node(dip, "jbus-ppm", S_IFCHR, instance, 0, 0); 273 ddi_soft_state_free(jbppm_statep, instance); 287 int instance; local 291 instance = getminor((dev_t)arg); 292 unitp = ddi_get_soft_state(jbppm_statep, instance); 300 instance [all...] |
/illumos-gate/usr/src/uts/sun4u/littleneck/io/ |
H A D | pcf8574_lneck.c | 161 int instance; 166 instance = getminor(*devp); 168 if (instance < 0) { 173 ddi_get_soft_state(pcf8574soft_statep, instance); 209 int instance; 211 instance = getminor(dev); 213 if (instance < 0) { 217 ddi_get_soft_state(pcf8574soft_statep, instance); 303 int instance; 316 instance 501 int instance, err; local 587 int instance; local [all...] |
/illumos-gate/usr/src/uts/sun4u/montecarlo/sys/ |
H A D | hscimpl.h | 76 int instance; member in struct:hsc_state
|
/illumos-gate/usr/src/uts/sun4u/opl/io/pcicmu/ |
H A D | pcmu_ecc.c | 454 int instance = ddi_get_instance(dip); local 456 pcmu_p = get_pcmu_soft_state(instance);
|
/illumos-gate/usr/src/uts/sun/io/ |
H A D | sbusmem.c | 155 int instance, ilen; local 161 instance = ddi_get_instance(devi); 168 "sbmem_attach%d: No size property\n", instance); 179 "sbmem_attach%d: No reg property\n", instance); 182 "sbmem_attach%d: slot 0x%x size 0x%x\n", instance, 193 "sbmem_attach%d: No ident property\n", instance); 199 instance) != DDI_SUCCESS) 203 instance)) == NULL) { 204 ddi_soft_state_free(sbusmem_state_head, instance); 208 if (ddi_create_minor_node(devi, ident, S_IFCHR, instance, 240 int instance; local 259 int instance; local 284 int instance, error = DDI_FAILURE; local 337 int instance, error = 0; local 389 int instance, error; local [all...] |
/illumos-gate/usr/src/uts/intel/io/agpgart/ |
H A D | amd64_gart.c | 18 #define GETSOFTC(instance) ((amd64_gart_softstate_t *) \ 19 ddi_get_soft_state(amd64_gart_glob_soft_handle, (instance))); 135 int instance, rval = DDI_FAILURE; local 141 instance = DEV2INST(dev); 142 st = ddi_get_soft_state(amd64_gart_glob_soft_handle, instance); 155 instance = DEV2INST(dev); 156 *resultp = (void *)(uintptr_t)instance; 169 int instance; local 186 instance = ddi_get_instance(dip); 188 if (ddi_soft_state_zalloc(amd64_gart_glob_soft_handle, instance) ! 215 int instance; local 248 int instance; local 326 int instance; local 345 int instance; local [all...] |
/illumos-gate/usr/src/uts/common/io/e1000g/ |
H A D | e1000g_debug.c | 65 e1000g_log(void *instance, int level, char *fmt, ...) argument 67 struct e1000g *Adapter = (struct e1000g *)instance; 163 eeprom_dump(void *instance) argument 165 struct e1000g *Adapter = (struct e1000g *)instance; 226 phy_dump(void *instance) argument 228 struct e1000g *Adapter = (struct e1000g *)instance; 270 mac_dump(void *instance) argument 272 struct e1000g *Adapter = (struct e1000g *)instance; 369 pciconfig_dump(void *instance) argument 371 struct e1000g *Adapter = (struct e1000g *)instance; 538 pciconfig_bar(void *instance, uint32_t offset, char *name) argument [all...] |
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/fcoei/ |
H A D | fcoei.c | 193 int instance; local 196 instance = ddi_get_instance(dip); 197 FCOEI_LOG(__FUNCTION__, "instance is %d", instance); 200 ret = ddi_soft_state_zalloc(fcoei_state, instance); 209 ss = ddi_get_soft_state(fcoei_state, instance); 214 ddi_soft_state_free(fcoei_state, instance); 239 int instance; local 242 instance = ddi_get_instance(dip); 243 ss = ddi_get_soft_state(fcoei_state, instance); [all...] |
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_init.c | 345 /* we only allow instance 0 to attach */ 377 ulong_t instance = getminor((dev_t)arg); local 385 *result = (void *)instance;
|
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | smfcfg.c | 34 fs_smf_init(char *fmri, char *instance) argument 108 char *instance, scf_type_t sctype, char *fmri) 132 if (instance == NULL) 133 instance = "default"; 134 if (strlen(srv) + strlen(instance) > MAXPATHLEN) 136 strncat(srv, instance, strlen(instance)); 139 phandle = fs_smf_init(fmri, instance); 241 char *instance, scf_type_t sctype, char *fmri, int *bufsz) 263 if (instance 107 fs_smf_set_prop(smf_fstype_t fstype, char *prop_name, char *valbuf, char *instance, scf_type_t sctype, char *fmri) argument 240 fs_smf_get_prop(smf_fstype_t fstype, char *prop_name, char *cbuf, char *instance, scf_type_t sctype, char *fmri, int *bufsz) argument 356 nfs_smf_get_prop(char *prop_name, char *propbuf, char *instance, scf_type_t sctype, char *svc_name, int *bufsz) argument 365 nfs_smf_get_iprop(char *prop_name, int *rvp, char *instance, scf_type_t sctype, char *svc_name) argument 385 nfs_smf_set_prop(char *prop_name, char *value, char *instance, scf_type_t type, char *svc_name) argument 393 autofs_smf_set_prop(char *prop_name, char *value, char *instance, scf_type_t type, char *svc_name) argument 401 autofs_smf_get_prop(char *prop_name, char *propbuf, char *instance, scf_type_t sctype, char *svc_name, int *bufsz) argument [all...] |
/illumos-gate/usr/src/cmd/idmap/idmapd/ |
H A D | idmap_config.h | 58 scf_instance_t *instance; member in struct:idmap_cfg_handles
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/ |
H A D | iscsi_lun.c | 419 char instance[32]; local 497 * Assign the instance number for the dev_link 501 (void) snprintf(instance, 32, "%d", 504 lun_dip, NDI_GUID, instance);
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | svc.c | 30 * svc://[scope@][system-fqn]/service[:instance][@contract-id] 182 * svc:/service[:instance] 425 char *instance = NULL; local 443 err = nvlist_lookup_string(nvl, FM_FMRI_SVC_INSTANCE, &instance); 444 if ((err != 0 && err != ENOENT) || !svc_component_valid(instance)) 482 /* [:instance][@contract-id] */ 483 topo_fmristr_build(&size, buf, buflen, instance, ":", NULL); 596 /* instance */ 654 * no fmri instance OK 655 * instance delete 702 char *instance, *name; local [all...] |
/illumos-gate/usr/src/lib/libshare/autofs/ |
H A D | libshare_autofs.c | 446 char *instance = NULL; local 457 instance, sctype, AUTOFS_FMRI, &bufsz); 539 char *value, *instance = NULL; local 559 instance, sctype, AUTOFS_FMRI); 561 * Make an instance based FMRI.
|
/illumos-gate/usr/src/lib/libipmi/common/ |
H A D | ipmi_entity.c | 71 uint8_t id, uint8_t instance) 77 search.ie_instance = instance; 85 cp->ie_entity.ie_instance = instance; 107 ipmi_entity_sdr_parse(ipmi_sdr_t *sdrp, uint8_t *id, uint8_t *instance, argument 116 *instance = fsp->is_fs_entity_instance; 126 *instance = csp->is_cs_entity_instance; 136 *instance = eop->is_eo_entity_instance; 146 *instance = eap->is_ea_entity_instance; 156 *instance = glp->is_gl_instance; 166 *instance 70 ipmi_entity_add_assoc(ipmi_handle_t *ihp, ipmi_entity_impl_t *eip, uint8_t id, uint8_t instance) argument 197 uint8_t id, instance; local 651 ipmi_entity_lookup(ipmi_handle_t *ihp, uint8_t type, uint8_t instance) argument 674 uint8_t id, instance; local [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/snowbird/frutree/ |
H A D | picllibdevinfo.c | 63 int instance; member in struct:p_info 236 "NODE", port_info->drv_name, port_info->instance, 375 port_info->instance = di_instance(node); 779 * initializes the port driver and instance fields based on libdevinfo 845 /* initialize the driver name and instance number */ 847 portp->instance = di_instance(curr);
|
/illumos-gate/usr/src/cmd/intrstat/ |
H A D | intrstat.c | 186 int32_t *instance; local 200 instance = (int32_t *)(data->dtada_data + irec->dtrd_offset); 214 name, *instance);
|
/illumos-gate/usr/src/cmd/stat/common/ |
H A D | dsr.c | 122 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/cmd/svr4pkg/hdrs/ |
H A D | install.h | 87 char *instance; member in struct:admin
|