/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | mcs_reg.h | 15 u64 offset; \ 17 offset = 0x408ull; \ 19 offset = 0xa28ull; \ 20 offset += (a) * 0x8ull; \ 21 offset; }) 25 u64 offset; \ 27 offset = 0x808ull; \ 29 offset = 0xa68ull; \ 30 offset += (a) * 0x8ull; \ 31 offset; }) [all …]
|
/openbmc/linux/drivers/net/ethernet/microchip/vcap/ |
H A D | vcap_model_kunit.c | 20 .offset = 0, 25 .offset = 2, 30 .offset = 3, 35 .offset = 10, 40 .offset = 13, 45 .offset = 16, 50 .offset = 19, 55 .offset = 20, 60 .offset = 32, 65 .offset = 35, [all …]
|
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_vcap_ag_api.c | 20 .offset = 0, 25 .offset = 1, 30 .offset = 2, 35 .offset = 4, 40 .offset = 16, 45 .offset = 18, 50 .offset = 83, 55 .offset = 84, 60 .offset = 85, 65 .offset = 88, [all …]
|
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_vcap_ag_api.c | 12 .offset = 0, 17 .offset = 1, 22 .offset = 3, 27 .offset = 12, 32 .offset = 13, 37 .offset = 14, 42 .offset = 15, 47 .offset = 16, 52 .offset = 17, 57 .offset = 18, [all …]
|
H A D | lan966x_ethtool.c | 12 { .name = "rx_octets", .offset = 0x00, }, 13 { .name = "rx_unicast", .offset = 0x01, }, 14 { .name = "rx_multicast", .offset = 0x02 }, 15 { .name = "rx_broadcast", .offset = 0x03 }, 16 { .name = "rx_short", .offset = 0x04 }, 17 { .name = "rx_frag", .offset = 0x05 }, 18 { .name = "rx_jabber", .offset = 0x06 }, 19 { .name = "rx_crc", .offset = 0x07 }, 20 { .name = "rx_symbol_err", .offset = 0x08 }, 21 { .name = "rx_sz_64", .offset = 0x09 }, [all …]
|
/openbmc/linux/arch/mips/include/asm/octeon/ |
H A D | cvmx-pexp-defs.h | 31 #define CVMX_PEXP_NPEI_BAR1_INDEXX(offset) (CVMX_ADD_IO_SEG(0x00011F0000008000ull) + ((offset) & 31… argument 43 #define CVMX_PEXP_NPEI_DMAX_COUNTS(offset) (CVMX_ADD_IO_SEG(0x00011F0000008450ull) + ((offset) & 7)… argument 44 #define CVMX_PEXP_NPEI_DMAX_DBELL(offset) (CVMX_ADD_IO_SEG(0x00011F00000083B0ull) + ((offset) & 7) … argument 45 #define CVMX_PEXP_NPEI_DMAX_IBUFF_SADDR(offset) (CVMX_ADD_IO_SEG(0x00011F0000008400ull) + ((offset)… argument 46 #define CVMX_PEXP_NPEI_DMAX_NADDR(offset) (CVMX_ADD_IO_SEG(0x00011F00000084A0ull) + ((offset) & 7) … argument 68 #define CVMX_PEXP_NPEI_MEM_ACCESS_SUBIDX(offset) (CVMX_ADD_IO_SEG(0x00011F0000008280ull) + ((offset… argument 92 #define CVMX_PEXP_NPEI_PKTX_CNTS(offset) (CVMX_ADD_IO_SEG(0x00011F000000A400ull) + ((offset) & 31) … argument 93 #define CVMX_PEXP_NPEI_PKTX_INSTR_BADDR(offset) (CVMX_ADD_IO_SEG(0x00011F000000A800ull) + ((offset)… argument 94 #define CVMX_PEXP_NPEI_PKTX_INSTR_BAOFF_DBELL(offset) (CVMX_ADD_IO_SEG(0x00011F000000AC00ull) + ((o… argument 95 #define CVMX_PEXP_NPEI_PKTX_INSTR_FIFO_RSIZE(offset) (CVMX_ADD_IO_SEG(0x00011F000000B000ull) + ((of… argument [all …]
|
/openbmc/u-boot/scripts/dtc/libfdt/ |
H A D | fdt.c | 77 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int len) in fdt_offset_ptr() argument 79 unsigned absoffset = offset + fdt_off_dt_struct(fdt); in fdt_offset_ptr() 81 if ((absoffset < offset) in fdt_offset_ptr() 87 if (((offset + len) < offset) in fdt_offset_ptr() 88 || ((offset + len) > fdt_size_dt_struct(fdt))) in fdt_offset_ptr() 91 return fdt_offset_ptr_(fdt, offset); in fdt_offset_ptr() 98 int offset = startoffset; in fdt_next_tag() local 102 tagp = fdt_offset_ptr(fdt, offset, FDT_TAGSIZE); in fdt_next_tag() 106 offset += FDT_TAGSIZE; in fdt_next_tag() 113 p = fdt_offset_ptr(fdt, offset++, 1); in fdt_next_tag() [all …]
|
H A D | fdt_ro.c | 58 static int fdt_nodename_eq_(const void *fdt, int offset, in fdt_nodename_eq_() argument 62 const char *p = fdt_get_name(fdt, offset, &olen); in fdt_nodename_eq_() 95 int offset; in fdt_get_max_phandle() local 97 for (offset = fdt_next_node(fdt, -1, NULL);; in fdt_get_max_phandle() 98 offset = fdt_next_node(fdt, offset, NULL)) { in fdt_get_max_phandle() 101 if (offset == -FDT_ERR_NOTFOUND) in fdt_get_max_phandle() 104 if (offset < 0) in fdt_get_max_phandle() 107 phandle = fdt_get_phandle(fdt, offset); in fdt_get_max_phandle() 135 static int nextprop_(const void *fdt, int offset) in nextprop_() argument 141 tag = fdt_next_tag(fdt, offset, &nextoffset); in nextprop_() [all …]
|
/openbmc/u-boot/lib/libfdt/ |
H A D | fdt_ro.c | 17 static int _fdt_nodename_eq(const void *fdt, int offset, in _fdt_nodename_eq() argument 20 const char *p = fdt_offset_ptr(fdt, offset + FDT_TAGSIZE, len+1); in _fdt_nodename_eq() 53 int offset; in fdt_get_max_phandle() local 55 for (offset = fdt_next_node(fdt, -1, NULL);; in fdt_get_max_phandle() 56 offset = fdt_next_node(fdt, offset, NULL)) { in fdt_get_max_phandle() 59 if (offset == -FDT_ERR_NOTFOUND) in fdt_get_max_phandle() 62 if (offset < 0) in fdt_get_max_phandle() 65 phandle = fdt_get_phandle(fdt, offset); in fdt_get_max_phandle() 93 static int _nextprop(const void *fdt, int offset) in _nextprop() argument 99 tag = fdt_next_tag(fdt, offset, &nextoffset); in _nextprop() [all …]
|
/openbmc/linux/arch/arm/kernel/ |
H A D | module.c | 94 static u32 get_group_rem(u32 group, u32 *offset) in get_group_rem() argument 96 u32 val = *offset; in get_group_rem() 100 *offset = val; in get_group_rem() 126 s32 offset; in apply_relocate() local 132 offset = ELF32_R_SYM(rel->r_info); in apply_relocate() 133 if (offset < 0 || offset > (symsec->sh_size / sizeof(Elf32_Sym))) { in apply_relocate() 139 sym = ((Elf32_Sym *)symsec->sh_addr) + offset; in apply_relocate() 170 offset = __mem_to_opcode_arm(*(u32 *)loc); in apply_relocate() 171 offset = (offset & 0x00ffffff) << 2; in apply_relocate() 172 offset = sign_extend32(offset, 25); in apply_relocate() [all …]
|
/openbmc/u-boot/drivers/gpio/ |
H A D | sandbox.c | 25 static u8 *get_gpio_flags(struct udevice *dev, unsigned offset) in get_gpio_flags() argument 30 if (offset >= uc_priv->gpio_count) { in get_gpio_flags() 32 printf("sandbox_gpio: error: invalid gpio %u\n", offset); in get_gpio_flags() 36 return &state[offset].flags; in get_gpio_flags() 39 static int get_gpio_flag(struct udevice *dev, unsigned offset, int flag) in get_gpio_flag() argument 41 return (*get_gpio_flags(dev, offset) & flag) != 0; in get_gpio_flag() 44 static int set_gpio_flag(struct udevice *dev, unsigned offset, int flag, in set_gpio_flag() argument 47 u8 *gpio = get_gpio_flags(dev, offset); in set_gpio_flag() 61 int sandbox_gpio_get_value(struct udevice *dev, unsigned offset) in sandbox_gpio_get_value() argument 63 if (get_gpio_flag(dev, offset, GPIOF_OUTPUT)) in sandbox_gpio_get_value() [all …]
|
/openbmc/linux/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_hal.c | 44 u64 offset; in nitrox_config_emu_unit() local 58 offset = EMU_WD_INT_ENA_W1SX(i); in nitrox_config_emu_unit() 59 nitrox_write_csr(ndev, offset, emu_wd_int.value); in nitrox_config_emu_unit() 60 offset = EMU_GE_INT_ENA_W1SX(i); in nitrox_config_emu_unit() 61 nitrox_write_csr(ndev, offset, emu_ge_int.value); in nitrox_config_emu_unit() 70 u64 offset; in reset_pkt_input_ring() local 73 offset = NPS_PKT_IN_INSTR_CTLX(ring); in reset_pkt_input_ring() 74 pkt_in_ctl.value = nitrox_read_csr(ndev, offset); in reset_pkt_input_ring() 76 nitrox_write_csr(ndev, offset, pkt_in_ctl.value); in reset_pkt_input_ring() 81 pkt_in_ctl.value = nitrox_read_csr(ndev, offset); in reset_pkt_input_ring() [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-eic-sprd.c | 139 static void sprd_eic_update(struct gpio_chip *chip, unsigned int offset, in sprd_eic_update() argument 144 sprd_eic_offset_base(sprd_eic, offset / SPRD_EIC_PER_BANK_NR); in sprd_eic_update() 152 tmp |= BIT(SPRD_EIC_BIT(offset)); in sprd_eic_update() 154 tmp &= ~BIT(SPRD_EIC_BIT(offset)); in sprd_eic_update() 160 static int sprd_eic_read(struct gpio_chip *chip, unsigned int offset, u16 reg) in sprd_eic_read() argument 164 sprd_eic_offset_base(sprd_eic, offset / SPRD_EIC_PER_BANK_NR); in sprd_eic_read() 166 return !!(readl_relaxed(base + reg) & BIT(SPRD_EIC_BIT(offset))); in sprd_eic_read() 169 static int sprd_eic_request(struct gpio_chip *chip, unsigned int offset) in sprd_eic_request() argument 171 sprd_eic_update(chip, offset, SPRD_EIC_DBNC_DMSK, 1); in sprd_eic_request() 175 static void sprd_eic_free(struct gpio_chip *chip, unsigned int offset) in sprd_eic_free() argument [all …]
|
/openbmc/linux/scripts/dtc/libfdt/ |
H A D | fdt_ro.c | 13 static int fdt_nodename_eq_(const void *fdt, int offset, in fdt_nodename_eq_() argument 17 const char *p = fdt_get_name(fdt, offset, &olen); in fdt_nodename_eq_() 117 int offset = -1; in fdt_find_max_phandle() local 122 offset = fdt_next_node(fdt, offset, NULL); in fdt_find_max_phandle() 123 if (offset < 0) { in fdt_find_max_phandle() 124 if (offset == -FDT_ERR_NOTFOUND) in fdt_find_max_phandle() 127 return offset; in fdt_find_max_phandle() 130 value = fdt_get_phandle(fdt, offset); in fdt_find_max_phandle() 162 unsigned int offset = n * sizeof(struct fdt_reserve_entry); in fdt_mem_rsv() local 163 unsigned int absoffset = fdt_off_mem_rsvmap(fdt) + offset; in fdt_mem_rsv() [all …]
|
/openbmc/qemu/hw/m68k/ |
H A D | mcf5206.c | 289 uint16_t offset, unsigned size) in m5206_mbar_read() argument 291 if (offset >= 0x100 && offset < 0x120) { in m5206_mbar_read() 292 return m5206_timer_read(&s->timer[0], offset - 0x100); in m5206_mbar_read() 293 } else if (offset >= 0x120 && offset < 0x140) { in m5206_mbar_read() 294 return m5206_timer_read(&s->timer[1], offset - 0x120); in m5206_mbar_read() 295 } else if (offset >= 0x140 && offset < 0x160) { in m5206_mbar_read() 296 return mcf_uart_read(s->uart[0], offset - 0x140, size); in m5206_mbar_read() 297 } else if (offset >= 0x180 && offset < 0x1a0) { in m5206_mbar_read() 298 return mcf_uart_read(s->uart[1], offset - 0x180, size); in m5206_mbar_read() 300 switch (offset) { in m5206_mbar_read() [all …]
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | cpu_setup.h | 8 void __setup_cpu_power7(unsigned long offset, struct cpu_spec *spec); 9 void __setup_cpu_power8(unsigned long offset, struct cpu_spec *spec); 10 void __setup_cpu_power9(unsigned long offset, struct cpu_spec *spec); 11 void __setup_cpu_power10(unsigned long offset, struct cpu_spec *spec); 17 void __setup_cpu_e500v1(unsigned long offset, struct cpu_spec *spec); 18 void __setup_cpu_e500v2(unsigned long offset, struct cpu_spec *spec); 19 void __setup_cpu_e500mc(unsigned long offset, struct cpu_spec *spec); 20 void __setup_cpu_440ep(unsigned long offset, struct cpu_spec *spec); 21 void __setup_cpu_440epx(unsigned long offset, struct cpu_spec *spec); 22 void __setup_cpu_440gx(unsigned long offset, struct cpu_spec *spec); [all …]
|
/openbmc/linux/drivers/thunderbolt/ |
H A D | cap.c | 21 u32 value, offset; in tb_port_enable_tmu() local 29 offset = 0x26; in tb_port_enable_tmu() 31 offset = 0x2a; in tb_port_enable_tmu() 35 ret = tb_sw_read(sw, &value, TB_CFG_SWITCH, offset, 1); in tb_port_enable_tmu() 44 return tb_sw_write(sw, &value, TB_CFG_SWITCH, offset, 1); in tb_port_enable_tmu() 72 int tb_port_next_cap(struct tb_port *port, unsigned int offset) in tb_port_next_cap() argument 77 if (!offset) in tb_port_next_cap() 80 ret = tb_port_read(port, &header, TB_CFG_PORT, offset, 1); in tb_port_next_cap() 89 int offset = 0; in __tb_port_find_cap() local 95 offset = tb_port_next_cap(port, offset); in __tb_port_find_cap() [all …]
|
/openbmc/linux/arch/sh/boards/mach-microdev/ |
H A D | io.c | 55 void __iomem *microdev_ioport_map(unsigned long offset, unsigned int len) in microdev_ioport_map() argument 59 if ((offset >= IO_LAN91C111_BASE) && in microdev_ioport_map() 60 (offset < IO_LAN91C111_BASE + IO_LAN91C111_EXTENT)) { in microdev_ioport_map() 64 result = IO_LAN91C111_PHYS + offset - IO_LAN91C111_BASE; in microdev_ioport_map() 65 } else if ((offset >= IO_SUPERIO_BASE) && in microdev_ioport_map() 66 (offset < IO_SUPERIO_BASE + IO_SUPERIO_EXTENT)) { in microdev_ioport_map() 72 result = IO_SUPERIO_PHYS + (offset << 1); in microdev_ioport_map() 73 } else if (((offset >= IO_IDE1_BASE) && in microdev_ioport_map() 74 (offset < IO_IDE1_BASE + IO_IDE_EXTENT)) || in microdev_ioport_map() 75 (offset == IO_IDE1_MISC)) { in microdev_ioport_map() [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | tas2781-fmwlib.c | 78 unsigned char offset; member 213 int offset = 0; in tasdevice_rca_parser() local 228 fw_hdr->img_sz = get_unaligned_be32(&buf[offset]); in tasdevice_rca_parser() 229 offset += 4; in tasdevice_rca_parser() 239 fw_hdr->checksum = get_unaligned_be32(&buf[offset]); in tasdevice_rca_parser() 240 offset += 4; in tasdevice_rca_parser() 241 fw_hdr->binary_version_num = get_unaligned_be32(&buf[offset]); in tasdevice_rca_parser() 249 offset += 4; in tasdevice_rca_parser() 250 fw_hdr->drv_fw_version = get_unaligned_be32(&buf[offset]); in tasdevice_rca_parser() 251 offset += 8; in tasdevice_rca_parser() [all …]
|
/openbmc/linux/drivers/misc/ocxl/ |
H A D | mmio.c | 7 int ocxl_global_mmio_read32(struct ocxl_afu *afu, size_t offset, in ocxl_global_mmio_read32() argument 10 if (offset > afu->config.global_mmio_size - 4) in ocxl_global_mmio_read32() 20 *val = readl_be((char *)afu->global_mmio_ptr + offset); in ocxl_global_mmio_read32() 24 *val = readl((char *)afu->global_mmio_ptr + offset); in ocxl_global_mmio_read32() 32 int ocxl_global_mmio_read64(struct ocxl_afu *afu, size_t offset, in ocxl_global_mmio_read64() argument 35 if (offset > afu->config.global_mmio_size - 8) in ocxl_global_mmio_read64() 45 *val = readq_be((char *)afu->global_mmio_ptr + offset); in ocxl_global_mmio_read64() 49 *val = readq((char *)afu->global_mmio_ptr + offset); in ocxl_global_mmio_read64() 57 int ocxl_global_mmio_write32(struct ocxl_afu *afu, size_t offset, in ocxl_global_mmio_write32() argument 60 if (offset > afu->config.global_mmio_size - 4) in ocxl_global_mmio_write32() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath10k/ |
H A D | qmi_wlfw_v01.c | 18 .offset = offsetof(struct wlfw_ce_tgt_pipe_cfg_s_v01, 27 .offset = offsetof(struct wlfw_ce_tgt_pipe_cfg_s_v01, 36 .offset = offsetof(struct wlfw_ce_tgt_pipe_cfg_s_v01, 45 .offset = offsetof(struct wlfw_ce_tgt_pipe_cfg_s_v01, 54 .offset = offsetof(struct wlfw_ce_tgt_pipe_cfg_s_v01, 67 .offset = offsetof(struct wlfw_ce_svc_pipe_cfg_s_v01, 76 .offset = offsetof(struct wlfw_ce_svc_pipe_cfg_s_v01, 85 .offset = offsetof(struct wlfw_ce_svc_pipe_cfg_s_v01, 98 .offset = offsetof(struct wlfw_shadow_reg_cfg_s_v01, 107 .offset = offsetof(struct wlfw_shadow_reg_cfg_s_v01, [all …]
|
/openbmc/u-boot/drivers/pinctrl/rockchip/ |
H A D | pinctrl-rockchip.h | 50 int offset; member 90 int offset; member 124 { .offset = -1 }, \ 125 { .offset = -1 }, \ 126 { .offset = -1 }, \ 127 { .offset = -1 }, \ 137 { .type = iom0, .offset = -1 }, \ 138 { .type = iom1, .offset = -1 }, \ 139 { .type = iom2, .offset = -1 }, \ 140 { .type = iom3, .offset = -1 }, \ [all …]
|
/openbmc/linux/drivers/net/dsa/sja1105/ |
H A D | sja1105_ethtool.c | 83 int offset; member 94 .offset = 0, 101 .offset = 0x0, 108 .offset = 0x0, 115 .offset = 0x0, 123 .offset = 0x1, 130 .offset = 0x1, 137 .offset = 0x1, 144 .offset = 0x1, 151 .offset = 0x1, [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 146.out | 29 …, "depth": 0, "present": true, "zero": false, "data": true, "compressed": false, "offset": OFFSET}, 30 …, "depth": 0, "present": true, "zero": false, "data": true, "compressed": false, "offset": OFFSET}, 31 …, "depth": 0, "present": true, "zero": false, "data": true, "compressed": false, "offset": OFFSET}, 32 …, "depth": 0, "present": true, "zero": false, "data": true, "compressed": false, "offset": OFFSET}, 33 …, "depth": 0, "present": true, "zero": false, "data": true, "compressed": false, "offset": OFFSET}, 34 …, "depth": 0, "present": true, "zero": false, "data": true, "compressed": false, "offset": OFFSET}, 35 …, "depth": 0, "present": true, "zero": false, "data": true, "compressed": false, "offset": OFFSET}, 36 …, "depth": 0, "present": true, "zero": false, "data": true, "compressed": false, "offset": OFFSET}, 37 …, "depth": 0, "present": true, "zero": false, "data": true, "compressed": false, "offset": OFFSET}, 38 …, "depth": 0, "present": true, "zero": false, "data": true, "compressed": false, "offset": OFFSET}, [all …]
|
H A D | common.pattern | 65 local offset=$2 77 io "$op" $offset $cluster_size $cluster_size $num_small 78 offset=$((offset + num_small * $cluster_size)) 81 io "$op" $((offset + $half_cluster)) $half_cluster $cluster_size $num_small 82 offset=$((offset + num_small * $cluster_size)) 85 io "$op" $offset $half_cluster $cluster_size $num_small 86 offset=$((offset + num_small * $cluster_size)) 89 io "$op" $((offset + $quarter_cluster)) $half_cluster $cluster_size $num_small 90 offset=$((offset + num_small * $cluster_size)) 93 io "$op" $((offset + $half_cluster)) $((cluster_size * 2)) $((cluster_size * 3)) $num_medium [all …]
|