Lines Matching refs:gdev
39 struct gnss_device *gdev; member
88 static int sirf_open(struct gnss_device *gdev) in sirf_open() argument
90 struct sirf_data *data = gnss_get_drvdata(gdev); in sirf_open()
108 dev_err(&gdev->dev, "failed to runtime resume: %d\n", ret); in sirf_open()
125 static void sirf_close(struct gnss_device *gdev) in sirf_close() argument
127 struct sirf_data *data = gnss_get_drvdata(gdev); in sirf_close()
139 static int sirf_write_raw(struct gnss_device *gdev, const unsigned char *buf, in sirf_write_raw() argument
142 struct sirf_data *data = gnss_get_drvdata(gdev); in sirf_write_raw()
167 struct gnss_device *gdev = data->gdev; in sirf_receive_buf() local
177 ret = gnss_insert_raw(gdev, buf, count); in sirf_receive_buf()
398 struct gnss_device *gdev; in sirf_probe() local
406 gdev = gnss_allocate_device(dev); in sirf_probe()
407 if (!gdev) in sirf_probe()
410 gdev->type = GNSS_TYPE_SIRF; in sirf_probe()
411 gdev->ops = &sirf_gnss_ops; in sirf_probe()
412 gnss_set_drvdata(gdev, data); in sirf_probe()
415 data->gdev = gdev; in sirf_probe()
513 ret = gnss_register_device(gdev); in sirf_probe()
531 gnss_put_device(data->gdev); in sirf_probe()
540 gnss_deregister_device(data->gdev); in sirf_remove()
553 gnss_put_device(data->gdev); in sirf_remove()