/kernel/linux/linux-5.10/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), 135 list_for_each_entry_rcu(a, &desc->head, lis in nmi_handle() [all...] |
/kernel/linux/linux-5.10/fs/ |
H A D | pipe.c | 62 * We use head and tail indices that aren't masked off, except at the point of 222 unsigned int head = READ_ONCE(pipe->head); in pipe_readable() local 226 return !pipe_empty(head, tail) || !writers; in pipe_readable() 253 was_full = pipe_full(pipe->head, pipe->tail, pipe->max_usage); in pipe_read() 255 /* Read ->head with a barrier vs post_one_notification() */ in pipe_read() 256 unsigned int head = smp_load_acquire(&pipe->head); in pipe_read() local 284 if (!pipe_empty(head, tail)) { in pipe_read() 336 if (!pipe_empty(head, tai in pipe_read() 406 unsigned int head = READ_ONCE(pipe->head); pipe_writable() local 419 unsigned int head; pipe_write() local 607 int count, head, tail, mask; pipe_ioctl() local 650 unsigned int head, tail; pipe_poll() local 1253 unsigned int head, tail, mask, n; pipe_resize_ring() local [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/arm64/signal/testcases/ |
H A D | fake_sigreturn_missing_fpsimd.c | 23 struct _aarch64_ctx *head = GET_SF_RESV_HEAD(sf); in fake_sigreturn_missing_fpsimd_run() local 30 head = get_header(head, FPSIMD_MAGIC, resv_sz, &offset); in fake_sigreturn_missing_fpsimd_run() 31 if (head && resv_sz - offset >= HDR_SZ) { in fake_sigreturn_missing_fpsimd_run() 35 write_terminator_record(head); in fake_sigreturn_missing_fpsimd_run()
|
H A D | fake_sigreturn_bad_size_for_magic0.c | 21 struct _aarch64_ctx *shead = GET_SF_RESV_HEAD(sf), *head; in fake_sigreturn_bad_size_for_magic0_run() local 28 head = get_starting_head(shead, HDR_SZ, GET_SF_RESV_SIZE(sf), NULL); in fake_sigreturn_bad_size_for_magic0_run() 29 if (!head) in fake_sigreturn_bad_size_for_magic0_run() 32 head->magic = 0; in fake_sigreturn_bad_size_for_magic0_run() 33 head->size = HDR_SZ; in fake_sigreturn_bad_size_for_magic0_run()
|
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/signal/testcases/ |
H A D | fake_sigreturn_missing_fpsimd.c | 23 struct _aarch64_ctx *head = GET_SF_RESV_HEAD(sf); in fake_sigreturn_missing_fpsimd_run() local 30 head = get_header(head, FPSIMD_MAGIC, resv_sz, &offset); in fake_sigreturn_missing_fpsimd_run() 31 if (head && resv_sz - offset >= HDR_SZ) { in fake_sigreturn_missing_fpsimd_run() 35 write_terminator_record(head); in fake_sigreturn_missing_fpsimd_run()
|
H A D | fake_sigreturn_bad_size_for_magic0.c | 21 struct _aarch64_ctx *shead = GET_SF_RESV_HEAD(sf), *head; in fake_sigreturn_bad_size_for_magic0_run() local 28 head = get_starting_head(shead, HDR_SZ, GET_SF_RESV_SIZE(sf), NULL); in fake_sigreturn_bad_size_for_magic0_run() 29 if (!head) in fake_sigreturn_bad_size_for_magic0_run() 32 head->magic = 0; in fake_sigreturn_bad_size_for_magic0_run() 33 head->size = HDR_SZ; in fake_sigreturn_bad_size_for_magic0_run()
|
/kernel/linux/linux-5.10/net/sunrpc/auth_gss/ |
H A D | gss_krb5_wrap.c | 58 iov = &buf->head[0]; in gss_krb5_add_padding() 72 if (len <= buf->head[0].iov_len) { in gss_krb5_remove_padding() 73 pad = *(u8 *)(buf->head[0].iov_base + len - 1); in gss_krb5_remove_padding() 74 if (pad > buf->head[0].iov_len) in gss_krb5_remove_padding() 76 buf->head[0].iov_len -= pad; in gss_krb5_remove_padding() 79 len -= buf->head[0].iov_len; in gss_krb5_remove_padding() 97 * However adjusting the head length, as we do above, is harmless. in gss_krb5_remove_padding() 99 * also uses length and head length together to determine the original in gss_krb5_remove_padding() 101 * easier on the server if we adjust head and tail length in tandem. in gss_krb5_remove_padding() 149 /* Assumptions: the head an 372 char head[LOCAL_BUF_LEN]; rotate_buf_a_little() local [all...] |
/kernel/linux/linux-5.10/tools/power/acpi/tools/acpidbg/ |
H A D | acpidbg.c | 42 (CIRC_CNT((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 44 (CIRC_CNT_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 46 (CIRC_SPACE((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 48 (CIRC_SPACE_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 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() [all...] |
/kernel/linux/linux-5.10/fs/befs/ |
H A D | btree.c | 82 befs_host_btree_nodehead head; /* head of node converted to cpu byteorder */ member 185 * starts at @node_off, with the node->head fields in cpu byte order. 214 node->head.left = fs64_to_cpu(sb, node->od_node->left); in befs_bt_read_node() 215 node->head.right = fs64_to_cpu(sb, node->od_node->right); in befs_bt_read_node() 216 node->head.overflow = fs64_to_cpu(sb, node->od_node->overflow); in befs_bt_read_node() 217 node->head.all_key_count = in befs_bt_read_node() 219 node->head.all_key_length = in befs_bt_read_node() 283 node_off = this_node->head.overflow; in befs_btree_find() 345 last = node->head in befs_find_key() [all...] |
/kernel/linux/linux-6.6/fs/befs/ |
H A D | btree.c | 82 befs_host_btree_nodehead head; /* head of node converted to cpu byteorder */ member 185 * starts at @node_off, with the node->head fields in cpu byte order. 214 node->head.left = fs64_to_cpu(sb, node->od_node->left); in befs_bt_read_node() 215 node->head.right = fs64_to_cpu(sb, node->od_node->right); in befs_bt_read_node() 216 node->head.overflow = fs64_to_cpu(sb, node->od_node->overflow); in befs_bt_read_node() 217 node->head.all_key_count = in befs_bt_read_node() 219 node->head.all_key_length = in befs_bt_read_node() 283 node_off = this_node->head.overflow; in befs_btree_find() 345 last = node->head in befs_find_key() [all...] |
/kernel/linux/linux-6.6/tools/power/acpi/tools/acpidbg/ |
H A D | acpidbg.c | 42 (CIRC_CNT((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 44 (CIRC_CNT_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 46 (CIRC_SPACE((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 48 (CIRC_SPACE_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 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() [all...] |
/kernel/linux/linux-5.10/net/sched/ |
H A D | sch_hhf.c | 121 struct sk_buff *head; member 181 struct list_head *head, in seek_list() 187 if (list_empty(head)) in seek_list() 190 list_for_each_entry_safe(flow, next, head, flowchain) { in seek_list() 197 if (list_is_last(&flow->flowchain, head)) in seek_list() 212 static struct hh_flow_state *alloc_new_hh(struct list_head *head, in alloc_new_hh() argument 218 if (!list_empty(head)) { in alloc_new_hh() 220 list_for_each_entry(flow, head, flowchain) { in alloc_new_hh() 239 list_add_tail(&flow->flowchain, head); in alloc_new_hh() 328 /* Removes one skb from head o 180 seek_list(const u32 hash, struct list_head *head, struct hhf_sched_data *q) seek_list() argument 423 struct list_head *head; hhf_dequeue() local 486 struct list_head *head = &q->hh_flows[i]; hhf_destroy() local [all...] |
/kernel/linux/linux-6.6/net/sched/ |
H A D | sch_hhf.c | 121 struct sk_buff *head; member 181 struct list_head *head, in seek_list() 187 if (list_empty(head)) in seek_list() 190 list_for_each_entry_safe(flow, next, head, flowchain) { in seek_list() 197 if (list_is_last(&flow->flowchain, head)) in seek_list() 212 static struct hh_flow_state *alloc_new_hh(struct list_head *head, in alloc_new_hh() argument 218 if (!list_empty(head)) { in alloc_new_hh() 220 list_for_each_entry(flow, head, flowchain) { in alloc_new_hh() 239 list_add_tail(&flow->flowchain, head); in alloc_new_hh() 328 /* Removes one skb from head o 180 seek_list(const u32 hash, struct list_head *head, struct hhf_sched_data *q) seek_list() argument 423 struct list_head *head; hhf_dequeue() local 486 struct list_head *head = &q->hh_flows[i]; hhf_destroy() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | action.c | 39 push_mpls->head.jump_id = NFP_FL_ACTION_OPCODE_PUSH_MPLS; in nfp_fl_push_mpls() 40 push_mpls->head.len_lw = act_size >> NFP_FL_LW_SIZ; in nfp_fl_push_mpls() 69 pop_mpls->head.jump_id = NFP_FL_ACTION_OPCODE_POP_MPLS; in nfp_fl_pop_mpls() 70 pop_mpls->head.len_lw = act_size >> NFP_FL_LW_SIZ; in nfp_fl_pop_mpls() 81 set_mpls->head.jump_id = NFP_FL_ACTION_OPCODE_SET_MPLS; in nfp_fl_set_mpls() 82 set_mpls->head.len_lw = act_size >> NFP_FL_LW_SIZ; in nfp_fl_set_mpls() 109 pop_vlan->head.jump_id = NFP_FL_ACTION_OPCODE_POP_VLAN; in nfp_fl_pop_vlan() 110 pop_vlan->head.len_lw = act_size >> NFP_FL_LW_SIZ; in nfp_fl_pop_vlan() 121 push_vlan->head.jump_id = NFP_FL_ACTION_OPCODE_PUSH_VLAN; in nfp_fl_push_vlan() 122 push_vlan->head in nfp_fl_push_vlan() [all...] |
/kernel/linux/linux-6.6/fs/ |
H A D | pipe.c | 63 * We use head and tail indices that aren't masked off, except at the point of 223 unsigned int head = READ_ONCE(pipe->head); in pipe_readable() local 227 return !pipe_empty(head, tail) || !writers; in pipe_readable() 254 was_full = pipe_full(pipe->head, pipe->tail, pipe->max_usage); in pipe_read() 256 /* Read ->head with a barrier vs post_one_notification() */ in pipe_read() 257 unsigned int head = smp_load_acquire(&pipe->head); in pipe_read() local 285 if (!pipe_empty(head, tail)) { in pipe_read() 337 if (!pipe_empty(head, tai in pipe_read() 408 unsigned int head = READ_ONCE(pipe->head); pipe_writable() local 421 unsigned int head; pipe_write() local 609 unsigned int count, head, tail, mask; pipe_ioctl() local 652 unsigned int head, tail; pipe_poll() local 1258 unsigned int head, tail, mask, n; pipe_resize_ring() local [all...] |
/foundation/multimedia/audio_framework/frameworks/cj/src/ |
H A D | multimedia_audio_stream_manager_impl.cpp | 53 auto head = static_cast<int32_t *>(malloc(sizeof(int32_t) * audioSceneEffectInfo.mode.size())); in GetAudioEffectInfoArray() local 54 if (head == nullptr) { in GetAudioEffectInfoArray() 58 head[i] = static_cast<int32_t>(audioSceneEffectInfo.mode[i]); in GetAudioEffectInfoArray() 60 arr.head = head; in GetAudioEffectInfoArray() 75 auto head = static_cast<CAudioCapturerChangeInfo *>( in GetAudioCapturerInfoArray() local 77 if (head == nullptr) { in GetAudioCapturerInfoArray() 81 Convert2CAudioCapturerChangeInfo(head[i], *(audioCapturerChangeInfos[i]), errorCode); in GetAudioCapturerInfoArray()
|
/kernel/linux/linux-5.10/drivers/infiniband/sw/rdmavt/ |
H A D | rc.c | 107 u32 head; in rvt_compute_aeth() local 114 head = RDMA_READ_UAPI_ATOMIC(qp->r_rq.wq->head); in rvt_compute_aeth() 117 head = READ_ONCE(qp->r_rq.kwq->head); in rvt_compute_aeth() 120 if (head >= qp->r_rq.size) in rvt_compute_aeth() 121 head = 0; in rvt_compute_aeth() 130 credits = rvt_get_rq_count(&qp->r_rq, head, tail); in rvt_compute_aeth()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/top/ |
H A D | base.c | 39 list_add_tail(&info->head, &top->device); in nvkm_top_device_new() 51 list_for_each_entry(info, &top->device, head) { in nvkm_top_addr() 67 list_for_each_entry(info, &top->device, head) { in nvkm_top_reset() 83 list_for_each_entry(info, &top->device, head) { in nvkm_top_intr_mask() 98 list_for_each_entry(info, &top->device, head) { in nvkm_top_fault_id() 112 list_for_each_entry(info, &top->device, head) { in nvkm_top_fault() 137 list_for_each_entry_safe(info, temp, &top->device, head) { in nvkm_top_dtor() 138 list_del(&info->head); in nvkm_top_dtor()
|
/kernel/linux/linux-6.6/drivers/infiniband/sw/rdmavt/ |
H A D | rc.c | 65 u32 head; in rvt_compute_aeth() local 72 head = RDMA_READ_UAPI_ATOMIC(qp->r_rq.wq->head); in rvt_compute_aeth() 75 head = READ_ONCE(qp->r_rq.kwq->head); in rvt_compute_aeth() 78 if (head >= qp->r_rq.size) in rvt_compute_aeth() 79 head = 0; in rvt_compute_aeth() 88 credits = rvt_get_rq_count(&qp->r_rq, head, tail); in rvt_compute_aeth()
|
/kernel/linux/linux-5.10/tools/testing/selftests/rseq/ |
H A D | basic_percpu_ops_test.c | 39 struct percpu_list_node *head; member 145 /* Load list->c[cpu].head with single-copy atomicity. */ in this_cpu_list_push() 146 expect = (intptr_t)RSEQ_READ_ONCE(list->c[cpu].head); in this_cpu_list_push() 148 targetptr = (intptr_t *)&list->c[cpu].head; in this_cpu_list_push() 168 struct percpu_list_node *head; in this_cpu_list_pop() local 174 targetptr = (intptr_t *)&list->c[cpu].head; in this_cpu_list_pop() 177 load = (intptr_t *)&head; in this_cpu_list_pop() 183 return head; in this_cpu_list_pop() 199 node = list->c[cpu].head; in __percpu_list_pop() 202 list->c[cpu].head in __percpu_list_pop() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | ior.h | 18 struct list_head head; member 34 unsigned head:8; member 66 void (*ctrl)(struct nvkm_ior *, int head, bool enable, 79 void (*vcpi)(struct nvkm_ior *, int head, u8 slot, 81 void (*audio)(struct nvkm_ior *, int head, bool enable); 82 void (*audio_sym)(struct nvkm_ior *, int head, u16 h, u32 v); 83 void (*activesym)(struct nvkm_ior *, int head, 85 void (*watermark)(struct nvkm_ior *, int head, u8 watermark); 89 void (*hpd)(struct nvkm_ior *, int head, bool present); 90 void (*eld)(struct nvkm_ior *, int head, u [all...] |
/kernel/linux/linux-6.6/fs/erofs/ |
H A D | namei.c | 50 int head, back; in find_target_dirent() local 55 head = 1; in find_target_dirent() 59 while (head <= back) { in find_target_dirent() 60 const int mid = head + (back - head) / 2; in find_target_dirent() 78 head = mid + 1; in find_target_dirent() 93 int head = 0, back = erofs_iblks(dir) - 1; in erofs_find_target_block() local 97 while (head <= back) { in erofs_find_target_block() 98 const int mid = head + (back - head) / in erofs_find_target_block() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/rseq/ |
H A D | basic_percpu_ops_test.c | 65 struct percpu_list_node *head; member 171 /* Load list->c[cpu].head with single-copy atomicity. */ in this_cpu_list_push() 172 expect = (intptr_t)RSEQ_READ_ONCE(list->c[cpu].head); in this_cpu_list_push() 174 targetptr = (intptr_t *)&list->c[cpu].head; in this_cpu_list_push() 195 struct percpu_list_node *head; in this_cpu_list_pop() local 201 targetptr = (intptr_t *)&list->c[cpu].head; in this_cpu_list_pop() 204 load = (intptr_t *)&head; in this_cpu_list_pop() 211 return head; in this_cpu_list_pop() 227 node = list->c[cpu].head; in __percpu_list_pop() 230 list->c[cpu].head in __percpu_list_pop() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_rx_filter.c | 28 struct hlist_head *head; in ionic_rx_filter_replay() local 38 head = &lif->rx_filters.by_id[i]; in ionic_rx_filter_replay() 39 hlist_for_each_entry_safe(f, tmp, head, by_id) { in ionic_rx_filter_replay() 85 head = &lif->rx_filters.by_id[key]; in ionic_rx_filter_replay() 86 hlist_add_head(&f->by_id, head); in ionic_rx_filter_replay() 110 struct hlist_head *head; in ionic_rx_filters_deinit() local 116 head = &lif->rx_filters.by_id[i]; in ionic_rx_filters_deinit() 117 hlist_for_each_entry_safe(f, tmp, head, by_id) in ionic_rx_filters_deinit() 130 struct hlist_head *head; in ionic_rx_filter_save() local 175 head in ionic_rx_filter_save() 188 struct hlist_head *head; ionic_rx_filter_by_vlan() local 208 struct hlist_head *head; ionic_rx_filter_by_addr() local 227 struct hlist_head *head; ionic_rx_filter_rxsteer() local 565 struct hlist_head *head; ionic_rx_filter_sync() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_validation.c | 54 * @head: List head for the resource validation list. 73 struct list_head head; member 193 list_for_each_entry(entry, &ctx->bo_list, base.head) { in vmw_validation_find_bo_dup() 230 list_for_each_entry(entry, &ctx->resource_ctx_list, head) { in vmw_validation_find_res_dup() 237 list_for_each_entry(entry, &ctx->resource_list, head) { in vmw_validation_find_res_dup() 294 list_add_tail(&val_buf->head, &ctx->bo_list); in vmw_validation_add_bo() 350 list_add_tail(&node->head, &ctx->resource_list); in vmw_validation_add_resource() 355 list_add(&node->head, &ctx->resource_ctx_list); in vmw_validation_add_resource() 358 list_add_tail(&node->head, in vmw_validation_add_resource() [all...] |