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()
123 struct bcma_devinfo *dinfo; in bcma_child_deleted() local
129 if ((dinfo = device_get_ivars(child)) != NULL) in bcma_child_deleted()
130 bcma_free_dinfo(dev, child, dinfo); in bcma_child_deleted()
138 const struct bcma_devinfo *dinfo; in bcma_read_ivar() local
141 dinfo = device_get_ivars(child); in bcma_read_ivar()
142 ci = &dinfo->corecfg->core_info; in bcma_read_ivar()
170 *result = (uintptr_t) dinfo->pmu_info; in bcma_read_ivar()
180 struct bcma_devinfo *dinfo; in bcma_write_ivar() local
182 dinfo = device_get_ivars(child); in bcma_write_ivar()
195 dinfo->pmu_info = (void *)value; in bcma_write_ivar()
205 struct bcma_devinfo *dinfo = device_get_ivars(child); in bcma_get_resource_list() local
206 return (&dinfo->resources); in bcma_get_resource_list()
240 struct bcma_devinfo *dinfo; in bcma_write_ioctl() local
247 dinfo = device_get_ivars(child); in bcma_write_ioctl()
248 if ((r = dinfo->res_agent) == NULL) in bcma_write_ioctl()
301 struct bcma_devinfo *dinfo; in bcma_reset_hw() local
309 dinfo = device_get_ivars(child); in bcma_reset_hw()
317 if ((r = dinfo->res_agent) == NULL) in bcma_reset_hw()
335 if ((error = bcma_dmp_write_reset(child, dinfo, 0x0))) in bcma_reset_hw()
349 struct bcma_devinfo *dinfo; in bcma_suspend_hw() local
357 dinfo = device_get_ivars(child); in bcma_suspend_hw()
365 if ((r = dinfo->res_agent) == NULL) in bcma_suspend_hw()
369 if ((error = bcma_dmp_wait_reset(child, dinfo))) in bcma_suspend_hw()
373 if ((error = bcma_dmp_write_reset(child, dinfo, BCMA_DMP_RC_RESET))) in bcma_suspend_hw()
387 struct bcma_devinfo *dinfo; in bcma_read_config() local
395 dinfo = device_get_ivars(child); in bcma_read_config()
396 if ((r = dinfo->res_agent) == NULL) in bcma_read_config()
425 struct bcma_devinfo *dinfo; in bcma_write_config() local
433 dinfo = device_get_ivars(child); in bcma_write_config()
434 if ((r = dinfo->res_agent) == NULL) in bcma_write_config()
462 struct bcma_devinfo *dinfo; in bcma_get_port_count() local
469 dinfo = device_get_ivars(child); in bcma_get_port_count()
472 return (dinfo->corecfg->num_dev_ports); in bcma_get_port_count()
474 return (dinfo->corecfg->num_bridge_ports); in bcma_get_port_count()
476 return (dinfo->corecfg->num_wrapper_ports); in bcma_get_port_count()
489 struct bcma_devinfo *dinfo; in bcma_get_region_count() local
498 dinfo = device_get_ivars(child); in bcma_get_region_count()
499 ports = bcma_corecfg_get_port_list(dinfo->corecfg, type); in bcma_get_region_count()
514 struct bcma_devinfo *dinfo; in bcma_get_port_rid() local
519 dinfo = device_get_ivars(child); in bcma_get_port_rid()
520 ports = bcma_corecfg_get_port_list(dinfo->corecfg, port_type); in bcma_get_port_rid()
538 struct bcma_devinfo *dinfo; in bcma_decode_port_rid() local
543 dinfo = device_get_ivars(child); in bcma_decode_port_rid()
558 ports = bcma_corecfg_get_port_list(dinfo->corecfg, types[i]); in bcma_decode_port_rid()
580 struct bcma_devinfo *dinfo; in bcma_get_region_addr() local
585 dinfo = device_get_ivars(child); in bcma_get_region_addr()
586 ports = bcma_corecfg_get_port_list(dinfo->corecfg, port_type); in bcma_get_region_addr()
613 struct bcma_devinfo *dinfo; in bcma_get_intr_count() local
619 dinfo = device_get_ivars(child); in bcma_get_intr_count()
620 return (dinfo->num_intrs); in bcma_get_intr_count()
629 struct bcma_devinfo *dinfo; in bcma_get_intr_ivec() local
638 dinfo = device_get_ivars(child); in bcma_get_intr_ivec()
640 STAILQ_FOREACH(desc, &dinfo->intrs, i_link) { in bcma_get_intr_ivec()
665 struct bcma_devinfo *dinfo; in bcma_add_children() local
691 dinfo = device_get_ivars(child); in bcma_add_children()
692 if ((error = bcma_init_dinfo(bus, child, dinfo, corecfg))) in bcma_add_children()