Lines Matching refs:gserial
24 static int mtk_set_active(struct gnss_serial *gserial) in mtk_set_active() argument
26 struct mtk_data *data = gnss_serial_get_drvdata(gserial); in mtk_set_active()
36 static int mtk_set_standby(struct gnss_serial *gserial) in mtk_set_standby() argument
38 struct mtk_data *data = gnss_serial_get_drvdata(gserial); in mtk_set_standby()
48 static int mtk_set_power(struct gnss_serial *gserial, in mtk_set_power() argument
53 return mtk_set_active(gserial); in mtk_set_power()
56 return mtk_set_standby(gserial); in mtk_set_power()
68 struct gnss_serial *gserial; in mtk_probe() local
72 gserial = gnss_serial_allocate(serdev, sizeof(*data)); in mtk_probe()
73 if (IS_ERR(gserial)) { in mtk_probe()
74 ret = PTR_ERR(gserial); in mtk_probe()
78 gserial->ops = &mtk_gserial_ops; in mtk_probe()
80 gserial->gdev->type = GNSS_TYPE_MTK; in mtk_probe()
82 data = gnss_serial_get_drvdata(gserial); in mtk_probe()
105 ret = gnss_serial_register(gserial); in mtk_probe()
115 gnss_serial_free(gserial); in mtk_probe()
122 struct gnss_serial *gserial = serdev_device_get_drvdata(serdev); in mtk_remove() local
123 struct mtk_data *data = gnss_serial_get_drvdata(gserial); in mtk_remove()
125 gnss_serial_deregister(gserial); in mtk_remove()
128 gnss_serial_free(gserial); in mtk_remove()