/kernel/linux/linux-6.6/include/net/ |
H A D | fq_impl.h | 95 struct list_head *head; in fq_tin_dequeue() local 101 head = &tin->new_flows; in fq_tin_dequeue() 102 if (list_empty(head)) { in fq_tin_dequeue() 103 head = &tin->old_flows; in fq_tin_dequeue() 104 if (list_empty(head)) in fq_tin_dequeue() 108 flow = list_first_entry(head, struct fq_flow, flowchain); in fq_tin_dequeue() 120 if ((head == &tin->new_flows) && in fq_tin_dequeue() 315 struct list_head *head; in fq_tin_reset() local 319 head = &tin->new_flows; in fq_tin_reset() 320 if (list_empty(head)) { in fq_tin_reset() [all...] |
/kernel/linux/linux-6.6/drivers/staging/vt6656/ |
H A D | usbpipe.c | 269 struct vnt_rx_header *head; in vnt_rx_data() local 281 head = (struct vnt_rx_header *)skb->data; in vnt_rx_data() 282 frame_size = head->wbk_status >> 16; in vnt_rx_data() 302 if (((bytes_received - head->pay_load_len) > 27) || in vnt_rx_data() 303 ((bytes_received - head->pay_load_len) < 24) || in vnt_rx_data() 304 (bytes_received < head->pay_load_len)) { in vnt_rx_data() 306 head->pay_load_len); in vnt_rx_data() 311 rx_bitrate = head->rx_rate * 5; /* rx_rate * 5 */ in vnt_rx_data() 325 pay_load_with_padding = ((head->pay_load_len / 4) + in vnt_rx_data() 326 ((head in vnt_rx_data() [all...] |
/kernel/linux/linux-6.6/drivers/iio/buffer/ |
H A D | industrialio-buffer-dma.c | 133 list_for_each_entry_safe(block, _block, &block_list, head) in iio_dma_buffer_cleanup_worker() 146 list_add_tail(&block->head, &iio_dma_buffer_dead_blocks); in iio_buffer_block_release_atomic() 184 INIT_LIST_HEAD(&block->head); in iio_dma_buffer_alloc_block() 202 list_add_tail(&block->head, &queue->outgoing); in _iio_dma_buffer_block_done() 244 list_for_each_entry_safe(block, _block, list, head) { in iio_dma_buffer_block_list_abort() 245 list_del(&block->head); in iio_dma_buffer_block_list_abort() 349 list_add_tail(&block->head, &queue->incoming); in iio_dma_buffer_request_update() 408 list_for_each_entry_safe(block, _block, &queue->incoming, head) { in iio_dma_buffer_enable() 409 list_del(&block->head); in iio_dma_buffer_enable() 451 list_add_tail(&block->head, in iio_dma_buffer_enqueue() [all...] |
/kernel/linux/linux-6.6/drivers/input/serio/ |
H A D | serio_raw.c | 30 unsigned int tail, head; member 146 empty = serio_raw->head == serio_raw->tail; in serio_raw_fetch_byte() 170 if (serio_raw->head == serio_raw->tail && in serio_raw_read() 188 serio_raw->head != serio_raw->tail || in serio_raw_read() 248 if (serio_raw->head != serio_raw->tail) in serio_raw_poll() 275 unsigned int head = serio_raw->head; in serio_raw_interrupt() local 278 serio_raw->queue[head] = data; in serio_raw_interrupt() 279 head = (head in serio_raw_interrupt() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | refcounted_kptr.c | 43 private(A) struct bpf_list_head head __contains(node_data, l); 73 static long __insert_in_tree_and_list(struct bpf_list_head *head, in __insert_in_tree_and_list() argument 97 if (bpf_list_push_front(head, &m->l)) { in __insert_in_tree_and_list() 173 static long __read_from_list(struct bpf_list_head *head, in __read_from_list() argument 183 l = bpf_list_pop_front(head); in __read_from_list() 193 if (bpf_list_push_back(head, &n->l)) { in __read_from_list() 233 err = __insert_in_tree_and_list(&head, &root, &lock); \ 243 err = __read_from_list(&head, &lock, rem_list); \ 272 err = __insert_in_tree_and_list(&head, &root, &lock); \ 276 err = __read_from_list(&head, [all...] |
/kernel/linux/linux-6.6/net/bluetooth/ |
H A D | coredump.c | 58 return hci_devcd_update_hdr_state(hdev->dump.head, in hci_devcd_update_state() 90 hdev->dump.head = NULL; in hci_devcd_reset() 103 vfree(hdev->dump.head); in hci_devcd_free() 111 hdev->dump.head = vmalloc(size); in hci_devcd_alloc() 112 if (!hdev->dump.head) in hci_devcd_alloc() 116 hdev->dump.tail = hdev->dump.head; in hci_devcd_alloc() 117 hdev->dump.end = hdev->dump.head + size; in hci_devcd_alloc() 254 dump_size = hdev->dump.tail - hdev->dump.head; in hci_devcd_handle_pkt_complete() 259 dev_coredumpv(&hdev->dev, hdev->dump.head, dump_size, GFP_KERNEL); in hci_devcd_handle_pkt_complete() 273 dump_size = hdev->dump.tail - hdev->dump.head; in hci_devcd_handle_pkt_abort() [all...] |
/third_party/libwebsockets/include/libwebsockets/ |
H A D | lws-misc.h | 48 * lws_buflist_append_segment(): add buffer to buflist at head 50 * \param head: list head 58 lws_buflist_append_segment(struct lws_buflist **head, const uint8_t *buf, 63 * \param head: list head 71 lws_buflist_next_segment_len(struct lws_buflist **head, uint8_t **buf); 76 * \param head: list head 83 * is deleted and the list head move [all...] |
/kernel/linux/linux-5.10/fs/ |
H A D | aio.c | 60 unsigned head; /* Written to by userland or under ring_lock member 183 struct wait_queue_head *head; member 408 * to the ring's head, and prevents page migration from mucking in in aio_migratepage() 474 /* Compensate for the ring buffer's head/tail overlap entry */ in aio_setup_ring() 551 ring->head = ring->tail = 0; in aio_setup_ring() 972 static void refill_reqs_available(struct kioctx *ctx, unsigned head, in refill_reqs_available() argument 977 /* Clamp head since userland can write to it. */ in refill_reqs_available() 978 head %= ctx->nr_events; in refill_reqs_available() 979 if (head <= tail) in refill_reqs_available() 980 events_in_ring = tail - head; in refill_reqs_available() 1006 unsigned head; user_refill_reqs_available() local 1109 unsigned tail, pos, head; aio_complete() local 1193 unsigned head, tail, pos; aio_read_events_ring() local 1650 wait_queue_head_t *head; poll_iocb_lock_wq() local 1838 aio_poll_queue_proc(struct file *file, struct wait_queue_head *head, struct poll_table_struct *p) aio_poll_queue_proc() argument [all...] |
/kernel/linux/linux-6.6/fs/ |
H A D | aio.c | 59 unsigned head; /* Written to by userland or under ring_lock member 182 struct wait_queue_head *head; member 434 * to the ring's head, and prevents page migration from mucking in in aio_migrate_folio() 500 /* Compensate for the ring buffer's head/tail overlap entry */ in aio_setup_ring() 577 ring->head = ring->tail = 0; in aio_setup_ring() 988 static void refill_reqs_available(struct kioctx *ctx, unsigned head, in refill_reqs_available() argument 993 /* Clamp head since userland can write to it. */ in refill_reqs_available() 994 head %= ctx->nr_events; in refill_reqs_available() 995 if (head <= tail) in refill_reqs_available() 996 events_in_ring = tail - head; in refill_reqs_available() 1022 unsigned head; user_refill_reqs_available() local 1124 unsigned tail, pos, head; aio_complete() local 1206 unsigned head, tail, pos; aio_read_events_ring() local 1644 wait_queue_head_t *head; poll_iocb_lock_wq() local 1832 aio_poll_queue_proc(struct file *file, struct wait_queue_head *head, struct poll_table_struct *p) aio_poll_queue_proc() argument [all...] |
H A D | splice.c | 202 unsigned int head = pipe->head; in splice_to_pipe() local 215 while (!pipe_full(head, tail, pipe->max_usage)) { in splice_to_pipe() 216 struct pipe_buffer *buf = &pipe->bufs[head & mask]; in splice_to_pipe() 225 head++; in splice_to_pipe() 226 pipe->head = head; in splice_to_pipe() 247 unsigned int head = pipe->head; in add_to_pipe() local 255 } else if (pipe_full(head, tai in add_to_pipe() 447 unsigned int head = pipe->head; splice_from_pipe_feed() local 688 unsigned int head, tail, mask; iter_file_splice_write() local 804 unsigned int head, tail, mask, bc = 0; splice_to_socket() local [all...] |
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
H A D | signal.c | 183 __put_user_error(FPSIMD_MAGIC, &ctx->head.magic, err); in preserve_fpsimd_context() 184 __put_user_error(sizeof(struct fpsimd_context), &ctx->head.size, err); in preserve_fpsimd_context() 196 __get_user_error(magic, &ctx->head.magic, err); in restore_fpsimd_context() 197 __get_user_error(size, &ctx->head.size, err); in restore_fpsimd_context() 238 __put_user_error(SVE_MAGIC, &ctx->head.magic, err); in preserve_sve_context() 240 &ctx->head.size, err); in preserve_sve_context() 272 if (sve.head.size <= sizeof(*user->sve)) { in restore_sve_fpsimd_context() 279 if (sve.head.size < SVE_SIG_CONTEXT_SIZE(vq)) in restore_sve_fpsimd_context() 330 struct _aarch64_ctx __user *head; in parse_user_sigframe() local 353 if (limit - offset < sizeof(*head)) in parse_user_sigframe() [all...] |
/third_party/FreeBSD/lib/libc/gen/ |
H A D | fts.c | 631 FTSENT *p, *head; in fts_build() local 742 for (head = tail = NULL, nitems = 0; dirp && (dp = readdir(dirp));) { in fts_build() 760 fts_lfree(head); in fts_build() 820 if (head == NULL) in fts_build() 821 head = tail = p; in fts_build() 836 fts_padjust(sp, head); in fts_build() 856 fts_lfree(head); in fts_build() 871 head = fts_sort(sp, head, nitems); in fts_build() 872 return (head); in fts_build() 978 fts_sort(FTS *sp, FTSENT *head, size_t nitems) fts_sort() argument 1054 fts_lfree(FTSENT *head) fts_lfree() argument 1085 fts_padjust(FTS *sp, FTSENT *head) fts_padjust() argument [all...] |
/kernel/linux/linux-6.6/fs/btrfs/ |
H A D | extent-tree.c | 95 * the head node for delayed ref is used to store the sum of all the 96 * reference count modifications queued up in the rbtree. the head 106 struct btrfs_delayed_ref_head *head; in btrfs_lookup_extent_info() local 193 head = btrfs_find_delayed_ref_head(delayed_refs, bytenr); in btrfs_lookup_extent_info() 194 if (head) { in btrfs_lookup_extent_info() 195 if (!mutex_trylock(&head->mutex)) { in btrfs_lookup_extent_info() 196 refcount_inc(&head->refs); in btrfs_lookup_extent_info() 205 mutex_lock(&head->mutex); in btrfs_lookup_extent_info() 206 mutex_unlock(&head->mutex); in btrfs_lookup_extent_info() 207 btrfs_put_delayed_ref_head(head); in btrfs_lookup_extent_info() 1600 run_delayed_extent_op(struct btrfs_trans_handle *trans, struct btrfs_delayed_ref_head *head, struct btrfs_delayed_extent_op *extent_op) run_delayed_extent_op() argument 1766 select_delayed_ref(struct btrfs_delayed_ref_head *head) select_delayed_ref() argument 1789 unselect_delayed_ref_head(struct btrfs_delayed_ref_root *delayed_refs, struct btrfs_delayed_ref_head *head) unselect_delayed_ref_head() argument 1799 cleanup_extent_op( struct btrfs_delayed_ref_head *head) cleanup_extent_op() argument 1815 run_and_cleanup_extent_op(struct btrfs_trans_handle *trans, struct btrfs_delayed_ref_head *head) run_and_cleanup_extent_op() argument 1831 btrfs_cleanup_ref_head_accounting(struct btrfs_fs_info *fs_info, struct btrfs_delayed_ref_root *delayed_refs, struct btrfs_delayed_ref_head *head) btrfs_cleanup_ref_head_accounting() argument 1851 cleanup_ref_head(struct btrfs_trans_handle *trans, struct btrfs_delayed_ref_head *head) cleanup_ref_head() argument 1910 struct btrfs_delayed_ref_head *head = NULL; btrfs_obtain_ref_head() local 2147 struct btrfs_delayed_ref_head *head; btrfs_run_delayed_refs() local 2224 struct btrfs_delayed_ref_head *head; check_delayed_ref() local 3235 struct btrfs_delayed_ref_head *head; check_ref_cleanup() local [all...] |
/foundation/distributeddatamgr/relational_store/frameworks/cj/include/ |
H A D | relational_store_utils.h | 49 Asset* head; member 54 uint8_t* head; member 59 char** head; member 91 int32_t* head; member 115 RetPRIKeyType* head; member 138 RetChangeInfo* head; member
|
/kernel/linux/linux-5.10/sound/core/seq/oss/ |
H A D | seq_oss_readq.c | 49 q->head = q->tail = 0; in snd_seq_oss_readq_new() 78 q->head = q->tail = 0; in snd_seq_oss_readq_clear() 173 memcpy(rec, &q->q[q->head], sizeof(*rec)); in snd_seq_oss_readq_pick() 184 (q->qlen > 0 || q->head == q->tail), in snd_seq_oss_readq_wait() 196 q->head = (q->head + 1) % q->maxlen; in snd_seq_oss_readq_free()
|
/kernel/linux/linux-6.6/drivers/dma-buf/ |
H A D | dma-fence-array.c | 236 struct dma_fence *dma_fence_array_first(struct dma_fence *head) in dma_fence_array_first() argument 240 if (!head) in dma_fence_array_first() 243 array = to_dma_fence_array(head); in dma_fence_array_first() 245 return head; in dma_fence_array_first() 254 struct dma_fence *dma_fence_array_next(struct dma_fence *head, in dma_fence_array_next() argument 257 struct dma_fence_array *array = to_dma_fence_array(head); in dma_fence_array_next()
|
/kernel/linux/linux-6.6/sound/core/seq/oss/ |
H A D | seq_oss_readq.c | 49 q->head = q->tail = 0; in snd_seq_oss_readq_new() 78 q->head = q->tail = 0; in snd_seq_oss_readq_clear() 173 memcpy(rec, &q->q[q->head], sizeof(*rec)); in snd_seq_oss_readq_pick() 184 (q->qlen > 0 || q->head == q->tail), in snd_seq_oss_readq_wait() 196 q->head = (q->head + 1) % q->maxlen; in snd_seq_oss_readq_free()
|
/third_party/skia/third_party/externals/microhttpd/src/examples/ |
H A D | mhd2spdy_structures.h | 191 * Insert an element at the head of a DLL. Assumes that head, tail and 194 * @param head pointer to the head of the DLL (struct ? *) 198 #define DLL_insert(head,tail,element) do { \ 199 (element)->next = (head); \ 204 (head)->prev = element; \ 205 (head) = (element); } while (0) 210 * that head, tail and element are structs 213 * @param head pointe [all...] |
/kernel/linux/linux-5.10/drivers/firmware/efi/ |
H A D | vars.c | 334 struct list_head *head) in variable_is_present() 341 list_for_each_entry_safe(entry, n, head, list) { in variable_is_present() 406 * @duplicates: error if we encounter duplicates on @head? 407 * @head: initialised head of variable list 415 void *data, bool duplicates, struct list_head *head) in efivar_init() 469 head)) { in efivar_init() 514 * @head: list head 518 int efivar_entry_add(struct efivar_entry *entry, struct list_head *head) in efivar_entry_add() argument 333 variable_is_present(efi_char16_t *variable_name, efi_guid_t *vendor, struct list_head *head) variable_is_present() argument 414 efivar_init(int (*func)(efi_char16_t *, efi_guid_t, unsigned long, void *), void *data, bool duplicates, struct list_head *head) efivar_init() argument 651 efivar_entry_set(struct efivar_entry *entry, u32 attributes, unsigned long size, void *data, struct list_head *head) efivar_entry_set() argument 809 efivar_entry_find(efi_char16_t *name, efi_guid_t guid, struct list_head *head, bool remove) efivar_entry_find() argument 1080 __efivar_entry_iter(int (*func)(struct efivar_entry *, void *), struct list_head *head, void *data, struct efivar_entry **prev) __efivar_entry_iter() argument 1125 efivar_entry_iter(int (*func)(struct efivar_entry *, void *), struct list_head *head, void *data) efivar_entry_iter() argument [all...] |
/kernel/linux/linux-5.10/fs/ext4/ |
H A D | fsmap.c | 609 * Get filesystem's extents as described in head, and format for 611 * extents are mapped, until the passed-in head->fmh_count slots have 629 int ext4_getfsmap(struct super_block *sb, struct ext4_fsmap_head *head, in ext4_getfsmap() argument 638 if (head->fmh_iflags & ~FMH_IF_VALID) in ext4_getfsmap() 640 if (!ext4_getfsmap_is_valid_device(sb, &head->fmh_keys[0]) || in ext4_getfsmap() 641 !ext4_getfsmap_is_valid_device(sb, &head->fmh_keys[1])) in ext4_getfsmap() 644 head->fmh_entries = 0; in ext4_getfsmap() 670 dkeys[0] = head->fmh_keys[0]; in ext4_getfsmap() 676 if (!ext4_getfsmap_check_keys(dkeys, &head->fmh_keys[1])) in ext4_getfsmap() 679 info.gfi_next_fsblk = head in ext4_getfsmap() [all...] |
/kernel/linux/linux-5.10/drivers/media/test-drivers/vidtv/ |
H A D | vidtv_s302m.c | 147 static struct vidtv_access_unit *vidtv_s302m_access_unit_init(struct vidtv_access_unit *head) in vidtv_s302m_access_unit_init() argument 155 if (head) { in vidtv_s302m_access_unit_init() 156 while (head->next) in vidtv_s302m_access_unit_init() 157 head = head->next; in vidtv_s302m_access_unit_init() 159 head->next = au; in vidtv_s302m_access_unit_init() 167 struct vidtv_access_unit *head = e->access_units; in vidtv_s302m_access_unit_destroy() local 170 while (head) { in vidtv_s302m_access_unit_destroy() 171 tmp = head; in vidtv_s302m_access_unit_destroy() 172 head in vidtv_s302m_access_unit_destroy() [all...] |
/kernel/linux/linux-6.6/drivers/media/test-drivers/vidtv/ |
H A D | vidtv_s302m.c | 147 static struct vidtv_access_unit *vidtv_s302m_access_unit_init(struct vidtv_access_unit *head) in vidtv_s302m_access_unit_init() argument 155 if (head) { in vidtv_s302m_access_unit_init() 156 while (head->next) in vidtv_s302m_access_unit_init() 157 head = head->next; in vidtv_s302m_access_unit_init() 159 head->next = au; in vidtv_s302m_access_unit_init() 167 struct vidtv_access_unit *head = e->access_units; in vidtv_s302m_access_unit_destroy() local 170 while (head) { in vidtv_s302m_access_unit_destroy() 171 tmp = head; in vidtv_s302m_access_unit_destroy() 172 head in vidtv_s302m_access_unit_destroy() [all...] |
/kernel/linux/linux-6.6/fs/ext4/ |
H A D | fsmap.c | 609 * Get filesystem's extents as described in head, and format for 611 * extents are mapped, until the passed-in head->fmh_count slots have 629 int ext4_getfsmap(struct super_block *sb, struct ext4_fsmap_head *head, in ext4_getfsmap() argument 638 if (head->fmh_iflags & ~FMH_IF_VALID) in ext4_getfsmap() 640 if (!ext4_getfsmap_is_valid_device(sb, &head->fmh_keys[0]) || in ext4_getfsmap() 641 !ext4_getfsmap_is_valid_device(sb, &head->fmh_keys[1])) in ext4_getfsmap() 644 head->fmh_entries = 0; in ext4_getfsmap() 670 dkeys[0] = head->fmh_keys[0]; in ext4_getfsmap() 676 if (!ext4_getfsmap_check_keys(dkeys, &head->fmh_keys[1])) in ext4_getfsmap() 679 info.gfi_next_fsblk = head in ext4_getfsmap() [all...] |
/kernel/linux/linux-6.6/fs/gfs2/ |
H A D | aops.c | 43 struct buffer_head *head = folio_buffers(folio); in gfs2_trans_add_databufs() local 44 unsigned int bsize = head->b_size; in gfs2_trans_add_databufs() 49 for (bh = head, start = 0; bh != head || !start; in gfs2_trans_add_databufs() 62 * gfs2_get_block_noalloc - Fills in a buffer head with details about a block 65 * @bh_result: The buffer head to return the result in 646 struct buffer_head *bh, *head; in gfs2_invalidate_folio() local 652 head = folio_buffers(folio); in gfs2_invalidate_folio() 653 if (!head) in gfs2_invalidate_folio() 656 bh = head; in gfs2_invalidate_folio() 686 struct buffer_head *bh, *head; gfs2_release_folio() local [all...] |
/third_party/cups-filters/fontembed/ |
H A D | embed_sfnt.c | 87 char *head=otf_get_table(otf,OTF_TAG('h','e','a','d'),&len); in emb_otf_get_pdf_fontdescr() local 88 assert(head); // version is 1.0 from otf_load in emb_otf_get_pdf_fontdescr() 89 ret->bbxmin=get_SHORT(head+36)*1000/otf->unitsPerEm; in emb_otf_get_pdf_fontdescr() 90 ret->bbymin=get_SHORT(head+38)*1000/otf->unitsPerEm; in emb_otf_get_pdf_fontdescr() 91 ret->bbxmax=get_SHORT(head+40)*1000/otf->unitsPerEm; in emb_otf_get_pdf_fontdescr() 92 ret->bbymax=get_SHORT(head+42)*1000/otf->unitsPerEm; in emb_otf_get_pdf_fontdescr() 93 const int macStyle=get_USHORT(head+44); in emb_otf_get_pdf_fontdescr() 94 free(head); in emb_otf_get_pdf_fontdescr() 517 char *head=otf_get_table(otf,OTF_TAG('h','e','a','d'),&rlen); in emb_otf_ps() local 518 if (!head) { in emb_otf_ps() [all...] |