Searched refs:gserial (Results 1 – 10 of 10) sorted by relevance
/linux/drivers/gnss/ |
H A D | serial.c | 24 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 …]
|
H A D | mtk.c | 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() [all …]
|
H A D | ubx.c | 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() [all …]
|
H A D | serial.h | 29 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/drivers/usb/gadget/function/ |
H A D | u_serial.h | 38 struct gserial { struct 51 void (*connect)(struct gserial *p); argument 52 void (*disconnect)(struct gserial *p); argument 53 int (*send_break)(struct gserial *p, int duration); argument 73 int gserial_connect(struct gserial *, u8 port_num); 74 void gserial_disconnect(struct gserial *); 75 void gserial_suspend(struct gserial *p); 76 void gserial_resume(struct gserial *p);
|
H A D | f_obex.c | 30 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()
|
H A D | f_acm.c | 41 struct gserial port; 70 static inline struct f_acm *port_to_acm(struct gserial *p) in port_to_acm() 327 static int acm_send_break(struct gserial *port, int duration); 575 static void acm_connect(struct gserial *port) in acm_connect() 583 static void acm_disconnect(struct gserial *port) in acm_disconnect() 591 static int acm_send_break(struct gserial *port, int duration) in acm_send_break()
|
H A D | u_serial.c | 107 struct gserial *port_usb; 650 struct gserial *gser = port->port_usb; in gs_open() 688 struct gserial *gser; in gs_close() 847 struct gserial *gser; in gs_break_ctl() 1329 int gserial_connect(struct gserial *gser, u8 port_num) in gserial_connect() 1405 void gserial_disconnect(struct gserial *gser) in gserial_disconnect() 1453 void gserial_suspend(struct gserial *gser) in gserial_suspend() 1474 void gserial_resume(struct gserial *gser) in gserial_resume()
|
H A D | f_serial.c | 28 struct gserial port;
|
/linux/drivers/usb/gadget/legacy/ |
H A D | dbgp.c | 32 struct gserial *serial; 301 dbgp.serial = kzalloc(sizeof(struct gserial), GFP_KERNEL); in dbgp_bind()
|