Searched refs:cpu_to_le16 (Results 1 – 18 of 18) sorted by relevance
/include/soc/fsl/ |
D | dpaa2-fd.h | 229 fd->simple.format_offset &= cpu_to_le16(~FD_OFFSET_MASK); in dpaa2_fd_set_offset() 230 fd->simple.format_offset |= cpu_to_le16(offset); in dpaa2_fd_set_offset() 255 cpu_to_le16(~(FD_FORMAT_MASK << FD_FORMAT_SHIFT)); in dpaa2_fd_set_format() 256 fd->simple.format_offset |= cpu_to_le16(format << FD_FORMAT_SHIFT); in dpaa2_fd_set_format() 277 fd->simple.bpid &= cpu_to_le16(~(FD_BPID_MASK)); in dpaa2_fd_set_bpid() 278 fd->simple.bpid |= cpu_to_le16(bpid); in dpaa2_fd_set_bpid() 373 sg->format_offset &= cpu_to_le16(~SG_OFFSET_MASK); in dpaa2_sg_set_offset() 374 sg->format_offset |= cpu_to_le16(offset); in dpaa2_sg_set_offset() 398 sg->format_offset &= cpu_to_le16(~(SG_FORMAT_MASK << SG_FORMAT_SHIFT)); in dpaa2_sg_set_format() 399 sg->format_offset |= cpu_to_le16(format << SG_FORMAT_SHIFT); in dpaa2_sg_set_format() [all …]
|
/include/linux/ |
D | ieee802154.h | 236 return (fc & cpu_to_le16(IEEE802154_FCTL_FTYPE)) == in ieee802154_is_data() 237 cpu_to_le16(IEEE802154_FTYPE_DATA); in ieee802154_is_data() 246 return fc & cpu_to_le16(IEEE802154_FCTL_SECEN); in ieee802154_is_secen() 255 return fc & cpu_to_le16(IEEE802154_FCTL_ACKREQ); in ieee802154_is_ackreq() 264 return fc & cpu_to_le16(IEEE802154_FCTL_INTRA_PAN); in ieee802154_is_intra_pan() 273 return fc & cpu_to_le16(IEEE802154_FCTL_DADDR); in ieee802154_daddr_mode() 282 return fc & cpu_to_le16(IEEE802154_FCTL_SADDR); in ieee802154_saddr_mode() 320 return (addr == cpu_to_le16(IEEE802154_ADDR_SHORT_BROADCAST)); in ieee802154_is_broadcast_short_addr() 329 return (addr == cpu_to_le16(IEEE802154_ADDR_SHORT_UNSPEC)); in ieee802154_is_unspec_short_addr()
|
D | ieee80211.h | 268 return (fc & cpu_to_le16(IEEE80211_FCTL_TODS)) != 0; in ieee80211_has_tods() 277 return (fc & cpu_to_le16(IEEE80211_FCTL_FROMDS)) != 0; in ieee80211_has_fromds() 286 __le16 tmp = cpu_to_le16(IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS); in ieee80211_has_a4() 296 return (fc & cpu_to_le16(IEEE80211_FCTL_MOREFRAGS)) != 0; in ieee80211_has_morefrags() 305 return (fc & cpu_to_le16(IEEE80211_FCTL_RETRY)) != 0; in ieee80211_has_retry() 314 return (fc & cpu_to_le16(IEEE80211_FCTL_PM)) != 0; in ieee80211_has_pm() 323 return (fc & cpu_to_le16(IEEE80211_FCTL_MOREDATA)) != 0; in ieee80211_has_moredata() 332 return (fc & cpu_to_le16(IEEE80211_FCTL_PROTECTED)) != 0; in ieee80211_has_protected() 341 return (fc & cpu_to_le16(IEEE80211_FCTL_ORDER)) != 0; in ieee80211_has_order() 350 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE)) == in ieee80211_is_mgmt() [all …]
|
D | ext2_fs.h | 37 if (*(__le16 *)(p + EXT2_SB_MAGIC_OFFSET) != cpu_to_le16(EXT2_SUPER_MAGIC)) in ext2_image_size()
|
D | virtio_byteorder.h | 27 return (__force __virtio16)cpu_to_le16(val); in __cpu_to_virtio16()
|
/include/net/ |
D | mac802154.h | 247 return cpu_to_le16(0); in ieee802154_get_fc_from_skb() 264 case cpu_to_le16(IEEE802154_FCTL_ADDR_NONE): in ieee802154_skb_dst_pan() 267 case cpu_to_le16(IEEE802154_FCTL_DADDR_SHORT): in ieee802154_skb_dst_pan() 268 case cpu_to_le16(IEEE802154_FCTL_DADDR_EXTENDED): in ieee802154_skb_dst_pan() 293 case cpu_to_le16(IEEE802154_FCTL_ADDR_NONE): in ieee802154_skb_src_pan() 296 case cpu_to_le16(IEEE802154_FCTL_SADDR_SHORT): in ieee802154_skb_src_pan() 297 case cpu_to_le16(IEEE802154_FCTL_SADDR_EXTENDED): in ieee802154_skb_src_pan() 307 case cpu_to_le16(IEEE802154_FCTL_ADDR_NONE): in ieee802154_skb_src_pan() 312 case cpu_to_le16(IEEE802154_FCTL_DADDR_SHORT): in ieee802154_skb_src_pan() 319 case cpu_to_le16(IEEE802154_FCTL_DADDR_EXTENDED): in ieee802154_skb_src_pan()
|
D | dn_fib.h | 163 return cpu_to_le16(~((1 << (16 - n)) - 1)); in dnet_make_mask() 164 return cpu_to_le16(0); in dnet_make_mask()
|
D | ieee802154_netdev.h | 172 a->pan_id = cpu_to_le16(sa->pan_id); in ieee802154_addr_from_sa() 176 a->short_addr = cpu_to_le16(sa->short_addr); in ieee802154_addr_from_sa()
|
D | 6lowpan.h | 275 return !(addr & cpu_to_le16(0x8000)); in lowpan_802154_is_valid_src_short_addr()
|
/include/linux/byteorder/ |
D | generic.h | 90 #define cpu_to_le16 __cpu_to_le16 macro 146 *var = cpu_to_le16(le16_to_cpu(*var) + val); in le16_add_cpu()
|
/include/linux/unaligned/ |
D | access_ok.h | 40 *((__le16 *)p) = cpu_to_le16(val); in put_unaligned_le16()
|
/include/linux/ceph/ |
D | pagelist.h | 54 __le16 ev = cpu_to_le16(v); in ceph_pagelist_encode_16()
|
/include/uapi/linux/ |
D | msdos_fs.h | 24 #define CT_LE_W(v) cpu_to_le16(v)
|
/include/linux/usb/ |
D | pd.h | 99 cpu_to_le16(PD_HEADER((type), (pwr), (data), (rev), (id), (cnt), (0))) 155 cpu_to_le16(PD_EXT_HDR((data_size), (req_chunk), (chunk_num), (chunked)))
|
/include/linux/fsl/ |
D | mc.h | 249 hdr->cmd_id = cpu_to_le16(cmd_id); in mc_encode_cmd_header() 250 hdr->token = cpu_to_le16(token); in mc_encode_cmd_header()
|
/include/linux/can/dev/ |
D | peak_canfd.h | 275 return cpu_to_le16(((index) << 12) | ((opcode) & 0x3ff)); in pucan_cmd_opcode_channel()
|
/include/asm-generic/ |
D | io.h | 215 __raw_writew(cpu_to_le16(value), addr); in writew() 291 __raw_writew(cpu_to_le16(value), addr); in writew_relaxed() 513 __raw_writew(cpu_to_le16(value), PCI_IOBASE + addr); in outw()
|
/include/linux/mfd/ |
D | twl.h | 184 val = cpu_to_le16(val); in twl_i2c_write_u16()
|