Home
last modified time | relevance | path

Searched refs:count (Results 1 – 14 of 14) sorted by relevance

/devicemodel/core/
A Dpm_vuart.c63 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 Dmonitor.c327 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 Dmptbl.c216 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 Dvirtio_hdcp.c229 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 Dvirtio_input.c391 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 Dvirtio_rpmb.c248 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 Dvhost.c160 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 Dvirtio_mei.c140 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 Dvirtio_gpu.c1172 list->count = nr_entries; in virtio_gpu_create_udmabuf()
/devicemodel/hw/platform/
A Dioc.c640 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 Dusb_pmapper.c331 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 Dvdisplay_sdl.c1227 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 Dcore.c1818 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 Data.h922 u_int16_t count; member
930 int count; member

Completed in 44 milliseconds