/openbmc/linux/drivers/net/wwan/iosm/ |
H A D | iosm_ipc_protocol_ops.c | 29 *index = head; in ipc_protocol_free_msg_get() 226 u32 head; in ipc_protocol_ul_td_send() local 241 if (head < tail) in ipc_protocol_ul_td_send() 274 head++; in ipc_protocol_ul_td_send() 276 head = 0; in ipc_protocol_ul_td_send() 279 cpu_to_le32(head); in ipc_protocol_ul_td_send() 285 pipe->old_head = head; in ipc_protocol_ul_td_send() 328 u32 head, new_head; in ipc_protocol_dl_td_prepare() local 338 new_head = head + 1; in ipc_protocol_dl_td_prepare() 439 if (head) in ipc_protocol_get_head_tail_index() [all …]
|
/openbmc/u-boot/lib/ |
H A D | list_sort.c | 25 struct list_head head, *tail = &head; in merge() local 39 return head.next; in merge() 52 struct list_head *head, in merge_and_restore_back_links() argument 55 struct list_head *tail = head; in merge_and_restore_back_links() 85 tail->next = head; in merge_and_restore_back_links() 86 head->prev = tail; in merge_and_restore_back_links() 113 if (list_empty(head)) in list_sort() 118 head->prev->next = NULL; in list_sort() 119 list = head->next; in list_sort() 219 LIST_HEAD(head); in list_sort_test() [all …]
|
/openbmc/linux/fs/nilfs2/ |
H A D | segbuf.h | 85 #define NILFS_LIST_SEGBUF(head) \ argument 86 list_entry((head), struct nilfs_segment_buffer, sb_list) 89 #define NILFS_LAST_SEGBUF(head) NILFS_LIST_SEGBUF((head)->prev) argument 90 #define NILFS_FIRST_SEGBUF(head) NILFS_LIST_SEGBUF((head)->next) argument 91 #define NILFS_SEGBUF_IS_LAST(segbuf, head) ((segbuf)->sb_list.next == (head)) argument 97 #define NILFS_SEGBUF_FIRST_BH(head) \ argument 98 (list_entry((head)->next, struct buffer_head, b_assoc_buffers)) 102 #define NILFS_SEGBUF_BH_IS_LAST(bh, head) ((bh)->b_assoc_buffers.next == head) argument
|
/openbmc/linux/drivers/gpu/drm/nouveau/dispnv50/ |
H A D | crcc37d.c | 15 crcc37d_set_src(struct nv50_head *head, int or, enum nv50_crc_source_type source, in crcc37d_set_src() argument 18 struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; in crcc37d_set_src() 19 const int i = head->base.index; in crcc37d_set_src() 54 int crcc37d_set_ctx(struct nv50_head *head, struct nv50_crc_notifier_ctx *ctx) in crcc37d_set_ctx() argument 56 struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; in crcc37d_set_ctx() 57 const int i = head->base.index; in crcc37d_set_ctx() 67 u32 crcc37d_get_entry(struct nv50_head *head, struct nv50_crc_notifier_ctx *ctx, in crcc37d_get_entry() argument 84 struct nouveau_drm *drm = nouveau_drm(head->base.base.dev); in crcc37d_ctx_finished() 106 head->base.index, engine, status); in crcc37d_ctx_finished() 110 head->base.index, status); in crcc37d_ctx_finished() [all …]
|
H A D | head827d.c | 30 head827d_curs_clr(struct nv50_head *head) in head827d_curs_clr() argument 32 struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; in head827d_curs_clr() 33 const int i = head->base.index; in head827d_curs_clr() 49 head827d_curs_set(struct nv50_head *head, struct nv50_head_atom *asyh) in head827d_curs_set() argument 52 const int i = head->base.index; in head827d_curs_set() 74 head827d_core_set(struct nv50_head *head, struct nv50_head_atom *asyh) in head827d_core_set() argument 77 const int i = head->base.index; in head827d_core_set() 111 head827d_olut_clr(struct nv50_head *head) in head827d_olut_clr() argument 114 const int i = head->base.index; in head827d_olut_clr() 128 head827d_olut_set(struct nv50_head *head, struct nv50_head_atom *asyh) in head827d_olut_set() argument [all …]
|
H A D | crc907d.c | 29 struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; in crc907d_set_src() 30 const int i = head->base.index; in crc907d_set_src() 75 crc907d_set_ctx(struct nv50_head *head, struct nv50_crc_notifier_ctx *ctx) in crc907d_set_ctx() argument 77 struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; in crc907d_set_ctx() 78 const int i = head->base.index; in crc907d_set_ctx() 88 static u32 crc907d_get_entry(struct nv50_head *head, in crc907d_get_entry() argument 97 static bool crc907d_ctx_finished(struct nv50_head *head, in crc907d_ctx_finished() argument 100 struct nouveau_drm *drm = nouveau_drm(head->base.base.dev); in crc907d_ctx_finished() 121 head->base.index, engine, status); in crc907d_ctx_finished() 125 head->base.index, status); in crc907d_ctx_finished() [all …]
|
/openbmc/linux/net/sunrpc/ |
H A D | xdr.c | 178 const struct kvec *head = xdr->head; in xdr_buf_to_bvec() local 230 struct kvec *head = xdr->head; in xdr_inline_pages() local 560 struct kvec *head = buf->head; in xdr_buf_try_expand() local 635 const struct kvec *head = buf->head; in xdr_buf_head_copy_right() local 709 const struct kvec *head = buf->head; in xdr_buf_head_shift_right() local 735 const struct kvec *head = buf->head; in xdr_buf_tail_copy_left() local 780 const struct kvec *head = buf->head; in xdr_buf_pages_copy_left() local 831 const struct kvec *head = buf->head; in xdr_buf_head_shift_left() local 866 struct kvec *head = buf->head; in xdr_shrink_bufhead() local 1188 struct kvec *head = buf->head; in xdr_truncate_encode() local [all …]
|
H A D | xprtmultipath.c | 246 list_for_each_entry_rcu(pos, head, xprt_switch) { in xprt_switch_find_first_entry() 258 list_for_each_entry_rcu(pos, head, xprt_switch) { in xprt_switch_find_first_entry_offline() 283 list_for_each_entry_rcu(pos, head, xprt_switch) { in _xprt_switch_find_current_entry() 307 struct list_head *head; in _xprt_iter_current_entry() local 311 head = &xps->xps_xprt_list; in _xprt_iter_current_entry() 313 return first_entry(head); in _xprt_iter_current_entry() 314 return current_entry(head, xpi->xpi_cursor); in _xprt_iter_current_entry() 343 struct list_head *head; in __rpc_xprt_switch_has_addr() local 349 head = &xps->xps_xprt_list; in __rpc_xprt_switch_has_addr() 427 return xprt_switch_find_first_entry(head); in __xprt_switch_find_next_entry_roundrobin() [all …]
|
/openbmc/qemu/util/ |
H A D | fifo8.c | 23 fifo->head = 0; in fifo8_create() 35 fifo->data[(fifo->head + fifo->num) % fifo->capacity] = data; in fifo8_push() 45 start = (fifo->head + fifo->num) % fifo->capacity; in fifo8_push_all() 63 ret = fifo->data[fifo->head++]; in fifo8_pop() 64 fifo->head %= fifo->capacity; in fifo8_pop() 74 *num = MIN(fifo->capacity - fifo->head, max); in fifo8_pop_buf() 75 ret = &fifo->data[fifo->head]; in fifo8_pop_buf() 76 fifo->head += *num; in fifo8_pop_buf() 77 fifo->head %= fifo->capacity; in fifo8_pop_buf() 85 fifo->head = 0; in fifo8_reset() [all …]
|
/openbmc/linux/mm/ |
H A D | debug.c | 57 struct page *head = &folio->page; in __dump_page() local 70 if (page < head || (page >= head + MAX_ORDER_NR_PAGES)) { in __dump_page() 84 head = page; in __dump_page() 99 page, page_ref_count(head), mapcount, mapping, in __dump_page() 103 head, compound_order(head), in __dump_page() 110 if (head->memcg_data) in __dump_page() 111 pr_warn("memcg:%lx\n", head->memcg_data); in __dump_page() 121 pr_warn("%sflags: %pGp%s\n", type, &head->flags, in __dump_page() 123 pr_warn("page_type: %pGt\n", &head->page_type); in __dump_page() 128 if (head != page) in __dump_page() [all …]
|
/openbmc/linux/arch/powerpc/platforms/pseries/ |
H A D | hvcserver.c | 62 int hvcs_free_partner_info(struct list_head *head) in hvcs_free_partner_info() argument 67 if (!head) in hvcs_free_partner_info() 70 while (!list_empty(head)) { in hvcs_free_partner_info() 71 element = head->next; in hvcs_free_partner_info() 119 int hvcs_get_partner_info(uint32_t unit_address, struct list_head *head, in hvcs_get_partner_info() argument 133 if (!head || !pi_buff) in hvcs_get_partner_info() 138 INIT_LIST_HEAD(head); in hvcs_get_partner_info() 148 if (!list_empty(head)) in hvcs_get_partner_info() 169 hvcs_free_partner_info(head); in hvcs_get_partner_info() 183 list_add_tail(&(next_partner_info->node), head); in hvcs_get_partner_info()
|
/openbmc/linux/fs/hfs/ |
H A D | btree.c | 22 struct hfs_btree_header_rec *head; in hfs_btree_open() local 85 tree->root = be32_to_cpu(head->root); in hfs_btree_open() 87 tree->leaf_head = be32_to_cpu(head->leaf_head); in hfs_btree_open() 88 tree->leaf_tail = be32_to_cpu(head->leaf_tail); in hfs_btree_open() 94 tree->depth = be16_to_cpu(head->depth); in hfs_btree_open() 123 kunmap_local(head); in hfs_btree_open() 128 kunmap_local(head); in hfs_btree_open() 164 struct hfs_btree_header_rec *head; in hfs_btree_write() local 177 head->root = cpu_to_be32(tree->root); in hfs_btree_write() 184 head->depth = cpu_to_be16(tree->depth); in hfs_btree_write() [all …]
|
/openbmc/linux/tools/usb/usbip/libsrc/ |
H A D | list.h | 58 static inline void list_add(struct list_head *new, struct list_head *head) in list_add() argument 60 __list_add(new, head, head->next); in list_add() 111 #define list_for_each(pos, head) \ argument 112 for (pos = (head)->next; pos != (head); pos = pos->next) 120 #define list_for_each_safe(pos, n, head) \ argument 121 for (pos = (head)->next, n = pos->next; pos != (head); \
|
/openbmc/linux/kernel/ |
H A D | task_work.c | 45 struct callback_head *head; in task_work_add() local 50 head = READ_ONCE(task->task_works); in task_work_add() 52 if (unlikely(head == &work_exited)) in task_work_add() 54 work->next = head; in task_work_add() 55 } while (!try_cmpxchg(&task->task_works, &head, work)); in task_work_add() 150 struct callback_head *work, *head, *next; in task_work_run() local 159 head = NULL; in task_work_run() 162 head = &work_exited; in task_work_run() 166 } while (!try_cmpxchg(&task->task_works, &work, head)); in task_work_run()
|
/openbmc/linux/fs/hfsplus/ |
H A D | btree.c | 136 struct hfs_btree_header_rec *head; in hfs_btree_open() local 168 tree->root = be32_to_cpu(head->root); in hfs_btree_open() 170 tree->leaf_head = be32_to_cpu(head->leaf_head); in hfs_btree_open() 177 tree->depth = be16_to_cpu(head->depth); in hfs_btree_open() 206 (head->key_type == HFSPLUS_KEY_BINARY)) in hfs_btree_open() 243 kunmap_local(head); in hfs_btree_open() 248 kunmap_local(head); in hfs_btree_open() 285 struct hfs_btree_header_rec *head; in hfs_btree_write() local 298 head->root = cpu_to_be32(tree->root); in hfs_btree_write() 305 head->depth = cpu_to_be16(tree->depth); in hfs_btree_write() [all …]
|
/openbmc/linux/net/sched/ |
H A D | sch_choke.c | 66 unsigned int head; member 96 q->head = (q->head + 1) & q->tab_mask; in choke_zap_head_holes() 97 if (q->head == q->tail) in choke_zap_head_holes() 107 if (q->head == q->tail) in choke_zap_tail_holes() 121 if (idx == q->head) in choke_drop_by_idx() 294 skb = q->tab[q->head]; in choke_dequeue() 311 q->head = (q->head + 1) & q->tab_mask; in choke_reset() 319 q->head = q->tail = 0; in choke_reset() 386 q->head = (q->head + 1) & q->tab_mask; in choke_change() 399 q->head = 0; in choke_change() [all …]
|
/openbmc/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_validation.c | 76 struct list_head head; member 286 list_add_tail(&val_buf->head, &ctx->bo_list); in vmw_validation_add_bo() 334 list_add_tail(&node->head, &ctx->resource_list); in vmw_validation_add_resource() 339 list_add(&node->head, &ctx->resource_ctx_list); in vmw_validation_add_resource() 345 list_add_tail(&node->head, &ctx->resource_list); in vmw_validation_add_resource() 650 list_for_each_entry(entry, &ctx->bo_list, base.head) in vmw_validation_drop_ht() 651 hash_del_rcu(&entry->hash.head); in vmw_validation_drop_ht() 653 list_for_each_entry(val, &ctx->resource_list, head) in vmw_validation_drop_ht() 654 hash_del_rcu(&val->hash.head); in vmw_validation_drop_ht() 657 hash_del_rcu(&entry->hash.head); in vmw_validation_drop_ht() [all …]
|
/openbmc/linux/drivers/media/test-drivers/vidtv/ |
H A D | vidtv_channel.c | 131 if (head) { in vidtv_channel_s302m_init() 133 head = head->next; in vidtv_channel_s302m_init() 191 if (!head) in vidtv_channel_eit_event_cat_into_new() 192 head = tail; in vidtv_channel_eit_event_cat_into_new() 200 return head; in vidtv_channel_eit_event_cat_into_new() 241 if (!head) in vidtv_channel_sdt_serv_cat_into_new() 242 head = tail; in vidtv_channel_sdt_serv_cat_into_new() 250 return head; in vidtv_channel_sdt_serv_cat_into_new() 292 if (!head) in vidtv_channel_pat_prog_cat_into_new() 303 return head; in vidtv_channel_pat_prog_cat_into_new() [all …]
|
/openbmc/linux/drivers/gpu/drm/qxl/ |
H A D | qxl_display.c | 46 return head->width && head->height; in qxl_head_enabled() 304 if (head->y > 8192 || head->x > 8192 || in qxl_send_monitors_config() 305 head->width > 8192 || head->height > 8192) { in qxl_send_monitors_config() 307 i, head->width, head->height, in qxl_send_monitors_config() 308 head->x, head->y); in qxl_send_monitors_config() 332 head.id = i; in qxl_crtc_update_monitors_config() 333 head.flags = 0; in qxl_crtc_update_monitors_config() 348 head.width = 0; in qxl_crtc_update_monitors_config() 350 head.x = 0; in qxl_crtc_update_monitors_config() 351 head.y = 0; in qxl_crtc_update_monitors_config() [all …]
|
/openbmc/linux/drivers/misc/ocxl/ |
H A D | pasid.c | 13 static void dump_list(struct list_head *head, char *type_str) in dump_list() argument 18 list_for_each_entry(cur, head, list) { in dump_list() 24 static int range_alloc(struct list_head *head, u32 size, int max_id, in range_alloc() argument 35 pos = head; in range_alloc() 37 list_for_each_entry(cur, head, list) { in range_alloc() 56 dump_list(head, type_str); in range_alloc() 61 static void range_free(struct list_head *head, u32 start, u32 size, in range_free() argument 67 list_for_each_entry_safe(cur, tmp, head, list) { in range_free() 77 dump_list(head, type_str); in range_free()
|
/openbmc/linux/drivers/gpu/drm/ttm/ |
H A D | ttm_execbuf_util.c | 35 list_for_each_entry_continue_reverse(entry, list, head) { in ttm_eu_backoff_reservation_reverse() 50 list_for_each_entry(entry, list, head) { in ttm_eu_backoff_reservation() 87 list_for_each_entry(entry, list, head) { in ttm_eu_reserve_buffers() 94 entry = list_prev_entry(entry, head); in ttm_eu_reserve_buffers() 95 list_del(&safe->head); in ttm_eu_reserve_buffers() 96 list_add(&safe->head, dups); in ttm_eu_reserve_buffers() 133 list_del(&entry->head); in ttm_eu_reserve_buffers() 134 list_add(&entry->head, list); in ttm_eu_reserve_buffers() 150 list_for_each_entry(entry, list, head) { in ttm_eu_fence_buffer_objects()
|
/openbmc/linux/tools/testing/selftests/arm64/signal/testcases/ |
H A D | za_no_regs.c | 56 struct _aarch64_ctx *head = GET_BUF_RESV_HEAD(context); in do_one_sme_vl() local 73 head = get_header(head, ZA_MAGIC, GET_BUF_RESV_SIZE(context), &offset); in do_one_sme_vl() 74 if (!head) { in do_one_sme_vl() 79 za = (struct za_context *)head; in do_one_sme_vl() 85 if (head->size != ZA_SIG_REGS_OFFSET) { in do_one_sme_vl() 87 head->size, ZA_SIG_REGS_OFFSET); in do_one_sme_vl() 93 head->size, za->vl); in do_one_sme_vl()
|
H A D | fake_sigreturn_duplicated_fpsimd.c | 21 struct _aarch64_ctx *shead = GET_SF_RESV_HEAD(sf), *head; in fake_sigreturn_duplicated_fpsimd_run() local 27 head = get_starting_head(shead, sizeof(struct fpsimd_context) + HDR_SZ, in fake_sigreturn_duplicated_fpsimd_run() 29 if (!head) in fake_sigreturn_duplicated_fpsimd_run() 33 head->magic = FPSIMD_MAGIC; in fake_sigreturn_duplicated_fpsimd_run() 34 head->size = sizeof(struct fpsimd_context); in fake_sigreturn_duplicated_fpsimd_run() 36 write_terminator_record(GET_RESV_NEXT_HEAD(head)); in fake_sigreturn_duplicated_fpsimd_run()
|
/openbmc/linux/tools/power/acpi/tools/acpidbg/ |
H A D | acpidbg.c | 77 .head = 0, 82 .head = 0, 128 p = &crc->buf[crc->head]; in acpi_aml_read() 134 crc->head = (crc->head + len) & (ACPI_AML_BUF_SIZE - 1); in acpi_aml_read() 144 p = &crc->buf[crc->head]; in acpi_aml_read_batch_cmd() 155 crc->head = (crc->head + len) & (ACPI_AML_BUF_SIZE - 1); in acpi_aml_read_batch_cmd() 165 p = &crc->buf[crc->head]; in acpi_aml_read_batch_log() 171 crc->head = (crc->head + 1) & (ACPI_AML_BUF_SIZE - 1); in acpi_aml_read_batch_log() 187 crc->head = (crc->head + 1) & (ACPI_AML_BUF_SIZE - 1); in acpi_aml_read_batch_log() 198 crc->head = (crc->head + 1) & (ACPI_AML_BUF_SIZE - 1); in acpi_aml_read_batch_log() [all …]
|
/openbmc/qemu/qobject/ |
H A D | qlist.c | 33 QTAILQ_INIT(&qlist->head); in qlist_new() 64 QTAILQ_INSERT_TAIL(&qlist->head, entry, next); in qlist_append_obj() 92 if (qlist == NULL || QTAILQ_EMPTY(&qlist->head)) { in qlist_pop() 96 entry = QTAILQ_FIRST(&qlist->head); in qlist_pop() 97 QTAILQ_REMOVE(&qlist->head, entry, next); in qlist_pop() 109 if (qlist == NULL || QTAILQ_EMPTY(&qlist->head)) { in qlist_peek() 113 entry = QTAILQ_FIRST(&qlist->head); in qlist_peek() 120 return QTAILQ_EMPTY(&qlist->head); in qlist_empty() 177 QTAILQ_FOREACH_SAFE(entry, &qlist->head, next, next_entry) { in qlist_destroy_obj() 178 QTAILQ_REMOVE(&qlist->head, entry, next); in qlist_destroy_obj()
|