/linux-master/mm/ |
H A D | debug_page_alloc.c | 23 unsigned long res; local 25 if (kstrtoul(buf, 10, &res) < 0 || res > MAX_PAGE_ORDER / 2) { 29 _debug_guardpage_minorder = res; 30 pr_info("Setting debug_guardpage_minorder to %lu\n", res);
|
/linux-master/arch/riscv/kernel/ |
H A D | setup.c | 70 struct resource *res) 74 ret = insert_resource(parent, res); 77 res->name, (unsigned long long) res->start); 139 struct resource *res = NULL; local 173 res = &mem_res[res_idx--]; 175 res->name = "Reserved"; 176 res->flags = IORESOURCE_MEM | IORESOURCE_EXCLUSIVE; 177 res->start = __pfn_to_phys(memblock_region_reserved_base_pfn(region)); 178 res 69 add_resource(struct resource *parent, struct resource *res) argument [all...] |
/linux-master/include/drm/ttm/ |
H A D | ttm_resource.h | 59 * @res: Resulting pointer to the ttm_resource. 64 * @res. @res::start should be set to a value identifying the beginning 77 struct ttm_resource **res); 83 * @res: Pointer to a struct ttm_resource to be freed. 89 struct ttm_resource *res); 95 * @res: Pointer to a struct ttm_resource to be checked. 99 * Test if @res intersects with @place + @size. Used to judge if 103 struct ttm_resource *res, 111 * @res [all...] |
/linux-master/arch/x86/pci/ |
H A D | mmconfig-shared.c | 39 if (cfg->res.parent) 40 release_resource(&cfg->res); 74 struct resource *res; local 88 res = &new->res; 89 res->start = addr + PCI_MMCFG_BUS_OFFSET(start); 90 res->end = addr + PCI_MMCFG_BUS_OFFSET(end + 1) - 1; 91 res->flags = IORESOURCE_MEM | IORESOURCE_BUSY; 94 res->name = new->name; 113 &new->res, (unsigne 378 check_mcfg_resource(struct acpi_resource *res, void *data) argument 445 is_efi_mmio(struct resource *res) argument [all...] |
/linux-master/tools/testing/selftests/bpf/ |
H A D | bench.c | 38 void false_hits_report_progress(int iter, struct bench_res *res, long delta_ns) argument 40 long total = res->false_hits + res->hits + res->drops; 46 res->false_hits, total, ((float)res->false_hits / total) * 100); 49 void false_hits_report_final(struct bench_res res[], int res_cnt) argument 55 total_hits += res[i].hits; 56 total_false_hits += res[i].false_hits; 57 total_drops += res[ 67 hits_drops_report_progress(int iter, struct bench_res *res, long delta_ns) argument 84 grace_period_latency_basic_stats(struct bench_res res[], int res_cnt, struct basic_stats *gp_stat) argument 103 grace_period_ticks_basic_stats(struct bench_res res[], int res_cnt, struct basic_stats *gp_stat) argument 120 hits_drops_report_final(struct bench_res res[], int res_cnt) argument 158 ops_report_progress(int iter, struct bench_res *res, long delta_ns) argument 170 ops_report_final(struct bench_res res[], int res_cnt) argument 191 local_storage_report_progress(int iter, struct bench_res *res, long delta_ns) argument 206 local_storage_report_final(struct bench_res res[], int res_cnt) argument 670 struct bench_res *res = &state.results[iter]; local [all...] |
/linux-master/sound/soc/amd/vangogh/ |
H A D | pci-acp5x.c | 21 struct resource *res; member in struct:acp5x_dev_data 179 adata->res = devm_kzalloc(&pci->dev, 182 if (!adata->res) { 187 adata->res[0].name = "acp5x_i2s_iomem"; 188 adata->res[0].flags = IORESOURCE_MEM; 189 adata->res[0].start = addr; 190 adata->res[0].end = addr + (ACP5x_REG_END - ACP5x_REG_START); 192 adata->res[1].name = "acp5x_i2s_sp"; 193 adata->res[1].flags = IORESOURCE_MEM; 194 adata->res[ [all...] |
/linux-master/drivers/platform/mellanox/ |
H A D | mlxbf-bootctl.c | 140 struct arm_smccc_res res; local 142 arm_smccc_smc(smc_op, smc_arg, 0, 0, 0, 0, 0, 0, &res); 144 return res.a0; 457 struct arm_smccc_res res; local 461 0, 0, 0, &res); 463 if (res.a0) 466 return sysfs_emit(buf, "0x%lx", res.a1); 473 struct arm_smccc_res res; local 486 arm_smccc_smc(MLNX_HANDLE_SET_ICM_INFO, icm_data, 0, 0, 0, 0, 0, 0, &res); 489 return res 496 struct arm_smccc_res res; local 517 struct arm_smccc_res res; local 537 struct arm_smccc_res res; local 568 struct arm_smccc_res res; local 592 struct arm_smccc_res res; local 619 struct arm_smccc_res res; local 643 struct arm_smccc_res res; local 670 struct arm_smccc_res res; local 694 struct arm_smccc_res res; local 721 struct arm_smccc_res res; local 745 struct arm_smccc_res res; local 772 struct arm_smccc_res res; local 796 struct arm_smccc_res res; local 823 struct arm_smccc_res res; local 847 struct arm_smccc_res res; local 874 struct arm_smccc_res res; local 979 mlxbf_bootctl_guid_match(const guid_t *guid, const struct arm_smccc_res *res) argument 992 struct arm_smccc_res res = { 0 }; local [all...] |
/linux-master/tools/bpf/bpftool/ |
H A D | feature.c | 78 const char *define_name, bool res, const char *define_prefix) 81 jsonw_bool_field(json_wtr, feat_name, res); 84 res ? "" : "NO_", define_name); 86 printf("%s is %savailable\n", plain_name, res ? "" : "NOT "); 93 int res; local 101 res = strtol(value, &endptr, 0); 103 jsonw_int_field(json_wtr, name, res); 175 long res; local 181 res = getline(&line, &len, fd); 183 if (res < 77 print_bool_feature(const char *feat_name, const char *plain_name, const char *define_name, bool res, const char *define_prefix) argument 197 long res; local 226 long res; local 256 long res; local 286 long res; local 312 long res; local 499 bool res; local 553 bool res; local 620 bool res; local 663 bool res; local 686 bool res = false; local 788 bool res; local 918 bool res; local 1058 int res = -1; local [all...] |
/linux-master/drivers/usb/misc/ |
H A D | brcmstb-usb-pinmap.c | 136 int res; local 147 res = of_property_read_string_index(dn, "brcm,in-functions", x, 149 if (res < 0) { 152 return res; 154 res = of_property_read_u32_index(dn, "brcm,in-masks", index++, 156 if (res < 0) { 159 return res; 161 res = of_property_read_u32_index(dn, "brcm,in-masks", index++, 163 if (res < 0) { 166 return res; [all...] |
/linux-master/drivers/char/ |
H A D | ps3flash.c | 37 u64 res = ps3stor_read_write_sectors(dev, dev->bounce_lpar, local 40 if (res) { 42 __LINE__, write ? "write" : "read", res); 51 int res; local 56 res = ps3flash_read_write_sectors(dev, priv->tag, 1); 57 if (res) 58 return res; 67 int res; local 72 res = ps3flash_writeback(dev); 73 if (res) 99 int res; local 168 int res = 0; local 257 ssize_t res; local 290 int res; local [all...] |
/linux-master/drivers/mfd/ |
H A D | janz-cmodio.c | 67 struct resource *res; local 72 res = &priv->resources[devno * 3]; 76 cell->resources = res; 88 res->flags = IORESOURCE_MEM; 89 res->parent = &pci->resource[3]; 90 res->start = pci->resource[3].start + (CMODIO_MODULBUS_SIZE * modno); 91 res->end = res->start + CMODIO_MODULBUS_SIZE - 1; 92 res++; 95 res [all...] |
/linux-master/lib/crypto/mpi/ |
H A D | mpi-pow.c | 24 int mpi_powm(MPI res, MPI base, MPI exp, MPI mod) argument 46 rp = res->d; 55 res->nlimbs = (msize == 1 && mod->d[0] == 1) ? 0 : 1; 56 if (res->nlimbs) { 57 if (mpi_resize(res, 1) < 0) 59 rp = res->d; 62 res->sign = 0; 99 res->nlimbs = 0; 100 res->sign = 0; 104 if (res [all...] |
/linux-master/drivers/usb/cdns3/ |
H A D | cdnsp-pci.c | 56 struct resource *res; local 103 res = devm_request_mem_region(dev, rsrc_start, rsrc_len, "dev"); 104 if (!res) { 121 res = &cdnsp->xhci_res[0]; 122 res->start = pci_resource_start(pdev, PCI_BAR_HOST); 123 res->end = pci_resource_end(pdev, PCI_BAR_HOST); 124 res->name = "xhci"; 125 res->flags = IORESOURCE_MEM; 127 &res->start); 130 res [all...] |
/linux-master/arch/powerpc/kernel/ |
H A D | pci-common.c | 758 struct resource *res; local 780 res = NULL; 815 res = &hose->io_resource; 843 res = &hose->mem_resources[memno++]; 846 if (res != NULL) { 847 res->name = dev->full_name; 848 res->flags = range.flags; 849 res->start = range.cpu_addr; 850 res->end = range.cpu_addr + range.size - 1; 851 res 882 struct resource *res; local 932 pcibios_uninitialized_bridge_resource(struct pci_bus *bus, struct resource *res) argument 1000 struct resource *res; local 1134 pcibios_align_resource(void *data, const struct resource *res, resource_size_t size, resource_size_t align) argument 1155 reparent_resources(struct resource *parent, struct resource *res) argument 1223 struct resource *res, *pr; local 1362 struct resource *res, *pres; local 1531 struct resource *res; local [all...] |
/linux-master/drivers/gpu/drm/amd/display/dc/inc/ |
H A D | bw_fixed.h | 72 struct bw_fixed res; local 74 res.value = value << BW_FIXED_BITS_PER_FRACTIONAL_PART; 75 return res; 104 struct bw_fixed res; local 106 res.value = arg1.value + arg2.value; 108 return res; 113 struct bw_fixed res; local 115 res.value = arg1.value - arg2.value; 117 return res; 128 struct bw_fixed res; local [all...] |
/linux-master/arch/um/os-Linux/ |
H A D | tty.c | 15 int res; member in struct:grantpt_info 23 info->res = grantpt(info->fd); 43 if (info.res < 0) {
|
/linux-master/sound/hda/ |
H A D | local.h | 39 void snd_hdac_bus_queue_event(struct hdac_bus *bus, u32 res, u32 res_ex); 41 unsigned int cmd, unsigned int *res); 44 unsigned int flags, unsigned int *res);
|
/linux-master/drivers/soc/samsung/ |
H A D | s3c-pm-check.c | 69 static u32 *s3c_pm_countram(struct resource *res, u32 *val) argument 71 u32 size = (u32)resource_size(res); 77 (unsigned long)res->start, (unsigned long)res->end, size); 104 static u32 *s3c_pm_makecheck(struct resource *res, u32 *val) argument 108 for (addr = res->start; addr < res->end; 110 left = res->end - addr; 153 * @res: The resource to check 161 static u32 *s3c_pm_runcheck(struct resource *res, u3 argument [all...] |
/linux-master/drivers/net/ethernet/netronome/nfp/nfpcore/ |
H A D | nfp_nffw.c | 80 struct nfp_resource *res; member in struct:nfp_nffw_info 92 static u32 nffw_res_info_version_get(const struct nfp_nffw_info_data *res) argument 94 return (le32_to_cpu(res->flags[0]) >> 16) & 0xfff; 98 static u32 nffw_res_flg_init_get(const struct nfp_nffw_info_data *res) argument 100 return (le32_to_cpu(res->flags[0]) >> 0) & 1; 170 state->res = nfp_resource_acquire(cpp, NFP_RESOURCE_NFP_NFFW); 171 if (IS_ERR(state->res)) 176 if (sizeof(*fwinf) > nfp_resource_size(state->res)) 179 err = nfp_cpp_read(cpp, nfp_resource_cpp_id(state->res), 180 nfp_resource_address(state->res), [all...] |
/linux-master/drivers/pci/controller/dwc/ |
H A D | pcie-hisi.c | 81 struct resource *res; local 92 res = devm_kzalloc(dev, sizeof(*res), GFP_KERNEL); 93 if (!res) 96 ret = acpi_get_rc_resources(dev, "HISI0081", root->segment, res); 102 pcie->reg_base = devm_pci_remap_cfgspace(dev, res->start, resource_size(res)); 128 struct resource *res; local 134 res = platform_get_resource(pdev, IORESOURCE_MEM, 1); 135 if (!res) { [all...] |
/linux-master/drivers/gpu/drm/gma500/ |
H A D | gtt.h | 32 int psb_gtt_allocate_resource(struct drm_psb_private *pdev, struct resource *res, 37 void psb_gtt_insert_pages(struct drm_psb_private *pdev, const struct resource *res, 39 void psb_gtt_remove_pages(struct drm_psb_private *pdev, const struct resource *res);
|
/linux-master/tools/testing/selftests/kvm/aarch64/ |
H A D | psci_test.c | 28 struct arm_smccc_res res; local 31 0, 0, 0, 0, &res); 33 return res.a0; 39 struct arm_smccc_res res; local 42 0, 0, 0, 0, 0, &res); 44 return res.a0; 49 struct arm_smccc_res res; local 52 0, 0, 0, 0, 0, &res); 54 return res.a0; 59 struct arm_smccc_res res; local [all...] |
/linux-master/tools/testing/selftests/bpf/benchs/ |
H A D | bench_local_storage_rcu_tasks_trace.c | 189 static void measure(struct bench_res *res) argument 193 res->gp_ct = atomic_swap(&ctx.skel->bss->gp_hits, 0); 194 res->gp_ns = atomic_swap(&ctx.skel->bss->gp_times, 0); 196 res->stime = ticks - ctx.prev_kthread_stime; 207 static void report_progress(int iter, struct bench_res *res, long delta_ns) argument 219 iter, res->gp_ns / (double)res->gp_ct); 221 iter, res->stime / (double)res->gp_ct); 224 static void report_final(struct bench_res res[], in argument [all...] |
/linux-master/tools/testing/selftests/kvm/lib/ |
H A D | string_override.c | 13 int res = 0; local 16 if ((res = *su1 - *su2) != 0) 19 return res;
|
/linux-master/tools/include/linux/ |
H A D | compiler.h | 143 static __always_inline void __read_once_size(const volatile void *p, void *res, int size) argument 146 case 1: *(__u8_alias_t *) res = *(volatile __u8_alias_t *) p; break; 147 case 2: *(__u16_alias_t *) res = *(volatile __u16_alias_t *) p; break; 148 case 4: *(__u32_alias_t *) res = *(volatile __u32_alias_t *) p; break; 149 case 8: *(__u64_alias_t *) res = *(volatile __u64_alias_t *) p; break; 152 __builtin_memcpy((void *)res, (const void *)p, size); 157 static __always_inline void __write_once_size(volatile void *p, void *res, int size) argument 160 case 1: *(volatile __u8_alias_t *) p = *(__u8_alias_t *) res; break; 161 case 2: *(volatile __u16_alias_t *) p = *(__u16_alias_t *) res; break; 162 case 4: *(volatile __u32_alias_t *) p = *(__u32_alias_t *) res; brea [all...] |