Lines Matching defs:ret

308 	int ret;
310 ret = snprintf_s(sc->sc_name, TTY_NAME_LEN, TTY_NAME_LEN - 1, "/dev/ttyUSB%d", sc->sc_subunit);
311 if (ret < 0) {
1025 int ret;
1043 ret = usbd_copy_from_user(ucom_cons_tx_buf + ucom_cons_tx_high, temp, tx_data, temp);
1044 if (ret != EOK) {
1046 usb_err("memcpy_s failed!, ret:%d\n", ret);
1049 ret = usbd_copy_from_user(ucom_cons_tx_buf, UCOM_CONS_BUFSIZE,
1051 if (ret != EOK) {
1053 usb_err("memcpy_s failed!, ret:%d\n", ret);
1057 ret = usbd_copy_from_user(ucom_cons_tx_buf + ucom_cons_tx_high,
1059 if (ret != EOK) {
1061 usb_err("memcpy_s failed!, ret:%d\n", ret);
1105 UINT32 ret;
1113 ret = LOS_TaskCreate(&g_u3g_tx_taskid, &stappTask);
1114 if (ret != LOS_OK) {
1116 return (ret);
1125 ret = LOS_TaskCreate(&g_u3g_rx_taskid, &stappTask);
1126 if (ret != LOS_OK) {
1128 return (ret);
1137 UINT32 ret;
1139 ret = LOS_TaskDelete(g_u3g_tx_taskid);
1140 if (ret != LOS_OK) {
1141 return (ret);
1144 ret = LOS_TaskDelete(g_u3g_rx_taskid);
1145 if (ret != LOS_OK) {
1146 return (ret);
1149 ret = LOS_QueueDelete(m_uw_ucom_handler_queue);
1150 if (ret != LOS_OK) {
1151 return (ret);
1161 UINT32 ret;
1164 ret = LOS_MemboxInit(m_auc_ucom_handler_pool, sizeof(m_auc_ucom_handler_pool),
1166 if (ret != LOS_OK) {
1171 ret = LOS_QueueCreate(NULL, 8, &m_uw_ucom_handler_queue, 0, sizeof(ucom_handler_item_s));
1172 if (ret != LOS_OK) {
1179 ret = LOS_QueueRead(m_uw_ucom_handler_queue, &p_ucom_tx_handler,
1181 if (ret == LOS_OK) {
1212 int ret;
1245 ret = memcpy_s(buf, (len + 2), argv[0], len);
1246 if (ret != EOK) {
1298 UINT32 ret;
1302 ret = LOS_MemboxInit(m_auc_tty_usb_handler_pool,
1304 if (ret != LOS_OK) {
1309 ret = LOS_QueueCreate(NULL, 8, &m_uw_tty_usb_handler_queue,
1311 if (ret != LOS_OK) {
1329 UINT32 ret;
1334 ret = LOS_QueueRead(m_uw_tty_usb_handler_queue, &ptty_usb_write_handler,
1336 if (ret == LOS_OK) {
1352 int ret;
1360 ret = -ucom_open(sc);
1363 return (ret);
1386 int ret;
1402 ret = usbd_copy_to_user(buffer, buflen, ucom_cons_rx_buf + ucom_cons_rx_low, fisrt_len);
1403 if (ret != EOK) {
1405 usb_err("memcpy_s failed!, ret:%d\n", ret);
1408 ret = usbd_copy_to_user(buffer + fisrt_len, (buflen - fisrt_len),
1410 if (ret != EOK) {
1412 usb_err("memcpy_s failed!, ret:%d\n", ret);
1417 ret = usbd_copy_to_user(buffer, buflen, ucom_cons_rx_buf + ucom_cons_rx_low, temp);
1418 if (ret != EOK) {
1420 usb_err("memcpy_s failed!, ret:%d\n", ret);