Home
last modified time | relevance | path

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

12345678

/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/amvdec_ports/
Daml_vcodec_vfq.h35 static inline void vfq_lookup_start(struct vfq_s *q) in vfq_lookup_start() argument
37 q->pre_rp = q->rp; in vfq_lookup_start()
38 q->pre_wp = q->wp; in vfq_lookup_start()
40 static inline void vfq_lookup_end(struct vfq_s *q) in vfq_lookup_end() argument
42 q->rp = q->pre_rp; in vfq_lookup_end()
43 q->wp = q->pre_wp; in vfq_lookup_end()
46 static inline void vfq_init(struct vfq_s *q, u32 size, struct vframe_s **pool) in vfq_init() argument
48 q->rp = q->wp = 0; in vfq_init()
49 q->size = size; in vfq_init()
50 q->pool = pool; in vfq_init()
[all …]
/device/board/isoftstone/yangfan/kernel/src/driv/net/rockchip_wlan/rkwifi/bcmdhd/
Dhnd_pktq.c55 struct pktq_prec *q; in BCMFASTPATH() local
67 q = &pq->q[prec]; in BCMFASTPATH()
69 if (q->head) in BCMFASTPATH()
70 PKTSETLINK(q->tail, p); in BCMFASTPATH()
72 q->head = p; in BCMFASTPATH()
74 q->tail = p; in BCMFASTPATH()
75 q->n_pkts++; in BCMFASTPATH()
103 dq = &dspq->q; in BCMFASTPATH()
104 sq = &sspq->q; in BCMFASTPATH()
133 struct pktq_prec *q; in BCMFASTPATH() local
[all …]
/device/board/kaihong/khdvk_3566b/wifi/bcmdhd_hdf/bcmdhd/
Dhnd_pktq.c60 struct pktq_prec *q; in pktq_penq() local
74 q = &pq->q[prec]; in pktq_penq()
76 if (q->head) { in pktq_penq()
77 PKTSETLINK(q->tail, p); in pktq_penq()
79 q->head = p; in pktq_penq()
82 q->tail = p; in pktq_penq()
83 q->n_pkts++; in pktq_penq()
104 struct pktq_prec *q; in spktq_enq() local
116 q = &spq->q; in spktq_enq()
118 if (q->head) { in spktq_enq()
[all …]
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
Dhnd_pktq.c62 struct pktq_prec *q; in pktq_penq() local
74 q = &pq->q[prec]; in pktq_penq()
76 if (q->head) in pktq_penq()
77 PKTSETLINK(q->tail, p); in pktq_penq()
79 q->head = p; in pktq_penq()
81 q->tail = p; in pktq_penq()
82 q->n_pkts++; in pktq_penq()
102 struct pktq_prec *q; in spktq_enq() local
112 q = &spq->q; in spktq_enq()
114 if (q->head) in spktq_enq()
[all …]
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/bcmdhd/
Dhnd_pktq.c56 struct pktq_prec *q; in pktq_penq() local
68 q = &pq->q[prec]; in pktq_penq()
70 if (q->head) in pktq_penq()
71 PKTSETLINK(q->tail, p); in pktq_penq()
73 q->head = p; in pktq_penq()
75 q->tail = p; in pktq_penq()
76 q->len++; in pktq_penq()
93 struct pktq_prec *q; in pktq_penq_head() local
105 q = &pq->q[prec]; in pktq_penq_head()
107 if (q->head == NULL) in pktq_penq_head()
[all …]
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/
Doal_netbuf.h92 #define oal_netbuf_list_num(q) NetBufQueueSize(q) argument
93 #define oal_netbuf_list_len(q) NetBufQueueSize(q) argument
94 #define oal_netbuf_list_empty(q) NetBufQueueIsEmpty(q) argument
95 #define oal_free_netbuf_list(q) NetBufQueueClear(q) argument
97 #define oal_netbuf_queue_num(q) NetBufQueueSize(q) argument
98 #define OAL_NETBUF_QUEUE_TAIL(q, nb) NetBufQueueEnqueue(q, nb) argument
99 #define OAL_NETBUF_QUEUE_HEAD_INIT(q) NetBufQueueInit(q) argument
100 #define OAL_NETBUF_DEQUEUE(q) NetBufQueueDequeue(q) argument
101 #define oal_netbuf_head_init(q) NetBufQueueInit(q) argument
102 #define oal_netbuf_peek(q) NetBufQueueAtHead(q) argument
[all …]
/device/soc/esp/esp32/components/esp_lwip/lwip/src/core/
Dpbuf.c240 struct pbuf *q, *last; in pbuf_alloc() local
247 q = (struct pbuf *)memp_malloc(MEMP_PBUF_POOL); in pbuf_alloc()
248 if (q == NULL) { in pbuf_alloc()
258 pbuf_init_alloced_pbuf(q, LWIP_MEM_ALIGN((void *)((u8_t *)q + SIZEOF_STRUCT_PBUF + offset)), in pbuf_alloc()
261 ((mem_ptr_t)q->payload % MEM_ALIGNMENT) == 0); in pbuf_alloc()
266 p = q; in pbuf_alloc()
269 last->next = q; in pbuf_alloc()
271 last = q; in pbuf_alloc()
408 struct pbuf *q; in pbuf_realloc() local
426 q = p; in pbuf_realloc()
[all …]
/device/soc/esp/esp32/components/bt/host/bluedroid/stack/smp/
Dp_256_ecc_pp.c39 static void p_256_init_point(Point *q) in p_256_init_point() argument
41 memset(q, 0, sizeof(Point)); in p_256_init_point()
44 static void p_256_copy_point(Point *q, Point *p) in p_256_copy_point() argument
46 memcpy(q, p, sizeof(Point)); in p_256_copy_point()
50 static void ECC_Double(Point *q, Point *p, uint32_t keyLength) in ECC_Double() argument
63 multiprecision_init(q->z, keyLength); in ECC_Double()
68 x3 = q->x; y3 = q->y; z3 = q->z; in ECC_Double()
96 static void ECC_Add(Point *r, Point *p, Point *q, uint32_t keyLength) in ECC_Add() argument
111 x2 = q->x; y2 = q->y; z2 = q->z; in ECC_Add()
122 p_256_copy_point(r, q); in ECC_Add()
[all …]
/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/core/
Drtw_rm.c222 prm->q.category = RTW_WLAN_CATEGORY_RADIO_MEAS; in rm_add_nb_req()
223 prm->q.diag_token = rm_gen_dialog_token(padapter); in rm_add_nb_req()
224 prm->q.m_token = rm_gen_meas_token(padapter); in rm_add_nb_req()
227 prm->q.action_code = RM_ACT_NB_REP_REQ; in rm_add_nb_req()
389 pch_set = &prm->q.ch_set[0]; in rm_sitesurvey()
394 op_class = prm->q.op_class; in rm_sitesurvey()
395 if (prm->q.ch_num == 0) { in rm_sitesurvey()
398 op_class, prm->q.ch_num); in rm_sitesurvey()
400 } else if (prm->q.ch_num == 255) { in rm_sitesurvey()
405 meas_ch_amount = rm_get_ch_set_from_bcn_req_opt(pch_set, &prm->q.opt.bcn); in rm_sitesurvey()
[all …]
Drtw_rm_fsm.c227 if (prm->q.pssid) in rm_free_rmobj()
228 rtw_mfree(prm->q.pssid, strlen(prm->q.pssid)+1); in rm_free_rmobj()
230 if (prm->q.opt.bcn.req_start) in rm_free_rmobj()
231 rtw_mfree(prm->q.opt.bcn.req_start, in rm_free_rmobj()
232 prm->q.opt.bcn.req_len); in rm_free_rmobj()
488 switch (prm->q.action_code) { in rm_issue_meas_req()
490 switch (prm->q.m_type) { in rm_issue_meas_req()
529 switch (prm->q.action_code) { in rm_state_idle()
533 prm->p.diag_token = prm->q.diag_token; in rm_state_idle()
535 prm->p.m_token = prm->q.m_token; in rm_state_idle()
[all …]
/device/soc/hpmicro/sdk/hpm_sdk/drivers/src/
Dhpm_dram_drv.c83 dram_axi_q_weight_t *q; in dram_default_config() local
87 q = &config->axi_q_weight[DRAM_AXI_Q_A]; in dram_default_config()
88 q->enable = true; in dram_default_config()
89 q->qos = 4; in dram_default_config()
90 q->age = 2; in dram_default_config()
91 q->slave_hit = 0x5; in dram_default_config()
92 q->slave_hit_wo_rw = 0x3; in dram_default_config()
94 q = &config->axi_q_weight[DRAM_AXI_Q_B]; in dram_default_config()
95 q->enable = true; in dram_default_config()
96 q->qos = 4; in dram_default_config()
[all …]
/device/qemu/drivers/virtio/
Dvirtgpu.c178 static bool NotifyAndWaitResponse(unsigned queue, struct Virtq *q, const void *req, volatile void *… in NotifyAndWaitResponse() argument
184 q->avail->ring[q->avail->index % q->qsz] = 0; in NotifyAndWaitResponse()
186 q->avail->index++; in NotifyAndWaitResponse()
190 while ((q->last == q->used->index) || in NotifyAndWaitResponse()
194 q->last++; in NotifyAndWaitResponse()
206 struct Virtq *q = &g_virtGpu->dev.vq[queue]; in RequestResponse() local
210 q->desc[idx].pAddr = VMM_TO_DMA_ADDR((VADDR_T)req); in RequestResponse()
211 q->desc[idx].len = reqSize; in RequestResponse()
212 q->desc[idx].flag = VIRTQ_DESC_F_NEXT; in RequestResponse()
213 q->desc[idx].next = idx + 1; in RequestResponse()
[all …]
Dvirtnet.c155 struct Virtq *q = &nic->dev.vq[1]; in FreeTxEntry() local
156 uint16_t idx = q->desc[head].next; in FreeTxEntry()
162 q->desc[idx].next = nic->tFreeHdr; in FreeTxEntry()
163 q->desc[idx].flag = VIRTQ_DESC_F_NEXT; in FreeTxEntry()
178 struct Virtq *q = &nic->dev.vq[0]; in PopulateRxBuffer() local
180 for (i = 0; i < q->qsz; i++) { in PopulateRxBuffer()
183 q->desc[i].pAddr = paddr; in PopulateRxBuffer()
184 q->desc[i].len = PER_RXBUF_SIZE; in PopulateRxBuffer()
185 q->desc[i].flag = VIRTQ_DESC_F_WRITE; in PopulateRxBuffer()
187 q->avail->ring[i] = i; in PopulateRxBuffer()
[all …]
/device/qemu/riscv32_virt/liteos_m/board/driver/
Dvirtgpu.c179 static bool NotifyAndWaitResponse(unsigned queue, struct Virtq *q, const void *req, volatile void *… in NotifyAndWaitResponse() argument
185 q->avail->ring[q->avail->index % q->qsz] = 0; in NotifyAndWaitResponse()
187 q->avail->index++; in NotifyAndWaitResponse()
191 while ((q->last == q->used->index) || in NotifyAndWaitResponse()
195 q->last++; in NotifyAndWaitResponse()
207 struct Virtq *q = &g_virtGpu->dev.vq[queue]; in RequestResponse() local
211 q->desc[idx].pAddr = u32_to_u64(VMM_TO_DMA_ADDR((VADDR_T)req)); in RequestResponse()
212 q->desc[idx].len = reqSize; in RequestResponse()
213 q->desc[idx].flag = VIRTQ_DESC_F_NEXT; in RequestResponse()
214 q->desc[idx].next = idx + 1; in RequestResponse()
[all …]
Dvirtnet.c207 struct Virtq *q = &nic->dev.vq[1]; in FreeTxEntry() local
209 idx = q->desc[head].next; in FreeTxEntry()
216 q->desc[tail].next = nic->tFreeHdr; in FreeTxEntry()
217 q->desc[tail].flag = VIRTQ_DESC_F_NEXT; in FreeTxEntry()
247 struct Virtq *q = &nic->dev.vq[0]; in ConfigRxBuffer() local
249 nic->rbufRec = calloc(q->qsz, sizeof(struct RbufRecord)); in ConfigRxBuffer()
257 for (i = 0; i < q->qsz; i++) { in ConfigRxBuffer()
258 q->desc[i].pAddr = u32_to_u64(paddr); in ConfigRxBuffer()
259 q->desc[i].len = sizeof(struct VirtnetHdr) + ETH_FRAME_LEN; in ConfigRxBuffer()
260 q->desc[i].flag = VIRTQ_DESC_F_WRITE; in ConfigRxBuffer()
[all …]
/device/board/isoftstone/yangfan/common/seetafaceengine/opencv2/modules/calib3d/src/
Dcalibinit.cpp779 ChessBoardQuad* q = stack.top(); stack.pop(); CV_Assert(q); in orderFoundConnectedQuads() local
781 int col = q->col; in orderFoundConnectedQuads()
782 int row = q->row; in orderFoundConnectedQuads()
794 ChessBoardQuad *neighbor = q->neighbors[i]; in orderFoundConnectedQuads()
811 CV_Assert(q->corners[i]); in orderFoundConnectedQuads()
812 orderQuad(*neighbor, *(q->corners[i]), (i+2)&3); // set in order in orderFoundConnectedQuads()
890 ChessBoardQuad& q = *quads[i]; in orderFoundConnectedQuads() local
891 if (q.count != 4) in orderFoundConnectedQuads()
895 int col = q.col; in orderFoundConnectedQuads()
896 int row = q.row; in orderFoundConnectedQuads()
[all …]
/device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/drivers/usb/usb_host/inc/
Duh_msgq.h41 void msgq_init(MSGQ * q, void * msgs, int pack_len, int msg_len);
42 void msgq_show(MSGQ *q);
44 void msgq_empty(MSGQ *q);
45 int msgq_add(MSGQ * q, void * msg);
46 int msgq_get(MSGQ * q, void * msg);
48 int msgq_register(MSGQ * q, void * msg);
49 void msgq_rewind(MSGQ *q);
50 void * msgq_find(MSGQ * q, int msg_id); // find the msg callback function according to the msg_id
/device/soc/esp/esp32/components/esp_lwip/port/netif/
Dwlanif.c133 struct pbuf *q = p; in low_level_output() local
136 if(q->next == NULL) { in low_level_output()
137 ret = esp_netif_transmit_wrap(esp_netif, q->payload, q->len, q); in low_level_output()
141 q = pbuf_alloc(PBUF_RAW_TX, p->tot_len, PBUF_RAM); in low_level_output()
142 if (q != NULL) { in low_level_output()
143 q->l2_owner = NULL; in low_level_output()
144 pbuf_copy(q, p); in low_level_output()
148 ret = esp_netif_transmit_wrap(esp_netif, q->payload, q->len, q); in low_level_output()
150 pbuf_free(q); in low_level_output()
/device/board/isoftstone/zhiyuan/kernel/driver/ramfs/
Drootfs_arm64.cpio.gz
/device/board/kaihong/khdvk_3566b/wifi/bcmdhd_hdf/bcmdhd/include/
Dhnd_pktq.h137 struct pktq_prec q[PKTQ_MAX_PREC]; member
143 struct pktq_prec q; member
233 #define pktqprec_max_pkts(pq, prec) ((pq)->q[prec].max_pkts)
234 #define pktqprec_n_pkts(pq, prec) ((pq)->q[prec].n_pkts)
235 #define pktqprec_empty(pq, prec) ((pq)->q[prec].n_pkts == 0)
236 #define pktqprec_peek(pq, prec) ((pq)->q[prec].head)
237 #define pktqprec_peek_tail(pq, prec) ((pq)->q[prec].tail)
238 #define spktq_peek_tail(pq) ((pq)->q.tail)
244 ((pq)->q[prec].max_pkts - (pq)->q[prec].n_pkts)
245 #define pktqprec_full(pq, prec) ((pq)->q[prec].n_pkts >= (pq)->q[prec].max_pkts)
[all …]
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/
Dhnd_pktq.h128 struct pktq_prec q[PKTQ_MAX_PREC]; member
134 struct pktq_prec q; member
215 #define pktqprec_max_pkts(pq, prec) ((pq)->q[prec].max_pkts)
216 #define pktqprec_n_pkts(pq, prec) ((pq)->q[prec].n_pkts)
217 #define pktqprec_empty(pq, prec) ((pq)->q[prec].n_pkts == 0)
218 #define pktqprec_peek(pq, prec) ((pq)->q[prec].head)
219 #define pktqprec_peek_tail(pq, prec) ((pq)->q[prec].tail)
220 #define spktq_peek_tail(pq) ((pq)->q.tail)
225 #define pktqprec_avail_pkts(pq, prec) ((pq)->q[prec].max_pkts - (pq)->q[prec].n_pkts)
226 #define pktqprec_full(pq, prec) ((pq)->q[prec].n_pkts >= (pq)->q[prec].max_pkts)
[all …]
/device/board/isoftstone/yangfan/common/seetafaceengine/opencv2/modules/calib3d/include/
Ddls.h168 double p = 0, q = 0, r = 0, s = 0, z = 0, t, w, x, y; in hqr2() local
215 q = p * p + w; in hqr2()
216 z = std::sqrt(std::abs(q)); in hqr2()
223 if (q >= 0) { in hqr2()
239 q = z / s; in hqr2()
240 r = std::sqrt(p * p + q * q); in hqr2()
242 q = q / r; in hqr2()
248 H[n1 - 1][j] = q * z + p * H[n1][j]; in hqr2()
249 H[n1][j] = q * H[n1][j] - p * z; in hqr2()
256 H[i][n1 - 1] = q * z + p * H[i][n1]; in hqr2()
[all …]
/device/board/isoftstone/yangfan/kernel/src/driv/net/rockchip_wlan/rkwifi/bcmdhd/include/
Dhnd_pktq.h119 struct pktq_prec q[PKTQ_MAX_PREC]; member
125 struct pktq_prec q; member
206 #define pktqprec_max_pkts(pq, prec) ((pq)->q[prec].max_pkts)
207 #define pktqprec_n_pkts(pq, prec) ((pq)->q[prec].n_pkts)
208 #define pktqprec_empty(pq, prec) ((pq)->q[prec].n_pkts == 0)
209 #define pktqprec_peek(pq, prec) ((pq)->q[prec].head)
210 #define pktqprec_peek_tail(pq, prec) ((pq)->q[prec].tail)
211 #define spktq_peek_tail(pq) ((pq)->q.tail)
216 #define pktqprec_avail_pkts(pq, prec) ((pq)->q[prec].max_pkts - (pq)->q[prec].n_pkts)
217 #define pktqprec_full(pq, prec) ((pq)->q[prec].n_pkts >= (pq)->q[prec].max_pkts)
[all …]
/device/board/hpmicro/hpm6750evk2/liteos_m/lwip_adapter/
Dethernetif.c83 struct pbuf *q; in low_level_output() local
97 for (q = p; q != NULL; q = q->next) in low_level_output()
100 bytes_left_to_copy = q->len; in low_level_output()
108 (uint8_t *)((uint8_t *)q->payload + payload_offset), in low_level_output()
131 (uint8_t *)((uint8_t *)q->payload + payload_offset), in low_level_output()
159 struct pbuf *p = NULL, *q = NULL; in low_level_input() local
189 for (q = p; q != NULL; q = q->next) in low_level_input()
191 bytes_left_to_copy = q->len; in low_level_input()
198 …memcpy((uint8_t *)((uint8_t *)q->payload + payload_offset), (uint8_t *)((uint8_t *)buffer + buffer… in low_level_input()
209 …memcpy((uint8_t *)((uint8_t *)q->payload + payload_offset), (uint8_t *)((uint8_t *)buffer + buffer… in low_level_input()
/device/soc/hpmicro/drivers/platform/
Duart.c51 static uint32_t queue_get_cnt(struct UartQueue *q) in queue_get_cnt() argument
53 return (q->wr + HPM_QUEUE_SIZE - q->rd) % HPM_QUEUE_SIZE; in queue_get_cnt()
56 static int queue_push(struct UartQueue *q, uint8_t *data, uint16_t len) in queue_push() argument
60 q->buf[q->wr] = data[i]; in queue_push()
61 q->wr++; in queue_push()
62 q->wr %= HPM_QUEUE_SIZE; in queue_push()
65 if (q->wr == q->rd) { in queue_push()
66 q->rd++; in queue_push()
67 q->wr %= HPM_QUEUE_SIZE; in queue_push()
75 static uint16_t queue_pop(struct UartQueue *q, uint8_t *data, uint16_t len) in queue_pop() argument
[all …]

12345678