Home
last modified time | relevance | path

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

/drivers/net/ppp/
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 …]
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.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 …]
/drivers/iio/adc/
Ddln2-adc.c149 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 < sizeof(value)) { in dln2_adc_read()
[all …]
/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()
/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.c98 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()
Dvp702x.h111 extern int vp702x_usb_inout_op(struct dvb_usb_device *d, u8 *o, int olen, u8 *i, int ilen, int msec…
/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.h45 unsigned char *obuf, int olen, in tuner_i2c_xfer_send_recv() argument
49 .buf = obuf, .len = olen }, in tuner_i2c_xfer_send_recv()
/drivers/scsi/ibmvscsi_tgt/
Dibmvscsi_tgt.c1619 u16 olen, len, status, min_len, cap_len; in ibmvscsis_cap_mad() local
1624 olen = be16_to_cpu(mad->common.length); in ibmvscsis_cap_mad()
1630 if ((olen < min_len) || (olen > PAGE_SIZE)) { in ibmvscsis_cap_mad()
1631 dev_warn(&vscsi->dev, "cap_mad: invalid len %d\n", olen); in ibmvscsis_cap_mad()
1636 cap = dma_alloc_coherent(&vscsi->dma_dev->dev, olen, &token, in ibmvscsis_cap_mad()
1644 rc = h_copy_rdma(olen, vscsi->dds.window[REMOTE].liobn, in ibmvscsis_cap_mad()
1651 len = olen - min_len; in ibmvscsis_cap_mad()
1690 rc = h_copy_rdma(olen, vscsi->dds.window[LOCAL].liobn, token, in ibmvscsis_cap_mad()
1712 dma_free_coherent(&vscsi->dma_dev->dev, olen, cap, token); in ibmvscsis_cap_mad()
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec_rxtx.c444 sp->olen++; in mlx5e_ipsec_build_sp()
525 sp->olen++; in mlx5e_ipsec_offload_handle_rx_skb()
/drivers/tty/
Dn_gsm.c640 int olen = 0; in gsm_stuff_frame() local
647 olen++; in gsm_stuff_frame()
650 olen++; in gsm_stuff_frame()
652 return olen; in gsm_stuff_frame()
/drivers/scsi/sym53c8xx_2/
Dsym_hipd.c2394 u32 oadr, olen; local
2522 olen = scr_to_cpu(tblp[0]);
2526 olen = scr_to_cpu(vdsp[0]) & 0xffffff;
2533 (unsigned) olen,
2556 cmd&7, INB(np, nc_sbcl)&7, (unsigned)olen,
2598 pm->sg.addr = cpu_to_scr(oadr + olen - rest);
2702 if (cp->tag != NO_TAG && olen - rest <= 3) {
/drivers/scsi/
Dscsi_debug.c1335 int plen, olen; in inquiry_vpd_85() local
1340 olen = strlen(na1); in inquiry_vpd_85()
1341 plen = olen + 1; in inquiry_vpd_85()
1345 memcpy(arr + num, na1, olen); in inquiry_vpd_85()
1346 memset(arr + num + olen, 0, plen - olen); in inquiry_vpd_85()
1352 olen = strlen(na2); in inquiry_vpd_85()
1353 plen = olen + 1; in inquiry_vpd_85()
1357 memcpy(arr + num, na2, olen); in inquiry_vpd_85()
1358 memset(arr + num + olen, 0, plen - olen); in inquiry_vpd_85()
Dncr53c8xx.c6078 u32 oadr, olen; in ncr_int_ma() local
6213 olen = scr_to_cpu(tblp[0]); in ncr_int_ma()
6217 olen = scr_to_cpu(vdsp[0]) & 0xffffff; in ncr_int_ma()
6224 (unsigned) olen, in ncr_int_ma()
6257 cmd&7, sbcl&7, (unsigned)olen, in ncr_int_ma()
6279 newcmd[1] = cpu_to_scr(oadr + olen - rest); in ncr_int_ma()
/drivers/net/ethernet/intel/ixgbevf/
Dipsec.c607 sp->olen++; in ixgbevf_ipsec_rx()
/drivers/net/wireless/intersil/hostap/
Dhostap_ap.c1291 int len, olen; in handle_authen() local
1464 olen = 6; in handle_authen()
1474 olen += 2 + WLAN_AUTH_CHALLENGE_LEN; in handle_authen()
1478 body, olen, hdr->addr2, ap->tx_callback_auth); in handle_authen()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ipsec.c1215 sp->olen++; in ixgbe_ipsec_rx()