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
73 gserial = gnss_serial_allocate(serdev, sizeof(*data)); in ubx_probe()
74 if (IS_ERR(gserial)) { in ubx_probe()
75 ret = PTR_ERR(gserial); in ubx_probe()
79 gserial->ops = &ubx_gserial_ops; in ubx_probe()
81 gserial->gdev->type = GNSS_TYPE_UBX; in ubx_probe()
83 data = gnss_serial_get_drvdata(gserial); in ubx_probe()
102 ret = gnss_serial_register(gserial); in ubx_probe()
109 gnss_serial_free(gserial); in ubx_probe()
116 struct gnss_serial *gserial = serdev_device_get_drvdata(serdev); in ubx_remove() local
118 gnss_serial_deregister(gserial); in ubx_remove()
119 gnss_serial_free(gserial); in ubx_remove()