Home
last modified time | relevance | path

Searched refs:big_endian (Results 1 – 22 of 22) sorted by relevance

/drivers/gpu/drm/amd/display/modules/power/
Dpower_helpers.c33 #define bswap16_based_on_endian(big_endian, value) \ argument
34 (big_endian) ? cpu_to_be16(value) : cpu_to_le16(value)
248 struct iram_table_v_2_2 *table, bool big_endian) in fill_backlight_transform_table_v_2_2() argument
272 table->backlight_thresholds[i] = (big_endian) ? in fill_backlight_transform_table_v_2_2()
275 table->backlight_offsets[i] = (big_endian) ? in fill_backlight_transform_table_v_2_2()
601 …iram_v_2_3(struct iram_table_v_2_2 *ram_table, struct dmcu_iram_parameters params, bool big_endian) in fill_iram_v_2_3() argument
607 ram_table->min_abm_backlight = (big_endian) ? in fill_iram_v_2_3()
633 ram_table->crgb_thresh[0] = bswap16_based_on_endian(big_endian, 0x127c); in fill_iram_v_2_3()
634 ram_table->crgb_thresh[1] = bswap16_based_on_endian(big_endian, 0x151b); in fill_iram_v_2_3()
635 ram_table->crgb_thresh[2] = bswap16_based_on_endian(big_endian, 0x17d5); in fill_iram_v_2_3()
[all …]
/drivers/spi/
Dspi-iproc-qspi.c26 bool big_endian; member
38 if (bcm_qspi_readl(priv->big_endian, mmio + (i * 4))) in bcm_iproc_qspi_get_l2_int_status()
64 bcm_qspi_writel(priv->big_endian, 1, mmio + (i * 4)); in bcm_iproc_qspi_int_ack()
80 val = bcm_qspi_readl(priv->big_endian, mmio); in bcm_iproc_qspi_int_set()
87 bcm_qspi_writel(priv->big_endian, val, mmio); in bcm_iproc_qspi_int_set()
118 priv->big_endian = of_device_is_big_endian(dev->of_node); in bcm_iproc_probe()
Dspi-fsl-dspi.c1243 bool big_endian; in dspi_probe() local
1274 big_endian = true; in dspi_probe()
1297 big_endian = of_device_is_big_endian(np); in dspi_probe()
1299 if (big_endian) { in dspi_probe()
Dspi-bcm-qspi.c224 bool big_endian; member
273 return bcm_qspi_readl(qspi->big_endian, qspi->base[type] + offset); in bcm_qspi_read()
280 bcm_qspi_writel(qspi->big_endian, data, qspi->base[type] + offset); in bcm_qspi_write()
1363 qspi->big_endian = of_device_is_big_endian(dev->of_node); in bcm_qspi_probe()
/drivers/net/dsa/b53/
Db53_mmap.c50 if (dev->pdata && dev->pdata->big_endian) in b53_mmap_read16()
66 if (dev->pdata && dev->pdata->big_endian) in b53_mmap_read32()
86 if (dev->pdata && dev->pdata->big_endian) { in b53_mmap_read48()
99 if (dev->pdata && dev->pdata->big_endian) { in b53_mmap_read48()
122 if (dev->pdata && dev->pdata->big_endian) { in b53_mmap_read64()
154 if (dev->pdata && dev->pdata->big_endian) in b53_mmap_write16()
171 if (dev->pdata && dev->pdata->big_endian) in b53_mmap_write32()
266 pdata->big_endian = of_property_read_bool(np, "big-endian"); in b53_mmap_probe_of()
/drivers/dma/
Dfsl-edma-common.h166 bool big_endian; member
179 if (edma->big_endian) in edma_readl()
189 if (edma->big_endian) in edma_writeb()
199 if (edma->big_endian) in edma_writew()
208 if (edma->big_endian) in edma_writel()
Dste_dma40_ll.c123 if (cfg->src_info.big_endian) in d40_phy_cfg()
125 if (cfg->dst_info.big_endian) in d40_phy_cfg()
Dmcf-edma.c210 mcf_edma->big_endian = 1; in mcf_edma_probe()
Dfsl-edma.c349 fsl_edma->big_endian = of_property_read_bool(np, "big-endian"); in fsl_edma_probe()
Dste_dma40.c2368 cfg.dst_info.big_endian = D40_DT_FLAGS_BIG_ENDIAN(flags); in d40_xlate()
2372 cfg.src_info.big_endian = D40_DT_FLAGS_BIG_ENDIAN(flags); in d40_xlate()
/drivers/rtc/
Drtc-fsl-ftm-alarm.c44 bool big_endian; member
50 if (dev->big_endian) in rtc_readl()
58 if (dev->big_endian) in rtc_writel()
282 rtc->big_endian = in ftm_rtc_probe()
/drivers/counter/
Dftm-quaddec.c32 bool big_endian; member
38 if (ftm->big_endian) in ftm_read()
46 if (ftm->big_endian) in ftm_write()
281 ftm->big_endian = of_property_read_bool(node, "big-endian"); in ftm_quaddec_probe()
/drivers/pci/controller/dwc/
Dpci-layerscape-ep.c49 bool big_endian; member
56 if (pcie->big_endian) in ls_lut_readl()
66 if (pcie->big_endian) in ls_lut_writel()
265 pcie->big_endian = of_property_read_bool(dev->of_node, "big-endian"); in ls_pcie_ep_probe()
/drivers/clocksource/
Dtimer-fsl-ftm.c27 bool big_endian; member
34 if (priv->big_endian) in ftm_readl()
42 if (priv->big_endian) in ftm_writel()
327 priv->big_endian = of_property_read_bool(np, "big-endian"); in ftm_timer_init()
/drivers/bus/
Dbrcmstb_gisb.c130 bool big_endian; member
152 if (gdev->big_endian) in gisb_read()
185 if (gdev->big_endian) in gisb_write()
431 gdev->big_endian = of_device_is_big_endian(dn); in brcmstb_gisb_arb_probe()
/drivers/tty/serial/
Dearlycon.c253 bool big_endian; in of_setup_earlycon() local
273 big_endian = of_get_flat_dt_prop(node, "big-endian", NULL) != NULL || in of_setup_earlycon()
286 port->iotype = (big_endian) ? UPIO_MEM32BE : UPIO_MEM32; in of_setup_earlycon()
/drivers/net/ethernet/
Dethoc.c201 bool big_endian; member
239 if (dev->big_endian) in ethoc_read()
247 if (dev->big_endian) in ethoc_write()
1124 priv->big_endian = pdata ? pdata->big_endian : in ethoc_probe()
/drivers/net/ethernet/ti/
Dnetcp.h84 bool big_endian; member
/drivers/gpu/drm/nouveau/nvkm/engine/device/
Dbase.c2882 const bool big_endian = true; in nvkm_device_endianness() local
2884 const bool big_endian = false; in nvkm_device_endianness()
2892 return !big_endian; /* Assume GPU is LE in this case. */ in nvkm_device_endianness()
2897 if (big_endian == !pmc_boot_1) { in nvkm_device_endianness()
2900 if (nvkm_rd32(device, 0x000004) != (big_endian ? 0x01000001 : 0x00000000)) in nvkm_device_endianness()
2901 return !big_endian; /* Assume GPU is LE on any unexpected read-back. */ in nvkm_device_endianness()
/drivers/input/mouse/
Dcyapa_gen5.c1863 bool big_endian; in cyapa_parse_structure_data() local
1868 big_endian = ((data_format & 0x10) == 0x00); in cyapa_parse_structure_data()
1879 if (big_endian) in cyapa_parse_structure_data()
1885 if (big_endian) in cyapa_parse_structure_data()
/drivers/crypto/
Domap-sham.c331 int i, d, big_endian = 0; in omap_sham_copy_ready_hash() local
343 big_endian = 1; in omap_sham_copy_ready_hash()
362 if (big_endian) in omap_sham_copy_ready_hash()
/drivers/i2c/busses/
Di2c-ocores.c659 bool be = pdata ? pdata->big_endian : in ocores_i2c_probe()