Lines Matching refs:len

38 static int irda_extract_integer(void *self, __u8 *buf, int len, __u8 pi,
40 static int irda_extract_string(void *self, __u8 *buf, int len, __u8 pi,
42 static int irda_extract_octseq(void *self, __u8 *buf, int len, __u8 pi,
44 static int irda_extract_no_value(void *self, __u8 *buf, int len, __u8 pi,
47 static int irda_insert_integer(void *self, __u8 *buf, int len, __u8 pi,
49 static int irda_insert_no_value(void *self, __u8 *buf, int len, __u8 pi,
76 * Function irda_insert_no_value (self, buf, len, pi, type, func)
78 static int irda_insert_no_value(void *self, __u8 *buf, int len, __u8 pi,
100 * Function irda_extract_no_value (self, buf, len, type, func)
105 static int irda_extract_no_value(void *self, __u8 *buf, int len, __u8 pi,
124 * Function irda_insert_integer (self, buf, len, pi, type, func)
126 static int irda_insert_integer(void *self, __u8 *buf, int len, __u8 pi,
160 if (len < (2+p.pl)) {
197 * Function irda_extract integer (self, buf, len, pi, type, func)
202 static int irda_extract_integer(void *self, __u8 *buf, int len, __u8 pi,
216 if (len < (2+p.pl)) {
218 "Need %d bytes, but len is only %d\n",
219 __func__, p.pl, len);
286 * Function irda_extract_string (self, buf, len, type, func)
288 static int irda_extract_string(void *self, __u8 *buf, int len, __u8 pi,
306 if (len < (2+p.pl)) {
308 "Need %d bytes, but len is only %d\n",
309 __func__, p.pl, len);
334 * Function irda_extract_octseq (self, buf, len, type, func)
336 static int irda_extract_octseq(void *self, __u8 *buf, int len, __u8 pi,
345 if (len < (2+p.pl)) {
347 "Need %d bytes, but len is only %d\n",
348 __func__, p.pl, len);
450 * Function irda_param_insert (self, pi, buf, len, info)
455 int irda_param_insert(void *self, __u8 pi, __u8 *buf, int len,
472 if ((pi_major > info->len-1) ||
473 (pi_minor > info->tables[pi_major].len-1))
496 ret = (*pv_insert_table[type & PV_MASK])(self, buf+n, len, pi, type,
503 * Function irda_param_extract (self, buf, len, info)
505 * Parse all parameters. If len is correct, then everything should be
509 static int irda_param_extract(void *self, __u8 *buf, int len,
526 if ((pi_major > info->len-1) ||
527 (pi_minor > info->tables[pi_major].len-1))
554 ret = (*pv_extract_table[type & PV_MASK])(self, buf+n, len, buf[n],
560 * Function irda_param_extract_all (self, buf, len, info)
562 * Parse all parameters. If len is correct, then everything should be
566 int irda_param_extract_all(void *self, __u8 *buf, int len,
579 while (len > 2) {
580 ret = irda_param_extract(self, buf+n, len, info);
585 len -= ret;