Home
last modified time | relevance | path

Searched refs:kind (Results 1 – 25 of 148) sorted by relevance

123456

/drivers/gpu/drm/nouveau/nvif/
Dmmu.c30 kfree(mmu->kind); in nvif_mmu_dtor()
52 mmu->kind = NULL; in nvif_mmu_ctor()
76 mmu->kind = kmalloc_array(mmu->kind_nr, sizeof(*mmu->kind), in nvif_mmu_ctor()
78 if (!mmu->kind && mmu->kind_nr) in nvif_mmu_ctor()
105 if (args.kind ) mmu->type[i].type |= NVIF_MEM_KIND; in nvif_mmu_ctor()
113 struct nvif_mmu_kind_v0 *kind; in nvif_mmu_ctor() local
114 size_t argc = struct_size(kind, data, mmu->kind_nr); in nvif_mmu_ctor()
116 if (ret = -ENOMEM, !(kind = kmalloc(argc, GFP_KERNEL))) in nvif_mmu_ctor()
118 kind->version = 0; in nvif_mmu_ctor()
119 kind->count = mmu->kind_nr; in nvif_mmu_ctor()
[all …]
/drivers/hwmon/
Dfschmd.c263 enum chips kind; member
327 if (data->kind == fscher || data->kind >= fschrc) in in_value_show()
373 FSCHMD_REG_TEMP_LIMIT[data->kind][index], v); in temp_max_store()
463 FSCHMD_REG_FAN_RIPPLE[data->kind][index]); in fan_div_store()
470 FSCHMD_REG_FAN_RIPPLE[data->kind][index], reg); in fan_div_store()
513 if (val || data->kind == fscsyl) in pwm_auto_point1_pwm_show()
533 if (v || data->kind == fscsyl) { in pwm_auto_point1_pwm_store()
541 FSCHMD_REG_FAN_MIN[data->kind][index], v); in pwm_auto_point1_pwm_store()
699 int kind = data->kind + 1; /* 0-x array index -> 1-x module param */ in watchdog_set_timeout() local
702 if (timeout <= 510 || kind == fscpos || kind == fscscy) in watchdog_set_timeout()
[all …]
Dtmp401.c141 enum chips kind; member
181 int num_regs = data->kind == tmp411 ? 6 : 4; in tmp401_update_device_reg16()
182 int num_sensors = data->kind == tmp432 ? 3 : 2; in tmp401_update_device_reg16()
188 regaddr = data->kind == tmp432 ? in tmp401_update_device_reg16()
219 if (data->kind != tmp432) { in tmp401_update_device()
342 regaddr = data->kind == tmp432 ? TMP432_TEMP_MSB_WRITE[nr][index] in temp_store()
620 enum chips kind; in tmp401_detect() local
638 kind = tmp401; in tmp401_detect()
643 kind = tmp411; in tmp401_detect()
648 kind = tmp411; in tmp401_detect()
[all …]
Dtmp421.c226 enum chips kind; in tmp421_detect() local
253 kind = tmp421; in tmp421_detect()
258 kind = tmp422; in tmp421_detect()
263 kind = tmp423; in tmp421_detect()
266 kind = tmp441; in tmp421_detect()
271 kind = tmp442; in tmp421_detect()
277 strlcpy(info->type, tmp421_id[kind].name, I2C_NAME_SIZE); in tmp421_detect()
279 names[kind], client->addr); in tmp421_detect()
Dlm90.c504 int kind; member
620 if (data->kind == max6696) { in lm90_select_remote_channel()
743 if (data->kind == max6696) { in lm90_update_limits()
827 if (data->kind == max6696) { in lm90_update_device()
1033 else if (data->kind == max6646) in lm90_get_temp11()
1039 if (data->kind == lm99 && index <= 2) in lm90_get_temp11()
1062 if (data->kind == lm99 && index <= 2) { in lm90_set_temp11()
1070 else if (data->kind == max6646) in lm90_set_temp11()
1097 else if (data->kind == max6646) in lm90_get_temp8()
1103 if (data->kind == lm99 && index == 3) in lm90_get_temp8()
[all …]
/drivers/gpu/drm/nouveau/
Dnouveau_mem.c52 args.nv50.kind = mem->kind; in nouveau_mem_map()
66 args.gf100.kind = mem->kind; in nouveau_mem_map()
99 type = drm->ttm.type_ncoh[!!mem->kind]; in nouveau_mem_host()
103 if (mem->kind && !(mmu->type[type].type & NVIF_MEM_KIND)) in nouveau_mem_host()
104 mem->comp = mem->kind = 0; in nouveau_mem_host()
107 mem->kind = mmu->kind[mem->kind]; in nouveau_mem_host()
148 .bankswz = mmu->kind[mem->kind] == 2, in nouveau_mem_vram()
174 nouveau_mem_new(struct nouveau_cli *cli, u8 kind, u8 comp, in nouveau_mem_new() argument
183 mem->kind = kind; in nouveau_mem_new()
Dnouveau_display.c140 uint8_t *kind) in nouveau_decode_mod() argument
143 BUG_ON(!tile_mode || !kind); in nouveau_decode_mod()
148 *kind = 0; in nouveau_decode_mod()
161 *kind = (uint8_t)((modifier >> 12) & 0xFF); in nouveau_decode_mod()
171 uint8_t *kind) in nouveau_framebuffer_get_layout() argument
176 nouveau_decode_mod(drm, fb->modifier, tile_mode, kind); in nouveau_framebuffer_get_layout()
181 *kind = nvbo->kind; in nouveau_framebuffer_get_layout()
199 uint8_t *kind) in nouveau_validate_decode_mod() argument
224 nouveau_decode_mod(drm, modifier, tile_mode, kind); in nouveau_validate_decode_mod()
311 uint8_t kind; in nouveau_framebuffer_new() local
[all …]
Dnouveau_ttm.c57 ret = nouveau_mem_new(&drm->master, nvbo->kind, nvbo->comp, res); in nouveau_vram_manager_new()
87 ret = nouveau_mem_new(&drm->master, nvbo->kind, nvbo->comp, res); in nouveau_gart_manager_new()
112 ret = nouveau_mem_new(&drm->master, nvbo->kind, nvbo->comp, res); in nv04_gart_manager_new()
135 nouveau_ttm_init_host(struct nouveau_drm *drm, u8 kind) in nouveau_ttm_init_host() argument
141 kind | NVIF_MEM_COHERENT); in nouveau_ttm_init_host()
145 drm->ttm.type_host[!!kind] = typei; in nouveau_ttm_init_host()
147 typei = nvif_mmu_type(mmu, NVIF_MEM_HOST | NVIF_MEM_MAPPABLE | kind); in nouveau_ttm_init_host()
151 drm->ttm.type_ncoh[!!kind] = typei; in nouveau_ttm_init_host()
/drivers/gpu/drm/nouveau/include/nvif/
Dmmu.h31 u8 *kind; member
39 nvif_mmu_kind_valid(struct nvif_mmu *mmu, u8 kind) in nvif_mmu_kind_valid() argument
41 if (kind) { in nvif_mmu_kind_valid()
42 if (kind >= mmu->kind_nr || mmu->kind[kind] == mmu->kind_inv) in nvif_mmu_kind_valid()
Dcl0002.h41 __u8 kind; member
53 __u8 kind; member
64 __u8 kind; member
/drivers/gpu/drm/nouveau/nvkm/engine/dma/
Dusernv50.c78 u32 user, part, comp, kind; in nv50_dmaobj_new() local
98 args->v0.kind); in nv50_dmaobj_new()
102 kind = args->v0.kind; in nv50_dmaobj_new()
109 kind = NV50_DMA_V0_KIND_PITCH; in nv50_dmaobj_new()
114 kind = NV50_DMA_V0_KIND_VM; in nv50_dmaobj_new()
119 if (user > 2 || part > 2 || comp > 3 || kind > 0x7f) in nv50_dmaobj_new()
121 dmaobj->flags0 = (comp << 29) | (kind << 22) | (user << 20) | in nv50_dmaobj_new()
Dusergf119.c76 u32 kind, page; in gf119_dmaobj_new() local
95 args->v0.version, args->v0.page, args->v0.kind); in gf119_dmaobj_new()
96 kind = args->v0.kind; in gf119_dmaobj_new()
101 kind = GF119_DMA_V0_KIND_PITCH; in gf119_dmaobj_new()
104 kind = GF119_DMA_V0_KIND_VM; in gf119_dmaobj_new()
112 dmaobj->flags0 = (kind << 20) | (page << 6); in gf119_dmaobj_new()
Dusergf100.c78 u32 kind, user, unkn; in gf100_dmaobj_new() local
97 args->v0.version, args->v0.priv, args->v0.kind); in gf100_dmaobj_new()
98 kind = args->v0.kind; in gf100_dmaobj_new()
104 kind = GF100_DMA_V0_KIND_PITCH; in gf100_dmaobj_new()
108 kind = GF100_DMA_V0_KIND_VM; in gf100_dmaobj_new()
117 dmaobj->flags0 |= (kind << 22) | (user << 20) | oclass->base.oclass; in gf100_dmaobj_new()
Dusergv100.c75 u32 kind, page; in gv100_dmaobj_new() local
94 args->v0.version, args->v0.page, args->v0.kind); in gv100_dmaobj_new()
95 kind = args->v0.kind != 0; in gv100_dmaobj_new()
99 kind = 0; in gv100_dmaobj_new()
104 if (kind) in gv100_dmaobj_new()
/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
Dgm200.c33 kind[256] = { in gm200_mmu_kind() local
67 *count = ARRAY_SIZE(kind); in gm200_mmu_kind()
69 return kind; in gm200_mmu_kind()
78 .kind = gm200_mmu_kind,
88 .kind = gm200_mmu_kind,
Dvmmgf100.c249 u8 kind, kind_inv, priv, ro, vol; in gf100_vmm_valid() local
260 kind = args->v0.kind; in gf100_vmm_valid()
266 kind = 0x00; in gf100_vmm_valid()
276 kindm = vmm->mmu->func->kind(vmm->mmu, &kindn, &kind_inv); in gf100_vmm_valid()
277 if (kind >= kindn || kindm[kind] == kind_inv) { in gf100_vmm_valid()
278 VMM_DEBUG(vmm, "kind %02x", kind); in gf100_vmm_valid()
282 if (kindm[kind] != kind) { in gf100_vmm_valid()
308 kind = kindm[kind]; in gf100_vmm_valid()
317 map->type |= (u64)kind << 36; in gf100_vmm_valid()
Dummu.c95 args->v0.kind = !!(type & NVKM_MEM_KIND); in nvkm_ummu_type()
112 const u8 *kind = NULL; in nvkm_ummu_kind() local
116 if (mmu->func->kind) in nvkm_ummu_kind()
117 kind = mmu->func->kind(mmu, &count, &kind_inv); in nvkm_ummu_kind()
125 memcpy(args->v0.data, kind, args->v0.count); in nvkm_ummu_kind()
164 if (mmu->func->kind) in nvkm_ummu_new()
165 mmu->func->kind(mmu, &kinds, &unused); in nvkm_ummu_new()
Dvmmnv50.c237 u8 aper, kind, kind_inv, comp, priv, ro; in nv50_vmm_valid() local
247 kind = args->v0.kind & 0x7f; in nv50_vmm_valid()
253 kind = 0x00; in nv50_vmm_valid()
280 kindm = vmm->mmu->func->kind(vmm->mmu, &kindn, &kind_inv); in nv50_vmm_valid()
281 if (kind >= kindn || kindm[kind] == kind_inv) { in nv50_vmm_valid()
282 VMM_DEBUG(vmm, "kind %02x", kind); in nv50_vmm_valid()
286 if (map->mem && map->mem->type != kindm[kind]) { in nv50_vmm_valid()
287 VMM_DEBUG(vmm, "kind %02x bankswz: %d %d", kind, in nv50_vmm_valid()
288 kindm[kind], map->mem->type); in nv50_vmm_valid()
319 map->type |= (u64)kind << 40; in nv50_vmm_valid()
Dnv50.c41 kind[128] = { in nv50_mmu_kind() local
59 *count = ARRAY_SIZE(kind); in nv50_mmu_kind()
61 return kind; in nv50_mmu_kind()
70 .kind = nv50_mmu_kind,
Dtu102.c34 kind[16] = { in tu102_mmu_kind() local
38 *count = ARRAY_SIZE(kind); in tu102_mmu_kind()
40 return kind; in tu102_mmu_kind()
49 .kind = tu102_mmu_kind,
Dgf100.c36 kind[256] = { in gf100_mmu_kind() local
71 *count = ARRAY_SIZE(kind); in gf100_mmu_kind()
73 return kind; in gf100_mmu_kind()
82 .kind = gf100_mmu_kind,
Dvmmgp100.c416 u8 kind, kind_inv, priv, ro, vol; in gp100_vmm_valid() local
427 kind = args->v0.kind; in gp100_vmm_valid()
433 kind = 0x00; in gp100_vmm_valid()
443 kindm = vmm->mmu->func->kind(vmm->mmu, &kindn, &kind_inv); in gp100_vmm_valid()
444 if (kind >= kindn || kindm[kind] == kind_inv) { in gp100_vmm_valid()
445 VMM_DEBUG(vmm, "kind %02x", kind); in gp100_vmm_valid()
449 if (kindm[kind] != kind) { in gp100_vmm_valid()
470 kind = kindm[kind]; in gp100_vmm_valid()
479 map->type |= (u64)kind << 56; in gp100_vmm_valid()
/drivers/ata/
Dpata_macio.c228 int kind; member
374 if (priv->kind == controller_sh_ata6 || in pata_macio_apply_timings()
375 priv->kind == controller_un_ata6 || in pata_macio_apply_timings()
376 priv->kind == controller_k2_ata6) { in pata_macio_apply_timings()
447 switch(priv->kind) { in pata_macio_default_timings()
478 if (priv->kind == controller_kl_ata4 || in pata_macio_cable_detect()
479 priv->kind == controller_un_ata6 || in pata_macio_cable_detect()
480 priv->kind == controller_k2_ata6 || in pata_macio_cable_detect()
481 priv->kind == controller_sh_ata6) { in pata_macio_cable_detect()
608 if (priv->kind == controller_kl_ata4 && in pata_macio_bmdma_setup()
[all …]
/drivers/gpu/drm/nouveau/dispnv04/
Dtvnv17.c297 if (tv_norm->kind == CTV_ENC_MODE) in nv17_tv_get_modes()
308 if (tv_norm->kind == CTV_ENC_MODE) { in nv17_tv_mode_valid()
353 if (tv_norm->kind == CTV_ENC_MODE) in nv17_tv_mode_fixup()
378 if (tv_norm->kind == CTV_ENC_MODE) { in nv17_tv_dpms()
415 if (tv_norm->kind == CTV_ENC_MODE) { in nv17_tv_prepare()
432 if (tv_norm->kind == CTV_ENC_MODE) in nv17_tv_prepare()
441 if (tv_norm->kind == CTV_ENC_MODE) { in nv17_tv_prepare()
475 if (tv_norm->kind == TV_ENC_MODE) { in nv17_tv_mode_set()
580 if (get_tv_norm(encoder)->kind == TV_ENC_MODE) { in nv17_tv_commit()
697 if (tv_norm->kind == CTV_ENC_MODE) in nv17_tv_set_property()
[all …]
/drivers/gpu/drm/nouveau/dispnv50/
Dwndw.c55 u8 kind; in nv50_wndw_ctxdma_new() local
67 nouveau_framebuffer_get_layout(fb, &unused, &kind); in nv50_wndw_ctxdma_new()
68 handle = NV50_DISP_HANDLE_WNDW_CTX(kind); in nv50_wndw_ctxdma_new()
90 args.nv50.kind = kind; in nv50_wndw_ctxdma_new()
94 args.gf100.kind = kind; in nv50_wndw_ctxdma_new()
98 args.gf119.kind = kind; in nv50_wndw_ctxdma_new()
274 uint8_t kind; in nv50_wndw_atomic_check_acquire() local
281 nouveau_framebuffer_get_layout(fb, &tile_mode, &kind); in nv50_wndw_atomic_check_acquire()
285 asyw->image.kind = kind; in nv50_wndw_atomic_check_acquire()
294 if (asyw->image.kind) { in nv50_wndw_atomic_check_acquire()
[all …]

123456