Lines Matching refs:tsa_serial

126 	struct tsa_serial {  struct
132 static inline struct tsa *tsa_serial_get_tsa(struct tsa_serial *tsa_serial) in tsa_serial_get_tsa() argument
135 return container_of(tsa_serial, struct tsa, serials[tsa_serial->id]); in tsa_serial_get_tsa()
163 int tsa_serial_connect(struct tsa_serial *tsa_serial) in tsa_serial_connect() argument
165 struct tsa *tsa = tsa_serial_get_tsa(tsa_serial); in tsa_serial_connect()
170 switch (tsa_serial->id) { in tsa_serial_connect()
184 dev_err(tsa->dev, "Unsupported serial id %u\n", tsa_serial->id); in tsa_serial_connect()
196 int tsa_serial_disconnect(struct tsa_serial *tsa_serial) in tsa_serial_disconnect() argument
198 struct tsa *tsa = tsa_serial_get_tsa(tsa_serial); in tsa_serial_disconnect()
202 switch (tsa_serial->id) { in tsa_serial_disconnect()
213 dev_err(tsa->dev, "Unsupported serial id %u\n", tsa_serial->id); in tsa_serial_disconnect()
225 int tsa_serial_get_info(struct tsa_serial *tsa_serial, struct tsa_serial_info *info) in tsa_serial_get_info() argument
227 memcpy(info, &tsa_serial->info, sizeof(*info)); in tsa_serial_get_info()
751 struct tsa_serial *tsa_serial_get_byphandle(struct device_node *np, in tsa_serial_get_byphandle()
756 struct tsa_serial *tsa_serial; in tsa_serial_get_byphandle() local
790 tsa_serial = &tsa->serials[out_args.args[0]]; in tsa_serial_get_byphandle()
797 if (WARN_ON(tsa_serial->id != out_args.args[0])) { in tsa_serial_get_byphandle()
802 return tsa_serial; in tsa_serial_get_byphandle()
806 void tsa_serial_put(struct tsa_serial *tsa_serial) in tsa_serial_put() argument
808 struct tsa *tsa = tsa_serial_get_tsa(tsa_serial); in tsa_serial_put()
816 struct tsa_serial **tsa_serial = res; in devm_tsa_serial_release() local
818 tsa_serial_put(*tsa_serial); in devm_tsa_serial_release()
821 struct tsa_serial *devm_tsa_serial_get_byphandle(struct device *dev, in devm_tsa_serial_get_byphandle()
825 struct tsa_serial *tsa_serial; in devm_tsa_serial_get_byphandle() local
826 struct tsa_serial **dr; in devm_tsa_serial_get_byphandle()
832 tsa_serial = tsa_serial_get_byphandle(np, phandle_name); in devm_tsa_serial_get_byphandle()
833 if (!IS_ERR(tsa_serial)) { in devm_tsa_serial_get_byphandle()
834 *dr = tsa_serial; in devm_tsa_serial_get_byphandle()
840 return tsa_serial; in devm_tsa_serial_get_byphandle()