/openbmc/linux/tools/testing/selftests/net/mptcp/ |
H A D | mptcp_sockopt.c | 279 socklen_t olen, _olen; in do_getsockopt_bogus_sf_data() local 285 olen = sizeof(good_data); in do_getsockopt_bogus_sf_data() 286 good_data.size_subflow_data = olen; in do_getsockopt_bogus_sf_data() 288 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() 290 assert(olen == sizeof(good_data)); in do_getsockopt_bogus_sf_data() 294 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() 296 assert(olen == sizeof(good_data)); in do_getsockopt_bogus_sf_data() 302 _olen = rand() % olen; in do_getsockopt_bogus_sf_data() 303 olen = _olen; in do_getsockopt_bogus_sf_data() 304 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() [all …]
|
/openbmc/linux/net/ceph/ |
H A D | armor.c | 39 int olen = 0; in ceph_armor() local 64 olen += 4; in ceph_armor() 69 olen++; in ceph_armor() 72 return olen; in ceph_armor() 77 int olen = 0; in ceph_unarmor() local 97 return olen + 1; in ceph_unarmor() 100 return olen + 2; in ceph_unarmor() 102 olen += 3; in ceph_unarmor() 105 return olen; in ceph_unarmor()
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_tunnel.c | 98 int olen, l2_len; in __encap_ipv4() local 152 olen = sizeof(h_outer.ip); in __encap_ipv4() 176 olen += sizeof(h_outer.l4hdr.gre); in __encap_ipv4() 182 olen += sizeof(h_outer.l4hdr.udp); in __encap_ipv4() 198 l2_hdr = (__u8 *)&h_outer + olen; in __encap_ipv4() 220 olen += l2_len; in __encap_ipv4() 223 if (bpf_skb_adjust_room(skb, olen, BPF_ADJ_ROOM_MAC, flags)) in __encap_ipv4() 228 h_outer.ip.tot_len = bpf_htons(olen + in __encap_ipv4() 235 if (bpf_skb_store_bytes(skb, ETH_HLEN, &h_outer, olen, in __encap_ipv4() 266 int olen, l2_len; in __encap_ipv6() local [all …]
|
/openbmc/linux/arch/x86/boot/compressed/ |
H A D | mkpiggy.c | 21 uint32_t olen; in main() local 44 if (fread(&olen, sizeof(olen), 1, f) != 1) { in main() 50 olen = get_unaligned_le32(&olen); in main() 56 printf("z_output_len = %lu\n", (unsigned long)olen); in main() 67 printf("output_len:\n\t.long %lu\n", (unsigned long)olen); in main()
|
/openbmc/linux/lib/842/ |
H A D | 842_decompress.c | 56 u64 olen; member 136 if (n > p->olen) in do_data() 158 p->olen -= n; in do_data() 207 p->olen -= size; in __do_index() 278 u8 *out, unsigned int *olen) in sw842_decompress() argument 290 p.olen = *olen; in sw842_decompress() 292 total = p.olen; in sw842_decompress() 294 *olen = 0; in sw842_decompress() 315 if (rep * 8 > p.olen) in sw842_decompress() 321 p.olen -= 8; in sw842_decompress() [all …]
|
H A D | 842_compress.c | 93 u64 olen; member 183 else if (p->olen < 8 && bits > 32 && bits <= 56) in add_bits() 185 else if (p->olen < 4 && bits > 16 && bits <= 24) in add_bits() 188 if (DIV_ROUND_UP(bits, 8) > p->olen) in add_bits() 215 p->olen -= p->bit / 8; in add_bits() 478 u8 *out, unsigned int *olen, void *wmem) in sw842_compress() argument 496 p->olen = *olen; in sw842_compress() 499 total = p->olen; in sw842_compress() 501 *olen = 0; in sw842_compress() 589 p->olen--; in sw842_compress() [all …]
|
/openbmc/u-boot/cmd/ |
H A D | setexpr.c | 84 int olen, /* length of old string */ in substitute() argument 88 char *p = memstr(string, *slen, old, olen); in substitute() 94 (long)(p - string), olen, nlen); in substitute() 97 if (*slen + nlen - olen > ssize) { in substitute() 103 if (olen != nlen) { in substitute() 106 len = (olen > nlen) ? olen : nlen; in substitute() 112 memmove(p + nlen, p + olen, tail); in substitute() 118 *slen += nlen - olen; in substitute() 179 int i, olen; in regex_sub() local 211 olen = caps[0].len; in regex_sub() [all …]
|
/openbmc/u-boot/drivers/i2c/ |
H A D | fsl_i2c.c | 405 int olen, u8 *data, int dlen) in __i2c_read() argument 419 if (olen < 0) { in __i2c_read() 421 ret = __i2c_write_data(base, data, -olen); in __i2c_read() 423 if (ret != -olen) in __i2c_read() 430 if ((!dlen || olen > 0) && in __i2c_read() 432 __i2c_write_data(base, offset, olen) == olen) in __i2c_read() 436 olen ? 1 : 0) != 0) in __i2c_read() 452 u8 *offset, int olen, u8 *data, int dlen) in __i2c_write() argument 460 __i2c_write_data(base, offset, olen) == olen) { in __i2c_write() 509 int olen, u8 *data, int dlen) in fsl_i2c_read() argument [all …]
|
/openbmc/qemu/hw/input/ |
H A D | adb.c | 54 int devaddr, cmd, olen, i; in do_adb_request() local 83 olen = adc->devreq(d, obuf, buf, len); in do_adb_request() 84 if (!olen) { in do_adb_request() 87 return olen; in do_adb_request() 112 int olen, i; in adb_poll() local 115 olen = 0; in adb_poll() 123 olen = do_adb_request(s, obuf + 1, buf, 1); in adb_poll() 125 if (olen > 0) { in adb_poll() 128 olen++; in adb_poll() 129 return olen; in adb_poll() [all …]
|
H A D | adb-mouse.c | 154 int cmd, reg, olen; in adb_mouse_request() local 168 olen = 0; in adb_mouse_request() 222 olen = adb_mouse_poll(d, obuf); in adb_mouse_request() 229 olen = 2; in adb_mouse_request() 235 return olen; in adb_mouse_request()
|
H A D | adb-kbd.c | 230 int cmd, reg, olen; in adb_kbd_request() local 240 olen = 0; in adb_kbd_request() 279 olen = adb_kbd_poll(d, obuf); in adb_kbd_request() 286 olen = 2; in adb_kbd_request() 291 olen = 2; in adb_kbd_request() 297 return olen; in adb_kbd_request()
|
/openbmc/linux/arch/powerpc/boot/ |
H A D | opal.c | 45 uint64_t olen, len; in opal_con_putc() local 48 rc = opal_console_write_buffer_space(opal_con_id, &olen); in opal_con_putc() 49 len = be64_to_cpu(olen); in opal_con_putc() 56 olen = cpu_to_be64(1); in opal_con_putc() 57 opal_console_write(opal_con_id, &olen, &c); in opal_con_putc()
|
/openbmc/linux/drivers/net/ppp/ |
H A D | ppp_deflate.c | 189 int r, proto, off, olen, oavail; in z_compress() local 215 olen = PPP_HDRLEN + DEFLATE_OVHD; in z_compress() 217 state->strm.avail_out = oavail = osize - olen; in z_compress() 234 olen += oavail; in z_compress() 241 olen += oavail - state->strm.avail_out; in z_compress() 246 if (olen < isize && olen <= osize) { in z_compress() 247 state->stats.comp_bytes += olen; in z_compress() 252 olen = 0; in z_compress() 257 return olen; in z_compress() 414 int olen, seq, r; in z_decompress() local [all …]
|
H A D | bsd_comp.c | 581 int olen; in bsd_compress() local 585 ++olen; \ in bsd_compress() 589 if (olen >= osize) \ in bsd_compress() 631 olen = PPP_HDRLEN + BSD_OVHD; in bsd_compress() 741 db->bytes_out += olen - PPP_HDRLEN - BSD_OVHD; in bsd_compress() 786 olen = 0; in bsd_compress() 791 db->comp_bytes += olen; in bsd_compress() 795 return olen; in bsd_compress()
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-diolan-u2c.c | 84 int olen; /* Output buffer length */ member 102 if (!dev->olen || !dev->ocount) in diolan_usb_transfer() 107 dev->obuffer, dev->olen, &actual, in diolan_usb_transfer() 151 dev->olen = 0; in diolan_usb_transfer() 158 if (flush || dev->olen >= DIOLAN_FLUSH_LEN) in diolan_write_cmd() 166 dev->obuffer[dev->olen++] = command; in diolan_usb_cmd() 175 dev->obuffer[dev->olen++] = command; in diolan_usb_cmd_data() 176 dev->obuffer[dev->olen++] = data; in diolan_usb_cmd_data() 185 dev->obuffer[dev->olen++] = command; in diolan_usb_cmd_data2() 186 dev->obuffer[dev->olen++] = d1; in diolan_usb_cmd_data2() [all …]
|
/openbmc/linux/drivers/iio/adc/ |
H A D | dln2-adc.c | 149 int olen = sizeof(count); in dln2_adc_get_chan_count() local 152 &port, sizeof(port), &count, &olen); in dln2_adc_get_chan_count() 157 if (olen < sizeof(count)) in dln2_adc_get_chan_count() 202 int olen = sizeof(conflict); in dln2_adc_set_port_enabled() local 209 &conflict, &olen); in dln2_adc_set_port_enabled() 213 if (conflict_out && enable && olen >= sizeof(conflict)) in dln2_adc_set_port_enabled() 217 if (enable && olen < sizeof(conflict)) in dln2_adc_set_port_enabled() 253 int olen = sizeof(value); in dln2_adc_read() local 281 &value, &olen); in dln2_adc_read() 286 if (olen < sizeof(value)) { in dln2_adc_read() [all …]
|
/openbmc/qemu/hw/misc/macio/ |
H A D | cuda.c | 208 int olen; in cuda_adb_poll() local 210 olen = adb_poll(adb_bus, obuf + 2, adb_bus->autopoll_mask); in cuda_adb_poll() 211 if (olen > 0) { in cuda_adb_poll() 214 cuda_send_packet_to_host(s, obuf, olen + 2); in cuda_adb_poll() 433 int olen; in cuda_receive_packet_from_host() local 434 olen = adb_request(&s->adb_bus, obuf + 2, data + 1, len - 1); in cuda_receive_packet_from_host() 435 if (olen > 0) { in cuda_receive_packet_from_host() 438 cuda_send_packet_to_host(s, obuf, olen + 2); in cuda_receive_packet_from_host() 442 obuf[1] = -olen; in cuda_receive_packet_from_host() 444 olen = 0; in cuda_receive_packet_from_host() [all …]
|
/openbmc/linux/drivers/infiniband/core/ |
H A D | uverbs.h | 58 size_t ilen, size_t olen) in ib_uverbs_init_udata() argument 63 udata->outlen = olen; in ib_uverbs_init_udata() 70 size_t ilen, size_t olen) in ib_uverbs_init_udata_buf_or_null() argument 73 ilen ? ibuf : NULL, olen ? obuf : NULL, in ib_uverbs_init_udata_buf_or_null() 74 ilen, olen); in ib_uverbs_init_udata_buf_or_null()
|
/openbmc/linux/fs/btrfs/ |
H A D | reflink.c | 25 const u64 olen, in clone_finish_inode_update() argument 39 if (endoff > destoff + olen) in clone_finish_inode_update() 40 endoff = destoff + olen; in clone_finish_inode_update() 338 const u64 off, const u64 olen, const u64 olen_aligned, in btrfs_clone() argument 559 destoff, olen, no_time_update); in btrfs_clone() 609 destoff, olen, no_time_update); in btrfs_clone() 683 static int btrfs_extent_same(struct inode *src, u64 loff, u64 olen, in btrfs_extent_same() argument 702 tail_len = olen % BTRFS_MAX_DEDUPE_LEN; in btrfs_extent_same() 703 chunk_count = div_u64(olen, BTRFS_MAX_DEDUPE_LEN); in btrfs_extent_same() 726 u64 off, u64 olen, u64 destoff) in btrfs_clone_files() argument [all …]
|
/openbmc/linux/drivers/media/usb/dvb-usb/ |
H A D | vp702x.c | 98 int vp702x_usb_inout_op(struct dvb_usb_device *d, u8 *o, int olen, u8 *i, int ilen, int msec) in vp702x_usb_inout_op() argument 105 ret = vp702x_usb_out_op_unlocked(d, REQUEST_OUT, 0, 0, o, olen); in vp702x_usb_inout_op() 114 int olen, u8 *i, int ilen, int msec) in vp702x_usb_inout_cmd() argument 119 int buflen = max(olen + 2, ilen + 1); in vp702x_usb_inout_cmd() 141 memcpy(&buf[2], o, olen); in vp702x_usb_inout_cmd() 143 ret = vp702x_usb_inout_op(d, buf, olen+2, buf, ilen+1, msec); in vp702x_usb_inout_cmd()
|
/openbmc/linux/drivers/net/wireless/ath/ar5523/ |
H A D | ar5523.c | 51 int dlen, olen; in ar5523_read_reply() local 66 olen = be32_to_cpu(rp[0]); in ar5523_read_reply() 68 if (olen == 0) { in ar5523_read_reply() 70 olen = sizeof(u32); in ar5523_read_reply() 73 olen = 0; in ar5523_read_reply() 76 if (cmd->olen < olen) { in ar5523_read_reply() 78 cmd->olen, olen); in ar5523_read_reply() 79 cmd->olen = 0; in ar5523_read_reply() 82 cmd->olen = olen; in ar5523_read_reply() 83 memcpy(cmd->odata, &rp[1], olen); in ar5523_read_reply() [all …]
|
/openbmc/qemu/target/riscv/ |
H A D | translate.c | 935 int olen = get_olen(ctx); in gen_arith_per_ol() local 937 if (olen != TARGET_LONG_BITS) { in gen_arith_per_ol() 938 if (olen == 32) { in gen_arith_per_ol() 940 } else if (olen != 128) { in gen_arith_per_ol() 984 int olen = get_olen(ctx); in gen_shift_imm_fn_per_ol() local 985 if (olen != TARGET_LONG_BITS) { in gen_shift_imm_fn_per_ol() 986 if (olen == 32) { in gen_shift_imm_fn_per_ol() 988 } else if (olen != 128) { in gen_shift_imm_fn_per_ol() 1049 int olen = get_olen(ctx); in gen_shift_per_ol() local 1050 if (olen != TARGET_LONG_BITS) { in gen_shift_per_ol() [all …]
|
/openbmc/qemu/hw/misc/ |
H A D | mac_via.c | 580 int olen; in adb_via_poll() local 596 olen = v1s->adb_data_in_size; in adb_via_poll() 606 olen = adb_poll(adb_bus, obuf, adb_bus->autopoll_mask); in adb_via_poll() 608 if (olen > 0) { in adb_via_poll() 611 olen--; in adb_via_poll() 612 memcpy(v1s->adb_data_in, &obuf[1], olen); in adb_via_poll() 613 v1s->adb_data_in_size = olen; in adb_via_poll() 621 olen = 2; in adb_via_poll() 623 memcpy(v1s->adb_data_in, obuf, olen); in adb_via_poll() 624 v1s->adb_data_in_size = olen; in adb_via_poll() [all …]
|
/openbmc/linux/fs/crypto/ |
H A D | fname.c | 93 u8 *out, unsigned int olen) in fscrypt_fname_encrypt() argument 107 if (WARN_ON_ONCE(olen < iname->len)) in fscrypt_fname_encrypt() 110 memset(out + iname->len, 0, olen - iname->len); in fscrypt_fname_encrypt() 122 sg_init_one(&sg, out, olen); in fscrypt_fname_encrypt() 123 skcipher_request_set_crypt(req, &sg, &sg, olen, &iv); in fscrypt_fname_encrypt()
|
/openbmc/linux/net/ipv6/ |
H A D | ip6_flowlabel.c | 380 int olen; in fl_create() local 384 olen = optlen - CMSG_ALIGN(sizeof(*freq)); in fl_create() 386 if (olen > 64 * 1024) in fl_create() 394 if (olen > 0) { in fl_create() 400 fl->opt = kmalloc(sizeof(*fl->opt) + olen, GFP_KERNEL); in fl_create() 405 fl->opt->tot_len = sizeof(*fl->opt) + olen; in fl_create() 408 CMSG_ALIGN(sizeof(*freq)), olen)) in fl_create() 411 msg.msg_controllen = olen; in fl_create()
|