Home
last modified time | relevance | path

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

1234

/drivers/gpu/drm/amd/amdkfd/
Dkfd_pasid.c52 bool ok; in kfd_set_pasid_limit() local
57 ok = (find_next_bit(pasid_bitmap, pasid_limit, new_limit) == in kfd_set_pasid_limit()
59 if (ok) in kfd_set_pasid_limit()
64 return ok; in kfd_set_pasid_limit()
/drivers/video/fbdev/omap2/omapfb/dss/
Ddpi.c263 bool ok; in dpi_dss_clk_calc() local
272 ok = dss_div_calc(pck, ctx->pck_min, dpi_calc_dss_cb, ctx); in dpi_dss_clk_calc()
273 if (ok) in dpi_dss_clk_calc()
274 return ok; in dpi_dss_clk_calc()
288 bool ok; in dpi_set_dsi_clk() local
290 ok = dpi_dsi_clk_calc(dpi, pck_req, &ctx); in dpi_set_dsi_clk()
291 if (!ok) in dpi_set_dsi_clk()
315 bool ok; in dpi_set_dispc_clk() local
317 ok = dpi_dss_clk_calc(pck_req, &ctx); in dpi_set_dispc_clk()
318 if (!ok) in dpi_set_dispc_clk()
[all …]
Dsdi.c95 bool ok; in sdi_calc_clock_div() local
104 ok = dss_div_calc(pclk, ctx.pck_min, dpi_calc_dss_cb, &ctx); in sdi_calc_clock_div()
105 if (ok) { in sdi_calc_clock_div()
/drivers/gpu/drm/omapdrm/dss/
Ddpi.c262 bool ok; in dpi_dss_clk_calc() local
271 ok = dss_div_calc(pck, ctx->pck_min, dpi_calc_dss_cb, ctx); in dpi_dss_clk_calc()
272 if (ok) in dpi_dss_clk_calc()
273 return ok; in dpi_dss_clk_calc()
287 bool ok; in dpi_set_pll_clk() local
289 ok = dpi_pll_clk_calc(dpi, pck_req, &ctx); in dpi_set_pll_clk()
290 if (!ok) in dpi_set_pll_clk()
313 bool ok; in dpi_set_dispc_clk() local
315 ok = dpi_dss_clk_calc(pck_req, &ctx); in dpi_set_dispc_clk()
316 if (!ok) in dpi_set_dispc_clk()
[all …]
Dsdi.c95 bool ok; in sdi_calc_clock_div() local
104 ok = dss_div_calc(pclk, ctx.pck_min, dpi_calc_dss_cb, &ctx); in sdi_calc_clock_div()
105 if (ok) { in sdi_calc_clock_div()
/drivers/media/pci/ngene/
Dngene-dvb.c125 static u32 ok; variable
146 ok++; in tsin_exchange()
158 if (ok % 100 == 0 && overflow) in tsin_exchange()
159 printk(KERN_WARNING "%s: ok %u overflow %u dropped %u\n", __func__, ok, overflow, stripped); in tsin_exchange()
/drivers/parport/
Dparport_gsc.c206 int ok = 0; in parport_PS2_supported() local
214 if (parport_gsc_read_data(pb) != 0x55) ok++; in parport_PS2_supported()
217 if (parport_gsc_read_data(pb) != 0xaa) ok++; in parport_PS2_supported()
222 if (ok) { in parport_PS2_supported()
229 return ok; in parport_PS2_supported()
/drivers/atm/
Dfore200e.c227 int ok; in fore200e_poll() local
231 if ((ok = (*addr == val)) || (*addr & STATUS_ERROR)) in fore200e_poll()
237 if (!ok) { in fore200e_poll()
243 return ok; in fore200e_poll()
251 int ok; in fore200e_io_poll() local
254 if ((ok = (fore200e->bus->read(addr) == val))) in fore200e_io_poll()
260 if (!ok) { in fore200e_io_poll()
266 return ok; in fore200e_io_poll()
318 int ok; in fore200e_reset() local
327 ok = fore200e_io_poll(fore200e, &fore200e->cp_monitor->bstat, BSTAT_SELFTEST_OK, 1000); in fore200e_reset()
[all …]
/drivers/pcmcia/
Drsrc_nonstatic.c460 u_long ok; in inv_probe() local
463 ok = inv_probe(m->next, s); in inv_probe()
464 if (ok) { in inv_probe()
467 return ok; in inv_probe()
487 unsigned long b, i, ok = 0; in validate_mem() local
507 ok += do_mem_probe(s, mm.base, mm.num, readable, in validate_mem()
515 if (ok >= mem_limit) in validate_mem()
518 ok += do_mem_probe(s, b, 0x10000, in validate_mem()
524 if (ok > 0) in validate_mem()
543 unsigned long ok = 0; in validate_mem() local
[all …]
/drivers/scsi/aacraid/
Dsa.c162 int ok; in sa_sync_cmd() local
184 ok = 0; in sa_sync_cmd()
198 ok = 1; in sa_sync_cmd()
204 if (ok != 1) in sa_sync_cmd()
Drx.c171 int ok; in rx_sync_cmd() local
201 ok = 0; in rx_sync_cmd()
218 ok = 1; in rx_sync_cmd()
226 if (unlikely(ok != 1)) { in rx_sync_cmd()
/drivers/xen/
Dxen-acpi-processor.c67 unsigned int i, ok; in push_cxx_to_hypervisor() local
75 for (ok = 0, i = 1; i <= _pr->power.count; i++) { in push_cxx_to_hypervisor()
80 dst_cx = &(dst_cx_states[ok++]); in push_cxx_to_hypervisor()
104 if (!ok) { in push_cxx_to_hypervisor()
109 op.u.set_pminfo.power.count = ok; in push_cxx_to_hypervisor()
/drivers/clk/tegra/
Dclk-dfll.c1580 bool ok = true; in dfll_fetch_common_params() local
1582 ok &= read_dt_param(td, "nvidia,droop-ctrl", &td->droop_ctrl); in dfll_fetch_common_params()
1583 ok &= read_dt_param(td, "nvidia,sample-rate", &td->sample_rate); in dfll_fetch_common_params()
1584 ok &= read_dt_param(td, "nvidia,force-mode", &td->force_mode); in dfll_fetch_common_params()
1585 ok &= read_dt_param(td, "nvidia,cf", &td->cf); in dfll_fetch_common_params()
1586 ok &= read_dt_param(td, "nvidia,ci", &td->ci); in dfll_fetch_common_params()
1587 ok &= read_dt_param(td, "nvidia,cg", &td->cg); in dfll_fetch_common_params()
1594 ok = false; in dfll_fetch_common_params()
1597 return ok ? 0 : -EINVAL; in dfll_fetch_common_params()
/drivers/mtd/
Dssfdc.c205 int ok = 0; in get_logical_address() local
227 ok = 1; in get_logical_address()
233 if (!ok) in get_logical_address()
/drivers/video/console/
Dsticore.c784 goto ok; in sti_read_rom()
802 ok: in sti_read_rom()
821 int ok; in sti_try_rom_generic() local
883 ok = 0; in sti_try_rom_generic()
888 ok = sti_read_rom(0, sti, address); in sti_try_rom_generic()
894 ok = sti_read_rom(1, sti, address); in sti_try_rom_generic()
897 if (!ok) in sti_try_rom_generic()
/drivers/platform/chrome/
Dcros_ec_lightbar.c239 int ret, i = 0, j = 0, ok = 0; in led_rgb_store() local
282 ok = 1; in led_rgb_store()
293 return (ok && i == 0) ? count : -EINVAL; in led_rgb_store()
/drivers/infiniband/hw/qib/
Dqib_keys.c185 goto ok; in qib_rkey_ok()
232 ok: in qib_rkey_ok()
Dqib_uc.c435 int ok; in qib_uc_rcv() local
438 ok = rvt_rkey_ok(qp, &qp->r_sge.sge, qp->r_len, in qib_uc_rcv()
440 if (unlikely(!ok)) in qib_uc_rcv()
/drivers/net/wireless/mediatek/mt7601u/
Dinit.c267 int i, ok; in mt7601u_mac_stop_hw() local
293 ok = 0; in mt7601u_mac_stop_hw()
299 ok++; in mt7601u_mac_stop_hw()
300 if (ok > 6) in mt7601u_mac_stop_hw()
/drivers/mtd/tests/
Dpagetest.c281 int err = 0, i, ebnum, ok = 1; in erasetest() local
321 ok = 0; in erasetest()
325 if (ok && !err) in erasetest()
/drivers/platform/x86/
Dasus-wmi.c1391 bool ok = true; in asus_hwmon_sysfs_is_visible() local
1424 ok = false; in asus_hwmon_sysfs_is_visible()
1426 ok = fan_attr <= asus->asus_hwmon_num_fans; in asus_hwmon_sysfs_is_visible()
1430 ok = false; in asus_hwmon_sysfs_is_visible()
1432 ok = true; in asus_hwmon_sysfs_is_visible()
1434 ok = false; in asus_hwmon_sysfs_is_visible()
1437 return ok ? attr->mode : 0; in asus_hwmon_sysfs_is_visible()
1808 bool ok = true; in asus_sysfs_is_visible() local
1823 ok = !(asus_wmi_get_devstate_simple(asus, devid) < 0); in asus_sysfs_is_visible()
1825 return ok ? attr->mode : 0; in asus_sysfs_is_visible()
/drivers/input/joystick/
Dsidewinder.c124 int ok; member
456 sw->ok++; in sw_read()
459 && sw->ok > SW_OK) { in sw_read()
469 sw->ok = 0; in sw_read()
/drivers/gpu/drm/gma500/
Dpsb_intel_display.c117 bool ok, is_sdvo = false; in psb_intel_crtc_mode_set() local
153 ok = limit->find_pll(limit, crtc, adjusted_mode->clock, refclk, in psb_intel_crtc_mode_set()
155 if (!ok) { in psb_intel_crtc_mode_set()
/drivers/net/ethernet/atheros/atlx/
Datl2.h255 unsigned ok:1; /* current packet transmitted without error */ member
304 unsigned ok:1; /* current packet received ok without error */ member
/drivers/infiniband/hw/hfi1/
Duc.c493 int ok; in hfi1_uc_rcv() local
496 ok = rvt_rkey_ok(qp, &qp->r_sge.sge, qp->r_len, in hfi1_uc_rcv()
498 if (unlikely(!ok)) in hfi1_uc_rcv()

1234