/kernel/linux/linux-6.6/drivers/net/mdio/ |
H A D | mdio-mux-bcm-iproc.c | 212 struct resource *res; in mdio_mux_iproc_probe() local 220 md->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in mdio_mux_iproc_probe() 223 if (res->start & 0xfff) { in mdio_mux_iproc_probe() 228 res->start &= ~0xfff; in mdio_mux_iproc_probe() 229 res->end = res->start + MDIO_REG_ADDR_SPACE_SIZE - 1; in mdio_mux_iproc_probe()
|
/kernel/linux/linux-6.6/drivers/pinctrl/mediatek/ |
H A D | pinctrl-mtk-common-v2.h | 258 const struct mtk_pin_desc *desc, int *res); 262 const struct mtk_pin_desc *desc, bool pullup, int *res); 317 const struct mtk_pin_desc *desc, int *res); 322 int *res); 328 int *res); 333 int *res);
|
/kernel/linux/linux-6.6/drivers/nvmem/ |
H A D | qfprom.c | 366 struct resource *res; in qfprom_probe() local 377 priv->qfpcorrected = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in qfprom_probe() 381 econfig.size = resource_size(res); in qfprom_probe() 396 res = platform_get_resource(pdev, IORESOURCE_MEM, 1); in qfprom_probe() 397 if (res) { in qfprom_probe() 401 priv->qfpraw = devm_ioremap_resource(dev, res); in qfprom_probe()
|
/kernel/linux/linux-6.6/drivers/pci/controller/ |
H A D | pci-thunder-pem.c | 346 struct resource *res; in thunder_pem_reserve_range() local 353 res = request_mem_region(start, end - start + 1, regionid); in thunder_pem_reserve_range() 354 if (res) in thunder_pem_reserve_range() 355 res->flags &= ~IORESOURCE_BUSY; in thunder_pem_reserve_range() 360 res ? "has been" : "could not be"); in thunder_pem_reserve_range() 408 thunder_pem_reserve_range(dev, root->segment, &cfg->res); in thunder_pem_acpi_init()
|
/kernel/linux/linux-6.6/crypto/ |
H A D | ecdsa.c | 103 struct ecc_point res = ECC_POINT_INIT(x1, y1, ndigits); in _ecdsa_verify() local 120 /* res = u1*G + u2 * pub_key */ in _ecdsa_verify() 121 ecc_point_mult_shamir(&res, u1, &curve->g, u2, &ctx->pub_key, curve); in _ecdsa_verify() 123 /* res.x = res.x mod n (if res.x > order) */ in _ecdsa_verify() 124 if (unlikely(vli_cmp(res.x, curve->n, ndigits) == 1)) in _ecdsa_verify() 126 vli_sub(res.x, res.x, curve->n, ndigits); in _ecdsa_verify() 128 if (!vli_cmp(res in _ecdsa_verify() [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/core/ |
H A D | uverbs_std_types_mr.c | 139 rdma_restrack_new(&mr->res, RDMA_RESTRACK_MR); in UVERBS_METHOD_DM_MR_REG() 140 rdma_restrack_set_name(&mr->res, NULL); in UVERBS_METHOD_DM_MR_REG() 141 rdma_restrack_add(&mr->res); in UVERBS_METHOD_DM_MR_REG() 252 rdma_restrack_new(&mr->res, RDMA_RESTRACK_MR); in UVERBS_METHOD_REG_DMABUF_MR() 253 rdma_restrack_set_name(&mr->res, NULL); in UVERBS_METHOD_REG_DMABUF_MR() 254 rdma_restrack_add(&mr->res); in UVERBS_METHOD_REG_DMABUF_MR()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/device/ |
H A D | tegra.c | 198 struct resource *res = nvkm_device_tegra_resource(device, bar); in nvkm_device_tegra_resource_addr() local 199 return res ? res->start : 0; in nvkm_device_tegra_resource_addr() 205 struct resource *res = nvkm_device_tegra_resource(device, bar); in nvkm_device_tegra_resource_size() local 206 return res ? resource_size(res) : 0; in nvkm_device_tegra_resource_size()
|
/kernel/linux/linux-6.6/drivers/i2c/busses/ |
H A D | i2c-isch.c | 258 struct resource *res; in smbus_sch_probe() local 261 res = platform_get_resource(dev, IORESOURCE_IO, 0); in smbus_sch_probe() 262 if (!res) in smbus_sch_probe() 265 if (!devm_request_region(&dev->dev, res->start, resource_size(res), in smbus_sch_probe() 272 sch_smba = res->start; in smbus_sch_probe()
|
/kernel/linux/linux-6.6/drivers/iio/light/ |
H A D | cm3605.c | 76 int ret, res; in cm3605_get_lux() local 79 ret = iio_read_channel_processed(cm3605->aout, &res); in cm3605_get_lux() 83 dev_dbg(cm3605->dev, "read %d mV from ADC\n", res); in cm3605_get_lux() 91 if (res < 30) in cm3605_get_lux() 93 if (res > CM3605_AOUT_MAX_MV) in cm3605_get_lux() 97 lux = res - 30; in cm3605_get_lux()
|
/kernel/linux/linux-6.6/drivers/irqchip/ |
H A D | irq-mbigen.c | 338 struct resource *res; in mbigen_device_probe() local 347 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in mbigen_device_probe() 348 if (!res) in mbigen_device_probe() 351 mgn_chip->base = devm_ioremap(&pdev->dev, res->start, in mbigen_device_probe() 352 resource_size(res)); in mbigen_device_probe() 354 dev_err(&pdev->dev, "failed to ioremap %pR\n", res); in mbigen_device_probe()
|
H A D | irq-bcm6345-l1.c | 230 struct resource res; in bcm6345_l1_init_one() local 235 if (of_address_to_resource(dn, idx, &res)) in bcm6345_l1_init_one() 237 sz = resource_size(&res); in bcm6345_l1_init_one() 251 cpu->map_base = ioremap(res.start, sz); in bcm6345_l1_init_one() 255 if (!request_mem_region(res.start, sz, res.name)) in bcm6345_l1_init_one()
|
/kernel/linux/linux-6.6/drivers/iommu/ |
H A D | tegra-gart.c | 316 struct resource *res; in tegra_gart_probe() local 322 res = platform_get_resource(to_platform_device(dev), IORESOURCE_MEM, 1); in tegra_gart_probe() 323 if (!res) { in tegra_gart_probe() 336 gart->iovmm_base = res->start; in tegra_gart_probe() 337 gart->iovmm_end = res->end + 1; in tegra_gart_probe() 351 gart->savedata = vmalloc(resource_size(res) / GART_PAGE_SIZE * in tegra_gart_probe()
|
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/lib/ |
H A D | test_util.c | 88 struct timespec res; in timespec_add_ns() local 90 res.tv_nsec = ts.tv_nsec + ns; in timespec_add_ns() 91 res.tv_sec = ts.tv_sec + res.tv_nsec / 1000000000LL; in timespec_add_ns() 92 res.tv_nsec %= 1000000000LL; in timespec_add_ns() 94 return res; in timespec_add_ns()
|
/kernel/linux/linux-6.6/sound/i2c/ |
H A D | i2c.c | 265 int err, res = 0; in snd_i2c_bit_sendbytes() local 281 res++; in snd_i2c_bit_sendbytes() 284 return res; in snd_i2c_bit_sendbytes() 291 int err, res = 0; in snd_i2c_bit_readbytes() local 308 res++; in snd_i2c_bit_readbytes() 311 return res; in snd_i2c_bit_readbytes()
|
/kernel/linux/linux-6.6/sound/soc/amd/raven/ |
H A D | acp3x-i2s.c | 288 struct resource *res; in acp3x_dai_probe() local 297 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in acp3x_dai_probe() 298 if (!res) { in acp3x_dai_probe() 302 adata->acp3x_base = devm_ioremap(&pdev->dev, res->start, in acp3x_dai_probe() 303 resource_size(res)); in acp3x_dai_probe() 307 adata->i2s_irq = res->start; in acp3x_dai_probe()
|
/third_party/ffmpeg/libavcodec/ |
H A D | dcadct.c | 76 int64_t res = 0; in dct_a() local 78 res += (int64_t)cos_mod[i][j] * input[j]; in dct_a() 79 output[i] = norm23(res); in dct_a() 99 int64_t res = input[0] * (INT64_C(1) << 23); in dct_b() local 101 res += (int64_t)cos_mod[i][j] * input[1 + j]; in dct_b() 102 output[i] = norm23(res); in dct_b()
|
/third_party/glslang/glslang/Include/ |
H A D | BaseTypes.h | 595 int res = -1; in getTypeRank() local 599 res = 0; in getTypeRank() 603 res = 1; in getTypeRank() 607 res = 2; in getTypeRank() 611 res = 3; in getTypeRank() 617 return res; in getTypeRank()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | ICUResourceBundleImpl.java | 145 int res = value.getContainerResource(wholeBundle.reader, index); in getString() 146 if (res == RES_BOGUS) { in getString() 149 String s = wholeBundle.reader.getString(res); in getString() 258 int res = value.getContainerResource(reader, index); in handleGetObject() 260 String s = reader.getString(res); in handleGetObject() 265 ICUResourceBundleReader.Container array = reader.getArray(res); in handleGetObject()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
H A D | ICUResourceBundleImpl.java | 146 int res = value.getContainerResource(wholeBundle.reader, index); in getString() 147 if (res == RES_BOGUS) { in getString() 150 String s = wholeBundle.reader.getString(res); in getString() 259 int res = value.getContainerResource(reader, index); in handleGetObject() 261 String s = reader.getString(res); in handleGetObject() 266 ICUResourceBundleReader.Container array = reader.getArray(res); in handleGetObject()
|
/third_party/lzma/CPP/Windows/ |
H A D | PropVariant.cpp | 268 const HRESULT res = ::VariantClear((VARIANTARG *)prop);
in PropVariant_Clear() local 269 if (res != S_OK || prop->vt != VT_EMPTY)
in PropVariant_Clear() 270 return res;
in PropVariant_Clear() 379 const int res = CompareFileTime(&filetime, &a.filetime);
in Compare() local 380 if (res != 0)
in Compare() 381 return res;
in Compare()
|
/third_party/lzma/CPP/7zip/UI/Common/ |
H A D | UpdatePair.cpp | 118 const int res = CompareFileNames(ai1.Name, ai2.Name);
in CompareArcItemsBase() local 119 if (res != 0)
in CompareArcItemsBase() 120 return res;
in CompareArcItemsBase() 131 const int res = CompareArcItemsBase(arcItems[i1], arcItems[i2]);
in CompareArcItems() local 132 if (res != 0)
in CompareArcItems() 133 return res;
in CompareArcItems()
|
/third_party/jerryscript/tests/unit-core/ |
H A D | test-arraybuffer.cpp | 299 // jerry_release_value (res); in HWTEST_F() 318 jerry_value_t res = jerry_detach_arraybuffer (arraybuffer); in HWTEST_F() local 319 TEST_ASSERT (!jerry_value_is_error (res)); in HWTEST_F() 328 jerry_release_value (res); in HWTEST_F() 347 jerry_value_t res = jerry_detach_arraybuffer (arraybuffer); in HWTEST_F() local 348 TEST_ASSERT (!jerry_value_is_error (res)); in HWTEST_F() 357 jerry_release_value (res); in HWTEST_F()
|
/third_party/libwebsockets/minimal-examples/crypto/minimal-crypto-cose-sign/ |
H A D | main.c | 362 lws_cose_validate_res_t *res = lws_container_of(p, in main() local 367 if (res->cose_key) { in main() 368 ke = &res->cose_key->meta[COSEKEY_META_KID]; in main() 375 res->result, in main() 376 lws_cose_alg_to_name(res->cose_alg), khr); in main() 378 result |= res->result; in main()
|
/third_party/nghttp2/src/ |
H A D | allocator.h | 127 auto res = head->last + sizeof(size_t); in alloc() local 132 (reinterpret_cast<intptr_t>(res + size) + 0xf) & ~0xf); in alloc() 134 return res; in alloc() 163 auto res = alloc(nalloclen); in realloc() local 164 std::copy_n(p, alloclen, static_cast<uint8_t *>(res)); in realloc() 166 return res; in realloc()
|
/third_party/mesa3d/src/panfrost/bifrost/ |
H A D | bi_opt_push_ubo.c | 66 struct bi_ubo_analysis res = { in bi_analyze_ranges() local 70 res.blocks = calloc(res.nr_blocks, sizeof(struct bi_ubo_block)); in bi_analyze_ranges() 79 assert(ubo < res.nr_blocks); in bi_analyze_ranges() 86 uint8_t *range = res.blocks[ubo].range; in bi_analyze_ranges() 90 return res; in bi_analyze_ranges()
|