Lines Matching refs:gserial
24 static int ubx_set_active(struct gnss_serial *gserial) in ubx_set_active() argument
26 struct ubx_data *data = gnss_serial_get_drvdata(gserial); in ubx_set_active()
36 static int ubx_set_standby(struct gnss_serial *gserial) in ubx_set_standby() argument
38 struct ubx_data *data = gnss_serial_get_drvdata(gserial); in ubx_set_standby()
48 static int ubx_set_power(struct gnss_serial *gserial, in ubx_set_power() argument
53 return ubx_set_active(gserial); in ubx_set_power()
56 return ubx_set_standby(gserial); in ubx_set_power()
68 struct gnss_serial *gserial; in ubx_probe() local
72 gserial = gnss_serial_allocate(serdev, sizeof(*data)); in ubx_probe()
73 if (IS_ERR(gserial)) { in ubx_probe()
74 ret = PTR_ERR(gserial); in ubx_probe()
78 gserial->ops = &ubx_gserial_ops; in ubx_probe()
80 gserial->gdev->type = GNSS_TYPE_UBX; in ubx_probe()
82 data = gnss_serial_get_drvdata(gserial); in ubx_probe()
105 ret = gnss_serial_register(gserial); in ubx_probe()
115 gnss_serial_free(gserial); in ubx_probe()
122 struct gnss_serial *gserial = serdev_device_get_drvdata(serdev); in ubx_remove() local
123 struct ubx_data *data = gnss_serial_get_drvdata(gserial); in ubx_remove()
125 gnss_serial_deregister(gserial); in ubx_remove()
128 gnss_serial_free(gserial); in ubx_remove()