| /devicemodel/core/ |
| A D | pm_vuart.c | 63 static bool read_bytes(int fd, uint8_t *buffer, int buf_len, int *count, bool *eof) in read_bytes() argument 68 if (buf_len <= (*count)) { in read_bytes() 69 *count = buf_len; in read_bytes() 75 rc = read(fd, buffer + (*count), buf_len - (*count)); in read_bytes() 77 *count += rc; in read_bytes() 78 if ((buffer[*count - 1] == '\0') || (buffer[*count - 1] == '\n') || in read_bytes() 79 (*count == buf_len)) in read_bytes()
|
| A D | monitor.c | 327 count++; \ 331 if (!count) { \ 347 int count = 0; in handle_stop() local 361 count++; in handle_stop() 365 if (!count) { in handle_stop() 380 int count = 0; in handle_resume() local 391 count++; in handle_resume() 395 if (!count) { in handle_resume() 429 int count = 0; in handle_blkrescan() local 440 count++; in handle_blkrescan() [all …]
|
| A D | mptbl.c | 216 int bus, count; in mpt_count_ioint_entries() local 218 count = 0; in mpt_count_ioint_entries() 220 count += pci_count_lintr(bus); in mpt_count_ioint_entries() 226 return (16 + count); in mpt_count_ioint_entries()
|
| /devicemodel/hw/pci/virtio/ |
| A D | virtio_hdcp.c | 229 ssize_t count = send(fd, &data[offset], bytesRemaining, MSG_NOSIGNAL); in SendMessage() local 230 if (-1 == count) in SendMessage() 241 bytesRemaining -= count; in SendMessage() 242 offset += count; in SendMessage() 250 int count = 0; in GetMessage() local 256 count = read(fd, &data[offset], bytesRemaining); in GetMessage() 257 if (-1 == count) in GetMessage() 268 if (0 == count) in GetMessage() 274 bytesRemaining -= count; in GetMessage() 275 offset += count; in GetMessage()
|
| A D | virtio_input.c | 391 if (count <= 0) in virtio_input_get_bitmap() 402 count = count / 8; in virtio_input_get_bitmap() 403 for (i = count - 1; i >= 0; i--) { in virtio_input_get_bitmap() 440 int count, size; in virtio_input_get_evbits() local 447 count = KEY_CNT; in virtio_input_get_evbits() 450 count = REL_CNT; in virtio_input_get_evbits() 453 count = ABS_CNT; in virtio_input_get_evbits() 456 count = MSC_CNT; in virtio_input_get_evbits() 459 count = SW_CNT; in virtio_input_get_evbits() 462 count = LED_CNT; in virtio_input_get_evbits() [all …]
|
| A D | virtio_rpmb.c | 248 rpmb_write_block(__u8 mode, __u8 *key, __u16 addr, void *buf, __u32 count) in rpmb_write_block() argument 260 struct rpmb_frame frame_rel[count]; in rpmb_write_block() 263 if (!buf || count == 0) { in rpmb_write_block() 278 for (i = 0; i < count; i++) { in rpmb_write_block() 283 frame_rel[i].block_count = swap16(count); in rpmb_write_block() 288 iseq.cmd[0].nframes = count; in rpmb_write_block() 332 rpmb_read_block(__u8 mode, __u8 *key, __u16 addr, void *buf, __u32 count) in rpmb_read_block() argument 343 struct rpmb_frame frame_out[count]; in rpmb_read_block() 345 if (!buf || count == 0) { in rpmb_read_block() 357 iseq.cmd[1].nframes = count; in rpmb_read_block() [all …]
|
| A D | vhost.c | 160 uint64_t count = 0; in vhost_eventfd_test_and_clear() local 169 rc = read(fd, &count, sizeof(count)); in vhost_eventfd_test_and_clear() 171 rc, errno, count); in vhost_eventfd_test_and_clear()
|
| A D | virtio_mei.c | 140 int count; member 145 return *(volatile int *)&ref->count; in atomic_read() 162 } while (!__sync_bool_compare_and_swap((int *)&ref->count, val, new)); in refcnt_get() 177 } while (!__sync_bool_compare_and_swap((int *)&ref->count, val, new)); in refcnt_put()
|
| A D | virtio_gpu.c | 1172 list->count = nr_entries; in virtio_gpu_create_udmabuf()
|
| /devicemodel/hw/platform/ |
| A D | ioc.c | 640 int count; in ioc_ch_recv() local 651 if (count < 0) { in ioc_ch_recv() 655 return count; in ioc_ch_recv() 665 int count = 0; in ioc_ch_xmit() local 671 while (count < size) { in ioc_ch_xmit() 672 rc = write(fd, (buf + count), (size - count)); in ioc_ch_xmit() 682 count += rc; in ioc_ch_xmit() 684 return count; in ioc_ch_xmit() 1125 int count; in ioc_process_tx() local 1140 if (count <= 0) { in ioc_process_tx() [all …]
|
| A D | usb_pmapper.c | 331 size_t size, size_t count) in usb_dev_alloc_req() argument 336 if (!udev || !xfer || count < 0) in usb_dev_alloc_req() 347 req->trn = libusb_alloc_transfer(count); in usb_dev_alloc_req()
|
| /devicemodel/hw/ |
| A D | vdisplay_sdl.c | 1227 int err, count; in vdpy_init() local 1243 count = 0; in vdpy_init() 1247 while (!vdpy.s.is_active && count < 20) { in vdpy_init() 1249 count++; in vdpy_init()
|
| /devicemodel/hw/pci/ |
| A D | core.c | 1818 int count, func, slot; in pci_bus_write_dsdt() local 1921 count = pci_count_lintr(bus); in pci_bus_write_dsdt() 1922 if (count != 0) { in pci_bus_write_dsdt() 2219 int count, slot, pin; in pci_count_lintr() local 2222 count = 0; in pci_count_lintr() 2228 count++; in pci_count_lintr() 2232 return count; in pci_count_lintr()
|
| /devicemodel/include/ |
| A D | ata.h | 922 u_int16_t count; member 930 int count; member
|