void writeN(_adapter *adapter, u32 addr ,u32 length , u8 *pdata) { struct io_queue *pio_queue = (struct io_queue *)adapter->pio_queue; struct intf_hdl *pintfhdl = (struct intf_hdl*)(&(pio_queue->intf)); void (*_writeN)(struct intf_hdl *pintfhdl, u32 addr,u32 length, u8 *pdata); _func_enter_; _writeN = pintfhdl->io_ops._writeN; _writeN(pintfhdl, addr,length,pdata); _func_exit_; }
int _rtw_writeN(struct adapter *adapter, u32 addr , u32 length , u8 *pdata) { struct io_priv *pio_priv = &adapter->iopriv; struct intf_hdl *pintfhdl = (struct intf_hdl *)(&(pio_priv->intf)); int (*_writeN)(struct intf_hdl *pintfhdl, u32 addr, u32 length, u8 *pdata); int ret; _func_enter_; _writeN = pintfhdl->io_ops._writeN; ret = _writeN(pintfhdl, addr, length, pdata); _func_exit_; return RTW_STATUS_CODE(ret); }
void writeN(_adapter *adapter, u32 addr ,u32 length , u8 *pdata) { //struct io_queue *pio_queue = (struct io_queue *)adapter->pio_queue; struct io_priv *pio_priv = &adapter->iopriv; struct intf_hdl *pintfhdl = (struct intf_hdl*)(&(pio_priv->intf)); void (*_writeN)(struct intf_hdl *pintfhdl, u32 addr,u32 length, u8 *pdata); _irqL irqL; _func_enter_; _writeN = pintfhdl->io_ops._writeN; _enter_critical_mutex(&pintfhdl->io_mutex, &irqL); _writeN(pintfhdl, addr,length,pdata); _exit_critical_mutex(&pintfhdl->io_mutex, &irqL); _func_exit_; }