Lines Matching refs:dp
339 static int dr_check_unit_attached(dr_common_unit_t *dp);
1520 dr_dev_is_target(dr_dev_unit_t *dp, int present_only, uint_t uset)
1526 cp = &dp->du_common;
1598 dr_dev_unit_t *dp;
1602 dp = DR_GET_BOARD_DEVUNIT(bp, type, unum);
1603 if (dr_dev_is_target(dp, present_only, uset)) {
1604 *wp++ = &dp->du_common;
1621 dp = DR_GET_BOARD_DEVUNIT(bp, type, cunum);
1623 if (dr_dev_is_target(dp, present_only, uset)) {
1624 *wp++ = &dp->du_common;
2487 dr_dev_unit_t *dp;
2489 dp = DR_GET_BOARD_DEVUNIT(bp, nt, unit_num);
2490 ASSERT(dp->du_common.sbdev_bp == bp);
2491 ASSERT(dp->du_common.sbdev_unum == unit_num);
2492 ASSERT(dp->du_common.sbdev_type == nt);
2494 return (dp);
2500 dr_dev_unit_t *dp;
2504 dp = dr_get_dev_unit(bp, SBD_COMP_CPU, unit_num);
2505 return (&dp->du_cpu);
2511 dr_dev_unit_t *dp;
2515 dp = dr_get_dev_unit(bp, SBD_COMP_MEM, unit_num);
2516 return (&dp->du_mem);
2522 dr_dev_unit_t *dp;
2526 dp = dr_get_dev_unit(bp, SBD_COMP_IO, unit_num);
2527 return (&dp->du_io);
2533 dr_dev_unit_t *dp;
2535 dp = dr_get_dev_unit(bp, nt, unum);
2536 return (&dp->du_common);
2811 dr_dev_unit_t *dp;
2828 dp = DR_GET_BOARD_DEVUNIT(bp, nt, unum);
2831 ASSERT(dp->du_common.sbdev_bp == bp);
2832 ASSERT(dp->du_common.sbdev_unum == unum);
2833 ASSERT(dp->du_common.sbdev_type == nt);
2836 (void) snprintf(dp->du_common.sbdev_path,
2837 sizeof (dp->du_common.sbdev_path), "%s::%s%d",
2840 dp->du_common.sbdev_id = id;
2841 DR_DEV_SET_PRESENT(&dp->du_common);
2853 dr_dev_unit_t *dp;
2875 dp = DR_GET_BOARD_DEVUNIT(bp, SBD_COMP_CPU, i);
2877 bzero(dp, sizeof (*dp));
2878 dp->du_common.sbdev_bp = bp;
2879 dp->du_common.sbdev_unum = i;
2880 dp->du_common.sbdev_type = SBD_COMP_CPU;
2884 dp = DR_GET_BOARD_DEVUNIT(bp, SBD_COMP_MEM, i);
2886 bzero(dp, sizeof (*dp));
2887 dp->du_common.sbdev_bp = bp;
2888 dp->du_common.sbdev_unum = i;
2889 dp->du_common.sbdev_type = SBD_COMP_MEM;
2893 dp = DR_GET_BOARD_DEVUNIT(bp, SBD_COMP_IO, i);
2895 bzero(dp, sizeof (*dp));
2896 dp->du_common.sbdev_bp = bp;
2897 dp->du_common.sbdev_unum = i;
2898 dp->du_common.sbdev_type = SBD_COMP_IO;