• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/net/irda/

Lines Matching refs:pi

5  * Description:   A more general way to handle (pi,pl,pv) parameters
40 static int irda_extract_integer(void *self, __u8 *buf, int len, __u8 pi,
42 static int irda_extract_string(void *self, __u8 *buf, int len, __u8 pi,
44 static int irda_extract_octseq(void *self, __u8 *buf, int len, __u8 pi,
46 static int irda_extract_no_value(void *self, __u8 *buf, int len, __u8 pi,
49 static int irda_insert_integer(void *self, __u8 *buf, int len, __u8 pi,
51 static int irda_insert_no_value(void *self, __u8 *buf, int len, __u8 pi,
78 * Function irda_insert_no_value (self, buf, len, pi, type, func)
80 static int irda_insert_no_value(void *self, __u8 *buf, int len, __u8 pi,
86 p.pi = pi;
93 irda_param_pack(buf, "bb", p.pi, p.pl);
107 static int irda_extract_no_value(void *self, __u8 *buf, int len, __u8 pi,
114 irda_param_unpack(buf, "bb", &p.pi, &p.pl);
126 * Function irda_insert_integer (self, buf, len, pi, type, func)
128 static int irda_insert_integer(void *self, __u8 *buf, int len, __u8 pi,
135 p.pi = pi; /* In case handler needs to know */
167 IRDA_DEBUG(2, "%s(), pi=%#x, pl=%d, pi=%d\n", __func__,
168 p.pi, p.pl, p.pv.i);
171 n += irda_param_pack(buf, "bbb", p.pi, p.pl, (__u8) p.pv.i);
178 n += irda_param_pack(buf, "bbs", p.pi, p.pl, (__u16) p.pv.i);
185 n += irda_param_pack(buf, "bbi", p.pi, p.pl, p.pv.i);
199 * Function irda_extract integer (self, buf, len, pi, type, func)
204 static int irda_extract_integer(void *self, __u8 *buf, int len, __u8 pi,
212 p.pi = pi; /* In case handler needs to know */
277 IRDA_DEBUG(2, "%s(), pi=%#x, pl=%d, pi=%d\n", __func__,
278 p.pi, p.pl, p.pv.i);
290 static int irda_extract_string(void *self, __u8 *buf, int len, __u8 pi,
299 p.pi = pi; /* In case handler needs to know */
304 IRDA_DEBUG(2, "%s(), pi=%#x, pl=%d\n", __func__,
305 p.pi, p.pl);
338 static int irda_extract_octseq(void *self, __u8 *buf, int len, __u8 pi,
343 p.pi = pi; /* In case handler needs to know */
438 * Function irda_param_insert (self, pi, buf, len, info)
440 * Insert the specified parameter (pi) into buffer. Returns number of
443 int irda_param_insert(void *self, __u8 pi, __u8 *buf, int len,
456 pi_minor = pi & info->pi_mask;
457 pi_major = pi >> info->pi_major_offset;
459 /* Check if the identifier value (pi) is valid */
464 __func__, pi);
473 /* Find expected data type for this parameter identifier (pi)*/
478 IRDA_MESSAGE("%s: no handler for pi=%#x\n", __func__, pi);
484 ret = (*pv_insert_table[type & PV_MASK])(self, buf+n, len, pi, type,
513 /* Check if the identifier value (pi) is valid */
527 /* Find expected data type for this parameter identifier (pi)*/
530 IRDA_DEBUG(3, "%s(), pi=[%d,%d], type=%d\n", __func__,
535 IRDA_MESSAGE("%s: no handler for pi=%#x\n",