/openbmc/linux/fs/xfs/libxfs/ |
H A D | xfs_da_btree.c | 150 to->count = be16_to_cpu(from3->hdr.__count); in xfs_da3_node_hdr_from_disk() 158 to->count = be16_to_cpu(from->hdr.__count); in xfs_da3_node_hdr_from_disk() 178 to3->hdr.__count = cpu_to_be16(from->count); in xfs_da3_node_hdr_to_disk() 185 to->hdr.__count = cpu_to_be16(from->count); in xfs_da3_node_hdr_to_disk() 237 if (ichdr.count == 0) in xfs_da3_node_verify() 244 if (ichdr.count > mp->m_dir_geo->node_ents && in xfs_da3_node_verify() 245 ichdr.count > mp->m_attr_geo->node_ents) in xfs_da3_node_verify() 692 size = (int)((char *)&btree[icnodehdr.count] - (char *)oldroot); in xfs_da3_root_split() 708 size = (int)((char *)&leafhdr.ents[leafhdr.count] - in xfs_da3_root_split() 755 nodehdr.count = 2; in xfs_da3_root_split() [all …]
|
/openbmc/u-boot/arch/x86/cpu/ivybridge/ |
H A D | early_me.c | 32 int count; in intel_early_me_init() local 39 for (count = ME_RETRY; count > 0; --count) { in intel_early_me_init() 45 if (!count) { in intel_early_me_init() 97 int count; in intel_early_me_init_done() local 118 for (count = ME_RETRY; count > 0; --count) { in intel_early_me_init_done() 124 if (!count) { in intel_early_me_init_done()
|
/openbmc/linux/sound/drivers/opl4/ |
H A D | opl4_proc.c | 41 size_t count, loff_t pos) in snd_opl4_mem_proc_read() argument 46 buf = vmalloc(count); in snd_opl4_mem_proc_read() 49 snd_opl4_read_memory(opl4, buf, pos, count); in snd_opl4_mem_proc_read() 50 if (copy_to_user(_buf, buf, count)) { in snd_opl4_mem_proc_read() 55 return count; in snd_opl4_mem_proc_read() 62 size_t count, loff_t pos) in snd_opl4_mem_proc_write() argument 67 buf = vmalloc(count); in snd_opl4_mem_proc_write() 70 if (copy_from_user(buf, _buf, count)) { in snd_opl4_mem_proc_write() 74 snd_opl4_write_memory(opl4, buf, pos, count); in snd_opl4_mem_proc_write() 76 return count; in snd_opl4_mem_proc_write()
|
/openbmc/qemu/include/qemu/ |
H A D | hbitmap.h | 115 void hbitmap_set(HBitmap *hb, uint64_t start, uint64_t count); 130 void hbitmap_reset(HBitmap *hb, uint64_t start, uint64_t count); 183 uint64_t start, uint64_t count); 197 uint64_t start, uint64_t count); 214 uint64_t start, uint64_t count, 229 void hbitmap_deserialize_zeroes(HBitmap *hb, uint64_t start, uint64_t count, 244 void hbitmap_deserialize_ones(HBitmap *hb, uint64_t start, uint64_t count, 300 int64_t hbitmap_next_dirty(const HBitmap *hb, int64_t start, int64_t count); 312 int64_t hbitmap_next_zero(const HBitmap *hb, int64_t start, int64_t count); 341 bool hbitmap_status(const HBitmap *hb, int64_t start, int64_t count,
|
/openbmc/linux/drivers/acpi/ |
H A D | ec_sys.c | 31 size_t count, loff_t *off) in acpi_ec_read_io() argument 42 if (*off + count >= size) { in acpi_ec_read_io() 44 count = size; in acpi_ec_read_io() 46 size = count; in acpi_ec_read_io() 61 return count; in acpi_ec_read_io() 65 size_t count, loff_t *off) in acpi_ec_write_io() argument 71 unsigned int size = count; in acpi_ec_write_io() 80 if (*off + count >= EC_SPACE_SIZE) { in acpi_ec_write_io() 82 count = size; in acpi_ec_write_io() 99 return count; in acpi_ec_write_io()
|
/openbmc/linux/sound/hda/ |
H A D | intel-sdw-acpi.c | 56 u8 count, i; in sdw_intel_scan_controller() local 63 count = 0; in sdw_intel_scan_controller() 65 "mipi-sdw-master-count", &count, 1); in sdw_intel_scan_controller() 86 if (count > SDW_MAX_LINKS) { in sdw_intel_scan_controller() 88 count, SDW_MAX_LINKS); in sdw_intel_scan_controller() 92 if (!count) { in sdw_intel_scan_controller() 96 dev_dbg(&adev->dev, "ACPI reports %d SDW Link devices\n", count); in sdw_intel_scan_controller() 98 info->count = count; in sdw_intel_scan_controller() 101 for (i = 0; i < count; i++) { in sdw_intel_scan_controller()
|
/openbmc/linux/lib/ |
H A D | strncpy_from_user.c | 29 unsigned long count, unsigned long max) in do_strncpy_from_user() argument 84 if (res >= count) in do_strncpy_from_user() 113 long strncpy_from_user(char *dst, const char __user *src, long count) in strncpy_from_user() argument 120 if (unlikely(count <= 0)) in strncpy_from_user() 133 if (max > count) in strncpy_from_user() 134 max = count; in strncpy_from_user() 136 kasan_check_write(dst, count); in strncpy_from_user() 137 check_object_size(dst, count, false); in strncpy_from_user() 139 retval = do_strncpy_from_user(dst, src, count, max); in strncpy_from_user()
|
H A D | strnlen_user.c | 23 static __always_inline long do_strnlen_user(const char __user *src, unsigned long count, unsigned l… in do_strnlen_user() argument 60 if (res >= count) in do_strnlen_user() 61 return count+1; in do_strnlen_user() 92 long strnlen_user(const char __user *str, long count) in strnlen_user() argument 96 if (unlikely(count <= 0)) in strnlen_user() 109 if (max > count) in strnlen_user() 110 max = count; in strnlen_user() 113 retval = do_strnlen_user(str, count, max); in strnlen_user()
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | rtas_flash.c | 273 size_t count, loff_t *ppos) in rtas_flash_read_msg() argument 286 return simple_read_from_buffer(buf, count, ppos, msg, len); in rtas_flash_read_msg() 290 size_t count, loff_t *ppos) in rtas_flash_read_num() argument 302 return simple_read_from_buffer(buf, count, ppos, msg, strlen(msg)); in rtas_flash_read_num() 311 size_t count, loff_t *off) in rtas_flash_write() argument 320 if (uf->status == FLASH_AUTH || count == 0) in rtas_flash_write() 346 if (count > RTAS_BLK_SIZE) in rtas_flash_write() 347 count = RTAS_BLK_SIZE; in rtas_flash_write() 352 if(copy_from_user(p, buffer, count)) { in rtas_flash_write() 358 fl->blocks[next_free].length = count; in rtas_flash_write() [all …]
|
H A D | misc_32.S | 302 srw r4,r4,r5 # LSW = count > 31 ? 0 : LSW >> count 304 slw r6,r3,r6 # t1 = count > 31 ? 0 : MSW << (32-count) 305 rlwinm r8,r7,0,32 # t3 = (count < 32) ? 32 : 0 306 sraw r7,r3,r7 # t2 = MSW >> (count-32) 308 slw r7,r7,r8 # t2 = (count < 32) ? 0 : t2 309 sraw r3,r3,r5 # MSW = MSW >> count 316 slw r3,r3,r5 # MSW = count > 31 ? 0 : MSW << count 318 srw r6,r4,r6 # t1 = count > 31 ? 0 : LSW >> (32-count) 319 slw r7,r4,r7 # t2 = count < 32 ? 0 : LSW << (count-32) 321 slw r4,r4,r5 # LSW = LSW << count [all …]
|
/openbmc/linux/drivers/mtd/ubi/ |
H A D | upd.c | 266 const void __user *buf, int count) in ubi_more_update_data() argument 268 int lnum, offs, err = 0, len, to_write = count; in ubi_more_update_data() 271 count, vol->upd_bytes, vol->upd_received); in ubi_more_update_data() 277 if (vol->upd_received + count > vol->upd_bytes) in ubi_more_update_data() 278 to_write = count = vol->upd_bytes - vol->upd_received; in ubi_more_update_data() 293 if (len > count) in ubi_more_update_data() 294 len = count; in ubi_more_update_data() 316 count -= len; in ubi_more_update_data() 325 while (count) { in ubi_more_update_data() 326 if (count > vol->usable_leb_size) in ubi_more_update_data() [all …]
|
/openbmc/linux/drivers/net/arcnet/ |
H A D | com20020_cs.c | 56 int count; in regdump() local 59 for (count = 0; count < 16; count++) { in regdump() 60 if (!(count % 16)) in regdump() 61 pr_cont("%04X:", ioaddr + count); in regdump() 62 pr_cont(" %02X", arcnet_inb(ioaddr, count)); in regdump() 68 count = 0; in regdump() 69 arcnet_outb((count >> 8) | RDDATAflag | AUTOINCflag, in regdump() 71 arcnet_outb(count & 0xff, ioaddr, COM20020_REG_W_ADDR_LO); in regdump() 73 for (count = 0; count < 256 + 32; count++) { in regdump() 74 if (!(count % 16)) in regdump() [all …]
|
/openbmc/u-boot/common/ |
H A D | image-sig.c | 184 struct fdt_region *fdt_regions, int count, in fit_region_make_list() argument 198 region = calloc(sizeof(*region), count); in fit_region_make_list() 202 for (i = 0; i < count; i++) { in fit_region_make_list() 394 int count; in fit_config_check_sig() local 414 for (name = prop, count = 0; name < end; name++) in fit_config_check_sig() 416 count++; in fit_config_check_sig() 417 if (!count) { in fit_config_check_sig() 428 if (count > IMAGE_MAX_HASHED_NODES) { in fit_config_check_sig() 434 char *node_inc[count]; in fit_config_check_sig() 436 debug("Hash nodes (%d):\n", count); in fit_config_check_sig() [all …]
|
/openbmc/linux/drivers/nvme/target/ |
H A D | configfs.c | 78 const char *page, size_t count) in nvmet_addr_adrfam_store() argument 96 return count; in nvmet_addr_adrfam_store() 110 const char *page, size_t count) in nvmet_addr_portid_store() argument 124 return count; in nvmet_addr_portid_store() 138 const char *page, size_t count) in nvmet_addr_traddr_store() argument 142 if (count > NVMF_TRADDR_SIZE) { in nvmet_addr_traddr_store() 152 return count; in nvmet_addr_traddr_store() 179 const char *page, size_t count) in nvmet_addr_treq_store() argument 199 return count; in nvmet_addr_treq_store() 213 const char *page, size_t count) in nvmet_addr_trsvcid_store() argument [all …]
|
/openbmc/linux/drivers/xen/ |
H A D | gntdev.c | 74 bool gntdev_test_page_count(unsigned int count) in gntdev_test_page_count() argument 76 return !count || count > limit; in gntdev_test_page_count() 88 map->index, map->count, in gntdev_print_maps() 104 args.nr_pages = map->count; in gntdev_free_map() 114 gnttab_free_pages(map->count, map->pages); in gntdev_free_map() 129 struct gntdev_grant_map *gntdev_alloc_map(struct gntdev_priv *priv, int count, in gntdev_alloc_map() argument 139 add->grants = kvmalloc_array(count, sizeof(add->grants[0]), in gntdev_alloc_map() 141 add->map_ops = kvmalloc_array(count, sizeof(add->map_ops[0]), in gntdev_alloc_map() 143 add->unmap_ops = kvmalloc_array(count, sizeof(add->unmap_ops[0]), in gntdev_alloc_map() 145 add->pages = kvcalloc(count, sizeof(add->pages[0]), GFP_KERNEL); in gntdev_alloc_map() [all …]
|
/openbmc/linux/arch/mips/include/asm/ |
H A D | dma.h | 270 static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count) in set_dma_count() argument 272 count--; in set_dma_count() 274 dma_outb( count & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); in set_dma_count() 275 dma_outb( (count>>8) & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); in set_dma_count() 277 dma_outb( (count>>1) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); in set_dma_count() 278 dma_outb( (count>>9) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); in set_dma_count() 297 unsigned short count; in get_dma_residue() local 299 count = 1 + dma_inb(io_port); in get_dma_residue() 300 count += dma_inb(io_port) << 8; in get_dma_residue() 302 return (dmanr<=3)? count : (count<<1); in get_dma_residue()
|
/openbmc/qemu/tests/bench/ |
H A D | benchmark-crypto-akcipher.c | 49 size_t count; in test_rsa_speed() local 59 for (count = 0; count < SIGN_TIMES; ++count) { in test_rsa_speed() 69 count, g_test_timer_last(), in test_rsa_speed() 70 (double)count / g_test_timer_last()); in test_rsa_speed() 76 for (count = 0; count < VERIFY_TIMES; ++count) { in test_rsa_speed() 86 count, g_test_timer_last(), in test_rsa_speed() 87 (double)count / g_test_timer_last()); in test_rsa_speed()
|
/openbmc/linux/drivers/w1/slaves/ |
H A D | w1_ds2781.c | 24 size_t count, int io) in w1_ds2781_do_io() argument 31 count = min_t(int, count, DS2781_DATA_SIZE - addr); in w1_ds2781_do_io() 37 w1_write_block(sl->master, buf, count); in w1_ds2781_do_io() 41 count = w1_read_block(sl->master, buf, count); in w1_ds2781_do_io() 45 return count; in w1_ds2781_do_io() 48 int w1_ds2781_io(struct device *dev, char *buf, int addr, size_t count, in w1_ds2781_io() argument 59 ret = w1_ds2781_do_io(dev, buf, addr, count, io); in w1_ds2781_io() 88 loff_t off, size_t count) in w1_slave_read() argument 92 return w1_ds2781_io(dev, buf, off, count, 0); in w1_slave_read()
|
H A D | w1_ds2780.c | 27 size_t count, int io) in w1_ds2780_do_io() argument 34 count = min_t(int, count, DS2780_DATA_SIZE - addr); in w1_ds2780_do_io() 40 w1_write_block(sl->master, buf, count); in w1_ds2780_do_io() 44 count = w1_read_block(sl->master, buf, count); in w1_ds2780_do_io() 48 return count; in w1_ds2780_do_io() 51 int w1_ds2780_io(struct device *dev, char *buf, int addr, size_t count, in w1_ds2780_io() argument 62 ret = w1_ds2780_do_io(dev, buf, addr, count, io); in w1_ds2780_io() 91 loff_t off, size_t count) in w1_slave_read() argument 95 return w1_ds2780_io(dev, buf, off, count, 0); in w1_slave_read()
|
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | rif_mac_profiles_occ.sh | 43 local count=$1; shift 46 for ((i = 1; i <= count; i++)); do 77 local count=$1; shift 82 if [[ $count -eq 1 ]]; then 96 [[ $occ -eq $((count - 1)) ]] 106 local count=$1; shift 107 local i=$((count + 1)) 131 local count=$(devlink_resource_size_get rif_mac_profiles) 133 create_max_rif_mac_profiles $count 136 rif_mac_profile_consolidation_test $count [all …]
|
/openbmc/linux/drivers/infiniband/hw/qib/ |
H A D | qib_sysfs.c | 63 const char *buf, size_t count) in hrtbt_enable_store() argument 84 return ret < 0 ? ret : count; in hrtbt_enable_store() 90 size_t count) in loopback_store() argument 94 int ret = count, r; in loopback_store() 106 const char *buf, size_t count) in led_override_store() argument 120 return count; in led_override_store() 218 loff_t pos, size_t count) in cc_table_bin_read() argument 232 if (count > ret - pos) in cc_table_bin_read() 233 count = ret - pos; in cc_table_bin_read() 235 if (!count) in cc_table_bin_read() [all …]
|
/openbmc/linux/drivers/net/ethernet/cisco/enic/ |
H A D | vnic_rq.c | 21 unsigned int i, j, count = rq->ring.desc_count; in vnic_rq_alloc_bufs() local 22 unsigned int blks = VNIC_RQ_BUF_BLKS_NEEDED(count); in vnic_rq_alloc_bufs() 25 rq->bufs[i] = kzalloc(VNIC_RQ_BUF_BLK_SZ(count), GFP_KERNEL); in vnic_rq_alloc_bufs() 32 for (j = 0; j < VNIC_RQ_BUF_BLK_ENTRIES(count); j++) { in vnic_rq_alloc_bufs() 33 buf->index = i * VNIC_RQ_BUF_BLK_ENTRIES(count) + j; in vnic_rq_alloc_bufs() 36 if (buf->index + 1 == count) { in vnic_rq_alloc_bufs() 39 } else if (j + 1 == VNIC_RQ_BUF_BLK_ENTRIES(count)) { in vnic_rq_alloc_bufs() 107 unsigned int count = rq->ring.desc_count; in vnic_rq_init_start() local 111 iowrite32(count, &rq->ctrl->ring_size); in vnic_rq_init_start() 121 &rq->bufs[fetch_index / VNIC_RQ_BUF_BLK_ENTRIES(count)] in vnic_rq_init_start() [all …]
|
/openbmc/linux/fs/udf/ |
H A D | balloc.c | 37 int max_bits, off, count; in read_block_bitmap() local 52 count = min(max_bits - off, bitmap->s_nr_groups); in read_block_bitmap() 62 count = bitmap->s_nr_groups - bitmap_nr * max_bits + in read_block_bitmap() 64 count = min(count, max_bits); in read_block_bitmap() 67 for (i = 0; i < count; i++) in read_block_bitmap() 140 uint32_t count) in udf_bitmap_free_blocks() argument 163 if (bit + count > (sb->s_blocksize << 3)) { in udf_bitmap_free_blocks() 164 overflow = bit + count - (sb->s_blocksize << 3); in udf_bitmap_free_blocks() 165 count -= overflow; in udf_bitmap_free_blocks() 172 for (i = 0; i < count; i++) { in udf_bitmap_free_blocks() [all …]
|
/openbmc/linux/drivers/char/ |
H A D | nwflash.c | 46 static int write_block(unsigned long p, const char __user *buf, int count); 147 unsigned int count = size; in flash_write() local 154 p, buf, count); in flash_write() 166 return count ? -ENXIO : 0; in flash_write() 168 if (count > gbFlashSize - p) in flash_write() 169 count = gbFlashSize - p; in flash_write() 171 if (!access_ok(buf, count)) in flash_write() 187 temp = ((int) (p + count) >> 16) - nBlock + 1; in flash_write() 192 if (((int) (p + count) & 0xFFFF) == 0) in flash_write() 221 count - written); in flash_write() [all …]
|
/openbmc/qemu/ui/ |
H A D | input-keymap.c | 68 int count = 0; in qemu_input_key_value_to_scancode() local 74 codes[count++] = 0xe1; in qemu_input_key_value_to_scancode() 75 codes[count++] = 0x1d | v; in qemu_input_key_value_to_scancode() 76 codes[count++] = 0x45 | v; in qemu_input_key_value_to_scancode() 77 return count; in qemu_input_key_value_to_scancode() 80 codes[count++] = SCANCODE_EMUL0; in qemu_input_key_value_to_scancode() 86 codes[count++] = keycode; in qemu_input_key_value_to_scancode() 88 return count; in qemu_input_key_value_to_scancode()
|