Home
last modified time | relevance | path

Searched refs:soft_state (Results 1 – 15 of 15) sorted by relevance

/illumos-gate/usr/src/uts/common/io/1394/adapters/
H A Dhci1394_attach.c63 static void hci1394_cleanup(hci1394_state_t *soft_state, uint64_t attach_state);
65 static int hci1394_hardware_init(hci1394_state_t *soft_state);
66 static int hci1394_hardware_resume(hci1394_state_t *soft_state);
68 static int hci1394_pci_init(hci1394_state_t *soft_state);
69 static void hci1394_pci_resume(hci1394_state_t *soft_state);
71 static void hci1394_soft_state_phase1_init(hci1394_state_t *soft_state,
73 static void hci1394_soft_state_phase2_init(hci1394_state_t *soft_state);
75 static int hci1394_resmap_get(hci1394_state_t *soft_state);
76 static void hci1394_resmap_free(hci1394_state_t *soft_state);
83 hci1394_state_t *soft_state; in hci1394_attach() local
[all …]
H A Dhci1394_isr.c45 static void hci1394_isr_bus_reset(hci1394_state_t *soft_state);
46 static void hci1394_isr_self_id(hci1394_state_t *soft_state);
47 static void hci1394_isr_isoch_ir(hci1394_state_t *soft_state);
48 static void hci1394_isr_isoch_it(hci1394_state_t *soft_state);
49 static void hci1394_isr_atreq_complete(hci1394_state_t *soft_state);
50 static void hci1394_isr_arresp(hci1394_state_t *soft_state);
51 static void hci1394_isr_arreq(hci1394_state_t *soft_state);
52 static void hci1394_isr_atresp_complete(hci1394_state_t *soft_state);
61 hci1394_isr_init(hci1394_state_t *soft_state) in hci1394_isr_init() argument
65 ASSERT(soft_state != NULL); in hci1394_isr_init()
[all …]
H A Dhci1394_detach.c49 hci1394_state_t *soft_state; in hci1394_detach() local
51 soft_state = ddi_get_soft_state(hci1394_statep, ddi_get_instance(dip)); in hci1394_detach()
52 if (soft_state == NULL) { in hci1394_detach()
59 hci1394_ohci_intr_master_disable(soft_state->ohci); in hci1394_detach()
60 hci1394_ohci_it_intr_disable(soft_state->ohci, 0xFFFFFFFF); in hci1394_detach()
61 hci1394_ohci_ir_intr_disable(soft_state->ohci, 0xFFFFFFFF); in hci1394_detach()
64 hci1394_ohci_intr_clear(soft_state->ohci, 0xFFFFFFFF); in hci1394_detach()
65 hci1394_ohci_it_intr_clear(soft_state->ohci, 0xFFFFFFFF); in hci1394_detach()
66 hci1394_ohci_ir_intr_clear(soft_state->ohci, 0xFFFFFFFF); in hci1394_detach()
69 (void) hci1394_ohci_phy_clr(soft_state->ohci, 4, 0xc0); in hci1394_detach()
[all …]
H A Dhci1394_s1394if.c125 hci1394_state_t *soft_state; in hci1394_s1394if_shutdown() local
130 soft_state = (hci1394_state_t *)hal_private; in hci1394_s1394if_shutdown()
131 hci1394_shutdown(soft_state->drvinfo.di_dip); in hci1394_s1394if_shutdown()
144 hci1394_state_t *soft_state; in hci1394_s1394if_phy() local
150 soft_state = (hci1394_state_t *)hal_private; in hci1394_s1394if_phy()
153 if (hci1394_state(&soft_state->drvinfo) != HCI1394_NORMAL) { in hci1394_s1394if_phy()
154 if (hci1394_state(&soft_state->drvinfo) == HCI1394_BUS_RESET) { in hci1394_s1394if_phy()
162 status = hci1394_async_phy(soft_state->async, cmd_id, cmd_private, in hci1394_s1394if_phy()
181 hci1394_state_t *soft_state; in hci1394_s1394if_write() local
187 soft_state = (hci1394_state_t *)hal_private; in hci1394_s1394if_write()
[all …]
H A Dhci1394_ioctl.c57 static int hci1394_ioctl_wrreg(hci1394_state_t *soft_state, void *arg,
59 static int hci1394_ioctl_rdreg(hci1394_state_t *soft_state, void *arg,
61 static int hci1394_ioctl_wrvreg(hci1394_state_t *soft_state, void *arg,
63 static int hci1394_ioctl_rdvreg(hci1394_state_t *soft_state, void *arg,
65 static int hci1394_ioctl_selfid_cnt(hci1394_state_t *soft_state, void *arg,
67 static int hci1394_ioctl_busgen_cnt(hci1394_state_t *soft_state, void *arg,
69 static int hci1394_ioctl_wrphy(hci1394_state_t *soft_state, void *arg,
71 static int hci1394_ioctl_rdphy(hci1394_state_t *soft_state, void *arg,
73 static int hci1394_ioctl_hbainfo(hci1394_state_t *soft_state, void *arg,
75 static int hci1394_ioctl_read_selfid(hci1394_state_t *soft_state, void *arg,
[all …]
H A Dhci1394_misc.c50 hci1394_state_t *soft_state; in hci1394_getinfo() local
58 soft_state = ddi_get_soft_state(hci1394_statep, instance); in hci1394_getinfo()
59 if (soft_state == NULL) { in hci1394_getinfo()
62 *result = (void *)soft_state->drvinfo.di_dip; in hci1394_getinfo()
85 hci1394_state_t *soft_state; in hci1394_open() local
87 soft_state = ddi_get_soft_state(hci1394_statep, getminor(*devp)); in hci1394_open()
88 if (soft_state == NULL) { in hci1394_open()
111 hci1394_state_t *soft_state; in hci1394_shutdown() local
123 soft_state = ddi_get_soft_state(hci1394_statep, ddi_get_instance(dip)); in hci1394_shutdown()
124 if (soft_state == NULL) { in hci1394_shutdown()
[all …]
H A Dhci1394_ohci.c78 hci1394_ohci_init(hci1394_state_t *soft_state, hci1394_drvinfo_t *drvinfo, in hci1394_ohci_init() argument
124 ohci->soft_state = soft_state; in hci1394_ohci_init()
133 cmdreg = pci_config_get16(soft_state->pci_config, PCI_CONF_COMM); in hci1394_ohci_init()
137 pci_config_put16(soft_state->pci_config, PCI_CONF_COMM, cmdreg); in hci1394_ohci_init()
179 soft_state->halinfo.guid = hci1394_ohci_guid(ohci); in hci1394_ohci_init()
180 soft_state->halinfo.phy = ohci->ohci_phy; in hci1394_ohci_init()
181 soft_state->vendor_info.ohci_vendor_id = in hci1394_ohci_init()
184 soft_state->vendor_info.ohci_version = version; in hci1394_ohci_init()
294 if (ohci_hdl->soft_state->swap_data == B_FALSE) { in hci1394_ohci_chip_init()
1416 hci1394_isr_mask_setup(ohci_hdl->soft_state); in hci1394_ohci_startup()
H A Dhci1394_isoch.c154 hci1394_isoch_resume(hci1394_state_t *soft_state) in hci1394_isoch_resume() argument
/illumos-gate/usr/src/uts/common/io/1394/targets/dcam1394/
H A Ddcam_reg.c40 dcam_reg_read(dcam_state_t *soft_state, dcam1394_reg_io_t *arg) in dcam_reg_read() argument
44 if (t1394_alloc_cmd(soft_state->sl_handle, 1, &cmdp) != DDI_SUCCESS) { in dcam_reg_read()
62 if (t1394_read(soft_state->sl_handle, cmdp) != DDI_SUCCESS) { in dcam_reg_read()
63 (void) t1394_free_cmd(soft_state->sl_handle, 0, &cmdp); in dcam_reg_read()
68 (void) t1394_free_cmd(soft_state->sl_handle, 0, &cmdp); in dcam_reg_read()
76 (void) t1394_free_cmd(soft_state->sl_handle, 0, &cmdp); in dcam_reg_read()
86 dcam_reg_write(dcam_state_t *soft_state, dcam1394_reg_io_t *arg) in dcam_reg_write() argument
90 if (t1394_alloc_cmd(soft_state->sl_handle, 0, &cmdp) != DDI_SUCCESS) { in dcam_reg_write()
109 if (t1394_write(soft_state->sl_handle, cmdp) != DDI_SUCCESS) { in dcam_reg_write()
110 (void) t1394_free_cmd(soft_state->sl_handle, 0, &cmdp); in dcam_reg_write()
[all …]
/illumos-gate/usr/src/uts/common/sys/1394/adapters/
H A Dhci1394.h85 void hci1394_detach_hardware(hci1394_state_t *soft_state);
86 void hci1394_pci_fini(hci1394_state_t *soft_state);
87 void hci1394_soft_state_fini(hci1394_state_t *soft_state);
104 int hci1394_isr_init(hci1394_state_t *soft_state);
105 void hci1394_isr_fini(hci1394_state_t *soft_state);
106 int hci1394_isr_handler_init(hci1394_state_t *soft_state);
107 void hci1394_isr_handler_fini(hci1394_state_t *soft_state);
108 void hci1394_isr_mask_setup(hci1394_state_t *soft_state);
H A Dhci1394_ohci.h561 hci1394_state_t *soft_state; member
575 int hci1394_ohci_init(hci1394_state_t *soft_state, hci1394_drvinfo_t *drvinfo,
/illumos-gate/usr/src/uts/common/sys/1394/targets/dcam1394/
H A Ddcam_reg.h165 int dcam_reg_read(dcam_state_t *soft_state, dcam1394_reg_io_t *arg);
166 int dcam_reg_write(dcam_state_t *soft_state, dcam1394_reg_io_t *arg);
/illumos-gate/usr/src/uts/common/io/cardbus/
H A Dcardbus_hp.c564 if (cbp->soft_state != PCIHP_SOFT_STATE_CLOSED) { in cardbus_new_slot_state()
1069 if ((cbp->soft_state == PCIHP_SOFT_STATE_OPEN_EXCL) || in cardbus_open()
1071 (cbp->soft_state != PCIHP_SOFT_STATE_CLOSED))) { in cardbus_open()
1077 cbp->soft_state = PCIHP_SOFT_STATE_OPEN_EXCL; in cardbus_open()
1079 cbp->soft_state = PCIHP_SOFT_STATE_OPEN; in cardbus_open()
1105 cbp->soft_state = PCIHP_SOFT_STATE_CLOSED; in cardbus_close()
H A Dcardbus.h70 cbhp_soft_state_t soft_state; member
/illumos-gate/usr/src/uts/common/io/hotplug/pcihp/
H A Dpcihp.c113 pcihp_soft_state_t soft_state; member
557 if ((pcihp_p->soft_state == PCIHP_SOFT_STATE_OPEN_EXCL) || in pcihp_open()
559 (pcihp_p->soft_state != PCIHP_SOFT_STATE_CLOSED))) { in pcihp_open()
566 pcihp_p->soft_state = PCIHP_SOFT_STATE_OPEN_EXCL; in pcihp_open()
568 pcihp_p->soft_state = PCIHP_SOFT_STATE_OPEN; in pcihp_open()
599 pcihp_p->soft_state = PCIHP_SOFT_STATE_CLOSED; in pcihp_close()
1817 pcihp_p->soft_state = PCIHP_SOFT_STATE_CLOSED; in pcihp_init()
1915 if ((pcihp_p->soft_state != PCIHP_SOFT_STATE_CLOSED) || in pcihp_uninit()
2253 if (pcihp_p->soft_state != PCIHP_SOFT_STATE_CLOSED) { in pcihp_new_slot_state()