/kernel/linux/linux-6.6/drivers/dma/ |
H A D | virt-dma.c | 88 LIST_HEAD(head); in vchan_complete() 91 list_splice_tail_init(&vc->desc_completed, &head); in vchan_complete() 103 list_for_each_entry_safe(vd, _vd, &head, node) { in vchan_complete() 112 void vchan_dma_desc_free_list(struct virt_dma_chan *vc, struct list_head *head) in vchan_dma_desc_free_list() argument 116 list_for_each_entry_safe(vd, _vd, head, node) { in vchan_dma_desc_free_list()
|
/third_party/jinja2/ |
H A D | nativetypes.py | 25 head = list(islice(values, 2)) 27 if not head: 30 if len(head) == 1: 31 raw = head[0] 36 values = chain(head, values)
|
/third_party/node/deps/v8/third_party/zlib/contrib/optimizations/ |
H A D | insert_string.h | 68 ret = s->head[h & s->hash_mask]; in insert_string_simd() 69 s->head[h & s->hash_mask] = str; in insert_string_simd() 85 * Insert string str in the dictionary and set match_head to the previous head 99 ret = s->head[s->ins_h]; in insert_string_c() 101 ret = s->prev[str & s->w_mask] = s->head[s->ins_h]; in insert_string_c() 103 s->head[s->ins_h] = str; in insert_string_c()
|
/third_party/lwip/src/api/ |
H A D | netbuf.c | 172 * @param head the first netbuf 173 * @param tail netbuf to chain after head, freed by this function, may not be reference after returning 176 netbuf_chain(struct netbuf *head, struct netbuf *tail) in netbuf_chain() argument 178 LWIP_ERROR("netbuf_chain: invalid head", (head != NULL), return;); in netbuf_chain() 180 pbuf_cat(head->p, tail->p); in netbuf_chain() 181 head->ptr = head->p; in netbuf_chain()
|
/third_party/skia/src/core/ |
H A D | SkLRUCache.h | 37 Entry* node = fLRU.head(); in ~SkLRUCache() 41 node = fLRU.head(); in ~SkLRUCache() 51 if (entry != fLRU.head()) { in find() 54 } // else it's already at head position, don't need to do anything in find() 94 for (Entry* e = fLRU.head(); e; e = fLRU.head()) { in reset()
|
/third_party/skia/third_party/externals/zlib/contrib/optimizations/ |
H A D | insert_string.h | 68 ret = s->head[h & s->hash_mask]; in insert_string_simd() 69 s->head[h & s->hash_mask] = str; in insert_string_simd() 85 * Insert string str in the dictionary and set match_head to the previous head 99 ret = s->head[s->ins_h]; in insert_string_c() 101 ret = s->prev[str & s->w_mask] = s->head[s->ins_h]; in insert_string_c() 103 s->head[s->ins_h] = str; in insert_string_c()
|
H A D | inflate.c | 135 state->head = Z_NULL; 686 if (state->head != Z_NULL) 687 state->head->done = -1; 731 if (state->head != Z_NULL) 732 state->head->text = (int)((hold >> 8) & 1); 739 if (state->head != Z_NULL) 740 state->head->time = hold; 747 if (state->head != Z_NULL) { 748 state->head->xflags = (int)(hold & 0xff); 749 state->head [all...] |
/third_party/vk-gl-cts/scripts/ |
H A D | gen_android_bp.py | 98 head, tail = os.path.split(nativePath) 101 while head != None and head != '': 102 head, tail = os.path.split(head)
|
H A D | gen_android_mk.py | 79 head, tail = os.path.split(nativePath) 82 while head != None and head != '': 83 head, tail = os.path.split(head)
|
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/hcc/ |
H A D | hcc_slave.c | 159 hi_u32 hcc_netbuf_list_repeat_check(oal_dev_netbuf_stru *dev_netbuf, oal_dev_netbuf_head_stru *head) in hcc_netbuf_list_repeat_check() argument 165 dev_netbuf_temp = head->next; in hcc_netbuf_list_repeat_check() 166 while ((hi_u32)dev_netbuf_temp != (hi_u32)head) { in hcc_netbuf_list_repeat_check() 179 hi_void hcc_netbuf_add_to_list_tail(oal_dev_netbuf_stru *dev_netbuf, oal_dev_netbuf_head_stru *head) in hcc_netbuf_add_to_list_tail() argument 184 if (hcc_netbuf_list_repeat_check(dev_netbuf, head) != HI_TRUE) { in hcc_netbuf_add_to_list_tail() 190 head->prev->next = dev_netbuf; in hcc_netbuf_add_to_list_tail() 191 dev_netbuf->next = (oal_dev_netbuf_stru *)head; in hcc_netbuf_add_to_list_tail() 192 head->prev = dev_netbuf; in hcc_netbuf_add_to_list_tail() 193 head->num++; in hcc_netbuf_add_to_list_tail() 197 oal_dev_netbuf_stru *hcc_netbuf_delist(oal_dev_netbuf_head_stru *head) in hcc_netbuf_delist() argument [all...] |
/foundation/communication/wifi/wifi/frameworks/cj/src/ |
H A D | wifi_ffi.cpp | 180 cinfo.content.head = reinterpret_cast<uint8_t *>(buf); in SetInfoElemContent() 199 info.infoElems[idx] = CWifiInfoElem{ .eid = each.id, .content = CArrUI8{.head = nullptr, .size = 0}}; in NativeInfoElems2Cj() 211 infos.head = static_cast<CWifiScanInfo *>(malloc(sizeof(CWifiScanInfo) * size)); in ScanInfo2Cj() 212 if (infos.head == nullptr) { in ScanInfo2Cj() 236 infos.head[idx] = info; in ScanInfo2Cj() 316 CArrUI8 arr{.head = nullptr, .size = 0}; in EapConfig2C() 319 arr.head = static_cast<uint8_t *>(malloc(sizeof(uint8_t) * size)); in EapConfig2C() 320 if (arr.head != nullptr) { in EapConfig2C() 323 arr.head[idx] = each; in EapConfig2C() 372 WifiScanInfoArr infos{ .head in FfiWifiGetScanInfoList() [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | rhashtable.h | 408 * rht_for_each_from - iterate over hash chain from given head 410 * @head: the &struct rhash_head to start from 414 #define rht_for_each_from(pos, head, tbl, hash) \ 415 for (pos = head; \ 430 * rht_for_each_entry_from - iterate over hash chain from given head 433 * @head: the &struct rhash_head to start from 438 #define rht_for_each_entry_from(tpos, pos, head, tbl, hash, member) \ 439 for (pos = head; \ 478 * rht_for_each_rcu_from - iterate over rcu hash chain from given head 480 * @head 708 struct rhash_head *head; __rhashtable_insert_fast() local [all...] |
/kernel/linux/linux-5.10/drivers/ps3/ |
H A D | ps3-vuart.c | 71 struct list_head head; member 77 struct list_head head; member 458 const unsigned char *head; member 488 if (list_empty(&priv->tx_list.head)) { in ps3_vuart_write() 519 lb->head = lb->data; in ps3_vuart_write() 524 list_add_tail(&lb->link, &priv->tx_list.head); in ps3_vuart_write() 574 lb->head = lb->data; in ps3_vuart_queue_rx_bytes() 578 list_add_tail(&lb->link, &priv->rx_list.head); in ps3_vuart_queue_rx_bytes() 627 list_for_each_entry_safe(lb, n, &priv->rx_list.head, link) { in ps3_vuart_read() 628 bytes_read = min((unsigned int)(lb->tail - lb->head), byte in ps3_vuart_read() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | qos_conf.c | 69 struct nfp_police_cfg_head head; member 79 struct nfp_police_cfg_head head; member 100 config->head.flags_opts |= cpu_to_be32(NFP_FL_QOS_PPS); in nfp_flower_offload_one_police() 102 config->head.flags_opts |= cpu_to_be32(NFP_FL_QOS_METER); in nfp_flower_offload_one_police() 105 config->head.port = cpu_to_be32(id); in nfp_flower_offload_one_police() 107 config->head.meter_id = cpu_to_be32(id); in nfp_flower_offload_one_police() 337 config->head.flags_opts = cpu_to_be32(NFP_FL_QOS_PPS); in nfp_flower_remove_rate_limiter() 338 config->head.port = cpu_to_be32(netdev_port_id); in nfp_flower_remove_rate_limiter() 357 if (be32_to_cpu(msg->head.flags_opts) & NFP_FL_QOS_METER) in nfp_flower_stats_rlim_reply() 360 netdev_port_id = be32_to_cpu(msg->head in nfp_flower_stats_rlim_reply() 393 struct nfp_police_cfg_head *head; nfp_flower_stats_rlim_request() local [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | rhashtable.h | 416 * rht_for_each_from - iterate over hash chain from given head 418 * @head: the &struct rhash_head to start from 422 #define rht_for_each_from(pos, head, tbl, hash) \ 423 for (pos = head; \ 438 * rht_for_each_entry_from - iterate over hash chain from given head 441 * @head: the &struct rhash_head to start from 446 #define rht_for_each_entry_from(tpos, pos, head, tbl, hash, member) \ 447 for (pos = head; \ 486 * rht_for_each_rcu_from - iterate over rcu hash chain from given head 488 * @head 716 struct rhash_head *head; __rhashtable_insert_fast() local [all...] |
/kernel/linux/linux-6.6/drivers/ps3/ |
H A D | ps3-vuart.c | 71 struct list_head head; member 77 struct list_head head; member 458 const unsigned char *head; member 488 if (list_empty(&priv->tx_list.head)) { in ps3_vuart_write() 519 lb->head = lb->data; in ps3_vuart_write() 524 list_add_tail(&lb->link, &priv->tx_list.head); in ps3_vuart_write() 574 lb->head = lb->data; in ps3_vuart_queue_rx_bytes() 578 list_add_tail(&lb->link, &priv->rx_list.head); in ps3_vuart_queue_rx_bytes() 627 list_for_each_entry_safe(lb, n, &priv->rx_list.head, link) { in ps3_vuart_read() 628 bytes_read = min((unsigned int)(lb->tail - lb->head), byte in ps3_vuart_read() [all...] |
/third_party/libwebsockets/lib/system/metrics/ |
H A D | metrics.c | 40 lws_start_foreach_dll(struct lws_dll2 *, d, owner->head) { in lws_metrics_tag_add() 99 lws_start_foreach_dll_safe(struct lws_dll2 *, d, d1, owner->head) { in lws_metrics_tags_destroy() 114 lws_start_foreach_dll(struct lws_dll2 *, d, owner->head) { in lws_metrics_tags_serialize() 135 lws_start_foreach_dll(struct lws_dll2 *, d, owner->head) { in lws_metrics_tag_get() 169 lws_start_foreach_dll(struct lws_dll2 *, d, dmp->owner.head) { in lws_metrics_periodic_cb() 229 lws_start_foreach_dll(struct lws_dll2 *, d, ctx->owner_mtr_dynpol.head) { in lws_metrics_policy_get_dyn() 417 ctx->owner_mtr_no_pol.head) { in lws_metric_rebind_policies() 456 lws_metric_bucket_t *b = pub->u.hist.head, *b1; in lws_metric_destroy() 458 pub->u.hist.head = NULL; in lws_metric_destroy() 508 lws_start_foreach_dll_safe(struct lws_dll2 *, d, d1, dm->owner.head) { in lws_metric_policy_dyn_destroy() [all...] |
/third_party/python/Lib/ |
H A D | os.py | 210 head, tail = path.split(name) 212 head, tail = path.split(head) 213 if head and tail and not path.exists(head): 215 makedirs(head, exist_ok=exist_ok) 244 head, tail = path.split(name) 246 head, tail = path.split(head) 247 while head an [all...] |
/kernel/linux/linux-5.10/drivers/nvme/host/ |
H A D | core.c | 478 struct nvme_ns_head *head = in nvme_free_ns_head() local 481 nvme_mpath_remove_disk(head); in nvme_free_ns_head() 482 ida_simple_remove(&head->subsys->ns_ida, head->instance); in nvme_free_ns_head() 483 cleanup_srcu_struct(&head->srcu); in nvme_free_ns_head() 484 nvme_put_subsystem(head->subsys); in nvme_free_ns_head() 485 kfree(head); in nvme_free_ns_head() 488 static void nvme_put_ns_head(struct nvme_ns_head *head) in nvme_put_ns_head() argument 490 kref_put(&head->ref, nvme_free_ns_head); in nvme_put_ns_head() 501 nvme_put_ns_head(ns->head); in nvme_free_ns() 1678 nvme_get_ns_from_disk(struct gendisk *disk, struct nvme_ns_head **head, int *srcu_idx) nvme_get_ns_from_disk() argument 1698 nvme_put_ns_from_disk(struct nvme_ns_head *head, int idx) nvme_put_ns_from_disk() argument 1713 nvme_handle_ctrl_ioctl(struct nvme_ns *ns, unsigned int cmd, void __user *argp, struct nvme_ns_head *head, int srcu_idx) nvme_handle_ctrl_ioctl() argument 1742 struct nvme_ns_head *head = NULL; nvme_ioctl() local 2225 struct nvme_ns_head *head = NULL; nvme_pr_command() local 2341 struct nvme_ns_head *head = bdev->bd_disk->private_data; nvme_ns_head_open() local 3388 struct nvme_ns_head *head = dev_to_ns_head(dev); wwid_show() local 3771 struct nvme_ns_head *head; nvme_alloc_ns_head() local 3834 struct nvme_ns_head *head = NULL; nvme_init_ns_head() local [all...] |
H A D | nvme.h | 452 struct nvme_ns_head *head; member 717 struct nvme_ns_head **head, int *srcu_idx); 718 void nvme_put_ns_from_disk(struct nvme_ns_head *head, int idx); 736 int nvme_mpath_alloc_disk(struct nvme_ctrl *ctrl,struct nvme_ns_head *head); 738 void nvme_mpath_remove_disk(struct nvme_ns_head *head); 746 struct nvme_ns *nvme_find_path(struct nvme_ns_head *head); 751 struct nvme_ns_head *head = ns->head; in nvme_mpath_check_last_path() local 753 if (head->disk && list_empty(&head in nvme_mpath_check_last_path() 791 nvme_mpath_alloc_disk(struct nvme_ctrl *ctrl, struct nvme_ns_head *head) nvme_mpath_alloc_disk() argument 800 nvme_mpath_remove_disk(struct nvme_ns_head *head) nvme_mpath_remove_disk() argument [all...] |
/kernel/linux/linux-6.6/net/kcm/ |
H A D | kcmsock.c | 221 static void requeue_rx_msgs(struct kcm_mux *mux, struct sk_buff_head *head) in requeue_rx_msgs() argument 226 while ((skb = skb_dequeue(head))) { in requeue_rx_msgs() 255 struct sk_buff *head) in reserve_rx_kcm() 275 psock->ready_rx_msg = head; in reserve_rx_kcm() 587 struct sk_buff *head; in kcm_write_msgs() local 605 while ((head = skb_peek(&sk->sk_write_queue))) { in kcm_write_msgs() 609 struct kcm_tx_msg *txm = kcm_tx_msg(head); in kcm_write_msgs() 618 skb = head; in kcm_write_msgs() 677 if (skb == head) { in kcm_write_msgs() 693 kfree_skb(head); in kcm_write_msgs() 254 reserve_rx_kcm(struct kcm_psock *psock, struct sk_buff *head) reserve_rx_kcm() argument 750 struct sk_buff *skb = NULL, *head = NULL; kcm_sendmsg() local 1178 struct list_head *head; init_kcm_sock() local 1219 struct list_head *head; kcm_attach() local [all...] |
/third_party/skia/third_party/externals/zlib/ |
H A D | inflate.c | 134 state->head = Z_NULL; 675 if (state->head != Z_NULL) 676 state->head->done = -1; 720 if (state->head != Z_NULL) 721 state->head->text = (int)((hold >> 8) & 1); 728 if (state->head != Z_NULL) 729 state->head->time = hold; 736 if (state->head != Z_NULL) { 737 state->head->xflags = (int)(hold & 0xff); 738 state->head [all...] |
/kernel/linux/linux-5.10/net/sched/ |
H A D | sch_fq_pie.c | 41 * @head: first packet in the flow 50 struct sk_buff *head; member 121 if (!flow->head) in flow_queue_add() 122 flow->head = skb; in flow_queue_add() 228 struct sk_buff *skb = flow->head; in dequeue_head() 230 flow->head = skb->next; in dequeue_head() 240 struct list_head *head; in fq_pie_qdisc_dequeue() local 244 head = &q->new_flows; in fq_pie_qdisc_dequeue() 245 if (list_empty(head)) { in fq_pie_qdisc_dequeue() 246 head in fq_pie_qdisc_dequeue() [all...] |
/kernel/linux/linux-5.10/drivers/s390/block/ |
H A D | dasd_eer.c | 91 int head; member 106 if (eerb->head < eerb->tail) in dasd_eer_get_free_bytes() 107 return eerb->tail - eerb->head - 1; in dasd_eer_get_free_bytes() 108 return eerb->buffersize - eerb->head + eerb->tail -1; in dasd_eer_get_free_bytes() 118 if (eerb->head >= eerb->tail) in dasd_eer_get_filled_bytes() 119 return eerb->head - eerb->tail; in dasd_eer_get_filled_bytes() 120 return eerb->buffersize - eerb->tail + eerb->head; in dasd_eer_get_filled_bytes() 140 headindex = eerb->head / PAGE_SIZE; in dasd_eer_write_buffer() 141 localhead = eerb->head % PAGE_SIZE; in dasd_eer_write_buffer() 146 eerb->head in dasd_eer_write_buffer() [all...] |
/kernel/linux/linux-6.6/drivers/s390/block/ |
H A D | dasd_eer.c | 91 int head; member 106 if (eerb->head < eerb->tail) in dasd_eer_get_free_bytes() 107 return eerb->tail - eerb->head - 1; in dasd_eer_get_free_bytes() 108 return eerb->buffersize - eerb->head + eerb->tail -1; in dasd_eer_get_free_bytes() 118 if (eerb->head >= eerb->tail) in dasd_eer_get_filled_bytes() 119 return eerb->head - eerb->tail; in dasd_eer_get_filled_bytes() 120 return eerb->buffersize - eerb->tail + eerb->head; in dasd_eer_get_filled_bytes() 140 headindex = eerb->head / PAGE_SIZE; in dasd_eer_write_buffer() 141 localhead = eerb->head % PAGE_SIZE; in dasd_eer_write_buffer() 146 eerb->head in dasd_eer_write_buffer() [all...] |