Lines Matching refs:risc

93 		} risc;  member
239 if (state->platform.risc.fw_is_running && (reg < 1024)) in dib9000_read16_attr()
323 if (state->platform.risc.fw_is_running && (reg < 1024)) { in dib9000_write16_attr()
428 …state->platform.risc.memcmd = -1; /* if it was called directly reset it - to force a future setup-… in dib9000_risc_mem_setup_cmd()
433 struct dib9000_fe_memory_map *m = &state->platform.risc.fe_mm[cmd & 0x7f]; in dib9000_risc_mem_setup()
435 if (state->platform.risc.memcmd == cmd && /* same command */ in dib9000_risc_mem_setup()
439 state->platform.risc.memcmd = cmd; in dib9000_risc_mem_setup()
444 if (!state->platform.risc.fw_is_running) in dib9000_risc_mem_read()
447 if (mutex_lock_interruptible(&state->platform.risc.mem_lock) < 0) { in dib9000_risc_mem_read()
453 mutex_unlock(&state->platform.risc.mem_lock); in dib9000_risc_mem_read()
459 struct dib9000_fe_memory_map *m = &state->platform.risc.fe_mm[cmd]; in dib9000_risc_mem_write()
460 if (!state->platform.risc.fw_is_running) in dib9000_risc_mem_write()
463 if (mutex_lock_interruptible(&state->platform.risc.mem_lock) < 0) { in dib9000_risc_mem_write()
469 mutex_unlock(&state->platform.risc.mem_lock); in dib9000_risc_mem_write()
535 if (!state->platform.risc.fw_is_running) in dib9000_mbx_send_attr()
538 if (mutex_lock_interruptible(&state->platform.risc.mbx_if_lock) < 0) { in dib9000_mbx_send_attr()
582 mutex_unlock(&state->platform.risc.mbx_if_lock); in dib9000_mbx_send_attr()
597 if (!state->platform.risc.fw_is_running) in dib9000_mbx_read()
600 if (mutex_lock_interruptible(&state->platform.risc.mbx_if_lock) < 0) { in dib9000_mbx_read()
641 mutex_unlock(&state->platform.risc.mbx_if_lock); in dib9000_mbx_read()
669 block = state->platform.risc.message_cache[i]; in dib9000_mbx_fetch_to_cache()
709 if (!state->platform.risc.fw_is_running) in dib9000_mbx_process()
712 if (mutex_lock_interruptible(&state->platform.risc.mbx_lock) < 0) { in dib9000_mbx_process()
723 mutex_unlock(&state->platform.risc.mbx_lock); in dib9000_mbx_process()
738 block = state->platform.risc.message_cache[i]; in dib9000_mbx_get_message_attr()
842 state->platform.risc.fw_is_running = 1; in dib9000_fw_boot()
847 state->platform.risc.memcmd = 0xff; in dib9000_fw_boot()
1017 if (address >= 1024 || !state->platform.risc.fw_is_running) in dib9000_risc_apb_access_read()
1044 if (address >= 1024 || !state->platform.risc.fw_is_running) in dib9000_risc_apb_access_write()
1066 if (!state->platform.risc.fw_is_running) in dib9000_fw_memmbx_sync()
1148 state->platform.risc.fe_mm[i / 2].addr = b[i + 0]; in dib9000_fw_init()
1149 state->platform.risc.fe_mm[i / 2].size = b[i + 1]; in dib9000_fw_init()
1197 if (mutex_lock_interruptible(&state->platform.risc.mem_mbx_lock) < 0) { in dib9000_fw_get_channel()
1327 mutex_unlock(&state->platform.risc.mem_mbx_lock); in dib9000_fw_get_channel()
1659 struct dib9000_fe_memory_map *m = &state->platform.risc.fe_mm[FE_MM_RW_COMPONENT_ACCESS_BUFFER]; in dib9000_fw_component_bus_xfer()
1682 if (mutex_lock_interruptible(&state->platform.risc.mem_mbx_lock) < 0) { in dib9000_fw_component_bus_xfer()
1696 mutex_unlock(&state->platform.risc.mem_mbx_lock); in dib9000_fw_component_bus_xfer()
1704 mutex_unlock(&state->platform.risc.mem_mbx_lock); in dib9000_fw_component_bus_xfer()
2212 if (mutex_lock_interruptible(&state->platform.risc.mem_mbx_lock) < 0) { in dib9000_read_ber()
2218 mutex_unlock(&state->platform.risc.mem_mbx_lock); in dib9000_read_ber()
2224 mutex_unlock(&state->platform.risc.mem_mbx_lock); in dib9000_read_ber()
2256 if (mutex_lock_interruptible(&state->platform.risc.mem_mbx_lock) < 0) { in dib9000_read_signal_strength()
2262 mutex_unlock(&state->platform.risc.mem_mbx_lock); in dib9000_read_signal_strength()
2267 mutex_unlock(&state->platform.risc.mem_mbx_lock); in dib9000_read_signal_strength()
2287 if (mutex_lock_interruptible(&state->platform.risc.mem_mbx_lock) < 0) { in dib9000_get_snr()
2292 mutex_unlock(&state->platform.risc.mem_mbx_lock); in dib9000_get_snr()
2296 mutex_unlock(&state->platform.risc.mem_mbx_lock); in dib9000_get_snr()
2355 if (mutex_lock_interruptible(&state->platform.risc.mem_mbx_lock) < 0) { in dib9000_read_unc_blocks()
2361 mutex_unlock(&state->platform.risc.mem_mbx_lock); in dib9000_read_unc_blocks()
2366 mutex_unlock(&state->platform.risc.mem_mbx_lock); in dib9000_read_unc_blocks()
2496 mutex_init(&st->platform.risc.mbx_if_lock); in dib9000_attach()
2497 mutex_init(&st->platform.risc.mbx_lock); in dib9000_attach()
2498 mutex_init(&st->platform.risc.mem_lock); in dib9000_attach()
2499 mutex_init(&st->platform.risc.mem_mbx_lock); in dib9000_attach()