Exemple #1
0
void r8712_write16(struct _adapter *adapter, u32 addr, u16 val)
{
	struct io_queue *pio_queue = (struct io_queue *)adapter->pio_queue;
	struct intf_hdl *pintfhdl = &(pio_queue->intf);

	void (*_write16)(struct intf_hdl *pintfhdl, u32 addr, u16 val);
	_write16 = pintfhdl->io_ops._write16;
	_write16(pintfhdl, addr, val);
}
Exemple #2
0
void write16(_adapter *adapter, u32 addr, u16 val)
{
	struct	io_queue  	*pio_queue = (struct io_queue *)adapter->pio_queue;
	struct	intf_hdl		*pintfhdl = &(pio_queue->intf);
	void (*_write16)(struct intf_hdl *pintfhdl, u32 addr, u16 val);
	_func_enter_;
	_write16 = pintfhdl->io_ops._write16;
	
	_write16(pintfhdl, addr, val);
	_func_exit_;

}
Exemple #3
0
int _rtw_write16(_adapter *adapter, u32 addr, u16 val)
{
	//struct	io_queue	*pio_queue = (struct io_queue *)adapter->pio_queue;
	struct io_priv *pio_priv = &adapter->iopriv;
	struct	intf_hdl		*pintfhdl = &(pio_priv->intf);
	int (*_write16)(struct intf_hdl *pintfhdl, u32 addr, u16 val);
	int ret;

	_write16 = pintfhdl->io_ops._write16;

	ret = _write16(pintfhdl, addr, val);
	return RTW_STATUS_CODE(ret);
}
Exemple #4
0
int _rtw_write16(struct adapter *adapter, u32 addr, u16 val)
{
	struct io_priv *pio_priv = &adapter->iopriv;
	struct	intf_hdl		*pintfhdl = &(pio_priv->intf);
	int (*_write16)(struct intf_hdl *pintfhdl, u32 addr, u16 val);
	int ret;
	_func_enter_;
	_write16 = pintfhdl->io_ops._write16;

	ret = _write16(pintfhdl, addr, val);
	_func_exit_;

	return RTW_STATUS_CODE(ret);
}
void rtw_write16(_adapter *adapter, u32 addr, u16 val)
{
	//struct	io_queue  	*pio_queue = (struct io_queue *)adapter->pio_queue;
	struct io_priv *pio_priv = &adapter->iopriv;
	struct	intf_hdl		*pintfhdl = &(pio_priv->intf);
	void (*_write16)(struct intf_hdl *pintfhdl, u32 addr, u16 val);
	_irqL irqL;
	_func_enter_;
	_write16 = pintfhdl->io_ops._write16;
	_enter_critical_mutex(&pintfhdl->io_mutex, &irqL);
	_write16(pintfhdl, addr, val);
	_exit_critical_mutex(&pintfhdl->io_mutex, &irqL);
	_func_exit_;

}
Exemple #6
0
int _rtw_write16(_adapter *adapter, u32 addr, u16 val)
{
    /* struct	io_queue	*pio_queue = (struct io_queue *)adapter->pio_queue; */
    struct io_priv *pio_priv = &adapter->iopriv;
    struct	intf_hdl		*pintfhdl = &(pio_priv->intf);
    int (*_write16)(struct intf_hdl *pintfhdl, u32 addr, u16 val);
    int ret;
    _func_enter_;
    _write16 = pintfhdl->io_ops._write16;

    val = rtw_cpu_to_le16(val);
    ret = _write16(pintfhdl, addr, val);
    _func_exit_;

    return RTW_STATUS_CODE(ret);
}
Exemple #7
0
int
_write (int fd, const void *ptr, size_t len)
{
  return _write16 ((short)fd, ptr, (short)len);
}