/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 …]
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_tunnel.c | 101 int olen, l2_len; in __encap_ipv4() local 155 olen = sizeof(h_outer.ip); in __encap_ipv4() 179 olen += sizeof(h_outer.l4hdr.gre); in __encap_ipv4() 185 olen += sizeof(h_outer.l4hdr.udp); in __encap_ipv4() 201 l2_hdr = (__u8 *)&h_outer + olen; in __encap_ipv4() 223 olen += l2_len; in __encap_ipv4() 226 if (bpf_skb_adjust_room(skb, olen, BPF_ADJ_ROOM_MAC, flags)) in __encap_ipv4() 231 h_outer.ip.tot_len = bpf_htons(olen + in __encap_ipv4() 238 if (bpf_skb_store_bytes(skb, ETH_HLEN, &h_outer, olen, in __encap_ipv4() 269 int olen, l2_len; in __encap_ipv6() local [all …]
|
/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()
|
/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()
|
/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 …]
|
/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()
|
/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()
|
/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 …]
|
/linux/fs/btrfs/ |
H A D | reflink.c | 25 const u64 olen, in clone_finish_inode_update() argument 38 if (endoff > destoff + olen) in clone_finish_inode_update() 39 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() 658 static int btrfs_extent_same(struct inode *src, u64 loff, u64 olen, in btrfs_extent_same() argument 677 tail_len = olen % BTRFS_MAX_DEDUPE_LEN; in btrfs_extent_same() 678 chunk_count = div_u64(olen, BTRFS_MAX_DEDUPE_LEN); in btrfs_extent_same() 701 u64 off, u64 olen, u64 destoff) in btrfs_clone_files() argument [all …]
|
/linux/arch/riscv/kernel/pi/ |
H A D | fdt_early.c | 58 int olen; in fdt_node_name_eq() local 60 const char *p = fdt_get_name(fdt, offset, &olen); in fdt_node_name_eq() 62 if (!p || olen < len) in fdt_node_name_eq()
|
/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 …]
|
H A D | ar5523.h | 65 int olen; member
|
/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()
|
H A D | vp702x.h | 111 extern int vp702x_usb_inout_op(struct dvb_usb_device *d, u8 *o, int olen, u8 *i, int ilen, int msec…
|
/linux/drivers/misc/mei/ |
H A D | vsc-tp.c | 271 int vsc_tp_xfer(struct vsc_tp *tp, u8 cmd, const void *obuf, size_t olen, in vsc_tp_xfer() argument 278 if (!obuf || !ibuf || olen > VSC_TP_MAX_MSG_SIZE) in vsc_tp_xfer() 285 pkt->len = cpu_to_le16(olen); in vsc_tp_xfer() 287 memcpy(pkt->buf, obuf, olen); in vsc_tp_xfer() 289 crc = ~crc32(~0, (u8 *)pkt, sizeof(pkt) + olen); in vsc_tp_xfer() 290 memcpy(pkt->buf + olen, &crc, sizeof(crc)); in vsc_tp_xfer()
|
H A D | vsc-tp.h | 34 int vsc_tp_xfer(struct vsc_tp *tp, u8 cmd, const void *obuf, size_t olen,
|
/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()
|
/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()
|
/linux/drivers/media/tuners/ |
H A D | tuner-i2c.h | 45 unsigned char *obuf, int olen, in tuner_i2c_xfer_send_recv() argument 49 .buf = obuf, .len = olen }, in tuner_i2c_xfer_send_recv()
|
/linux/fs/ |
H A D | ioctl.c | 232 u64 off, u64 olen, u64 destoff) in ioctl_file_clone() argument 241 olen, 0); in ioctl_file_clone() 244 else if (olen && cloned != olen) in ioctl_file_clone()
|
/linux/net/bluetooth/ |
H A D | l2cap_core.c | 3006 static inline int l2cap_get_conf_opt(void **ptr, int *type, int *olen, in l2cap_get_conf_opt() argument 3016 *olen = opt->len; in l2cap_get_conf_opt() 3381 int type, hint, olen; in l2cap_parse_conf_req() local 3393 len -= l2cap_get_conf_opt(&req, &type, &olen, &val); in l2cap_parse_conf_req() 3402 if (olen != 2) in l2cap_parse_conf_req() 3408 if (olen != 2) in l2cap_parse_conf_req() 3417 if (olen != sizeof(rfc)) in l2cap_parse_conf_req() 3419 memcpy(&rfc, (void *) val, olen); in l2cap_parse_conf_req() 3423 if (olen != 1) in l2cap_parse_conf_req() 3430 if (olen != sizeof(efs)) in l2cap_parse_conf_req() [all …]
|
/linux/scripts/dtc/libfdt/ |
H A D | fdt_ro.c | 16 int olen; in fdt_nodename_eq_() local 17 const char *p = fdt_get_name(fdt, offset, &olen); in fdt_nodename_eq_() 19 if (!p || olen < len) in fdt_nodename_eq_()
|
/linux/lib/ |
H A D | decompress_unlzo.c | 280 unsigned char *out_buf, long olen, in __decompress() argument
|