Lines Matching refs:dinfo

103 	struct bcma_devinfo	*dinfo;  in bcma_add_child()  local
110 if ((dinfo = bcma_alloc_dinfo(dev)) == NULL) { in bcma_add_child()
115 device_set_ivars(child, dinfo); in bcma_add_child()
124 struct bcma_devinfo *dinfo; in bcma_child_deleted() local
132 if ((dinfo = device_get_ivars(child)) != NULL) in bcma_child_deleted()
133 bcma_free_dinfo(dev, child, dinfo); in bcma_child_deleted()
141 const struct bcma_devinfo *dinfo; in bcma_read_ivar() local
144 dinfo = device_get_ivars(child); in bcma_read_ivar()
145 ci = &dinfo->corecfg->core_info; in bcma_read_ivar()
173 *result = (uintptr_t) dinfo->pmu_info; in bcma_read_ivar()
183 struct bcma_devinfo *dinfo; in bcma_write_ivar() local
185 dinfo = device_get_ivars(child); in bcma_write_ivar()
198 dinfo->pmu_info = (void *)value; in bcma_write_ivar()
208 struct bcma_devinfo *dinfo = device_get_ivars(child); in bcma_get_resource_list() local
209 return (&dinfo->resources); in bcma_get_resource_list()
243 struct bcma_devinfo *dinfo; in bcma_write_ioctl() local
250 dinfo = device_get_ivars(child); in bcma_write_ioctl()
251 if ((r = dinfo->res_agent) == NULL) in bcma_write_ioctl()
304 struct bcma_devinfo *dinfo; in bcma_reset_hw() local
312 dinfo = device_get_ivars(child); in bcma_reset_hw()
320 if ((r = dinfo->res_agent) == NULL) in bcma_reset_hw()
338 if ((error = bcma_dmp_write_reset(child, dinfo, 0x0))) in bcma_reset_hw()
352 struct bcma_devinfo *dinfo; in bcma_suspend_hw() local
360 dinfo = device_get_ivars(child); in bcma_suspend_hw()
368 if ((r = dinfo->res_agent) == NULL) in bcma_suspend_hw()
372 if ((error = bcma_dmp_wait_reset(child, dinfo))) in bcma_suspend_hw()
376 if ((error = bcma_dmp_write_reset(child, dinfo, BCMA_DMP_RC_RESET))) in bcma_suspend_hw()
390 struct bcma_devinfo *dinfo; in bcma_read_config() local
398 dinfo = device_get_ivars(child); in bcma_read_config()
399 if ((r = dinfo->res_agent) == NULL) in bcma_read_config()
428 struct bcma_devinfo *dinfo; in bcma_write_config() local
436 dinfo = device_get_ivars(child); in bcma_write_config()
437 if ((r = dinfo->res_agent) == NULL) in bcma_write_config()
465 struct bcma_devinfo *dinfo; in bcma_get_port_count() local
472 dinfo = device_get_ivars(child); in bcma_get_port_count()
475 return (dinfo->corecfg->num_dev_ports); in bcma_get_port_count()
477 return (dinfo->corecfg->num_bridge_ports); in bcma_get_port_count()
479 return (dinfo->corecfg->num_wrapper_ports); in bcma_get_port_count()
492 struct bcma_devinfo *dinfo; in bcma_get_region_count() local
501 dinfo = device_get_ivars(child); in bcma_get_region_count()
502 ports = bcma_corecfg_get_port_list(dinfo->corecfg, type); in bcma_get_region_count()
517 struct bcma_devinfo *dinfo; in bcma_get_port_rid() local
522 dinfo = device_get_ivars(child); in bcma_get_port_rid()
523 ports = bcma_corecfg_get_port_list(dinfo->corecfg, port_type); in bcma_get_port_rid()
541 struct bcma_devinfo *dinfo; in bcma_decode_port_rid() local
546 dinfo = device_get_ivars(child); in bcma_decode_port_rid()
561 ports = bcma_corecfg_get_port_list(dinfo->corecfg, types[i]); in bcma_decode_port_rid()
583 struct bcma_devinfo *dinfo; in bcma_get_region_addr() local
588 dinfo = device_get_ivars(child); in bcma_get_region_addr()
589 ports = bcma_corecfg_get_port_list(dinfo->corecfg, port_type); in bcma_get_region_addr()
616 struct bcma_devinfo *dinfo; in bcma_get_intr_count() local
622 dinfo = device_get_ivars(child); in bcma_get_intr_count()
623 return (dinfo->num_intrs); in bcma_get_intr_count()
632 struct bcma_devinfo *dinfo; in bcma_get_intr_ivec() local
641 dinfo = device_get_ivars(child); in bcma_get_intr_ivec()
643 STAILQ_FOREACH(desc, &dinfo->intrs, i_link) { in bcma_get_intr_ivec()
668 struct bcma_devinfo *dinfo; in bcma_add_children() local
694 dinfo = device_get_ivars(child); in bcma_add_children()
695 if ((error = bcma_init_dinfo(bus, child, dinfo, corecfg))) in bcma_add_children()