Home
last modified time | relevance | path

Searched refs:olen (Results 1 – 25 of 48) sorted by relevance

12

/linux/tools/testing/selftests/net/mptcp/
H A Dmptcp_sockopt.c288 socklen_t olen, _olen; in do_getsockopt_bogus_sf_data() local
294 olen = sizeof(good_data); in do_getsockopt_bogus_sf_data()
295 good_data.size_subflow_data = olen; in do_getsockopt_bogus_sf_data()
297 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data()
299 assert(olen == sizeof(good_data)); in do_getsockopt_bogus_sf_data()
303 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data()
305 assert(olen == sizeof(good_data)); in do_getsockopt_bogus_sf_data()
311 _olen = rand() % olen; in do_getsockopt_bogus_sf_data()
312 olen = _olen; in do_getsockopt_bogus_sf_data()
313 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tc_tunnel.c90 int olen, l2_len; in set_ipv4_csum()
143 olen = sizeof(h_outer.ip); in __encap_ipv4()
167 olen += sizeof(h_outer.l4hdr.gre); in __encap_ipv4()
173 olen += sizeof(h_outer.l4hdr.udp); in __encap_ipv4()
189 l2_hdr = (__u8 *)&h_outer + olen; in __encap_ipv4()
211 olen += l2_len; in __encap_ipv4()
214 if (bpf_skb_adjust_room(skb, olen, BPF_ADJ_ROOM_MAC, flags)) in __encap_ipv4()
219 h_outer.ip.tot_len = bpf_htons(olen + in __encap_ipv4()
226 if (bpf_skb_store_bytes(skb, ETH_HLEN, &h_outer, olen, in __encap_ipv4()
257 int olen, l2_le in encap_ipv4()
101 int olen, l2_len; __encap_ipv4() local
269 int olen, l2_len; __encap_ipv6() local
380 int olen; encap_ipv6_ipip6() local
606 int olen = len; decap_internal() local
[all...]
/linux/net/ceph/
H A Darmor.c39 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 Dmkpiggy.c21 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 D842_decompress.c56 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 D842_compress.c93 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()
471 * @out, using no more than @olen bytes, using the 842 compression format.
473 * Returns: 0 on success, error on failure. The @olen parameter
478 u8 *out, unsigned int *olen, void *wmem) in sw842_compress() argument
496 p->olen = *olen; in sw842_compress()
[all...]
/linux/drivers/net/ppp/
H A Dppp_deflate.c189 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 …]
/linux/arch/powerpc/boot/
H A Dopal.c45 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 Di2c-diolan-u2c.c84 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/iomap/
H A Diter.c65 u64 olen; in iomap_iter() local
78 olen = iter->len + advanced; in iomap_iter()
83 olen), in iomap_iter()
/linux/arch/riscv/kernel/pi/
H A Dfdt_early.c59 int olen; in fdt_node_name_eq() local
61 const char *p = fdt_get_name(fdt, offset, &olen); in fdt_node_name_eq()
63 if (!p || olen < len) in fdt_node_name_eq()
/linux/drivers/net/wireless/ath/ar5523/
H A Dar5523.c51 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 Dar5523.h65 int olen; member
/linux/fs/crypto/
H A Dfname.c95 u8 *out, unsigned int olen) in fscrypt_fname_encrypt() argument
108 if (WARN_ON_ONCE(olen < iname->len)) in fscrypt_fname_encrypt()
111 memset(out + iname->len, 0, olen - iname->len); in fscrypt_fname_encrypt()
118 sg_init_one(&sg, out, olen); in fscrypt_fname_encrypt()
119 skcipher_request_set_crypt(req, &sg, &sg, olen, &iv); in fscrypt_fname_encrypt()
/linux/drivers/misc/mei/
H A Dvsc-tp.c278 int vsc_tp_xfer(struct vsc_tp *tp, u8 cmd, const void *obuf, size_t olen, in vsc_tp_xfer() argument
285 if (!obuf || !ibuf || olen > VSC_TP_MAX_MSG_SIZE) in vsc_tp_xfer()
292 pkt->hdr.len = cpu_to_le16(olen); in vsc_tp_xfer()
294 memcpy(pkt->buf, obuf, olen); in vsc_tp_xfer()
296 crc = ~crc32(~0, (u8 *)pkt, sizeof(pkt) + olen); in vsc_tp_xfer()
297 memcpy(pkt->buf + olen, &crc, sizeof(crc)); in vsc_tp_xfer()
H A Dvsc-tp.h34 int vsc_tp_xfer(struct vsc_tp *tp, u8 cmd, const void *obuf, size_t olen,
/linux/net/ipv6/
H A Dip6_flowlabel.c379 int olen; in fl_create()
383 olen = optlen - CMSG_ALIGN(sizeof(*freq)); in fl_create()
385 if (olen > 64 * 1024) in fl_create()
393 if (olen > 0) { in fl_create()
399 fl->opt = kmalloc(sizeof(*fl->opt) + olen, GFP_KERNEL); in fl_create()
404 fl->opt->tot_len = sizeof(*fl->opt) + olen; in fl_create()
407 CMSG_ALIGN(sizeof(*freq)), olen)) in fl_create()
410 msg.msg_controllen = olen; in fl_create()
380 int olen; fl_create() local
/linux/arch/powerpc/platforms/powernv/
H A Dopal.c446 __be64 olen; in __opal_put_chars() local
454 rc = opal_console_write_buffer_space(vtermno, &olen); in __opal_put_chars()
455 if (rc || be64_to_cpu(olen) < total_len) { in __opal_put_chars()
465 olen = cpu_to_be64(total_len); in __opal_put_chars()
466 rc = opal_console_write(vtermno, &olen, data); in __opal_put_chars()
480 written = be64_to_cpu(olen); in __opal_put_chars()
/linux/drivers/media/tuners/
H A Dtuner-i2c.h45 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 Dioctl.c231 u64 off, u64 olen, u64 destoff) in ioctl_file_clone() argument
240 olen, 0); in ioctl_file_clone()
243 else if (olen && cloned != olen) in ioctl_file_clone()
/linux/drivers/media/usb/dvb-usb/
H A Dvp702x.h111 extern int vp702x_usb_inout_op(struct dvb_usb_device *d, u8 *o, int olen, u8 *i, int ilen, int msec…
/linux/tools/testing/selftests/net/ovpn/
H A Dovpn-cli.c342 size_t olen = 0; in ovpn_parse_key() local
373 olen = 0; in ovpn_parse_key()
374 ret = mbedtls_base64_decode(NULL, 0, &olen, ckey, ckey_len); in ovpn_parse_key()
385 bkey = malloc(olen); in ovpn_parse_key()
391 ret = mbedtls_base64_decode(bkey, olen, &olen, ckey, ckey_len); in ovpn_parse_key()
402 if (olen < 2 * KEY_LEN + NONCE_LEN) { in ovpn_parse_key()
405 olen, 2 * KEY_LEN + NONCE_LEN); in ovpn_parse_key()
/linux/net/bluetooth/
H A Dl2cap_core.c3039 static inline int l2cap_get_conf_opt(void **ptr, int *type, int *olen, in l2cap_get_conf_opt() argument
3049 *olen = opt->len; in l2cap_get_conf_opt()
3414 int type, hint, olen; in l2cap_parse_conf_req() local
3426 len -= l2cap_get_conf_opt(&req, &type, &olen, &val); in l2cap_parse_conf_req()
3435 if (olen != 2) in l2cap_parse_conf_req()
3441 if (olen != 2) in l2cap_parse_conf_req()
3450 if (olen != sizeof(rfc)) in l2cap_parse_conf_req()
3452 memcpy(&rfc, (void *) val, olen); in l2cap_parse_conf_req()
3456 if (olen != 1) in l2cap_parse_conf_req()
3463 if (olen != sizeof(efs)) in l2cap_parse_conf_req()
[all …]
/linux/scripts/dtc/libfdt/
H A Dfdt_ro.c16 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/net/xfrm/
H A Dxfrm_input.c133 sp->olen = 0; in secpath_set()
731 sp->olen = 0; in xfrm_input()
750 sp->olen = 0; in xfrm_input()

12