/kernel/linux/linux-6.6/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() 352 socklen_t olen; do_getsockopt_mptcp_info() local 379 socklen_t olen; do_getsockopt_tcp_info() local 428 socklen_t olen, rlen, llen; do_getsockopt_subflow_addrs() local 500 socklen_t olen; do_getsockopt_mptcp_full_info() local [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_tunnel.c | 79 int olen, l2_len; in encap_ipv4() local 132 olen = sizeof(h_outer.ip); in encap_ipv4() 152 olen += sizeof(h_outer.l4hdr.gre); in encap_ipv4() 158 olen += sizeof(h_outer.l4hdr.udp); in encap_ipv4() 176 *((__u32 *)((__u8 *)&h_outer + olen)) = mpls_label; in encap_ipv4() 179 if (bpf_skb_load_bytes(skb, 0, (__u8 *)&h_outer + olen, in encap_ipv4() 184 olen += l2_len; in encap_ipv4() 187 if (bpf_skb_adjust_room(skb, olen, BPF_ADJ_ROOM_MAC, flags)) in encap_ipv4() 192 h_outer.ip.tot_len = bpf_htons(olen + in encap_ipv4() 199 if (bpf_skb_store_bytes(skb, ETH_HLEN, &h_outer, olen, in encap_ipv4() 224 int olen, l2_len; encap_ipv6() local 452 int olen = len; decap_internal() local [all...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/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() 266 * to the output buffer @out, using no more than @olen bytes. 273 * Returns: 0 on success, error on failure. The @olen parameter 278 u8 *out, unsigned int *olen) in sw842_decompress() 290 p.olen = *olen; in sw842_decompress() 292 total = p.olen; in sw842_decompress() 277 sw842_decompress(const u8 *in, unsigned int ilen, u8 *out, unsigned int *olen) sw842_decompress() argument [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() 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() 496 p->olen = *olen; in sw842_compress() 477 sw842_compress(const u8 *in, unsigned int ilen, u8 *out, unsigned int *olen, void *wmem) sw842_compress() argument [all...] |
/kernel/linux/linux-6.6/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() 266 * to the output buffer @out, using no more than @olen bytes. 273 * Returns: 0 on success, error on failure. The @olen parameter 278 u8 *out, unsigned int *olen) in sw842_decompress() 290 p.olen = *olen; in sw842_decompress() 292 total = p.olen; in sw842_decompress() 277 sw842_decompress(const u8 *in, unsigned int ilen, u8 *out, unsigned int *olen) sw842_decompress() argument [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() 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() 496 p->olen = *olen; in sw842_compress() 477 sw842_compress(const u8 *in, unsigned int ilen, u8 *out, unsigned int *olen, void *wmem) sw842_compress() argument [all...] |
/kernel/linux/linux-6.6/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_le in __encap_ipv6() local 377 int olen; encap_ipv6_ipip6() local 603 int olen = len; decap_internal() local [all...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/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() 415 int olen, seq, r; z_decompress() local [all...] |
/kernel/linux/linux-6.6/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; z_decompress() local [all...] |
/kernel/linux/linux-5.10/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 in diolan_usb_cmd_data2() [all...] |
/kernel/linux/linux-6.6/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 in diolan_usb_cmd_data2() [all...] |
/kernel/linux/linux-5.10/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 < sizeo in dln2_adc_read() 307 int olen = sizeof(*get_all_vals); dln2_adc_read_all() local [all...] |
/kernel/linux/linux-6.6/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 < sizeo in dln2_adc_read() 307 int olen = sizeof(*get_all_vals); dln2_adc_read_all() local [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
H A D | uverbs.h | 58 size_t ilen, size_t olen) in ib_uverbs_init_udata() 63 udata->outlen = olen; in ib_uverbs_init_udata() 70 size_t ilen, size_t olen) in ib_uverbs_init_udata_buf_or_null() 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() 55 ib_uverbs_init_udata(struct ib_udata *udata, const void __user *ibuf, void __user *obuf, size_t ilen, size_t olen) ib_uverbs_init_udata() argument 67 ib_uverbs_init_udata_buf_or_null(struct ib_udata *udata, const void __user *ibuf, void __user *obuf, size_t ilen, size_t olen) ib_uverbs_init_udata_buf_or_null() argument
|
/kernel/linux/linux-6.6/drivers/infiniband/core/ |
H A D | uverbs.h | 58 size_t ilen, size_t olen) in ib_uverbs_init_udata() 63 udata->outlen = olen; in ib_uverbs_init_udata() 70 size_t ilen, size_t olen) in ib_uverbs_init_udata_buf_or_null() 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() 55 ib_uverbs_init_udata(struct ib_udata *udata, const void __user *ibuf, void __user *obuf, size_t ilen, size_t olen) ib_uverbs_init_udata() argument 67 ib_uverbs_init_udata_buf_or_null(struct ib_udata *udata, const void __user *ibuf, void __user *obuf, size_t ilen, size_t olen) ib_uverbs_init_udata_buf_or_null() argument
|
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | reflink.c | 17 const u64 olen, in clone_finish_inode_update() 30 if (endoff > destoff + olen) in clone_finish_inode_update() 31 endoff = destoff + olen; in clone_finish_inode_update() 323 * @olen: Original length, passed by user, of range to clone 324 * @olen_aligned: Block-aligned value of olen 329 const u64 off, const u64 olen, const u64 olen_aligned, in btrfs_clone() 537 destoff, olen, no_time_update); in btrfs_clone() 589 destoff, olen, no_time_update); in btrfs_clone() 637 static int btrfs_extent_same(struct inode *src, u64 loff, u64 olen, in btrfs_extent_same() argument 656 tail_len = olen in btrfs_extent_same() 13 clone_finish_inode_update(struct btrfs_trans_handle *trans, struct inode *inode, u64 endoff, const u64 destoff, const u64 olen, int no_time_update) clone_finish_inode_update() argument 328 btrfs_clone(struct inode *src, struct inode *inode, const u64 off, const u64 olen, const u64 olen_aligned, const u64 destoff, int no_time_update) btrfs_clone() argument 679 btrfs_clone_files(struct file *file, struct file *file_src, u64 off, u64 olen, u64 destoff) btrfs_clone_files() argument [all...] |
/kernel/linux/linux-6.6/fs/btrfs/ |
H A D | reflink.c | 25 const u64 olen, in clone_finish_inode_update() 39 if (endoff > destoff + olen) in clone_finish_inode_update() 40 endoff = destoff + olen; in clone_finish_inode_update() 332 * @olen: Original length, passed by user, of range to clone 333 * @olen_aligned: Block-aligned value of olen 338 const u64 off, const u64 olen, const u64 olen_aligned, in btrfs_clone() 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 in btrfs_extent_same() 21 clone_finish_inode_update(struct btrfs_trans_handle *trans, struct inode *inode, u64 endoff, const u64 destoff, const u64 olen, int no_time_update) clone_finish_inode_update() argument 337 btrfs_clone(struct inode *src, struct inode *inode, const u64 off, const u64 olen, const u64 olen_aligned, const u64 destoff, int no_time_update) btrfs_clone() argument 725 btrfs_clone_files(struct file *file, struct file *file_src, u64 off, u64 olen, u64 destoff) btrfs_clone_files() argument [all...] |
/kernel/linux/linux-5.10/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() 77 ar5523_err(ar, "olen too small %d < %d\n", in ar5523_read_reply() 78 cmd->olen, olen); in ar5523_read_reply() 249 ar5523_cmd(struct ar5523 *ar, u32 code, const void *idata, int ilen, void *odata, int olen, int flags) ar5523_cmd() argument 304 ar5523_cmd_read(struct ar5523 *ar, u32 code, const void *idata, int ilen, void *odata, int olen, int flags) ar5523_cmd_read() argument 346 ar5523_get_status(struct ar5523 *ar, u32 which, void *odata, int olen) ar5523_get_status() argument [all...] |
/kernel/linux/linux-6.6/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() 77 ar5523_err(ar, "olen too small %d < %d\n", in ar5523_read_reply() 78 cmd->olen, olen); in ar5523_read_reply() 249 ar5523_cmd(struct ar5523 *ar, u32 code, const void *idata, int ilen, void *odata, int olen, int flags) ar5523_cmd() argument 304 ar5523_cmd_read(struct ar5523 *ar, u32 code, const void *idata, int ilen, void *odata, int olen, int flags) ar5523_cmd_read() argument 346 ar5523_get_status(struct ar5523 *ar, u32 which, void *odata, int olen) ar5523_get_status() argument [all...] |