/kernel/linux/linux-6.6/drivers/platform/chrome/wilco_ec/ |
H A D | event.c | 90 * @head: Next index to write to. 96 int head; member 120 /* head==tail when both full and empty, but head==NULL when empty */ in event_queue_empty() 121 return q->head == q->tail && !q->entries[q->head]; in event_queue_empty() 126 /* head==tail when both full and empty, but head!=NULL when full */ in event_queue_full() 127 return q->head == q->tail && q->entries[q->head]; in event_queue_full() [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/vcodec/decoder/ |
H A D | vdec_msg_queue.c | 76 struct list_head *head; in vdec_msg_queue_qbuf() local 78 head = vdec_get_buf_list(msg_ctx->hardware_index, buf); in vdec_msg_queue_qbuf() 79 if (!head) { in vdec_msg_queue_qbuf() 85 list_add_tail(head, &msg_ctx->ready_queue); in vdec_msg_queue_qbuf() 121 struct list_head *head; in vdec_msg_queue_dqbuf() local 144 head = vdec_get_buf_list(msg_ctx->hardware_index, buf); in vdec_msg_queue_dqbuf() 145 if (!head) { in vdec_msg_queue_dqbuf() 150 list_del(head); in vdec_msg_queue_dqbuf()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/dispnv50/ |
H A D | base507c.c | 304 struct nouveau_drm *drm, int head, s32 oclass, u32 interlock_data, in base507c_new_() 308 .id = head, in base507c_new_() 316 "base", head, format, BIT(head), in base507c_new_() 322 &oclass, head, &args, sizeof(args), in base507c_new_() 336 base507c_new(struct nouveau_drm *drm, int head, s32 oclass, in base507c_new() argument 339 return base507c_new_(&base507c, base507c_format, drm, head, oclass, in base507c_new() 340 0x00000002 << (head * 8), pwndw); in base507c_new() 303 base507c_new_(const struct nv50_wndw_func *func, const u32 *format, struct nouveau_drm *drm, int head, s32 oclass, u32 interlock_data, struct nv50_wndw **pwndw) base507c_new_() argument
|
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/ |
H A D | radeon_encoders.c | 59 list_for_each_entry(clone_encoder, &dev->mode_config.encoder_list, head) { in radeon_encoder_clones() 80 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { in radeon_setup_encoder_clones() 217 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { in radeon_link_encoder_connector() 219 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { in radeon_link_encoder_connector() 236 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { in radeon_encoder_set_active_device() 256 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { in radeon_get_connector_for_encoder() 272 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { in radeon_get_connector_for_encoder_init() 290 list_for_each_entry(other_encoder, &dev->mode_config.encoder_list, head) { in radeon_get_external_encoder()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/ |
H A D | ttm_object.c | 108 * @head: List entry for the per-file list of ref-objects. 127 struct list_head head; member 148 hash_for_each_possible_rcu(tfile->ref_hash, hash, head, key) { in ttm_tfile_find_ref_rcu() 163 hash_for_each_possible(tfile->ref_hash, hash, head, key) { in ttm_tfile_find_ref() 335 hash_add_rcu(tfile->ref_hash, &ref->hash.head, ref->hash.key); in ttm_ref_object_add() 338 list_add_tail(&ref->head, &tfile->ref_list); in ttm_ref_object_add() 355 hash_del_rcu(&ref->hash.head); in ttm_ref_object_release() 356 list_del(&ref->head); in ttm_ref_object_release() 399 ref = list_entry(list, struct ttm_ref_object, head); in ttm_object_file_release()
|
/kernel/linux/linux-6.6/tools/perf/tests/shell/ |
H A D | daemon.sh | 118 line=`perf daemon --config ${config} -x: | head -1` 185 line=`perf daemon --config ${config} -x: | head -1` 191 line=`perf daemon --config ${config} -x: | head -2 | tail -1` 199 line=`perf daemon --config ${config} -x: | head -3 | tail -1` 240 line=`perf daemon --config ${config} -x: | head -3 | tail -1` 276 line=`perf daemon --config ${config} -x: | head -3 | tail -1` 363 pid_size=`perf daemon --config ${config} -x: | head -2 | tail -1 | 366 pid_time=`perf daemon --config ${config} -x: | head -3 | tail -1 |
|
/kernel/linux/linux-6.6/net/sched/ |
H A D | sch_etf.c | 35 struct rb_root_cached head; member 113 p = rb_first_cached(&q->head); in etf_peek_timesortedlist() 166 struct rb_node **p = &q->head.rb_root.rb_node, *parent = NULL; in etf_enqueue_timesortedlist() 189 rb_insert_color_cached(&nskb->rbnode, &q->head, leftmost); in etf_enqueue_timesortedlist() 211 rb_erase_cached(&skb->rbnode, &q->head); in timesortedlist_drop() 235 rb_erase_cached(&skb->rbnode, &q->head); in timesortedlist_remove() 420 struct rb_node *p = rb_first_cached(&q->head); in timesortedlist_clear() 427 rb_erase_cached(&skb->rbnode, &q->head); in timesortedlist_clear()
|
/kernel/linux/linux-6.6/tools/bpf/bpftool/ |
H A D | cfg.c | 30 struct bpf_insn *head; member 94 if (bb->head == insn) in func_append_bb() 96 else if (bb->head > insn) in func_append_bb() 106 new_bb->head = insn; in func_append_bb() 208 bb->tail = bb_next(bb)->head - 1; in func_partition_bb_tail() 249 if (bb->head == insn) in func_search_bb_with_head() 404 start_idx = bb->head - func->start; in draw_bb_node() 405 dump_xlated_for_graph(dd, bb->head, bb->tail, start_idx, in draw_bb_node()
|
/kernel/linux/linux-6.6/security/tomoyo/ |
H A D | audit.c | 436 * @head: Pointer to "struct tomoyo_io_buffer". 440 void tomoyo_read_log(struct tomoyo_io_buffer *head) in tomoyo_read_log() argument 444 if (head->r.w_pos) in tomoyo_read_log() 446 kfree(head->read_buf); in tomoyo_read_log() 447 head->read_buf = NULL; in tomoyo_read_log() 457 head->read_buf = ptr->log; in tomoyo_read_log() 458 head->r.w[head->r.w_pos++] = head->read_buf; in tomoyo_read_log()
|
/third_party/mesa3d/src/virtio/vulkan/ |
H A D | vn_feedback.c | 18 struct list_head head; member 152 list_add(&feedback_buf->head, &pool->feedback_buffers); in vn_feedback_pool_grow_locked() 180 head) in vn_feedback_pool_fini() 184 &pool->feedback_buffers, head) in vn_feedback_pool_fini() 210 head); in vn_feedback_pool_alloc_locked() 228 list_first_entry(&pool->free_slots, struct vn_feedback_slot, head); in vn_feedback_pool_alloc() 229 list_del(&slot->head); in vn_feedback_pool_alloc() 264 list_add(&slot->head, &pool->free_slots); in vn_feedback_pool_free()
|
/base/account/os_account/frameworks/appaccount/cj/src/ |
H A D | appaccount_impl.cpp | 251 RetDataCArrString res = { .code = ERR_CJ_INVALID_INSTANCE_CODE, .data = {.head = nullptr, .size = 0}}; in getAuthList() 472 .head = nullptr, .size = 0}}; in selectAccountByOptions() 631 res.head = static_cast<CAppAccountInfo *>(malloc(sizeof(CAppAccountInfo) * in.size())); in Convert2CArrAppAccountInfo() 632 if (res.head == nullptr) { in Convert2CArrAppAccountInfo() 639 res.head[i].owner = MallocCString(owner); in Convert2CArrAppAccountInfo() 642 res.head[i].name = MallocCString(name); in Convert2CArrAppAccountInfo() 656 res.head = static_cast<CAppAccountInfo *>(malloc(sizeof(CAppAccountInfo) * names.size())); in Convert2CArrAppAccountInfo() 657 if (res.head == nullptr) { in Convert2CArrAppAccountInfo() 665 res.head[i] = tmp; in Convert2CArrAppAccountInfo() 677 res.head in Convert2CArrAuthTokenInfo() [all...] |
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/ |
H A D | tcp_nip_output.c | 876 struct nip_hdr_encap head = {0}; in __nip_send_synack() local 885 head.saddr = *saddr; in __nip_send_synack() 886 head.daddr = *daddr; in __nip_send_synack() 887 head.ttl = NIP_DEFAULT_TTL; in __nip_send_synack() 888 head.nexthdr = IPPROTO_TCP; in __nip_send_synack() 889 head.hdr_buf = hdr_buf; in __nip_send_synack() 890 nip_hdr_comm_encap(&head); in __nip_send_synack() 891 head.total_len = head.hdr_buf_pos + skb->len; in __nip_send_synack() 892 nip_update_total_len(&head, hton in __nip_send_synack() [all...] |
/kernel/linux/linux-5.10/drivers/usb/host/ |
H A D | ehci-q.c | 492 /* if we're removing something not at the queue head, in qh_completions() 578 struct list_head *head, in qh_urb_transaction() 595 list_add_tail (&qtd->qtd_list, head); in qh_urb_transaction() 618 list_add_tail (&qtd->qtd_list, head); in qh_urb_transaction() 689 list_add_tail (&qtd->qtd_list, head); in qh_urb_transaction() 725 list_add_tail (&qtd->qtd_list, head); in qh_urb_transaction() 735 return head; in qh_urb_transaction() 738 qtd_list_free (ehci, urb, head); in qh_urb_transaction() 892 * port number in the queue head was 0..N-1 instead of 1..N. in qh_make() 984 struct ehci_qh *head; in qh_link_async() local 575 qh_urb_transaction( struct ehci_hcd *ehci, struct urb *urb, struct list_head *head, gfp_t flags ) qh_urb_transaction() argument 1175 struct list_head *head; submit_single_step_set_feature() local [all...] |
/kernel/linux/linux-5.10/drivers/usb/musb/ |
H A D | cppi_dma.c | 115 c->head = NULL; in cppi_pool_init() 179 /* initialise tx/rx channel head pointers to zero */ in cppi_controller_start() 445 for (bd = rx->head; bd; bd = bd->next) in cppi_dump_rxq() 610 tx->head = bd; in cppi_next_tx_segment() 832 rx->head = bd; in cppi_next_rx_segment() 874 bd = rx->head; in cppi_next_rx_segment() 885 for (d = rx->head; d; d = d->next) in cppi_next_rx_segment() 1016 bd = last ? last->next : rx->head; in cppi_rx_scan() 1098 WARN_ON(rx->head); in cppi_rx_scan() 1105 rx->head, r in cppi_rx_scan() [all...] |
/kernel/linux/linux-5.10/net/sunrpc/ |
H A D | svcsock.c | 500 rqstp->rq_arg.head[0].iov_base = skb->data; in svc_udp_recvfrom() 501 rqstp->rq_arg.head[0].iov_len = len; in svc_udp_recvfrom() 508 if (len <= rqstp->rq_arg.head[0].iov_len) { in svc_udp_recvfrom() 509 rqstp->rq_arg.head[0].iov_len = len; in svc_udp_recvfrom() 513 rqstp->rq_arg.page_len = len - rqstp->rq_arg.head[0].iov_len; in svc_udp_recvfrom() 826 rqstp->rq_arg.head[0].iov_base = page_address(rqstp->rq_pages[0]); in svc_tcp_restore_pages() 913 __be32 *p = (__be32 *)rqstp->rq_arg.head[0].iov_base; in receive_cb_reply() 933 dst = &req->rq_private_buf.head[0]; in receive_cb_reply() 934 src = &rqstp->rq_arg.head[0]; in receive_cb_reply() 1008 if (rqstp->rq_arg.len <= rqstp->rq_arg.head[ in svc_tcp_recvfrom() 1084 const struct kvec *head = xdr->head; svc_tcp_sendmsg() local [all...] |
/kernel/linux/linux-5.10/fs/ext4/ |
H A D | ioctl.c | 687 struct fsmap_head head; in ext4_ioc_getfsmap() local 691 if (copy_from_user(&head, arg, sizeof(struct fsmap_head))) in ext4_ioc_getfsmap() 693 if (memchr_inv(head.fmh_reserved, 0, sizeof(head.fmh_reserved)) || in ext4_ioc_getfsmap() 694 memchr_inv(head.fmh_keys[0].fmr_reserved, 0, in ext4_ioc_getfsmap() 695 sizeof(head.fmh_keys[0].fmr_reserved)) || in ext4_ioc_getfsmap() 696 memchr_inv(head.fmh_keys[1].fmr_reserved, 0, in ext4_ioc_getfsmap() 697 sizeof(head.fmh_keys[1].fmr_reserved))) in ext4_ioc_getfsmap() 703 if (head.fmh_keys[0].fmr_offset || in ext4_ioc_getfsmap() 704 (head in ext4_ioc_getfsmap() [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | rhashtable.c | 117 static void bucket_table_free_rcu(struct rcu_head *head) in bucket_table_free_rcu() argument 119 bucket_table_free(container_of(head, struct bucket_table, rcu)); in bucket_table_free_rcu() 231 struct rhash_head *head, *next, *entry; in rhashtable_rehash_one() local 258 head = rht_ptr(new_tbl->buckets + new_hash, new_tbl, new_hash); in rhashtable_rehash_one() 260 RCU_INIT_POINTER(entry->next, head); in rhashtable_rehash_one() 497 struct rhash_head *head; in rhashtable_lookup_one() local 501 rht_for_each_from(head, rht_ptr(bkt, tbl, hash), tbl, hash) { in rhashtable_lookup_one() 508 ht->p.obj_cmpfn(&arg, rht_obj(ht, head)) : in rhashtable_lookup_one() 509 rhashtable_compare(&arg, rht_obj(ht, head)))) { in rhashtable_lookup_one() 510 pprev = &head in rhashtable_lookup_one() 544 struct rhash_head *head; rhashtable_insert_one() local [all...] |
H A D | iov_iter.c | 336 unsigned int p_head = pipe->head; in sanity() 340 unsigned int i_head = i->head; in sanity() 360 printk(KERN_ERR "head = %d, tail = %d, buffers = %d\n", in sanity() 382 unsigned int i_head = i->head; in copy_page_to_iter_pipe() 416 pipe->head = i_head + 1; in copy_page_to_iter_pipe() 418 i->head = i_head; in copy_page_to_iter_pipe() 486 unsigned int iter_head = i->head; in data_start() 539 pipe->head = iter_head; in push_pipe() 564 i->head = i_head; in copy_pipe_to_iter() 604 i->head in csum_and_copy_to_pipe_iter() 881 struct page *head; page_copy_sane() local [all...] |
/kernel/linux/linux-6.6/drivers/usb/host/ |
H A D | ehci-q.c | 493 /* if we're removing something not at the queue head, in qh_completions() 579 struct list_head *head, in qh_urb_transaction() 596 list_add_tail (&qtd->qtd_list, head); in qh_urb_transaction() 619 list_add_tail (&qtd->qtd_list, head); in qh_urb_transaction() 690 list_add_tail (&qtd->qtd_list, head); in qh_urb_transaction() 726 list_add_tail (&qtd->qtd_list, head); in qh_urb_transaction() 736 return head; in qh_urb_transaction() 739 qtd_list_free (ehci, urb, head); in qh_urb_transaction() 893 * port number in the queue head was 0..N-1 instead of 1..N. in qh_make() 985 struct ehci_qh *head; in qh_link_async() local 576 qh_urb_transaction( struct ehci_hcd *ehci, struct urb *urb, struct list_head *head, gfp_t flags ) qh_urb_transaction() argument 1176 struct list_head *head; ehci_submit_single_step_set_feature() local [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | rhashtable.c | 117 static void bucket_table_free_rcu(struct rcu_head *head) in bucket_table_free_rcu() argument 119 bucket_table_free(container_of(head, struct bucket_table, rcu)); in bucket_table_free_rcu() 231 struct rhash_head *head, *next, *entry; in rhashtable_rehash_one() local 260 head = rht_ptr(new_tbl->buckets + new_hash, new_tbl, new_hash); in rhashtable_rehash_one() 262 RCU_INIT_POINTER(entry->next, head); in rhashtable_rehash_one() 500 struct rhash_head *head; in rhashtable_lookup_one() local 504 rht_for_each_from(head, rht_ptr(bkt, tbl, hash), tbl, hash) { in rhashtable_lookup_one() 511 ht->p.obj_cmpfn(&arg, rht_obj(ht, head)) : in rhashtable_lookup_one() 512 rhashtable_compare(&arg, rht_obj(ht, head)))) { in rhashtable_lookup_one() 513 pprev = &head in rhashtable_lookup_one() 547 struct rhash_head *head; rhashtable_insert_one() local [all...] |
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/ |
H A D | notification_utils.cpp | 50 auto displayDevice = distributedOption->supportDisplayDevices.head[i]; in GetNotificationSupportDisplayDevices() 73 auto operateDevice = distributedOption->supportOperateDevices.head[i]; in GetNotificationSupportOperateDevices() 424 if (strcpy_s(str, STR_MAX_SIZE, result->lines.head[i]) != EOK) { in GetNotificationMultiLineContentLines() 521 if (strcpy_s(str, STR_MAX_SIZE, contentResult->button.names.head[i]) != EOK) { in GetNotificationLocalLiveViewButton() 530 int64_t id = contentResult->button.icons.head[i]; in GetNotificationLocalLiveViewButton() 906 CArrI64 vibrationValues = { .head = NULL, .size = 0 }; in SetNotificationSlot() 909 int64_t* head = static_cast<int64_t *>(malloc(sizeof(int64_t) * vec.size())); in SetNotificationSlot() local 910 if (head == nullptr) { in SetNotificationSlot() 915 LOGE("SetNotificationSlot malloc vibrationValues.head failed."); in SetNotificationSlot() 920 head[ in SetNotificationSlot() [all...] |
/kernel/linux/linux-6.6/drivers/tty/ |
H A D | n_tty.c | 222 size_t head = ldata->icanon ? ldata->canon_head : ldata->commit_head; in chars_in_buffer() local 224 return head - ldata->read_tail; in chars_in_buffer() 759 size_t head; in commit_echoes() local 762 head = ldata->echo_head; in commit_echoes() 763 ldata->echo_mark = head; in commit_echoes() 769 nr = head - ldata->echo_tail; in commit_echoes() 776 ldata->echo_commit = head; in commit_echoes() 957 size_t head; in eraser() local 988 head = ldata->read_head; in eraser() 992 head in eraser() 1534 size_t head = MASK(ldata->read_head); n_tty_receive_buf_real_raw() local 1965 size_t head = smp_load_acquire(&ldata->commit_head); copy_from_read_buf() local 2481 size_t nr, head, tail; inq_canon() local [all...] |
/kernel/linux/linux-6.6/net/batman-adv/ |
H A D | bridge_loop_avoidance.c | 222 struct hlist_head *head; in batadv_claim_hash_find() local 231 head = &hash->table[index]; in batadv_claim_hash_find() 234 hlist_for_each_entry_rcu(claim, head, hash_entry) { in batadv_claim_hash_find() 262 struct hlist_head *head; in batadv_backbone_hash_find() local 274 head = &hash->table[index]; in batadv_backbone_hash_find() 277 hlist_for_each_entry_rcu(backbone_gw, head, hash_entry) { in batadv_backbone_hash_find() 302 struct hlist_head *head; in batadv_bla_del_backbone_claims() local 312 head = &hash->table[i]; in batadv_bla_del_backbone_claims() 317 head, hash_entry) { in batadv_bla_del_backbone_claims() 594 struct hlist_head *head; in batadv_bla_answer_request() local 1223 struct hlist_head *head; batadv_bla_purge_backbone_gw() local 1278 struct hlist_head *head; batadv_bla_purge_claims() local 1333 struct hlist_head *head; batadv_bla_update_orig_address() local 1430 struct hlist_head *head; batadv_bla_periodic_work() local 1736 struct hlist_head *head; batadv_bla_is_backbone_gw_orig() local [all...] |
/third_party/mesa3d/src/gallium/auxiliary/hud/ |
H A D | hud_context.c | 28 /* This head-up display module can draw transparent graphs on top of what 354 LIST_FOR_EACH_ENTRY(gr, &pane->graph_list, head) { in hud_pane_accumulate_vertices() 410 LIST_FOR_EACH_ENTRY(gr, &pane->graph_list, head) { in hud_pane_accumulate_vertices_simple() 429 LIST_FOR_EACH_ENTRY(gr, &pane->graph_list, head) { in hud_pane_draw_colored_objects() 439 LIST_FOR_EACH_ENTRY(gr, &pane->graph_list, head) { in hud_pane_draw_colored_objects() 606 LIST_FOR_EACH_ENTRY(pane, &hud->pane_list, head) { in hud_draw_results() 634 LIST_FOR_EACH_ENTRY(pane, &hud->pane_list, head) { in hud_start_queries() 635 LIST_FOR_EACH_ENTRY(gr, &pane->graph_list, head) { in hud_start_queries() 682 LIST_FOR_EACH_ENTRY(pane, &hud->pane_list, head) { in hud_stop_queries() 683 LIST_FOR_EACH_ENTRY(gr, &pane->graph_list, head) { in hud_stop_queries() [all...] |
/kernel/linux/linux-5.10/drivers/vhost/ |
H A D | net.c | 104 int head; member 153 if (rxq->tail != rxq->head) in vhost_net_buf_get_ptr() 154 return rxq->queue[rxq->head]; in vhost_net_buf_get_ptr() 161 return rxq->tail - rxq->head; in vhost_net_buf_get_size() 166 return rxq->tail == rxq->head; in vhost_net_buf_is_empty() 172 ++rxq->head; in vhost_net_buf_consume() 180 rxq->head = 0; in vhost_net_buf_produce() 191 ptr_ring_unconsume(nvq->rx_ring, rxq->queue + rxq->head, in vhost_net_buf_unproduce() 194 rxq->head = rxq->tail = 0; in vhost_net_buf_unproduce() 225 rxq->head in vhost_net_buf_init() 773 int head; handle_tx_copy() local 862 int head; handle_tx_zerocopy() local 987 struct sk_buff *head; peek_head_len() local [all...] |