| /OK3568_Linux_fs/u-boot/arch/arm/mach-omap2/ |
| H A D | fdt-common.c | 27 int offs; in ft_hs_disable_rng() local 32 offs = fdt_path_offset(fdt, path); in ft_hs_disable_rng() 33 if (offs < 0) { in ft_hs_disable_rng() 37 ret = fdt_setprop_string(fdt, offs, in ft_hs_disable_rng() 75 int offs, len; in ft_hs_fixup_dram() local 84 offs = fdt_path_offset(fdt, path); in ft_hs_fixup_dram() 85 if (offs >= 0) in ft_hs_fixup_dram() 86 fdt_del_node(fdt, offs); in ft_hs_fixup_dram() 90 offs = fdt_path_offset(fdt, path); in ft_hs_fixup_dram() 91 if (offs < 0) { in ft_hs_fixup_dram() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/intel/iwlwifi/ |
| H A D | iwl-devtrace-io.h | 23 TP_PROTO(const struct device *dev, u32 offs, u32 val), 24 TP_ARGS(dev, offs, val), 27 __field(u32, offs) 32 __entry->offs = offs; 36 __get_str(dev), __entry->offs, __entry->val) 40 TP_PROTO(const struct device *dev, u32 offs, u8 val), 41 TP_ARGS(dev, offs, val), 44 __field(u32, offs) 49 __entry->offs = offs; 53 __get_str(dev), __entry->offs, __entry->val) [all …]
|
| /OK3568_Linux_fs/kernel/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, 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 | 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 | 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() 226 int offs, int quiet, int must_chk_crc) in ubifs_check_node() argument 232 ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_check_node() 233 ubifs_assert(c, !(offs & 7) && offs < c->leb_size); in ubifs_check_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 …]
|
| H A D | tnc.c | 70 static int insert_old_idx(struct ubifs_info *c, int lnum, int offs) in insert_old_idx() argument 79 old_idx->offs = offs; in insert_old_idx() 89 else if (offs < o->offs) in insert_old_idx() 91 else if (offs > o->offs) in insert_old_idx() 118 return insert_old_idx(c, zbr->lnum, zbr->offs); in insert_old_idx_znode() 122 c->zroot.offs); in insert_old_idx_znode() 143 err = insert_old_idx(c, zbr->lnum, zbr->offs); in ins_clr_old_idx_znode() 147 zbr->offs = 0; in ins_clr_old_idx_znode() 152 err = insert_old_idx(c, c->zroot.lnum, c->zroot.offs); in ins_clr_old_idx_znode() 156 c->zroot.offs = 0; in ins_clr_old_idx_znode() [all …]
|
| /OK3568_Linux_fs/u-boot/fs/ubifs/ |
| H A D | scan.c | 63 int offs, int quiet) in ubifs_scan_a_node() argument 71 dbg_scan("hit empty space at LEB %d:%d", lnum, offs); in ubifs_scan_a_node() 82 dbg_ntype(ch->node_type), lnum, offs); in ubifs_scan_a_node() 84 if (ubifs_check_node(c, buf, lnum, offs, quiet, 1)) in ubifs_scan_a_node() 94 offs + node_len + pad_len > c->leb_size) { in ubifs_scan_a_node() 97 lnum, offs); in ubifs_scan_a_node() 107 offs, offs + node_len + pad_len); in ubifs_scan_a_node() 112 lnum, offs, ALIGN(offs + node_len + pad_len, 8)); in ubifs_scan_a_node() 131 int offs, void *sbuf) in ubifs_start_scan() argument 136 dbg_scan("scan LEB %d:%d", lnum, offs); in ubifs_start_scan() [all …]
|
| H A D | io.c | 93 int ubifs_leb_read(const struct ubifs_info *c, int lnum, void *buf, int offs, in ubifs_leb_read() argument 98 err = ubi_read(c->ubi, lnum, buf, offs, len); in ubifs_leb_read() 105 len, lnum, offs, err); in ubifs_leb_read() 111 int ubifs_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs, in ubifs_leb_write() argument 120 err = ubi_leb_write(c->ubi, lnum, buf, offs, len); in ubifs_leb_write() 123 err = dbg_leb_write(c, lnum, buf, offs, len); in ubifs_leb_write() 127 len, lnum, offs, err); in ubifs_leb_write() 240 int offs, int quiet, int must_chk_crc) in ubifs_check_node() argument 246 ubifs_assert(lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_check_node() 247 ubifs_assert(!(offs & 7) && offs < c->leb_size); in ubifs_check_node() [all …]
|
| H A D | recovery.c | 106 int err, offs, len; in get_master_node() local 118 offs = 0; in get_master_node() 121 while (offs + UBIFS_MST_NODE_SZ <= c->leb_size) { in get_master_node() 126 offs += sz; in get_master_node() 131 if (offs) { in get_master_node() 134 offs -= sz; in get_master_node() 137 ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 1); in get_master_node() 138 if (ret != SCANNED_A_NODE && offs) { in get_master_node() 140 offs -= sz; in get_master_node() 143 ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 1); in get_master_node() [all …]
|
| H A D | lpt_commit.c | 192 int lnum, offs, len, alen, done_lsave, done_ltab, err; in layout_cnodes() local 202 offs = c->nhead_offs; in layout_cnodes() 206 if (!done_lsave && offs + c->lsave_sz <= c->leb_size) { in layout_cnodes() 209 c->lsave_offs = offs; in layout_cnodes() 210 offs += c->lsave_sz; in layout_cnodes() 214 if (offs + c->ltab_sz <= c->leb_size) { in layout_cnodes() 217 c->ltab_offs = offs; in layout_cnodes() 218 offs += c->ltab_sz; in layout_cnodes() 230 while (offs + len > c->leb_size) { in layout_cnodes() 231 alen = ALIGN(offs, c->min_io_size); in layout_cnodes() [all …]
|
| H A D | replay.c | 51 int offs; member 218 r->lnum, r->offs, r->len, r->deletion, r->sqnum); in apply_replay_entry() 227 err = ubifs_tnc_add_nm(c, &r->key, r->lnum, r->offs, in apply_replay_entry() 247 err = ubifs_tnc_add(c, &r->key, r->lnum, r->offs, in apply_replay_entry() 350 static int insert_node(struct ubifs_info *c, int lnum, int offs, int len, in insert_node() argument 357 dbg_mntk(key, "add LEB %d:%d, key ", lnum, offs); in insert_node() 369 r->offs = offs; in insert_node() 398 static int insert_dent(struct ubifs_info *c, int lnum, int offs, int len, in insert_dent() argument 405 dbg_mntk(key, "add LEB %d:%d, key ", lnum, offs); in insert_dent() 422 r->offs = offs; in insert_dent() [all …]
|
| H A D | tnc.c | 50 int len, int lnum, int offs); 77 static int insert_old_idx(struct ubifs_info *c, int lnum, int offs) in insert_old_idx() argument 86 old_idx->offs = offs; in insert_old_idx() 96 else if (offs < o->offs) in insert_old_idx() 98 else if (offs > o->offs) in insert_old_idx() 125 return insert_old_idx(c, zbr->lnum, zbr->offs); in insert_old_idx_znode() 129 c->zroot.offs); in insert_old_idx_znode() 150 err = insert_old_idx(c, zbr->lnum, zbr->offs); in ins_clr_old_idx_znode() 154 zbr->offs = 0; in ins_clr_old_idx_znode() 159 err = insert_old_idx(c, c->zroot.lnum, c->zroot.offs); in ins_clr_old_idx_znode() [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/drivers/mtd/tests/ |
| H A D | stresstest.c | 58 unsigned int offs; in rand_offs() local 60 offs = prandom_u32(); in rand_offs() 61 offs %= bufsize; in rand_offs() 62 return offs; in rand_offs() 65 static int rand_len(int offs) in rand_len() argument 70 len %= (bufsize - offs); in rand_len() 77 int offs = rand_offs(); in do_read() local 78 int len = rand_len(offs); in do_read() 82 if (offs >= mtd->erasesize) in do_read() 83 offs -= mtd->erasesize; in do_read() [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/drivers/gpio/ |
| H A D | gpio-syscon.c | 61 unsigned int val, offs; in syscon_gpio_get() local 64 offs = priv->dreg_offset + priv->data->dat_bit_offset + offset; in syscon_gpio_get() 67 (offs / SYSCON_REG_BITS) * SYSCON_REG_SIZE, &val); in syscon_gpio_get() 71 return !!(val & BIT(offs % SYSCON_REG_BITS)); in syscon_gpio_get() 77 unsigned int offs; in syscon_gpio_set() local 79 offs = priv->dreg_offset + priv->data->dat_bit_offset + offset; in syscon_gpio_set() 82 (offs / SYSCON_REG_BITS) * SYSCON_REG_SIZE, in syscon_gpio_set() 83 BIT(offs % SYSCON_REG_BITS), in syscon_gpio_set() 84 val ? BIT(offs % SYSCON_REG_BITS) : 0); in syscon_gpio_set() 92 unsigned int offs; in syscon_gpio_dir_in() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdkfd/ |
| H A D | kfd_topology.c | 213 #define sysfs_show_gen_prop(buffer, offs, fmt, ...) \ argument 214 (offs += snprintf(buffer+offs, PAGE_SIZE-offs, \ 216 #define sysfs_show_32bit_prop(buffer, offs, name, value) \ argument 217 sysfs_show_gen_prop(buffer, offs, "%s %u\n", name, value) 218 #define sysfs_show_64bit_prop(buffer, offs, name, value) \ argument 219 sysfs_show_gen_prop(buffer, offs, "%s %llu\n", name, value) 220 #define sysfs_show_32bit_val(buffer, offs, value) \ argument 221 sysfs_show_gen_prop(buffer, offs, "%u\n", value) 222 #define sysfs_show_str_val(buffer, offs, value) \ argument 223 sysfs_show_gen_prop(buffer, offs, "%s\n", value) [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/arm64/signal/testcases/ |
| H A D | testcases.c | 8 size_t offs = 0; in get_header() local 14 while (offs <= resv_sz - HDR_SZ && in get_header() 16 offs += head->size; in get_header() 22 *offset = offs; in get_header() 56 size_t offs = 0; in validate_reserved() local 65 while (head && !terminated && offs < resv_sz) { in validate_reserved() 131 offs += head->size; in validate_reserved() 132 if (resv_sz < offs + sizeof(*head)) { in validate_reserved() 174 size_t offs = 0; in get_starting_head() local 177 head = get_terminator(shead, resv_sz, &offs); in get_starting_head() [all …]
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-omap2/omap5/ |
| H A D | fdt.c | 34 int offs; in ft_hs_fixup_crossbar() local 53 offs = fdt_path_offset(fdt, path); in ft_hs_fixup_crossbar() 54 if (offs < 0) { in ft_hs_fixup_crossbar() 60 p_data = fdt_getprop(fdt, offs, "ti,irqs-skip", &len); in ft_hs_fixup_crossbar() 77 fdt_delprop(fdt, offs, "ti,irqs-skip"); in ft_hs_fixup_crossbar() 78 ret = fdt_setprop(fdt, offs, "ti,irqs-skip", in ft_hs_fixup_crossbar() 98 int offs; in ft_hs_fixup_sram() local 108 offs = fdt_path_offset(fdt, path); in ft_hs_fixup_sram() 109 if (offs < 0) { in ft_hs_fixup_sram() 119 fdt_delprop(fdt, offs, "reg"); in ft_hs_fixup_sram() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/ |
| H A D | bbt.c | 80 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; in nanddev_bbt_get_block_status() local 86 status = pos[0] >> offs; in nanddev_bbt_get_block_status() 87 if (bits_per_block + offs > BITS_PER_LONG) in nanddev_bbt_get_block_status() 88 status |= pos[1] << (BITS_PER_LONG - offs); in nanddev_bbt_get_block_status() 113 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; in nanddev_bbt_set_block_status() local 119 if (bits_per_block + offs > BITS_PER_LONG) in nanddev_bbt_set_block_status() 120 pos[0] &= ~GENMASK(BITS_PER_LONG - 1, offs); in nanddev_bbt_set_block_status() 122 pos[0] &= ~GENMASK(offs + bits_per_block - 1, offs); in nanddev_bbt_set_block_status() 123 pos[0] |= val << offs; in nanddev_bbt_set_block_status() 125 if (bits_per_block + offs > BITS_PER_LONG) { in nanddev_bbt_set_block_status() [all …]
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/ |
| H A D | sunxi_nand_spl.c | 215 static int nand_load_page(const struct nfc_config *conf, u32 offs) in nand_load_page() argument 217 int page = offs / conf->page_size; in nand_load_page() 255 static int nand_read_page(const struct nfc_config *conf, u32 offs, in nand_read_page() argument 261 int page = offs / conf->page_size; in nand_read_page() 265 if (offs % conf->page_size || len % conf->ecc_size || in nand_read_page() 368 static int nand_detect_ecc_config(struct nfc_config *conf, u32 offs, in nand_detect_ecc_config() argument 373 int page = offs / conf->page_size; in nand_detect_ecc_config() 401 ret = nand_read_page(conf, offs, dest, conf->ecc_size); in nand_detect_ecc_config() 418 if (!nand_read_page(conf, offs, dest, in nand_detect_ecc_config() 441 static int nand_detect_config(struct nfc_config *conf, u32 offs, void *dest) in nand_detect_config() argument [all …]
|