/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/ |
H A D | iscsi.c | 331 int instance = getminor((dev_t)arg); local 336 if ((ip = ddi_get_soft_state(iscsi_state, instance)) == NULL) { 347 *result = (void *)(uintptr_t)instance; 360 * iscsi_attach -- Attach instance of an iSCSI HBA. We 369 int instance = ddi_get_instance(dip); local 381 if (ddi_soft_state_zalloc(iscsi_state, instance) != 390 iscsi_state, instance)) == NULL) { 392 ddi_soft_state_free(iscsi_state, instance); 623 ddi_soft_state_free(iscsi_state, instance); 636 "hba instance 652 int instance; local 1456 int instance = 0; local [all...] |
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/ |
H A D | mpapi_impl.c | 2595 int instance; local 2618 instance = ddi_get_instance(pdip); 2621 MP_STORE_INST_TO_ID(instance, item->oid.raw_oid); 3919 * Routine to sync OIDs of MPLU to match with the ssd instance# of the 3921 * ssd instance# = devi_instance from the dev_info structure. 3945 * Compose OID from major number and instance number. 3967 * Compose OID from major number and instance number.
|
/illumos-gate/usr/src/uts/common/io/uath/ |
H A D | uath.c | 3005 int i, err, instance; local 3025 instance = ddi_get_instance(devinfo); 3026 err = ddi_soft_state_zalloc(uath_soft_state_p, instance); 3033 sc = ddi_get_soft_state(uath_soft_state_p, instance); 3243 "uath", instance); 3245 instance + 1, DDI_NT_NET_WIFI, 0);
|
/illumos-gate/usr/src/uts/common/io/ural/ |
H A D | ural.c | 2186 int instance; local 2206 instance = ddi_get_instance(devinfo); 2208 if (ddi_soft_state_zalloc(ural_soft_state_p, instance) != DDI_SUCCESS) { 2214 sc = ddi_get_soft_state(ural_soft_state_p, instance); 2357 "ural", instance); 2359 instance + 1, DDI_NT_NET_WIFI, 0);
|
/illumos-gate/usr/src/uts/common/io/usb/clients/video/usbvc/ |
H A D | usbvc.c | 401 int instance = ddi_get_instance(dip); local 418 if (ddi_soft_state_zalloc(usbvc_statep, instance) == DDI_SUCCESS) { 419 usbvcp = ddi_get_soft_state(usbvc_statep, instance); 455 if ((status = ddi_create_minor_node(dip, name, S_IFCHR, instance, 518 * detach or suspend driver instance 525 int instance = ddi_get_instance(dip); local 526 usbvc_state_t *usbvcp = ddi_get_soft_state(usbvc_statep, instance); 1028 "devmap: memory map for instance(%d), off=%llx," 1459 int instance = ddi_get_instance(dip); local 1460 usbvc_state_t *usbvcp = ddi_get_soft_state(usbvc_statep, instance); 1573 int instance = ddi_get_instance(dip); local 1676 int instance = ddi_get_instance(dip); local 1716 int instance = ddi_get_instance(dip); local [all...] |
/illumos-gate/usr/src/uts/common/io/usb/hcd/ehci/ |
H A D | ehci_util.c | 1791 /* Unregister this HCD instance with USBA */ 3626 int instance = ddi_get_instance(dip); local 3628 ehci_state_t *state = ddi_get_soft_state(ehci_statep, instance); 4467 uint_t instance = ehcip->ehci_instance; local 4473 dname, instance); 4474 EHCI_INTRS_STATS(ehcip) = kstat_create("usba", instance, 4514 dname, instance); 4515 EHCI_TOTAL_STATS(ehcip) = kstat_create("usba", instance, 4527 dname, instance, usbtypes[i]); 4529 instance, kstatnam [all...] |
/illumos-gate/usr/src/uts/common/io/usb/hcd/uhci/ |
H A D | uhciutil.c | 768 int instance = ddi_get_instance(dip); local 769 uhci_state_t *state = ddi_get_soft_state(uhci_statep, instance); 2279 uint_t instance = uhcip->uhci_instance; local 2285 dname, instance); 2286 UHCI_INTRS_STATS(uhcip) = kstat_create("usba", instance, 2318 dname, instance); 2319 UHCI_TOTAL_STATS(uhcip) = kstat_create("usba", instance, 2331 dname, instance, usbtypes[i]); 2333 instance, kstatname, "usb_byte_count",
|
/illumos-gate/usr/src/uts/common/io/usb/scsa2usb/ |
H A D | scsa2usb.c | 575 int instance = SCSA2USB_MINOR_TO_INSTANCE(getminor((dev_t)arg)); local 580 instance)) != NULL) && 589 *result = (void *)(uintptr_t)instance; 617 int instance = ddi_get_instance(dip); local 647 if (ddi_soft_state_zalloc(scsa2usb_statep, instance) != DDI_SUCCESS) { 655 instance)) == NULL) { 657 "scsa2usb%d: bad soft state", instance); 664 scsa2usbp->scsa2usb_instance = instance; 699 scsa2usbp->scsa2usb_instance = instance; 842 instance); [all...] |
/illumos-gate/usr/src/uts/common/io/wpi/ |
H A D | wpi.c | 409 int instance, err, i; local 440 instance = ddi_get_instance(dip); 441 err = ddi_soft_state_zalloc(wpi_soft_state_p, instance); 447 sc = ddi_get_soft_state(wpi_soft_state_p, instance); 650 (void) snprintf(strbuf, sizeof (strbuf), "wpi%d", instance); 652 instance + 1, DDI_NT_NET_WIFI, 0); 692 ddi_soft_state_free(wpi_soft_state_p, instance);
|
/illumos-gate/usr/src/uts/common/io/xge/drv/ |
H A D | xgell.c | 327 XGELL_IFNAME, lldev->instance); 337 XGELL_IFNAME, lldev->instance); 344 XGELL_IFNAME, lldev->instance); 352 XGELL_IFNAME, lldev->instance); 358 XGELL_IFNAME, lldev->instance); 431 XGELL_IFNAME, lldev->instance); 736 lldev->instance, (uint64_t)(uintptr_t)dtr, t_code); 751 XGELL_IFNAME, lldev->instance); 785 XGELL_IFNAME, lldev->instance); 908 lldev->instance, (uint64_ 2328 int instance = ddi_get_instance(dev_info); local [all...] |
H A D | xgell.h | 358 int instance; member in struct:xgelldev
|
/illumos-gate/usr/src/uts/common/ipp/ |
H A D | ippconf.c | 1616 int instance; local 1640 instance = (int)ap->ippa_id; 1661 if ((ksp = kstat_create(modname, instance, name, class,
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | devinfo_impl.h | 167 di_off_t head; /* head of per instance list */ 169 int instance; /* next instance to assign */ member in struct:di_devnm 228 di_off_t next; /* next node on per-instance list */ 258 int instance; /* instance number */ member in struct:di_node 327 int path_instance; /* path instance */
|
/illumos-gate/usr/src/uts/common/io/mega_sas/ |
H A D | megaraid_sas.c | 182 * anything that has to do with a particular instance of the device. 183 * Per-instance initialization must be done in attach(). 269 * The kernel calls a driver's attach() entry point to attach an instance of 270 * a device (for MegaRAID, it is instance of a controller) or to resume 271 * operation for an instance of a device that has been suspended or has been 275 * - allocate a soft-state structure for the device instance (for MegaRAID, 276 * controller instance) 277 * - initialize per-instance mutexes 280 * - map the registers and memory of the device instance (for MegaRAID, 281 * controller instance) 307 struct megasas_instance *instance; local 765 struct megasas_instance *instance; local 813 struct megasas_instance *instance; local 997 struct megasas_instance *instance; local 1083 struct megasas_instance *instance; local 1163 struct megasas_instance *instance; local 1250 struct megasas_instance *instance = ADDR2MEGA(ap); local 1376 struct megasas_instance *instance = ADDR2MEGA(ap); local 1405 struct megasas_instance *instance = ddi_get_soft_state(megasas_state, local 1435 struct megasas_instance *instance = ADDR2MEGA(ap); local 1688 megasas_isr(struct megasas_instance *instance) argument 1772 get_mfi_pkt(struct megasas_instance *instance) argument 1795 return_mfi_pkt(struct megasas_instance *instance, struct megasas_cmd *cmd) argument 1809 destroy_mfi_frame_pool(struct megasas_instance *instance) argument 1833 create_mfi_frame_pool(struct megasas_instance *instance) argument 1909 free_additional_dma_buffer(struct megasas_instance *instance) argument 1928 alloc_additional_dma_buffer(struct megasas_instance *instance) argument 1993 free_space_for_mfi(struct megasas_instance *instance) argument 2029 alloc_space_for_mfi(struct megasas_instance *instance) argument 2083 get_ctrl_info(struct megasas_instance *instance, struct megasas_ctrl_info *ctrl_info) argument 2148 abort_aen_cmd(struct megasas_instance *instance, struct megasas_cmd *cmd_to_abort) argument 2200 init_mfi(struct megasas_instance *instance) argument 2345 mfi_state_transition_to_ready(struct megasas_instance *instance) argument 2486 get_seq_num(struct megasas_instance *instance, struct megasas_evt_log_info *eli) argument 2561 start_mfi_aen(struct megasas_instance *instance) argument 2596 flush_cache(struct megasas_instance *instance) argument 2635 service_mfi_aen(struct megasas_instance *instance, struct megasas_cmd *cmd) argument 2685 complete_cmd_in_sync_mode(struct megasas_instance *instance, struct megasas_cmd *cmd) argument 2707 megasas_softintr(struct megasas_instance *instance) argument 2992 mega_alloc_dma_obj(struct megasas_instance *instance, dma_obj_t *obj) argument 3067 mega_free_dma_obj(struct megasas_instance *instance, dma_obj_t obj) argument 3094 megasas_dma_alloc(struct megasas_instance *instance, struct scsi_pkt *pkt, struct buf *bp, int flags, int (*callback)()) argument 3241 megasas_dma_move(struct megasas_instance *instance, struct scsi_pkt *pkt, struct buf *bp) argument 3305 build_cmd(struct megasas_instance *instance, struct scsi_address *ap, struct scsi_pkt *pkt, uchar_t *cmd_done) argument 3515 wait_for_outstanding(struct megasas_instance *instance) argument 3541 issue_mfi_pthru(struct megasas_instance *instance, struct megasas_ioctl *ioctl, struct megasas_cmd *cmd, int mode) argument 3666 issue_mfi_dcmd(struct megasas_instance *instance, struct megasas_ioctl *ioctl, struct megasas_cmd *cmd, int mode) argument 3778 issue_mfi_smp(struct megasas_instance *instance, struct megasas_ioctl *ioctl, struct megasas_cmd *cmd, int mode) argument 4005 issue_mfi_stp(struct megasas_instance *instance, struct megasas_ioctl *ioctl, struct megasas_cmd *cmd, int mode) argument 4195 handle_drv_ioctl(struct megasas_instance *instance, struct megasas_ioctl *ioctl, int mode) argument 4310 handle_mfi_ioctl(struct megasas_instance *instance, struct megasas_ioctl *ioctl, int mode) argument 4360 handle_mfi_aen(struct megasas_instance *instance, struct megasas_aen *aen) argument 4373 register_mfi_aen(struct megasas_instance *instance, uint32_t seq_num, uint32_t class_locale_word) argument 4554 read_fw_status_reg_xscale(struct megasas_instance *instance) argument 4560 read_fw_status_reg_ppc(struct megasas_instance *instance) argument 4566 issue_cmd_xscale(struct megasas_cmd *cmd, struct megasas_instance *instance) argument 4576 issue_cmd_ppc(struct megasas_cmd *cmd, struct megasas_instance *instance) argument 4589 issue_cmd_in_sync_mode_xscale(struct megasas_instance *instance, struct megasas_cmd *cmd) argument 4616 issue_cmd_in_sync_mode_ppc(struct megasas_instance *instance, struct megasas_cmd *cmd) argument 4650 issue_cmd_in_poll_mode_xscale(struct megasas_instance *instance, struct megasas_cmd *cmd) argument 4681 issue_cmd_in_poll_mode_ppc(struct megasas_instance *instance, struct megasas_cmd *cmd) argument 4714 enable_intr_xscale(struct megasas_instance *instance) argument 4720 enable_intr_ppc(struct megasas_instance *instance) argument 4734 WR_OB_INTR_MASK(~(MFI_REPLY_1078_MESSAGE_INTR), instance); local 4744 disable_intr_xscale(struct megasas_instance *instance) argument 4750 disable_intr_ppc(struct megasas_instance *instance) argument 4773 intr_ack_xscale(struct megasas_instance *instance) argument 4791 intr_ack_ppc(struct megasas_instance *instance) argument 4822 megasas_common_check(struct megasas_instance *instance, struct megasas_cmd *cmd) argument 4880 megasas_fm_init(struct megasas_instance *instance) argument 4923 megasas_fm_fini(struct megasas_instance *instance) argument 4980 megasas_fm_ereport(struct megasas_instance *instance, char *detail) argument [all...] |
/illumos-gate/usr/src/uts/common/io/nge/ |
H A D | nge_main.c | 2379 int instance; local 2397 instance = ddi_get_instance(devinfo); 2402 NGE_DRIVER_NAME, instance); 2520 nge_init_kstats(ngep, instance);
|
/illumos-gate/usr/src/uts/sun4u/starcat/io/ |
H A D | iosram.c | 141 static void iosram_remove_instance(int instance); 294 int instance; local 300 instance = ddi_get_instance(dip); 302 DPRINTF(1, ("iosram(%d): attach dip:%p\n", instance, (void *)dip)); 304 IOSRAMLOG(1, "ATTACH: dip:%p instance %d ... start\n", 305 dip, instance, NULL, NULL); 311 instance))) { 351 if (ddi_soft_state_zalloc(iosramsoft_statep, instance) != 0) { 355 if ((softp = ddi_get_soft_state(iosramsoft_statep, instance)) == NULL) { 359 softp->instance 469 int instance; local 583 int instance, ret; local 619 int instance; local 640 int instance; local 1978 int instance = softp->instance; local 2299 iosram_switchfrom(int instance) argument 2533 int instance = softp->instance; local 2747 int instance = softp->instance; local 3057 int instance = new_softp->instance; local 3087 iosram_remove_instance(int instance) argument 3336 iosram_print_state(int instance) argument [all...] |
H A D | schpc.c | 415 int instance = ddi_get_instance(devi); local 418 SCHPC_DEBUG1(D_ATTACH, "attach(%x) ATTACH", instance); 424 * Allocate the soft state structure for this instance. 426 rval = ddi_soft_state_zalloc(per_schpc_state, instance); 431 "soft state structure", instance); 436 instance); 457 "describes %d slots", instance, 464 instance, schpc_p->schpc_hotplugmodel); 482 schpc_p->schpc_instance = instance; 498 instance); 513 int instance = ddi_get_instance(devi); local [all...] |
/illumos-gate/usr/src/uts/sun4u/sunfire/io/ |
H A D | fhc.c | 517 * board number in the fhc instance for the clock board. 621 int instance; local 623 instance = ddi_get_instance(devi); 630 softsp = ddi_get_soft_state(fhcp, instance); 642 if (ddi_soft_state_zalloc(fhcp, instance) != DDI_SUCCESS) 645 softsp = ddi_get_soft_state(fhcp, instance); 658 ddi_soft_state_free(fhcp, instance); 666 int instance; local 670 /* get the instance of this devi */ 671 instance 2978 create_ft_kstats(int instance) argument [all...] |
H A D | sysctrl.c | 380 int instance; local 384 instance = GETINSTANCE(dev); 385 *result = (void *)(uintptr_t)instance; 395 int instance; local 419 instance = ddi_get_instance(devi); 421 if (ddi_soft_state_zalloc(sysctrlp, instance) != DDI_SUCCESS) 424 softsp = GETSOFTC(instance); 461 "registers", instance); 468 "registers", instance); 553 create_ft_kstats(instance); 1034 int instance; local 1229 int instance; local [all...] |
/illumos-gate/usr/src/uts/sun4u/sys/ |
H A D | envctrl_ue450.h | 646 int instance; member in struct:envctrlunit
|
/illumos-gate/usr/src/uts/sun4u/tazmo/io/ |
H A D | envctrl.c | 414 int instance; local 432 instance = ddi_get_instance(dip); 438 if (!(unitp = ddi_get_soft_state(envctrlsoft_statep, instance))) 467 if (ddi_soft_state_zalloc(envctrlsoft_statep, instance) != 0) { 472 unitp = ddi_get_soft_state(envctrlsoft_statep, instance); 507 instance); 515 instance); 520 (void) sprintf(name, "envctrl%d", instance); 522 if (ddi_create_minor_node(dip, name, S_IFCHR, instance, DDI_PSEUDO, 749 int instance; local 821 minor_t instance = getminor(dev); local 853 int instance; local 2453 envctrl_add_encl_kstats(struct envctrlunit *unitp, int type, int instance, uint8_t val) argument 2939 int i, instance; local 3253 envctrl_mod_encl_kstats(struct envctrlunit *unitp, int type, int instance, uint8_t val) argument 3274 int instance; local [all...] |
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | ds_common.c | 381 ldc_attr.instance = 0; 2490 int instance, ds_svc_hdl_t *hdlp) 2557 svc->drvi = instance; 2489 ds_ucap_init(ds_capability_t *cap, ds_clnt_ops_t *ops, uint32_t flags, int instance, ds_svc_hdl_t *hdlp) argument
|
H A D | vnet.c | 224 * Linked list of "vnet_t" structures - one per instance. 352 (void) sprintf(bufp, "vnet%d:%s: ", vnetp->instance, fname); 408 * called once for each instance of the device on the system. 415 int instance; local 431 instance = ddi_get_instance(dip); 432 DBG1(NULL, "instance(%d) enter\n", instance); 437 vnetp->instance = instance; 471 (void) snprintf(qname, TASKQ_NAMELEN, "vres_taskq%d", instance); 543 int instance; local [all...] |
H A D | vsw.c | 424 * Linked list of "vsw_t" structures - one per instance. 485 * template is copied for each vsw instance and filled in with 525 cmn_err(CE_CONT, "vsw%d: %s\n", vswp->instance, buf); 582 int instance; local 599 instance = ddi_get_instance(dip); 600 if (ddi_soft_state_zalloc(vsw_state, instance) != DDI_SUCCESS) { 601 DERR(NULL, "vsw%d: ddi_soft_state_zalloc failed", instance); 604 vswp = ddi_get_soft_state(vsw_state, instance); 607 DERR(NULL, "vsw%d: ddi_get_soft_state failed", instance); 612 vswp->instance 750 int instance; local 950 int instance; local [all...] |
/illumos-gate/usr/src/uts/sun4v/io/px/ |
H A D | px_lib4v.c | 2078 int instance = DIP_TO_INST(dip); local 2079 px_t *px_p = INST_TO_STATE(instance);
|