/Linux-v5.10/drivers/gpu/drm/nouveau/nvif/ |
D | mmu.c | 30 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 …]
|
/Linux-v5.10/drivers/hwmon/ |
D | fschmd.c | 263 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 …]
|
D | tmp401.c | 141 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 …]
|
D | lm90.c | 475 int kind; member 591 if (data->kind == max6696) { in lm90_select_remote_channel() 712 if (data->kind == max6696) { in lm90_update_limits() 796 if (data->kind == max6696) { in lm90_update_device() 1000 if (data->kind == adt7461 || data->kind == tmp451) in lm90_get_temp11() 1002 else if (data->kind == max6646) in lm90_get_temp11() 1008 if (data->kind == lm99 && index <= 2) in lm90_get_temp11() 1031 if (data->kind == lm99 && index <= 2) in lm90_set_temp11() 1034 if (data->kind == adt7461 || data->kind == tmp451) in lm90_set_temp11() 1036 else if (data->kind == max6646) in lm90_set_temp11() [all …]
|
D | tmp421.c | 219 enum chips kind; in tmp421_detect() local 246 kind = tmp421; in tmp421_detect() 251 kind = tmp422; in tmp421_detect() 256 kind = tmp423; in tmp421_detect() 259 kind = tmp441; in tmp421_detect() 264 kind = tmp442; in tmp421_detect() 270 strlcpy(info->type, tmp421_id[kind].name, I2C_NAME_SIZE); in tmp421_detect() 272 names[kind], client->addr); in tmp421_detect()
|
/Linux-v5.10/drivers/gpu/drm/nouveau/ |
D | nouveau_mem.c | 54 args.nv50.kind = mem->kind; in nouveau_mem_map() 68 args.gf100.kind = mem->kind; in nouveau_mem_map() 107 type = drm->ttm.type_ncoh[!!mem->kind]; in nouveau_mem_host() 111 if (mem->kind && !(mmu->type[type].type & NVIF_MEM_KIND)) in nouveau_mem_host() 112 mem->comp = mem->kind = 0; in nouveau_mem_host() 115 mem->kind = mmu->kind[mem->kind]; in nouveau_mem_host() 158 .bankswz = mmu->kind[mem->kind] == 2, in nouveau_mem_vram() 187 nouveau_mem_new(struct nouveau_cli *cli, u8 kind, u8 comp, in nouveau_mem_new() argument 195 mem->kind = kind; in nouveau_mem_new()
|
/Linux-v5.10/kernel/bpf/ |
D | trampoline.c | 170 int kind; in bpf_trampoline_get_progs() local 177 for (kind = 0; kind < BPF_TRAMP_MAX; kind++) { in bpf_trampoline_get_progs() 178 tprogs[kind].nr_progs = tr->progs_cnt[kind]; in bpf_trampoline_get_progs() 179 *total += tr->progs_cnt[kind]; in bpf_trampoline_get_progs() 180 progs = tprogs[kind].progs; in bpf_trampoline_get_progs() 182 hlist_for_each_entry(aux, &tr->progs_hlist[kind], tramp_hlist) in bpf_trampoline_get_progs() 266 enum bpf_tramp_prog_type kind; in bpf_trampoline_link_prog() local 270 kind = bpf_attach_type_to_tramp(prog); in bpf_trampoline_link_prog() 280 if (kind == BPF_TRAMP_REPLACE) { in bpf_trampoline_link_prog() 300 hlist_add_head(&prog->aux->tramp_hlist, &tr->progs_hlist[kind]); in bpf_trampoline_link_prog() [all …]
|
/Linux-v5.10/drivers/gpu/drm/nouveau/include/nvif/ |
D | mmu.h | 31 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()
|
D | cl0002.h | 41 __u8 kind; member 53 __u8 kind; member 64 __u8 kind; member
|
/Linux-v5.10/include/trace/events/ |
D | qdisc.h | 57 __string( kind, q->ops->id ) 64 __assign_str(kind, q->ops->id); 70 __get_str(kind), TC_H_MAJ(__entry->parent) >> 16, TC_H_MIN(__entry->parent), 82 __string( kind, q->ops->id ) 89 __assign_str(kind, q->ops->id); 95 __get_str(kind), TC_H_MAJ(__entry->parent) >> 16, TC_H_MIN(__entry->parent), 107 __string( kind, ops->id ) 113 __assign_str(kind, ops->id); 118 __get_str(dev), __get_str(kind),
|
/Linux-v5.10/drivers/gpu/drm/nouveau/nvkm/engine/dma/ |
D | usergf119.c | 76 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()
|
D | usernv50.c | 78 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()
|
D | usergf100.c | 78 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()
|
D | usergv100.c | 75 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()
|
/Linux-v5.10/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
D | gm200.c | 33 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,
|
D | nv50.c | 41 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,
|
D | tu102.c | 34 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,
|
D | gf100.c | 36 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,
|
D | ummu.c | 95 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()
|
D | vmmgf100.c | 250 u8 kind, kind_inv, priv, ro, vol; in gf100_vmm_valid() local 261 kind = args->v0.kind; in gf100_vmm_valid() 267 kind = 0x00; in gf100_vmm_valid() 277 kindm = vmm->mmu->func->kind(vmm->mmu, &kindn, &kind_inv); in gf100_vmm_valid() 278 if (kind >= kindn || kindm[kind] == kind_inv) { in gf100_vmm_valid() 279 VMM_DEBUG(vmm, "kind %02x", kind); in gf100_vmm_valid() 283 if (kindm[kind] != kind) { in gf100_vmm_valid() 309 kind = kindm[kind]; in gf100_vmm_valid() 318 map->type |= (u64)kind << 36; in gf100_vmm_valid()
|
D | vmmnv50.c | 238 u8 aper, kind, kind_inv, comp, priv, ro; in nv50_vmm_valid() local 248 kind = args->v0.kind & 0x7f; in nv50_vmm_valid() 254 kind = 0x00; in nv50_vmm_valid() 281 kindm = vmm->mmu->func->kind(vmm->mmu, &kindn, &kind_inv); in nv50_vmm_valid() 282 if (kind >= kindn || kindm[kind] == kind_inv) { in nv50_vmm_valid() 283 VMM_DEBUG(vmm, "kind %02x", kind); in nv50_vmm_valid() 287 if (map->mem && map->mem->type != kindm[kind]) { in nv50_vmm_valid() 288 VMM_DEBUG(vmm, "kind %02x bankswz: %d %d", kind, in nv50_vmm_valid() 289 kindm[kind], map->mem->type); in nv50_vmm_valid() 320 map->type |= (u64)kind << 40; in nv50_vmm_valid()
|
/Linux-v5.10/include/uapi/linux/tc_ematch/ |
D | tc_em_meta.h | 18 __u16 kind; member 24 #define TCF_META_TYPE(kind) (((kind) & TCF_META_TYPE_MASK) >> 12) argument 26 #define TCF_META_ID(kind) ((kind) & TCF_META_ID_MASK) argument
|
/Linux-v5.10/tools/testing/selftests/bpf/progs/ |
D | test_misc_tcp_hdr_options.c | 45 hdr.reg_opt.kind = 0xB9; in __check_active_hdr_in() 62 if (ret != 4 || hdr.reg_opt.len != 4 || hdr.reg_opt.kind != 0xB9 || in __check_active_hdr_in() 67 hdr.exprm_opt.kind = TCPOPT_EXP; in __check_active_hdr_in() 86 hdr.exprm_opt.kind != TCPOPT_EXP || in __check_active_hdr_in() 174 exprm_opt.kind = TCPOPT_EXP; in write_active_opt() 178 reg_opt.kind = 0xB9; in write_active_opt() 183 win_scale_opt.kind = TCPOPT_WINDOW; in write_active_opt() 203 if (ret != 4 || exprm_opt.len != 4 || exprm_opt.kind != TCPOPT_EXP || in write_active_opt() 209 if (ret != 4 || reg_opt.len != 4 || reg_opt.kind != 0xB9 || in write_active_opt() 227 win_scale_opt.kind != TCPOPT_WINDOW) in write_active_opt()
|
/Linux-v5.10/net/sched/ |
D | ematch.c | 92 static struct tcf_ematch_ops *tcf_em_lookup(u16 kind) in tcf_em_lookup() argument 98 if (kind == e->kind) { in tcf_em_lookup() 132 if (ops->kind == e->kind) in tcf_em_register() 182 if (em_hdr->kind == TCF_EM_CONTAINER) { in tcf_em_validate() 212 em->ops = tcf_em_lookup(em_hdr->kind); in tcf_em_validate() 218 request_module("ematch-kind-%u", em_hdr->kind); in tcf_em_validate() 220 em->ops = tcf_em_lookup(em_hdr->kind); in tcf_em_validate() 458 .kind = em->ops ? em->ops->kind : TCF_EM_CONTAINER, in tcf_em_tree_dump()
|
/Linux-v5.10/drivers/ata/ |
D | pata_macio.c | 228 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 …]
|