• Home
  • Raw
  • Download

Lines Matching refs:param

42 static int ircomm_param_service_type(void *instance, irda_param_t *param,
44 static int ircomm_param_port_type(void *instance, irda_param_t *param,
46 static int ircomm_param_port_name(void *instance, irda_param_t *param,
48 static int ircomm_param_service_type(void *instance, irda_param_t *param,
50 static int ircomm_param_data_rate(void *instance, irda_param_t *param,
52 static int ircomm_param_data_format(void *instance, irda_param_t *param,
54 static int ircomm_param_flow_control(void *instance, irda_param_t *param,
56 static int ircomm_param_xon_xoff(void *instance, irda_param_t *param, int get);
57 static int ircomm_param_enq_ack(void *instance, irda_param_t *param, int get);
58 static int ircomm_param_line_status(void *instance, irda_param_t *param,
60 static int ircomm_param_dte(void *instance, irda_param_t *param, int get);
61 static int ircomm_param_dce(void *instance, irda_param_t *param, int get);
62 static int ircomm_param_poll(void *instance, irda_param_t *param, int get);
156 static int ircomm_param_service_type(void *instance, irda_param_t *param, in ircomm_param_service_type() argument
160 __u8 service_type = (__u8) param->pv.i; in ircomm_param_service_type()
166 param->pv.i = self->settings.service_type; in ircomm_param_service_type()
222 static int ircomm_param_port_type(void *instance, irda_param_t *param, int get) in ircomm_param_port_type() argument
230 param->pv.i = IRCOMM_SERIAL; in ircomm_param_port_type()
232 self->settings.port_type = (__u8) param->pv.i; in ircomm_param_port_type()
246 static int ircomm_param_port_name(void *instance, irda_param_t *param, int get) in ircomm_param_port_name() argument
256 pr_debug("%s(), port-name=%s\n", __func__ , param->pv.c); in ircomm_param_port_name()
257 strncpy(self->settings.port_name, param->pv.c, 32); in ircomm_param_port_name()
269 static int ircomm_param_data_rate(void *instance, irda_param_t *param, int get) in ircomm_param_data_rate() argument
277 param->pv.i = self->settings.data_rate; in ircomm_param_data_rate()
279 self->settings.data_rate = param->pv.i; in ircomm_param_data_rate()
281 pr_debug("%s(), data rate = %d\n", __func__ , param->pv.i); in ircomm_param_data_rate()
292 static int ircomm_param_data_format(void *instance, irda_param_t *param, in ircomm_param_data_format() argument
301 param->pv.i = self->settings.data_format; in ircomm_param_data_format()
303 self->settings.data_format = (__u8) param->pv.i; in ircomm_param_data_format()
314 static int ircomm_param_flow_control(void *instance, irda_param_t *param, in ircomm_param_flow_control() argument
323 param->pv.i = self->settings.flow_control; in ircomm_param_flow_control()
325 self->settings.flow_control = (__u8) param->pv.i; in ircomm_param_flow_control()
327 pr_debug("%s(), flow control = 0x%02x\n", __func__ , (__u8)param->pv.i); in ircomm_param_flow_control()
338 static int ircomm_param_xon_xoff(void *instance, irda_param_t *param, int get) in ircomm_param_xon_xoff() argument
346 param->pv.i = self->settings.xonxoff[0]; in ircomm_param_xon_xoff()
347 param->pv.i |= self->settings.xonxoff[1] << 8; in ircomm_param_xon_xoff()
349 self->settings.xonxoff[0] = (__u16) param->pv.i & 0xff; in ircomm_param_xon_xoff()
350 self->settings.xonxoff[1] = (__u16) param->pv.i >> 8; in ircomm_param_xon_xoff()
354 param->pv.i & 0xff, param->pv.i >> 8); in ircomm_param_xon_xoff()
365 static int ircomm_param_enq_ack(void *instance, irda_param_t *param, int get) in ircomm_param_enq_ack() argument
373 param->pv.i = self->settings.enqack[0]; in ircomm_param_enq_ack()
374 param->pv.i |= self->settings.enqack[1] << 8; in ircomm_param_enq_ack()
376 self->settings.enqack[0] = (__u16) param->pv.i & 0xff; in ircomm_param_enq_ack()
377 self->settings.enqack[1] = (__u16) param->pv.i >> 8; in ircomm_param_enq_ack()
381 param->pv.i & 0xff, param->pv.i >> 8); in ircomm_param_enq_ack()
392 static int ircomm_param_line_status(void *instance, irda_param_t *param, in ircomm_param_line_status() argument
406 static int ircomm_param_dte(void *instance, irda_param_t *param, int get) in ircomm_param_dte() argument
415 param->pv.i = self->settings.dte; in ircomm_param_dte()
417 dte = (__u8) param->pv.i; in ircomm_param_dte()
451 static int ircomm_param_dce(void *instance, irda_param_t *param, int get) in ircomm_param_dce() argument
456 pr_debug("%s(), dce = 0x%02x\n", __func__ , (__u8)param->pv.i); in ircomm_param_dce()
458 dce = (__u8) param->pv.i; in ircomm_param_dce()
483 static int ircomm_param_poll(void *instance, irda_param_t *param, int get) in ircomm_param_poll() argument