Home
last modified time | relevance | path

Searched refs:head (Results 226 - 250 of 4981) sorted by relevance

12345678910>>...200

/kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/
H A Dhvcserver.c56 * @head: list_head pointer for an allocated list of partner info structs to
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()
98 * @head: An initialized list_head pointer to an empty list to use to return the
116 * hvcs_free_partner_info() using a pointer to the SAME list head instance
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()
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dpipe_fs_i.h39 * @head: The point of buffer production
61 unsigned int head; member
145 * @head: The pipe ring head pointer
148 static inline bool pipe_empty(unsigned int head, unsigned int tail) in pipe_empty() argument
150 return head == tail; in pipe_empty()
155 * @head: The pipe ring head pointer
158 static inline unsigned int pipe_occupancy(unsigned int head, unsigned int tail) in pipe_occupancy() argument
160 return head in pipe_occupancy()
169 pipe_full(unsigned int head, unsigned int tail, unsigned int limit) pipe_full() argument
[all...]
H A Dnotifier.h62 struct notifier_block __rcu *head; member
67 struct notifier_block __rcu *head; member
71 struct notifier_block __rcu *head; member
78 struct notifier_block __rcu *head; member
83 (name)->head = NULL; \
87 (name)->head = NULL; \
90 (name)->head = NULL; \
100 .head = NULL }
103 .head = NULL }
105 .head
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/uc/
H A Dintel_guc_ct.c93 desc->head = 0; in guc_ct_buffer_desc_reset()
320 u32 head = desc->head; in ct_write() local
331 if (unlikely(!IS_ALIGNED(head | tail | size, 4) || in ct_write()
332 (tail | head) >= size)) in ct_write()
336 head /= 4; in ct_write()
341 * tail == head condition indicates empty. GuC FW does not support in ct_write()
342 * using up the entire buffer to get tail == head meaning full. in ct_write()
344 if (tail < head) in ct_write()
345 used = (size - head) in ct_write()
592 u32 head = desc->head; ct_read() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/signal/testcases/
H A Dza_regs.c68 struct _aarch64_ctx *head = GET_BUF_RESV_HEAD(context); in do_one_sme_vl() local
86 head = get_header(head, ZA_MAGIC, GET_BUF_RESV_SIZE(context), &offset); in do_one_sme_vl()
87 if (!head) { in do_one_sme_vl()
92 za = (struct za_context *)head; in do_one_sme_vl()
98 if (head->size != ZA_SIG_CONTEXT_SIZE(sve_vq_from_vl(vl))) { in do_one_sme_vl()
100 head->size, ZA_SIG_CONTEXT_SIZE(sve_vq_from_vl(vl))); in do_one_sme_vl()
105 head->size, za->vl); in do_one_sme_vl()
H A Dza_no_regs.c56 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 Dfake_sigreturn_bad_magic.c21 struct _aarch64_ctx *shead = GET_SF_RESV_HEAD(sf), *head; in fake_sigreturn_bad_magic_run() local
28 head = get_starting_head(shead, HDR_SZ * 2, GET_SF_RESV_SIZE(sf), NULL); in fake_sigreturn_bad_magic_run()
29 if (!head) in fake_sigreturn_bad_magic_run()
36 head->magic = KSFT_BAD_MAGIC; in fake_sigreturn_bad_magic_run()
37 head->size = HDR_SZ; in fake_sigreturn_bad_magic_run()
38 write_terminator_record(GET_RESV_NEXT_HEAD(head)); in fake_sigreturn_bad_magic_run()
H A Dfake_sigreturn_duplicated_fpsimd.c21 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()
/kernel/liteos_a/kernel/base/include/
H A Dlos_sortlink_pri.h72 LOS_DL_LIST *head = &sortHeader->sortLink; in OsGetSortLinkNextExpireTime() local
73 LOS_DL_LIST *list = head->pstNext; in OsGetSortLinkNextExpireTime()
76 if (LOS_ListEmpty(head)) { in OsGetSortLinkNextExpireTime()
91 STATIC INLINE UINT32 OsGetSortLinkNodeNum(const SortLinkAttribute *head) in OsGetSortLinkNodeNum() argument
93 return head->nodeNum; in OsGetSortLinkNodeNum()
106 VOID OsAdd2SortLink(SortLinkAttribute *head, SortLinkList *node, UINT64 responseTime, UINT16 idleCpu);
107 VOID OsDeleteFromSortLink(SortLinkAttribute *head, SortLinkList *node);
110 UINT32 OsSortLinkAdjustNodeResponseTime(SortLinkAttribute *head, SortLinkList *node, UINT64 responseTime);
/kernel/linux/linux-5.10/drivers/infiniband/hw/vmw_pvrdma/
H A Dpvrdma_ring.h55 atomic_t cons_head; /* Consumer head. */
90 const __u32 head = atomic_read(&r->cons_head); in pvrdma_idx_ring_has_space() local
93 pvrdma_idx_valid(head, max_elems)) { in pvrdma_idx_ring_has_space()
95 return tail != (head ^ max_elems); in pvrdma_idx_ring_has_space()
104 const __u32 head = atomic_read(&r->cons_head); in pvrdma_idx_ring_has_data() local
107 pvrdma_idx_valid(head, max_elems)) { in pvrdma_idx_ring_has_data()
108 *out_head = head & (max_elems - 1); in pvrdma_idx_ring_has_data()
109 return tail != head; in pvrdma_idx_ring_has_data()
/kernel/linux/linux-6.6/drivers/infiniband/hw/vmw_pvrdma/
H A Dpvrdma_ring.h55 atomic_t cons_head; /* Consumer head. */
90 const __u32 head = atomic_read(&r->cons_head); in pvrdma_idx_ring_has_space() local
93 pvrdma_idx_valid(head, max_elems)) { in pvrdma_idx_ring_has_space()
95 return tail != (head ^ max_elems); in pvrdma_idx_ring_has_space()
104 const __u32 head = atomic_read(&r->cons_head); in pvrdma_idx_ring_has_data() local
107 pvrdma_idx_valid(head, max_elems)) { in pvrdma_idx_ring_has_data()
108 *out_head = head & (max_elems - 1); in pvrdma_idx_ring_has_data()
109 return tail != head; in pvrdma_idx_ring_has_data()
/kernel/linux/linux-5.10/arch/x86/events/intel/
H A Dbts.c58 local_t head; member
152 index = local_read(&buf->head); in bts_config_buffer()
176 static void bts_buffer_pad_out(struct bts_phys *phys, unsigned long head) in bts_buffer_pad_out() argument
178 unsigned long index = head - phys->offset; in bts_buffer_pad_out()
188 unsigned long index = ds->bts_index - ds->bts_buffer_base, old, head; in bts_update() local
193 head = index + bts_buffer_offset(buf, buf->cur_buf); in bts_update()
194 old = local_xchg(&buf->head, head); in bts_update()
197 if (old == head) in bts_update()
205 * old and head ar in bts_update()
371 unsigned long head, space, next_space, pad, gap, skip, wakeup; bts_buffer_reset() local
[all...]
/kernel/linux/linux-6.6/arch/x86/events/intel/
H A Dbts.c58 local_t head; member
152 index = local_read(&buf->head); in bts_config_buffer()
176 static void bts_buffer_pad_out(struct bts_phys *phys, unsigned long head) in bts_buffer_pad_out() argument
178 unsigned long index = head - phys->offset; in bts_buffer_pad_out()
188 unsigned long index = ds->bts_index - ds->bts_buffer_base, old, head; in bts_update() local
193 head = index + bts_buffer_offset(buf, buf->cur_buf); in bts_update()
194 old = local_xchg(&buf->head, head); in bts_update()
197 if (old == head) in bts_update()
205 * old and head ar in bts_update()
377 unsigned long head, space, next_space, pad, gap, skip, wakeup; bts_buffer_reset() local
[all...]
/kernel/linux/common_modules/memory_security/include/
H A Djit_space_list.h22 struct list_head head; member
27 struct list_head head; member
32 const void find_jit_space(struct list_head *head, unsigned long begin, unsigned long size, int *err);
33 void update_jit_space(struct list_head *head, unsigned long begin, unsigned long size);
34 void delete_jit_space(struct list_head *head, unsigned long begin, unsigned long size, int *err);
35 void exit_jit_space(struct list_head *head);
/kernel/linux/linux-5.10/tools/testing/selftests/arm64/signal/testcases/
H A Dfake_sigreturn_bad_magic.c21 struct _aarch64_ctx *shead = GET_SF_RESV_HEAD(sf), *head; in fake_sigreturn_bad_magic_run() local
28 head = get_starting_head(shead, HDR_SZ * 2, GET_SF_RESV_SIZE(sf), NULL); in fake_sigreturn_bad_magic_run()
29 if (!head) in fake_sigreturn_bad_magic_run()
36 head->magic = KSFT_BAD_MAGIC; in fake_sigreturn_bad_magic_run()
37 head->size = HDR_SZ; in fake_sigreturn_bad_magic_run()
38 write_terminator_record(GET_RESV_NEXT_HEAD(head)); in fake_sigreturn_bad_magic_run()
H A Dfake_sigreturn_duplicated_fpsimd.c21 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()
/kernel/linux/linux-5.10/include/linux/
H A Dnotifier.h62 struct notifier_block __rcu *head; member
67 struct notifier_block __rcu *head; member
71 struct notifier_block __rcu *head; member
77 struct notifier_block __rcu *head; member
82 (name)->head = NULL; \
86 (name)->head = NULL; \
89 (name)->head = NULL; \
99 .head = NULL }
102 .head = NULL }
104 .head
[all...]
/kernel/linux/linux-5.10/include/linux/wimax/
H A Ddebug.h143 * @head: buffer where to place the header
144 * @head_size: length of @head
149 void __d_head(char *head, size_t head_size, in __d_head() argument
153 head[0] = 0; in __d_head()
158 snprintf(head, head_size, "%s %s: ", in __d_head()
178 char head[64]; \
181 __d_head(head, sizeof(head), dev); \
182 printk(KERN_ERR "%s%s%s: " f, head, __func__, tag, ##a); \
393 char head[6
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/
H A Ddrm_hashtab.c73 hlist_for_each_entry(entry, h_list, head) in drm_ht_verbose_list()
86 hlist_for_each_entry(entry, h_list, head) { in drm_ht_find_key()
88 return &entry->head; in drm_ht_find_key()
104 hlist_for_each_entry_rcu(entry, h_list, head) { in drm_ht_find_key_rcu()
106 return &entry->head; in drm_ht_find_key_rcu()
124 hlist_for_each_entry(entry, h_list, head) { in drm_ht_insert_item()
129 parent = &entry->head; in drm_ht_insert_item()
132 hlist_add_behind_rcu(&item->head, parent); in drm_ht_insert_item()
134 hlist_add_head_rcu(&item->head, h_list); in drm_ht_insert_item()
178 *item = hlist_entry(list, struct drm_hash_item, head); in drm_ht_find_item()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Dtu102.c23 #include "head.h"
35 struct nvkm_head *head; in tu102_disp_init() local
61 list_for_each_entry(head, &disp->base.head, head) { in tu102_disp_init()
62 const int id = head->id; in tu102_disp_init()
109 nvkm_wr32(device, 0x611cec, disp->head.mask << 16 | in tu102_disp_init()
122 list_for_each_entry(head, &disp->base.head, head) { in tu102_disp_init()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/
H A Ddrm_hashtab.c72 hlist_for_each_entry(entry, h_list, head) in drm_ht_verbose_list()
85 hlist_for_each_entry(entry, h_list, head) { in drm_ht_find_key()
87 return &entry->head; in drm_ht_find_key()
103 hlist_for_each_entry_rcu(entry, h_list, head) { in drm_ht_find_key_rcu()
105 return &entry->head; in drm_ht_find_key_rcu()
123 hlist_for_each_entry(entry, h_list, head) { in drm_ht_insert_item()
128 parent = &entry->head; in drm_ht_insert_item()
131 hlist_add_behind_rcu(&item->head, parent); in drm_ht_insert_item()
133 hlist_add_head_rcu(&item->head, h_list); in drm_ht_insert_item()
175 *item = hlist_entry(list, struct drm_hash_item, head); in drm_ht_find_item()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Dgf119.c27 #include "head.h"
37 gf119_sor_hda_device_entry(struct nvkm_ior *ior, int head) in gf119_sor_hda_device_entry() argument
40 const u32 hoff = 0x800 * head; in gf119_sor_hda_device_entry()
42 nvkm_mask(device, 0x616548 + hoff, 0x00000070, head << 4); in gf119_sor_hda_device_entry()
46 gf119_sor_hda_eld(struct nvkm_ior *ior, int head, u8 *data, u8 size) in gf119_sor_hda_eld() argument
49 const u32 soff = 0x030 * ior->id + (head * 0x04); in gf119_sor_hda_eld()
60 gf119_sor_hda_hpd(struct nvkm_ior *ior, int head, bool present) in gf119_sor_hda_hpd() argument
63 const u32 soff = 0x030 * ior->id + (head * 0x04); in gf119_sor_hda_hpd()
68 ior->func->hda->device_entry(ior, head); in gf119_sor_hda_hpd()
85 gf119_sor_dp_watermark(struct nvkm_ior *sor, int head, u argument
94 gf119_sor_dp_audio_sym(struct nvkm_ior *sor, int head, u16 h, u32 v) gf119_sor_dp_audio_sym() argument
104 gf119_sor_dp_audio(struct nvkm_ior *sor, int head, bool enable) gf119_sor_dp_audio() argument
119 gf119_sor_dp_vcpi(struct nvkm_ior *sor, int head, u8 slot, u8 slot_nr, u16 pbn, u16 aligned) gf119_sor_dp_vcpi() argument
205 gf119_sor_hdmi_infoframe_vsi(struct nvkm_ior *ior, int head, void *data, u32 size) gf119_sor_hdmi_infoframe_vsi() argument
231 gf119_sor_hdmi_infoframe_avi(struct nvkm_ior *ior, int head, void *data, u32 size) gf119_sor_hdmi_infoframe_avi() argument
253 gf119_sor_hdmi_ctrl(struct nvkm_ior *ior, int head, bool enable, u8 max_ac_packet, u8 rekey) gf119_sor_hdmi_ctrl() argument
399 gf119_head_vblank_put(struct nvkm_head *head) gf119_head_vblank_put() argument
407 gf119_head_vblank_get(struct nvkm_head *head) gf119_head_vblank_get() argument
415 gf119_head_rgclk(struct nvkm_head *head, int div) gf119_head_rgclk() argument
422 gf119_head_state(struct nvkm_head *head, struct nvkm_head_state *state) gf119_head_state() argument
1015 struct nvkm_head *head; gf119_disp_super() local
1105 struct nvkm_head *head; gf119_disp_intr() local
1168 struct nvkm_head *head; gf119_disp_init() local
[all...]
/kernel/linux/linux-5.10/drivers/input/joystick/iforce/
H A Diforce-packets.c33 int head, tail; in iforce_send_packet() local
37 * Update head and tail of xmit buffer in iforce_send_packet()
41 head = iforce->xmit.head; in iforce_send_packet()
45 if (CIRC_SPACE(head, tail, XMIT_SIZE) < n+2) { in iforce_send_packet()
52 empty = head == tail; in iforce_send_packet()
53 XMIT_INC(iforce->xmit.head, n+2); in iforce_send_packet()
58 iforce->xmit.buf[head] = HI(cmd); in iforce_send_packet()
59 XMIT_INC(head, 1); in iforce_send_packet()
60 iforce->xmit.buf[head] in iforce_send_packet()
[all...]
/kernel/linux/linux-5.10/drivers/scsi/arm/
H A Dqueue.c61 INIT_LIST_HEAD(&queue->head); in queue_initialise()
66 * host-available list head, and we wouldn't in queue_initialise()
89 if (!list_empty(&queue->head)) in queue_free()
96 * Function: int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head)
97 * Purpose : Add a new command onto a queue, adding REQUEST_SENSE to head.
100 * head - add command to head of queue
103 int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head) in __queue_add() argument
123 if (head) in __queue_add()
124 list_add(l, &queue->head); in __queue_add()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/dispnv04/
H A Dtvnv04.c88 int head = nouveau_crtc(encoder->crtc)->index; in nv04_tv_dpms() local
89 crtc1A = NVReadVgaCrtc(dev, head, NV_CIO_CRE_RPC1_INDEX); in nv04_tv_dpms()
91 state->pllsel |= head ? PLLSEL_TV_CRTC2_MASK : in nv04_tv_dpms()
97 NVWriteVgaCrtc(dev, head, NV_CIO_CRE_RPC1_INDEX, crtc1A); in nv04_tv_dpms()
105 static void nv04_tv_bind(struct drm_device *dev, int head, bool bind) in nv04_tv_bind() argument
107 struct nv04_crtc_reg *state = &nv04_display(dev)->mode_reg.crtc_reg[head]; in nv04_tv_bind()
116 NVWriteVgaCrtc(dev, head, NV_CIO_CRE_LCD__INDEX, in nv04_tv_bind()
118 NVWriteVgaCrtc(dev, head, NV_CIO_CRE_49, in nv04_tv_bind()
120 NVWriteRAMDAC(dev, head, NV_PRAMDAC_TV_SETUP, in nv04_tv_bind()
127 int head in nv04_tv_prepare() local
[all...]

Completed in 11 milliseconds

12345678910>>...200