Home
last modified time | relevance | path

Searched full:if (Results 176 – 200 of 40680) sorted by relevance

12345678910>>...1628

/linux-6.8/fs/
Dopen.c47 if (length < 0) in do_truncate()
52 if (filp) { in do_truncate()
59 if (ret < 0) in do_truncate()
61 if (ret) in do_truncate()
80 if (S_ISDIR(inode->i_mode)) in vfs_truncate()
82 if (!S_ISREG(inode->i_mode)) in vfs_truncate()
86 if (error) in vfs_truncate()
91 if (error) in vfs_truncate()
95 if (IS_APPEND(inode)) in vfs_truncate()
99 if (error) in vfs_truncate()
[all …]
/linux-6.8/mm/
Dmemory.c95 #if defined(LAST_CPUPID_NOT_IN_PAGE_FLAGS) && !defined(CONFIG_COMPILE_TEST)
112 * Return true if the original pte was a uffd-wp pte marker (so the pte was
117 if (!(vmf->flags & FAULT_FLAG_ORIG_PTE_VALID)) in vmf_orig_pte_uffd_wp()
149 * some architectures, even if it's performed in hardware. By in arch_wants_old_prefaulted_pte()
208 if (pmd_none_or_clear_bad(pmd)) in free_pmd_range()
214 if (start < floor) in free_pmd_range()
216 if (ceiling) { in free_pmd_range()
218 if (!ceiling) in free_pmd_range()
221 if (end - 1 > ceiling - 1) in free_pmd_range()
242 if (pud_none_or_clear_bad(pud)) in free_pud_range()
[all …]
Dgup.c36 if (!IS_ENABLED(CONFIG_DEBUG_VM)) in sanity_check_pinned_pages()
40 * We only pin anonymous pages if they are exclusive. Once pinned, we in sanity_check_pinned_pages()
48 * the head page (PMD-mapped THP) should be PageAnonExclusive(). If in sanity_check_pinned_pages()
55 if (is_zero_page(page) || in sanity_check_pinned_pages()
58 if (!folio_test_large(folio) || folio_test_hugetlb(folio)) in sanity_check_pinned_pages()
69 * or NULL if that failed.
77 if (WARN_ON_ONCE(folio_ref_count(folio) < 0)) in try_get_folio()
79 if (unlikely(!folio_ref_try_add_rcu(folio, refs))) in try_get_folio()
91 if (unlikely(page_folio(page) != folio)) { in try_get_folio()
92 if (!put_devmap_managed_page_refs(&folio->page, refs)) in try_get_folio()
[all …]
/linux-6.8/arch/mips/kvm/
Dvz.c51 if (sizeof(long) == 8 && cpu_has_ebase_wg) in kvm_vz_read_gc0_ebase()
64 if (sizeof(long) == 8 && in kvm_vz_write_gc0_ebase()
114 /* Permit MSAEn changes if MSA supported and enabled */ in kvm_vz_config5_guest_wrmask()
115 if (kvm_mips_guest_has_msa(&vcpu->arch)) in kvm_vz_config5_guest_wrmask()
119 * Permit guest FPU mode changes if FPU is enabled and the relevant in kvm_vz_config5_guest_wrmask()
122 if (kvm_mips_guest_has_fpu(&vcpu->arch)) { in kvm_vz_config5_guest_wrmask()
123 if (cpu_has_ufr) in kvm_vz_config5_guest_wrmask()
125 if (cpu_has_fre) in kvm_vz_config5_guest_wrmask()
157 /* Permit FPU to be present if FPU is supported */ in kvm_vz_config1_user_wrmask()
158 if (kvm_mips_guest_can_have_fpu(&vcpu->arch)) in kvm_vz_config1_user_wrmask()
[all …]
/linux-6.8/net/dcb/
Ddcbnl.c224 if (!skb) in dcbnl_newmsg()
235 if (nlhp) in dcbnl_newmsg()
244 /* if (!tb[DCB_ATTR_STATE] || !netdev->dcbnl_ops->getstate) */ in dcbnl_getstate()
245 if (!netdev->dcbnl_ops->getstate) in dcbnl_getstate()
261 if (!tb[DCB_ATTR_PFC_CFG]) in dcbnl_getpfccfg()
264 if (!netdev->dcbnl_ops->getpfccfg) in dcbnl_getpfccfg()
270 if (ret) in dcbnl_getpfccfg()
274 if (!nest) in dcbnl_getpfccfg()
277 if (data[DCB_PFC_UP_ATTR_ALL]) in dcbnl_getpfccfg()
281 if (!getall && !data[i]) in dcbnl_getpfccfg()
[all …]
/linux-6.8/drivers/s390/crypto/
Dpkey_api.c171 if (*protkeylen < keysize + AES_WK_VP_SIZE) { in pkey_clr2protkey()
178 if (!pckmo_functions.bytes[0]) { in pkey_clr2protkey()
180 if (!cpacf_query(CPACF_PCKMO, &pckmo_functions)) in pkey_clr2protkey()
184 if (!cpacf_test_func(&pckmo_functions, fc)) { in pkey_clr2protkey()
225 if (rc < 0) in pkey_skey2pkey()
227 if (rc > 0 && verify < 2) in pkey_skey2pkey()
242 if (rc == 0) in pkey_skey2pkey()
246 if (rc) in pkey_skey2pkey()
269 if (rc) in pkey_clr2ep11key()
279 if (rc == 0) in pkey_clr2ep11key()
[all …]
/linux-6.8/fs/ntfs3/
Dbitmap.c60 * Return: -1 if not found.
71 if (used >= wend) { in wnd_scan()
72 if (*b_len < *prev_tail) { in wnd_scan()
81 if (used > wpos) { in wnd_scan()
83 if (*b_len < *prev_tail) { in wnd_scan()
99 if (*b_len < free_len) { in wnd_scan()
104 if (free_len >= to_alloc) in wnd_scan()
107 if (free_bits >= wend) { in wnd_scan()
151 if (v < k->key) { in rb_lookup()
153 } else if (v > k->key) { in rb_lookup()
[all …]
/linux-6.8/tools/testing/ktest/
Dktest.pl73 # required, and we will ask users if they don't have them but we keep the default
441 If you use ttywatch server, something like the following would work.
457 If you specify grub, it will assume grub version 1
459 and select that target to reboot to the kernel. If this is not
466 If you specify grub2, then you also need to specify both \$GRUB_MENU
469 If you specify grub2bls, then you also need to specify \$GRUB_MENU.
471 If you specify syslinux, then you may use SYSLINUX to define the syslinux
479 (Only mandatory if REBOOT_TYPE = grub or grub2)
486 For example, if in the /boot/grub/menu.lst the test kernel title has:
502 If grub2 is used, the full path for the grub.cfg file is placed
[all …]
/linux-6.8/drivers/media/dvb-frontends/
Dmb86a16.c44 if (z) { \
45 if ((x > MB86A16_ERROR) && (x > y)) \
47 else if ((x > MB86A16_NOTICE) && (x > y)) \
49 else if ((x > MB86A16_INFO) && (x > y)) \
51 else if ((x > MB86A16_DEBUG) && (x > y)) \
54 if (x > y) \
103 if (ret != 2) { in mb86a16_read()
107 if (ret < 0) in mb86a16_read()
124 if (mb86a16_write(state, MB86A16_CNTMR, val) < 0) in CNTM_set()
146 if (mb86a16_write(state, MB86A16_SRATE1, (state->deci << 2) | in smrt_set()
[all …]
/linux-6.8/net/sched/
Dsch_api.c78 Queue is really empty if q->q.qlen == 0.
84 enqueue returns 0, if packet was enqueued successfully.
85 If packet (this one or another one) was dropped, it returns
138 if (!strcmp(qops->id, q->id)) in register_qdisc()
141 if (qops->enqueue == NULL) in register_qdisc()
143 if (qops->peek == NULL) { in register_qdisc()
144 if (qops->dequeue == NULL) in register_qdisc()
149 if (qops->dequeue == NULL) in register_qdisc()
152 if (qops->cl_ops) { in register_qdisc()
155 if (!(cops->find && cops->walk && cops->leaf)) in register_qdisc()
[all …]
/linux-6.8/drivers/gpu/drm/amd/pm/swsmu/
Damdgpu_smu.c80 if (!smu->pm_enabled || !smu->adev->pm.dpm_enabled) in smu_sys_get_pp_feature_mask()
91 if (!smu->pm_enabled || !smu->adev->pm.dpm_enabled) in smu_sys_set_pp_feature_mask()
99 if (!smu->ppt_funcs->set_gfx_off_residency) in smu_set_residency_gfxoff()
107 if (!smu->ppt_funcs->get_gfx_off_residency) in smu_get_residency_gfxoff()
115 if (!smu->ppt_funcs->get_gfx_off_entrycount) in smu_get_entrycount_gfxoff()
123 if (!smu->ppt_funcs->get_gfx_off_status) in smu_get_status_gfxoff()
138 if (smu->ppt_funcs->set_soft_freq_limited_range) in smu_set_soft_freq_range()
154 if (!min && !max) in smu_get_dpm_freq_range()
157 if (smu->ppt_funcs->get_dpm_ultimate_freq) in smu_get_dpm_freq_range()
171 if (smu->ppt_funcs->set_gfx_power_up_by_imu) { in smu_set_gfx_power_up_by_imu()
[all …]
/linux-6.8/tools/lib/subcmd/
Drun-command.c41 if (need_in) { in start_command()
42 if (pipe(fdin) < 0) { in start_command()
43 if (cmd->out > 0) in start_command()
53 if (need_out) { in start_command()
54 if (pipe(fdout) < 0) { in start_command()
55 if (need_in) in start_command()
57 else if (cmd->in) in start_command()
65 if (need_err) { in start_command()
66 if (pipe(fderr) < 0) { in start_command()
67 if (need_in) in start_command()
[all …]
/linux-6.8/security/
Dcommoncap.c31 * If a non-root user executes a setuid-root binary in
33 * However if fE is also set, then the intent is for only
39 * Warn if that happens, once per boot.
44 if (!warned) { in warn_setuid_and_fcaps_mixed()
60 * its effective set, returning 0 if it does, -ve if it does not.
72 /* See if cred has the capability in the target user namespace in cap_capable()
78 if (ns == cred->user_ns) in cap_capable()
82 * If we're already at a lower level than we're looking for, in cap_capable()
85 if (ns->level <= cred->user_ns->level) in cap_capable()
92 if ((ns->parent == cred->user_ns) && uid_eq(ns->owner, cred->euid)) in cap_capable()
[all …]
/linux-6.8/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_context.c52 if (!DRIVER_CAPS(i915)->has_logical_contexts) in live_nop_switch()
56 if (IS_ERR(file)) in live_nop_switch()
60 if (!ctx) { in live_nop_switch()
67 if (IS_ERR(ctx[n])) { in live_nop_switch()
83 if (IS_ERR(this)) { in live_nop_switch()
87 if (rq) { in live_nop_switch()
94 if (i915_request_wait(rq, 0, 10 * HZ) < 0) { in live_nop_switch()
109 if (err) in live_nop_switch()
121 if (IS_ERR(this)) { in live_nop_switch()
126 if (rq) { /* Force submission order */ in live_nop_switch()
[all …]
/linux-6.8/net/ipv4/
Dip_tunnel.c47 #if IS_ENABLED(CONFIG_IPV6)
62 if (p->i_flags & TUNNEL_KEY) { in ip_tunnel_key_match()
63 if (flags & TUNNEL_KEY) in ip_tunnel_key_match()
75 We require exact key match i.e. if a key is present in packet
76 it will match only tunnel with the same key; if it is not present,
79 All keysless packets, if not matched configured keyless tunnels
97 if (local != t->parms.iph.saddr || in ip_tunnel_lookup()
102 if (!ip_tunnel_key_match(&t->parms, flags, key)) in ip_tunnel_lookup()
105 if (t->parms.link == link) in ip_tunnel_lookup()
112 if (remote != t->parms.iph.daddr || in ip_tunnel_lookup()
[all …]
/linux-6.8/io_uring/
Dio_uring.c145 /* Forced wake up if there is a waiter regardless of ->cq_wait_nr */
183 if (!wq_list_empty(&ctx->submit_state.compl_reqs) || in io_submit_flush_completions()
203 if (req->flags & REQ_F_INFLIGHT) in io_match_linked()
218 if (task && head->task != task) in io_match_task_safe()
220 if (cancel_all) in io_match_task_safe()
223 if (head->flags & REQ_F_LINK_TIMEOUT) { in io_match_task_safe()
266 if (WARN_ON_ONCE(!ts.locked)) in io_fallback_req_func()
279 if (!table->hbs) in io_alloc_hash_table()
293 if (!ctx) in io_ring_ctx_alloc()
300 * 32 entries per hash list if totally full and uniformly spread, but in io_ring_ctx_alloc()
[all …]
/linux-6.8/drivers/gpu/drm/i915/selftests/
Di915_sw_fence.c51 if (!fence) in alloc_fence()
66 if (i915_sw_fence_done(fence)) in __test_self()
70 if (!i915_sw_fence_done(fence)) in __test_self()
74 if (!i915_sw_fence_done(fence)) in __test_self()
87 if (!fence) in test_self()
102 if (!IS_ENABLED(CONFIG_DRM_I915_SW_FENCE_CHECK_DAG)) in test_dag()
106 if (!A) in test_dag()
109 if (i915_sw_fence_await_sw_fence_gfp(A, A, GFP_KERNEL) != -EINVAL) { in test_dag()
115 if (!B) { in test_dag()
121 if (i915_sw_fence_await_sw_fence_gfp(B, A, GFP_KERNEL) != -EINVAL) { in test_dag()
[all …]
/linux-6.8/drivers/net/wireless/ti/wlcore/
Dinit.c33 if (ret < 0) in wl1271_init_templates_config()
40 if (ret < 0) in wl1271_init_templates_config()
43 if (wl->quirks & WLCORE_QUIRK_DUAL_PROBE_TMPL) { in wl1271_init_templates_config()
49 if (ret < 0) in wl1271_init_templates_config()
57 if (ret < 0) in wl1271_init_templates_config()
65 if (ret < 0) in wl1271_init_templates_config()
72 if (ret < 0) in wl1271_init_templates_config()
80 if (ret < 0) in wl1271_init_templates_config()
87 if (ret < 0) in wl1271_init_templates_config()
94 if (ret < 0) in wl1271_init_templates_config()
[all …]
/linux-6.8/drivers/gpu/drm/radeon/
Dradeon_pm.c64 if (rdev->pm.power_state[i].type == ps_type) { in radeon_pm_get_type_index()
66 if (found_instance == instance) in radeon_pm_get_type_index()
70 /* return default if no match */ in radeon_pm_get_type_index()
76 if ((rdev->pm.pm_method == PM_METHOD_DPM) && rdev->pm.dpm_enabled) { in radeon_pm_acpi_event_handler()
78 if (power_supply_is_system_supplied() > 0) in radeon_pm_acpi_event_handler()
82 if (rdev->family == CHIP_ARUBA) { in radeon_pm_acpi_event_handler()
83 if (rdev->asic->dpm.enable_bapm) in radeon_pm_acpi_event_handler()
87 } else if (rdev->pm.pm_method == PM_METHOD_PROFILE) { in radeon_pm_acpi_event_handler()
88 if (rdev->pm.profile == PM_PROFILE_AUTO) { in radeon_pm_acpi_event_handler()
104 if (power_supply_is_system_supplied() > 0) { in radeon_pm_update_profile()
[all …]
/linux-6.8/drivers/gpu/drm/amd/display/dc/core/
Ddc.c147 if (new > *original) in elevate_update_type()
156 if (NULL != dc->links[i]) in destroy_links()
167 if (links[i]->connector_signal == SIGNAL_TYPE_EDP || in get_num_of_internal_disp()
181 if (ctx->streams[i]->apply_seamless_boot_optimization) in get_seamless_boot_stream_count()
201 if (connectors_num > ENUM_ID_COUNT) { in create_links()
228 if (link) { in create_links()
249 if (link) { in create_links()
260 if (link == NULL) { in create_links()
277 if (!link->link_enc) { in create_links()
303 /* Create additional DIG link encoder objects if fewer than the platform
[all …]
/linux-6.8/arch/s390/mm/
Dvmem.c31 if (slab_is_available()) in vmem_alloc_pages()
39 if (!slab_is_available() || in vmem_free_pages()
50 if (!table) in vmem_crst_alloc()
62 if (slab_is_available()) in vmem_pte_alloc()
66 if (!pte) in vmem_pte_alloc()
76 if (!slab_is_available() || in vmem_pte_free()
92 if (!unused_sub_pmd_start) in vmemmap_flush_unused_sub_pmd()
113 * We only optimize if the new used range directly follows the in vmemmap_use_sub_pmd()
116 if (unused_sub_pmd_start == start) { in vmemmap_use_sub_pmd()
118 if (likely(IS_ALIGNED(unused_sub_pmd_start, PMD_SIZE))) in vmemmap_use_sub_pmd()
[all …]
/linux-6.8/tools/perf/util/
Dprobe-file.c37 if (err == -EACCES) in print_common_warning()
52 if (kerr == -ENOENT && uerr == -ENOENT) { in print_configure_probe_event()
55 } else if (kerr == -ENOENT) { in print_configure_probe_event()
58 } else if (uerr == -ENOENT) { in print_configure_probe_event()
64 if (!debugfs__configured() && !tracefs__configured()) in print_configure_probe_event()
78 if (print_common_warning(err, readwrite)) in print_open_warning()
81 if (print_configure_probe_event(uprobe ? 0 : err, uprobe ? err : 0)) in print_open_warning()
93 if (kerr == uerr && print_common_warning(kerr, readwrite)) in print_both_open_warning()
96 if (print_configure_probe_event(kerr, uerr)) in print_both_open_warning()
99 if (kerr < 0) in print_both_open_warning()
[all …]
/linux-6.8/drivers/usb/dwc2/
Dplatform.c35 * value of dr_mode if possible.
57 if (hsotg->dr_mode == USB_DR_MODE_UNKNOWN) in dwc2_get_dr_mode()
62 if (dwc2_hw_is_device(hsotg)) { in dwc2_get_dr_mode()
63 if (IS_ENABLED(CONFIG_USB_DWC2_HOST)) { in dwc2_get_dr_mode()
69 } else if (dwc2_hw_is_host(hsotg)) { in dwc2_get_dr_mode()
70 if (IS_ENABLED(CONFIG_USB_DWC2_PERIPHERAL)) { in dwc2_get_dr_mode()
77 if (IS_ENABLED(CONFIG_USB_DWC2_HOST)) in dwc2_get_dr_mode()
79 else if (IS_ENABLED(CONFIG_USB_DWC2_PERIPHERAL)) in dwc2_get_dr_mode()
83 if (mode != hsotg->dr_mode) { in dwc2_get_dr_mode()
101 if (ret) in __dwc2_lowlevel_hw_enable()
[all …]
/linux-6.8/net/openvswitch/
Dconntrack.c25 #if IS_ENABLED(CONFIG_NF_NAT)
75 #if IS_ENABLED(CONFIG_NF_NAT)
80 #if IS_ENABLED(CONFIG_NETFILTER_CONNCOUNT)
156 #if IS_ENABLED(CONFIG_NF_CONNTRACK_MARK) in ovs_ct_get_mark()
164 #if NF_CT_LABELS_MAX_SIZE < 16
173 if (cl) in ovs_ct_get_labels()
184 if (orig->dst.protonum == icmp_proto) { in __ovs_ct_update_key_orig_tp()
202 if (ct) { in __ovs_ct_update_key()
205 /* Use the master if we have one. */ in __ovs_ct_update_key()
206 if (ct->master) in __ovs_ct_update_key()
[all …]
/linux-6.8/drivers/pci/
Dvgaarb.c84 if (strncmp(buf, "none", 4) == 0) { in vga_str_to_iostate()
90 if (strncmp(buf, "io+mem", 6) == 0) in vga_str_to_iostate()
92 else if (strncmp(buf, "io", 2) == 0) in vga_str_to_iostate()
94 else if (strncmp(buf, "mem", 3) == 0) in vga_str_to_iostate()
111 if (pdev == vgadev->pdev) in vgadev_find()
123 * If your VGA default device is not PCI, you'll have to return NULL here.
124 * In this case, I assume it will not conflict with any PCI card. If this
126 * the VGA default device if that is possible. This may be a problem with
128 * point how to deal with that card. Can their IOs be disabled at all? If
140 if (vga_default == pdev) in vga_set_default_device()
[all …]

12345678910>>...1628