Lines Matching refs:bbc_beeptr
180 bbc_beep_state_t *bbc_beeptr = NULL;
201 bbc_beeptr = ddi_get_soft_state(bbc_beep_statep, instance);
203 if (bbc_beeptr == NULL) {
208 BBC_BEEP_DEBUG1((CE_CONT, "bbc_beeptr = 0x%p, instance %x",
209 (void *)bbc_beeptr, instance));
212 bbc_beeptr->bbc_beep_dip = dip;
215 bbc_beeptr->bbc_beep_mode = BBC_BEEP_OFF;
218 if (bbc_beep_map_regs(dip, bbc_beeptr) != DDI_SUCCESS) {
223 bbc_beep_cleanup(bbc_beeptr);
247 bbc_beep_state_t *bbc_beeptr = NULL;
253 bbc_beeptr = bbc_beep_obtain_state(dip);
255 if (bbc_beeptr == NULL) {
263 if (bbc_beeptr->bbc_beep_mode == BBC_BEEP_OFF) {
284 bbc_beep_state_t *bbc_beeptr;
293 if ((bbc_beeptr = ddi_get_soft_state(bbc_beep_statep,
299 *result = (void *)bbc_beeptr->bbc_beep_dip;
332 bbc_beep_state_t *bbc_beeptr = bbc_beep_obtain_state(dip);
367 bbc_beep_state_t *bbc_beeptr = bbc_beep_obtain_state(dip);
371 bbc_beeptr->bbc_beep_mode = BBC_BEEP_ON;
386 bbc_beep_state_t *bbc_beeptr = bbc_beep_obtain_state(dip);
390 bbc_beeptr->bbc_beep_mode = BBC_BEEP_OFF;
405 bbc_beep_map_regs(dev_info_t *dip, bbc_beep_state_t *bbc_beeptr)
418 (caddr_t *)&bbc_beeptr->bbc_beep_regsp,
422 &bbc_beeptr->bbc_beep_regs_handle) != DDI_SUCCESS) {
456 bbc_beep_cleanup(bbc_beep_state_t *bbc_beeptr)
458 int instance = ddi_get_instance(bbc_beeptr->bbc_beep_dip);