Home
last modified time | relevance | path

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

123

/Linux-v4.19/net/ceph/
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-v4.19/arch/x86/boot/compressed/
Dmkpiggy.c35 uint32_t olen; in main() local
58 if (fread(&olen, sizeof(olen), 1, f) != 1) { in main()
64 olen = get_unaligned_le32(&olen); in main()
70 printf("z_output_len = %lu\n", (unsigned long)olen); in main()
/Linux-v4.19/lib/842/
D842_decompress.c65 u64 olen; member
145 if (n > p->olen) in do_data()
167 p->olen -= n; in do_data()
216 p->olen -= size; in __do_index()
287 u8 *out, unsigned int *olen) in sw842_decompress() argument
299 p.olen = *olen; in sw842_decompress()
301 total = p.olen; in sw842_decompress()
303 *olen = 0; in sw842_decompress()
324 if (rep * 8 > p.olen) in sw842_decompress()
330 p.olen -= 8; in sw842_decompress()
[all …]
D842_compress.c102 u64 olen; member
192 else if (p->olen < 8 && bits > 32 && bits <= 56) in add_bits()
194 else if (p->olen < 4 && bits > 16 && bits <= 24) in add_bits()
197 if (DIV_ROUND_UP(bits, 8) > p->olen) in add_bits()
224 p->olen -= p->bit / 8; in add_bits()
487 u8 *out, unsigned int *olen, void *wmem) in sw842_compress() argument
505 p->olen = *olen; in sw842_compress()
508 total = p->olen; in sw842_compress()
510 *olen = 0; in sw842_compress()
598 p->olen--; in sw842_compress()
[all …]
/Linux-v4.19/drivers/net/ppp/
Dppp_deflate.c192 int r, proto, off, olen, oavail; in z_compress() local
218 olen = PPP_HDRLEN + DEFLATE_OVHD; in z_compress()
220 state->strm.avail_out = oavail = osize - olen; in z_compress()
237 olen += oavail; in z_compress()
244 olen += oavail - state->strm.avail_out; in z_compress()
249 if (olen < isize && olen <= osize) { in z_compress()
250 state->stats.comp_bytes += olen; in z_compress()
255 olen = 0; in z_compress()
260 return olen; in z_compress()
418 int olen, seq, r; in z_decompress() local
[all …]
Dbsd_comp.c581 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-v4.19/arch/powerpc/boot/
Dopal.c51 uint64_t olen, len; in opal_con_putc() local
54 rc = opal_console_write_buffer_space(opal_con_id, &olen); in opal_con_putc()
55 len = be64_to_cpu(olen); in opal_con_putc()
62 olen = cpu_to_be64(1); in opal_con_putc()
63 opal_console_write(opal_con_id, &olen, &c); in opal_con_putc()
/Linux-v4.19/drivers/i2c/busses/
Di2c-diolan-u2c.c89 int olen; /* Output buffer length */ member
107 if (!dev->olen || !dev->ocount) in diolan_usb_transfer()
112 dev->obuffer, dev->olen, &actual, in diolan_usb_transfer()
156 dev->olen = 0; in diolan_usb_transfer()
163 if (flush || dev->olen >= DIOLAN_FLUSH_LEN) in diolan_write_cmd()
171 dev->obuffer[dev->olen++] = command; in diolan_usb_cmd()
180 dev->obuffer[dev->olen++] = command; in diolan_usb_cmd_data()
181 dev->obuffer[dev->olen++] = data; in diolan_usb_cmd_data()
190 dev->obuffer[dev->olen++] = command; in diolan_usb_cmd_data2()
191 dev->obuffer[dev->olen++] = d1; in diolan_usb_cmd_data2()
[all …]
/Linux-v4.19/drivers/iio/adc/
Ddln2-adc.c152 int olen = sizeof(count); in dln2_adc_get_chan_count() local
155 &port, sizeof(port), &count, &olen); in dln2_adc_get_chan_count()
160 if (olen < sizeof(count)) in dln2_adc_get_chan_count()
205 int olen = sizeof(conflict); in dln2_adc_set_port_enabled() local
212 &conflict, &olen); in dln2_adc_set_port_enabled()
216 if (conflict_out && enable && olen >= sizeof(conflict)) in dln2_adc_set_port_enabled()
220 if (enable && olen < sizeof(conflict)) in dln2_adc_set_port_enabled()
257 int olen = sizeof(value); in dln2_adc_read() local
289 &value, &olen); in dln2_adc_read()
294 if (olen < sizeof(value)) { in dln2_adc_read()
[all …]
/Linux-v4.19/drivers/infiniband/core/
Duverbs.h58 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()
/Linux-v4.19/drivers/media/usb/dvb-usb/
Dvp702x.c101 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
108 ret = vp702x_usb_out_op_unlocked(d, REQUEST_OUT, 0, 0, o, olen); in vp702x_usb_inout_op()
117 int olen, u8 *i, int ilen, int msec) in vp702x_usb_inout_cmd() argument
122 int buflen = max(olen + 2, ilen + 1); in vp702x_usb_inout_cmd()
144 memcpy(&buf[2], o, olen); in vp702x_usb_inout_cmd()
146 ret = vp702x_usb_inout_op(d, buf, olen+2, buf, ilen+1, msec); in vp702x_usb_inout_cmd()
Dvp702x.h111 extern int vp702x_usb_inout_op(struct dvb_usb_device *d, u8 *o, int olen, u8 *i, int ilen, int msec…
/Linux-v4.19/fs/crypto/
Dfname.c39 u8 *out, unsigned int olen) in fname_encrypt() argument
52 if (WARN_ON(olen < iname->len)) in fname_encrypt()
55 memset(out + iname->len, 0, olen - iname->len); in fname_encrypt()
67 sg_init_one(&sg, out, olen); in fname_encrypt()
68 skcipher_request_set_crypt(req, &sg, &sg, olen, iv); in fname_encrypt()
Dfscrypt_private.h116 u8 *out, unsigned int olen);
/Linux-v4.19/drivers/net/wireless/ath/ar5523/
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 …]
Dar5523.h65 int olen; member
/Linux-v4.19/drivers/isdn/i4l/
Disdn_audio.c367 int olen = 0; in isdn_audio_adpcm2xlaw() local
385 olen++; in isdn_audio_adpcm2xlaw()
392 return olen; in isdn_audio_adpcm2xlaw()
402 int olen = 0; in isdn_audio_xlaw2adpcm() local
424 isdn_audio_put_bits(e, nbits, s, &out, &olen); in isdn_audio_xlaw2adpcm()
437 return olen; in isdn_audio_xlaw2adpcm()
Disdn_v110.c465 int olen; in isdn_v110_encode() local
505 olen = 0; in isdn_v110_encode()
517 olen++; in isdn_v110_encode()
521 skb_trim(nskb, olen); in isdn_v110_encode()
/Linux-v4.19/net/ipv6/
Dip6_flowlabel.c359 int olen; in fl_create() local
363 olen = optlen - CMSG_ALIGN(sizeof(*freq)); in fl_create()
365 if (olen > 64 * 1024) in fl_create()
373 if (olen > 0) { in fl_create()
379 fl->opt = kmalloc(sizeof(*fl->opt) + olen, GFP_KERNEL); in fl_create()
384 fl->opt->tot_len = sizeof(*fl->opt) + olen; in fl_create()
386 if (copy_from_user(fl->opt+1, optval+CMSG_ALIGN(sizeof(*freq)), olen)) in fl_create()
389 msg.msg_controllen = olen; in fl_create()
/Linux-v4.19/arch/powerpc/platforms/powernv/
Dopal.c351 __be64 olen; in __opal_put_chars() local
359 rc = opal_console_write_buffer_space(vtermno, &olen); in __opal_put_chars()
360 if (rc || be64_to_cpu(olen) < total_len) { in __opal_put_chars()
370 olen = cpu_to_be64(total_len); in __opal_put_chars()
371 rc = opal_console_write(vtermno, &olen, data); in __opal_put_chars()
385 written = be64_to_cpu(olen); in __opal_put_chars()
/Linux-v4.19/drivers/media/tuners/
Dtuner-i2c.h57 unsigned char *obuf, int olen, in tuner_i2c_xfer_send_recv() argument
61 .buf = obuf, .len = olen }, in tuner_i2c_xfer_send_recv()
/Linux-v4.19/drivers/media/dvb-frontends/
Dbcm3510.c205 static int bcm3510_do_hab_cmd(struct bcm3510_state *st, u8 cmd, u8 msgid, u8 *obuf, u8 olen, u8 *ib… in bcm3510_do_hab_cmd() argument
215 if (olen + 2 > sizeof(ob)) { in bcm3510_do_hab_cmd()
216 deb_hab("do_hab_cmd: olen=%d is too big!\n", olen); in bcm3510_do_hab_cmd()
222 memcpy(&ob[2],obuf,olen); in bcm3510_do_hab_cmd()
225 dbufout(ob,olen+2,deb_hab); in bcm3510_do_hab_cmd()
231 if ((ret = bcm3510_hab_send_request(st, ob, olen+2)) < 0 || in bcm3510_do_hab_cmd()
/Linux-v4.19/fs/btrfs/
Dioctl.c87 u64 off, u64 olen, u64 olen_aligned, u64 destoff,
3411 u64 olen) in extent_same_check_offsets() argument
3416 if (off + olen > inode->i_size || off + olen < off) in extent_same_check_offsets()
3430 static int btrfs_extent_same_range(struct inode *src, u64 loff, u64 olen, in btrfs_extent_same_range() argument
3435 u64 len = olen; in btrfs_extent_same_range()
3440 ret = extent_same_check_offsets(src, loff, &len, olen); in btrfs_extent_same_range()
3444 ret = extent_same_check_offsets(dst, dst_loff, &len, olen); in btrfs_extent_same_range()
3463 if (len != olen) in btrfs_extent_same_range()
3484 if (loff + olen == i_size_read(src) && in btrfs_extent_same_range()
3489 olen = len; in btrfs_extent_same_range()
[all …]
/Linux-v4.19/scripts/dtc/libfdt/
Dfdt_ro.c61 int olen; in fdt_nodename_eq_() local
62 const char *p = fdt_get_name(fdt, offset, &olen); in fdt_nodename_eq_()
64 if (!p || olen < len) in fdt_nodename_eq_()
/Linux-v4.19/net/xfrm/
Dxfrm_input.c132 sp->olen = 0; in secpath_dup()
472 skb->sp->olen = 0; in xfrm_input()
484 skb->sp->olen = 0; in xfrm_input()

123