Home
last modified time | relevance | path

Searched full:kind (Results 1 – 25 of 3680) sorted by relevance

12345678910>>...148

/Linux-v6.1/drivers/gpu/drm/nouveau/nvif/
Dmmu.c14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
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()
[all …]
/Linux-v6.1/drivers/gpu/drm/nouveau/
Dnouveau_mem.c14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
52 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()
175 nouveau_mem_new(struct nouveau_cli *cli, u8 kind, u8 comp, in nouveau_mem_new() argument
184 mem->kind = kind; in nouveau_mem_new()
Dnouveau_display.c17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
140 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()
151 * Extract the block height and kind from the corresponding in nouveau_decode_mod()
156 /* Legacy modifier. Translate to this dev's 'kind.' */ 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()
[all …]
/Linux-v6.1/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 …]
Dnct6775-platform.c99 enum kinds kind; member
372 if (data->kind == nct6775) { in nct6775_suspend()
408 if (data->kind == nct6791 || data->kind == nct6792 || in nct6775_resume()
409 data->kind == nct6793 || data->kind == nct6795 || in nct6775_resume()
410 data->kind == nct6796 || data->kind == nct6797 || in nct6775_resume()
411 data->kind == nct6798) in nct6775_resume()
455 if (data->kind == nct6775) { in nct6775_resume()
485 if (data->kind == nct6775) { in nct6775_check_fan_inputs()
493 } else if (data->kind == nct6776) { in nct6775_check_fan_inputs()
533 } else if (data->kind == nct6106) { in nct6775_check_fan_inputs()
[all …]
Dtmp401.c111 enum chips kind; member
181 if (data->kind == tmp432) { in tmp401_reg_read()
579 if (data->kind == tmp401) { in tmp401_init_client()
594 if (data->kind == tmp401 || data->kind == tmp411) { in tmp401_init_client()
613 enum chips kind; in tmp401_detect() local
631 kind = tmp401; in tmp401_detect()
636 kind = tmp411; in tmp401_detect()
641 kind = tmp411; in tmp401_detect()
646 kind = tmp411; in tmp401_detect()
651 kind = tmp431; in tmp401_detect()
[all …]
/Linux-v6.1/include/trace/events/
Dqdisc.h85 __string( kind, q->ops->id )
92 __assign_str(kind, q->ops->id);
97 TP_printk("dev=%s kind=%s parent=%x:%x handle=%x:%x", __get_str(dev),
98 __get_str(kind), TC_H_MAJ(__entry->parent) >> 16, TC_H_MIN(__entry->parent),
110 __string( kind, q->ops->id )
117 __assign_str(kind, q->ops->id);
122 TP_printk("dev=%s kind=%s parent=%x:%x handle=%x:%x", __get_str(dev),
123 __get_str(kind), TC_H_MAJ(__entry->parent) >> 16, TC_H_MIN(__entry->parent),
135 __string( kind, ops->id )
141 __assign_str(kind, ops->id);
[all …]
Dsock.h95 TP_PROTO(struct sock *sk, struct proto *prot, long allocated, int kind),
97 TP_ARGS(sk, prot, allocated, kind),
108 __field(int, kind)
122 __entry->kind = kind;
125 …ld allocated=%ld sysctl_rmem=%d rmem_alloc=%d sysctl_wmem=%d wmem_alloc=%d wmem_queued=%d kind=%s",
136 show_skmem_kind_names(__entry->kind)
/Linux-v6.1/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()
/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/engine/dma/
Dusernv50.c14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
78 u32 user, part, comp, kind; in nv50_dmaobj_new() local
96 "comp %d kind %02x\n", args->v0.version, in nv50_dmaobj_new()
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.c14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
76 u32 kind, page; in gf119_dmaobj_new() local
94 "create gf100 dma vers %d page %d kind %02x\n", in gf119_dmaobj_new()
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.c14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
78 u32 kind, user, unkn; in gf100_dmaobj_new() local
96 "create gf100 dma vers %d priv %d kind %02x\n", in gf100_dmaobj_new()
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.c14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
75 u32 kind, page; in gv100_dmaobj_new() local
93 "create gv100 dma vers %d page %d kind %02x\n", in gv100_dmaobj_new()
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-v6.1/tools/testing/selftests/drivers/net/mlxsw/
Dsch_offload.sh130 local kind=$1; shift
134 if [[ $kind == "--" ]]; then
144 with_$kind $(printf %x: $handle) "$locus" \
155 kind=$(qdisc_stats_get $h1 $parent: .kind)
156 kind=${kind%\"}
157 kind=${kind#\"}
158 name="-${kind^^}$name"
180 local kind
/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
Dvmmnv50.c14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
237 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()
[all …]
Dummu.c14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
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()
Dvmmgf100.c14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
249 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()
Dtu102.c15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
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,
Dvmmgp100.c14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
416 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()
/Linux-v6.1/include/uapi/linux/tc_ematch/
Dtc_em_meta.h18 __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-v6.1/tools/testing/selftests/bpf/progs/
Dtest_misc_tcp_hdr_options.c45 hdr.reg_opt.kind = 0xB9; in __check_active_hdr_in()
52 /* Test searching magic with regular kind */ in __check_active_hdr_in()
62 if (ret != 4 || hdr.reg_opt.len != 4 || hdr.reg_opt.kind != 0xB9 || in __check_active_hdr_in()
66 /* Test searching experimental option with invalid kind length */ 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()
[all …]
/Linux-v6.1/kernel/bpf/
Dtrampoline.c262 int kind; in bpf_trampoline_get_progs() local
269 for (kind = 0; kind < BPF_TRAMP_MAX; kind++) { in bpf_trampoline_get_progs()
270 tlinks[kind].nr_links = tr->progs_cnt[kind]; in bpf_trampoline_get_progs()
271 *total += tr->progs_cnt[kind]; in bpf_trampoline_get_progs()
272 links = tlinks[kind].links; in bpf_trampoline_get_progs()
274 hlist_for_each_entry(link, &tr->progs_hlist[kind], tramp_hlist) { in bpf_trampoline_get_progs()
534 enum bpf_tramp_prog_type kind; in __bpf_trampoline_link_prog() local
539 kind = bpf_attach_type_to_tramp(link->link.prog); in __bpf_trampoline_link_prog()
549 if (kind == BPF_TRAMP_REPLACE) { in __bpf_trampoline_link_prog()
562 hlist_for_each_entry(link_exiting, &tr->progs_hlist[kind], tramp_hlist) { in __bpf_trampoline_link_prog()
[all …]
/Linux-v6.1/net/sched/
Dematch.c16 * by markers. Precedence is implemented by a special ematch kind
56 * .kind = unique id,
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()
116 * The given @ops must have kind set to a unique identifier and the
120 * Returns -EEXISTS if an ematch of the same kind has already registered.
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()
[all …]
/Linux-v6.1/rust/alloc/collections/
Dmod.rs64 kind: TryReserveErrorKind, field
76 pub fn kind(&self) -> TryReserveErrorKind { in kind() method
77 self.kind.clone() in kind()
118 fn from(kind: TryReserveErrorKind) -> Self { in from()
119 Self { kind } in from()
139 let reason = match self.kind { in fmt()
/Linux-v6.1/tools/lib/bpf/
Drelo_core.c86 static const char *core_relo_kind_str(enum bpf_core_relo_kind kind) in core_relo_kind_str() argument
88 switch (kind) { in core_relo_kind_str()
106 static bool core_relo_is_field_based(enum bpf_core_relo_kind kind) in core_relo_is_field_based() argument
108 switch (kind) { in core_relo_is_field_based()
121 static bool core_relo_is_type_based(enum bpf_core_relo_kind kind) in core_relo_is_type_based() argument
123 switch (kind) { in core_relo_is_type_based()
135 static bool core_relo_is_enumval_based(enum bpf_core_relo_kind kind) in core_relo_is_enumval_based() argument
137 switch (kind) { in core_relo_is_enumval_based()
220 pr_warn("unexpected kind %s relocated, local [%d], target [%d]\n", in __bpf_core_types_are_compat()
281 spec->relo_kind = relo->kind; in bpf_core_parse_spec()
[all …]

12345678910>>...148