Searched refs:gserial (Results 1 – 11 of 11) sorted by relevance
/openbmc/linux/drivers/gnss/ |
H A D | serial.c | 100 if (!gserial->ops || !gserial->ops->set_power) in gnss_serial_set_power() 103 return gserial->ops->set_power(gserial, state); in gnss_serial_set_power() 118 gserial->speed = speed; in gnss_serial_parse_dt() 126 struct gnss_serial *gserial; in gnss_serial_allocate() local 130 gserial = kzalloc(sizeof(*gserial) + data_size, GFP_KERNEL); in gnss_serial_allocate() 131 if (!gserial) in gnss_serial_allocate() 143 gserial->serdev = serdev; in gnss_serial_allocate() 144 gserial->gdev = gdev; in gnss_serial_allocate() 153 return gserial; in gnss_serial_allocate() 158 kfree(gserial); in gnss_serial_allocate() [all …]
|
H A D | mtk.c | 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 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() 105 ret = gnss_serial_register(gserial); in mtk_probe() 115 gnss_serial_free(gserial); in mtk_probe() 125 gnss_serial_deregister(gserial); in mtk_remove() [all …]
|
H A D | ubx.c | 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 if (IS_ERR(gserial)) { in ubx_probe() 74 ret = PTR_ERR(gserial); in ubx_probe() 78 gserial->ops = &ubx_gserial_ops; in ubx_probe() 80 gserial->gdev->type = GNSS_TYPE_UBX; in ubx_probe() 105 ret = gnss_serial_register(gserial); in ubx_probe() 115 gnss_serial_free(gserial); in ubx_probe() 125 gnss_serial_deregister(gserial); in ubx_remove() [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()
|
/openbmc/linux/drivers/usb/gadget/function/ |
H A D | u_serial.h | 34 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);
|
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; 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()
|
H A D | u_serial.c | 106 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() 1449 void gserial_resume(struct gserial *gser) in gserial_resume()
|
H A D | f_serial.c | 28 struct gserial port;
|
/openbmc/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()
|
/openbmc/u-boot/ |
H A D | README | 1040 can be set to gserial or cdc_acm to enable your device to 1041 appear to a USB host as a Linux gserial device or a 1043 If you select usbtty = gserial you should be able to enumerate
|