search for: of_init

Displaying 5 results from an estimated 5 matches for "of_init".

Did you mean: pf_init
2009 Dec 06
2
Error in eval(expr, envir, enclos) : object 'N' not found
...psize = (num_days / interval_size) + 1 OF_tumor_size = iniT + (OF_prcnt * iniT) ## Sentinel Value to find at which row in the matrix reaches OF_tumor_size OF_row=-1; for(i in 1:loopsize) { if( out[i,2] >= OF_tumor_size) { OF_row=i; break; } } if(OF_row != -1) { ##Params setup OF_iniT=out[OF_row,2]; OF_iniN=out[OF_row,3]; OF_iniC=out[OF_row,4]; OF_iniM=out[OF_row,5]; pars2 <- list( Tini=OF_iniT, Nini=OF_iniN, Mini=OF_iniM, Cini=OF_iniC, a=4.31E-3, b=1.02E-14, c1=3.41E-10, Kt=8E-1, f=4.12E-2, g=1.5E-2, h=2.02E1, beta=1.20E-2, gamma=9E-1, Kc=6...
2015 Oct 02
2
[PATCH] bios: fix OF loading
...t; priv->size) { + length = min_t(u32, length, priv->size - offset); memcpy_fromio(bios->data + offset, priv->data + offset, length); return length; } return 0; } +static u32 +of_size(void *data) +{ + struct priv *priv = data; + + return priv->size; +} + static void * of_init(struct nvkm_bios *bios, const char *name) { - struct pci_dev *pdev = bios->subdev.device->pdev; + struct nvkm_device *device = bios->subdev.device; + struct pci_dev *pdev = device->func->pci(device)->pdev; struct device_node *dn; struct priv *priv; if (!(dn = pci_device_to_...
2024 Mar 26
1
[PATCH 06/12] nouveau: fix function cast warning
...(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowof.c b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowof.c index 4bf486b57101..0dbcc23305f3 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowof.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowof.c @@ -66,11 +66,16 @@ of_init(struct nvkm_bios *bios, const char *name) return ERR_PTR(-EINVAL); } +static void of_fini(void *p) +{ + return kfree(p); +} + const struct nvbios_source nvbios_of = { .name = "OpenFirmware", .init = of_init, - .fini = (void(*)(void *))kfree, + .fini = of_fini, .read = of_read...
2024 Mar 26
1
[PATCH 00/12] kbuild: enable some -Wextra warnings by default
From: Arnd Bergmann <arnd at arndb.de> This is a follow-up on a couple of patch series I sent in the past, enabling -Wextra (aside from stuff that is explicitly disabled), -Wcast-function-pointer-strict and -Wrestrict. I have tested these on 'defconfig' and 'allmodconfig' builds across all architectures, as well as many 'randconfig' builds on x86, arm and arm64. It
2015 Oct 02
2
[PATCH] bios: fix OF loading
...return length; >> } >> return 0; >> } >> >> +static u32 >> +of_size(void *data) >> +{ >> + struct priv *priv = data; >> + >> + return priv->size; >> +} >> + >> static void * >> of_init(struct nvkm_bios *bios, const char *name) >> { >> - struct pci_dev *pdev = bios->subdev.device->pdev; >> + struct nvkm_device *device = bios->subdev.device; >> + struct pci_dev *pdev = device->func->pci(device)->pdev; >> st...