Lines Matching refs:di
181 struct device_info *di; in ub_dev_enum() local
185 di = &devices[0]; in ub_dev_enum()
187 if (!syscall(API_DEV_ENUM, NULL, di)) in ub_dev_enum()
190 while (di->cookie != NULL) { in ub_dev_enum()
196 di++; in ub_dev_enum()
199 di->cookie = devices[n - 1].cookie; in ub_dev_enum()
201 if (!syscall(API_DEV_ENUM, NULL, di)) in ub_dev_enum()
215 struct device_info *di; in ub_dev_open() local
221 di = &devices[handle]; in ub_dev_open()
223 if (!syscall(API_DEV_OPEN, &err, di)) in ub_dev_open()
231 struct device_info *di; in ub_dev_close() local
236 di = &devices[handle]; in ub_dev_close()
237 if (!syscall(API_DEV_CLOSE, NULL, di)) in ub_dev_close()
277 struct device_info *di; in ub_dev_read() local
284 di = &devices[handle]; in ub_dev_read()
285 if (!syscall(API_DEV_READ, &err, di, buf, &len, &start, &act_len)) in ub_dev_read()
307 struct device_info *di; in ub_dev_recv() local
313 di = &devices[handle]; in ub_dev_recv()
314 if (!syscall(API_DEV_READ, &err, di, buf, &len, &act_len)) in ub_dev_recv()
325 struct device_info *di; in ub_dev_send() local
331 di = &devices[handle]; in ub_dev_send()
332 if (!syscall(API_DEV_WRITE, &err, di, buf, &len)) in ub_dev_send()
396 int ub_display_get_info(int type, struct display_info *di) in ub_display_get_info() argument
400 if (!syscall(API_DISPLAY_GET_INFO, &err, type, di)) in ub_display_get_info()