/base/notification/common_event_service/interfaces/kits/ndk/src/ |
H A D | oh_commonevent_parameters_parse.cpp | 164 parameters->head = static_cast<CParameters *>(malloc(sizeof(CParameters) * size)); in ParseParameters() 165 if (parameters->head == nullptr) { in ParseParameters() 170 auto ptr = parameters->head + count; in ParseParameters() 175 return ClearParametersPtr(¶meters->head, count, true); in ParseParameters() 266 if (parameters != nullptr && parameters->head != nullptr) { in FreeCCommonEventData() 268 auto ptr = parameters->head[i]; in FreeCCommonEventData() 274 free(parameters->head); in FreeCCommonEventData() 275 parameters->head = nullptr; in FreeCCommonEventData() 284 if (parameters->head == nullptr) { in HasKeyFromParameters() 285 EVENT_LOGI("head i in HasKeyFromParameters() [all...] |
/kernel/linux/linux-5.10/arch/powerpc/oprofile/cell/ |
H A D | spu_task_sync.c | 44 * head. Head is the index to store the next value. in spu_buff_add() 46 * in the queue, i.e. head and tail can't be equal. in spu_buff_add() 51 * is called to lock the buffer, head and tail. in spu_buff_add() 55 if (spu_buff[spu].head >= spu_buff[spu].tail) { in spu_buff_add() 56 if ((spu_buff[spu].head - spu_buff[spu].tail) in spu_buff_add() 60 } else if (spu_buff[spu].tail > spu_buff[spu].head) { in spu_buff_add() 61 if ((spu_buff[spu].tail - spu_buff[spu].head) in spu_buff_add() 67 spu_buff[spu].buff[spu_buff[spu].head] = value; in spu_buff_add() 68 spu_buff[spu].head++; in spu_buff_add() 70 if (spu_buff[spu].head > in spu_buff_add() [all...] |
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/resctrl/ |
H A D | monitor.c | 298 struct list_head *head; in mon_event_count() local 310 head = &rdtgrp->mon.crdtgrp_list; in mon_event_count() 313 list_for_each_entry(entry, head, mon.crdtgrp_list) { in mon_event_count() 363 struct list_head *head; in update_mba_bw() local 388 head = &rgrp->mon.crdtgrp_list; in update_mba_bw() 389 list_for_each_entry(entry, head, mon.crdtgrp_list) { in update_mba_bw() 433 list_for_each_entry(entry, head, mon.crdtgrp_list) { in update_mba_bw() 509 struct list_head *head; in mbm_handle_overflow() local 524 head = &prgrp->mon.crdtgrp_list; in mbm_handle_overflow() 525 list_for_each_entry(crgrp, head, mo in mbm_handle_overflow() [all...] |
/kernel/linux/linux-5.10/drivers/block/aoe/ |
H A D | aoedev.c | 187 f = list_entry(pos, struct frame, head); in downdev_frame() 200 struct list_head *head, *pos, *nx; in aoedev_downdev() local 207 head = &d->factive[i]; in aoedev_downdev() 208 list_for_each_safe(pos, nx, head) in aoedev_downdev() 211 head = &d->rexmitq; in aoedev_downdev() 212 list_for_each_safe(pos, nx, head) in aoedev_downdev() 502 struct list_head *pos, *nx, *head; in freetgt() local 511 head = &t->ffree; in freetgt() 512 list_for_each_safe(pos, nx, head) { in freetgt() 514 f = list_entry(pos, struct frame, head); in freetgt() [all...] |
/kernel/linux/linux-5.10/tools/testing/vsock/ |
H A D | vsock_diag_test.c | 104 static void print_vsock_stats(FILE *fp, struct list_head *head) in print_vsock_stats() argument 108 list_for_each_entry(st, head, list) in print_vsock_stats() 112 static struct vsock_stat *find_vsock_stat(struct list_head *head, int fd) in find_vsock_stat() argument 122 list_for_each_entry(st, head, list) in find_vsock_stat() 130 static void check_no_sockets(struct list_head *head) in check_no_sockets() argument 132 if (!list_empty(head)) { in check_no_sockets() 134 print_vsock_stats(stderr, head); in check_no_sockets() 139 static void check_num_sockets(struct list_head *head, int expected) in check_num_sockets() argument 144 list_for_each(node, head) in check_num_sockets() 150 print_vsock_stats(stderr, head); in check_num_sockets() [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/hw/vmw_pvrdma/ |
H A D | pvrdma_cq.c | 80 unsigned int head; in pvrdma_req_notify_cq() local 83 cq->ibcq.cqe, &head); in pvrdma_req_notify_cq() 277 unsigned int head; in _pvrdma_flush_cqe() local 285 cq->ibcq.cqe, &head); in _pvrdma_flush_cqe() 294 items = (tail > head) ? (tail - head) : in _pvrdma_flush_cqe() 295 (cq->ibcq.cqe - head + tail); in _pvrdma_flush_cqe() 324 unsigned int head; in pvrdma_poll_one() local 330 cq->ibcq.cqe, &head); in pvrdma_poll_one() 344 cqe = get_cqe(cq, head); in pvrdma_poll_one() [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/ |
H A D | sdio.c | 33 q->head = q->tail = 0; in mt76s_alloc_rx_queue() 206 u16 idx = q->head; in mt76s_tx_queue_skb() 216 q->entry[q->head].skb = tx_info.skb; in mt76s_tx_queue_skb() 217 q->entry[q->head].buf_sz = len; in mt76s_tx_queue_skb() 221 q->head = (q->head + 1) % q->ndesc; in mt76s_tx_queue_skb() 244 q->entry[q->head].buf_sz = len; in mt76s_tx_queue_skb_raw() 245 q->entry[q->head].skb = skb; in mt76s_tx_queue_skb_raw() 246 q->head = (q->head in mt76s_tx_queue_skb_raw() [all...] |
/kernel/linux/linux-5.10/drivers/tty/ |
H A D | ehv_bytechan.c | 53 unsigned int head; /* circular buffer head */ member 416 CIRC_CNT_TO_END(bc->head, bc->tail, BUF_SIZE), in ehv_bc_tx_dequeue() 425 count = CIRC_CNT(bc->head, bc->tail, BUF_SIZE); in ehv_bc_tx_dequeue() 430 if (CIRC_CNT(bc->head, bc->tail, BUF_SIZE)) in ehv_bc_tx_dequeue() 479 len = CIRC_SPACE_TO_END(bc->head, bc->tail, BUF_SIZE); in ehv_bc_tty_write() 483 memcpy(bc->buf + bc->head, s, len); in ehv_bc_tty_write() 484 bc->head = (bc->head + len) & (BUF_SIZE - 1); in ehv_bc_tty_write() 546 count = CIRC_SPACE(bc->head, b in ehv_bc_tty_write_room() [all...] |
/kernel/linux/linux-5.10/fs/orangefs/ |
H A D | devorangefs-req.c | 370 } head; in orangefs_devreq_write_iter() local 373 int head_size = sizeof(head); in orangefs_devreq_write_iter() 388 if (!copy_from_iter_full(&head, head_size, iter)) { in orangefs_devreq_write_iter() 389 gossip_err("%s: failed to copy head.\n", __func__); in orangefs_devreq_write_iter() 393 if (head.version < ORANGEFS_MINIMUM_USERSPACE_VERSION) { in orangefs_devreq_write_iter() 397 head.version, in orangefs_devreq_write_iter() 402 if (head.magic != ORANGEFS_DEVREQ_MAGIC) { in orangefs_devreq_write_iter() 408 orangefs_userspace_version = head.version; in orangefs_devreq_write_iter() 409 } else if (orangefs_userspace_version != head.version) { in orangefs_devreq_write_iter() 415 op = orangefs_devreq_remove_op(head in orangefs_devreq_write_iter() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/ |
H A D | nouveau_usif.c | 44 struct list_head head; member 58 list_for_each_entry(ntfy, &cli->notifys, head) { in usif_notify_find() 68 list_del(&ntfy->head); in usif_notify_dtor() 160 list_add(&ntfy->head, &cli->notifys); in usif_notify_new() 250 struct list_head head; member 259 list_del(&object->head); in usif_object_dtor() 276 list_add(&object->head, &cli->objects); in usif_object_new() 361 list_del(&object->head); in usif_ioctl() 384 list_for_each_entry_safe(notify, ntemp, &cli->notifys, head) { in usif_client_fini() 388 list_for_each_entry_safe(object, otemp, &cli->objects, head) { in usif_client_fini() [all...] |
/kernel/linux/linux-6.6/fs/efivarfs/ |
H A D | vars.c | 292 struct list_head *head) in variable_is_present() 299 list_for_each_entry_safe(entry, n, head, list) { in variable_is_present() 364 * @duplicates: error if we encounter duplicates on @head? 365 * @head: initialised head of variable list 373 void *data, bool duplicates, struct list_head *head) in efivar_init() 418 head)) { in efivar_init() 458 * @head: list head 462 int efivar_entry_add(struct efivar_entry *entry, struct list_head *head) in efivar_entry_add() argument 291 variable_is_present(efi_char16_t *variable_name, efi_guid_t *vendor, struct list_head *head) variable_is_present() argument 372 efivar_init(int (*func)(efi_char16_t *, efi_guid_t, unsigned long, void *), void *data, bool duplicates, struct list_head *head) efivar_init() argument 480 __efivar_entry_add(struct efivar_entry *entry, struct list_head *head) __efivar_entry_add() argument 709 efivar_entry_iter(int (*func)(struct efivar_entry *, void *), struct list_head *head, void *data) efivar_entry_iter() argument [all...] |
/kernel/linux/linux-6.6/fs/orangefs/ |
H A D | devorangefs-req.c | 370 } head; in orangefs_devreq_write_iter() local 373 int head_size = sizeof(head); in orangefs_devreq_write_iter() 388 if (!copy_from_iter_full(&head, head_size, iter)) { in orangefs_devreq_write_iter() 389 gossip_err("%s: failed to copy head.\n", __func__); in orangefs_devreq_write_iter() 393 if (head.version < ORANGEFS_MINIMUM_USERSPACE_VERSION) { in orangefs_devreq_write_iter() 397 head.version, in orangefs_devreq_write_iter() 402 if (head.magic != ORANGEFS_DEVREQ_MAGIC) { in orangefs_devreq_write_iter() 408 orangefs_userspace_version = head.version; in orangefs_devreq_write_iter() 409 } else if (orangefs_userspace_version != head.version) { in orangefs_devreq_write_iter() 415 op = orangefs_devreq_remove_op(head in orangefs_devreq_write_iter() [all...] |
/kernel/linux/linux-6.6/drivers/tty/ |
H A D | ehv_bytechan.c | 53 unsigned int head; /* circular buffer head */ member 416 CIRC_CNT_TO_END(bc->head, bc->tail, BUF_SIZE), in ehv_bc_tx_dequeue() 425 count = CIRC_CNT(bc->head, bc->tail, BUF_SIZE); in ehv_bc_tx_dequeue() 430 if (CIRC_CNT(bc->head, bc->tail, BUF_SIZE)) in ehv_bc_tx_dequeue() 479 len = CIRC_SPACE_TO_END(bc->head, bc->tail, BUF_SIZE); in ehv_bc_tty_write() 483 memcpy(bc->buf + bc->head, s, len); in ehv_bc_tty_write() 484 bc->head = (bc->head + len) & (BUF_SIZE - 1); in ehv_bc_tty_write() 546 count = CIRC_SPACE(bc->head, b in ehv_bc_tty_write_room() [all...] |
/kernel/linux/linux-6.6/drivers/block/aoe/ |
H A D | aoedev.c | 187 f = list_entry(pos, struct frame, head); in downdev_frame() 200 struct list_head *head, *pos, *nx; in aoedev_downdev() local 207 head = &d->factive[i]; in aoedev_downdev() 208 list_for_each_safe(pos, nx, head) in aoedev_downdev() 211 head = &d->rexmitq; in aoedev_downdev() 212 list_for_each_safe(pos, nx, head) in aoedev_downdev() 501 struct list_head *pos, *nx, *head; in freetgt() local 510 head = &t->ffree; in freetgt() 511 list_for_each_safe(pos, nx, head) { in freetgt() 513 f = list_entry(pos, struct frame, head); in freetgt() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
H A D | chan.c | 83 list_del(&cctx->head); in nvkm_chan_cctx_put() 103 cctx = nvkm_list_find(cctx, &chan->cctxs, head, in nvkm_chan_cctx_get() 130 list_add_tail(&cctx->head, &chan->cctxs); in nvkm_chan_cctx_get() 169 if (list_empty(&chan->head)) in nvkm_chan_remove_locked() 175 list_del(&cgrp->head); in nvkm_chan_remove_locked() 178 list_del_init(&chan->head); in nvkm_chan_remove_locked() 202 if (WARN_ON(!list_empty(&chan->head))) { in nvkm_chan_insert() 208 list_add_tail(&chan->head, &cgrp->chans); in nvkm_chan_insert() 211 list_add_tail(&cgrp->head, &cgrp->runl->cgrps); in nvkm_chan_insert() 382 INIT_LIST_HEAD(&chan->head); in nvkm_chan_new_() [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/hw/vmw_pvrdma/ |
H A D | pvrdma_cq.c | 80 unsigned int head; in pvrdma_req_notify_cq() local 83 cq->ibcq.cqe, &head); in pvrdma_req_notify_cq() 280 unsigned int head; in _pvrdma_flush_cqe() local 288 cq->ibcq.cqe, &head); in _pvrdma_flush_cqe() 297 items = (tail > head) ? (tail - head) : in _pvrdma_flush_cqe() 298 (cq->ibcq.cqe - head + tail); in _pvrdma_flush_cqe() 327 unsigned int head; in pvrdma_poll_one() local 333 cq->ibcq.cqe, &head); in pvrdma_poll_one() 347 cqe = get_cqe(cq, head); in pvrdma_poll_one() [all...] |
/kernel/linux/linux-6.6/tools/testing/vsock/ |
H A D | vsock_diag_test.c | 104 static void print_vsock_stats(FILE *fp, struct list_head *head) in print_vsock_stats() argument 108 list_for_each_entry(st, head, list) in print_vsock_stats() 112 static struct vsock_stat *find_vsock_stat(struct list_head *head, int fd) in find_vsock_stat() argument 122 list_for_each_entry(st, head, list) in find_vsock_stat() 130 static void check_no_sockets(struct list_head *head) in check_no_sockets() argument 132 if (!list_empty(head)) { in check_no_sockets() 134 print_vsock_stats(stderr, head); in check_no_sockets() 139 static void check_num_sockets(struct list_head *head, int expected) in check_num_sockets() argument 144 list_for_each(node, head) in check_num_sockets() 150 print_vsock_stats(stderr, head); in check_num_sockets() [all...] |
/third_party/node/lib/internal/ |
H A D | timers.js | 269 this.head = null; 280 this.head = item; 286 // items and the linked list's head or tail pointers as necessary 296 if (item === this.head) 297 this.head = item._idleNext; 432 const queue = outstandingQueue.head !== null ? 434 let immediate = queue.head; 439 queue.head = queue.tail = null; 455 outstandingQueue.head = immediate = prevImmediate._idleNext; 485 outstandingQueue.head [all...] |
/third_party/skia/third_party/externals/freetype/src/gzip/ |
H A D | ftgzip.c | 213 FT_Byte head[4]; in ft_gzip_check_header() local 217 FT_STREAM_READ( head, 4 ) ) in ft_gzip_check_header() 220 /* head[0] && head[1] are the magic numbers; */ in ft_gzip_check_header() 221 /* head[2] is the method, and head[3] the flags */ in ft_gzip_check_header() 222 if ( head[0] != 0x1F || in ft_gzip_check_header() 223 head[1] != 0x8B || in ft_gzip_check_header() 224 head[2] != Z_DEFLATED || in ft_gzip_check_header() 225 (head[ in ft_gzip_check_header() [all...] |
/kernel/linux/linux-5.10/net/sched/ |
H A D | cls_flower.c | 309 struct cls_fl_head *head = rcu_dereference_bh(tp->root); in fl_classify() local 314 list_for_each_entry_rcu(mask, &head->masks, list) { in fl_classify() 341 struct cls_fl_head *head; in fl_init() local 343 head = kzalloc(sizeof(*head), GFP_KERNEL); in fl_init() 344 if (!head) in fl_init() 347 spin_lock_init(&head->masks_lock); in fl_init() 348 INIT_LIST_HEAD_RCU(&head->masks); in fl_init() 349 INIT_LIST_HEAD(&head->hw_filters); in fl_init() 350 rcu_assign_pointer(tp->root, head); in fl_init() 382 fl_mask_put(struct cls_fl_head *head, struct fl_flow_mask *mask) fl_mask_put() argument 518 __fl_get(struct cls_fl_head *head, u32 handle) __fl_get() argument 535 struct cls_fl_head *head = fl_head_dereference(tp); __fl_delete() local 563 struct cls_fl_head *head = container_of(to_rcu_work(work), fl_destroy_sleepable() local 575 struct cls_fl_head *head = fl_head_dereference(tp); fl_destroy() local 602 struct cls_fl_head *head = fl_head_dereference(tp); fl_get() local 1821 fl_create_new_mask(struct cls_fl_head *head, struct fl_flow_mask *mask) fl_create_new_mask() argument 1867 fl_check_assign_mask(struct cls_fl_head *head, struct cls_fl_filter *fnew, struct cls_fl_filter *fold, struct fl_flow_mask *mask) fl_check_assign_mask() argument 1983 struct cls_fl_head *head = fl_head_dereference(tp); fl_change() local 2172 struct cls_fl_head *head = fl_head_dereference(tp); fl_delete() local 2187 struct cls_fl_head *head = fl_head_dereference(tp); fl_walk() local 2217 struct cls_fl_head *head = fl_head_dereference(tp); fl_get_next_hw_filter() local 2306 struct cls_fl_head *head = fl_head_dereference(tp); fl_hw_add() local 3194 struct cls_fl_head *head = fl_head_dereference(tp); fl_delete_empty() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/ |
H A D | atarilance.c | 240 /* Get the address of a packet buffer corresponding to a given buffer head */ 241 #define PKTBUF_ADDR(head) (((unsigned char *)(MEM)) + (head)->base) 779 struct lance_tx_head *head; in lance_start_xmit() local 816 head = &(MEM->tx_head[entry]); in lance_start_xmit() 823 head->length = -len; in lance_start_xmit() 824 head->misc = 0; in lance_start_xmit() 825 lp->memcpy_f( PKTBUF_ADDR(head), (void *)skb->data, skb->len ); in lance_start_xmit() 826 head->flag = TMD1_OWN_CHIP | TMD1_ENP | TMD1_STP; in lance_start_xmit() 973 struct lance_rx_head *head in lance_rx() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/amd/ |
H A D | atarilance.c | 240 /* Get the address of a packet buffer corresponding to a given buffer head */ 241 #define PKTBUF_ADDR(head) (((unsigned char *)(MEM)) + (head)->base) 778 struct lance_tx_head *head; in lance_start_xmit() local 815 head = &(MEM->tx_head[entry]); in lance_start_xmit() 822 head->length = -len; in lance_start_xmit() 823 head->misc = 0; in lance_start_xmit() 824 lp->memcpy_f( PKTBUF_ADDR(head), (void *)skb->data, skb->len ); in lance_start_xmit() 825 head->flag = TMD1_OWN_CHIP | TMD1_ENP | TMD1_STP; in lance_start_xmit() 972 struct lance_rx_head *head in lance_rx() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/google/gve/ |
H A D | gve_rx_dqo.c | 78 buffer_id = list->head; in gve_dequeue_buf_state() 85 list->head = buf_state->next; in gve_dequeue_buf_state() 103 if (list->head == -1) { in gve_enqueue_buf_state() 104 list->head = buffer_id; in gve_enqueue_buf_state() 125 if (unlikely(rx->dqo.used_buf_states.head == -1)) in gve_get_recycled_buf_state() 291 rx->dqo.recycled_buf_states.head = -1; in gve_rx_alloc_ring_dqo() 293 rx->dqo.used_buf_states.head = -1; in gve_rx_alloc_ring_dqo() 381 num_full_slots = (bufq->tail - bufq->head) & bufq->mask; in gve_rx_post_buffers_dqo() 770 &complq->desc_ring[complq->head]; in gve_rx_poll_dqo() 778 prefetch(&complq->desc_ring[(complq->head in gve_rx_poll_dqo() [all...] |
/kernel/linux/linux-5.10/tools/perf/arch/x86/util/ |
H A D | intel-pt.c | 1053 void *data, size_t head) in intel_pt_compare_ref() 1058 if (head > ref_offset || head < ref_end - buf_size) in intel_pt_compare_ref() 1060 } else if (head > ref_offset && head < ref_end) { in intel_pt_compare_ref() 1069 void *data, size_t head) in intel_pt_copy_ref() 1071 if (head >= ref_size) { in intel_pt_copy_ref() 1072 memcpy(ref_buf, data + head - ref_size, ref_size); in intel_pt_copy_ref() 1074 memcpy(ref_buf, data, head); in intel_pt_copy_ref() 1075 ref_size -= head; in intel_pt_copy_ref() 1051 intel_pt_compare_ref(void *ref_buf, size_t ref_offset, size_t ref_size, size_t buf_size, void *data, size_t head) intel_pt_compare_ref() argument 1068 intel_pt_copy_ref(void *ref_buf, size_t ref_size, size_t buf_size, void *data, size_t head) intel_pt_copy_ref() argument 1080 intel_pt_wrapped(struct intel_pt_recording *ptr, int idx, struct auxtrace_mmap *mm, unsigned char *data, u64 head) intel_pt_wrapped() argument 1114 intel_pt_find_snapshot(struct auxtrace_record *itr, int idx, struct auxtrace_mmap *mm, unsigned char *data, u64 *head, u64 *old) intel_pt_find_snapshot() argument [all...] |
/kernel/linux/linux-6.6/drivers/platform/surface/aggregator/ |
H A D | ssh_packet_layer.c | 699 struct list_head *head; in __ssh_ptl_queue_find_entrypoint() local 718 list_for_each(head, &p->ptl->queue.head) { in __ssh_ptl_queue_find_entrypoint() 719 q = list_entry(head, struct ssh_packet, queue_node); in __ssh_ptl_queue_find_entrypoint() 725 list_for_each_prev(head, &p->ptl->queue.head) { in __ssh_ptl_queue_find_entrypoint() 726 q = list_entry(head, struct ssh_packet, queue_node); in __ssh_ptl_queue_find_entrypoint() 729 head = head->next; in __ssh_ptl_queue_find_entrypoint() 735 return head; in __ssh_ptl_queue_find_entrypoint() 742 struct list_head *head; __ssh_ptl_queue_push() local [all...] |