| /devicemodel/include/ |
| A D | tree.h | 447 if (tmp && RB_COLOR(tmp, field) == RB_RED) { \ 457 elm = tmp; \ 463 if (tmp && RB_COLOR(tmp, field) == RB_RED) { \ 653 tmp = RB_LEFT(tmp, field); \ 655 tmp = RB_RIGHT(tmp, field); \ 682 tmp = RB_LEFT(tmp, field); \ 684 tmp = RB_RIGHT(tmp, field); \ 703 tmp = RB_LEFT(tmp, field); \ 706 tmp = RB_RIGHT(tmp, field); \ 768 tmp = RB_LEFT(tmp, field); \ [all …]
|
| /devicemodel/hw/platform/ |
| A D | pty_vuart.c | 31 char *tmp, *dir; in check_dir() local 33 tmp = strdup(file); in check_dir() 34 if (!tmp) { in check_dir() 39 dir = dirname(tmp); in check_dir() 42 free(tmp); in check_dir() 45 free(tmp); in check_dir()
|
| A D | pit.c | 568 uint16_t tmp; in vpit_handler() local 571 tmp = pit_update_counter(vpit, c, false, &delta_ticks); in vpit_handler() 574 tmp >>= 8; in vpit_handler() 575 tmp &= 0xff; in vpit_handler() 576 *eax = tmp; in vpit_handler()
|
| A D | ioc.c | 1470 char *tmp, *str, *cpy; in ioc_parse() local 1482 tmp = strsep(&str, ","); in ioc_parse() 1483 if (!tmp) in ioc_parse() 1486 rc = snprintf(virtual_uart_path, sizeof(virtual_uart_path), "%s", tmp); in ioc_parse()
|
| /devicemodel/hw/pci/ |
| A D | uart.c | 89 char *tmp, *val = NULL; in pci_uart_init() local 96 tmp = val= strdup(opts); in pci_uart_init() 97 if (!tmp) { in pci_uart_init() 100 if (!strncmp(tmp, VUART_IDX, strlen(VUART_IDX))) { in pci_uart_init() 101 tmp = strsep(&val, ":"); in pci_uart_init()
|
| A D | ivshmem.c | 254 char *tmp, *name, *size_str, *orig; in pci_ivshmem_init() local 260 tmp = orig = strdup(opts); in pci_ivshmem_init() 265 name = strsep(&tmp, ","); in pci_ivshmem_init() 281 size_str = strsep(&tmp, ","); in pci_ivshmem_init() 294 if (tmp) { in pci_ivshmem_init() 295 if (dm_strtoui(tmp, &tmp, 10, ®ion_id) != 0) { in pci_ivshmem_init() 296 pr_warn("shared memory region ID is incorrect, %s, 0 will used.\n", tmp); in pci_ivshmem_init()
|
| /devicemodel/log/ |
| A D | disk_logger.c | 62 uint16_t index = 0, tmp; in probe_disk_log_file() local 91 tmp = (uint16_t)atoi(pdir->d_name + length); in probe_disk_log_file() 94 index = tmp; in probe_disk_log_file() 95 } else if (INDEX_AFTER(tmp, index)) { in probe_disk_log_file() 96 index = tmp; in probe_disk_log_file()
|
| /devicemodel/hw/pci/virtio/ |
| A D | vhost_vsock.c | 241 char *tmp = NULL; in virtio_vhost_vsock_init() local 247 devopts = tmp = strdup(opts); in virtio_vhost_vsock_init() 252 if (!strncmp(tmp, "cid=", 4)) { in virtio_vhost_vsock_init() 253 strsep(&tmp, "="); in virtio_vhost_vsock_init() 254 dm_strtoul(tmp, NULL, 10, &cid); in virtio_vhost_vsock_init()
|
| A D | virtio_net.c | 858 char *tmp = NULL; in virtio_net_init() local 944 vtopts = tmp = strdup(opts); in virtio_net_init() 947 if ((tmp != NULL) && (strncmp(tmp, "tap", 3) == 0)) { in virtio_net_init() 948 type = strsep(&tmp, "="); in virtio_net_init() 949 name = strsep(&tmp, ","); in virtio_net_init() 952 if ((tmp != NULL) && (strncmp(tmp, "mac_seed", 8) == 0)) { in virtio_net_init() 953 strsep(&tmp, "="); in virtio_net_init() 954 mac_seed = tmp; in virtio_net_init()
|
| A D | virtio_console.c | 279 struct virtio_console_port *tmp; in virtio_console_control_tx() local 294 tmp = &console->ports[i]; in virtio_console_control_tx() 295 if (tmp->enabled) in virtio_console_control_tx() 296 virtio_console_announce_port(tmp); in virtio_console_control_tx() 298 if (tmp->open) in virtio_console_control_tx() 299 virtio_console_open_port(tmp, true); in virtio_console_control_tx() 310 tmp = &console->ports[ctrl->id]; in virtio_console_control_tx() 311 if (tmp->is_console) { in virtio_console_control_tx()
|
| A D | virtio_gpio.c | 827 char *cstr, *lstr, *tmp, *b, *o; in native_gpio_init() local 842 while ((tmp = strsep(&o, "@")) != NULL) { in native_gpio_init() 853 if (tmp[0] == '\0') in native_gpio_init() 861 cstr = strsep(&tmp, "{"); in native_gpio_init() 862 if (!tmp || !cstr || cstr[0] == '\0') in native_gpio_init() 871 cstr = strsep(&tmp, "}"); in native_gpio_init()
|
| A D | virtio_rpmb.c | 398 __u8 tmp[RPMB_BLOCK_SIZE]; in rpmb_check() local 400 rc = rpmb_read_block(mode, key, block, tmp, 1); in rpmb_check()
|
| /devicemodel/hw/ |
| A D | vdisplay_sdl.c | 1366 char *str, *stropts, *tmp; in vdpy_parse_cmd_option() local 1381 if ((tmp = strcasestr(str, "geometry=fullscreen")) != NULL) { in vdpy_parse_cmd_option() 1382 snum = sscanf(tmp, "geometry=fullscreen:%d", &vscr->pscreen_id); in vdpy_parse_cmd_option() 1394 } else if ((tmp = strcasestr(str, "geometry=")) != NULL) { in vdpy_parse_cmd_option() 1395 snum = sscanf(tmp, "geometry=%dx%d+%d+%d", in vdpy_parse_cmd_option()
|