Lines Matching refs:dinfo

101 	struct bcma_devinfo	*dinfo;  in bcma_add_child()  local
108 if ((dinfo = bcma_alloc_dinfo(dev)) == NULL) { in bcma_add_child()
113 device_set_ivars(child, dinfo); in bcma_add_child()
121 struct bcma_devinfo *dinfo; in bcma_child_deleted() local
127 if ((dinfo = device_get_ivars(child)) != NULL) in bcma_child_deleted()
128 bcma_free_dinfo(dev, child, dinfo); in bcma_child_deleted()
136 const struct bcma_devinfo *dinfo; in bcma_read_ivar() local
139 dinfo = device_get_ivars(child); in bcma_read_ivar()
140 ci = &dinfo->corecfg->core_info; in bcma_read_ivar()
168 *result = (uintptr_t) dinfo->pmu_info; in bcma_read_ivar()
178 struct bcma_devinfo *dinfo; in bcma_write_ivar() local
180 dinfo = device_get_ivars(child); in bcma_write_ivar()
193 dinfo->pmu_info = (void *)value; in bcma_write_ivar()
203 struct bcma_devinfo *dinfo = device_get_ivars(child); in bcma_get_resource_list() local
204 return (&dinfo->resources); in bcma_get_resource_list()
238 struct bcma_devinfo *dinfo; in bcma_write_ioctl() local
245 dinfo = device_get_ivars(child); in bcma_write_ioctl()
246 if ((r = dinfo->res_agent) == NULL) in bcma_write_ioctl()
299 struct bcma_devinfo *dinfo; in bcma_reset_hw() local
307 dinfo = device_get_ivars(child); in bcma_reset_hw()
315 if ((r = dinfo->res_agent) == NULL) in bcma_reset_hw()
333 if ((error = bcma_dmp_write_reset(child, dinfo, 0x0))) in bcma_reset_hw()
347 struct bcma_devinfo *dinfo; in bcma_suspend_hw() local
355 dinfo = device_get_ivars(child); in bcma_suspend_hw()
363 if ((r = dinfo->res_agent) == NULL) in bcma_suspend_hw()
367 if ((error = bcma_dmp_wait_reset(child, dinfo))) in bcma_suspend_hw()
371 if ((error = bcma_dmp_write_reset(child, dinfo, BCMA_DMP_RC_RESET))) in bcma_suspend_hw()
385 struct bcma_devinfo *dinfo; in bcma_read_config() local
393 dinfo = device_get_ivars(child); in bcma_read_config()
394 if ((r = dinfo->res_agent) == NULL) in bcma_read_config()
423 struct bcma_devinfo *dinfo; in bcma_write_config() local
431 dinfo = device_get_ivars(child); in bcma_write_config()
432 if ((r = dinfo->res_agent) == NULL) in bcma_write_config()
460 struct bcma_devinfo *dinfo; in bcma_get_port_count() local
467 dinfo = device_get_ivars(child); in bcma_get_port_count()
470 return (dinfo->corecfg->num_dev_ports); in bcma_get_port_count()
472 return (dinfo->corecfg->num_bridge_ports); in bcma_get_port_count()
474 return (dinfo->corecfg->num_wrapper_ports); in bcma_get_port_count()
487 struct bcma_devinfo *dinfo; in bcma_get_region_count() local
496 dinfo = device_get_ivars(child); in bcma_get_region_count()
497 ports = bcma_corecfg_get_port_list(dinfo->corecfg, type); in bcma_get_region_count()
512 struct bcma_devinfo *dinfo; in bcma_get_port_rid() local
517 dinfo = device_get_ivars(child); in bcma_get_port_rid()
518 ports = bcma_corecfg_get_port_list(dinfo->corecfg, port_type); in bcma_get_port_rid()
536 struct bcma_devinfo *dinfo; in bcma_decode_port_rid() local
541 dinfo = device_get_ivars(child); in bcma_decode_port_rid()
556 ports = bcma_corecfg_get_port_list(dinfo->corecfg, types[i]); in bcma_decode_port_rid()
578 struct bcma_devinfo *dinfo; in bcma_get_region_addr() local
583 dinfo = device_get_ivars(child); in bcma_get_region_addr()
584 ports = bcma_corecfg_get_port_list(dinfo->corecfg, port_type); in bcma_get_region_addr()
611 struct bcma_devinfo *dinfo; in bcma_get_intr_count() local
617 dinfo = device_get_ivars(child); in bcma_get_intr_count()
618 return (dinfo->num_intrs); in bcma_get_intr_count()
627 struct bcma_devinfo *dinfo; in bcma_get_intr_ivec() local
636 dinfo = device_get_ivars(child); in bcma_get_intr_ivec()
638 STAILQ_FOREACH(desc, &dinfo->intrs, i_link) { in bcma_get_intr_ivec()
663 struct bcma_devinfo *dinfo; in bcma_add_children() local
689 dinfo = device_get_ivars(child); in bcma_add_children()
690 if ((error = bcma_init_dinfo(bus, child, dinfo, corecfg))) in bcma_add_children()