Lines Matching refs:param
43 static int ircomm_param_service_type(void *instance, irda_param_t *param,
45 static int ircomm_param_port_type(void *instance, irda_param_t *param,
47 static int ircomm_param_port_name(void *instance, irda_param_t *param,
49 static int ircomm_param_service_type(void *instance, irda_param_t *param,
51 static int ircomm_param_data_rate(void *instance, irda_param_t *param,
53 static int ircomm_param_data_format(void *instance, irda_param_t *param,
55 static int ircomm_param_flow_control(void *instance, irda_param_t *param,
57 static int ircomm_param_xon_xoff(void *instance, irda_param_t *param, int get);
58 static int ircomm_param_enq_ack(void *instance, irda_param_t *param, int get);
59 static int ircomm_param_line_status(void *instance, irda_param_t *param,
61 static int ircomm_param_dte(void *instance, irda_param_t *param, int get);
62 static int ircomm_param_dce(void *instance, irda_param_t *param, int get);
63 static int ircomm_param_poll(void *instance, irda_param_t *param, int get);
181 static int ircomm_param_service_type(void *instance, irda_param_t *param, in ircomm_param_service_type() argument
185 __u8 service_type = (__u8) param->pv.i; in ircomm_param_service_type()
191 param->pv.i = self->settings.service_type; in ircomm_param_service_type()
247 static int ircomm_param_port_type(void *instance, irda_param_t *param, int get) in ircomm_param_port_type() argument
255 param->pv.i = IRCOMM_SERIAL; in ircomm_param_port_type()
257 self->settings.port_type = (__u8) param->pv.i; in ircomm_param_port_type()
271 static int ircomm_param_port_name(void *instance, irda_param_t *param, int get) in ircomm_param_port_name() argument
281 IRDA_DEBUG(0, "%s(), port-name=%s\n", __FUNCTION__, param->pv.c); in ircomm_param_port_name()
282 strncpy(self->settings.port_name, param->pv.c, 32); in ircomm_param_port_name()
294 static int ircomm_param_data_rate(void *instance, irda_param_t *param, int get) in ircomm_param_data_rate() argument
302 param->pv.i = self->settings.data_rate; in ircomm_param_data_rate()
304 self->settings.data_rate = param->pv.i; in ircomm_param_data_rate()
306 IRDA_DEBUG(2, "%s(), data rate = %d\n", __FUNCTION__, param->pv.i); in ircomm_param_data_rate()
317 static int ircomm_param_data_format(void *instance, irda_param_t *param, in ircomm_param_data_format() argument
326 param->pv.i = self->settings.data_format; in ircomm_param_data_format()
328 self->settings.data_format = (__u8) param->pv.i; in ircomm_param_data_format()
339 static int ircomm_param_flow_control(void *instance, irda_param_t *param, in ircomm_param_flow_control() argument
348 param->pv.i = self->settings.flow_control; in ircomm_param_flow_control()
350 self->settings.flow_control = (__u8) param->pv.i; in ircomm_param_flow_control()
352 IRDA_DEBUG(1, "%s(), flow control = 0x%02x\n", __FUNCTION__, (__u8) param->pv.i); in ircomm_param_flow_control()
363 static int ircomm_param_xon_xoff(void *instance, irda_param_t *param, int get) in ircomm_param_xon_xoff() argument
371 param->pv.i = self->settings.xonxoff[0]; in ircomm_param_xon_xoff()
372 param->pv.i |= self->settings.xonxoff[1] << 8; in ircomm_param_xon_xoff()
374 self->settings.xonxoff[0] = (__u16) param->pv.i & 0xff; in ircomm_param_xon_xoff()
375 self->settings.xonxoff[1] = (__u16) param->pv.i >> 8; in ircomm_param_xon_xoff()
379 param->pv.i & 0xff, param->pv.i >> 8); in ircomm_param_xon_xoff()
390 static int ircomm_param_enq_ack(void *instance, irda_param_t *param, int get) in ircomm_param_enq_ack() argument
398 param->pv.i = self->settings.enqack[0]; in ircomm_param_enq_ack()
399 param->pv.i |= self->settings.enqack[1] << 8; in ircomm_param_enq_ack()
401 self->settings.enqack[0] = (__u16) param->pv.i & 0xff; in ircomm_param_enq_ack()
402 self->settings.enqack[1] = (__u16) param->pv.i >> 8; in ircomm_param_enq_ack()
406 param->pv.i & 0xff, param->pv.i >> 8); in ircomm_param_enq_ack()
417 static int ircomm_param_line_status(void *instance, irda_param_t *param, in ircomm_param_line_status() argument
431 static int ircomm_param_dte(void *instance, irda_param_t *param, int get) in ircomm_param_dte() argument
440 param->pv.i = self->settings.dte; in ircomm_param_dte()
442 dte = (__u8) param->pv.i; in ircomm_param_dte()
474 static int ircomm_param_dce(void *instance, irda_param_t *param, int get) in ircomm_param_dce() argument
479 IRDA_DEBUG(1, "%s(), dce = 0x%02x\n", __FUNCTION__, (__u8) param->pv.i); in ircomm_param_dce()
481 dce = (__u8) param->pv.i; in ircomm_param_dce()
506 static int ircomm_param_poll(void *instance, irda_param_t *param, int get) in ircomm_param_poll() argument