Lines Matching refs:locked
309 static int lgs8gxx_is_locked(struct lgs8gxx_state *priv, u8 *locked) in lgs8gxx_is_locked() argument
322 *locked = ((t & 0x80) == 0x80) ? 1 : 0; in lgs8gxx_is_locked()
324 *locked = ((t & 0xC0) == 0xC0) ? 1 : 0; in lgs8gxx_is_locked()
329 static int lgs8gxx_wait_ca_lock(struct lgs8gxx_state *priv, u8 *locked) in lgs8gxx_wait_ca_lock() argument
345 *locked = (ret == 0) ? 1 : 0; in lgs8gxx_wait_ca_lock()
373 u8 *locked) in lgs8gxx_autolock_gi() argument
398 err = lgs8gxx_wait_ca_lock(priv, locked); in lgs8gxx_autolock_gi()
399 if (err || !(*locked)) in lgs8gxx_autolock_gi()
407 *locked = 0; in lgs8gxx_autolock_gi()
417 u8 locked = 0, tmp_gi; in lgs8gxx_auto_detect() local
433 err = lgs8gxx_autolock_gi(priv, GI_945, j, &locked); in lgs8gxx_auto_detect()
436 if (locked) in lgs8gxx_auto_detect()
437 goto locked; in lgs8gxx_auto_detect()
441 err = lgs8gxx_autolock_gi(priv, GI_420, j, &locked); in lgs8gxx_auto_detect()
444 if (locked) in lgs8gxx_auto_detect()
445 goto locked; in lgs8gxx_auto_detect()
448 err = lgs8gxx_autolock_gi(priv, GI_595, 1, &locked); in lgs8gxx_auto_detect()
451 if (locked) in lgs8gxx_auto_detect()
452 goto locked; in lgs8gxx_auto_detect()
455 locked: in lgs8gxx_auto_detect()
456 if ((err == 0) && (locked == 1)) { in lgs8gxx_auto_detect()
475 if (!locked) in lgs8gxx_auto_detect()
739 u8 t, locked = 0; in lgs8gxx_read_status() local
745 lgs8gxx_is_locked(priv, &locked); in lgs8gxx_read_status()
747 if (locked) in lgs8gxx_read_status()