Home
last modified time | relevance | path

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

/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()
/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 …]
/drivers/infiniband/core/
Duverbs.h50 #define INIT_UDATA(udata, ibuf, obuf, ilen, olen) \ argument
55 (udata)->outlen = (olen); \
58 #define INIT_UDATA_BUF_OR_NULL(udata, ibuf, obuf, ilen, olen) \ argument
61 (udata)->outbuf = (olen) ? (void __user *) (obuf) : NULL; \
63 (udata)->outlen = (olen); \
/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
/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.h110 extern int vp702x_usb_inout_op(struct dvb_usb_device *d, u8 *o, int olen, u8 *i, int ilen, int msec…
/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.c456 int olen; in isdn_v110_encode() local
496 olen = 0; in isdn_v110_encode()
508 olen++; in isdn_v110_encode()
512 skb_trim(nskb, olen); in isdn_v110_encode()
/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()
/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()
/drivers/scsi/ibmvscsi_tgt/
Dibmvscsi_tgt.c1497 u16 olen, len, status, min_len, cap_len; in ibmvscsis_cap_mad() local
1502 olen = be16_to_cpu(mad->common.length); in ibmvscsis_cap_mad()
1508 if ((olen < min_len) || (olen > PAGE_SIZE)) { in ibmvscsis_cap_mad()
1509 pr_warn("cap_mad: invalid len %d\n", olen); in ibmvscsis_cap_mad()
1514 cap = dma_alloc_coherent(&vscsi->dma_dev->dev, olen, &token, in ibmvscsis_cap_mad()
1522 rc = h_copy_rdma(olen, vscsi->dds.window[REMOTE].liobn, in ibmvscsis_cap_mad()
1529 len = olen - min_len; in ibmvscsis_cap_mad()
1568 rc = h_copy_rdma(olen, vscsi->dds.window[LOCAL].liobn, token, in ibmvscsis_cap_mad()
1590 dma_free_coherent(&vscsi->dma_dev->dev, olen, cap, token); in ibmvscsis_cap_mad()
/drivers/scsi/
Dscsi_debug.c1069 int plen, olen; in inquiry_vpd_85() local
1074 olen = strlen(na1); in inquiry_vpd_85()
1075 plen = olen + 1; in inquiry_vpd_85()
1079 memcpy(arr + num, na1, olen); in inquiry_vpd_85()
1080 memset(arr + num + olen, 0, plen - olen); in inquiry_vpd_85()
1086 olen = strlen(na2); in inquiry_vpd_85()
1087 plen = olen + 1; in inquiry_vpd_85()
1091 memcpy(arr + num, na2, olen); in inquiry_vpd_85()
1092 memset(arr + num + olen, 0, plen - olen); in inquiry_vpd_85()
Dncr53c8xx.c6252 u32 oadr, olen; in ncr_int_ma() local
6387 olen = scr_to_cpu(tblp[0]); in ncr_int_ma()
6391 olen = scr_to_cpu(vdsp[0]) & 0xffffff; in ncr_int_ma()
6398 (unsigned) olen, in ncr_int_ma()
6431 cmd&7, sbcl&7, (unsigned)olen, in ncr_int_ma()
6453 newcmd[1] = cpu_to_scr(oadr + olen - rest); in ncr_int_ma()
/drivers/tty/
Dn_gsm.c544 int olen = 0; in gsm_stuff_frame() local
550 olen++; in gsm_stuff_frame()
553 olen++; in gsm_stuff_frame()
555 return olen; in gsm_stuff_frame()
/drivers/scsi/sym53c8xx_2/
Dsym_hipd.c2407 u32 oadr, olen; local
2535 olen = scr_to_cpu(tblp[0]);
2539 olen = scr_to_cpu(vdsp[0]) & 0xffffff;
2546 (unsigned) olen,
2569 cmd&7, INB(np, nc_sbcl)&7, (unsigned)olen,
2611 pm->sg.addr = cpu_to_scr(oadr + olen - rest);
2715 if (cp->tag != NO_TAG && olen - rest <= 3) {
/drivers/net/wireless/intersil/hostap/
Dhostap_ap.c1353 int len, olen; in handle_authen() local
1526 olen = 6; in handle_authen()
1536 olen += 2 + WLAN_AUTH_CHALLENGE_LEN; in handle_authen()
1540 body, olen, hdr->addr2, ap->tx_callback_auth); in handle_authen()