Home
last modified time | relevance | path

Searched refs:offs (Results 1 – 25 of 391) sorted by relevance

12345678910>>...16

/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/
Diwl-devtrace-io.h18 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 …]
/linux-6.6.21/fs/ubifs/
Dscan.c58 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 …]
Drecovery.c101 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 …]
Dio.c87 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 …]
Dlpt_commit.c184 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 …]
Dlog.c164 int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs) in ubifs_add_bud_to_log() argument
204 if (c->bud_bytes + c->leb_size - offs > c->max_bud_bytes) { in ubifs_add_bud_to_log()
225 bud->start = offs; in ubifs_add_bud_to_log()
231 ref->offs = cpu_to_le32(bud->start); in ubifs_add_bud_to_log()
319 c->cmt_bud_bytes += wbuf->offs - bud->start; in remove_buds()
322 wbuf->offs - bud->start, c->cmt_bud_bytes); in remove_buds()
323 bud->start = wbuf->offs; in remove_buds()
395 int offs = c->jheads[i].wbuf.offs; in ubifs_log_start_commit() local
397 if (lnum == -1 || offs == c->leb_size) in ubifs_log_start_commit()
401 lnum, offs, dbg_jhead(i)); in ubifs_log_start_commit()
[all …]
Dtnc.c61 else if (old_idx->offs < o->offs) in do_insert_old_idx()
63 else if (old_idx->offs > o->offs) in do_insert_old_idx()
98 static int insert_old_idx(struct ubifs_info *c, int lnum, int offs) in insert_old_idx() argument
106 old_idx->offs = offs; in insert_old_idx()
126 return insert_old_idx(c, zbr->lnum, zbr->offs); in insert_old_idx_znode()
130 c->zroot.offs); in insert_old_idx_znode()
151 err = insert_old_idx(c, zbr->lnum, zbr->offs); in ins_clr_old_idx_znode()
155 zbr->offs = 0; in ins_clr_old_idx_znode()
160 err = insert_old_idx(c, c->zroot.lnum, c->zroot.offs); in ins_clr_old_idx_znode()
164 c->zroot.offs = 0; in ins_clr_old_idx_znode()
[all …]
Dreplay.c47 int offs; member
248 r->lnum, r->offs, r->len, r->deletion, r->sqnum); in apply_replay_entry()
254 err = ubifs_tnc_add_nm(c, &r->key, r->lnum, r->offs, in apply_replay_entry()
279 err = ubifs_tnc_add(c, &r->key, r->lnum, r->offs, in apply_replay_entry()
383 static int insert_node(struct ubifs_info *c, int lnum, int offs, int len, in insert_node() argument
390 dbg_mntk(key, "add LEB %d:%d, key ", lnum, offs); in insert_node()
402 r->offs = offs; in insert_node()
432 static int insert_dent(struct ubifs_info *c, int lnum, int offs, int len, in insert_dent() argument
440 dbg_mntk(key, "add LEB %d:%d, key ", lnum, offs); in insert_dent()
457 r->offs = offs; in insert_dent()
[all …]
/linux-6.6.21/drivers/misc/mei/
Dmei-trace.h20 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 …]
/linux-6.6.21/drivers/scsi/aic94xx/
Daic94xx_reg.h55 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 …]
Daic94xx_reg.c18 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 …]
/linux-6.6.21/drivers/gpio/
Dgpio-syscon.c59 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 …]
/linux-6.6.21/drivers/mtd/tests/
Dstresstest.c60 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 …]
/linux-6.6.21/drivers/net/ethernet/altera/
Daltera_utils.c9 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()
/linux-6.6.21/drivers/pinctrl/samsung/
Dpinctrl-exynos.h63 #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 …]
/linux-6.6.21/lib/
Dlogic_iomem.c106 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 …]
/linux-6.6.21/drivers/mtd/nand/
Dbbt.c77 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()
/linux-6.6.21/tools/testing/selftests/arm64/signal/testcases/
Dtestcases.c12 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 …]
/linux-6.6.21/drivers/net/ethernet/renesas/
Drcar_gen4_ptp.c41 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 …]
/linux-6.6.21/crypto/async_tx/
Dasync_raid6_recov.c154 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 …]
/linux-6.6.21/drivers/mtd/nand/raw/
Dnand_bbt.c113 if (memcmp(buf + paglen + td->offs, td->pattern, td->len)) in check_pattern()
131 if (memcmp(buf + td->offs, td->pattern, td->len)) in check_short_pattern()
167 struct nand_bbt_descr *td, int offs) in read_bbt() argument
218 (loff_t)(offs + act) << in read_bbt()
220 bbt_mark_entry(this, offs + act, in read_bbt()
230 (loff_t)(offs + act) << in read_bbt()
234 bbt_mark_entry(this, offs + act, in read_bbt()
237 bbt_mark_entry(this, offs + act, in read_bbt()
267 int offs = 0; in read_abs_bbt() local
272 td, offs); in read_abs_bbt()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/amdkfd/
Dkfd_topology.c217 #define sysfs_show_gen_prop(buffer, offs, fmt, ...) \ argument
218 (offs += snprintf(buffer+offs, PAGE_SIZE-offs, \
220 #define sysfs_show_32bit_prop(buffer, offs, name, value) \ argument
221 sysfs_show_gen_prop(buffer, offs, "%s %u\n", name, value)
222 #define sysfs_show_64bit_prop(buffer, offs, name, value) \ argument
223 sysfs_show_gen_prop(buffer, offs, "%s %llu\n", name, value)
224 #define sysfs_show_32bit_val(buffer, offs, value) \ argument
225 sysfs_show_gen_prop(buffer, offs, "%u\n", value)
226 #define sysfs_show_str_val(buffer, offs, value) \ argument
227 sysfs_show_gen_prop(buffer, offs, "%s\n", value)
[all …]
/linux-6.6.21/fs/crypto/
Dcrypto.c104 unsigned int offs, gfp_t gfp_flags) in fscrypt_crypt_block() argument
130 sg_set_page(&dst, dest_page, len, offs); in fscrypt_crypt_block()
132 sg_set_page(&src, src_page, len, offs); in fscrypt_crypt_block()
174 unsigned int offs, in fscrypt_encrypt_pagecache_blocks() argument
183 (offs >> blockbits); in fscrypt_encrypt_pagecache_blocks()
190 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, blocksize))) in fscrypt_encrypt_pagecache_blocks()
197 for (i = offs; i < offs + len; i += blocksize, lblk_num++) { in fscrypt_encrypt_pagecache_blocks()
230 unsigned int len, unsigned int offs, in fscrypt_encrypt_block_inplace() argument
234 len, offs, gfp_flags); in fscrypt_encrypt_block_inplace()
255 size_t offs) in fscrypt_decrypt_pagecache_blocks() argument
[all …]
/linux-6.6.21/drivers/mtd/parsers/
Dscpart.c53 uint32_t offs; in scpart_scan_partmap() local
71 for (offs = MAP_OFFS_IN_BLK; in scpart_scan_partmap()
72 offs < master->erasesize - sizeof(*tmpdesc); in scpart_scan_partmap()
73 offs += sizeof(*tmpdesc)) { in scpart_scan_partmap()
74 tmpdesc = (struct sc_part_desc *)&buf[offs]; in scpart_scan_partmap()
107 loff_t offs = 0; in scpart_find_partmap() local
112 (offs < master->size) && in scpart_find_partmap()
113 !mtd_block_isbad(master, offs)) { in scpart_find_partmap()
114 res2 = mtd_read(master, offs, PART_MAGIC_LEN, &retlen, rdbuf); in scpart_find_partmap()
120 pr_debug("Signature found at 0x%llx\n", offs); in scpart_find_partmap()
[all …]
/linux-6.6.21/security/integrity/platform_certs/
Defi_parser.c43 unsigned int offs = 0; in parse_efi_signature_list() local
57 offs, in parse_efi_signature_list()
68 __func__, offs); in parse_efi_signature_list()
77 pr_devel("- bad size combo @%x\n", offs); in parse_efi_signature_list()
85 offs += lsize; in parse_efi_signature_list()
91 offs += sizeof(list) + hsize; in parse_efi_signature_list()
96 pr_devel("ELEM[%04x]\n", offs); in parse_efi_signature_list()
103 offs += esize; in parse_efi_signature_list()

12345678910>>...16