Home
last modified time | relevance | path

Searched refs:ok (Results 1 – 25 of 100) sorted by relevance

1234

/drivers/video/fbdev/omap2/omapfb/dss/
Ddpi.c252 bool ok; in dpi_dss_clk_calc() local
261 ok = dss_div_calc(pck, ctx->pck_min, dpi_calc_dss_cb, ctx); in dpi_dss_clk_calc()
262 if (ok) in dpi_dss_clk_calc()
263 return ok; in dpi_dss_clk_calc()
277 bool ok; in dpi_set_dsi_clk() local
279 ok = dpi_dsi_clk_calc(dpi, pck_req, &ctx); in dpi_set_dsi_clk()
280 if (!ok) in dpi_set_dsi_clk()
304 bool ok; in dpi_set_dispc_clk() local
306 ok = dpi_dss_clk_calc(pck_req, &ctx); in dpi_set_dispc_clk()
307 if (!ok) in dpi_set_dispc_clk()
[all …]
Dsdi.c84 bool ok; in sdi_calc_clock_div() local
93 ok = dss_div_calc(pclk, ctx.pck_min, dpi_calc_dss_cb, &ctx); in sdi_calc_clock_div()
94 if (ok) { in sdi_calc_clock_div()
/drivers/rtc/
Dsystohc.c27 bool ok; in rtc_set_ntp_time() local
47 ok = rtc_tv_nsec_ok(rtc->set_offset_nsec, &to_set, &now); in rtc_set_ntp_time()
48 if (!ok) { in rtc_set_ntp_time()
/drivers/gpu/drm/i915/selftests/
Di915_vma.c40 bool ok = true; in assert_vma() local
44 ok = false; in assert_vma()
50 ok = false; in assert_vma()
56 ok = false; in assert_vma()
59 return ok; in assert_vma()
68 bool ok = true; in checked_vma_instance() local
78 ok = false; in checked_vma_instance()
84 ok = false; in checked_vma_instance()
98 if (!ok) { in checked_vma_instance()
656 bool ok = true; in assert_pin() local
[all …]
/drivers/gpu/drm/omapdrm/dss/
Ddpi.c267 bool ok; in dpi_dss_clk_calc() local
277 ok = dss_div_calc(dpi->dss, pck, ctx->pck_min, in dpi_dss_clk_calc()
279 if (ok) in dpi_dss_clk_calc()
280 return ok; in dpi_dss_clk_calc()
292 bool ok; in dpi_set_pll_clk() local
294 ok = dpi_pll_clk_calc(dpi, pck_req, &ctx); in dpi_set_pll_clk()
295 if (!ok) in dpi_set_pll_clk()
314 bool ok; in dpi_set_dispc_clk() local
316 ok = dpi_dss_clk_calc(dpi, pck_req, &ctx); in dpi_set_dispc_clk()
317 if (!ok) in dpi_set_dispc_clk()
Dsdi.c88 bool ok; in sdi_calc_clock_div() local
100 ok = dss_div_calc(sdi->dss, pclk, ctx.pck_min, in sdi_calc_clock_div()
102 if (ok) { in sdi_calc_clock_div()
/drivers/gpu/drm/i915/gt/
Dselftest_workarounds.c1137 bool ok = true; in verify_wa_lists() local
1139 ok &= wa_list_verify(&i915->uncore, &lists->gt_wa_list, str); in verify_wa_lists()
1144 ok &= engine_wa_list_verify(ce, in verify_wa_lists()
1148 ok &= engine_wa_list_verify(ce, in verify_wa_lists()
1153 return ok; in verify_wa_lists()
1163 bool ok; in live_gpu_reset_workarounds() local
1181 ok = verify_wa_lists(ctx, &lists, "before reset"); in live_gpu_reset_workarounds()
1182 if (!ok) in live_gpu_reset_workarounds()
1187 ok = verify_wa_lists(ctx, &lists, "after reset"); in live_gpu_reset_workarounds()
1196 return ok ? 0 : -ESRCH; in live_gpu_reset_workarounds()
[all …]
/drivers/parport/
Dparport_gsc.c201 int ok = 0; in parport_PS2_supported() local
209 if (parport_gsc_read_data(pb) != 0x55) ok++; in parport_PS2_supported()
212 if (parport_gsc_read_data(pb) != 0xaa) ok++; in parport_PS2_supported()
217 if (ok) { in parport_PS2_supported()
224 return ok; in parport_PS2_supported()
/drivers/crypto/ccree/
Dcc_fips.h20 void cc_set_ree_fips_status(struct cc_drvdata *drvdata, bool ok);
32 bool ok) {} in cc_set_ree_fips_status() argument
/drivers/atm/
Dfore200e.c245 int ok; in fore200e_poll() local
249 if ((ok = (*addr == val)) || (*addr & STATUS_ERROR)) in fore200e_poll()
255 if (!ok) { in fore200e_poll()
261 return ok; in fore200e_poll()
269 int ok; in fore200e_io_poll() local
272 if ((ok = (fore200e->bus->read(addr) == val))) in fore200e_io_poll()
278 if (!ok) { in fore200e_io_poll()
284 return ok; in fore200e_io_poll()
336 int ok; in fore200e_reset() local
345 ok = fore200e_io_poll(fore200e, &fore200e->cp_monitor->bstat, BSTAT_SELFTEST_OK, 1000); in fore200e_reset()
[all …]
/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_selftests.c243 int ok; member
313 tpriv->ok = true; in stmmac_test_loopback_validate()
331 tpriv->ok = false; in __stmmac_test_loopback()
360 ret = tpriv->ok ? 0 : -ETIMEDOUT; in __stmmac_test_loopback()
728 tpriv->ok = true; in stmmac_test_flowctrl_validate()
751 tpriv->ok = false; in stmmac_test_flowctrl()
787 if (tpriv->ok) in stmmac_test_flowctrl()
810 ret = tpriv->ok ? 0 : -ETIMEDOUT; in stmmac_test_flowctrl()
862 tpriv->ok = false; in stmmac_test_vlan_validate()
886 tpriv->ok = true; in stmmac_test_vlan_validate()
[all …]
/drivers/pcmcia/
Drsrc_nonstatic.c457 u_long ok; in inv_probe() local
460 ok = inv_probe(m->next, s); in inv_probe()
461 if (ok) { in inv_probe()
464 return ok; in inv_probe()
484 unsigned long b, i, ok = 0; in validate_mem() local
504 ok += do_mem_probe(s, mm.base, mm.num, readable, in validate_mem()
512 if (ok >= mem_limit) in validate_mem()
515 ok += do_mem_probe(s, b, 0x10000, in validate_mem()
521 if (ok > 0) in validate_mem()
540 unsigned long ok = 0; in validate_mem() local
[all …]
/drivers/scsi/aacraid/
Dsa.c157 int ok; in sa_sync_cmd() local
179 ok = 0; in sa_sync_cmd()
193 ok = 1; in sa_sync_cmd()
199 if (ok != 1) in sa_sync_cmd()
Drx.c167 int ok; in rx_sync_cmd() local
197 ok = 0; in rx_sync_cmd()
214 ok = 1; in rx_sync_cmd()
222 if (unlikely(ok != 1)) { in rx_sync_cmd()
/drivers/xen/
Dxen-acpi-processor.c60 unsigned int i, ok; in push_cxx_to_hypervisor() local
68 for (ok = 0, i = 1; i <= _pr->power.count; i++) { in push_cxx_to_hypervisor()
73 dst_cx = &(dst_cx_states[ok++]); in push_cxx_to_hypervisor()
97 if (!ok) { in push_cxx_to_hypervisor()
102 op.u.set_pminfo.power.count = ok; in push_cxx_to_hypervisor()
/drivers/gpu/drm/i915/display/
Dintel_dpio_phy.c527 bool ok; in bxt_ddi_phy_verify_state() local
538 ok = true; in bxt_ddi_phy_verify_state()
541 ok &= _CHK(BXT_PORT_CL1CM_DW9(phy), in bxt_ddi_phy_verify_state()
544 ok &= _CHK(BXT_PORT_CL1CM_DW10(phy), in bxt_ddi_phy_verify_state()
550 ok &= _CHK(BXT_PORT_CL1CM_DW28(phy), mask, mask, in bxt_ddi_phy_verify_state()
554 ok &= _CHK(BXT_PORT_CL2CM_DW6(phy), in bxt_ddi_phy_verify_state()
566 ok &= _CHK(BXT_PORT_REF_DW6(phy), mask, grc_code, in bxt_ddi_phy_verify_state()
570 ok &= _CHK(BXT_PORT_REF_DW8(phy), mask, mask, in bxt_ddi_phy_verify_state()
574 return ok; in bxt_ddi_phy_verify_state()
/drivers/mtd/
Dssfdc.c202 int ok = 0; in get_logical_address() local
224 ok = 1; in get_logical_address()
230 if (!ok) in get_logical_address()
/drivers/video/console/
Dsticore.c807 goto ok; in sti_read_rom()
825 ok: in sti_read_rom()
844 int ok; in sti_try_rom_generic() local
898 ok = 0; in sti_try_rom_generic()
903 ok = sti_read_rom(0, sti, address); in sti_try_rom_generic()
909 ok = sti_read_rom(1, sti, address); in sti_try_rom_generic()
912 if (!ok) in sti_try_rom_generic()
/drivers/net/wireless/ath/wil6210/
Dnetdev.c13 struct net_device *ndev, bool up, bool ok) in wil_has_other_active_ifaces() argument
25 (ok && netif_carrier_ok(ndev_i))) in wil_has_other_active_ifaces()
33 bool wil_has_active_ifaces(struct wil6210_priv *wil, bool up, bool ok) in wil_has_active_ifaces() argument
36 return wil_has_other_active_ifaces(wil, NULL, up, ok); in wil_has_active_ifaces()
/drivers/clk/tegra/
Dclk-dfll.c1901 bool ok = true; in dfll_fetch_common_params() local
1903 ok &= read_dt_param(td, "nvidia,droop-ctrl", &td->droop_ctrl); in dfll_fetch_common_params()
1904 ok &= read_dt_param(td, "nvidia,sample-rate", &td->sample_rate); in dfll_fetch_common_params()
1905 ok &= read_dt_param(td, "nvidia,force-mode", &td->force_mode); in dfll_fetch_common_params()
1906 ok &= read_dt_param(td, "nvidia,cf", &td->cf); in dfll_fetch_common_params()
1907 ok &= read_dt_param(td, "nvidia,ci", &td->ci); in dfll_fetch_common_params()
1908 ok &= read_dt_param(td, "nvidia,cg", &td->cg); in dfll_fetch_common_params()
1915 ok = false; in dfll_fetch_common_params()
1918 return ok ? 0 : -EINVAL; in dfll_fetch_common_params()
/drivers/net/wireless/mediatek/mt76/mt76x0/
Dinit.c138 int i = 200, ok = 0; in mt76x0_mac_stop() local
159 if (ok++ > 5) in mt76x0_mac_stop()
/drivers/mtd/tests/
Dpagetest.c269 int err = 0, i, ebnum, ok = 1; in erasetest() local
309 ok = 0; in erasetest()
313 if (ok && !err) in erasetest()
/drivers/gpu/drm/tidss/
Dtidss_crtc.c96 enum drm_mode_status ok; in tidss_crtc_atomic_check() local
105 ok = dispc_vp_mode_valid(dispc, hw_videoport, mode); in tidss_crtc_atomic_check()
106 if (ok != MODE_OK) { in tidss_crtc_atomic_check()
/drivers/platform/chrome/
Dcros_ec_lightbar.c223 int ret, i = 0, j = 0, ok = 0; in led_rgb_store() local
263 ok = 1; in led_rgb_store()
274 return (ok && i == 0) ? count : -EINVAL; in led_rgb_store()
/drivers/input/joystick/
Dsidewinder.c108 int ok; member
440 sw->ok++; in sw_read()
443 && sw->ok > SW_OK) { in sw_read()
453 sw->ok = 0; in sw_read()

1234