wifi.h (ead5d1f4d877e92c051e1a1ade623d0d30e71619) wifi.h (a3b7b227f1250a90c8a9542ea6398a61e1708174)
1/* SPDX-License-Identifier: GPL-2.0 */
2/* Copyright(c) 2009-2012 Realtek Corporation.*/
3
4#ifndef __RTL_WIFI_H__
5#define __RTL_WIFI_H__
6
7#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
8

--- 2922 unchanged lines hidden (view full) ---

2931#define RT_RF_LPS_LEVEL_ASPM BIT(31) /*LPS with ASPM */
2932#define RT_IN_PS_LEVEL(ppsc, _ps_flg) \
2933 ((ppsc->cur_ps_level & _ps_flg) ? true : false)
2934#define RT_CLEAR_PS_LEVEL(ppsc, _ps_flg) \
2935 (ppsc->cur_ps_level &= (~(_ps_flg)))
2936#define RT_SET_PS_LEVEL(ppsc, _ps_flg) \
2937 (ppsc->cur_ps_level |= _ps_flg)
2938
1/* SPDX-License-Identifier: GPL-2.0 */
2/* Copyright(c) 2009-2012 Realtek Corporation.*/
3
4#ifndef __RTL_WIFI_H__
5#define __RTL_WIFI_H__
6
7#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
8

--- 2922 unchanged lines hidden (view full) ---

2931#define RT_RF_LPS_LEVEL_ASPM BIT(31) /*LPS with ASPM */
2932#define RT_IN_PS_LEVEL(ppsc, _ps_flg) \
2933 ((ppsc->cur_ps_level & _ps_flg) ? true : false)
2934#define RT_CLEAR_PS_LEVEL(ppsc, _ps_flg) \
2935 (ppsc->cur_ps_level &= (~(_ps_flg)))
2936#define RT_SET_PS_LEVEL(ppsc, _ps_flg) \
2937 (ppsc->cur_ps_level |= _ps_flg)
2938
2939#define container_of_dwork_rtl(x, y, z) \
2940 container_of(to_delayed_work(x), y, z)
2941
2942#define FILL_OCTET_STRING(_os, _octet, _len) \
2943 (_os).octet = (u8 *)(_octet); \
2944 (_os).length = (_len);
2945
2946#define CP_MACADDR(des, src) \
2947 ((des)[0] = (src)[0], (des)[1] = (src)[1],\
2948 (des)[2] = (src)[2], (des)[3] = (src)[3],\
2949 (des)[4] = (src)[4], (des)[5] = (src)[5])

--- 169 unchanged lines hidden ---
2939#define FILL_OCTET_STRING(_os, _octet, _len) \
2940 (_os).octet = (u8 *)(_octet); \
2941 (_os).length = (_len);
2942
2943#define CP_MACADDR(des, src) \
2944 ((des)[0] = (src)[0], (des)[1] = (src)[1],\
2945 (des)[2] = (src)[2], (des)[3] = (src)[3],\
2946 (des)[4] = (src)[4], (des)[5] = (src)[5])

--- 169 unchanged lines hidden ---