Lines Matching full:locked
295 static int lgs8gxx_is_locked(struct lgs8gxx_state *priv, u8 *locked) in lgs8gxx_is_locked() argument
308 *locked = ((t & 0x80) == 0x80) ? 1 : 0; in lgs8gxx_is_locked()
310 *locked = ((t & 0xC0) == 0xC0) ? 1 : 0; in lgs8gxx_is_locked()
315 static int lgs8gxx_wait_ca_lock(struct lgs8gxx_state *priv, u8 *locked) in lgs8gxx_wait_ca_lock() argument
331 *locked = (ret == 0) ? 1 : 0; in lgs8gxx_wait_ca_lock()
359 u8 *locked) in lgs8gxx_autolock_gi() argument
384 err = lgs8gxx_wait_ca_lock(priv, locked); in lgs8gxx_autolock_gi()
385 if (err || !(*locked)) in lgs8gxx_autolock_gi()
393 *locked = 0; in lgs8gxx_autolock_gi()
403 u8 locked = 0, tmp_gi; in lgs8gxx_auto_detect() local
419 err = lgs8gxx_autolock_gi(priv, GI_945, j, &locked); in lgs8gxx_auto_detect()
422 if (locked) in lgs8gxx_auto_detect()
423 goto locked; in lgs8gxx_auto_detect()
427 err = lgs8gxx_autolock_gi(priv, GI_420, j, &locked); in lgs8gxx_auto_detect()
430 if (locked) in lgs8gxx_auto_detect()
431 goto locked; in lgs8gxx_auto_detect()
434 err = lgs8gxx_autolock_gi(priv, GI_595, 1, &locked); in lgs8gxx_auto_detect()
437 if (locked) in lgs8gxx_auto_detect()
438 goto locked; in lgs8gxx_auto_detect()
441 locked: in lgs8gxx_auto_detect()
442 if ((err == 0) && (locked == 1)) { in lgs8gxx_auto_detect()
454 dprintk("GI 945 locked\n"); in lgs8gxx_auto_detect()
456 dprintk("GI 595 locked\n"); in lgs8gxx_auto_detect()
458 dprintk("GI 420 locked\n"); in lgs8gxx_auto_detect()
461 if (!locked) in lgs8gxx_auto_detect()
716 u8 t, locked = 0; in lgs8gxx_read_status() local
722 lgs8gxx_is_locked(priv, &locked); in lgs8gxx_read_status()
724 if (locked) in lgs8gxx_read_status()