Searched refs:pos (Results 1 – 7 of 7) sorted by relevance
| /devicemodel/core/ |
| A D | sbuf.c | 18 uint32_t pos = pos_arg; in sbuf_next_ptr() local 19 pos += span; in sbuf_next_ptr() 20 pos = (pos >= scope) ? (pos - scope) : pos; in sbuf_next_ptr() 21 return pos; in sbuf_next_ptr()
|
| /devicemodel/hw/pci/ |
| A D | ptm.c | 47 int pos; in get_ptm_reg_value() local 50 pos = pci_find_ext_cap(pdev, PCIZ_PTM); in get_ptm_reg_value() 52 if (!pos) { in get_ptm_reg_value() 56 pci_device_cfg_read_u32(pdev, ®_val, pos + reg); in get_ptm_reg_value() 59 __func__, pdev->bus, pdev->dev, pdev->func, pos, reg_val); in get_ptm_reg_value() 119 int pos, pcie_type, cap, rp_ptm_offset; in ptm_probe() local 131 pos = pci_find_ext_cap(phys_dev, PCIZ_PTM); in ptm_probe() 132 if (!pos) { in ptm_probe()
|
| A D | pci_util.c | 71 int pos = 0; in pci_get_pcie_type() local 76 pos = pci_find_cap(dev, PCIY_EXPRESS); in pci_get_pcie_type() 77 if (!pos) in pci_get_pcie_type() 80 pci_device_cfg_read_u8(dev, &data, pos + PCIER_FLAGS); in pci_get_pcie_type()
|
| /devicemodel/hw/pci/virtio/ |
| A D | virtio_mei.c | 114 pos += snprintf(str + pos, len - pos, "%02x", guid->b[3]); in guid_unparse() 115 pos += snprintf(str + pos, len - pos, "%02x", guid->b[2]); in guid_unparse() 116 pos += snprintf(str + pos, len - pos, "%02x", guid->b[1]); in guid_unparse() 117 pos += snprintf(str + pos, len - pos, "%02x", guid->b[0]); in guid_unparse() 120 pos += snprintf(str + pos, len - pos, "%02x", guid->b[5]); in guid_unparse() 121 pos += snprintf(str + pos, len - pos, "%02x", guid->b[4]); in guid_unparse() 124 pos += snprintf(str + pos, len - pos, "%02x", guid->b[7]); in guid_unparse() 125 pos += snprintf(str + pos, len - pos, "%02x", guid->b[6]); in guid_unparse() 128 pos += snprintf(str + pos, len - pos, "%02x", guid->b[8]); in guid_unparse() 129 pos += snprintf(str + pos, len - pos, "%02x", guid->b[9]); in guid_unparse() [all …]
|
| A D | virtio_gpu.c | 302 struct virtio_gpu_cursor_pos pos; member 1517 cur.x = req.pos.x; in virtio_gpu_cmd_update_cursor() 1518 cur.y = req.pos.y; in virtio_gpu_cmd_update_cursor() 1525 vdpy_cursor_define(gpu->vdpy_handle, req.pos.scanout_id, &cur); in virtio_gpu_cmd_update_cursor() 1538 vdpy_cursor_move(gpu->vdpy_handle, req.pos.scanout_id, req.pos.x, req.pos.y); in virtio_gpu_cmd_move_cursor()
|
| /devicemodel/hw/platform/ |
| A D | ioc_cbc.c | 35 int i, pos; in cbc_copy_to_ring() local 39 pos = (ring->tail + 1) & (CBC_RING_BUFFER_SIZE - 1); in cbc_copy_to_ring() 40 if (pos != ring->head) { in cbc_copy_to_ring() 43 ring->tail = pos; in cbc_copy_to_ring() 82 int i, pos; in cbc_verify_chksum() local 86 pos = (ring->head + i) & (CBC_RING_BUFFER_SIZE - 1); in cbc_verify_chksum() 88 value += 0x100 - *(ring->buf + pos); in cbc_verify_chksum()
|
| A D | ioc.c | 1079 int i, pos; in ioc_build_request() local 1089 pos = (ring->head + i) & (CBC_RING_BUFFER_SIZE - 1); in ioc_build_request() 1091 req->buf[i] = ring->buf[pos]; in ioc_build_request()
|
Completed in 22 milliseconds