| /linux/tools/include/linux/ |
| H A D | list.h | 27 list->next = list; in INIT_LIST_HEAD() 40 struct list_head *next) in __list_add() argument 42 next->prev = new; in __list_add() 43 new->next = next; in __list_add() 45 prev->next = new; in __list_add() 50 struct list_head *next); 63 __list_add(new, head, head->next); in list_add() 87 static inline void __list_del(struct list_head * prev, struct list_head * next) in __list_del() argument 89 next->prev = prev; in __list_del() 90 WRITE_ONCE(prev->next, next); in __list_del() [all …]
|
| /linux/io_uring/ |
| H A D | slist.h | 7 for (pos = (head)->first; pos; pos = (pos)->next) 10 for (pos = (head)->first, prv = NULL; pos; prv = pos, pos = (pos)->next) 13 for (; pos; prv = pos, pos = (pos)->next) 25 struct io_wq_work_node *next = pos->next; in wq_list_add_after() local 27 pos->next = node; in wq_list_add_after() 28 node->next = next; in wq_list_add_after() 29 if (!next) in wq_list_add_after() 36 node->next in wq_list_add_tail() [all...] |
| /linux/kernel/trace/rv/monitors/sleep/ |
| H A D | sleep.h | 125 ltl_possible_next_states(struct ltl_monitor *mon, unsigned int state, unsigned long *next) in ltl_possible_next_states() argument 166 __set_bit(S0, next); in ltl_possible_next_states() 168 __set_bit(S1, next); in ltl_possible_next_states() 170 __set_bit(S4, next); in ltl_possible_next_states() 172 __set_bit(S5, next); in ltl_possible_next_states() 176 __set_bit(S1, next); in ltl_possible_next_states() 178 __set_bit(S2, next); in ltl_possible_next_states() 180 __set_bit(S3, next); in ltl_possible_next_states() 182 __set_bit(S4, next); in ltl_possible_next_states() 184 __set_bit(S6, next); in ltl_possible_next_states() [all …]
|
| /linux/drivers/scsi/sym53c8xx_2/ |
| H A D | sym_malloc.c | 64 while (!h[j].next) { in ___sym_malloc() 66 h[j].next = (m_link_p) M_GET_MEM_CLUSTER(); in ___sym_malloc() 67 if (h[j].next) in ___sym_malloc() 68 h[j].next->next = NULL; in ___sym_malloc() 74 a = h[j].next; in ___sym_malloc() 76 h[j].next = h[j].next->next; in ___sym_malloc() 80 h[j].next = (m_link_p) (a+s); in ___sym_malloc() 81 h[j].next->next = NULL; in ___sym_malloc() 120 ((m_link_p) a)->next = h[i].next; in ___sym_mfree() 121 h[i].next = (m_link_p) a; in ___sym_mfree() [all …]
|
| /linux/tools/usb/usbip/libsrc/ |
| H A D | list.h | 20 struct list_head *next, *prev; member 30 list->next = list; in INIT_LIST_HEAD() 42 struct list_head *next) in __list_add() argument 44 next->prev = new; in __list_add() 45 new->next = next; in __list_add() 47 prev->next = new; in __list_add() 60 __list_add(new, head, head->next); in list_add() 70 static inline void __list_del(struct list_head * prev, struct list_head * next) in __list_del() argument 72 next->prev = prev; in __list_del() 73 prev->next = next; in __list_del() [all …]
|
| /linux/include/linux/ |
| H A D | list_bl.h | 39 struct hlist_bl_node *next, **pprev; member 46 h->next = NULL; in INIT_HLIST_BL_NODE() 82 n->next = first; in hlist_bl_add_head() 84 first->pprev = &n->next; in hlist_bl_add_head() 90 struct hlist_bl_node *next) in hlist_bl_add_before() argument 92 struct hlist_bl_node **pprev = next->pprev; in hlist_bl_add_before() 95 n->next = next; in hlist_bl_add_before() 96 next->pprev = &n->next; in hlist_bl_add_before() 107 n->next = prev->next; in hlist_bl_add_behind() 108 n->pprev = &prev->next; in hlist_bl_add_behind() [all …]
|
| /linux/arch/riscv/mm/ |
| H A D | kasan_init.c | 54 unsigned long next; in kasan_populate_pmd() local 64 next = pmd_addr_end(vaddr, end); in kasan_populate_pmd() 67 (next - vaddr) >= PMD_SIZE) { in kasan_populate_pmd() 76 kasan_populate_pte(pmdp, vaddr, next); in kasan_populate_pmd() 77 } while (pmdp++, vaddr = next, vaddr != end); in kasan_populate_pmd() 85 unsigned long next; in kasan_populate_pud() local 95 next = pud_addr_end(vaddr, end); in kasan_populate_pud() 98 (next - vaddr) >= PUD_SIZE) { in kasan_populate_pud() 107 kasan_populate_pmd(pudp, vaddr, next); in kasan_populate_pud() 108 } while (pudp++, vaddr = next, vaddr != end); in kasan_populate_pud() [all …]
|
| /linux/rust/kernel/ |
| H A D | list.rs | 361 next: *mut ListLinksFields, field 393 next: ptr::null_mut(), in new() 448 next: ptr::null_mut(), in new() 492 next: *mut ListLinksFields, in insert_inner() 507 if next.is_null() { in insert_inner() 511 (*item).next = item; in insert_inner() 518 let prev = unsafe { (*next).prev }; in insert_inner() 523 (*item).next = next; in insert_inner() 525 (*prev).next = item; in insert_inner() 526 (*next).prev = item; in insert_inner() [all …]
|
| /linux/scripts/include/ |
| H A D | list.h | 53 list->next = list; in INIT_LIST_HEAD() 65 struct list_head *next) in __list_add() argument 67 next->prev = new; in __list_add() 68 new->next = next; in __list_add() 70 prev->next = new; in __list_add() 83 __list_add(new, head, head->next); in list_add() 106 static inline void __list_del(struct list_head *prev, struct list_head *next) in __list_del() argument 108 next->prev = prev; in __list_del() 109 prev->next = next; in __list_del() 114 __list_del(entry->prev, entry->next); in __list_del_entry() [all …]
|
| /linux/drivers/pci/hotplug/ |
| H A D | cpqphp_ctrl.c | 121 slot = slot->next; in cpqhp_find_slot() 307 if (!((*head)->next)) in sort_by_size() 314 if (((*head)->next) && in sort_by_size() 315 ((*head)->length > (*head)->next->length)) { in sort_by_size() 318 *head = (*head)->next; in sort_by_size() 319 current_res->next = (*head)->next; in sort_by_size() 320 (*head)->next = current_res; in sort_by_size() 325 while (current_res->next && current_res->next->next) { in sort_by_size() 326 if (current_res->next->length > current_res->next->next->length) { in sort_by_size() 328 next_res = current_res->next; in sort_by_size() [all …]
|
| /linux/drivers/memory/tegra/ |
| H A D | tegra210-emc-cc-r21021.c | 78 ({ next->ptfv_list[(dev)] = \ 79 next->ptfv_list[(dev)] / \ 80 next->ptfv_list[PTFV_DVFS_SAMPLES_INDEX]; }) 86 ({ next->ptfv_list[(dev)] += \ 102 next->ptfv_list[dqs] = \ 104 (next->ptfv_list[dqs] * \ 105 next->ptfv_list[w])) / \ 106 (next->ptfv_list[w] + 1); \ 109 __stringify(dev), nval, next->ptfv_list[dqs]); \ 184 struct tegra210_emc_timing *next) in periodic_compensation_handler() argument [all …]
|
| /linux/drivers/acpi/acpica/ |
| H A D | pstree.c | 74 arg = arg->common.next; in acpi_ps_get_arg() 133 while (prev_arg->common.next) { in acpi_ps_append_arg() 134 prev_arg = prev_arg->common.next; in acpi_ps_append_arg() 136 prev_arg->common.next = arg; in acpi_ps_append_arg() 147 arg = arg->common.next; in acpi_ps_append_arg() 172 union acpi_parse_object *next = NULL; in acpi_ps_get_depth_next() local 184 next = acpi_ps_get_arg(op, 0); in acpi_ps_get_depth_next() 185 if (next) { in acpi_ps_get_depth_next() 186 ASL_CV_LABEL_FILENODE(next); in acpi_ps_get_depth_next() 187 return (next); in acpi_ps_get_depth_next() [all …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
| H A D | ramgk104.c | 210 struct nvkm_ram_data *next = ram->base.next; in r1373f4_fini() local 211 u8 v0 = next->bios.ramcfg_11_03_c0; in r1373f4_fini() 212 u8 v1 = next->bios.ramcfg_11_03_30; in r1373f4_fini() 243 u32 next = (prev & ~mask) | data; in gk104_ram_nuts() local 244 nvkm_memx_wr32(fuc->memx, addr, next); in gk104_ram_nuts() 255 struct nvkm_ram_data *next = ram->base.next; in gk104_ram_calc_gddr5() local 256 int vc = !next->bios.ramcfg_11_02_08; in gk104_ram_calc_gddr5() 257 int mv = !next->bios.ramcfg_11_02_04; in gk104_ram_calc_gddr5() 311 switch (next->bios.ramcfg_11_03_c0) { in gk104_ram_calc_gddr5() 318 switch (next->bios.ramcfg_11_03_30) { in gk104_ram_calc_gddr5() [all …]
|
| H A D | gddr5.c | 41 xd = !ram->next->bios.ramcfg_DLLoff; in nvkm_gddr5_calc() 43 switch (ram->next->bios.ramcfg_ver) { in nvkm_gddr5_calc() 45 pd = ram->next->bios.ramcfg_11_01_80; in nvkm_gddr5_calc() 46 lf = ram->next->bios.ramcfg_11_01_40; in nvkm_gddr5_calc() 47 vh = ram->next->bios.ramcfg_11_02_10; in nvkm_gddr5_calc() 48 vr = ram->next->bios.ramcfg_11_02_04; in nvkm_gddr5_calc() 49 vo = ram->next->bios.ramcfg_11_06; in nvkm_gddr5_calc() 50 l3 = !ram->next->bios.ramcfg_11_07_02; in nvkm_gddr5_calc() 56 switch (ram->next->bios.timing_ver) { in nvkm_gddr5_calc() 58 WL = (ram->next->bios.timing[1] & 0x00000f80) >> 7; in nvkm_gddr5_calc() [all …]
|
| /linux/rust/pin-init/examples/ |
| H A D | linked_list.rs | 26 next: Link, field 36 next: unsafe { Link::new_unchecked(this) }, in new() 46 prev: list.next.prev().replace(unsafe { Link::new_unchecked(this)}), in insert_next() 47 next: list.next.replace(unsafe { Link::new_unchecked(this)}), in insert_next() 55 next: list.prev.next().replace(unsafe { Link::new_unchecked(this)}), in insert_prev() 62 pub fn next(&self) -> Option<NonNull<Self>> { in next() method 63 if ptr::eq(self.next.as_ptr(), self) { in next() 66 Some(unsafe { NonNull::new_unchecked(self.next.as_ptr() as *mut Self) }) in next() 73 let mut cur = self.next.clone(); in size() 75 cur = cur.next().clone(); in size() [all …]
|
| /linux/mm/kasan/ |
| H A D | init.c | 113 unsigned long next; in zero_pmd_populate() local 116 next = pmd_addr_end(addr, end); in zero_pmd_populate() 138 zero_pte_populate(pmd, addr, next); in zero_pmd_populate() 139 } while (pmd++, addr = next, addr != end); in zero_pmd_populate() 148 unsigned long next; in zero_pud_populate() local 151 next = pud_addr_end(addr, end); in zero_pud_populate() 176 zero_pmd_populate(pud, addr, next); in zero_pud_populate() 177 } while (pud++, addr = next, addr != end); in zero_pud_populate() 186 unsigned long next; in zero_p4d_populate() local 189 next = p4d_addr_end(addr, end); in zero_p4d_populate() [all …]
|
| /linux/net/ax25/ |
| H A D | ax25_iface.c | 35 struct listen_struct *next; member 48 ap->next = protocol_list; in ax25_register_pid() 65 protocol_list = protocol->next; in ax25_protocol_release() 69 while (protocol != NULL && protocol->next != NULL) { in ax25_protocol_release() 70 if (protocol->next->pid == pid) { in ax25_protocol_release() 71 protocol->next = protocol->next->next; in ax25_protocol_release() 75 protocol = protocol->next; in ax25_protocol_release() 115 listen->next = listen_list; in ax25_listen_register() 136 listen_list = listen->next; in ax25_listen_release() 142 while (listen != NULL && listen->next != NULL) { in ax25_listen_release() [all …]
|
| /linux/tools/lib/ |
| H A D | list_sort.c | 22 tail = &a->next; in merge() 23 a = a->next; in merge() 30 tail = &b->next; in merge() 31 b = b->next; in merge() 57 tail->next = a; in merge_final() 60 a = a->next; in merge_final() 64 tail->next = b; in merge_final() 67 b = b->next; in merge_final() 76 tail->next = b; in merge_final() 80 b = b->next; in merge_final() [all …]
|
| /linux/arch/arm64/boot/dts/renesas/ |
| H A D | r8a78000.dtsi | 146 next-level-cache = <&L2_CA720_0>; 153 next-level-cache = <&L2_CA720_1>; 160 next-level-cache = <&L2_CA720_2>; 167 next-level-cache = <&L2_CA720_3>; 174 next-level-cache = <&L2_CA720_4>; 181 next-level-cache = <&L2_CA720_5>; 188 next-level-cache = <&L2_CA720_6>; 195 next-level-cache = <&L2_CA720_7>; 202 next-level-cache = <&L2_CA720_8>; 209 next-level-cache = <&L2_CA720_9>; [all …]
|
| /linux/drivers/usb/host/ |
| H A D | ohci-dbg.c | 23 #define ohci_dbg_sw(ohci, next, size, format, arg...) \ argument 25 if (next != NULL) { \ 27 s_len = scnprintf (*next, *size, format, ## arg ); \ 28 *size -= s_len; *next += s_len; \ 34 #define ohci_dbg_nosw(ohci, next, size, format, arg...) \ argument 37 s_len = scnprintf(*next, *size, format, ## arg); \ 38 *size -= s_len; *next += s_len; \ 46 char **next, in ohci_dump_intr_mask() argument 49 ohci_dbg_sw (ohci, next, size, "%s 0x%08x%s%s%s%s%s%s%s%s%s\n", in ohci_dump_intr_mask() 68 char **next, in maybe_print_eds() argument [all …]
|
| /linux/arch/parisc/include/asm/ |
| H A D | mmu_context.h | 51 struct mm_struct *next, struct task_struct *tsk) in switch_mm_irqs_off() argument 53 if (prev != next) { in switch_mm_irqs_off() 57 spinlock_t *pgd_lock = &next->page_table_lock; in switch_mm_irqs_off() 60 mtctl(__pa(next->pgd), 25); in switch_mm_irqs_off() 61 load_context(next->context); in switch_mm_irqs_off() 66 struct mm_struct *next, struct task_struct *tsk) in switch_mm() argument 70 if (prev == next) in switch_mm() 74 switch_mm_irqs_off(prev, next, tsk); in switch_mm() 80 static inline void activate_mm(struct mm_struct *prev, struct mm_struct *next) in activate_mm() argument 90 BUG_ON(next == &init_mm); /* Should never happen */ in activate_mm() [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_core_read_macros.c | 13 struct callback_head___shuffled *next; member 41 k_probe_in.next = &k_probe_in; in handler() 42 __builtin_preserve_access_index(({k_core_in.next = &k_core_in;})); in handler() 44 k_probe_out = (long)BPF_PROBE_READ(&k_probe_in, next, next, func); in handler() 45 k_core_out = (long)BPF_CORE_READ(&k_core_in, next, next, func); in handler() 46 u_probe_out = (long)BPF_PROBE_READ_USER(u_probe_in, next, next, func); in handler() 47 u_core_out = (long)BPF_CORE_READ_USER(u_core_in, next, next, func); in handler()
|
| /linux/drivers/md/dm-vdo/ |
| H A D | funnel-queue.c | 25 queue->stub.next = NULL; in vdo_make_funnel_queue() 46 struct funnel_queue_entry *next = READ_ONCE(oldest->next); in get_oldest() local 53 if (next == NULL) in get_oldest() 59 oldest = next; in get_oldest() 61 next = READ_ONCE(oldest->next); in get_oldest() 68 if (next == NULL) { in get_oldest() 86 next = READ_ONCE(oldest->next); in get_oldest() 87 if (next == NULL) { in get_oldest() 116 queue->oldest = READ_ONCE(oldest->next); in vdo_funnel_queue_poll() 128 WRITE_ONCE(oldest->next, NULL); in vdo_funnel_queue_poll()
|
| /linux/arch/arm64/kvm/hyp/nvhe/ |
| H A D | list_debug.c | 31 struct list_head *next) in __list_add_valid_or_report() argument 33 if (NVHE_CHECK_DATA_CORRUPTION(next->prev != prev) || in __list_add_valid_or_report() 34 NVHE_CHECK_DATA_CORRUPTION(prev->next != next) || in __list_add_valid_or_report() 35 NVHE_CHECK_DATA_CORRUPTION(new == prev || new == next)) in __list_add_valid_or_report() 44 struct list_head *prev, *next; in __list_del_entry_valid_or_report() local 47 next = entry->next; in __list_del_entry_valid_or_report() 49 if (NVHE_CHECK_DATA_CORRUPTION(next == LIST_POISON1) || in __list_del_entry_valid_or_report() 51 NVHE_CHECK_DATA_CORRUPTION(prev->next != entry) || in __list_del_entry_valid_or_report() 52 NVHE_CHECK_DATA_CORRUPTION(next->prev != entry)) in __list_del_entry_valid_or_report()
|
| /linux/lib/ |
| H A D | plist.c | 35 WARN(n->prev != p || p->next != n, in plist_check_prev_next() 39 t, t->next, t->prev, in plist_check_prev_next() 40 p, p->next, p->prev, in plist_check_prev_next() 41 n, n->next, n->prev); in plist_check_prev_next() 46 struct list_head *prev = top, *next = top->next; in plist_check_list() local 48 plist_check_prev_next(top, prev, next); in plist_check_list() 49 while (next != top) { in plist_check_list() 50 prev = next; in plist_check_list() 51 next = prev->next; in plist_check_list() 52 plist_check_prev_next(top, prev, next); in plist_check_list() [all …]
|