Lines Matching refs:platform

96 	} platform;  member
241 if (state->platform.risc.fw_is_running && (reg < 1024)) in dib9000_read16_attr()
325 if (state->platform.risc.fw_is_running && (reg < 1024)) { in dib9000_write16_attr()
430 …state->platform.risc.memcmd = -1; /* if it was called directly reset it - to force a future setup-… in dib9000_risc_mem_setup_cmd()
435 struct dib9000_fe_memory_map *m = &state->platform.risc.fe_mm[cmd & 0x7f]; in dib9000_risc_mem_setup()
437 if (state->platform.risc.memcmd == cmd && /* same command */ in dib9000_risc_mem_setup()
441 state->platform.risc.memcmd = cmd; in dib9000_risc_mem_setup()
446 if (!state->platform.risc.fw_is_running) in dib9000_risc_mem_read()
449 if (DibAcquireLock(&state->platform.risc.mem_lock) < 0) { in dib9000_risc_mem_read()
455 DibReleaseLock(&state->platform.risc.mem_lock); in dib9000_risc_mem_read()
461 struct dib9000_fe_memory_map *m = &state->platform.risc.fe_mm[cmd]; in dib9000_risc_mem_write()
462 if (!state->platform.risc.fw_is_running) in dib9000_risc_mem_write()
465 if (DibAcquireLock(&state->platform.risc.mem_lock) < 0) { in dib9000_risc_mem_write()
471 DibReleaseLock(&state->platform.risc.mem_lock); in dib9000_risc_mem_write()
537 if (!state->platform.risc.fw_is_running) in dib9000_mbx_send_attr()
540 if (DibAcquireLock(&state->platform.risc.mbx_if_lock) < 0) { in dib9000_mbx_send_attr()
587 DibReleaseLock(&state->platform.risc.mbx_if_lock); in dib9000_mbx_send_attr()
602 if (!state->platform.risc.fw_is_running) in dib9000_mbx_read()
605 if (DibAcquireLock(&state->platform.risc.mbx_if_lock) < 0) { in dib9000_mbx_read()
646 DibReleaseLock(&state->platform.risc.mbx_if_lock); in dib9000_mbx_read()
672 block = state->platform.risc.message_cache[i]; in dib9000_mbx_fetch_to_cache()
713 if (!state->platform.risc.fw_is_running) in dib9000_mbx_process()
716 if (DibAcquireLock(&state->platform.risc.mbx_lock) < 0) { in dib9000_mbx_process()
727 DibReleaseLock(&state->platform.risc.mbx_lock); in dib9000_mbx_process()
742 block = state->platform.risc.message_cache[i]; in dib9000_mbx_get_message_attr()
846 state->platform.risc.fw_is_running = 1; in dib9000_fw_boot()
851 state->platform.risc.memcmd = 0xff; in dib9000_fw_boot()
954 if (!state->platform.host.mobile_mode) in dib9000_set_power_mode()
1021 if (address >= 1024 || !state->platform.risc.fw_is_running) in dib9000_risc_apb_access_read()
1048 if (address >= 1024 || !state->platform.risc.fw_is_running) in dib9000_risc_apb_access_write()
1065 if (!state->platform.risc.fw_is_running) in dib9000_fw_memmbx_sync()
1147 state->platform.risc.fe_mm[i / 2].addr = b[i + 0]; in dib9000_fw_init()
1148 state->platform.risc.fe_mm[i / 2].size = b[i + 1]; in dib9000_fw_init()
1196 if (DibAcquireLock(&state->platform.risc.mem_mbx_lock) < 0) { in dib9000_fw_get_channel()
1326 DibReleaseLock(&state->platform.risc.mem_mbx_lock); in dib9000_fw_get_channel()
1658 struct dib9000_fe_memory_map *m = &state->platform.risc.fe_mm[FE_MM_RW_COMPONENT_ACCESS_BUFFER]; in dib9000_fw_component_bus_xfer()
1681 if (DibAcquireLock(&state->platform.risc.mem_mbx_lock) < 0) { in dib9000_fw_component_bus_xfer()
1695 DibReleaseLock(&state->platform.risc.mem_mbx_lock); in dib9000_fw_component_bus_xfer()
1703 DibReleaseLock(&state->platform.risc.mem_mbx_lock); in dib9000_fw_component_bus_xfer()
1854 DibFreeLock(&state->platform.risc.mbx_if_lock); in dib9000_release()
1855 DibFreeLock(&state->platform.risc.mbx_lock); in dib9000_release()
1856 DibFreeLock(&state->platform.risc.mem_lock); in dib9000_release()
1857 DibFreeLock(&state->platform.risc.mem_mbx_lock); in dib9000_release()
2215 if (DibAcquireLock(&state->platform.risc.mem_mbx_lock) < 0) { in dib9000_read_ber()
2221 DibReleaseLock(&state->platform.risc.mem_mbx_lock); in dib9000_read_ber()
2227 DibReleaseLock(&state->platform.risc.mem_mbx_lock); in dib9000_read_ber()
2259 if (DibAcquireLock(&state->platform.risc.mem_mbx_lock) < 0) { in dib9000_read_signal_strength()
2265 DibReleaseLock(&state->platform.risc.mem_mbx_lock); in dib9000_read_signal_strength()
2270 DibReleaseLock(&state->platform.risc.mem_mbx_lock); in dib9000_read_signal_strength()
2290 if (DibAcquireLock(&state->platform.risc.mem_mbx_lock) < 0) { in dib9000_get_snr()
2295 DibReleaseLock(&state->platform.risc.mem_mbx_lock); in dib9000_get_snr()
2299 DibReleaseLock(&state->platform.risc.mem_mbx_lock); in dib9000_get_snr()
2358 if (DibAcquireLock(&state->platform.risc.mem_mbx_lock) < 0) { in dib9000_read_unc_blocks()
2364 DibReleaseLock(&state->platform.risc.mem_mbx_lock); in dib9000_read_unc_blocks()
2369 DibReleaseLock(&state->platform.risc.mem_mbx_lock); in dib9000_read_unc_blocks()
2517 DibInitLock(&st->platform.risc.mbx_if_lock); in dib9000_attach()
2518 DibInitLock(&st->platform.risc.mbx_lock); in dib9000_attach()
2519 DibInitLock(&st->platform.risc.mem_lock); in dib9000_attach()
2520 DibInitLock(&st->platform.risc.mem_mbx_lock); in dib9000_attach()