Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 343) sorted by relevance

12345678910>>...14

/illumos-kvm-cmd/hw/
H A Dbt-sdp.c164 len -= 2; in sdp_svc_search()
178 len = 4; in sdp_svc_search()
257 len -= 4; in sdp_attr_get()
268 len -= 2; in sdp_attr_get()
305 if (len >= 0 && len + record->attribute_list[i].len < max) { in sdp_attr_get()
310 len += record->attribute_list[i].len; in sdp_attr_get()
599 int len; in sdp_attr_max_size() local
610 for (len = 0; element->value.str[len] | in sdp_attr_max_size()
619 len = 2; in sdp_attr_max_size()
668 for (len = 0; element->value.str[len] | in sdp_attr_write()
[all …]
H A Dusb-bt.c40 int len; member
47 int len; member
286 fifo->fifo[off].len = len; in usb_bt_fifo_enqueue()
292 int len; in usb_bt_fifo_dequeue() local
297 len = MIN(p->len, fifo->fifo[fifo->start].len); in usb_bt_fifo_dequeue()
299 if (len == p->len) { in usb_bt_fifo_dequeue()
300 fifo->fifo[fifo->start].len -= len; in usb_bt_fifo_dequeue()
315 return len; in usb_bt_fifo_dequeue()
325 memcpy(fifo->data + fifo->len, data, len); in usb_bt_fifo_out_enqueue()
326 fifo->len += len; in usb_bt_fifo_out_enqueue()
[all …]
H A Dbt-l2cap.c203 memcpy(&hdr->len, &len, sizeof(hdr->len)); in l2cap_command_reject()
264 hdr->len = cpu_to_le16(L2CAP_CONF_REQ_SIZE(len)); in l2cap_configuration_request()
268 if (len) in l2cap_configuration_request()
288 hdr->len = cpu_to_le16(L2CAP_CONF_RSP_SIZE(len)); in l2cap_configuration_response()
293 if (len) in l2cap_configuration_response()
335 hdr->len = cpu_to_le16(len); in l2cap_echo_response()
356 hdr->len = cpu_to_le16(L2CAP_INFO_RSP_SIZE + len); in l2cap_info_response()
517 len -= L2CAP_CONF_OPT_SIZE + opt->len; in l2cap_channel_config()
808 if (unlikely(len != 2 && len != 4 && len != 6)) { in l2cap_command()
1061 uint16_t len = le16_to_cpu(frame->len); in l2cap_frame_in() local
[all …]
H A Dbt-hid.c96 int len; member
133 p.len = s->dataout.len; in bt_hid_out()
196 len -= plen; in bt_hid_send_data()
207 if (len < 1) in bt_hid_control_transaction()
297 s->dataout.len = len - 1; in bt_hid_control_transaction()
300 s->feature.len = len - 1; in bt_hid_control_transaction()
362 s->dataout.len += len - 1; in bt_hid_control_transaction()
365 s->feature.len += len - 1; in bt_hid_control_transaction()
410 if (len > BT_HID_MTU || len < 1) in bt_hid_interrupt_sdu()
427 hid->intrdataout.len += len - 1; in bt_hid_interrupt_sdu()
[all …]
H A Dpci_host.c59 __func__, pci_dev->name, config_addr, val, len); in pci_data_write()
60 pci_dev->config_write(pci_dev, config_addr, val, len); in pci_data_write()
63 uint32_t pci_data_read(PCIBus *s, uint32_t addr, int len) in pci_data_read() argument
69 assert(len == 1 || len == 2 || len == 4); in pci_data_read()
74 val = pci_dev->config_read(pci_dev, config_addr, len); in pci_data_read()
87 __func__, addr, len, val); in pci_host_config_write()
92 pcibus_t addr, int len) in pci_host_config_read() argument
98 __func__, addr, len, val); in pci_host_config_read()
107 addr, len, val); in pci_host_data_write()
113 pcibus_t addr, int len) in pci_host_data_read() argument
[all …]
H A Dusb.c75 if (p->len != 8) in do_token_setup()
134 if (len > p->len) in do_token_in()
135 len = p->len; in do_token_in()
140 return len; in do_token_in()
169 if (len > p->len) in do_token_out()
170 len = p->len; in do_token_out()
175 return len; in do_token_out()
238 int len, i; in set_usb_string() local
242 len = strlen(str); in set_usb_string()
243 *q++ = 2 * len + 2; in set_usb_string()
[all …]
H A Dbt-hci-csr.c94 #define csrhci_out_packetz(s, len) memset(csrhci_out_packet(s, len), 0, len) argument
100 s->out_len += len; in csrhci_out_packet()
103 if (off + len > FIFO_LEN && (s->out_size = off + len) > FIFO_LEN * 2) { in csrhci_out_packet()
119 int type, int len) in csrhci_out_packet_csr() argument
124 *ret ++ = len; in csrhci_out_packet_csr()
130 int evt, int len) in csrhci_out_packet_event() argument
307 s->in_len += len; in csrhci_write()
329 return len; in csrhci_write()
339 memcpy(pkt, data, len); in csrhci_out_hci_packet_event()
351 pkt[len & ~1] = 0; in csrhci_out_hci_packet_acl()
[all …]
H A Dusb-msd.c177 uint32_t len; in usb_msd_copy_data() local
178 len = s->usb_len; in usb_msd_copy_data()
186 s->usb_len -= len; in usb_msd_copy_data()
187 s->scsi_len -= len; in usb_msd_copy_data()
188 s->usb_buf += len; in usb_msd_copy_data()
189 s->scsi_buf += len; in usb_msd_copy_data()
190 s->data_len -= len; in usb_msd_copy_data()
203 int len; in usb_msd_send_status() local
210 len = MIN(sizeof(csw), p->len); in usb_msd_send_status()
331 int len = p->len; in usb_msd_handle_data() local
[all …]
H A Dtmp105.c26 uint8_t len; member
87 s->len = 0; in tmp105_read()
102 s->buf[s->len ++] = s->config; in tmp105_read()
133 if (s->len >= 3) in tmp105_write()
145 if (s->len < 2) in tmp105_rx()
146 return s->buf[s->len ++]; in tmp105_rx()
155 if (!s->len ++) in tmp105_tx()
158 if (s->len <= 2) in tmp105_tx()
159 s->buf[s->len - 1] = data; in tmp105_tx()
173 s->len = 0; in tmp105_event()
[all …]
H A Dusb-desc.c18 uint8_t *dest, size_t len) in usb_desc_device() argument
22 if (len < bLength) { in usb_desc_device()
56 if (len < bLength) { in usb_desc_device_qualifier()
81 if (len < bLength) { in usb_desc_config()
113 if (len < bLength) { in usb_desc_iface()
151 if (len < bLength) { in usb_desc_endpoint()
170 if (len < bLength) { in usb_desc_other()
255 if (len < 4) { in usb_desc_string()
334 dev->addr, type, len); in usb_desc_get_descriptor()
339 if (ret > len) { in usb_desc_get_descriptor()
[all …]
/illumos-kvm-cmd/
H A Dbt-vhci.c34 int len; member
48 if (s->len < 0) { in vhci_read()
54 while (s->len --) in vhci_read()
57 if (s->len < 3) in vhci_read()
62 s->len -= pktlen; in vhci_read()
67 if (s->len < 4) in vhci_read()
72 s->len -= pktlen; in vhci_read()
77 if (s->len < 3) in vhci_read()
82 s->len -= pktlen; in vhci_read()
103 iv[1].iov_len = len; in vhci_host_send()
[all …]
H A Dbt-host.c44 int len; member
57 iv[1].iov_len = len; in bt_host_send()
94 if (s->len < 0) { in bt_host_read()
100 while (s->len --) in bt_host_read()
103 if (s->len < 2) in bt_host_read()
106 pktlen = MIN(pkt[1] + 2, s->len); in bt_host_read()
108 s->len -= pktlen; in bt_host_read()
118 if (s->len < 4) in bt_host_read()
123 s->len -= pktlen; in bt_host_read()
128 if (s->len < 3) in bt_host_read()
[all …]
H A Diov.c25 size_t len; in iov_from_buf() local
27 len = MIN(iov[i].iov_len, size - offset); in iov_from_buf()
29 memcpy(iov[i].iov_base, buf + offset, len); in iov_from_buf()
30 offset += len; in iov_from_buf()
51 buf_off += len; in iov_to_buf()
52 offset += len; in iov_to_buf()
53 size -= len; in iov_to_buf()
62 size_t len; in iov_size() local
65 len = 0; in iov_size()
67 len += iov[i].iov_len; in iov_size()
[all …]
H A Dspice-qemu-char.c37 while (len > 0) { in vmc_write()
42 len -= last_out; in vmc_write()
50 trace_spice_vmc_write(out, len + out); in vmc_write()
57 int bytes = MIN(len, scd->datalen); in vmc_read()
69 trace_spice_vmc_read(bytes, len); in vmc_read()
111 dprintf(s, 2, "%s: %d\n", __func__, len); in spice_chr_write()
114 if (s->bufsize < len) { in spice_chr_write()
115 s->bufsize = len; in spice_chr_write()
118 memcpy(s->buffer, buf, len); in spice_chr_write()
120 s->datalen = len; in spice_chr_write()
[all …]
H A Dos-posix.c104 int len; in os_find_datadir() local
106 if (len > 0) { in os_find_datadir()
107 buf[len] = 0; in os_find_datadir()
246 ssize_t len; in os_daemonize() local
255 if (len != 1) in os_daemonize()
290 ssize_t len; in os_setup_post() local
293 len = write(fds[1], &status, 1); in os_setup_post()
294 if (len == -1 && (errno == EINTR)) in os_setup_post()
297 if (len != 1) in os_setup_post()
368 int len; in qemu_create_pidfile() local
[all …]
/illumos-kvm-cmd/darwin-user/
H A Dmmap.c46 len = TARGET_PAGE_ALIGN(len); in target_mprotect()
47 end = start + len; in target_mprotect()
52 if (len == 0) in target_mprotect()
194 len = TARGET_PAGE_ALIGN(len); in target_mmap()
195 if (len == 0) in target_mmap()
241 end = start + len; in target_mmap()
331 len = TARGET_PAGE_ALIGN(len); in target_munmap()
332 if (len == 0) in target_munmap()
334 end = start + len; in target_munmap()
400 len = TARGET_PAGE_ALIGN(len); in target_msync()
[all …]
/illumos-kvm-cmd/kvm/libfdt/
H A Dfdt_ro.c70 if (p[len] == '\0') in nodename_eq()
72 else if (!memchr(s, '@', len) && (p[len] == '@')) in nodename_eq()
171 if (len) in fdt_get_name()
177 if (len) in fdt_get_name()
178 *len = err; in fdt_get_name()
225 int len = fdt32_to_cpu(prop->len); in fdt_get_property() local
232 *lenp = len; in fdt_get_property()
266 int len; in fdt_get_phandle() local
391 int len; in fdt_node_offset_by_prop_value() local
442 int len; in fdt_node_check_compatible() local
[all …]
/illumos-kvm-cmd/slirp/
H A Dsbuf.c126 int len, n, nn; in sbappendsb() local
128 len = m->m_len; in sbappendsb()
132 if (n > len) n = len; in sbappendsb()
137 if (n > len) n = len; in sbappendsb()
139 len -= n; in sbappendsb()
140 if (len) { in sbappendsb()
143 if (nn > len) nn = len; in sbappendsb()
170 if (len > sb->sb_cc) len = sb->sb_cc; in sbcopy()
175 if (off > len) off = len; in sbcopy()
177 len -= off; in sbcopy()
[all …]
H A Dtcp_output.c59 register long len, win; in tcp_output() local
128 if (len < 0) { in tcp_output()
139 len = 0; in tcp_output()
146 if (len > tp->t_maxseg) { in tcp_output()
147 len = tp->t_maxseg; in tcp_output()
165 if (len) { in tcp_output()
292 if (len) { in tcp_output()
302 m->m_len += len; in tcp_output()
385 if (len + optlen) in tcp_output()
387 optlen + len)); in tcp_output()
[all …]
H A Dsocket.c93 if (len <= 0) in sopreprbuf()
110 if (iov[0].iov_len > len) iov[0].iov_len = len; in sopreprbuf()
112 if (len) { in sopreprbuf()
290 int n, len; in sosendoob() local
312 if (len > so->so_urgc) len = so->so_urgc; in sosendoob()
320 len += n; in sosendoob()
370 if (iov[0].iov_len > len) iov[0].iov_len = len; in sowrite()
374 if (iov[0].iov_len > len) iov[0].iov_len = len; in sowrite()
379 if (iov[1].iov_len > len) iov[1].iov_len = len; in sowrite()
445 int len; in sorecvfrom() local
[all …]
/illumos-kvm-cmd/linux-user/
H A Duaccess.c11 abi_long copy_from_user(void *hptr, abi_ulong gaddr, size_t len) in copy_from_user() argument
16 if ((ghptr = lock_user(VERIFY_READ, gaddr, len, 1))) { in copy_from_user()
17 memcpy(hptr, ghptr, len); in copy_from_user()
26 abi_long copy_to_user(abi_ulong gaddr, void *hptr, size_t len) in copy_to_user() argument
31 if ((ghptr = lock_user(VERIFY_WRITE, gaddr, len, 0))) { in copy_to_user()
32 memcpy(ghptr, hptr, len); in copy_to_user()
33 unlock_user(ghptr, gaddr, len); in copy_to_user()
46 int max_len, len; in target_strlen() local
54 len = qemu_strnlen((const char *)ptr, max_len); in target_strlen()
56 guest_addr += len; in target_strlen()
[all …]
H A Dmmap.c96 len = TARGET_PAGE_ALIGN(len); in target_mprotect()
97 end = start + len; in target_mprotect()
101 if (len == 0) in target_mprotect()
403 len = TARGET_PAGE_ALIGN(len); in target_mmap()
404 if (len == 0) in target_mmap()
615 start, len); in target_munmap()
619 len = TARGET_PAGE_ALIGN(len); in target_munmap()
620 if (len == 0) in target_munmap()
623 end = start + len; in target_munmap()
750 len = TARGET_PAGE_ALIGN(len); in target_msync()
[all …]
/illumos-kvm-cmd/bsd-user/
H A Duaccess.c11 abi_long copy_from_user(void *hptr, abi_ulong gaddr, size_t len) in copy_from_user() argument
16 if ((ghptr = lock_user(VERIFY_READ, gaddr, len, 1))) { in copy_from_user()
17 memcpy(hptr, ghptr, len); in copy_from_user()
26 abi_long copy_to_user(abi_ulong gaddr, void *hptr, size_t len) in copy_to_user() argument
31 if ((ghptr = lock_user(VERIFY_WRITE, gaddr, len, 0))) { in copy_to_user()
32 memcpy(ghptr, hptr, len); in copy_to_user()
33 unlock_user(ghptr, gaddr, len); in copy_to_user()
46 int max_len, len; in target_strlen() local
54 len = qemu_strnlen((char *)ptr, max_len); in target_strlen()
56 guest_addr += len; in target_strlen()
[all …]
H A Dmmap.c153 len = TARGET_PAGE_ALIGN(len); in target_mprotect()
154 end = start + len; in target_mprotect()
158 if (len == 0) in target_mprotect()
332 start, len, in target_mmap()
360 len = TARGET_PAGE_ALIGN(len); in target_mmap()
361 if (len == 0) in target_mmap()
500 len = TARGET_PAGE_ALIGN(len); in target_munmap()
501 if (len == 0) in target_munmap()
504 end = start + len; in target_munmap()
550 len = TARGET_PAGE_ALIGN(len); in target_msync()
[all …]
/illumos-kvm-cmd/block/
H A Dqed-cluster.c60 size_t len; member
75 size_t len = 0; in qed_find_cluster_cb() local
86 find_cluster_cb->len); in qed_find_cluster_cb()
91 len = MIN(find_cluster_cb->len, n * s->header.cluster_size - in qed_find_cluster_cb()
99 find_cluster_cb->cb(find_cluster_cb->opaque, ret, offset, len); in qed_find_cluster_cb()
124 size_t len, QEDFindClusterFunc *cb, void *opaque) in qed_find_cluster() argument
132 len = MIN(len, (((pos >> s->l1_shift) + 1) << s->l1_shift) - pos); in qed_find_cluster()
136 cb(opaque, QED_CLUSTER_L1, 0, len); in qed_find_cluster()
147 find_cluster_cb->len = len; in qed_find_cluster()

Completed in 59 milliseconds

12345678910>>...14