/openbmc/u-boot/arch/arm/mach-omap2/ |
H A D | fdt-common.c | 26 int offs; in ft_hs_disable_rng() local 31 offs = fdt_path_offset(fdt, path); in ft_hs_disable_rng() 32 if (offs < 0) { in ft_hs_disable_rng() 36 ret = fdt_setprop_string(fdt, offs, in ft_hs_disable_rng() 74 int offs, len; in ft_hs_fixup_dram() local 83 offs = fdt_path_offset(fdt, path); in ft_hs_fixup_dram() 84 if (offs >= 0) in ft_hs_fixup_dram() 85 fdt_del_node(fdt, offs); in ft_hs_fixup_dram() 89 offs = fdt_path_offset(fdt, path); in ft_hs_fixup_dram() 90 if (offs < 0) { in ft_hs_fixup_dram() [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-devtrace-io.h | 18 TP_PROTO(const struct device *dev, u32 offs, u32 val), 19 TP_ARGS(dev, offs, val), 22 __field(u32, offs) 27 __entry->offs = offs; 31 __get_str(dev), __entry->offs, __entry->val) 35 TP_PROTO(const struct device *dev, u32 offs, u8 val), 36 TP_ARGS(dev, offs, val), 39 __field(u32, offs) 44 __entry->offs = offs; 48 __get_str(dev), __entry->offs, __entry->val) [all …]
|
/openbmc/linux/fs/ubifs/ |
H A D | scan.c | 58 int offs, int quiet) in ubifs_scan_a_node() argument 66 dbg_scan("hit empty space at LEB %d:%d", lnum, offs); in ubifs_scan_a_node() 77 dbg_ntype(ch->node_type), lnum, offs); in ubifs_scan_a_node() 79 if (ubifs_check_node(c, buf, len, lnum, offs, quiet, 1)) in ubifs_scan_a_node() 89 offs + node_len + pad_len > c->leb_size) { in ubifs_scan_a_node() 92 lnum, offs); in ubifs_scan_a_node() 102 offs, offs + node_len + pad_len); in ubifs_scan_a_node() 107 lnum, offs, ALIGN(offs + node_len + pad_len, 8)); in ubifs_scan_a_node() 126 int offs, void *sbuf) in ubifs_start_scan() argument 131 dbg_scan("scan LEB %d:%d", lnum, offs); in ubifs_start_scan() [all …]
|
H A D | io.c | 87 int ubifs_leb_read(const struct ubifs_info *c, int lnum, void *buf, int offs, in ubifs_leb_read() argument 92 err = ubi_read(c->ubi, lnum, buf, offs, len); in ubifs_leb_read() 99 len, lnum, offs, err); in ubifs_leb_read() 105 int ubifs_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs, in ubifs_leb_write() argument 114 err = ubi_leb_write(c->ubi, lnum, buf, offs, len); in ubifs_leb_write() 116 err = dbg_leb_write(c, lnum, buf, offs, len); in ubifs_leb_write() 119 len, lnum, offs, err); in ubifs_leb_write() 245 int lnum, int offs, int quiet, int must_chk_crc) in ubifs_check_node() argument 251 ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_check_node() 252 ubifs_assert(c, !(offs & 7) && offs < c->leb_size); in ubifs_check_node() [all …]
|
H A D | recovery.c | 101 int err, offs, len; in get_master_node() local 113 offs = 0; in get_master_node() 116 while (offs + UBIFS_MST_NODE_SZ <= c->leb_size) { in get_master_node() 121 offs += sz; in get_master_node() 126 if (offs) { in get_master_node() 129 offs -= sz; in get_master_node() 132 ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 1); in get_master_node() 133 if (ret != SCANNED_A_NODE && offs) { in get_master_node() 135 offs -= sz; in get_master_node() 138 ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 1); in get_master_node() [all …]
|
H A D | lpt_commit.c | 184 int lnum, offs, len, alen, done_lsave, done_ltab, err; in layout_cnodes() local 194 offs = c->nhead_offs; in layout_cnodes() 198 if (!done_lsave && offs + c->lsave_sz <= c->leb_size) { in layout_cnodes() 201 c->lsave_offs = offs; in layout_cnodes() 202 offs += c->lsave_sz; in layout_cnodes() 206 if (offs + c->ltab_sz <= c->leb_size) { in layout_cnodes() 209 c->ltab_offs = offs; in layout_cnodes() 210 offs += c->ltab_sz; in layout_cnodes() 222 while (offs + len > c->leb_size) { in layout_cnodes() 223 alen = ALIGN(offs, c->min_io_size); in layout_cnodes() [all …]
|
/openbmc/u-boot/fs/ubifs/ |
H A D | scan.c | 62 int offs, int quiet) in ubifs_scan_a_node() argument 70 dbg_scan("hit empty space at LEB %d:%d", lnum, offs); in ubifs_scan_a_node() 81 dbg_ntype(ch->node_type), lnum, offs); in ubifs_scan_a_node() 83 if (ubifs_check_node(c, buf, lnum, offs, quiet, 1)) in ubifs_scan_a_node() 93 offs + node_len + pad_len > c->leb_size) { in ubifs_scan_a_node() 96 lnum, offs); in ubifs_scan_a_node() 106 offs, offs + node_len + pad_len); in ubifs_scan_a_node() 111 lnum, offs, ALIGN(offs + node_len + pad_len, 8)); in ubifs_scan_a_node() 130 int offs, void *sbuf) in ubifs_start_scan() argument 135 dbg_scan("scan LEB %d:%d", lnum, offs); in ubifs_start_scan() [all …]
|
H A D | io.c | 92 int ubifs_leb_read(const struct ubifs_info *c, int lnum, void *buf, int offs, in ubifs_leb_read() argument 97 err = ubi_read(c->ubi, lnum, buf, offs, len); in ubifs_leb_read() 104 len, lnum, offs, err); in ubifs_leb_read() 110 int ubifs_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs, in ubifs_leb_write() argument 119 err = ubi_leb_write(c->ubi, lnum, buf, offs, len); in ubifs_leb_write() 122 err = dbg_leb_write(c, lnum, buf, offs, len); in ubifs_leb_write() 126 len, lnum, offs, err); in ubifs_leb_write() 239 int offs, int quiet, int must_chk_crc) in ubifs_check_node() argument 245 ubifs_assert(lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_check_node() 246 ubifs_assert(!(offs & 7) && offs < c->leb_size); in ubifs_check_node() [all …]
|
H A D | recovery.c | 105 int err, offs, len; in get_master_node() local 117 offs = 0; in get_master_node() 120 while (offs + UBIFS_MST_NODE_SZ <= c->leb_size) { in get_master_node() 125 offs += sz; in get_master_node() 130 if (offs) { in get_master_node() 133 offs -= sz; in get_master_node() 136 ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 1); in get_master_node() 137 if (ret != SCANNED_A_NODE && offs) { in get_master_node() 139 offs -= sz; in get_master_node() 142 ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 1); in get_master_node() [all …]
|
H A D | lpt_commit.c | 191 int lnum, offs, len, alen, done_lsave, done_ltab, err; in layout_cnodes() local 201 offs = c->nhead_offs; in layout_cnodes() 205 if (!done_lsave && offs + c->lsave_sz <= c->leb_size) { in layout_cnodes() 208 c->lsave_offs = offs; in layout_cnodes() 209 offs += c->lsave_sz; in layout_cnodes() 213 if (offs + c->ltab_sz <= c->leb_size) { in layout_cnodes() 216 c->ltab_offs = offs; in layout_cnodes() 217 offs += c->ltab_sz; in layout_cnodes() 229 while (offs + len > c->leb_size) { in layout_cnodes() 230 alen = ALIGN(offs, c->min_io_size); in layout_cnodes() [all …]
|
H A D | replay.c | 50 int offs; member 217 r->lnum, r->offs, r->len, r->deletion, r->sqnum); in apply_replay_entry() 226 err = ubifs_tnc_add_nm(c, &r->key, r->lnum, r->offs, in apply_replay_entry() 246 err = ubifs_tnc_add(c, &r->key, r->lnum, r->offs, in apply_replay_entry() 349 static int insert_node(struct ubifs_info *c, int lnum, int offs, int len, in insert_node() argument 356 dbg_mntk(key, "add LEB %d:%d, key ", lnum, offs); in insert_node() 368 r->offs = offs; in insert_node() 397 static int insert_dent(struct ubifs_info *c, int lnum, int offs, int len, in insert_dent() argument 404 dbg_mntk(key, "add LEB %d:%d, key ", lnum, offs); in insert_dent() 421 r->offs = offs; in insert_dent() [all …]
|
/openbmc/linux/drivers/scsi/aic94xx/ |
H A D | aic94xx_reg.h | 55 u32 offs, int count); 57 u32 offs, int count); 61 u32 offs) \ 64 type val = read##S (io_handle->addr + (unsigned long) offs); \ 75 u32 offs, type val) \ 78 write##S (val, io_handle->addr + (unsigned long) offs); \ 89 u16 offs) \ 91 asd_write_reg_word(asd_ha, ALTCIOADR, MnDDB_SITE + offs); \ 101 u16 offs) in asd_ddbsite_read_byte() argument 103 if (offs & 1) in asd_ddbsite_read_byte() [all …]
|
H A D | aic94xx_reg.c | 18 unsigned long offs, u8 val) in asd_write_byte() argument 22 (unsigned long)asd_ha->io_handle[0].addr + (offs & 0xFF)); in asd_write_byte() 24 writeb(val, asd_ha->io_handle[0].addr + offs); in asd_write_byte() 29 unsigned long offs, u16 val) in asd_write_word() argument 33 (unsigned long)asd_ha->io_handle[0].addr + (offs & 0xFF)); in asd_write_word() 35 writew(val, asd_ha->io_handle[0].addr + offs); in asd_write_word() 40 unsigned long offs, u32 val) in asd_write_dword() argument 44 (unsigned long)asd_ha->io_handle[0].addr + (offs & 0xFF)); in asd_write_dword() 46 writel(val, asd_ha->io_handle[0].addr + offs); in asd_write_dword() 52 static u8 asd_read_byte(struct asd_ha_struct *asd_ha, unsigned long offs) in asd_read_byte() argument [all …]
|
/openbmc/linux/drivers/misc/mei/ |
H A D | mei-trace.h | 20 TP_PROTO(const struct device *dev, const char *reg, u32 offs, u32 val), 21 TP_ARGS(dev, reg, offs, val), 25 __field(u32, offs) 31 __entry->offs = offs; 35 __get_str(dev), __entry->reg, __entry->offs, __entry->val) 39 TP_PROTO(const struct device *dev, const char *reg, u32 offs, u32 val), 40 TP_ARGS(dev, reg, offs, val), 44 __field(u32, offs) 50 __entry->offs = offs; 54 __get_str(dev), __entry->reg, __entry->offs, __entry->val) [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-syscon.c | 59 unsigned int val, offs; in syscon_gpio_get() local 62 offs = priv->dreg_offset + priv->data->dat_bit_offset + offset; in syscon_gpio_get() 65 (offs / SYSCON_REG_BITS) * SYSCON_REG_SIZE, &val); in syscon_gpio_get() 69 return !!(val & BIT(offs % SYSCON_REG_BITS)); in syscon_gpio_get() 75 unsigned int offs; in syscon_gpio_set() local 77 offs = priv->dreg_offset + priv->data->dat_bit_offset + offset; in syscon_gpio_set() 80 (offs / SYSCON_REG_BITS) * SYSCON_REG_SIZE, in syscon_gpio_set() 81 BIT(offs % SYSCON_REG_BITS), in syscon_gpio_set() 82 val ? BIT(offs % SYSCON_REG_BITS) : 0); in syscon_gpio_set() 90 unsigned int offs; in syscon_gpio_dir_in() local [all …]
|
/openbmc/linux/drivers/mtd/tests/ |
H A D | stresstest.c | 60 static int rand_len(int offs) in rand_len() argument 62 return get_random_u32_below(bufsize - offs); in rand_len() 68 int offs = rand_offs(); in do_read() local 69 int len = rand_len(offs); in do_read() 73 if (offs >= mtd->erasesize) in do_read() 74 offs -= mtd->erasesize; in do_read() 75 if (offs + len > mtd->erasesize) in do_read() 76 len = mtd->erasesize - offs; in do_read() 78 addr = (loff_t)eb * mtd->erasesize + offs; in do_read() 84 int eb = rand_eb(), offs, err, len; in do_write() local [all …]
|
/openbmc/linux/drivers/net/ethernet/altera/ |
H A D | altera_utils.c | 9 void tse_set_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask) in tse_set_bit() argument 11 u32 value = csrrd32(ioaddr, offs); in tse_set_bit() 13 csrwr32(value, ioaddr, offs); in tse_set_bit() 16 void tse_clear_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask) in tse_clear_bit() argument 18 u32 value = csrrd32(ioaddr, offs); in tse_clear_bit() 20 csrwr32(value, ioaddr, offs); in tse_clear_bit() 23 int tse_bit_is_set(void __iomem *ioaddr, size_t offs, u32 bit_mask) in tse_bit_is_set() argument 25 u32 value = csrrd32(ioaddr, offs); in tse_bit_is_set() 29 int tse_bit_is_clear(void __iomem *ioaddr, size_t offs, u32 bit_mask) in tse_bit_is_clear() argument 31 u32 value = csrrd32(ioaddr, offs); in tse_bit_is_clear()
|
/openbmc/u-boot/arch/arm/mach-omap2/omap5/ |
H A D | fdt.c | 33 int offs; in ft_hs_fixup_crossbar() local 52 offs = fdt_path_offset(fdt, path); in ft_hs_fixup_crossbar() 53 if (offs < 0) { in ft_hs_fixup_crossbar() 59 p_data = fdt_getprop(fdt, offs, "ti,irqs-skip", &len); in ft_hs_fixup_crossbar() 76 fdt_delprop(fdt, offs, "ti,irqs-skip"); in ft_hs_fixup_crossbar() 77 ret = fdt_setprop(fdt, offs, "ti,irqs-skip", in ft_hs_fixup_crossbar() 97 int offs; in ft_hs_fixup_sram() local 107 offs = fdt_path_offset(fdt, path); in ft_hs_fixup_sram() 108 if (offs < 0) { in ft_hs_fixup_sram() 118 fdt_delprop(fdt, offs, "reg"); in ft_hs_fixup_sram() [all …]
|
/openbmc/linux/drivers/pinctrl/samsung/ |
H A D | pinctrl-exynos.h | 63 #define EXYNOS_PIN_BANK_EINTG(pins, reg, id, offs) \ argument 69 .eint_offset = offs, \ 73 #define EXYNOS_PIN_BANK_EINTW(pins, reg, id, offs) \ argument 79 .eint_offset = offs, \ 83 #define EXYNOS5433_PIN_BANK_EINTG(pins, reg, id, offs) \ argument 89 .eint_offset = offs, \ 93 #define EXYNOS5433_PIN_BANK_EINTW(pins, reg, id, offs) \ argument 99 .eint_offset = offs, \ 103 #define EXYNOS5433_PIN_BANK_EINTW_EXT(pins, reg, id, offs, pctl_idx) \ argument 109 .eint_offset = offs, \ [all …]
|
/openbmc/linux/lib/ |
H A D | logic_iomem.c | 106 long offs; in ioremap() local 111 offs = rreg->ops->map(offset - found->res->start, in ioremap() 114 if (offs < 0) { in ioremap() 124 ret = (void __iomem *)(IOREMAP_BIAS + (i << AREA_SHIFT) + offs); in ioremap() 257 unsigned long offs, start; in memset_io() local 271 for (offs = 0; offs < size; offs++) in memset_io() 272 area->ops->write(area->priv, start + offs, 1, value); in memset_io() 281 unsigned long offs, start; in memcpy_fromio() local 295 for (offs = 0; offs < size; offs++) in memcpy_fromio() 296 buf[offs] = area->ops->read(area->priv, start + offs, 1); in memcpy_fromio() [all …]
|
/openbmc/linux/tools/testing/selftests/arm64/signal/testcases/ |
H A D | testcases.c | 12 size_t offs = 0; in get_header() local 18 while (offs <= resv_sz - HDR_SZ && in get_header() 20 offs += head->size; in get_header() 26 *offset = offs; in get_header() 134 size_t offs = 0; in validate_reserved() local 150 while (head && !terminated && offs < resv_sz) { in validate_reserved() 166 offs = 0; in validate_reserved() 253 offs += head->size; in validate_reserved() 254 if (resv_sz < offs + sizeof(*head)) { in validate_reserved() 313 size_t offs = 0; in get_starting_head() local [all …]
|
/openbmc/linux/drivers/net/ethernet/renesas/ |
H A D | rcar_gen4_ptp.c | 41 iowrite32(addend, ptp_priv->addr + ptp_priv->offs->increment); in rcar_gen4_ptp_adjfine() 52 ts->tv_nsec = ioread32(ptp_priv->addr + ptp_priv->offs->monitor_t0); in _rcar_gen4_ptp_gettime() 53 ts->tv_sec = ioread32(ptp_priv->addr + ptp_priv->offs->monitor_t1) | in _rcar_gen4_ptp_gettime() 54 ((s64)ioread32(ptp_priv->addr + ptp_priv->offs->monitor_t2) << 32); in _rcar_gen4_ptp_gettime() 76 iowrite32(1, ptp_priv->addr + ptp_priv->offs->disable); in _rcar_gen4_ptp_settime() 77 iowrite32(0, ptp_priv->addr + ptp_priv->offs->config_t2); in _rcar_gen4_ptp_settime() 78 iowrite32(0, ptp_priv->addr + ptp_priv->offs->config_t1); in _rcar_gen4_ptp_settime() 79 iowrite32(0, ptp_priv->addr + ptp_priv->offs->config_t0); in _rcar_gen4_ptp_settime() 80 iowrite32(1, ptp_priv->addr + ptp_priv->offs->enable); in _rcar_gen4_ptp_settime() 81 iowrite32(ts->tv_sec >> 32, ptp_priv->addr + ptp_priv->offs->config_t2); in _rcar_gen4_ptp_settime() [all …]
|
/openbmc/linux/drivers/mtd/nand/ |
H A D | bbt.c | 77 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; in nanddev_bbt_get_block_status() local 83 status = pos[0] >> offs; in nanddev_bbt_get_block_status() 84 if (bits_per_block + offs > BITS_PER_LONG) in nanddev_bbt_get_block_status() 85 status |= pos[1] << (BITS_PER_LONG - offs); in nanddev_bbt_get_block_status() 110 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; in nanddev_bbt_set_block_status() local 116 pos[0] &= ~GENMASK(offs + bits_per_block - 1, offs); in nanddev_bbt_set_block_status() 117 pos[0] |= val << offs; in nanddev_bbt_set_block_status() 119 if (bits_per_block + offs > BITS_PER_LONG) { in nanddev_bbt_set_block_status() 120 unsigned int rbits = bits_per_block + offs - BITS_PER_LONG; in nanddev_bbt_set_block_status()
|
/openbmc/u-boot/drivers/mtd/nand/ |
H A D | bbt.c | 81 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; in nanddev_bbt_get_block_status() local 87 status = pos[0] >> offs; in nanddev_bbt_get_block_status() 88 if (bits_per_block + offs > BITS_PER_LONG) in nanddev_bbt_get_block_status() 89 status |= pos[1] << (BITS_PER_LONG - offs); in nanddev_bbt_get_block_status() 114 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; in nanddev_bbt_set_block_status() local 120 pos[0] &= ~GENMASK(offs + bits_per_block - 1, offs); in nanddev_bbt_set_block_status() 121 pos[0] |= val << offs; in nanddev_bbt_set_block_status() 123 if (bits_per_block + offs > BITS_PER_LONG) { in nanddev_bbt_set_block_status() 124 unsigned int rbits = bits_per_block + offs - BITS_PER_LONG; in nanddev_bbt_set_block_status()
|
/openbmc/linux/crypto/async_tx/ |
H A D | async_raid6_recov.c | 154 struct page **blocks, unsigned int *offs, in __2data_recov_4() argument 169 p_off = offs[disks-2]; in __2data_recov_4() 171 q_off = offs[disks-1]; in __2data_recov_4() 174 a_off = offs[faila]; in __2data_recov_4() 176 b_off = offs[failb]; in __2data_recov_4() 204 struct page **blocks, unsigned int *offs, in __2data_recov_5() argument 232 p_off = offs[disks-2]; in __2data_recov_5() 234 q_off = offs[disks-1]; in __2data_recov_5() 236 g_off = offs[good]; in __2data_recov_5() 243 dp_off = offs[faila]; in __2data_recov_5() [all …]
|