Lines Matching refs:di
260 struct device_info *di;
264 di = &devices[0];
266 if (!syscall(API_DEV_ENUM, NULL, di))
269 while (di->cookie != NULL) {
275 di++;
278 di->cookie = devices[n - 1].cookie;
280 if (!syscall(API_DEV_ENUM, NULL, di))
295 struct device_info *di;
301 di = &devices[handle];
302 if (!syscall(API_DEV_OPEN, &err, di))
311 struct device_info *di;
316 di = &devices[handle];
317 if (!syscall(API_DEV_CLOSE, NULL, di))
361 struct device_info *di;
368 di = &devices[handle];
369 if (!syscall(API_DEV_READ, &err, di, buf, &len, &start, &act_len))
394 struct device_info *di;
400 di = &devices[handle];
401 if (!syscall(API_DEV_READ, &err, di, buf, &len, &act_len))
413 struct device_info *di;
419 di = &devices[handle];
420 if (!syscall(API_DEV_WRITE, &err, di, buf, &len))
467 struct device_info *di = ub_dev_get(handle);
471 printf(" cookie\t= %p\n", di->cookie);
472 printf(" type\t\t= 0x%08x\n", di->type);
474 if (di->type == DEV_TYP_NET) {
477 printf("%02x ", di->di_net.hwaddr[i]);
481 } else if (di->type & DEV_TYP_STOR) {
482 printf(" type\t\t= %s\n", ub_stor_type(di->type));
483 printf(" blk size\t\t= %ld\n", di->di_stor.block_size);
484 printf(" blk count\t\t= %ld\n", di->di_stor.block_count);