/openbmc/linux/arch/x86/kernel/fpu/ |
H A D | xstate.c | 453 #define XCHECK_SZ(sz, nr, __struct) ({ \ argument 454 if (WARN_ONCE(sz != sizeof(__struct), \ 456 xfeature_names[nr], sizeof(__struct), sz)) { \ 534 int sz = xfeature_size(nr); in check_xstate_against_struct() local 541 case XFEATURE_YMM: return XCHECK_SZ(sz, nr, struct ymmh_struct); in check_xstate_against_struct() 542 case XFEATURE_BNDREGS: return XCHECK_SZ(sz, nr, struct mpx_bndreg_state); in check_xstate_against_struct() 543 case XFEATURE_BNDCSR: return XCHECK_SZ(sz, nr, struct mpx_bndcsr_state); in check_xstate_against_struct() 547 case XFEATURE_PKRU: return XCHECK_SZ(sz, nr, struct pkru_state); in check_xstate_against_struct() 548 case XFEATURE_PASID: return XCHECK_SZ(sz, nr, struct ia32_pasid_state); in check_xstate_against_struct() 549 case XFEATURE_XTILE_CFG: return XCHECK_SZ(sz, nr, struct xtile_cfg); in check_xstate_against_struct() [all …]
|
/openbmc/qemu/tests/plugin/ |
H A D | insn.c | 107 size_t sz = qemu_plugin_insn_size(insn); in vcpu_tb_trans() local 108 if (sz > sizes->len) { in vcpu_tb_trans() 109 g_array_set_size(sizes, sz); in vcpu_tb_trans() 111 unsigned long *cnt = &g_array_index(sizes, unsigned long, sz); in vcpu_tb_trans()
|
/openbmc/linux/include/linux/ |
H A D | thread_info.h | 239 int sz = __builtin_object_size(addr, 0); in check_copy_size() local 240 if (unlikely(sz >= 0 && sz < bytes)) { in check_copy_size() 242 copy_overflow(sz, bytes); in check_copy_size()
|
H A D | scs.h | 51 unsigned long sz = task_scs_sp(tsk) - task_scs(tsk); in task_scs_end_corrupted() local 53 return sz >= SCS_SIZE - 1 || READ_ONCE_NOCHECK(*magic) != SCS_END_MAGIC; in task_scs_end_corrupted()
|
/openbmc/linux/sound/usb/caiaq/ |
H A D | audio.c | 370 int sz = frames_to_bytes(rt, rt->buffer_size); in read_in_urb_mode0() local 374 if (cdev->audio_in_buf_pos[stream] == sz) in read_in_urb_mode0() 417 int sz = frames_to_bytes(rt, rt->buffer_size); in read_in_urb_mode2() local 421 if (cdev->audio_in_buf_pos[stream] == sz) in read_in_urb_mode2() 444 int c, n, sz = 0; in read_in_urb_mode3() local 449 sz = frames_to_bytes(rt, rt->buffer_size); in read_in_urb_mode3() 458 if (cdev->audio_in_buf_pos[stream] == sz) in read_in_urb_mode3() 535 if (cdev->audio_out_buf_pos[stream] == sz) in fill_out_urb_mode_0() 561 int c, n, sz = 0; in fill_out_urb_mode_3() local 566 sz = frames_to_bytes(rt, rt->buffer_size); in fill_out_urb_mode_3() [all …]
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | iommu.c | 97 unsigned long i, order, sz, num_tsb_entries; in iommu_table_init() local 109 sz = num_tsb_entries / 8; in iommu_table_init() 110 sz = (sz + 7UL) & ~7UL; in iommu_table_init() 111 iommu->tbl.map = kzalloc_node(sz, GFP_KERNEL, numa_node); in iommu_table_init() 264 unsigned long offset, size_t sz, in dma_4u_map_page() argument 283 npages = IO_PAGE_ALIGN(oaddr + sz) - (oaddr & IO_PAGE_MASK); in dma_4u_map_page() 387 size_t sz, enum dma_data_direction direction, in dma_4u_unmap_page() argument 404 npages = IO_PAGE_ALIGN(bus_addr + sz) - (bus_addr & IO_PAGE_MASK); in dma_4u_unmap_page() 658 dma_addr_t bus_addr, size_t sz, in dma_4u_sync_single_for_cpu() argument 673 npages = IO_PAGE_ALIGN(bus_addr + sz) - (bus_addr & IO_PAGE_MASK); in dma_4u_sync_single_for_cpu()
|
/openbmc/u-boot/arch/arm/cpu/arm926ejs/mxs/ |
H A D | spl_mem_init.c | 231 uint32_t sz, da; in mxs_mem_get_size() local 240 sz = get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE); in mxs_mem_get_size() 245 return sz; in mxs_mem_get_size()
|
/openbmc/qemu/target/riscv/ |
H A D | bitmanip_helper.c | 110 target_ulong sz = 1LL << sz_log2; in do_xperm() local 111 target_ulong mask = (1LL << sz) - 1; in do_xperm() 114 for (int i = 0; i < TARGET_LONG_BITS; i += sz) { in do_xperm()
|
/openbmc/linux/arch/riscv/include/asm/ |
H A D | hugetlb.h | 22 pte_t *ptep, unsigned long sz); 27 unsigned long sz);
|
/openbmc/linux/fs/smb/server/ |
H A D | transport_rdma.h | 59 void init_smbd_max_io_size(unsigned int sz); 65 static inline void init_smbd_max_io_size(unsigned int sz) { } in init_smbd_max_io_size() argument
|
H A D | server.c | 475 ssize_t sz = 0; in debug_show() local 480 pos = sysfs_emit_at(buf, sz, "[%s] ", debug_type_strings[i]); in debug_show() 482 pos = sysfs_emit_at(buf, sz, "%s ", debug_type_strings[i]); in debug_show() 484 sz += pos; in debug_show() 486 sz += sysfs_emit_at(buf, sz, "\n"); in debug_show() 487 return sz; in debug_show()
|
/openbmc/linux/drivers/scsi/ |
H A D | scsi_transport_fc.c | 1024 #define fc_rport_rd_attr(field, format_string, sz) \ argument 1025 fc_rport_show_function(field, format_string, sz, ) \ 1034 #define fc_rport_rw_attr(field, format_string, sz) \ argument 1035 fc_rport_show_function(field, format_string, sz, ) \ 1427 return snprintf(buf, sz, format_string, \ 1524 #define fc_vport_rd_attr(field, format_string, sz) \ argument 1525 fc_vport_show_function(field, format_string, sz, ) \ 1788 #define fc_host_rd_attr(field, format_string, sz) \ argument 1789 fc_host_show_function(field, format_string, sz, ) \ 1798 #define fc_host_rw_attr(field, format_string, sz) \ argument [all …]
|
/openbmc/linux/drivers/infiniband/hw/mlx5/ |
H A D | mad.c | 151 size_t sz) in query_ib_ppcnt() argument 156 in = kvzalloc(sz, GFP_KERNEL); in query_ib_ppcnt() 165 err = mlx5_core_access_reg(dev, in, sz, out, in query_ib_ppcnt() 166 sz, MLX5_REG_PPCNT, 0, 0); in query_ib_ppcnt() 211 int sz = MLX5_ST_SZ_BYTES(query_vport_counter_out); in process_pma_cmd() local 213 out_cnt = kvzalloc(sz, GFP_KERNEL); in process_pma_cmd() 226 int sz = MLX5_ST_SZ_BYTES(ppcnt_reg); in process_pma_cmd() local 228 out_cnt = kvzalloc(sz, GFP_KERNEL); in process_pma_cmd() 234 err = query_ib_ppcnt(mdev, mdev_port_num, out_cnt, sz); in process_pma_cmd()
|
/openbmc/linux/tools/lib/bpf/ |
H A D | bpf_core_read.h | 245 #define bpf_core_read(dst, sz, src) \ argument 246 bpf_probe_read_kernel(dst, sz, (const void *)__builtin_preserve_access_index(src)) 249 #define bpf_core_read_user(dst, sz, src) \ argument 250 bpf_probe_read_user(dst, sz, (const void *)__builtin_preserve_access_index(src)) 256 #define bpf_core_read_str(dst, sz, src) \ argument 257 bpf_probe_read_kernel_str(dst, sz, (const void *)__builtin_preserve_access_index(src)) 260 #define bpf_core_read_user_str(dst, sz, src) \ argument 261 bpf_probe_read_user_str(dst, sz, (const void *)__builtin_preserve_access_index(src))
|
H A D | btf.h | 182 LIBBPF_API int btf__add_struct(struct btf *btf, const char *name, __u32 sz); 183 LIBBPF_API int btf__add_union(struct btf *btf, const char *name, __u32 sz); 223 size_t sz; member 237 size_t sz; member 239 #define btf_dump_opts__last_field sz 254 size_t sz; member 280 size_t sz; member
|
H A D | libbpf_common.h | 68 .sz = sizeof(struct TYPE), \ 85 .sz = sizeof(NAME), \
|
H A D | skel_internal.h | 53 __u32 sz; member 124 static inline void skel_free_map_data(void *p, __u64 addr, size_t sz) in skel_free_map_data() argument 179 static inline void skel_free_map_data(void *p, __u64 addr, size_t sz) in skel_free_map_data() argument 181 munmap(p, sz); in skel_free_map_data() 351 attr.test.ctx_size_in = opts->ctx->sz; in bpf_load_and_run()
|
/openbmc/linux/arch/mips/mm/ |
H A D | hugetlbpage.c | 25 unsigned long addr, unsigned long sz) in huge_pte_alloc() argument 42 unsigned long sz) in huge_pte_offset() argument
|
/openbmc/qemu/tests/decode/ |
H A D | succ_named_field.decode | 5 %imm_sz 8:8 sz:3 6 insn 00000000 00000000 ........ 00000000 imm_sz=%imm_sz sz=1
|
/openbmc/linux/drivers/hwmon/ |
H A D | gsc-hwmon.c | 151 int sz, ret; in gsc_hwmon_read() local 169 sz = (ch->mode == mode_voltage_24bit) ? 3 : 2; in gsc_hwmon_read() 170 ret = regmap_bulk_read(hwmon->regmap, ch->reg, buf, sz); in gsc_hwmon_read() 175 while (sz-- > 0) in gsc_hwmon_read() 176 tmp |= (buf[sz] << (8 * sz)); in gsc_hwmon_read()
|
/openbmc/linux/drivers/scsi/mpt3sas/ |
H A D | mpt3sas_config.c | 81 u16 sz; member 204 if (mem->sz > ioc->config_page_sz) { in _config_alloc_config_dma_memory() 209 __func__, mem->sz); in _config_alloc_config_dma_memory() 233 if (mem->sz > ioc->config_page_sz) in _config_free_config_dma_memory() 592 u16 sz) in mpt3sas_config_get_manufacturing_pg7() argument 612 sz); in mpt3sas_config_get_manufacturing_pg7() 1311 u16 sz) in mpt3sas_config_get_pcie_iounit_pg1() argument 1437 u16 sz) in mpt3sas_config_get_sas_iounit_pg0() argument 1478 u16 sz) in mpt3sas_config_get_sas_iounit_pg1() argument 1519 u16 sz) in mpt3sas_config_set_sas_iounit_pg1() argument [all …]
|
/openbmc/u-boot/fs/yaffs2/ |
H A D | ydirectenv.h | 53 #define sort(base, n, sz, cmp_fn, swp) yaffs_qsort(base, n, sz, cmp_fn) argument
|
/openbmc/linux/arch/sh/mm/ |
H A D | hugetlbpage.c | 25 unsigned long addr, unsigned long sz) in huge_pte_alloc() argument 50 unsigned long addr, unsigned long sz) in huge_pte_offset() argument
|
/openbmc/linux/tools/testing/selftests/capabilities/ |
H A D | test_execve.c | 164 ssize_t sz = read(from, buf, sizeof(buf)); in copy_fromat_to() local 165 if (sz == 0) in copy_fromat_to() 167 if (sz < 0) in copy_fromat_to() 170 if (write(to, buf, sz) != sz) in copy_fromat_to()
|
/openbmc/linux/drivers/net/ethernet/amd/pds_core/ |
H A D | dev.c | 262 size_t sz; in pdsc_identify() local 280 sz = min_t(size_t, sizeof(drv), sizeof(pdsc->cmd_regs->data)); in pdsc_identify() 281 memcpy_toio(&pdsc->cmd_regs->data, &drv, sz); in pdsc_identify() 285 sz = min_t(size_t, sizeof(pdsc->dev_ident), in pdsc_identify() 287 memcpy_fromio(&pdsc->dev_ident, &pdsc->cmd_regs->data, sz); in pdsc_identify()
|