Lines Matching refs:gdev
22 static int gnss_serial_open(struct gnss_device *gdev) in gnss_serial_open() argument
24 struct gnss_serial *gserial = gnss_get_drvdata(gdev); in gnss_serial_open()
49 static void gnss_serial_close(struct gnss_device *gdev) in gnss_serial_close() argument
51 struct gnss_serial *gserial = gnss_get_drvdata(gdev); in gnss_serial_close()
59 static int gnss_serial_write_raw(struct gnss_device *gdev, in gnss_serial_write_raw() argument
62 struct gnss_serial *gserial = gnss_get_drvdata(gdev); in gnss_serial_write_raw()
87 struct gnss_device *gdev = gserial->gdev; in gnss_serial_receive_buf() local
89 return gnss_insert_raw(gdev, buf, count); in gnss_serial_receive_buf()
127 struct gnss_device *gdev; in gnss_serial_allocate() local
134 gdev = gnss_allocate_device(&serdev->dev); in gnss_serial_allocate()
135 if (!gdev) { in gnss_serial_allocate()
140 gdev->ops = &gnss_serial_gnss_ops; in gnss_serial_allocate()
141 gnss_set_drvdata(gdev, gserial); in gnss_serial_allocate()
144 gserial->gdev = gdev; in gnss_serial_allocate()
156 gnss_put_device(gserial->gdev); in gnss_serial_allocate()
166 gnss_put_device(gserial->gdev); in gnss_serial_free()
184 ret = gnss_register_device(gserial->gdev); in gnss_serial_register()
204 gnss_deregister_device(gserial->gdev); in gnss_serial_deregister()