/openbmc/u-boot/cmd/ |
H A D | bdinfo.c | 1 // SPDX-License-Identifier: GPL-2.0+ 19 printf("%-12s= 0x%0*lx\n", name, 2 * (int)sizeof(value), value); in print_num() 33 printf("%-12s= %s\n", name, val); in print_eth() 46 printf("eth%dname = %s\n", i, dev->name); in print_eths() 60 printf("%-12s= 0x%.8llX\n", name, value); in print_lnum() 68 printf("%-12s= %6s MHz\n", name, strmhz(buf, hz)); in print_mhz() 72 static inline void print_bi_boot_params(const bd_t *bd) in print_bi_boot_params() argument 74 print_num("boot_params", (ulong)bd->bi_boot_params); in print_bi_boot_params() 77 static inline void print_bi_mem(const bd_t *bd) in print_bi_mem() argument 80 print_num("mem start ", (ulong)bd->bi_memstart); in print_bi_mem() [all …]
|
/openbmc/linux/drivers/video/backlight/ |
H A D | backlight.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2003,2004 Hewlett-Packard Company 39 * - brightness R/W, set the requested brightness level 40 * - actual_brightness RO, the brightness level used by the HW 41 * - max_brightness RO, the maximum brightness level supported 43 * See Documentation/ABI/stable/sysfs-class-backlight for the full list. 47 * a hot-key or some other platform or firmware specific way. 51 * brightness, thus providing user-space access to the actual level 54 * When the backlight changes this is reported to user-space using 57 * a hot-key to adjust backlight, the driver must notify the backlight [all …]
|
H A D | aat2870_bl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 21 struct backlight_device *bd; member 31 struct backlight_device *bd = aat2870_bl->bd; in aat2870_brightness() local 34 val = brightness * (aat2870_bl->max_current - 1); in aat2870_brightness() 35 val /= bd->props.max_brightness; in aat2870_brightness() 43 = dev_get_drvdata(aat2870_bl->pdev->dev.parent); in aat2870_bl_enable() 45 return aat2870->write(aat2870, AAT2870_BL_CH_EN, in aat2870_bl_enable() 46 (u8)aat2870_bl->channels); in aat2870_bl_enable() 52 = dev_get_drvdata(aat2870_bl->pdev->dev.parent); in aat2870_bl_disable() 54 return aat2870->write(aat2870, AAT2870_BL_CH_EN, 0x0); in aat2870_bl_disable() [all …]
|
H A D | hp680_bl.c | 32 static void hp680bl_send_intensity(struct backlight_device *bd) in hp680bl_send_intensity() argument 36 int intensity = backlight_get_brightness(bd); in hp680bl_send_intensity() 47 sh_dac_output(255-(u8)intensity, DAC_LCD_BRIGHTNESS); in hp680bl_send_intensity() 49 sh_dac_output(255-(u8)intensity, DAC_LCD_BRIGHTNESS); in hp680bl_send_intensity() 55 sh_dac_output(255-(u8)intensity, DAC_LCD_BRIGHTNESS); in hp680bl_send_intensity() 66 struct backlight_device *bd = dev_get_drvdata(dev); in hp680bl_suspend() local 69 hp680bl_send_intensity(bd); in hp680bl_suspend() 75 struct backlight_device *bd = dev_get_drvdata(dev); in hp680bl_resume() local 78 hp680bl_send_intensity(bd); in hp680bl_resume() 85 static int hp680bl_set_intensity(struct backlight_device *bd) in hp680bl_set_intensity() argument [all …]
|
H A D | bd6107.c | 1 // SPDX-License-Identifier: GPL-2.0-only 77 static int bd6107_write(struct bd6107 *bd, u8 reg, u8 data) in bd6107_write() argument 79 return i2c_smbus_write_byte_data(bd->client, reg, data); in bd6107_write() 84 struct bd6107 *bd = bl_get_data(backlight); in bd6107_backlight_update_status() local 88 bd6107_write(bd, BD6107_PORTSEL, BD6107_PORTSEL_LEDM(2) | in bd6107_backlight_update_status() 90 bd6107_write(bd, BD6107_MAINCNT1, brightness); in bd6107_backlight_update_status() 91 bd6107_write(bd, BD6107_LEDCNT1, BD6107_LEDCNT1_LEDONOFF1); in bd6107_backlight_update_status() 94 gpiod_set_value(bd->reset, 1); in bd6107_backlight_update_status() 96 gpiod_set_value(bd->reset, 0); in bd6107_backlight_update_status() 105 struct bd6107 *bd = bl_get_data(backlight); in bd6107_backlight_check_fb() local [all …]
|
/openbmc/linux/block/ |
H A D | bsg.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * bsg.c - block layer implementation of the sg v4 interface 35 return container_of(inode->i_cdev, struct bsg_device, cdev); in to_bsg_device() 45 static unsigned int bsg_timeout(struct bsg_device *bd, struct sg_io_v4 *hdr) in bsg_timeout() argument 49 if (hdr->timeout) in bsg_timeout() 50 timeout = msecs_to_jiffies(hdr->timeout); in bsg_timeout() 51 else if (bd->timeout) in bsg_timeout() 52 timeout = bd->timeout; in bsg_timeout() 57 static int bsg_sg_io(struct bsg_device *bd, bool open_for_write, in bsg_sg_io() argument 64 return -EFAULT; in bsg_sg_io() [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | bd28623.c | 1 // SPDX-License-Identifier: GPL-2.0 47 static int bd28623_power_on(struct bd28623_priv *bd) in bd28623_power_on() argument 51 ret = regulator_bulk_enable(ARRAY_SIZE(bd->supplies), bd->supplies); in bd28623_power_on() 53 dev_err(bd->dev, "Failed to enable supplies: %d\n", ret); in bd28623_power_on() 57 gpiod_set_value_cansleep(bd->reset_gpio, 0); in bd28623_power_on() 63 static void bd28623_power_off(struct bd28623_priv *bd) in bd28623_power_off() argument 65 gpiod_set_value_cansleep(bd->reset_gpio, 1); in bd28623_power_off() 67 regulator_bulk_disable(ARRAY_SIZE(bd->supplies), bd->supplies); in bd28623_power_off() 75 struct bd28623_priv *bd = snd_soc_component_get_drvdata(component); in bd28623_get_switch_spk() local 77 ucontrol->value.integer.value[0] = bd->switch_spk; in bd28623_get_switch_spk() [all …]
|
/openbmc/linux/lib/ |
H A D | decompress_bunzip2.c | 20 the Burrows-Wheeler transformation. Much of that time is delay 25 non-profit hospice organization in the name of the woman I loved, who 32 Lafayette, LA 70503-3240 34 Phone (337) 232-1234 or 1-800-738-2226 35 Fax (337) 232-1297 70 #define RETVAL_LAST_BLOCK (-1) 71 #define RETVAL_NOT_BZIP_DATA (-2) 72 #define RETVAL_UNEXPECTED_INPUT_EOF (-3) 73 #define RETVAL_UNEXPECTED_OUTPUT_EOF (-4) 74 #define RETVAL_DATA_ERROR (-5) [all …]
|
/openbmc/qemu/hw/net/fsl_etsec/ |
H A D | rings.c | 4 * Copyright (c) 2011-2013 AdaCore 56 qemu_log(" User-defined preamble / defer: %d\n", in print_tx_bd_flags() 64 qemu_log(" Underrun / TCP/IP off-load enable: %d\n", in print_tx_bd_flags() 81 qemu_log(" Rx non-octet aligned frame: %d\n", !!(flags & BD_RX_NO)); in print_rx_bd_flags() 89 static void print_bd(eTSEC_rxtx_bd bd, int mode, uint32_t index) in print_bd() argument 94 qemu_log(" Flags : 0x%04x\n", bd.flags); in print_bd() 96 print_tx_bd_flags(bd.flags); in print_bd() 98 print_rx_bd_flags(bd.flags); in print_bd() 100 qemu_log(" Length : 0x%04x\n", bd.length); in print_bd() 101 qemu_log(" Pointer : 0x%08x\n", bd.bufptr); in print_bd() [all …]
|
/openbmc/linux/drivers/power/supply/ |
H A D | bd99954-charger.c | 1 // SPDX-License-Identifier: GPL-2.0-only 20 * a) Trickle-charge with constant current (8). 21 * b) pre-charge with constant current (6) 22 * c) fast-charge, first with constant current (5) phase. After 30 *(4)` `.` ` ` ` ` ` ` ` ` ` ` ` ` ` ----------------------------. 32 * . o----+/:/ ` ` ` ` ` ` ` ` ` ` ` ` `.` ` (5) 34 * . + /- -- . 35 * . +`/- + . 36 * . o/- -: . 38 * . .--+ `/ . [all …]
|
/openbmc/linux/drivers/net/wireless/ath/wcn36xx/ |
H A D | txrx.c | 22 static inline int get_rssi0(struct wcn36xx_rx_bd *bd) in get_rssi0() argument 24 return 100 - ((bd->phy_stat0 >> 24) & 0xff); in get_rssi0() 27 static inline int get_snr(struct wcn36xx_rx_bd *bd) in get_snr() argument 29 return ((bd->phy_stat1 >> 24) & 0xff); in get_snr() 40 /* Buffer descriptor rx_ch field is limited to 5-bit (4+1), a mapping is used 134 /* 11ac 20 MHz 800ns GI MCS 0-8 */ 156 /* 11ac 20 MHz 400ns SGI MCS 6-8 */ 166 /* 11ac 40 MHz 800ns GI MCS 0-9 */ 187 /* 11ac 40 MHz 400ns SGI MCS 5-7 */ 195 /* 11ac 40 MHz 400ns SGI MCS 5-7 */ [all …]
|
/openbmc/linux/fs/gfs2/ |
H A D | trans.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 4 * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. 30 fs_warn(sdp, "Transaction created at: %pSR\n", (void *)tr->tr_ip); in gfs2_print_trans() 32 tr->tr_blocks, tr->tr_revokes, tr->tr_reserved, in gfs2_print_trans() 33 test_bit(TR_TOUCHED, &tr->tr_flags)); in gfs2_print_trans() 35 tr->tr_num_buf_new, tr->tr_num_buf_rm, in gfs2_print_trans() 36 tr->tr_num_databuf_new, tr->tr_num_databuf_rm, in gfs2_print_trans() 37 tr->tr_num_revoke); in gfs2_print_trans() 46 if (current->journal_info) { in __gfs2_trans_begin() [all …]
|
/openbmc/linux/arch/powerpc/boot/ |
H A D | redboot-8xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include "fsl-soc.h" 16 static bd_t bd; variable 25 dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); in platform_fixups() 26 dt_fixup_mac_addresses(bd.bi_enetaddr); in platform_fixups() 27 dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 16, bd.bi_busfreq); in platform_fixups() 31 printf("BRG clock-frequency <- 0x%x (%dMHz)\r\n", in platform_fixups() 32 bd.bi_busfreq, MHZ(bd.bi_busfreq)); in platform_fixups() 33 setprop(node, "clock-frequency", &bd.bi_busfreq, 4); in platform_fixups() 40 memcpy(&bd, (char *)r3, sizeof(bd)); in platform_init() [all …]
|
H A D | redboot-83xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include "fsl-soc.h" 17 static bd_t bd; variable 26 dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); in platform_fixups() 27 dt_fixup_mac_addresses(bd.bi_enetaddr); in platform_fixups() 28 dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 16, bd.bi_busfreq); in platform_fixups() 32 printf("BRG clock-frequency <- 0x%x (%dMHz)\r\n", in platform_fixups() 33 bd.bi_busfreq, MHZ(bd.bi_busfreq)); in platform_fixups() 34 setprop(node, "clock-frequency", &bd.bi_busfreq, 4); in platform_fixups() 42 memcpy(&bd, (char *)r3, sizeof(bd)); in platform_init() [all …]
|
H A D | cuboot-85xx-cpm2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Old U-boot compatibility for 85xx 18 static bd_t bd; variable 24 dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); in platform_fixups() 25 dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr); in platform_fixups() 26 dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr); in platform_fixups() 27 dt_fixup_mac_address_by_alias("ethernet2", bd.bi_enet2addr); in platform_fixups() 28 dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 8, bd.bi_busfreq); in platform_fixups() 31 * soc node name in existing dts files -- once that is fixed, in platform_fixups() 38 setprop(devp, "bus-frequency", &bd.bi_busfreq, in platform_fixups() [all …]
|
H A D | cuboot-85xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Old U-boot compatibility for 85xx 18 static bd_t bd; variable 24 dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); in platform_fixups() 25 dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr); in platform_fixups() 26 dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr); in platform_fixups() 27 dt_fixup_mac_address_by_alias("ethernet2", bd.bi_enet2addr); in platform_fixups() 28 dt_fixup_mac_address_by_alias("ethernet3", bd.bi_enet3addr); in platform_fixups() 29 dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 8, bd.bi_busfreq); in platform_fixups() 32 * soc node name in existing dts files -- once that is fixed, in platform_fixups() [all …]
|
H A D | cuboot-83xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Old U-boot compatibility for 83xx 17 static bd_t bd; variable 23 dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); in platform_fixups() 24 dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr); in platform_fixups() 25 dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr); in platform_fixups() 26 dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 4, bd.bi_busfreq); in platform_fixups() 29 * soc node name in existing dts files -- once that is fixed, in platform_fixups() 36 setprop(soc, "bus-frequency", &bd.bi_busfreq, in platform_fixups() 37 sizeof(bd.bi_busfreq)); in platform_fixups() [all …]
|
/openbmc/linux/drivers/video/fbdev/matrox/ |
H A D | matroxfb_misc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * (c) 1998-2002 Petr Vandrovec <vandrove@vc.cvut.cz> 33 * "Gerd Knorr" <kraxel@goldbach.isdn.cs.tu-berlin.de> 57 * "Ulf Jaenicke-Roessler" <ujr@physik.phy.tu-dresden.de> 79 * (c) 1998 Gerd Knorr <kraxel@cs.tu-berlin.de> 108 unsigned int pixclock = var->pixclock; in matroxfb_var2my() 113 mt->pixclock = 1000000000 / pixclock; in matroxfb_var2my() 114 if (mt->pixclock < 1) mt->pixclock = 1; in matroxfb_var2my() 115 mt->mnp = -1; in matroxfb_var2my() 116 mt->dblscan = var->vmode & FB_VMODE_DOUBLE; in matroxfb_var2my() [all …]
|
/openbmc/qemu/hw/ppc/ |
H A D | ppc405_boards.c | 31 #include "hw/qdev-properties.h" 38 #include "sysemu/block-backend.h" 40 #include "qemu/error-report.h" 81 CPUPPCState *env = &cpu->env; in main_cpu_reset() 82 struct boot_info *bi = env->load_info; in main_cpu_reset() 87 env->gpr[1] = PPC405EP_SRAM_BASE + PPC405EP_SRAM_SIZE - 8; in main_cpu_reset() 90 env->gpr[3] = bi->bdloc; in main_cpu_reset() 91 env->gpr[4] = bi->initrd_base; in main_cpu_reset() 92 env->gpr[5] = bi->initrd_base + bi->initrd_size; in main_cpu_reset() 93 env->gpr[6] = bi->cmdline_base; in main_cpu_reset() [all …]
|
/openbmc/u-boot/arch/arm/mach-uniphier/ |
H A D | init.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Copyright (C) 2015-2016 Socionext Inc. 30 int uniphier_ld4_init(const struct uniphier_board_data *bd); 31 int uniphier_pro4_init(const struct uniphier_board_data *bd); 32 int uniphier_sld8_init(const struct uniphier_board_data *bd); 33 int uniphier_pro5_init(const struct uniphier_board_data *bd); 34 int uniphier_pxs2_init(const struct uniphier_board_data *bd); 64 void uniphier_ld4_bcu_init(const struct uniphier_board_data *bd); 66 int uniphier_memconf_2ch_init(const struct uniphier_board_data *bd); 67 int uniphier_memconf_3ch_init(const struct uniphier_board_data *bd); [all …]
|
H A D | memconf.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2011-2015 Panasonic Corporation 13 #include "sg-regs.h" 16 static int __uniphier_memconf_init(const struct uniphier_board_data *bd, in __uniphier_memconf_init() argument 23 switch (bd->dram_ch[0].width) { in __uniphier_memconf_init() 26 size_per_word = bd->dram_ch[0].size; in __uniphier_memconf_init() 30 size_per_word = bd->dram_ch[0].size >> 1; in __uniphier_memconf_init() 34 return -EINVAL; in __uniphier_memconf_init() 55 return -EINVAL; in __uniphier_memconf_init() 59 switch (bd->dram_ch[1].width) { in __uniphier_memconf_init() [all …]
|
/openbmc/linux/drivers/md/ |
H A D | dm-bio-record.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) 2004-2005 Red Hat, Inc. All rights reserved. 12 #include <linux/blk-integrity.h> 33 static inline void dm_bio_record(struct dm_bio_details *bd, struct bio *bio) in dm_bio_record() argument 35 bd->bi_bdev = bio->bi_bdev; in dm_bio_record() 36 bd->bi_flags = bio->bi_flags; in dm_bio_record() 37 bd->bi_iter = bio->bi_iter; in dm_bio_record() 38 bd->__bi_remaining = atomic_read(&bio->__bi_remaining); in dm_bio_record() 39 bd->bi_end_io = bio->bi_end_io; in dm_bio_record() 41 bd->bi_integrity = bio_integrity(bio); in dm_bio_record() [all …]
|
/openbmc/linux/arch/mips/sgi-ip30/ |
H A D | ip30-xtalk.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * ip30-xtalk.c - Very basic Crosstalk (XIO) detection support. 4 * Copyright (C) 2004-2007 Stanislaw Skowronek <skylark@unaligned.org> 6 * Copyright (C) 2007, 2014-2016 Joshua Kinard <kumba@gentoo.org> 12 #include <linux/platform_data/sgi-w1.h> 13 #include <linux/platform_data/xtalk-bridge.h> 41 struct xtalk_bridge_platform_data *bd; in bridge_platform_create() local 53 snprintf(wd->dev_id, sizeof(wd->dev_id), "bridge-%012lx", in bridge_platform_create() 82 bd = kzalloc(sizeof(*bd), GFP_KERNEL); in bridge_platform_create() 83 if (!bd) { in bridge_platform_create() [all …]
|
/openbmc/linux/include/linux/ |
H A D | backlight.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Copyright (C) 2003,2004 Hewlett-Packard Company 18 * enum backlight_update_reason - what method was used to update backlight 25 * @BACKLIGHT_UPDATE_HOTKEY: The backlight was updated using a hot-key. 36 * enum backlight_type - the type of backlight control 51 * The backlight is controlled using a platform-specific interface. 69 * enum backlight_notification - the type of notification 86 /** enum backlight_scale - the type of scale used for brightness values 107 * the relative perception of the eye demanding a non-linear scale. 116 * struct backlight_ops - backlight operations [all …]
|
/openbmc/u-boot/arch/nds32/lib/ |
H A D | bootm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 11 #include <u-boot/zlib.h> 22 static void setup_start_tag(bd_t *bd); 25 static void setup_memory_tags(bd_t *bd); 27 static void setup_commandline_tag(bd_t *bd, char *commandline); 30 static void setup_initrd_tag(bd_t *bd, ulong initrd_start, ulong initrd_end); 32 static void setup_end_tag(bd_t *bd); 39 bd_t *bd = gd->bd; in do_bootm_linux() local 41 int machid = bd->bi_arch_number; in do_bootm_linux() 57 theKernel = (void (*)(int, int, uint))images->ep; in do_bootm_linux() [all …]
|