Home | History | Annotate | Download | only in libloc_api_50001

Lines Matching defs:pmsg

114     struct ctrl_msgbuf *pmsg = (struct ctrl_msgbuf *) msgp;
115 pmsg->msgsz = msgsz;
149 struct ctrl_msgbuf *pmsg = (struct ctrl_msgbuf *) msgp;
151 result = loc_eng_dmn_conn_glue_piperead(msgqid, &(pmsg->msgsz), sizeof(pmsg->msgsz));
152 if (result != sizeof(pmsg->msgsz)) {
157 if (msgbufsz < pmsg->msgsz) {
158 LOC_LOGE("%s:%d] msgbuf is too small %d < %d\n", __func__, __LINE__, (int) msgbufsz, (int) pmsg->msgsz);
162 result = loc_eng_dmn_conn_glue_piperead(msgqid, (uint8_t *) msgp + sizeof(pmsg->msgsz), pmsg->msgsz - sizeof(pmsg->msgsz));
163 if (result != (int) (pmsg->msgsz - sizeof(pmsg->msgsz))) {
164 LOC_LOGE("%s:%d] pipe broken %d, msgsz = %d\n", __func__, __LINE__, result, (int) pmsg->msgsz);
168 return pmsg->msgsz;