/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
H A D | base.c | 39 list_for_each_entry(pad, &i2c->pad, head) { in nvkm_i2c_pad_find() 67 list_for_each_entry(bus, &i2c->bus, head) { in nvkm_i2c_bus_find() 80 list_for_each_entry(aux, &i2c->aux, head) { in nvkm_i2c_aux_find() 126 list_for_each_entry(aux, &i2c->aux, head) { in nvkm_i2c_intr() 146 list_for_each_entry(aux, &i2c->aux, head) { in nvkm_i2c_fini() 150 list_for_each_entry(bus, &i2c->bus, head) { in nvkm_i2c_fini() 159 list_for_each_entry(pad, &i2c->pad, head) { in nvkm_i2c_fini() 177 list_for_each_entry(pad, &i2c->pad, head) in nvkm_i2c_preinit() 179 list_for_each_entry(bus, &i2c->bus, head) in nvkm_i2c_preinit() 193 list_for_each_entry(pad, &i2c->pad, head) { in nvkm_i2c_init() [all...] |
/kernel/linux/linux-6.6/net/rxrpc/ |
H A D | call_accept.c | 46 unsigned int head, tail, call_head, call_tail; in rxrpc_service_prealloc_one() local 69 head = b->peer_backlog_head; in rxrpc_service_prealloc_one() 71 if (CIRC_CNT(head, tail, size) < max) { in rxrpc_service_prealloc_one() 77 b->peer_backlog[head] = peer; in rxrpc_service_prealloc_one() 79 (head + 1) & (size - 1)); in rxrpc_service_prealloc_one() 82 head = b->conn_backlog_head; in rxrpc_service_prealloc_one() 84 if (CIRC_CNT(head, tail, size) < max) { in rxrpc_service_prealloc_one() 90 b->conn_backlog[head] = conn; in rxrpc_service_prealloc_one() 92 (head + 1) & (size - 1)); in rxrpc_service_prealloc_one() 182 unsigned int size = RXRPC_BACKLOG_MAX, head, tai in rxrpc_discard_prealloc() local [all...] |
/kernel/linux/linux-6.6/mm/ |
H A D | hugetlb_vmemmap.c | 27 * @vmemmap_pages: the list head of the vmemmap pages that can be freed 44 struct page *head; in split_vmemmap_huge_pmd() local 48 head = pmd_leaf(*pmd) ? pmd_page(*pmd) : NULL; in split_vmemmap_huge_pmd() 51 if (!head) in split_vmemmap_huge_pmd() 64 entry = mk_pte(head + i, pgprot); in split_vmemmap_huge_pmd() 76 if (!PageReserved(head)) in split_vmemmap_huge_pmd() 77 split_page(head, get_order(PMD_SIZE)); in split_vmemmap_huge_pmd() 239 /* Remapping the head page requires r/w */ in vmemmap_remap_pte() 258 * How many struct page structs need to be reset. When we reuse the head 263 * head struc 453 hugetlb_vmemmap_restore(const struct hstate *h, struct page *head) hugetlb_vmemmap_restore() argument 483 vmemmap_should_optimize(const struct hstate *h, const struct page *head) vmemmap_should_optimize() argument 548 hugetlb_vmemmap_optimize(const struct hstate *h, struct page *head) hugetlb_vmemmap_optimize() argument [all...] |
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-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-5.10/include/linux/ |
H A D | tpm.h | 316 struct tpm_header *head = (struct tpm_header *)buf->data; in tpm_buf_reset() local 318 head->tag = cpu_to_be16(tag); in tpm_buf_reset() 319 head->length = cpu_to_be32(sizeof(*head)); in tpm_buf_reset() 320 head->ordinal = cpu_to_be32(ordinal); in tpm_buf_reset() 341 struct tpm_header *head = (struct tpm_header *)buf->data; in tpm_buf_length() local 343 return be32_to_cpu(head->length); in tpm_buf_length() 348 struct tpm_header *head = (struct tpm_header *)buf->data; in tpm_buf_tag() local 350 return be16_to_cpu(head->tag); in tpm_buf_tag() 357 struct tpm_header *head in tpm_buf_append() local [all...] |
H A D | seq_file.h | 245 extern struct list_head *seq_list_start(struct list_head *head, 247 extern struct list_head *seq_list_start_head(struct list_head *head, 249 extern struct list_head *seq_list_next(void *v, struct list_head *head, 256 extern struct hlist_node *seq_hlist_start(struct hlist_head *head, 258 extern struct hlist_node *seq_hlist_start_head(struct hlist_head *head, 260 extern struct hlist_node *seq_hlist_next(void *v, struct hlist_head *head, 263 extern struct hlist_node *seq_hlist_start_rcu(struct hlist_head *head, 265 extern struct hlist_node *seq_hlist_start_head_rcu(struct hlist_head *head, 268 struct hlist_head *head, 272 extern struct hlist_node *seq_hlist_start_percpu(struct hlist_head __percpu *head, in [all...] |
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | block-range.c | 119 if (next->start <= end) { /* add head: [start...][n->start...] */ in block_range__create() 120 struct block_range *head = malloc(sizeof(struct block_range)); in block_range__create() local 121 if (!head) in block_range__create() 124 *head = (struct block_range){ in block_range__create() 131 rb_link_left_of_node(&head->node, &next->node); in block_range__create() 132 rb_insert_color(&head->node, &block_ranges.root); in block_range__create() 135 iter.start = head; in block_range__create() 167 struct block_range *head = malloc(sizeof(struct block_range)); in block_range__create() local 168 if (!head) in block_range__create() 171 *head in block_range__create() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A D | drm_debugfs_crc.c | 181 return CIRC_CNT(crc->head, crc->tail, DRM_CRC_ENTRIES_NR); in crtc_crc_data_count() 189 crc->head = 0; in crtc_crc_cleanup() 398 int head, tail; in drm_crtc_add_crc_entry() local 409 head = crc->head; in drm_crtc_add_crc_entry() 412 if (CIRC_SPACE(head, tail, DRM_CRC_ENTRIES_NR) < 1) { in drm_crtc_add_crc_entry() 424 entry = &crc->entries[head]; in drm_crtc_add_crc_entry() 429 head = (head + 1) & (DRM_CRC_ENTRIES_NR - 1); in drm_crtc_add_crc_entry() 430 crc->head in drm_crtc_add_crc_entry() [all...] |
/kernel/linux/linux-5.10/drivers/nvme/host/ |
H A D | zns.c | 51 struct nvme_effects_log *log = ns->head->effects; in nvme_update_zone_info() 62 ns->head->ns_id); in nvme_update_zone_info() 78 c.identify.nsid = cpu_to_le32(ns->head->ns_id); in nvme_update_zone_info() 93 le16_to_cpu(id->zoc), ns->head->ns_id); in nvme_update_zone_info() 102 ns->zsze, ns->head->ns_id); in nvme_update_zone_info() 183 c.zmr.nsid = cpu_to_le32(ns->head->ns_id); in nvme_ns_report_zones() 228 struct nvme_ns_head *head = NULL; in nvme_report_zones() local 232 ns = nvme_get_ns_from_disk(disk, &head, &srcu_idx); in nvme_report_zones() 236 if (ns->head->ids.csi == NVME_CSI_ZNS) in nvme_report_zones() 240 nvme_put_ns_from_disk(head, srcu_id in nvme_report_zones() [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | tpm.h | 331 struct tpm_header *head = (struct tpm_header *)buf->data; in tpm_buf_reset() local 333 head->tag = cpu_to_be16(tag); in tpm_buf_reset() 334 head->length = cpu_to_be32(sizeof(*head)); in tpm_buf_reset() 335 head->ordinal = cpu_to_be32(ordinal); in tpm_buf_reset() 356 struct tpm_header *head = (struct tpm_header *)buf->data; in tpm_buf_length() local 358 return be32_to_cpu(head->length); in tpm_buf_length() 363 struct tpm_header *head = (struct tpm_header *)buf->data; in tpm_buf_tag() local 365 return be16_to_cpu(head->tag); in tpm_buf_tag() 372 struct tpm_header *head in tpm_buf_append() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_debugfs_crc.c | 181 return CIRC_CNT(crc->head, crc->tail, DRM_CRC_ENTRIES_NR); in crtc_crc_data_count() 189 crc->head = 0; in crtc_crc_cleanup() 398 int head, tail; in drm_crtc_add_crc_entry() local 409 head = crc->head; in drm_crtc_add_crc_entry() 412 if (CIRC_SPACE(head, tail, DRM_CRC_ENTRIES_NR) < 1) { in drm_crtc_add_crc_entry() 424 entry = &crc->entries[head]; in drm_crtc_add_crc_entry() 429 head = (head + 1) & (DRM_CRC_ENTRIES_NR - 1); in drm_crtc_add_crc_entry() 430 crc->head in drm_crtc_add_crc_entry() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | tu102.c | 24 #include "head.h" 33 tu102_sor_dp_vcpi(struct nvkm_ior *sor, int head, u8 slot, u8 slot_nr, u16 pbn, u16 aligned) in tu102_sor_dp_vcpi() argument 36 const u32 hoff = head * 0x800; in tu102_sor_dp_vcpi() 109 struct nvkm_head *head; in tu102_disp_init() local 135 list_for_each_entry(head, &disp->heads, head) { in tu102_disp_init() 136 const int id = head->id; in tu102_disp_init() 183 nvkm_wr32(device, 0x611cec, disp->head.mask << 16 | in tu102_disp_init() 196 list_for_each_entry(head, &disp->heads, head) { in tu102_disp_init() [all...] |
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | block-range.c | 115 if (next->start <= end) { /* add head: [start...][n->start...] */ in block_range__create() 116 struct block_range *head = malloc(sizeof(struct block_range)); in block_range__create() local 117 if (!head) in block_range__create() 120 *head = (struct block_range){ in block_range__create() 127 rb_link_left_of_node(&head->node, &next->node); in block_range__create() 128 rb_insert_color(&head->node, &block_ranges.root); in block_range__create() 131 iter.start = head; in block_range__create() 163 struct block_range *head = malloc(sizeof(struct block_range)); in block_range__create() local 164 if (!head) in block_range__create() 167 *head in block_range__create() [all...] |
/kernel/linux/linux-5.10/mm/ |
H A D | huge_memory.c | 2380 static void __split_huge_page_tail(struct page *head, int tail, in __split_huge_page_tail() argument 2383 struct page *page_tail = head + tail; in __split_huge_page_tail() 2394 page_tail->flags |= (head->flags & in __split_huge_page_tail() 2412 page_tail->mapping = head->mapping; in __split_huge_page_tail() 2413 page_tail->index = head->index + tail; in __split_huge_page_tail() 2427 page_ref_unfreeze(page_tail, 1 + (!PageAnon(head) || in __split_huge_page_tail() 2428 PageSwapCache(head))); in __split_huge_page_tail() 2430 if (page_is_young(head)) in __split_huge_page_tail() 2432 if (page_is_idle(head)) in __split_huge_page_tail() 2435 page_cpupid_xchg_last(page_tail, page_cpupid_last(head)); in __split_huge_page_tail() 2448 struct page *head = compound_head(page); __split_huge_page() local 2651 struct page *head = compound_head(page); split_huge_page_to_list() local 2660 VM_BUG_ON_PAGE(is_huge_zero_page(head), head); split_huge_page_to_list() local [all...] |
/kernel/liteos_a/shell/full/src/cmds/ |
H A D | dmesg.c | 125 UINT32 head = g_dmesgInfo->logHead;
in OsDmesgRead() local 139 if (head < tail) { /* Case A */
in OsDmesgRead() 140 ret = memcpy_s(buf, len, logBuf + head, readLen);
in OsDmesgRead() 147 if (readLen <= (g_logBufSize - head)) {
in OsDmesgRead() 148 ret = memcpy_s(buf, len, logBuf + head, readLen);
in OsDmesgRead() 155 ret = memcpy_s(buf, len, logBuf + head, g_logBufSize - head);
in OsDmesgRead() 160 ret = memcpy_s(buf + g_logBufSize - head, len - (g_logBufSize - head),
in OsDmesgRead() 161 logBuf, readLen - (g_logBufSize - head));
in OsDmesgRead() 674 UINT32 logSize, bufSize, head, tail, intSave; LOS_DmesgToFile() 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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
H A D | tu102.c | 34 int head = type - PLL_VPLL0; in tu102_devinit_pll_set() local 51 nvkm_wr32(device, 0x00ef10 + (head * 0x40), fN << 16); in tu102_devinit_pll_set() 52 nvkm_wr32(device, 0x00ef04 + (head * 0x40), (P << 16) | in tu102_devinit_pll_set() 56 nvkm_wr32(device, 0x00ef0c + (head * 0x40), 0x00000900); in tu102_devinit_pll_set() 57 nvkm_wr32(device, 0x00ef00 + (head * 0x40), 0x02000014); in tu102_devinit_pll_set()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | rootnv04.c | 26 #include "head.h" 46 struct nvkm_head *head; in nv04_disp_mthd() local 51 nvif_ioctl(object, "disp mthd vers %d mthd %02x head %d\n", in nv04_disp_mthd() 52 args->v0.version, args->v0.method, args->v0.head); in nv04_disp_mthd() 54 id = args->v0.head; in nv04_disp_mthd() 58 if (!(head = nvkm_head_find(root->disp, id))) in nv04_disp_mthd() 63 return nvkm_head_mthd_scanoutpos(object, head, data, size); in nv04_disp_mthd()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
H A D | ga100.c | 34 int head = type - PLL_VPLL0; in ga100_devinit_pll_set() local 51 nvkm_wr32(device, 0x00ef00 + (head * 0x40), 0x02080004); in ga100_devinit_pll_set() 52 nvkm_wr32(device, 0x00ef18 + (head * 0x40), (N << 16) | fN); in ga100_devinit_pll_set() 53 nvkm_wr32(device, 0x00ef04 + (head * 0x40), (P << 16) | M); in ga100_devinit_pll_set() 54 nvkm_wr32(device, 0x00e9c0 + (head * 0x04), 0x00000001); in ga100_devinit_pll_set()
|
H A D | tu102.c | 34 int head = type - PLL_VPLL0; in tu102_devinit_pll_set() local 51 nvkm_wr32(device, 0x00ef10 + (head * 0x40), fN << 16); in tu102_devinit_pll_set() 52 nvkm_wr32(device, 0x00ef04 + (head * 0x40), (P << 16) | in tu102_devinit_pll_set() 56 nvkm_wr32(device, 0x00ef0c + (head * 0x40), 0x00000900); in tu102_devinit_pll_set() 57 nvkm_wr32(device, 0x00ef00 + (head * 0x40), 0x02000014); in tu102_devinit_pll_set()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
H A D | cgrp.h | 16 struct list_head head; member 26 struct list_head head; member 54 struct list_head head; member 67 #define nvkm_cgrp_foreach_chan(chan,cgrp) list_for_each_entry((chan), &(cgrp)->chans, head) 69 list_for_each_entry_safe((chan), (ctmp), &(cgrp)->chans, head)
|
/kernel/linux/linux-6.6/tools/perf/arch/x86/util/ |
H A D | evlist.c | 15 LIST_HEAD(head); in ___evlist__add_default_attrs() 32 list_add_tail(&evsel->core.node, &head); in ___evlist__add_default_attrs() 48 list_add_tail(&evsel->core.node, &head); in ___evlist__add_default_attrs() 52 evlist__splice_list_tail(evlist, &head); in ___evlist__add_default_attrs() 60 __evlist__for_each_entry_safe(&head, n, evsel) in ___evlist__add_default_attrs()
|
/kernel/linux/linux-6.6/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()
|
/kernel/liteos_a/kernel/extended/trace/pipeline/ |
H A D | trace_tlv.c | 94 TraceMsgTlvHead *head = (TraceMsgTlvHead *)dest; in OsTraceDataEncode() local 105 head->magicNum = TRACE_TLV_MSG_HEAD; in OsTraceDataEncode() 106 head->msgType = type; in OsTraceDataEncode() 107 head->len = len; in OsTraceDataEncode() 108 head->crc = crc; in OsTraceDataEncode()
|