Home
last modified time | relevance | path

Searched refs:asize (Results 1 – 25 of 31) sorted by relevance

12

/openbmc/linux/drivers/mtd/devices/
H A Dpmc551.c126 u32 asize; member
150 eoff_hi = end & ~(priv->asize - 1); in pmc551_erase()
151 soff_hi = instr->addr & ~(priv->asize - 1); in pmc551_erase()
152 eoff_lo = end & (priv->asize - 1); in pmc551_erase()
157 if (soff_hi == eoff_hi || mtd->size == priv->asize) { in pmc551_erase()
169 memset(ptr, 0xff, priv->asize); in pmc551_erase()
170 if (soff_hi + priv->asize >= mtd->size) { in pmc551_erase()
173 soff_hi += priv->asize; in pmc551_erase()
175 priv->asize, &retlen, in pmc551_erase()
200 soff_hi = from & ~(priv->asize - 1); in pmc551_point()
[all …]
/openbmc/linux/fs/ntfs3/
H A Drecord.c202 u32 t32, off, asize, prev_type; in mi_enum_attr() local
232 asize = le32_to_cpu(attr->size); in mi_enum_attr()
235 attr = Add2Ptr(attr, asize); in mi_enum_attr()
236 off += asize; in mi_enum_attr()
260 asize = le32_to_cpu(attr->size); in mi_enum_attr()
263 if (off + asize < off || off + asize > used) in mi_enum_attr()
269 if (asize < SIZEOF_RESIDENT) in mi_enum_attr()
273 if (t16 > asize) in mi_enum_attr()
276 if (le32_to_cpu(attr->res.data_size) > asize - t16) in mi_enum_attr()
291 if (asize < SIZEOF_NONRESIDENT) in mi_enum_attr()
[all …]
H A Dfrecord.c460 const __le16 *name, u8 name_len, u32 asize, u16 name_off, in ni_ins_new_attr() argument
488 attr = mi_insert_attr(mi, type, name, name_len, asize, name_off); in ni_ins_new_attr()
664 u32 asize, free; in ni_try_remove_attr_list() local
680 asize = le32_to_cpu(attr_list->size); in ni_try_remove_attr_list()
683 free = sbi->record_size - le32_to_cpu(ni->mi.mrec->used) + asize; in ni_try_remove_attr_list()
703 asize = le32_to_cpu(attr->size); in ni_try_remove_attr_list()
704 if (asize > free) in ni_try_remove_attr_list()
707 free -= asize; in ni_try_remove_attr_list()
740 asize = le32_to_cpu(attr->size); in ni_try_remove_attr_list()
744 le->name_len, asize, in ni_try_remove_attr_list()
[all …]
H A Dinode.c39 u32 rp_fa = 0, asize, t32; in ntfs_read_mft() local
133 asize = le32_to_cpu(attr->size); in ntfs_read_mft()
139 asize = le32_to_cpu(attr->size); in ntfs_read_mft()
147 asize) in ntfs_read_mft()
160 asize < sizeof(struct ATTR_STD_INFO) + roff || in ntfs_read_mft()
179 if (asize >= sizeof(struct ATTR_STD_INFO5) + roff && in ntfs_read_mft()
197 if (attr->non_res || asize < SIZEOF_ATTRIBUTE_FILENAME + roff || in ntfs_read_mft()
394 if (roff > asize) { in ntfs_read_mft()
402 t64, Add2Ptr(attr, roff), asize - roff); in ntfs_read_mft()
1239 u32 asize, dsize, sd_size; in ntfs_create_inode() local
[all …]
H A Dfslog.c2693 u32 asize = le32_to_cpu(attr->size); in check_attr() local
2699 if (asize >= sbi->record_size || in check_attr()
2700 asize + PtrOffset(rec, attr) >= sbi->record_size || in check_attr()
2703 asize)) { in check_attr()
2711 if (rsize >= asize || in check_attr()
2712 le16_to_cpu(attr->res.data_off) + rsize > asize) { in check_attr()
2723 if (svcn > evcn + 1 || run_off >= asize || in check_attr()
2729 if (run_off > asize) in check_attr()
2733 Add2Ptr(attr, run_off), asize - run_off) < 0) { in check_attr()
2746 attr, le16_to_cpu(attr->res.data_off))) > asize) { in check_attr()
[all …]
H A Dattrib.c66 u32 asize; in attr_load_runs() local
75 asize = le32_to_cpu(attr->size); in attr_load_runs()
78 if (run_off > asize) in attr_load_runs()
83 asize - run_off); in attr_load_runs()
234 u32 used, asize, rsize, aoff; in attr_make_nonresident() local
249 asize = le32_to_cpu(attr->size); in attr_make_nonresident()
250 next = Add2Ptr(attr, asize); in attr_make_nonresident()
266 attr_s = kmemdup(attr, asize, GFP_NOFS); in attr_make_nonresident()
311 used -= asize; in attr_make_nonresident()
312 memmove(attr, Add2Ptr(attr, asize), used - aoff); in attr_make_nonresident()
[all …]
H A Dattrlist.c295 size_t asize, new_asize, old_size; in al_add_le() local
305 asize = al_aligned(old_size); in al_add_le()
312 if (new_size > asize) { in al_add_le()
H A Dntfs.h448 u32 asize, rsize; in resident_data_ex() local
454 asize = le32_to_cpu(attr->size); in resident_data_ex()
457 if (asize < datasize + off) in resident_data_ex()
H A Dindex.c1589 u32 hdr_used, hdr_total, asize, to_move; in indx_insert_into_root() local
1610 asize = le32_to_cpu(attr->size); in indx_insert_into_root()
1616 if ((undo || asize + ds_root < sbi->max_bytes_per_attr) && in indx_insert_into_root()
1628 a_root = kmemdup(attr, asize, GFP_NOFS); in indx_insert_into_root()
1671 if (ds_root > 0 && asize + ds_root > sbi->max_bytes_per_attr) { in indx_insert_into_root()
1710 memcpy(attr, a_root, asize); in indx_insert_into_root()
/openbmc/qemu/hw/nvram/
H A Deeprom_at24c.c49 uint8_t asize; member
101 if (ee->haveaddr > 0 && ee->haveaddr < ee->asize) { in at24c_eeprom_recv()
113 ee->haveaddr = ee->asize; in at24c_eeprom_recv()
130 if (ee->haveaddr < ee->asize) { in at24c_eeprom_send()
134 if (ee->haveaddr == ee->asize) { in at24c_eeprom_send()
226 if (ee->asize == 0) { in at24c_eeprom_realize()
228 ee->asize = 1; in at24c_eeprom_realize()
230 ee->asize = 2; in at24c_eeprom_realize()
247 DEFINE_PROP_UINT8("address-size", EEPROMState, asize, 0),
/openbmc/linux/arch/arm/mm/
H A Dpmsa-v7.c150 phys_addr_t asize = base + size - abase; in try_split_region() local
151 phys_addr_t p2size = 1 << __fls(asize); in try_split_region()
154 if (p2size != asize) in try_split_region()
158 sdiff = p2size - asize; in try_split_region()
212 phys_addr_t asize = (base - 1) ^ base; in allocate_region() local
215 size = asize < p2size ? asize + 1 : p2size + 1; in allocate_region()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/geany/geany-plugins/
H A D0001-git-changebar-Adjust-structs-for-libgit2-1.4.x.patch20 - if (buf->asize == 0) {
29 - buf->asize = 0;
/openbmc/linux/drivers/video/fbdev/
H A Doffb.c307 u64 asize, taddr; in offb_map_reg() local
310 addrp = of_get_pci_address(np, index, &asize, &flags); in offb_map_reg()
312 addrp = of_get_address(np, index, &asize, &flags); in offb_map_reg()
317 if ((offset + size) > asize) in offb_map_reg()
546 u64 asize; in offb_init_nodriver() local
605 for (i = 0; (addrp = of_get_address(dp, i, &asize, &flags)) in offb_init_nodriver()
611 if (asize < rsize) in offb_init_nodriver()
617 ((rstart + asize) >= (addr_prop + rsize))) in offb_init_nodriver()
/openbmc/linux/drivers/memory/
H A Dti-aemif.c108 u8 asize; member
203 set |= (data->asize & ACR_ASIZE_MASK); in aemif_config_abus()
250 data->asize = val & ASIZE_MAX; in aemif_get_hw_params()
314 data->asize = 1; in of_aemif_parse_abus_config()
/openbmc/linux/sound/soc/sof/
H A Dtopology.c502 int num_tokens, asize; in sof_copy_tuples() local
531 asize = le32_to_cpu(array->size); in sof_copy_tuples()
534 if (asize < 0) { in sof_copy_tuples()
535 dev_err(sdev->dev, "Invalid array size 0x%x\n", asize); in sof_copy_tuples()
540 array_size -= asize; in sof_copy_tuples()
542 dev_err(sdev->dev, "Invalid array size 0x%x\n", asize); in sof_copy_tuples()
596 array = (struct snd_soc_tplg_vendor_array *)((u8 *)array + asize); in sof_copy_tuples()
718 int asize; in sof_parse_token_sets() local
722 asize = le32_to_cpu(array->size); in sof_parse_token_sets()
725 if (asize < 0) { /* FIXME: A zero-size array makes no sense */ in sof_parse_token_sets()
[all …]
/openbmc/linux/include/net/iucv/
H A Diucv.h462 void *answer, size_t asize, size_t *residual);
479 size_t size, void *answer, size_t asize, size_t *residual);
/openbmc/u-boot/tools/
H A Dmxsimage.c952 uint32_t asize; in sb_build_command_load() local
974 asize = roundup(dctx->size, SB_BLOCK_SIZE); in sb_build_command_load()
975 payload = calloc(1, asize); in sb_build_command_load()
984 cctx->length = asize; in sb_build_command_load()
1812 unsigned long size, asize; in sb_verify_command() local
1842 asize = roundup(cctx->length, SB_BLOCK_SIZE); in sb_verify_command()
1843 cctx->data = malloc(asize); in sb_verify_command()
1847 size = fread(cctx->data, 1, asize, fp); in sb_verify_command()
1848 if (size != asize) { in sb_verify_command()
1856 EVP_DigestUpdate(ictx->md_ctx, cctx->data, asize); in sb_verify_command()
[all …]
/openbmc/linux/arch/x86/kernel/kprobes/
H A Dcore.c533 if (p->ainsn.loop.asize == 32) in kprobe_emulate_loop()
536 else if (p->ainsn.loop.asize == 64) in kprobe_emulate_loop()
542 if (p->ainsn.loop.asize == 32) in kprobe_emulate_loop()
545 else if (p->ainsn.loop.asize == 64) in kprobe_emulate_loop()
675 p->ainsn.loop.asize = insn->addr_bytes * 8; in prepare_emulation()
/openbmc/linux/security/smack/
H A Dsmackfs.c1807 int asize; in smk_read_ambient() local
1817 asize = strlen(smack_net_ambient->smk_known) + 1; in smk_read_ambient()
1819 if (cn >= asize) in smk_read_ambient()
1822 asize); in smk_read_ambient()
2081 int asize; in smk_read_unconfined() local
2089 asize = strlen(smack) + 1; in smk_read_unconfined()
2091 if (cn >= asize) in smk_read_unconfined()
2092 rc = simple_read_from_buffer(buf, cn, ppos, smack, asize); in smk_read_unconfined()
2637 int asize; in smk_read_syslog() local
2647 asize = strlen(skp->smk_known) + 1; in smk_read_syslog()
[all …]
/openbmc/linux/arch/x86/include/asm/
H A Dkprobes.h73 unsigned char asize; member
/openbmc/linux/drivers/tty/vt/
H A Dkeyboard.c1694 int asize; in vt_do_diacrit() local
1713 asize = accent_table_size; in vt_do_diacrit()
1714 for (i = 0; i < asize; i++) { in vt_do_diacrit()
1724 if (put_user(asize, &a->kb_cnt)) in vt_do_diacrit()
1727 asize * sizeof(struct kbdiacr))) in vt_do_diacrit()
1746 asize = accent_table_size; in vt_do_diacrit()
1747 memcpy(buf, accent_table, asize * sizeof(struct kbdiacruc)); in vt_do_diacrit()
1751 if (put_user(asize, &a->kb_cnt)) in vt_do_diacrit()
1754 asize*sizeof(struct kbdiacruc))) in vt_do_diacrit()
/openbmc/linux/drivers/accel/habanalabs/common/
H A Dhabanalabs_ioctl.c1151 unsigned int usize, asize; in _hl_ioctl() local
1166 usize = asize = _IOC_SIZE(cmd); in _hl_ioctl()
1167 if (hl_size > asize) in _hl_ioctl()
1168 asize = hl_size; in _hl_ioctl()
1173 if (asize <= sizeof(stack_kdata)) { in _hl_ioctl()
1176 kdata = kzalloc(asize, GFP_KERNEL); in _hl_ioctl()
/openbmc/linux/drivers/crypto/inside-secure/
H A Dsafexcel.c160 u32 val, dsize, asize; in eip197_trc_cache_init() local
204 asize = eip197_trc_cache_probe(priv, 0, 0x3fffffff, 16) >> 4; in eip197_trc_cache_init()
210 if (dsize < EIP197_MIN_DSIZE || asize < EIP197_MIN_ASIZE) { in eip197_trc_cache_init()
212 dsize, asize); in eip197_trc_cache_init()
232 cs_rc_max = min_t(uint, cs_rc_abs_max, (asize >> 1)); in eip197_trc_cache_init()
234 cs_ht_sz = __fls(asize - cs_rc_max) - 2; in eip197_trc_cache_init()
238 cs_rc_max = min_t(uint, cs_rc_abs_max, asize - (cs_ht_wc >> 2)); in eip197_trc_cache_init()
265 dsize, asize, cs_rc_max, cs_ht_wc + cs_ht_wc); in eip197_trc_cache_init()
/openbmc/u-boot/lib/
H A Dtpm-v2.c651 int asize; in tcg2_platform_get_log() local
657 addr_prop = dev_read_prop(dev, "tpm_event_log_addr", &asize); in tcg2_platform_get_log()
659 addr_prop = dev_read_prop(dev, "linux,sml-base", &asize); in tcg2_platform_get_log()
666 u64 a = of_read_number(addr_prop, asize / sizeof(__be32)); in tcg2_platform_get_log()
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_chardev.c3241 unsigned int usize, asize; in kfd_ioctl() local
3254 usize = asize = _IOC_SIZE(cmd); in kfd_ioctl()
3255 if (amdkfd_size > asize) in kfd_ioctl()
3256 asize = amdkfd_size; in kfd_ioctl()
3306 if (asize <= sizeof(stack_kdata)) { in kfd_ioctl()
3309 kdata = kmalloc(asize, GFP_KERNEL); in kfd_ioctl()
3315 if (asize > usize) in kfd_ioctl()
3316 memset(kdata + usize, 0, asize - usize); in kfd_ioctl()

12