Home
last modified time | relevance | path

Searched refs:gserial (Results 1 – 10 of 10) sorted by relevance

/linux-6.6.21/drivers/gnss/
Dserial.c24 struct gnss_serial *gserial = gnss_get_drvdata(gdev); in gnss_serial_open() local
25 struct serdev_device *serdev = gserial->serdev; in gnss_serial_open()
32 serdev_device_set_baudrate(serdev, gserial->speed); in gnss_serial_open()
51 struct gnss_serial *gserial = gnss_get_drvdata(gdev); in gnss_serial_close() local
52 struct serdev_device *serdev = gserial->serdev; in gnss_serial_close()
62 struct gnss_serial *gserial = gnss_get_drvdata(gdev); in gnss_serial_write_raw() local
63 struct serdev_device *serdev = gserial->serdev; in gnss_serial_write_raw()
86 struct gnss_serial *gserial = serdev_device_get_drvdata(serdev); in gnss_serial_receive_buf() local
87 struct gnss_device *gdev = gserial->gdev; in gnss_serial_receive_buf()
97 static int gnss_serial_set_power(struct gnss_serial *gserial, in gnss_serial_set_power() argument
[all …]
Dmtk.c24 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()
[all …]
Dubx.c24 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()
[all …]
Dserial.h29 int (*set_power)(struct gnss_serial *gserial,
35 struct gnss_serial *gnss_serial_allocate(struct serdev_device *gserial,
37 void gnss_serial_free(struct gnss_serial *gserial);
39 int gnss_serial_register(struct gnss_serial *gserial);
40 void gnss_serial_deregister(struct gnss_serial *gserial);
42 static inline void *gnss_serial_get_drvdata(struct gnss_serial *gserial) in gnss_serial_get_drvdata() argument
44 return gserial->drvdata; in gnss_serial_get_drvdata()
/linux-6.6.21/drivers/usb/gadget/function/
Du_serial.h34 struct gserial { struct
47 void (*connect)(struct gserial *p); argument
48 void (*disconnect)(struct gserial *p); argument
49 int (*send_break)(struct gserial *p, int duration); argument
69 int gserial_connect(struct gserial *, u8 port_num);
70 void gserial_disconnect(struct gserial *);
71 void gserial_suspend(struct gserial *p);
72 void gserial_resume(struct gserial *p);
Df_obex.c30 struct gserial port;
42 static inline struct f_obex *port_to_obex(struct gserial *p) in port_to_obex()
259 static void obex_connect(struct gserial *g) in obex_connect()
272 static void obex_disconnect(struct gserial *g) in obex_disconnect()
Df_acm.c41 struct gserial port;
69 static inline struct f_acm *port_to_acm(struct gserial *p) in port_to_acm()
326 static int acm_send_break(struct gserial *port, int duration);
574 static void acm_connect(struct gserial *port) in acm_connect()
582 static void acm_disconnect(struct gserial *port) in acm_disconnect()
590 static int acm_send_break(struct gserial *port, int duration) in acm_send_break()
Du_serial.c106 struct gserial *port_usb;
643 struct gserial *gser = port->port_usb; in gs_open()
681 struct gserial *gser; in gs_close()
840 struct gserial *gser; in gs_break_ctl()
1304 int gserial_connect(struct gserial *gser, u8 port_num) in gserial_connect()
1380 void gserial_disconnect(struct gserial *gser) in gserial_disconnect()
1428 void gserial_suspend(struct gserial *gser) in gserial_suspend()
1448 void gserial_resume(struct gserial *gser) in gserial_resume()
Df_serial.c28 struct gserial port;
/linux-6.6.21/drivers/usb/gadget/legacy/
Ddbgp.c32 struct gserial *serial;
301 dbgp.serial = kzalloc(sizeof(struct gserial), GFP_KERNEL); in dbgp_bind()