Home
last modified time | relevance | path

Searched refs:q (Results 1 – 25 of 93) sorted by relevance

1234

/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/src/
Dqueue.c52 Queue *q = (Queue *) malloc(sizeof(Queue)); in alloc_queue() local
53 if (q) in alloc_queue()
55 q->head = q->tail = NULL; in alloc_queue()
56 q->current_size = 0; in alloc_queue()
58 return q; in alloc_queue()
61 void free_queue(Queue *q) in free_queue() argument
63 while (q->current_size) in free_queue()
65 pop(q); in free_queue()
69 void free_queue_and_qelement(Queue *q) in free_queue_and_qelement() argument
71 while (q->current_size) in free_queue_and_qelement()
[all …]
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/src/
Dqueue.c50 Queue *q = (Queue *) malloc(sizeof(Queue)); in alloc_queue() local
52 if (q) { in alloc_queue()
53 q->head = q->tail = NULL; in alloc_queue()
54 q->current_size = 0; in alloc_queue()
57 return q; in alloc_queue()
60 void free_queue(Queue *q) in free_queue() argument
62 while (q->current_size) { in free_queue()
63 pop(q); in free_queue()
67 void free_queue_and_qelement(Queue *q) in free_queue_and_qelement() argument
69 while (q->current_size) { in free_queue_and_qelement()
[all …]
/hardware/qcom/bt/msm8998/libbt-vendor/src/
Dbt_vendor_qcom.c72 struct bt_qcom_struct q; variable
406 for(i = 0; (q.rfkill_id == -1) && (q.rfkill_state == NULL); i++) in bt_powerup()
425 asprintf(&q.rfkill_state, "/sys/class/rfkill/rfkill%d/state", q.rfkill_id = i); in bt_powerup()
431 if (q.rfkill_state != NULL) in bt_powerup()
433 if ((fd = open(q.rfkill_state, O_RDWR)) < 0) in bt_powerup()
435 ALOGE("open(%s) for write failed: %s (%d)", q.rfkill_state, strerror(errno), errno); in bt_powerup()
452 ret = asprintf(&enable_ldo_path, "/sys/class/rfkill/rfkill%d/device/extldo", q.rfkill_id); in bt_powerup()
474 q.enable_extldo = TRUE; in bt_powerup()
483 if (q.soc_type >= BT_SOC_CHEROKEE && q.soc_type < BT_SOC_RESERVED) { in bt_powerup()
504 ALOGE("write(%s) failed: %s (%d)", q.rfkill_state, strerror(errno), errno); in bt_powerup()
[all …]
Dhardware.c138 q.cb->dealloc(p_evt_buf); in hw_epilog_cback()
141 q.cb->epilog_cb(BT_VND_OP_RESULT_SUCCESS); in hw_epilog_cback()
164 p_buf = (HC_BT_HDR *) q.cb->alloc(BT_HC_HDR_SIZE + HCI_CMD_PREAMBLE_SIZE); in __hw_epilog_process()
177 q.cb->xmit_cb(HCI_RESET, p_buf, hw_epilog_cback); in __hw_epilog_process()
182 q.cb->epilog_cb(BT_VND_OP_RESULT_FAIL); in __hw_epilog_process()
/hardware/qcom/bt/msm8909w_3100/libbt-vendor/src/
Dbt_vendor_qcom.c68 struct bt_qcom_struct *q = NULL; variable
416 for(i = 0; (q->rfkill_id == -1) && (q->rfkill_state == NULL); i++) in bt_powerup()
435 asprintf(&q->rfkill_state, "/sys/class/rfkill/rfkill%d/state", q->rfkill_id = i); in bt_powerup()
441 if (q->rfkill_state != NULL) in bt_powerup()
443 if ((fd = open(q->rfkill_state, O_RDWR)) < 0) in bt_powerup()
445 ALOGE("open(%s) for write failed: %s (%d)", q->rfkill_state, strerror(errno), errno); in bt_powerup()
468 ret = asprintf(&enable_ldo_path, "/sys/class/rfkill/rfkill%d/device/extldo", q->rfkill_id); in bt_powerup()
490 q->enable_extldo = TRUE; in bt_powerup()
499 if (q->soc_type >= BT_SOC_CHEROKEE && q->soc_type < BT_SOC_RESERVED) { in bt_powerup()
520 ALOGE("write(%s) failed: %s (%d)", q->rfkill_state, strerror(errno), errno); in bt_powerup()
[all …]
Dhardware.c138 if (!q) { in hw_epilog_cback()
143 q->cb->dealloc(p_evt_buf); in hw_epilog_cback()
146 q->cb->epilog_cb(BT_VND_OP_RESULT_SUCCESS); in hw_epilog_cback()
173 p_buf = (HC_BT_HDR *) q->cb->alloc(BT_HC_HDR_SIZE + HCI_CMD_PREAMBLE_SIZE); in __hw_epilog_process()
186 q->cb->xmit_cb(HCI_RESET, p_buf, hw_epilog_cback); in __hw_epilog_process()
191 q->cb->epilog_cb(BT_VND_OP_RESULT_FAIL); in __hw_epilog_process()
/hardware/qcom/sdm845/bt/libbt-vendor/src/
Dbt_vendor_qcom.c72 struct bt_qcom_struct *q = NULL; variable
420 for(i = 0; (q->rfkill_id == -1) && (q->rfkill_state == NULL); i++) in bt_powerup()
439 asprintf(&q->rfkill_state, "/sys/class/rfkill/rfkill%d/state", q->rfkill_id = i); in bt_powerup()
445 if (q->rfkill_state != NULL) in bt_powerup()
447 if ((fd = open(q->rfkill_state, O_RDWR)) < 0) in bt_powerup()
449 ALOGE("open(%s) for write failed: %s (%d)", q->rfkill_state, strerror(errno), errno); in bt_powerup()
472 ret = asprintf(&enable_ldo_path, "/sys/class/rfkill/rfkill%d/device/extldo", q->rfkill_id); in bt_powerup()
494 q->enable_extldo = TRUE; in bt_powerup()
503 if (q->soc_type >= BT_SOC_CHEROKEE && q->soc_type < BT_SOC_RESERVED) { in bt_powerup()
524 ALOGE("write(%s) failed: %s (%d)", q->rfkill_state, strerror(errno), errno); in bt_powerup()
[all …]
Dhardware.c139 if (!q) { in hw_epilog_cback()
144 q->cb->dealloc(p_evt_buf); in hw_epilog_cback()
147 q->cb->epilog_cb(BT_VND_OP_RESULT_SUCCESS); in hw_epilog_cback()
174 p_buf = (HC_BT_HDR *) q->cb->alloc(BT_HC_HDR_SIZE + HCI_CMD_PREAMBLE_SIZE); in __hw_epilog_process()
187 q->cb->xmit_cb(HCI_RESET, p_buf, hw_epilog_cback); in __hw_epilog_process()
192 q->cb->epilog_cb(BT_VND_OP_RESULT_FAIL); in __hw_epilog_process()
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
Dml_math_func.c219 void inv_q_normalize(long *q) in inv_q_normalize() argument
222 inv_vector_normalize(q, 4); in inv_q_normalize()
225 void inv_q_invert(const long *q, long *qInverted) in inv_q_invert() argument
228 qInverted[0] = q[0]; in inv_q_invert()
229 qInverted[1] = -q[1]; in inv_q_invert()
230 qInverted[2] = -q[2]; in inv_q_invert()
231 qInverted[3] = -q[3]; in inv_q_invert()
247 void inv_q_rotate(const long *q, const long *in, long *out) in inv_q_rotate() argument
255 inv_q_mult(q, in4, q_temp1); in inv_q_rotate()
256 inv_q_invert(q, q_temp2); in inv_q_rotate()
[all …]
Dml_math_func.h73 void inv_q_normalize(long *q);
74 void inv_q_invert(const long *q, long *qInverted);
77 void inv_q_normalizef(float *q);
78 void inv_q_norm4(float *q);
79 void inv_q_invertf(const float *q, float *qInverted);
97 void inv_q_rotate(const long *q, const long *in, long *out);
/hardware/invensense/6515/libsensors_iio/software/core/mllite/
Dml_math_func.c219 void inv_q_normalize(long *q) in inv_q_normalize() argument
222 inv_vector_normalize(q, 4); in inv_q_normalize()
225 void inv_q_invert(const long *q, long *qInverted) in inv_q_invert() argument
228 qInverted[0] = q[0]; in inv_q_invert()
229 qInverted[1] = -q[1]; in inv_q_invert()
230 qInverted[2] = -q[2]; in inv_q_invert()
231 qInverted[3] = -q[3]; in inv_q_invert()
247 void inv_q_rotate(const long *q, const long *in, long *out) in inv_q_rotate() argument
255 inv_q_mult(q, in4, q_temp1); in inv_q_rotate()
256 inv_q_invert(q, q_temp2); in inv_q_rotate()
[all …]
Dml_math_func.h73 void inv_q_normalize(long *q);
74 void inv_q_invert(const long *q, long *qInverted);
77 void inv_q_normalizef(float *q);
78 void inv_q_norm4(float *q);
79 void inv_q_invertf(const float *q, float *qInverted);
97 void inv_q_rotate(const long *q, const long *in, long *out);
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/inc/
Dmm_jpeg.h160 static inline void cirq_reset(mm_jpeg_cirq_t *q) in cirq_reset() argument
162 q->front = 0; in cirq_reset()
163 q->rear = 0; in cirq_reset()
164 q->count = 0; in cirq_reset()
165 pthread_mutex_init(&q->lock, NULL); in cirq_reset()
180 #define cirq_empty(q) (q->count == 0) argument
194 #define cirq_full(q) (q->count == MM_JPEG_CIRQ_SIZE) argument
209 #define cirq_enqueue(q, type, data) ({ \ argument
211 pthread_mutex_lock(&q->lock); \
212 if (cirq_full(q)) { \
[all …]
/hardware/broadcom/wlan/bcmdhd/dhdutil/
Dbcmutils.c235 struct pktq_prec *q; in pktq_penq() local
243 q = &pq->q[prec]; in pktq_penq()
245 if (q->head) in pktq_penq()
246 PKTSETLINK(q->tail, p); in pktq_penq()
248 q->head = p; in pktq_penq()
250 q->tail = p; in pktq_penq()
251 q->len++; in pktq_penq()
264 struct pktq_prec *q; in pktq_penq_head() local
272 q = &pq->q[prec]; in pktq_penq_head()
274 if (q->head == NULL) in pktq_penq_head()
[all …]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/devnode_parser/
Dread_device_node.c77 int q[3]; in read_data() local
161 q[0] = *(int *)(dptr + 4); in read_data()
163 q[1] = *(int *)(dptr); in read_data()
164 q[2] = *(int *)(dptr + 4); in read_data()
166 printf("LPQ_3AXES, %d, %d, %d, %lld\n", q[0], q[1], q[2], *(long long *)dptr); in read_data()
172 q[0] = *(int *)(dptr + 4); in read_data()
174 q[1] = *(int *)(dptr); in read_data()
175 q[2] = *(int *)(dptr + 4); in read_data()
177 printf("LPQ_6AXES, %d, %d, %d, %lld\n", q[0], q[1], q[2], *(long long *)dptr); in read_data()
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/inc/
Dqueue.h34 void free_queue(Queue *q);
35 void free_queue_and_qelement(Queue *q);
36 int push(Queue *q, void * element);
37 void *pop(Queue *q);
/hardware/qcom/sdm845/media/mm-video-v4l2/vidc/vdec/inc/
Dqueue.h34 void free_queue(Queue *q);
35 void free_queue_and_qelement(Queue *q);
36 int push(Queue *q, void * element);
37 void *pop(Queue *q);
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/inc/
Dqueue.h34 void free_queue(Queue *q);
35 void free_queue_and_qelement(Queue *q);
36 int push(Queue *q, void * element);
37 void *pop(Queue *q);
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/inc/
Dqueue.h34 void free_queue(Queue *q);
35 void free_queue_and_qelement(Queue *q);
36 int push(Queue *q, void * element);
37 void *pop(Queue *q);
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/inc/
Dqueue.h34 void free_queue(Queue *q);
35 void free_queue_and_qelement(Queue *q);
36 int push(Queue *q, void * element);
37 void *pop(Queue *q);
/hardware/libhardware/include/hardware/
Dcamera2.h228 int (*request_count)(const struct camera2_request_queue_src_ops *q);
237 int (*dequeue_request)(const struct camera2_request_queue_src_ops *q,
243 int (*free_request)(const struct camera2_request_queue_src_ops *q,
270 int (*dequeue_frame)(const struct camera2_frame_queue_dst_ops *q,
278 int (*cancel_frame)(const struct camera2_frame_queue_dst_ops *q,
284 int (*enqueue_frame)(const struct camera2_frame_queue_dst_ops *q,
/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/
Dstress_iio.c713 int q[3], i, ind, left_over_size, buf_size; in read_data() local
831 q[0] = *(int *)(dptr + 4); in read_data()
833 q[1] = *(int *)(dptr); in read_data()
834 q[2] = *(int *)(dptr + 4); in read_data()
836 printf("LPQ:%d, %d, %d, %lld\n", q[0], q[1], q[2], *(long long *)dptr); in read_data()
842 q[0] = *(int *)(dptr + 4); in read_data()
844 q[1] = *(int *)(dptr); in read_data()
845 q[2] = *(int *)(dptr + 4); in read_data()
848 printf("SIXQ:%d, %d, %d, %lld\n", q[0], q[1], q[2], *(long long *)dptr); in read_data()
/hardware/qcom/sdm845/gps/msm8998/utils/
Dmsg_q.c145 void* q = NULL; in msg_q_init2() local
146 if (eMSG_Q_SUCCESS != msg_q_init(&q)) { in msg_q_init2()
147 q = NULL; in msg_q_init2()
149 return q; in msg_q_init2()
/hardware/qcom/sdm845/gps/msm8909/utils/
Dmsg_q.c146 void* q = NULL; in msg_q_init2() local
147 if (eMSG_Q_SUCCESS != msg_q_init(&q)) { in msg_q_init2()
148 q = NULL; in msg_q_init2()
150 return q; in msg_q_init2()
/hardware/qcom/sdm845/gps/msm8996/utils/
Dmsg_q.c146 void* q = NULL; in msg_q_init2() local
147 if (eMSG_Q_SUCCESS != msg_q_init(&q)) { in msg_q_init2()
148 q = NULL; in msg_q_init2()
150 return q; in msg_q_init2()

1234