/linux/include/linux/ |
H A D | virtio_byteorder.h | 16 static inline u16 __virtio16_to_cpu(bool little_endian, __virtio16 val) in __virtio16_to_cpu() argument 18 if (little_endian) in __virtio16_to_cpu() 24 static inline __virtio16 __cpu_to_virtio16(bool little_endian, u16 val) in __cpu_to_virtio16() argument 26 if (little_endian) in __cpu_to_virtio16() 32 static inline u32 __virtio32_to_cpu(bool little_endian, __virtio32 val) in __virtio32_to_cpu() argument 34 if (little_endian) in __virtio32_to_cpu() 40 static inline __virtio32 __cpu_to_virtio32(bool little_endian, u32 val) in __cpu_to_virtio32() argument 42 if (little_endian) in __cpu_to_virtio32() 48 static inline u64 __virtio64_to_cpu(bool little_endian, __virtio64 val) in __virtio64_to_cpu() argument 50 if (little_endian) in __virtio64_to_cpu() [all …]
|
H A D | virtio_net.h | 52 bool little_endian) in virtio_net_hdr_to_skb() argument 97 u32 start = __virtio16_to_cpu(little_endian, hdr->csum_start); in virtio_net_hdr_to_skb() 98 u32 off = __virtio16_to_cpu(little_endian, hdr->csum_offset); in virtio_net_hdr_to_skb() 157 u16 gso_size = __virtio16_to_cpu(little_endian, hdr->gso_size); in virtio_net_hdr_to_skb() 204 bool little_endian, in virtio_net_hdr_from_skb() argument 214 hdr->hdr_len = __cpu_to_virtio16(little_endian, in virtio_net_hdr_from_skb() 216 hdr->gso_size = __cpu_to_virtio16(little_endian, in virtio_net_hdr_from_skb() 233 hdr->csum_start = __cpu_to_virtio16(little_endian, in virtio_net_hdr_from_skb() 235 hdr->csum_offset = __cpu_to_virtio16(little_endian, in virtio_net_hdr_from_skb()
|
H A D | rpmsg.h | 61 bool little_endian; member 128 return __rpmsg16_to_cpu(rpdev->little_endian, val); in rpmsg16_to_cpu() 136 return __cpu_to_rpmsg16(rpdev->little_endian, val); in cpu_to_rpmsg16() 144 return __rpmsg32_to_cpu(rpdev->little_endian, val); in rpmsg32_to_cpu() 152 return __cpu_to_rpmsg32(rpdev->little_endian, val); in cpu_to_rpmsg32() 160 return __rpmsg64_to_cpu(rpdev->little_endian, val); in rpmsg64_to_cpu() 168 return __cpu_to_rpmsg64(rpdev->little_endian, val); in cpu_to_rpmsg64()
|
H A D | fsl_ifc.h | 848 bool little_endian; member 857 if (fsl_ifc_ctrl_dev->little_endian) in ifc_in32() 869 if (fsl_ifc_ctrl_dev->little_endian) in ifc_in16() 884 if (fsl_ifc_ctrl_dev->little_endian) in ifc_out32() 892 if (fsl_ifc_ctrl_dev->little_endian) in ifc_out16()
|
H A D | vringh.h | 27 bool little_endian; member 258 return vrh->little_endian || in vringh_is_little_endian()
|
/linux/include/linux/rpmsg/ |
H A D | byteorder.h | 19 static inline u16 __rpmsg16_to_cpu(bool little_endian, __rpmsg16 val) in __rpmsg16_to_cpu() argument 21 if (little_endian) in __rpmsg16_to_cpu() 27 static inline __rpmsg16 __cpu_to_rpmsg16(bool little_endian, u16 val) in __cpu_to_rpmsg16() argument 29 if (little_endian) in __cpu_to_rpmsg16() 35 static inline u32 __rpmsg32_to_cpu(bool little_endian, __rpmsg32 val) in __rpmsg32_to_cpu() argument 37 if (little_endian) in __rpmsg32_to_cpu() 43 static inline __rpmsg32 __cpu_to_rpmsg32(bool little_endian, u32 val) in __cpu_to_rpmsg32() argument 45 if (little_endian) in __cpu_to_rpmsg32() 51 static inline u64 __rpmsg64_to_cpu(bool little_endian, __rpmsg64 val) in __rpmsg64_to_cpu() argument 53 if (little_endian) in __rpmsg64_to_cpu() [all …]
|
/linux/drivers/media/v4l2-core/ |
H A D | v4l2-cci.c | 21 bool little_endian; in cci_read() local 38 little_endian = reg & CCI_REG_LE; in cci_read() 54 if (little_endian) in cci_read() 60 if (little_endian) in cci_read() 66 if (little_endian) in cci_read() 72 if (little_endian) in cci_read() 94 bool little_endian; in cci_write() local 102 little_endian = reg & CCI_REG_LE; in cci_write() 111 if (little_endian) in cci_write() 117 if (little_endian) in cci_write() [all …]
|
/linux/drivers/soc/fsl/ |
H A D | rcpm.c | 23 bool little_endian; member 119 if (rcpm->little_endian) { in rcpm_pm_prepare() 162 rcpm->little_endian = device_property_read_bool( in rcpm_probe()
|
H A D | guts.c | 191 bool little_endian; in fsl_guts_init() local 207 little_endian = of_property_read_bool(np, "little-endian"); in fsl_guts_init() 208 if (little_endian) in fsl_guts_init()
|
/linux/drivers/video/fbdev/ |
H A D | ocfb.c | 62 int little_endian; member 89 if (fbdev->little_endian) in ocfb_readreg() 97 if (fbdev->little_endian) in ocfb_writereg() 115 fbdev->little_endian = 0; in ocfb_setupfb() 120 fbdev->little_endian = 1; in ocfb_setupfb() 342 if (fbdev->little_endian) in ocfb_probe()
|
/linux/drivers/soc/loongson/ |
H A D | loongson2_guts.c | 42 bool little_endian; member 85 if (guts->little_endian) in loongson2_guts_get_svr() 106 guts->little_endian = of_property_read_bool(np, "little-endian"); in loongson2_guts_probe()
|
/linux/drivers/rpmsg/ |
H A D | virtio_rpmsg_bus.c | 420 rpdev->little_endian = virtio_is_little_endian(vrp->vdev); in __rpmsg_create_channel() 714 bool little_endian = virtio_is_little_endian(vrp->vdev); in rpmsg_recv_single() local 715 unsigned int msg_len = __rpmsg16_to_cpu(little_endian, msg->len); in rpmsg_recv_single() 719 __rpmsg32_to_cpu(little_endian, msg->src), in rpmsg_recv_single() 720 __rpmsg32_to_cpu(little_endian, msg->dst), msg_len, in rpmsg_recv_single() 721 __rpmsg16_to_cpu(little_endian, msg->flags), in rpmsg_recv_single() 722 __rpmsg32_to_cpu(little_endian, msg->reserved)); in rpmsg_recv_single() 741 ept = idr_find(&vrp->endpoints, __rpmsg32_to_cpu(little_endian, msg->dst)); in rpmsg_recv_single() 755 __rpmsg32_to_cpu(little_endian, msg->src)); in rpmsg_recv_single() 851 rpdev_ctrl->little_endian = virtio_is_little_endian(vrp->vdev); in rpmsg_virtio_add_ctrl_dev() [all …]
|
/linux/drivers/spi/ |
H A D | spi-fsl-qspi.c | 205 bool little_endian; member 214 .little_endian = true, 223 .little_endian = true, 233 .little_endian = true, 243 .little_endian = true, 252 .little_endian = false, 261 .little_endian = true, 325 if (q->devtype_data->little_endian) in qspi_writel() 333 if (q->devtype_data->little_endian) in qspi_readl() 634 if (!q->devtype_data->little_endian) in fsl_qspi_readl_poll_tout()
|
H A D | spi-nxp-fspi.c | 335 bool little_endian; member 344 .little_endian = true, /* little-endian */ 353 .little_endian = true, /* little-endian */ 362 .little_endian = true, /* little-endian */ 371 .little_endian = true, /* little-endian */ 380 .little_endian = true, /* little-endian */ 413 if (f->devtype_data->little_endian) in fspi_writel() 421 if (f->devtype_data->little_endian) in fspi_readl() 515 if (!f->devtype_data->little_endian) in fspi_readl_poll_tout()
|
/linux/drivers/pmdomain/bcm/ |
H A D | bcm-pmb.c | 73 bool little_endian; member 102 *val = pmb->little_endian ? le32_to_cpu(*val) : be32_to_cpu(*val); in bcm_pmb_bpcm_read() 114 val = pmb->little_endian ? cpu_to_le32(val) : cpu_to_be32(val); in bcm_pmb_bpcm_write() 294 pmb->little_endian = !of_device_is_big_endian(dev->of_node); in bcm_pmb_probe()
|
/linux/include/linux/platform_data/ |
H A D | i2c-mux-reg.h | 30 bool little_endian; member
|
/linux/drivers/edac/ |
H A D | fsl_ddr_edac.c | 36 static bool little_endian; variable 40 return little_endian ? ioread32(addr) : ioread32be(addr); in ddr_in32() 45 if (little_endian) in ddr_out32() 510 little_endian = of_property_read_bool(op->dev.of_node, "little-endian"); in fsl_mc_err_probe()
|
/linux/drivers/memory/ |
H A D | fsl_ifc.c | 225 fsl_ifc_ctrl_dev->little_endian = true; in fsl_ifc_ctrl_probe() 228 fsl_ifc_ctrl_dev->little_endian = false; in fsl_ifc_ctrl_probe()
|
/linux/drivers/power/supply/ |
H A D | olpc_battery.c | 57 bool little_endian; member 325 if (data->little_endian) in ecword_to_cpu() 658 data->little_endian = true; in olpc_battery_probe()
|
/linux/drivers/thermal/ |
H A D | qoriq_thermal.c | 278 const bool little_endian = of_property_read_bool(np, "little-endian"); in qoriq_tmu_probe() local 280 little_endian ? REGMAP_ENDIAN_LITTLE : REGMAP_ENDIAN_BIG; in qoriq_tmu_probe()
|
/linux/drivers/net/ethernet/xilinx/ |
H A D | ll_temac_main.c | 1391 bool little_endian; in temac_probe() local 1455 little_endian = false; in temac_probe() 1457 little_endian = of_property_read_bool(temac_np, "little-endian"); in temac_probe() 1459 little_endian = pdata->reg_little_endian; in temac_probe() 1461 if (little_endian) { in temac_probe()
|
/linux/net/rxrpc/ |
H A D | rxkad.c | 873 bool little_endian; in rxkad_decrypt_ticket() local 917 little_endian = *p & 1; in rxkad_decrypt_ticket() 952 if (little_endian) { in rxkad_decrypt_ticket()
|
/linux/drivers/vhost/ |
H A D | vringh.c | 668 vrh->little_endian = (features & (1ULL << VIRTIO_F_VERSION_1)); in vringh_init_user() 942 vrh->little_endian = (features & (1ULL << VIRTIO_F_VERSION_1)); in vringh_init_kern()
|
/linux/tools/testing/selftests/landlock/ |
H A D | net_test.c | 1479 const char little_endian = *(const char *)&one; in TEST_F() local 1494 test_bind_and_connect(_metadata, &self->srv0, false, little_endian); in TEST_F()
|