Go to the source code of this file.
|
int | carl9170_write_reg (struct ar9170 *ar, const u32 reg, const u32 val) |
|
int | carl9170_read_reg (struct ar9170 *ar, const u32 reg, u32 *val) |
|
int | carl9170_read_mreg (struct ar9170 *ar, const int nregs, const u32 *regs, u32 *out) |
|
int | carl9170_echo_test (struct ar9170 *ar, u32 v) |
|
int | carl9170_reboot (struct ar9170 *ar) |
|
int | carl9170_mac_reset (struct ar9170 *ar) |
|
int | carl9170_powersave (struct ar9170 *ar, const bool power_on) |
|
int | carl9170_collect_tally (struct ar9170 *ar) |
|
int | carl9170_bcn_ctrl (struct ar9170 *ar, const unsigned int vif_id, const u32 mode, const u32 addr, const u32 len) |
|
struct carl9170_cmd * | carl9170_cmd_buf (struct ar9170 *ar, const enum carl9170_cmd_oids cmd, const unsigned int len) |
|
#define carl9170_async_regwrite |
( |
|
r, |
|
|
|
v |
|
) |
| |
Value:do { \
carl9170_async_regwrite_get_buf(); \
__nreg++; \
carl9170_async_regwrite_flush(); \
} while (0)
Definition at line 153 of file cmd.h.
#define carl9170_async_regwrite_begin |
( |
|
carl | ) |
|
Value:
unsigned int __nreg; \
int __err = 0; \
carl9170_async_regwrite_get_buf(); \
Definition at line 131 of file cmd.h.
#define carl9170_async_regwrite_finish |
( |
| ) |
|
Value:do { \
__async_regwrite_out: \
if (__cmd !=
NULL && __err == 0) \
carl9170_async_regwrite_flush(); \
kfree(__cmd); \
} while (0) \
Definition at line 163 of file cmd.h.
#define carl9170_async_regwrite_flush |
( |
| ) |
|
Value:do { \
if (__cmd ==
NULL || __nreg == 0) \
__cmd->hdr.len = 8 * __nreg; \
break; \
} \
goto __async_regwrite_out; \
} while (0)
Definition at line 139 of file cmd.h.
#define carl9170_async_regwrite_get_buf |
( |
| ) |
|
Value:do { \
__nreg = 0; \
goto __async_regwrite_out; \
} \
} while (0)
Definition at line 120 of file cmd.h.
#define carl9170_async_regwrite_result |
( |
| ) |
|
Value:
Definition at line 170 of file cmd.h.
#define carl9170_regwrite |
( |
|
r, |
|
|
|
v |
|
) |
| |
Value:do { \
__nreg++; \
(
u8 *) &__ar->cmd_buf[1], 0,
NULL); \
else \
goto __regwrite_out; \
\
__nreg = 0; \
if (__err) \
goto __regwrite_out; \
} \
} while (0)
Definition at line 87 of file cmd.h.
#define carl9170_regwrite_begin |
( |
|
ar | ) |
|
Value:do { \
int __nreg = 0, __err = 0;
\
Definition at line 82 of file cmd.h.
#define carl9170_regwrite_finish |
( |
| ) |
|
Value:__regwrite_out : \
if (__err == 0 && __nreg) { \
(
u8 *) &__ar->cmd_buf[1], 0,
NULL); \
__nreg = 0; \
}
Definition at line 105 of file cmd.h.
#define carl9170_regwrite_result |
( |
| ) |
|
Value:
Definition at line 115 of file cmd.h.
Definition at line 99 of file cmd.c.
Definition at line 62 of file cmd.c.
Definition at line 94 of file cmd.c.
Definition at line 43 of file cmd.c.