/third_party/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-avs/ |
H A D | avs.c | 52 int head; member 91 n = ((size_t)(m->head - m->tail) % sizeof(m->buf)); in use_buffer_50ms() 98 n = ((size_t)(m->head - m->tail) % sizeof(m->buf)); in use_buffer_50ms() 127 n = sizeof(m->buf) - ((size_t)(m->head - m->tail) % sizeof(m->buf)); in ss_avs_metadata_rx() 129 (int)len, (int)m->head, (int)m->tail, (int)n); in ss_avs_metadata_rx() 138 if (m->head < m->tail) /* |****h-------t**| */ in ss_avs_metadata_rx() 139 memcpy(&m->buf[m->head], buf, len); in ss_avs_metadata_rx() 141 n1 = sizeof(m->buf) - (size_t)m->head; in ss_avs_metadata_rx() 144 memcpy(&m->buf[m->head], buf, n1); in ss_avs_metadata_rx() 149 m->head in ss_avs_metadata_rx() [all...] |
/third_party/nghttp2/src/ |
H A D | shrpx_dns_tracker.cc | 51 auto head = qlist.head; in ~DNSTracker() local 52 qlist.remove(head); in ~DNSTracker() 53 head->status = DNSResolverStatus::ERROR; in ~DNSTracker() 54 head->in_qlist = false; in ~DNSTracker() 262 auto head = qlist.head; in add_to_qlist() 263 qlist.remove(head); in add_to_qlist() 264 head->status = status; in add_to_qlist() 265 head in add_to_qlist() [all...] |
/third_party/skia/third_party/externals/freetype/src/base/ |
H A D | ftutil.c | 252 cur = list->head; in FT_EXPORT_DEF() 285 list->head = node; in FT_List_Add() 303 after = list->head; in FT_List_Insert() 313 list->head = node; in FT_List_Insert() 335 list->head = after; in FT_List_Remove() 371 node->next = list->head; in FT_List_Up() 372 list->head->prev = node; in FT_List_Up() 373 list->head = node; in FT_List_Up() 391 cur = list->head; in FT_EXPORT_DEF() 423 cur = list->head; in FT_List_Finalize() [all...] |
/kernel/linux/linux-5.10/drivers/crypto/caam/ |
H A D | jr.c | 206 int hw_idx, sw_idx, i, head, tail; in caam_jr_dequeue() local 217 head = READ_ONCE(jrp->head); in caam_jr_dequeue() 222 for (i = 0; CIRC_CNT(head, tail + i, JOBR_DEPTH) >= 1; i++) { in caam_jr_dequeue() 230 BUG_ON(CIRC_CNT(head, tail + i, JOBR_DEPTH) <= 0); in caam_jr_dequeue() 270 } while (CIRC_CNT(head, tail, JOBR_DEPTH) >= 1 && in caam_jr_dequeue() 339 * caam_jr_enqueue() - Enqueue a job descriptor head. Returns -EINPROGRESS 372 int head, tail, desc_size; in caam_jr_enqueue() local 384 head = jrp->head; in caam_jr_enqueue() [all...] |
/kernel/linux/linux-5.10/drivers/dma-buf/ |
H A D | udmabuf.c | 164 struct udmabuf_create_list *head, in udmabuf_create() 181 for (i = 0; i < head->count; i++) { in udmabuf_create() 202 for (i = 0; i < head->count; i++) { in udmabuf_create() 244 if (head->flags & UDMABUF_FLAGS_CLOEXEC) in udmabuf_create() 261 struct udmabuf_create_list head; in udmabuf_ioctl_create() local 268 head.flags = create.flags; in udmabuf_ioctl_create() 269 head.count = 1; in udmabuf_ioctl_create() 274 return udmabuf_create(filp->private_data, &head, &list); in udmabuf_ioctl_create() 279 struct udmabuf_create_list head; in udmabuf_ioctl_create_list() local 284 if (copy_from_user(&head, (voi in udmabuf_ioctl_create_list() 163 udmabuf_create(struct miscdevice *device, struct udmabuf_create_list *head, struct udmabuf_create_item *list) udmabuf_create() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
H A D | hclgevf_cmd.c | 28 int head) in hclgevf_is_valid_csq_clean_head() 34 return head >= ntc && head <= ntu; in hclgevf_is_valid_csq_clean_head() 36 return head >= ntc || head <= ntu; in hclgevf_is_valid_csq_clean_head() 44 u32 head; in hclgevf_cmd_csq_clean() local 46 head = hclgevf_read_dev(hw, HCLGEVF_NIC_CSQ_HEAD_REG); in hclgevf_cmd_csq_clean() 47 rmb(); /* Make sure head is ready before touch any data */ in hclgevf_cmd_csq_clean() 49 if (!hclgevf_is_valid_csq_clean_head(csq, head)) { in hclgevf_cmd_csq_clean() 50 dev_warn(&hdev->pdev->dev, "wrong cmd head ( in hclgevf_cmd_csq_clean() 27 hclgevf_is_valid_csq_clean_head(struct hclgevf_cmq_ring *ring, int head) hclgevf_is_valid_csq_clean_head() argument 65 u32 head; hclgevf_cmd_csq_done() local [all...] |
/kernel/linux/linux-5.10/tools/io_uring/ |
H A D | io_uring-bench.c | 38 unsigned *head; member 47 unsigned *head; member 203 if (next_tail == *ring->head) in prep_more_ios() 248 unsigned head, reaped = 0; in reap_events() local 250 head = *ring->head; in reap_events() 255 if (head == *ring->tail) in reap_events() 257 cqe = &ring->cqes[head & cq_ring_mask]; in reap_events() 269 head++; in reap_events() 273 *ring->head in reap_events() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
H A D | base.c | 40 list_for_each_entry(pad, &i2c->pad, head) { in nvkm_i2c_pad_find() 68 list_for_each_entry(bus, &i2c->bus, head) { in nvkm_i2c_bus_find() 81 list_for_each_entry(aux, &i2c->aux, head) { in nvkm_i2c_aux_find() 142 list_for_each_entry(aux, &i2c->aux, head) { in nvkm_i2c_intr() 167 list_for_each_entry(aux, &i2c->aux, head) { in nvkm_i2c_fini() 171 list_for_each_entry(bus, &i2c->bus, head) { in nvkm_i2c_fini() 180 list_for_each_entry(pad, &i2c->pad, head) { in nvkm_i2c_fini() 198 list_for_each_entry(pad, &i2c->pad, head) in nvkm_i2c_preinit() 200 list_for_each_entry(bus, &i2c->bus, head) in nvkm_i2c_preinit() 214 list_for_each_entry(pad, &i2c->pad, head) { in nvkm_i2c_init() [all...] |
/kernel/linux/linux-5.10/fs/nilfs2/ |
H A D | page.c | 72 * @bh: buffer head of the buffer to be discarded 142 struct buffer_head *bh, *head; in nilfs_page_buffers_clean() local 144 bh = head = page_buffers(page); in nilfs_page_buffers_clean() 149 } while (bh != head); in nilfs_page_buffers_clean() 172 struct buffer_head *bh, *head; in nilfs_page_bug() local 175 bh = head = page_buffers(page); in nilfs_page_bug() 182 } while (bh != head); in nilfs_page_bug() 408 struct buffer_head *bh, *head; in nilfs_clear_dirty_page() local 414 bh = head = page_buffers(page); in nilfs_clear_dirty_page() 424 } while (bh = bh->b_this_page, bh != head); in nilfs_clear_dirty_page() 434 struct buffer_head *bh, *head; nilfs_page_count_clean_buffers() local 532 struct buffer_head *bh, *head; nilfs_find_uncommitted_extent() local [all...] |
/kernel/linux/linux-6.6/fs/nilfs2/ |
H A D | page.c | 72 * @bh: buffer head of the buffer to be discarded 142 struct buffer_head *bh, *head; in nilfs_page_buffers_clean() local 144 bh = head = page_buffers(page); in nilfs_page_buffers_clean() 149 } while (bh != head); in nilfs_page_buffers_clean() 172 struct buffer_head *bh, *head; in nilfs_page_bug() local 175 bh = head = page_buffers(page); in nilfs_page_bug() 182 } while (bh != head); in nilfs_page_bug() 409 struct buffer_head *bh, *head; in nilfs_clear_dirty_page() local 415 bh = head = page_buffers(page); in nilfs_clear_dirty_page() 425 } while (bh = bh->b_this_page, bh != head); in nilfs_clear_dirty_page() 435 struct buffer_head *bh, *head; nilfs_page_count_clean_buffers() local 517 struct buffer_head *bh, *head; nilfs_find_uncommitted_extent() local [all...] |
/kernel/linux/linux-6.6/drivers/dma-buf/ |
H A D | udmabuf.c | 198 struct udmabuf_create_list *head, in udmabuf_create() 216 for (i = 0; i < head->count; i++) { in udmabuf_create() 237 for (i = 0; i < head->count; i++) { in udmabuf_create() 279 if (head->flags & UDMABUF_FLAGS_CLOEXEC) in udmabuf_create() 296 struct udmabuf_create_list head; in udmabuf_ioctl_create() local 303 head.flags = create.flags; in udmabuf_ioctl_create() 304 head.count = 1; in udmabuf_ioctl_create() 309 return udmabuf_create(filp->private_data, &head, &list); in udmabuf_ioctl_create() 314 struct udmabuf_create_list head; in udmabuf_ioctl_create_list() local 319 if (copy_from_user(&head, (voi in udmabuf_ioctl_create_list() 197 udmabuf_create(struct miscdevice *device, struct udmabuf_create_list *head, struct udmabuf_create_item *list) udmabuf_create() argument [all...] |
/kernel/linux/linux-6.6/arch/x86/kernel/ |
H A D | nmi.c | 43 struct list_head head; member 50 .head = LIST_HEAD_INIT(nmi_desc[0].head), 54 .head = LIST_HEAD_INIT(nmi_desc[1].head), 58 .head = LIST_HEAD_INIT(nmi_desc[2].head), 62 .head = LIST_HEAD_INIT(nmi_desc[3].head), 144 list_for_each_entry_rcu(a, &desc->head, lis in nmi_handle() [all...] |
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_rast_debug.c | 156 const struct cmd_block *head = bin->head; in debug_bin() local 177 while (head) { in debug_bin() 178 for (i = 0; i < head->count; i++, j++) { in debug_bin() 179 if (head->cmd[i] == LP_RAST_OP_SET_STATE) in debug_bin() 180 state = head->arg[i].set_state; in debug_bin() 183 cmd_name(head->cmd[i]), in debug_bin() 184 is_blend(state, head, i) ? "blended" : ""); in debug_bin() 186 head = head in debug_bin() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
H A D | cordz_info.cc | 260 // We can do an 'unsafe' load of 'head', as we are guaranteed that the in Head() 263 // We do enforce in DEBUG builds that the 'head' value is present in the in Head() 266 CordzInfo* head = global_list_.head.load(std::memory_order_acquire); in Head() local 267 ABSL_ASSERT(snapshot.DiagnosticsHandleIsSafeToInspect(head)); in Head() 268 return head; in Head() 359 CordzInfo* const head = list_->head.load(std::memory_order_acquire); in Track() local 360 if (head != nullptr) { in Track() 361 head in Track() 372 CordzInfo* const head = list_->head.load(std::memory_order_acquire); Untrack() local [all...] |
/kernel/linux/linux-5.10/drivers/scsi/sym53c8xx_2/ |
H A D | sym_fw2.h | 305 offsetof (struct sym_ccb, phys.head.status), 455 offsetof (struct sym_ccb, phys.head.lastp), 514 offsetof (struct sym_ccb, phys.head.lastp), 546 offsetof (struct sym_ccb, phys.head.lastp), 562 offsetof (struct sym_ccb, phys.head.lastp), 654 offsetof (struct sym_ccb, phys.head.status), 664 offsetof (struct sym_ccb, phys.head.status), 740 offsetof (struct sym_ccb, phys.head.lastp), 742 offsetof (struct sym_ccb, phys.head.savep), 762 offsetof (struct sym_ccb, phys.head [all...] |
/kernel/linux/linux-6.6/drivers/scsi/sym53c8xx_2/ |
H A D | sym_fw2.h | 305 offsetof (struct sym_ccb, phys.head.status), 455 offsetof (struct sym_ccb, phys.head.lastp), 514 offsetof (struct sym_ccb, phys.head.lastp), 546 offsetof (struct sym_ccb, phys.head.lastp), 562 offsetof (struct sym_ccb, phys.head.lastp), 654 offsetof (struct sym_ccb, phys.head.status), 664 offsetof (struct sym_ccb, phys.head.status), 740 offsetof (struct sym_ccb, phys.head.lastp), 742 offsetof (struct sym_ccb, phys.head.savep), 762 offsetof (struct sym_ccb, phys.head [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/signal/testcases/ |
H A D | zt_no_regs.c | 24 struct _aarch64_ctx *head = GET_BUF_RESV_HEAD(context); in zt_no_regs_run() local 33 head = get_header(head, ZT_MAGIC, GET_BUF_RESV_SIZE(context), &offset); in zt_no_regs_run() 34 if (head) { in zt_no_regs_run()
|
/kernel/linux/linux-6.6/mm/ |
H A D | hugetlb_vmemmap.h | 14 int hugetlb_vmemmap_restore(const struct hstate *h, struct page *head); 15 void hugetlb_vmemmap_optimize(const struct hstate *h, struct page *head); 41 static inline int hugetlb_vmemmap_restore(const struct hstate *h, struct page *head) in hugetlb_vmemmap_restore() argument 46 static inline void hugetlb_vmemmap_optimize(const struct hstate *h, struct page *head) in hugetlb_vmemmap_optimize() argument
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/timer/ |
H A D | base.c | 77 list_for_each_entry_safe(alarm, atemp, &tmr->alarms, head) { in nvkm_timer_alarm_trigger() 89 list_del_init(&alarm->head); in nvkm_timer_alarm_trigger() 117 list_del_init(&alarm->head); in nvkm_timer_alarm() 122 list_for_each_entry(list, &tmr->alarms, head) { in nvkm_timer_alarm() 127 list_add_tail(&alarm->head, &list->head); in nvkm_timer_alarm() 130 list = list_first_entry(&tmr->alarms, typeof(*list), head); in nvkm_timer_alarm()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | sorgv100.c | 27 gv100_sor_dp_watermark(struct nvkm_ior *sor, int head, u8 watermark) in gv100_sor_dp_watermark() argument 30 const u32 hoff = head * 0x800; in gv100_sor_dp_watermark() 35 gv100_sor_dp_audio_sym(struct nvkm_ior *sor, int head, u16 h, u32 v) in gv100_sor_dp_audio_sym() argument 38 const u32 hoff = head * 0x800; in gv100_sor_dp_audio_sym() 44 gv100_sor_dp_audio(struct nvkm_ior *sor, int head, bool enable) in gv100_sor_dp_audio() argument 47 const u32 hoff = 0x800 * head; in gv100_sor_dp_audio() 77 state->head = ctrl & 0x000000ff; in gv100_sor_state()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/timer/ |
H A D | base.c | 77 list_for_each_entry_safe(alarm, atemp, &tmr->alarms, head) { in nvkm_timer_alarm_trigger() 89 list_del_init(&alarm->head); in nvkm_timer_alarm_trigger() 117 list_del_init(&alarm->head); in nvkm_timer_alarm() 122 list_for_each_entry(list, &tmr->alarms, head) { in nvkm_timer_alarm() 127 list_add_tail(&alarm->head, &list->head); in nvkm_timer_alarm() 130 list = list_first_entry(&tmr->alarms, typeof(*list), head); in nvkm_timer_alarm()
|
/kernel/linux/linux-6.6/net/sunrpc/ |
H A D | svcauth.c | 198 struct hlist_head *head; in auth_domain_lookup() local 200 head = &auth_domain_table[hash_str(name, DN_HASHBITS)]; in auth_domain_lookup() 204 hlist_for_each_entry(hp, head, hash) { in auth_domain_lookup() 212 hlist_add_head_rcu(&new->hash, head); in auth_domain_lookup() 221 struct hlist_head *head; in auth_domain_find() local 223 head = &auth_domain_table[hash_str(name, DN_HASHBITS)]; in auth_domain_find() 226 hlist_for_each_entry_rcu(hp, head, hash) { in auth_domain_find()
|
/kernel/linux/linux-5.10/net/sunrpc/xprtrdma/ |
H A D | svc_rdma_recvfrom.c | 378 arg->head[0].iov_base = ctxt->rc_recv_buf; in svc_rdma_build_arg_xdr() 379 arg->head[0].iov_len = ctxt->rc_byte_len; in svc_rdma_build_arg_xdr() 616 * On entry, xdr->head[0].iov_base points to first byte of the 619 * On successful exit, head[0] points to first byte past the 625 * - The transport header is entirely contained in the head iovec. 633 rdma_argp = rq_arg->head[0].iov_base; in svc_rdma_xdr_decode_req() 664 rq_arg->head[0].iov_base = rctxt->rc_stream.p; in svc_rdma_xdr_decode_req() 666 rq_arg->head[0].iov_len -= hdr_len; in svc_rdma_xdr_decode_req() 693 struct svc_rdma_recv_ctxt *head) in rdma_read_complete() 700 for (page_no = 0; page_no < head in rdma_read_complete() 692 rdma_read_complete(struct svc_rqst *rqstp, struct svc_rdma_recv_ctxt *head) rdma_read_complete() argument [all...] |
/kernel/linux/linux-6.6/kernel/futex/ |
H A D | core.c | 296 * Mapping checks require the head page for any compound page so the in get_futex_key() 297 * head page and mapping is looked up now. For anonymous pages, it in get_futex_key() 763 struct robust_list __user * __user *head, in fetch_robust_entry() 768 if (get_user(uentry, (unsigned long __user *)head)) in fetch_robust_entry() 785 struct robust_list_head __user *head = curr->robust_list; in exit_robust_list() local 793 * Fetch the list head (which was registered earlier, via in exit_robust_list() 796 if (fetch_robust_entry(&entry, &head->list.next, &pi)) in exit_robust_list() 801 if (get_user(futex_offset, &head->futex_offset)) in exit_robust_list() 807 if (fetch_robust_entry(&pending, &head->list_op_pending, &pip)) in exit_robust_list() 811 while (entry != &head in exit_robust_list() 762 fetch_robust_entry(struct robust_list __user **entry, struct robust_list __user * __user *head, unsigned int *pi) fetch_robust_entry() argument 859 compat_fetch_robust_entry(compat_uptr_t *uentry, struct robust_list __user **entry, compat_uptr_t __user *head, unsigned int *pi) compat_fetch_robust_entry() argument 879 struct compat_robust_list_head __user *head = curr->compat_robust_list; compat_exit_robust_list() local 955 struct list_head *next, *head = &curr->pi_state_list; exit_pi_state_list() local [all...] |
/kernel/linux/linux-5.10/security/tomoyo/ |
H A D | environ.c | 22 container_of(ptr, typeof(*acl), head); in tomoyo_check_env_acl() 79 const struct tomoyo_env_acl *p1 = container_of(a, typeof(*p1), head); in tomoyo_same_env_acl() 80 const struct tomoyo_env_acl *p2 = container_of(b, typeof(*p2), head); in tomoyo_same_env_acl() 96 struct tomoyo_env_acl e = { .head.type = TOMOYO_TYPE_ENV_ACL }; in tomoyo_write_env() 105 error = tomoyo_update_domain(&e.head, sizeof(e), param, in tomoyo_write_env()
|