u8 r_val;
struct intf_hdl *pintfhdl = &adapter->intf;
- r_val = pintfhdl->io_ops._read8(pintfhdl, addr);
+ r_val = pintfhdl->io_ops._read8(adapter, addr);
return r_val;
}
u16 r_val;
struct intf_hdl *pintfhdl = &adapter->intf;
- r_val = pintfhdl->io_ops._read16(pintfhdl, addr);
+ r_val = pintfhdl->io_ops._read16(adapter, addr);
return le16_to_cpu(r_val);
}
u32 r_val;
struct intf_hdl *pintfhdl = &adapter->intf;
- r_val = pintfhdl->io_ops._read32(pintfhdl, addr);
+ r_val = pintfhdl->io_ops._read32(adapter, addr);
return le32_to_cpu(r_val);
}
struct intf_hdl *pintfhdl = &adapter->intf;
int ret;
- ret = pintfhdl->io_ops._write8(pintfhdl, addr, val);
+ ret = pintfhdl->io_ops._write8(adapter, addr, val);
return RTW_STATUS_CODE23a(ret);
}
int ret;
val = cpu_to_le16(val);
- ret = pintfhdl->io_ops._write16(pintfhdl, addr, val);
+ ret = pintfhdl->io_ops._write16(adapter, addr, val);
return RTW_STATUS_CODE23a(ret);
}
int ret;
val = cpu_to_le32(val);
- ret = pintfhdl->io_ops._write32(pintfhdl, addr, val);
+ ret = pintfhdl->io_ops._write32(adapter, addr, val);
return RTW_STATUS_CODE23a(ret);
}
struct intf_hdl *pintfhdl = &adapter->intf;
int ret;
- ret = pintfhdl->io_ops._writeN(pintfhdl, addr, length, pdata);
+ ret = pintfhdl->io_ops._writeN(adapter, addr, length, pdata);
return RTW_STATUS_CODE23a(ret);
}
return;
}
- pintfhdl->io_ops._read_mem(pintfhdl, addr, cnt, pmem);
+ pintfhdl->io_ops._read_mem(adapter, addr, cnt, pmem);
}
void _rtw_write_mem23a(struct rtw_adapter *adapter, u32 addr, u32 cnt, u8 *pmem)
{
struct intf_hdl *pintfhdl = &adapter->intf;
- pintfhdl->io_ops._write_mem(pintfhdl, addr, cnt, pmem);
+ pintfhdl->io_ops._write_mem(adapter, addr, cnt, pmem);
}
void _rtw_read_port23a(struct rtw_adapter *adapter, u32 addr, u32 cnt,
return;
}
- pintfhdl->io_ops._read_port(pintfhdl, addr, cnt, rbuf);
+ pintfhdl->io_ops._read_port(adapter, addr, cnt, rbuf);
}
void _rtw_read_port23a_cancel(struct rtw_adapter *adapter)
{
- void (*_read_port_cancel)(struct intf_hdl *pintfhdl);
+ void (*_read_port_cancel)(struct rtw_adapter *adapter);
struct intf_hdl *pintfhdl = &adapter->intf;
_read_port_cancel = pintfhdl->io_ops._read_port_cancel;
if (_read_port_cancel)
- _read_port_cancel(pintfhdl);
+ _read_port_cancel(adapter);
}
u32 _rtw_write_port23a(struct rtw_adapter *adapter, u32 addr, u32 cnt,
struct intf_hdl *pintfhdl = &adapter->intf;
u32 ret = _SUCCESS;
- ret = pintfhdl->io_ops._write_port(pintfhdl, addr, cnt, xbuf);
+ ret = pintfhdl->io_ops._write_port(adapter, addr, cnt, xbuf);
return ret;
}
void _rtw_write_port23a_cancel(struct rtw_adapter *adapter)
{
- void (*_write_port_cancel)(struct intf_hdl *pintfhdl);
+ void (*_write_port_cancel)(struct rtw_adapter *adapter);
struct intf_hdl *pintfhdl = &adapter->intf;
_write_port_cancel = pintfhdl->io_ops._write_port_cancel;
if (_write_port_cancel)
- _write_port_cancel(pintfhdl);
+ _write_port_cancel(adapter);
}