/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/ |
H A D | base.h | 69 #define SET_80211_HDR_FRAME_CONTROL(_hdr, _val) \ 70 WRITEEF2BYTE(_hdr, _val) 71 #define SET_80211_HDR_TYPE_AND_SUBTYPE(_hdr, _val) \ 72 WRITEEF1BYTE(_hdr, _val) 73 #define SET_80211_HDR_PWR_MGNT(_hdr, _val) \ 74 SET_BITS_TO_LE_2BYTE(_hdr, 12, 1, _val) 75 #define SET_80211_HDR_TO_DS(_hdr, _val) \ 76 SET_BITS_TO_LE_2BYTE(_hdr, 8, 1, _val) 78 #define SET_80211_PS_POLL_AID(_hdr, _val) \ 79 (*(u16 *)((u8 *)(_hdr) + 2) = _val) 80 #define SET_80211_PS_POLL_BSSID(_hdr, _val) \ 81 ether_addr_copy(((u8 *)(_hdr)) + 4, (u8 *)(_val)) 82 #define SET_80211_PS_POLL_TA(_hdr, _val) \ 83 ether_addr_copy(((u8 *)(_hdr))+10, (u8 *)(_val)) 85 #define SET_80211_HDR_DURATION(_hdr, _val) \ 86 (*(u16 *)((u8 *)(_hdr) + FRAME_OFFSET_DURATION) = le16_to_cpu(_val)) 87 #define SET_80211_HDR_ADDRESS1(_hdr, _val) \ 88 CP_MACADDR((u8 *)(_hdr)+FRAME_OFFSET_ADDRESS1, (u8 *)(_val)) 89 #define SET_80211_HDR_ADDRESS2(_hdr, _val) \ 90 CP_MACADDR((u8 *)(_hdr)+FRAME_OFFSET_ADDRESS2, (u8 *)(_val)) 91 #define SET_80211_HDR_ADDRESS3(_hdr, _val) \ 92 CP_MACADDR((u8 *)(_hdr)+FRAME_OFFSET_ADDRESS3, (u8 *)(_val)) 93 #define SET_80211_HDR_FRAGMENT_SEQUENCE(_hdr, _val) \ 94 WRITEEF2BYTE((u8 *)(_hdr)+FRAME_OFFSET_SEQUENCE, _val)
|
H A D | wifi.h | 2716 #define EF1BYTE(_val) \ 2717 ((u8)(_val)) 2718 #define EF2BYTE(_val) \ 2719 (le16_to_cpu(_val)) 2720 #define EF4BYTE(_val) \ 2721 (le32_to_cpu(_val)) 2733 #define WRITEEF1BYTE(_ptr, _val) \ 2734 (*((u8 *)(_ptr))) = EF1BYTE(_val) 2736 #define WRITEEF2BYTE(_ptr, _val) \ 2737 (*((u16 *)(_ptr))) = EF2BYTE(_val) 2738 #define WRITEEF4BYTE(_ptr, _val) \ 2739 (*((u32 *)(_ptr))) = EF2BYTE(_val)
|
/linux-4.4.14/arch/openrisc/include/asm/ |
H A D | spr.h | 20 #define mtspr(_spr, _val) __asm__ __volatile__ ( \ 22 : : "K" (_spr), "r" (_val)) 23 #define mtspr_off(_spr, _off, _val) __asm__ __volatile__ ( \ 25 : : "r" (_off), "r" (_val), "K" (_spr))
|
/linux-4.4.14/drivers/video/fbdev/ |
H A D | auo_k190x.h | 82 #define AUOK190X_VERSION_SIZE_INT(_val) ((_val & 0xfc00) >> 10) 83 #define AUOK190X_VERSION_SIZE_FLOAT(_val) ((_val & 0x3c0) >> 6) 84 #define AUOK190X_VERSION_MODEL(_val) (_val & 0x3f) 85 #define AUOK190X_VERSION_LUT(_val) (_val & 0xff) 86 #define AUOK190X_VERSION_TCON(_val) ((_val & 0xff00) >> 8)
|
/linux-4.4.14/drivers/staging/rtl8188eu/include/ |
H A D | basic_types.h | 42 #define EF1BYTE(_val) \ 43 ((u8)(_val)) 44 #define EF2BYTE(_val) \ 45 (le16_to_cpu(_val)) 46 #define EF4BYTE(_val) \ 47 (le32_to_cpu(_val)) 59 #define WRITEEF1BYTE(_ptr, _val) \ 61 (*((u8 *)(_ptr))) = EF1BYTE(_val) \ 64 #define WRITEEF2BYTE(_ptr, _val) \ 66 (*((u16 *)(_ptr))) = EF2BYTE(_val) \ 69 #define WRITEEF4BYTE(_ptr, _val) \ 71 (*((u32 *)(_ptr))) = EF2BYTE(_val) \
|
/linux-4.4.14/arch/mips/ath25/ |
H A D | devices.h | 6 #define ATH25_REG_MS(_val, _field) (((_val) & _field##_M) >> _field##_S)
|
/linux-4.4.14/arch/mips/include/asm/sn/ |
H A D | agent.h | 33 #define SET_HUB_NIC(_my_cpuid, _val) \ 34 (HUB_S(HUB_NIC_ADDR(_my_cpuid), (_val)))
|
H A D | addrs.h | 213 #define BDPRT_ENTRY_S(_pa, _rgn, _val) (*(__psunsigned_t *)BDPRT_ENTRY((_pa), (_rgn))=(_val))
|
/linux-4.4.14/drivers/net/wireless/mediatek/mt7601u/ |
H A D | util.h | 65 #define MT76_SET(_mask, _val) \ 68 (((u32) (_val)) << compile_ffs32(_mask)) & _mask; \ 71 #define MT76_GET(_mask, _val) \ 74 (u32) (((_val) & _mask) >> compile_ffs32(_mask)); \
|
H A D | mt7601u.h | 301 #define mt76_rmw_field(_dev, _reg, _field, _val) \ 302 mt76_rmw(_dev, _reg, _field, MT76_SET(_field, _val))
|
/linux-4.4.14/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-common.h | 1070 #define SET_BITS(_var, _index, _width, _val) \ 1073 (_var) |= (((_val) & ((0x1 << (_width)) - 1)) << (_index)); \ 1079 #define SET_BITS_LE(_var, _index, _width, _val) \ 1082 (_var) |= cpu_to_le32((((_val) & \ 1099 #define XGMAC_SET_BITS(_var, _prefix, _field, _val) \ 1102 _prefix##_##_field##_WIDTH, (_val)) 1109 #define XGMAC_SET_BITS_LE(_var, _prefix, _field, _val) \ 1112 _prefix##_##_field##_WIDTH, (_val)) 1129 #define XGMAC_IOWRITE(_pdata, _reg, _val) \ 1130 iowrite32((_val), (_pdata)->xgmac_regs + _reg) 1132 #define XGMAC_IOWRITE_BITS(_pdata, _reg, _field, _val) \ 1137 _reg##_##_field##_WIDTH, (_val)); \ 1154 #define XGMAC_MTL_IOWRITE(_pdata, _n, _reg, _val) \ 1155 iowrite32((_val), (_pdata)->xgmac_regs + \ 1158 #define XGMAC_MTL_IOWRITE_BITS(_pdata, _n, _reg, _field, _val) \ 1163 _reg##_##_field##_WIDTH, (_val)); \ 1179 #define XGMAC_DMA_IOWRITE(_channel, _reg, _val) \ 1180 iowrite32((_val), (_channel)->dma_regs + _reg) 1182 #define XGMAC_DMA_IOWRITE_BITS(_channel, _reg, _field, _val) \ 1187 _reg##_##_field##_WIDTH, (_val)); \ 1194 #define XPCS_IOWRITE(_pdata, _off, _val) \ 1195 iowrite32(_val, (_pdata)->xpcs_regs + (_off)) 1208 #define XSIR_SET_BITS(_var, _prefix, _field, _val) \ 1211 _prefix##_##_field##_WIDTH, (_val)) 1221 #define XSIR0_IOWRITE(_pdata, _reg, _val) \ 1222 iowrite16((_val), (_pdata)->sir0_regs + _reg) 1224 #define XSIR0_IOWRITE_BITS(_pdata, _reg, _field, _val) \ 1229 _reg##_##_field##_WIDTH, (_val)); \ 1241 #define XSIR1_IOWRITE(_pdata, _reg, _val) \ 1242 iowrite16((_val), (_pdata)->sir1_regs + _reg) 1244 #define XSIR1_IOWRITE_BITS(_pdata, _reg, _field, _val) \ 1249 _reg##_##_field##_WIDTH, (_val)); \ 1264 #define XRXTX_IOWRITE(_pdata, _reg, _val) \ 1265 iowrite16((_val), (_pdata)->rxtx_regs + _reg) 1267 #define XRXTX_IOWRITE_BITS(_pdata, _reg, _field, _val) \ 1272 _reg##_##_field##_WIDTH, (_val)); \ 1288 #define XMDIO_WRITE(_pdata, _mmd, _reg, _val) \ 1290 MII_ADDR_C45 | (_mmd << 16) | ((_reg) & 0xffff), (_val))) 1292 #define XMDIO_WRITE_BITS(_pdata, _mmd, _reg, _mask, _val) \ 1296 mmd_val |= (_val); \
|
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
H A D | fw.h | 349 #define FW_CMD_IO_UPDATE(rtlpriv, _val) \ 350 rtlpriv->rtlhal.fwcmd_iomap = _val; 352 #define FW_CMD_IO_SET(rtlpriv, _val) \ 354 rtl_write_word(rtlpriv, LBUS_MON_ADDR, (u16)_val); \ 355 FW_CMD_IO_UPDATE(rtlpriv, _val); \ 358 #define FW_CMD_PARA_SET(rtlpriv, _val) \ 360 rtl_write_dword(rtlpriv, LBUS_ADDR_MASK, _val); \ 361 rtlpriv->rtlhal.fwcmd_ioparam = _val; \
|
/linux-4.4.14/drivers/pinctrl/mvebu/ |
H A D | pinctrl-mvebu.h | 140 #define _MPP_VAR_FUNCTION(_val, _name, _subname, _mask) \ 142 .val = _val, \ 150 #define MPP_VAR_FUNCTION(_val, _name, _subname, _mask) \ 151 _MPP_VAR_FUNCTION(_val, _name, _subname, _mask) 153 #define MPP_VAR_FUNCTION(_val, _name, _subname, _mask) \ 154 _MPP_VAR_FUNCTION(_val, _name, NULL, _mask) 157 #define MPP_FUNCTION(_val, _name, _subname) \ 158 MPP_VAR_FUNCTION(_val, _name, _subname, (u8)-1)
|
/linux-4.4.14/drivers/media/tuners/ |
H A D | mc44s803_priv.h | 193 #define MC44S803_REG_SM(_val, _reg) \ 194 (((_val) << _reg##_S) & (_reg)) 197 #define MC44S803_REG_MS(_val, _reg) \ 198 (((_val) & (_reg)) >> _reg##_S)
|
H A D | tuner-xc2028.c | 150 static u8 _val[] = data; \ 152 if (sizeof(_val) != \ 154 _val, sizeof(_val)))) { \
|
/linux-4.4.14/drivers/pinctrl/sunxi/ |
H A D | pinctrl-sunxi.h | 139 #define SUNXI_FUNCTION(_val, _name) \ 142 .muxval = _val, \ 145 #define SUNXI_FUNCTION_IRQ(_val, _irq) \ 148 .muxval = _val, \ 152 #define SUNXI_FUNCTION_IRQ_BANK(_val, _bank, _irq) \ 155 .muxval = _val, \
|
/linux-4.4.14/arch/blackfin/include/asm/ |
H A D | uaccess.h | 132 unsigned long _val = 0; \ 139 __get_user_asm(_val, _p, B, (Z)); \ 142 __get_user_asm(_val, _p, W, (Z)); \ 145 __get_user_asm(_val, _p, , ); \ 150 x = (__force typeof(*(ptr)))_val; \
|
/linux-4.4.14/drivers/media/i2c/smiapp/ |
H A D | smiapp-quirk.h | 69 #define SMIAPP_MK_QUIRK_REG_8(_reg, _val) \ 72 .val = _val, \
|
/linux-4.4.14/drivers/i2c/busses/ |
H A D | i2c-brcmstb.c | 177 #define __bsc_writel(_val, _reg) iowrite32be(_val, _reg) 180 #define __bsc_writel(_val, _reg) iowrite32(_val, _reg) 186 #define bsc_writel(_dev, _val, _reg) \ 187 __bsc_writel(_val, _dev->base + offsetof(struct bsc_regs, _reg))
|
/linux-4.4.14/arch/mips/pci/ |
H A D | pci-alchemy.c | 264 u8 _val; alchemy_pci_read() local 265 int rc = read_config_byte(bus, devfn, where, &_val); alchemy_pci_read() 267 *val = _val; alchemy_pci_read() 271 u16 _val; alchemy_pci_read() local 272 int rc = read_config_word(bus, devfn, where, &_val); alchemy_pci_read() 274 *val = _val; alchemy_pci_read()
|
/linux-4.4.14/drivers/soc/sunxi/ |
H A D | sunxi_sram.c | 42 #define SUNXI_SRAM_MAP(_val, _func) \ 45 .val = _val, \
|
/linux-4.4.14/drivers/scsi/cxlflash/ |
H A D | superpipe.h | 90 #define DECODE_CTXID(_val) (_val & 0xFFFFFFFF)
|
/linux-4.4.14/drivers/media/pci/ddbridge/ |
H A D | ddbridge.h | 175 #define ddbwritel(_val, _adr) writel((_val), \
|
/linux-4.4.14/net/6lowpan/ |
H A D | nhc.h | 26 static u8 __nhc##_val[_idlen]; \ 32 .id = __nhc##_val, \
|
/linux-4.4.14/drivers/gpu/drm/gma500/ |
H A D | psb_drv.h | 900 #define PSB_WVDC32(_val, _offs) iowrite32(_val, dev_priv->vdc_reg + (_offs)) 918 #define PSB_WSGX32(_val, _offs) iowrite32(_val, dev_priv->sgx_reg + (_offs)) 922 #define PSB_WMSVDX32(_val, _offs) iowrite32(_val, dev_priv->msvdx_reg + (_offs))
|
H A D | framebuffer.c | 53 #define CMAP_TOHW(_val, _width) ((((_val) << (_width)) + 0x7FFF - (_val)) >> 16)
|
/linux-4.4.14/virt/kvm/ |
H A D | eventfd.c | 680 u64 _val; ioeventfd_in_range() local 704 _val = *(u8 *)val; ioeventfd_in_range() 707 _val = *(u16 *)val; ioeventfd_in_range() 710 _val = *(u32 *)val; ioeventfd_in_range() 713 _val = *(u64 *)val; ioeventfd_in_range() 719 return _val == p->datamatch ? true : false; ioeventfd_in_range()
|
/linux-4.4.14/drivers/pinctrl/mediatek/ |
H A D | pinctrl-mtk-common.h | 61 #define MTK_FUNCTION(_val, _name) \ 63 .muxval = _val, \
|
/linux-4.4.14/drivers/net/wireless/ath/ |
H A D | hw.c | 24 #define REG_WRITE(_ah, _reg, _val) (common->ops->write)(_ah, _val, _reg)
|
H A D | key.c | 26 #define REG_WRITE(_ah, _reg, _val) (common->ops->write)(_ah, _val, _reg)
|
/linux-4.4.14/drivers/net/wireless/iwlwifi/ |
H A D | iwl-csr.h | 302 #define CSR_HW_REV_DASH(_val) (((_val) & 0x0000003) >> 0) 303 #define CSR_HW_REV_STEP(_val) (((_val) & 0x000000C) >> 2)
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_mcp.c | 27 #define DRV_INNER_WR(_p_hwfn, _p_ptt, _ptr, _offset, _val) \ 29 _val) 34 #define DRV_MB_WR(_p_hwfn, _p_ptt, _field, _val) \ 36 offsetof(struct public_drv_mb, _field), _val)
|
/linux-4.4.14/arch/x86/kernel/cpu/ |
H A D | perf_event.h | 22 u64 _val = (val); \ 24 (unsigned long long)(_val)); \ 25 native_write_msr((_msr), (u32)(_val), (u32)(_val >> 32)); \
|
/linux-4.4.14/drivers/net/wireless/ath/ath9k/ |
H A D | hw.h | 79 #define REG_WRITE(_ah, _reg, _val) \ 80 (_ah)->reg_ops.write((_ah), (_val), (_reg)) 85 #define REG_READ_MULTI(_ah, _addr, _val, _cnt) \ 86 (_ah)->reg_ops.multi_read((_ah), (_addr), (_val), (_cnt)) 115 #define PR_EEP(_s, _val) \ 118 _s, (_val)); \
|
H A D | ath9k.h | 730 #define ATH_DUMP_BTCOEX(_s, _val) \ 733 "%20s : %10d\n", _s, (_val)); \
|
H A D | debug.c | 24 #define REG_WRITE_D(_ah, _reg, _val) \ 25 ath9k_hw_common(_ah)->ops->write((_ah), (_val), (_reg))
|
/linux-4.4.14/drivers/media/platform/s3c-camif/ |
H A D | camif-regs.c | 16 #define camif_write(_camif, _off, _val) writel(_val, (_camif)->io_base + (_off))
|
/linux-4.4.14/drivers/net/wireless/ath/ath5k/ |
H A D | ath5k.h | 112 #define AR5K_REG_SM(_val, _flags) \ 113 (((_val) << _flags##_S) & (_flags)) 116 #define AR5K_REG_MS(_val, _flags) \ 117 (((_val) & (_flags)) >> _flags##_S) 124 #define AR5K_REG_WRITE_BITS(ah, _reg, _flags, _val) \ 126 (((_val) << _flags##_S) & (_flags)), _reg)
|
/linux-4.4.14/drivers/media/i2c/soc_camera/ |
H A D | ov9640.c | 201 u8 _val; ov9640_reg_write() local 217 ret = ov9640_reg_read(client, reg, &_val); ov9640_reg_write()
|
/linux-4.4.14/arch/mips/include/asm/sn/sn0/ |
H A D | hubmd.h | 437 #define SET_CPU_LEDS(_nasid, _slice, _val) \ 438 (HUB_S(CPU_LED_ADDR(_nasid, _slice), (_val)))
|
/linux-4.4.14/drivers/video/fbdev/vermilion/ |
H A D | vermilion.c | 50 #define VML_TOHW(_val, _width) ((((_val) << (_width)) + 0x7FFF - (_val)) >> 16)
|
/linux-4.4.14/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-hdw-internal.h | 364 #define VCREATE_DATA(lab) int lab##_val; int lab##_dirty
|
H A D | pvrusb2-hdw.c | 973 {*vp = cptr->hdw->vname##_val; return 0;} \ 975 {cptr->hdw->vname##_val = v; cptr->hdw->vname##_dirty = !0; return 0;} \ 2868 pvr2_subdev_set_control(hdw, id, #lab, (hdw)->lab##_val); \
|
/linux-4.4.14/drivers/scsi/bfa/ |
H A D | bfa_ioc.h | 226 #define bfa_mem_write(_raddr, _off, _val) \ 227 writel(swab32((_val)), ((_raddr) + (_off)))
|
/linux-4.4.14/arch/mips/bcm47xx/ |
H A D | sprom.c | 184 #define ENTRY(_revmask, _type, _prefix, _name, _val, _allset, _fallback) \ 186 nvram_read_ ## _type(_prefix, NULL, _name, &sprom->_val, \
|
/linux-4.4.14/drivers/net/dsa/ |
H A D | mv88e6xxx.c | 590 u32 _val; _mv88e6xxx_stats_read() local 609 _val = ret << 16; _mv88e6xxx_stats_read() 615 *val = _val | ret; _mv88e6xxx_stats_read()
|
/linux-4.4.14/drivers/scsi/csiostor/ |
H A D | csio_wr.c | 53 #define CSIO_SET_FLBUF_SIZE(_hw, _reg, _val) \ 54 csio_wr_reg32((_hw), (_val), SGE_FL_BUFFER_SIZE##_reg##_A)
|
/linux-4.4.14/fs/ |
H A D | binfmt_elf_fdpic.c | 602 struct { unsigned long _id, _val; } __user *ent; \ create_elf_fdpic_tables() 606 __put_user((val), &ent[nr]._val); \ create_elf_fdpic_tables()
|
/linux-4.4.14/sound/pci/hda/ |
H A D | patch_realtek.c | 192 #define UPDATE_COEFEX(_nid, _idx, _mask, _val) \ 193 { .nid = (_nid), .idx = (_idx), .mask = (_mask), .val = (_val) } 194 #define WRITE_COEFEX(_nid, _idx, _val) UPDATE_COEFEX(_nid, _idx, -1, _val) 195 #define WRITE_COEF(_idx, _val) WRITE_COEFEX(0x20, _idx, _val) 196 #define UPDATE_COEF(_idx, _mask, _val) UPDATE_COEFEX(0x20, _idx, _mask, _val)
|
/linux-4.4.14/drivers/scsi/ |
H A D | advansys.c | 6700 ushort _val; _AscCopyLramScsiDoneQ() local 6708 _val = AscReadLramWord(iop_base, _AscCopyLramScsiDoneQ() 6710 scsiq->q_status = (uchar)_val; _AscCopyLramScsiDoneQ() 6711 scsiq->q_no = (uchar)(_val >> 8); _AscCopyLramScsiDoneQ() 6712 _val = AscReadLramWord(iop_base, _AscCopyLramScsiDoneQ() 6714 scsiq->cntl = (uchar)_val; _AscCopyLramScsiDoneQ() 6715 sg_queue_cnt = (uchar)(_val >> 8); _AscCopyLramScsiDoneQ() 6716 _val = AscReadLramWord(iop_base, _AscCopyLramScsiDoneQ() 6719 scsiq->sense_len = (uchar)_val; _AscCopyLramScsiDoneQ() 6720 scsiq->extra_bytes = (uchar)(_val >> 8); _AscCopyLramScsiDoneQ()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_link.c | 209 #define CL22_WR_OVER_CL45(_bp, _phy, _bank, _addr, _val) \ 213 _val) 215 #define CL22_RD_OVER_CL45(_bp, _phy, _bank, _addr, _val) \ 219 _val)
|
H A D | bnx2x_reg.h | 7634 #define CDU_RSRVD_INVALIDATE_CONTEXT_VALUE(_val) ((_val) & ~0x80)
|
/linux-4.4.14/arch/x86/xen/ |
H A D | mmu.c | 21 * when reading the content back with __(pgd|pmd|pte)_val, it converts
|