Searched defs:instance (Results 501 - 525 of 540) sorted by relevance

<<2122

/illumos-gate/usr/src/uts/sun4u/starcat/io/
H A Ddman.c820 * need to detach every instance of the driver
909 * man_attach - allocate resources and attach an instance of the MAN driver
922 man_t *manp; /* per instance data */
926 int instance; local
939 instance = ddi_get_instance(dip);
942 * we assume that instance is always equal to zero.
943 * and there will always only be one instance.
945 * the path assumes that the instance number is zero.
949 ASSERT(instance == 0);
955 if ((ddi_soft_state_zalloc(man_softstate, instance) !
1096 int instance; local
7661 int instance; local
[all...]
/illumos-gate/usr/src/uts/sun4u/starfire/io/
H A Didn.c613 int instance; local
672 instance = ddi_get_instance(dip);
674 PR_DRV("%s: instance = %d\n", proc, instance);
681 if (ddi_create_minor_node(dip, IDNNAME, S_IFCHR, instance,
740 IDN_SET_INST2SIP(instance, sip);
771 IDN_SET_INST2SIP(instance, NULL);
796 IDN_SET_INST2SIP(instance, NULL);
823 int instance; local
828 instance
[all...]
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvdc.c319 * to the vdc instance the vdc_msglevel applies.
419 int instance = VDCUNIT((dev_t)arg);
424 if ((vdc = ddi_get_soft_state(vdc_state, instance)) == NULL) {
431 *resultp = (void *)(uintptr_t)instance;
443 int instance; local
460 instance = ddi_get_instance(dip);
461 DMSGX(1, "[%d] Entered\n", instance);
463 if ((vdc = ddi_get_soft_state(vdc_state, instance)) == NULL) {
464 cmn_err(CE_NOTE, "[%d] Couldn't get state structure", instance);
469 DMSG(vdc, 0, "[%d] Cannot detach: device is open", instance);
634 int instance; local
946 int instance = vdc->instance; local
1088 int instance, status; local
1159 int instance = ddi_get_instance(dip); local
1439 int instance = VDCUNIT(dev); local
1496 int instance = VDCUNIT(buf->b_edev); local
1558 int instance = VDCUNIT(bufp->b_edev); local
2257 int instance = ddi_get_instance(dip); local
2566 int instance = ddi_get_instance(vdc->dip); local
2602 int instance = ddi_get_instance(vdc->dip); local
4249 int instance; local
7287 int instance = VDCUNIT(dev); local
[all...]
H A Dvnet_gen.c409 /* Template for matching a particular vnet instance */
477 * vgen_init() is called by an instance of vnet driver to initialize the
483 * vnetp: an opaque pointer to the vnet instance
489 * Sucess: a handle to the vgen instance (vgen_t)
497 int instance; local
504 instance = ddi_get_instance(vnetdip);
506 DBG1(NULL, NULL, "vnet(%d): enter\n", instance);
511 vgenp->instance = instance;
527 instance);
2463 int instance; local
[all...]
H A Dvds.c252 * template is copied for each vds instance and filled in with
399 * Soft state structure for a vds instance
424 struct vd *vd; /* vd instance task is for */
438 * Soft state structure for a virtual disk instance
5380 minor_t instance; local
5397 instance = ddi_get_instance(dip);
5398 if ((vds = ddi_get_soft_state(vds_state, instance)) == NULL) {
5399 PR0("Could not get state for instance %u", instance);
5400 ddi_soft_state_free(vds_state, instance);
7376 minor_t instance = ddi_get_instance(dip); local
[all...]
/illumos-gate/usr/src/uts/sun4u/montecarlo/io/
H A Dscsb.c371 int instance; local
378 instance = ddi_get_instance(dip);
381 cmn_err(CE_NOTE, "scsb_attach[%d]", instance);
387 instance, cmd);
391 if (ddi_soft_state_zalloc(scsb_state, instance) != DDI_SUCCESS) {
393 instance);
397 scsb = (scsb_state_t *)ddi_get_soft_state(scsb_state, instance);
399 cmn_err(CE_WARN, "scsb%d: cannot get soft state", instance);
400 ddi_soft_state_free(scsb_state, instance);
403 scsb->scsb_instance = instance;
887 int instance; local
958 free_resources(dev_info_t *dip, scsb_state_t *scsb, int instance) argument
1084 int instance, clone; local
[all...]
/illumos-gate/usr/src/uts/sun/io/eri/
H A Deri.h175 * Per-Stream instance state information.
177 * Each instance is dynamically allocated at open() and free'd
178 * at close(). Each per-Stream instance points to at most one
342 * ERI Device Channel instance state information.
344 * Each instance is dynamically allocated on first attach.
349 uint_t instance; /* instance */ member in struct:eri
/illumos-gate/usr/src/uts/sun/io/scsi/adapters/
H A Dfas.c530 int instance, id, slot, i, hm_rev; local
587 instance = ddi_get_instance(dip);
596 "fas%d: device in slave-only slot", instance);
609 "fas%d: Device is using a hilevel intr", instance);
616 if (ddi_soft_state_zalloc(fas_state, instance) != DDI_SUCCESS) {
618 "fas%d: cannot allocate soft state", instance);
622 fas = (struct fas *)ddi_get_soft_state(fas_state, instance);
638 cmn_err(CE_WARN, "fas%d: cannot map dma", instance);
646 "fas%d: unable to map fas366 registers", instance);
654 "fas%d: cannot alloc dma handle", instance);
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/common/ses/
H A Dses.c796 * walker will compare the node name and instance number to determine if an
799 * the instance number.
825 * have no choice but to fall back to the instance ID.
897 * Return a current instance of the node. This is somewhat complicated because
1331 uint64_t instance = snp->sen_instance; local
1347 topo_mod_dprintf(mod, "adding %s %llu", nodename, instance);
1380 nodename, (topo_instance_t)instance, NULL, auth, part, revision,
1388 instance, fmri)) == NULL) {
1398 * <ses-class-description> <instance>
1399 * <default-type-label> <instance>
2192 uint64_t instance = scp->sec_instance; local
3124 uint64_t instance, type; local
[all...]
/illumos-gate/usr/src/uts/common/io/mr_sas/
H A Dmr_sas.c86 #define WR_IB_PICK_QPORT(addr, instance) \
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; local
1014 struct mrsas_instance *instance; local
1063 struct mrsas_instance *instance; local
1139 mrsas_undo_resources(dev_info_t *dip, struct mrsas_instance *instance) argument
1403 struct mrsas_instance *instance; local
1496 struct mrsas_instance *instance; local
1526 struct mrsas_instance *instance; local
1601 struct mrsas_instance *instance; local
1667 struct mrsas_instance *instance; local
1696 mrsas_find_child(struct mrsas_instance *instance, uint16_t tgt, uint8_t lun) argument
1779 struct mrsas_instance *instance; local
1865 struct mrsas_instance *instance = ADDR2MR(ap); local
2020 struct mrsas_instance *instance = ADDR2MR(ap); local
2051 struct mrsas_instance *instance = ADDR2MR(ap); local
2302 mrsas_isr(struct mrsas_instance *instance) argument
2445 mrsas_get_mfi_pkt(struct mrsas_instance *instance) argument
2468 get_mfi_app_pkt(struct mrsas_instance *instance) argument
2493 mrsas_return_mfi_pkt(struct mrsas_instance *instance, struct mrsas_cmd *cmd) argument
2503 return_mfi_app_pkt(struct mrsas_instance *instance, struct mrsas_cmd *cmd) argument
2512 push_pending_mfi_pkt(struct mrsas_instance *instance, struct mrsas_cmd *cmd) argument
2565 mrsas_print_pending_cmds(struct mrsas_instance *instance) argument
2639 mrsas_complete_pending_cmds(struct mrsas_instance *instance) argument
2703 mrsas_print_cmd_details(struct mrsas_instance *instance, struct mrsas_cmd *cmd, int detail) argument
2774 mrsas_issue_pending_cmds(struct mrsas_instance *instance) argument
2864 destroy_mfi_frame_pool(struct mrsas_instance *instance) argument
2889 create_mfi_frame_pool(struct mrsas_instance *instance) argument
2971 free_additional_dma_buffer(struct mrsas_instance *instance) argument
2990 alloc_additional_dma_buffer(struct mrsas_instance *instance) argument
3064 mrsas_free_cmd_pool(struct mrsas_instance *instance) argument
3111 mrsas_alloc_cmd_pool(struct mrsas_instance *instance) argument
3197 free_space_for_mfi(struct mrsas_instance *instance) argument
3220 alloc_space_for_mfi(struct mrsas_instance *instance) argument
3259 get_ctrl_info(struct mrsas_instance *instance, struct mrsas_ctrl_info *ctrl_info) argument
3364 abort_aen_cmd(struct mrsas_instance *instance, struct mrsas_cmd *cmd_to_abort) argument
3440 mrsas_build_init_cmd(struct mrsas_instance *instance, struct mrsas_cmd **cmd_ptr) argument
3550 mrsas_init_adapter_ppc(struct mrsas_instance *instance) argument
3623 mrsas_init_adapter(struct mrsas_instance *instance) argument
3683 mrsas_issue_init_mfi(struct mrsas_instance *instance) argument
3779 mfi_state_transition_to_ready(struct mrsas_instance *instance) argument
3968 get_seq_num(struct mrsas_instance *instance, struct mrsas_evt_log_info *eli) argument
4066 start_mfi_aen(struct mrsas_instance *instance) argument
4104 flush_cache(struct mrsas_instance *instance) argument
4169 service_mfi_aen(struct mrsas_instance *instance, struct mrsas_cmd *cmd) argument
4366 complete_cmd_in_sync_mode(struct mrsas_instance *instance, struct mrsas_cmd *cmd) argument
4393 mrsas_initiate_ocr_if_fw_is_faulty(struct mrsas_instance *instance) argument
4428 mrsas_softintr(struct mrsas_instance *instance) argument
4742 mrsas_alloc_dma_obj(struct mrsas_instance *instance, dma_obj_t *obj, uchar_t endian_flags) argument
4821 mrsas_free_dma_obj(struct mrsas_instance *instance, dma_obj_t obj) argument
4856 mrsas_dma_alloc(struct mrsas_instance *instance, struct scsi_pkt *pkt, struct buf *bp, int flags, int (*callback)()) argument
5010 mrsas_dma_move(struct mrsas_instance *instance, struct scsi_pkt *pkt, struct buf *bp) argument
5074 build_cmd(struct mrsas_instance *instance, struct scsi_address *ap, struct scsi_pkt *pkt, uchar_t *cmd_done) argument
5356 wait_for_outstanding(struct mrsas_instance *instance) argument
5380 issue_mfi_pthru(struct mrsas_instance *instance, struct mrsas_ioctl *ioctl, struct mrsas_cmd *cmd, int mode) argument
5551 issue_mfi_dcmd(struct mrsas_instance *instance, struct mrsas_ioctl *ioctl, struct mrsas_cmd *cmd, int mode) argument
5688 issue_mfi_smp(struct mrsas_instance *instance, struct mrsas_ioctl *ioctl, struct mrsas_cmd *cmd, int mode) argument
5953 issue_mfi_stp(struct mrsas_instance *instance, struct mrsas_ioctl *ioctl, struct mrsas_cmd *cmd, int mode) argument
6179 handle_drv_ioctl(struct mrsas_instance *instance, struct mrsas_ioctl *ioctl, int mode) argument
6291 handle_mfi_ioctl(struct mrsas_instance *instance, struct mrsas_ioctl *ioctl, int mode) argument
6356 handle_mfi_aen(struct mrsas_instance *instance, struct mrsas_aen *aen) argument
6369 register_mfi_aen(struct mrsas_instance *instance, uint32_t seq_num, uint32_t class_locale_word) argument
6581 struct mrsas_instance *instance = arg; local
6703 read_fw_status_reg_ppc(struct mrsas_instance *instance) argument
6709 issue_cmd_ppc(struct mrsas_cmd *cmd, struct mrsas_instance *instance) argument
6746 issue_cmd_in_sync_mode_ppc(struct mrsas_instance *instance, struct mrsas_cmd *cmd) argument
6799 issue_cmd_in_poll_mode_ppc(struct mrsas_instance *instance, struct mrsas_cmd *cmd) argument
6839 enable_intr_ppc(struct mrsas_instance *instance) argument
6853 WR_OB_INTR_MASK(~(MFI_REPLY_2108_MESSAGE_INTR_MASK), instance); local
6864 disable_intr_ppc(struct mrsas_instance *instance) argument
6888 intr_ack_ppc(struct mrsas_instance *instance) argument
6942 mrsas_kill_adapter(struct mrsas_instance *instance) argument
6960 mrsas_reset_ppc(struct mrsas_instance *instance) argument
7123 mrsas_common_check(struct mrsas_instance *instance, struct mrsas_cmd *cmd) argument
7183 mrsas_fm_init(struct mrsas_instance *instance) argument
7226 mrsas_fm_fini(struct mrsas_instance *instance) argument
7283 mrsas_fm_ereport(struct mrsas_instance *instance, char *detail) argument
7297 mrsas_add_intrs(struct mrsas_instance *instance, int intr_type) argument
7445 mrsas_rem_intrs(struct mrsas_instance *instance) argument
7480 struct mrsas_instance *instance; local
7546 mrsas_config_all_devices(struct mrsas_instance *instance) argument
7613 mrsas_config_ld(struct mrsas_instance *instance, uint16_t tgt, uint8_t lun, dev_info_t **ldip) argument
7661 mrsas_config_scsi_device(struct mrsas_instance *instance, struct scsi_device *sd, dev_info_t **dipp) argument
7744 mrsas_service_evt(struct mrsas_instance *instance, int tgt, int lun, int event, uint64_t wwn) argument
7780 struct mrsas_instance *instance = mrevt->instance; local
[all...]
/illumos-gate/usr/src/uts/common/io/nxge/
H A Dnxge_main.c393 * This list contains the instance structures for the Neptune
537 int instance; local
545 * Get the device instance since we'll need to setup
546 * or retrieve a soft state for this instance.
548 instance = ddi_get_instance(dip);
557 nxgep = (p_nxge_t)ddi_get_soft_state(nxge_list, instance);
575 nxgep = (p_nxge_t)ddi_get_soft_state(nxge_list, instance);
594 if (ddi_soft_state_zalloc(nxge_list, instance) == DDI_FAILURE) {
599 nxgep = ddi_get_soft_state(nxge_list, instance);
609 nxgep->instance
924 int instance; local
1870 int instance; local
7190 int instance = ddi_get_instance(dip); local
[all...]
/illumos-gate/usr/src/uts/common/io/igb/
H A Digb_sw.h560 int instance; member in struct:igb
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A Duds_daemon.c806 mDNSlocal void external_start_advertising_helper(service_instance *const instance) argument
808 AuthRecord *st = instance->subtypes;
812 if (mDNSIPPortIsZero(instance->request->u.servicereg.port))
818 if (instance->external_advertise) LogMsg("external_start_advertising_helper: external_advertise already set!");
820 for ( i = 0; i < instance->request->u.servicereg.num_subtypes; i++)
821 external_start_advertising_service(&st[i].resrec, instance->request->flags);
823 external_start_advertising_service(&instance->srs.RR_PTR.resrec, instance->request->flags);
824 external_start_advertising_service(&instance->srs.RR_SRV.resrec, instance
833 external_stop_advertising_helper(service_instance *const instance) argument
949 service_instance *instance = srs->ServiceContext; local
961 service_instance *instance; local
1349 add_record_to_service(request_state *request, service_instance *instance, mDNSu16 rrtype, mDNSu16 rdlen, const char *rdata, mDNSu32 ttl) argument
1777 service_instance **ptr, *instance; local
4025 domainname instance; local
[all...]
/illumos-gate/usr/src/cmd/svc/svcs/
H A Dsvcs.c31 * We have two output formats and six instance selection mechanisms. The
34 * instance selected. The columns available to display are described by the
38 * instances), instance FMRIs, instance FMRI glob patterns, instances with
42 * avoid listing the same instance twice (when -d and -D aren't given), we'll
44 * an instance.
110 const char *instance; member in struct:pfmri_list
495 * instance. If "use_running" is set, and the running snapshot exists,
539 * instance. Return an empty string on normal problems.
661 * Check if instance ha
[all...]
/illumos-gate/usr/src/cmd/svc/startd/
H A Dgraph.c42 * rather than service instance), GVT_FILE for files (which services may
49 * dgraph_add_instance() for each instance in the repository. The function
51 * a GVT_INST vertex named by the FMRI of the instance, and sets up the edges.
52 * The resulting web of vertices & edges associated with an instance's vertex
55 * - an edge from the GVT_SVC vertex for the instance's service
57 * - an edge to the GVT_INST vertex of the instance's resarter, if its
60 * - edges from other GVT_INST vertices if the instance is a restarter
62 * - for each dependency property group in the instance's "running"
64 * instance and the name of the property group
70 * - edges from GVT_GROUP vertices for each dependent instance
2345 const char *scope, *service, *instance, *pg; local
[all...]
/illumos-gate/usr/src/uts/common/io/iwn/
H A Dif_iwn.c767 int instance; local
782 instance = ddi_get_instance(dip);
784 instance);
798 instance = ddi_get_instance(dip);
800 if (ddi_soft_state_zalloc(iwn_state, instance) != DDI_SUCCESS) {
805 sc = ddi_get_soft_state(iwn_state, instance);
1097 (void) snprintf(strbuf, sizeof (strbuf), "iwn%d", instance);
1099 instance + 1, DDI_NT_NET_WIFI, 0);
1190 ddi_soft_state_free(iwn_state, instance);
/illumos-gate/usr/src/lib/libscf/common/
H A Dlowlevel.c1644 * instance).
2771 scf_instance_t *instance)
2775 (instance != NULL)? &instance->rd_d : NULL));
5158 const char **instance, const char **propertygroup, const char **property)
5167 if (instance != NULL)
5168 *instance = NULL;
5234 /* Can't validate instance here either. */
5269 if (instance != NULL)
5270 *instance
2770 scf_service_add_instance(const scf_service_t *svc, const char *name, scf_instance_t *instance) argument
5157 scf_parse_svc_fmri(char *fmri, const char **scope, const char **service, const char **instance, const char **propertygroup, const char **property) argument
5355 scf_parse_fmri(char *fmri, int *type, const char **scope, const char **service, const char **instance, const char **propertygroup, const char **property) argument
5387 const char *scope, *service, *instance, *pg, *property; local
5442 const char *scope, *service, *instance, *propertygroup, *property; local
[all...]
/illumos-gate/usr/src/uts/common/io/aac/
H A Daac.c59 * formed by left-shifting instance by INST_MINOR_SHIFT and OR in a
762 int instance, i; local
778 instance = ddi_get_instance(dip);
781 if (ddi_soft_state_zalloc(aac_softstatep, instance) != DDI_SUCCESS) {
785 softs = ddi_get_soft_state(aac_softstatep, instance);
788 softs->instance = instance;
892 INST2DEVCTL(instance), DDI_NT_SCSI_NEXUS, 0) != DDI_SUCCESS) {
898 if (ddi_create_minor_node(dip, "scsi", S_IFCHR, INST2SCSI(instance),
906 if (ddi_create_minor_node(dip, "aac", S_IFCHR, INST2AAC(instance),
6850 int instance; local
6879 int instance; local
6905 int instance; local
[all...]
/illumos-gate/usr/src/uts/common/io/bnxe/
H A Dbnxe_kstat.c313 kstat_named_t instance; member in struct:_BnxeKstatFcoe
982 snprintf(pStats->instance.value.c, 16, "bnxef%d",
1024 strncpy(pStats->instance.value.c, "none", sizeof(pStats->instance.value.c));
1688 pUM->instance,
1764 pUM->instance,
1836 pUM->instance,
1895 pUM->instance,
1926 pUM->instance,
2021 pUM->instance,
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Ddevcfg.c31 #include <sys/instance.h>
63 #include <sys/instance.h>
256 int instance, ddi_prop_t *sys_prop, int flag)
370 * cases, the caller may specify an instance (e.g. CPU nodes).
372 devi->devi_instance = instance;
1110 * freeing the instance if it succeeds.
1135 * Free instance number. This is a no-op if instance has
1137 * from init_node (DS_BOUND) because the instance has not yet
1188 * Keep instance permanen
255 i_ddi_alloc_node(dev_info_t *pdip, char *node_name, pnode_t nodeid, int instance, ddi_prop_t *sys_prop, int flag) argument
3615 int instance; /* if != -1, instance must match */ member in struct:match_info
3641 ddi_find_devinfo(char *nodename, int instance, int attached) argument
4752 i_log_devfs_remove_devinfo(char *pathname, char *class_name, char *driver_name, int instance, uint_t flags) argument
5868 int instance = -1; local
6817 hold_devi(major_t major, int instance, int flags) argument
6912 ddi_hold_devi_by_instance(major_t major, int instance, int flags) argument
[all...]
/illumos-gate/usr/src/uts/common/io/scsi/targets/
H A Dst.c791 int instance; local
826 instance = ddi_get_instance(devi);
828 if (ddi_get_soft_state(st_state, instance) != NULL) {
866 int instance; local
877 instance = ddi_get_instance(devi);
899 if (!(un = ddi_get_soft_state(st_state, instance))) {
902 dev_instance = ((un->un_dev == 0) ? MTMINOR(instance) :
976 un = ddi_get_soft_state(st_state, instance);
979 "st_attach: instance=%x\n", instance);
1219 int instance; local
1575 int instance, error; local
1606 int instance; local
9388 int instance; local
12283 int instance = ddi_get_instance(dip); local
12371 int instance; local
13104 st_create_errstats(struct scsi_tape *un, int instance) argument
[all...]
/illumos-gate/usr/src/uts/common/io/myri10ge/drv/
H A Dmyri10ge.c4162 int instance; local
4165 * fake an instance so that the same slice numbers from
4168 instance = (ddi_get_instance(mgp->dip) * 1000) + (int)(ss - mgp->ss);
4169 ksp = kstat_create("myri10ge", instance,
/illumos-gate/usr/src/uts/intel/io/amd8111s/
H A Damd8111s_hw.h1004 int instance; member in struct:LayerPointers
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_api.c739 * instance number associated with arg when cmd is set
771 QL_PRINT_3(CE_CONT, "(%d): started\n", ha->instance);
779 *resultp = (void *)(uintptr_t)(ha->instance);
788 QL_PRINT_3(CE_CONT, "(%d): done\n", ha->instance);
795 * Configure and attach an instance of the driver
814 int instance; local
834 /* first get the instance */
835 instance = ddi_get_instance(dip);
838 QL_NAME, instance, QL_VERSION);
843 "11", QL_NAME, instance);
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/
H A Dipqosconf.c794 "instance: %d, class: %s\n", action_name, flt->name,
795 flt->instance, flt->class_name);
863 /* add filter instance if present */
866 flt->instance) != 0) {
918 "instance: %d, class: %s\n", action_name, flt->name,
919 flt->instance, flt->class_name);
1008 /* add filter instance if present */
1011 flt->instance) != 0) {
1041 * remove the filter named filter_name instance number instance fro
1046 remove_filter( char *action_name, char *filter_name, int instance, int module_version) argument
6390 filterexist( char *filter_nm, int instance, ipqos_conf_filter_t *filters) argument
[all...]

Completed in 237 milliseconds

<<2122