Home
last modified time | relevance | path

Searched refs:cpu_to_le16 (Results 1 – 18 of 18) sorted by relevance

/include/soc/fsl/
Ddpaa2-fd.h229 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/
Dieee802154.h236 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()
Dieee80211.h268 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 …]
Dext2_fs.h37 if (*(__le16 *)(p + EXT2_SB_MAGIC_OFFSET) != cpu_to_le16(EXT2_SUPER_MAGIC)) in ext2_image_size()
Dvirtio_byteorder.h27 return (__force __virtio16)cpu_to_le16(val); in __cpu_to_virtio16()
/include/net/
Dmac802154.h247 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()
Ddn_fib.h163 return cpu_to_le16(~((1 << (16 - n)) - 1)); in dnet_make_mask()
164 return cpu_to_le16(0); in dnet_make_mask()
Dieee802154_netdev.h172 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()
D6lowpan.h275 return !(addr & cpu_to_le16(0x8000)); in lowpan_802154_is_valid_src_short_addr()
/include/linux/byteorder/
Dgeneric.h90 #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/
Daccess_ok.h40 *((__le16 *)p) = cpu_to_le16(val); in put_unaligned_le16()
/include/linux/ceph/
Dpagelist.h54 __le16 ev = cpu_to_le16(v); in ceph_pagelist_encode_16()
/include/uapi/linux/
Dmsdos_fs.h24 #define CT_LE_W(v) cpu_to_le16(v)
/include/linux/usb/
Dpd.h99 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/
Dmc.h249 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/
Dpeak_canfd.h275 return cpu_to_le16(((index) << 12) | ((opcode) & 0x3ff)); in pucan_cmd_opcode_channel()
/include/asm-generic/
Dio.h215 __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/
Dtwl.h184 val = cpu_to_le16(val); in twl_i2c_write_u16()