Lines Matching refs:di
32 struct device_info *di; in main() local
104 di = ub_dev_get(i); in main()
106 if (di->type & DEV_TYP_STOR) in main()
131 di = ub_dev_get(i); in main()
133 if (di->type == DEV_TYP_NET) in main()
296 struct device_info *di = ub_dev_get(handle); in test_dump_di() local
299 printf(" cookie\t= 0x%08x\n", (uint32_t)di->cookie); in test_dump_di()
300 printf(" type\t\t= 0x%08x\n", di->type); in test_dump_di()
302 if (di->type == DEV_TYP_NET) { in test_dump_di()
305 printf("%02x ", di->di_net.hwaddr[i]); in test_dump_di()
309 } else if (di->type & DEV_TYP_STOR) { in test_dump_di()
310 printf(" type\t\t= %s\n", test_stor_typ(di->type)); in test_dump_di()
311 printf(" blk size\t\t= %d\n", (unsigned int)di->di_stor.block_size); in test_dump_di()
312 printf(" blk count\t\t= %d\n", (unsigned int)di->di_stor.block_count); in test_dump_di()