/openbmc/linux/drivers/scsi/ |
H A D | scsi_logging.c | 41 size_t off = 0; in sdev_format_header() local 44 off += scnprintf(logbuf + off, logbuf_len - off, in sdev_format_header() 47 if (WARN_ON(off >= logbuf_len)) in sdev_format_header() 48 return off; in sdev_format_header() 51 off += scnprintf(logbuf + off, logbuf_len - off, in sdev_format_header() 53 return off; in sdev_format_header() 61 size_t off = 0, logbuf_len; in sdev_prefix_printk() local 71 off += scnprintf(logbuf + off, logbuf_len - off, in sdev_prefix_printk() 73 if (!WARN_ON(off >= logbuf_len)) { in sdev_prefix_printk() 75 off += vscnprintf(logbuf + off, logbuf_len - off, fmt, args); in sdev_prefix_printk() [all …]
|
/openbmc/linux/arch/mips/mm/ |
H A D | page.c | 103 pg_addiu(u32 **buf, unsigned int reg1, unsigned int reg2, unsigned int off) in pg_addiu() argument 108 if (off > 0x7fff) { in pg_addiu() 109 uasm_i_lui(buf, T9, uasm_rel_hi(off)); in pg_addiu() 110 uasm_i_addiu(buf, T9, T9, uasm_rel_lo(off)); in pg_addiu() 112 uasm_i_addiu(buf, T9, ZERO, off); in pg_addiu() 115 if (off > 0x7fff) { in pg_addiu() 116 uasm_i_lui(buf, T9, uasm_rel_hi(off)); in pg_addiu() 117 uasm_i_addiu(buf, T9, T9, uasm_rel_lo(off)); in pg_addiu() 120 UASM_i_ADDIU(buf, reg1, reg2, off); in pg_addiu() 233 static void build_clear_store(u32 **buf, int off) in build_clear_store() argument [all …]
|
/openbmc/linux/drivers/ntb/hw/intel/ |
H A D | ntb_hw_gen3.c | 262 ssize_t ret, off; in ndev_ntb3_debugfs_read() local 274 off = 0; in ndev_ntb3_debugfs_read() 276 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 279 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 283 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 285 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 289 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 292 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 294 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 297 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() [all …]
|
H A D | ntb_hw_gen4.c | 226 ssize_t ret, off; in ndev_ntb4_debugfs_read() local 238 off = 0; in ndev_ntb4_debugfs_read() 240 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 243 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 247 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 249 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 253 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 256 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 258 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 261 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() [all …]
|
H A D | ntb_hw_gen1.c | 499 ssize_t ret, off; in ndev_ntb_debugfs_read() local 512 off = 0; in ndev_ntb_debugfs_read() 514 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 517 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 522 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 524 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 528 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 532 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 534 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 538 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() [all …]
|
/openbmc/linux/arch/ia64/kernel/ |
H A D | entry.h | 28 #define PT_REGS_SAVES(off) \ argument 30 .fframe IA64_PT_REGS_SIZE+16+(off); \ 31 .spillsp rp, PT(CR_IIP)+16+(off); \ 32 .spillsp ar.pfs, PT(CR_IFS)+16+(off); \ 33 .spillsp ar.unat, PT(AR_UNAT)+16+(off); \ 34 .spillsp ar.fpsr, PT(AR_FPSR)+16+(off); \ 35 .spillsp pr, PT(PR)+16+(off); 37 #define PT_REGS_UNWIND_INFO(off) \ argument 39 PT_REGS_SAVES(off); \ 42 #define SWITCH_STACK_SAVES(off) \ argument [all …]
|
/openbmc/u-boot/arch/powerpc/cpu/mpc8xxx/ |
H A D | fdt.c | 25 int off, ret = -FDT_ERR_NOTFOUND; in ft_del_cpuhandle() local 30 off = fdt_node_offset_by_prop_value(blob, -1, "cpu-handle", in ft_del_cpuhandle() 32 while (off != -FDT_ERR_NOTFOUND) { in ft_del_cpuhandle() 33 fdt_delprop(blob, off, "cpu-handle"); in ft_del_cpuhandle() 35 off = fdt_node_offset_by_prop_value(blob, -1, "cpu-handle", in ft_del_cpuhandle() 43 int off, num_cores, del_cores; in ft_fixup_num_cores() local 48 off = fdt_node_offset_by_prop_value(blob, -1, "device_type", "cpu", 4); in ft_fixup_num_cores() 49 while (off != -FDT_ERR_NOTFOUND) { in ft_fixup_num_cores() 50 u32 *reg = (u32 *)fdt_getprop(blob, off, "reg", 0); in ft_fixup_num_cores() 54 int ph = fdt_get_phandle(blob, off); in ft_fixup_num_cores() [all …]
|
/openbmc/u-boot/arch/powerpc/cpu/mpc85xx/ |
H A D | fdt.c | 38 int off; in ft_fixup_cpu() local 49 off = fdt_node_offset_by_prop_value(blob, -1, "device_type", "cpu", 4); in ft_fixup_cpu() 50 while (off != -FDT_ERR_NOTFOUND) { in ft_fixup_cpu() 51 u32 *reg = (u32 *)fdt_getprop(blob, off, "reg", 0); in ft_fixup_cpu() 58 fdt_setprop_string(blob, off, "status", in ft_fixup_cpu() 61 fdt_setprop_string(blob, off, "status", in ft_fixup_cpu() 77 fdt_setprop(blob, off, "cpu-release-addr", in ft_fixup_cpu() 81 fdt_setprop_string(blob, off, "enable-method", in ft_fixup_cpu() 86 off = fdt_node_offset_by_prop_value(blob, off, in ft_fixup_cpu() 102 off = fdt_add_mem_rsv(blob, T1040_TDM_QUIRK_CCSR_BASE, in ft_fixup_cpu() [all …]
|
H A D | liodn.c | 237 int off, portid = tbl[i].portid; in fdt_fixup_srio_liodn() local 239 off = fdt_node_offset_by_prop_value(blob, srio_off, in fdt_fixup_srio_liodn() 241 if (off >= 0) { in fdt_fixup_srio_liodn() 242 off = fdt_setprop(blob, off, "fsl,liodn", in fdt_fixup_srio_liodn() 245 if (off > 0) in fdt_fixup_srio_liodn() 248 portid, fdt_strerror(off)); in fdt_fixup_srio_liodn() 251 fdt_strerror(off)); in fdt_fixup_srio_liodn() 262 int off, pci_idx = 0, pci_cnt = 0, i, rc; in fdt_fixup_pci_liodn_offsets() local 270 off = fdt_node_offset_by_compatible(fdt, -1, compat); in fdt_fixup_pci_liodn_offsets() 271 while (off != -FDT_ERR_NOTFOUND) { in fdt_fixup_pci_liodn_offsets() [all …]
|
/openbmc/linux/arch/powerpc/boot/ |
H A D | addnote.c | 64 #define GET_16BE(off) ((buf[off] << 8) + (buf[(off)+1])) argument 65 #define GET_32BE(off) ((GET_16BE(off) << 16U) + GET_16BE((off)+2U)) argument 66 #define GET_64BE(off) ((((unsigned long long)GET_32BE(off)) << 32ULL) + \ argument 67 ((unsigned long long)GET_32BE((off)+4ULL))) 68 #define PUT_16BE(off, v)(buf[off] = ((v) >> 8) & 0xff, \ argument 69 buf[(off) + 1] = (v) & 0xff) 70 #define PUT_32BE(off, v)(PUT_16BE((off), (v) >> 16L), PUT_16BE((off) + 2, (v))) argument 71 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \ argument 72 PUT_32BE((off) + 4, (v)))) 74 #define GET_16LE(off) ((buf[off]) + (buf[(off)+1] << 8)) argument [all …]
|
/openbmc/u-boot/doc/ |
H A D | README.fsl-ddr | 118 Memory controller ECC on/off 121 ECC can be turned on/off by hwconfig. 124 hwconfig=fsl_ddr:ecc=off 127 Memory address parity on/off 129 address parity can be turned on/off by hwconfig. 171 | | | Slot 1 | off | 75 | 120 | off | off | off | off | off | 30 | 30 | 173 | | | Slot 2 | off | 75 | off | off | 30 | 30 | 120 | off | off | off | 175 | | | Slot 1 | off | 75 | 120 | off | off | off | 20 | 20 | | | 177 | | | Slot 2 | off | 75 | off | off | 20 | 20 | 120 *| off | | | 179 | | | Slot 1 | off | 75 | 120 *| off | | | off | off | 20 | 20 | [all …]
|
/openbmc/linux/drivers/rapidio/ |
H A D | rio-sysfs.c | 118 char *buf, loff_t off, size_t count) in rio_read_config() argument 122 loff_t init_off = off; in rio_read_config() 129 if (off >= size) in rio_read_config() 131 if (off + count > size) { in rio_read_config() 132 size -= off; in rio_read_config() 138 if ((off & 1) && size) { in rio_read_config() 140 rio_read_config_8(dev, off, &val); in rio_read_config() 141 data[off - init_off] = val; in rio_read_config() 142 off++; in rio_read_config() 146 if ((off & 3) && size > 2) { in rio_read_config() [all …]
|
/openbmc/linux/drivers/mtd/ |
H A D | mtdpstore.c | 27 static int mtdpstore_block_isbad(struct mtdpstore_context *cxt, loff_t off) in mtdpstore_block_isbad() argument 33 off = ALIGN_DOWN(off, mtd->erasesize); in mtdpstore_block_isbad() 34 blknum = div_u64(off, mtd->erasesize); in mtdpstore_block_isbad() 38 ret = mtd_block_isbad(mtd, off); in mtdpstore_block_isbad() 50 loff_t off) in mtdpstore_panic_block_isbad() argument 55 off = ALIGN_DOWN(off, mtd->erasesize); in mtdpstore_panic_block_isbad() 56 blknum = div_u64(off, mtd->erasesize); in mtdpstore_panic_block_isbad() 61 loff_t off) in mtdpstore_mark_used() argument 64 u64 zonenum = div_u64(off, cxt->info.kmsg_size); in mtdpstore_mark_used() 71 loff_t off) in mtdpstore_mark_unused() argument [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 049.out | 7 …qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1024 lazy_refcount… 10 …qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1024 lazy_refcount… 13 …qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1024 lazy_refcount… 16 …qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1024 lazy_refcount… 19 …cow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1048576 lazy_refcou… 22 …w2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1073741824 lazy_refco… 25 …2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1099511627776 lazy_ref… 28 …qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1024 lazy_refcount… 31 …qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1024 lazy_refcount… 34 …qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1536 lazy_refcount… [all …]
|
/openbmc/linux/include/linux/isdn/ |
H A D | capiutil.h | 19 #define CAPIMSG_U8(m, off) (m[off]) argument 20 #define CAPIMSG_U16(m, off) (m[off]|(m[(off)+1]<<8)) argument 21 #define CAPIMSG_U32(m, off) (m[off]|(m[(off)+1]<<8)|(m[(off)+2]<<16)|(m[(off)+3]<<24)) argument 33 static inline void capimsg_setu8(void *m, int off, __u8 val) in capimsg_setu8() argument 35 ((__u8 *)m)[off] = val; in capimsg_setu8() 38 static inline void capimsg_setu16(void *m, int off, __u16 val) in capimsg_setu16() argument 40 ((__u8 *)m)[off] = val & 0xff; in capimsg_setu16() 41 ((__u8 *)m)[off+1] = (val >> 8) & 0xff; in capimsg_setu16() 44 static inline void capimsg_setu32(void *m, int off, __u32 val) in capimsg_setu32() argument 46 ((__u8 *)m)[off] = val & 0xff; in capimsg_setu32() [all …]
|
/openbmc/linux/tools/testing/selftests/net/mptcp/ |
H A D | pm_nl_ctl.c | 55 int off = 0; in init_genl_req() local 60 off += NLMSG_ALIGN(sizeof(*nh)); in init_genl_req() 62 gh = (void *)(data + off); in init_genl_req() 65 off += NLMSG_ALIGN(sizeof(*gh)); in init_genl_req() 66 return off; in init_genl_req() 73 uint32_t off; in nl_error() local 93 memcpy(&off, RTA_DATA(attrs), 4); in nl_error() 95 (int)off); in nl_error() 322 int off = 0; in resolve_mptcp_pm_netlink() local 326 off = init_genl_req(data, GENL_ID_CTRL, CTRL_CMD_GETFAMILY, 0); in resolve_mptcp_pm_netlink() [all …]
|
/openbmc/linux/drivers/acpi/ |
H A D | ec_sys.c | 31 size_t count, loff_t *off) in acpi_ec_read_io() argument 37 loff_t init_off = *off; in acpi_ec_read_io() 40 if (*off >= size) in acpi_ec_read_io() 42 if (*off + count >= size) { in acpi_ec_read_io() 43 size -= *off; in acpi_ec_read_io() 50 err = ec_read(*off, &byte_read); in acpi_ec_read_io() 53 if (put_user(byte_read, buf + *off - init_off)) { in acpi_ec_read_io() 54 if (*off - init_off) in acpi_ec_read_io() 55 return *off - init_off; /* partial read */ in acpi_ec_read_io() 58 *off += 1; in acpi_ec_read_io() [all …]
|
/openbmc/linux/arch/mips/include/asm/ |
H A D | mips-gic.h | 30 #define GIC_ACCESSOR_RO(sz, off, name) \ argument 31 CPS_ACCESSOR_RO(gic, sz, MIPS_GIC_SHARED_OFS + off, name) 34 #define GIC_ACCESSOR_RW(sz, off, name) \ argument 35 CPS_ACCESSOR_RW(gic, sz, MIPS_GIC_SHARED_OFS + off, name) 38 #define GIC_VX_ACCESSOR_RO(sz, off, name) \ argument 39 CPS_ACCESSOR_RO(gic, sz, MIPS_GIC_LOCAL_OFS + off, vl_##name) \ 40 CPS_ACCESSOR_RO(gic, sz, MIPS_GIC_REDIR_OFS + off, vo_##name) 43 #define GIC_VX_ACCESSOR_RW(sz, off, name) \ argument 44 CPS_ACCESSOR_RW(gic, sz, MIPS_GIC_LOCAL_OFS + off, vl_##name) \ 45 CPS_ACCESSOR_RW(gic, sz, MIPS_GIC_REDIR_OFS + off, vo_##name) [all …]
|
/openbmc/linux/drivers/isdn/hardware/mISDN/ |
H A D | iohelper.h | 26 static u8 Read##name##_IO(void *p, u8 off) { \ 28 return inb(hw->ap.port + off); \ 30 static void Write##name##_IO(void *p, u8 off, u8 val) { \ 32 outb(val, hw->ap.port + off); \ 34 static void ReadFiFo##name##_IO(void *p, u8 off, u8 *dp, int size) { \ 36 insb(hw->ap.port + off, dp, size); \ 38 static void WriteFiFo##name##_IO(void *p, u8 off, u8 *dp, int size) { \ 40 outsb(hw->ap.port + off, dp, size); \ 44 static u8 Read##name##_IND(void *p, u8 off) { \ 46 outb(off, hw->ap.ale); \ [all …]
|
/openbmc/u-boot/drivers/gpio/ |
H A D | kona_gpio.c | 47 unsigned int value, off; in gpio_request() local 50 off = GPIO_PWD_STATUS(GPIO_BANK(gpio)); in gpio_request() 51 value = readl(GPIO_BASE + off) & ~GPIO_BITMASK(gpio); in gpio_request() 52 writel(value, GPIO_BASE + off); in gpio_request() 59 unsigned int value, off; in gpio_free() local 62 off = GPIO_PWD_STATUS(GPIO_BANK(gpio)); in gpio_free() 63 value = readl(GPIO_BASE + off) | GPIO_BITMASK(gpio); in gpio_free() 64 writel(value, GPIO_BASE + off); in gpio_free() 85 u32 val, off; in gpio_direction_output() local 91 off = value ? GPIO_OUT_SET(bank_id) : GPIO_OUT_CLEAR(bank_id); in gpio_direction_output() [all …]
|
/openbmc/u-boot/test/overlay/ |
H A D | cmd_ut_overlay.c | 108 int off; in fdt_overlay_add_node_by_phandle() local 110 off = fdt_path_offset(fdt, "/test-node/new-node"); in fdt_overlay_add_node_by_phandle() 111 ut_assert(off >= 0); in fdt_overlay_add_node_by_phandle() 113 ut_assertnonnull(fdt_getprop(fdt, off, "new-property", NULL)); in fdt_overlay_add_node_by_phandle() 121 int off; in fdt_overlay_add_node_by_path() local 123 off = fdt_path_offset(fdt, "/new-node"); in fdt_overlay_add_node_by_path() 124 ut_assert(off >= 0); in fdt_overlay_add_node_by_path() 126 ut_assertnonnull(fdt_getprop(fdt, off, "new-property", NULL)); in fdt_overlay_add_node_by_path() 134 int off; in fdt_overlay_add_subnode_property() local 136 off = fdt_path_offset(fdt, "/test-node/sub-test-node"); in fdt_overlay_add_subnode_property() [all …]
|
/openbmc/linux/tools/include/linux/ |
H A D | filter.h | 39 .off = 0, \ 47 .off = 0, \ 57 .off = 0, \ 65 .off = 0, \ 75 .off = 0, \ 85 .off = 0, \ 93 .off = 0, \ 103 .off = 0, \ 111 .off = 0, \ 121 .off = 0, \ [all …]
|
/openbmc/openbmc-test-automation/data/boot_lists/ |
H A D | OBMC_reboot | 9 OBMC Reboot (off) 10 OBMC Reboot (off) (mfg) 11 REST OBMC Reboot (off) 12 REST OBMC Reboot (off) (mfg) 13 Redfish OBMC Reboot (off) 14 Redfish OBMC Reboot (off) (mfg) 17 PDU AC Cycle (off) 18 PDU AC Cycle (off) (mfg) 21 IPMI MC Reset Warm (off) 22 IPMI MC Reset Warm (off) (mfg) [all …]
|
/openbmc/linux/arch/riscv/kvm/ |
H A D | aia_aplic.c | 388 static int aplic_mmio_read_offset(struct kvm *kvm, gpa_t off, u32 *val32) in aplic_mmio_read_offset() argument 393 if ((off & 0x3) != 0) in aplic_mmio_read_offset() 396 if (off == APLIC_DOMAINCFG) { in aplic_mmio_read_offset() 399 } else if ((off >= APLIC_SOURCECFG_BASE) && in aplic_mmio_read_offset() 400 (off < (APLIC_SOURCECFG_BASE + (aplic->nr_irqs - 1) * 4))) { in aplic_mmio_read_offset() 401 i = ((off - APLIC_SOURCECFG_BASE) >> 2) + 1; in aplic_mmio_read_offset() 403 } else if ((off >= APLIC_SETIP_BASE) && in aplic_mmio_read_offset() 404 (off < (APLIC_SETIP_BASE + aplic->nr_words * 4))) { in aplic_mmio_read_offset() 405 i = (off - APLIC_SETIP_BASE) >> 2; in aplic_mmio_read_offset() 407 } else if (off == APLIC_SETIPNUM) { in aplic_mmio_read_offset() [all …]
|
/openbmc/linux/scripts/gdb/linux/ |
H A D | dmesg.py | 41 off = printk_ringbuffer_type.get_type()['desc_ring'].bitpos // 8 42 addr = prb_addr + off 47 off = prb_desc_ring_type.get_type()['count_bits'].bitpos // 8 48 desc_ring_count = 1 << utils.read_u32(desc_ring, off) 50 off = prb_desc_ring_type.get_type()['descs'].bitpos // 8 51 desc_addr = utils.read_ulong(desc_ring, off) 55 off = prb_desc_ring_type.get_type()['infos'].bitpos // 8 56 info_addr = utils.read_ulong(desc_ring, off) 59 off = printk_ringbuffer_type.get_type()['text_data_ring'].bitpos // 8 60 addr = prb_addr + off [all …]
|