Home
last modified time | relevance | path

Searched refs:cast (Results 1 - 25 of 53) sorted by relevance

123

/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dcpumask_success.c94 if (!bpf_cpumask_test_cpu(0, cast(cpumask))) { in BPF_PROG()
100 if (bpf_cpumask_test_cpu(0, cast(cpumask))) { in BPF_PROG()
123 if (!bpf_cpumask_full(cast(cpumask))) { in BPF_PROG()
129 if (!bpf_cpumask_empty(cast(cpumask))) { in BPF_PROG()
151 if (bpf_cpumask_first(cast(cpumask)) < nr_cpus) { in BPF_PROG()
156 if (bpf_cpumask_first_zero(cast(cpumask)) != 0) { in BPF_PROG()
157 bpf_printk("first zero: %d", bpf_cpumask_first_zero(cast(cpumask))); in BPF_PROG()
163 if (bpf_cpumask_first(cast(cpumask)) != 0) { in BPF_PROG()
168 if (bpf_cpumask_first_zero(cast(cpumask)) != 1) { in BPF_PROG()
198 first = bpf_cpumask_first_and(cast(mask in BPF_PROG()
[all...]
/kernel/linux/linux-6.6/scripts/gdb/linux/
H A Dstackdepot.py26 parts = handle.cast(handle_parts_t)
38 stack = (pool + gdb.Value(offset).cast(utils.get_size_t_type())).cast(stack_record_type.get_type().pointer())
39 size = int(stack['size'].cast(utils.get_ulong_type()))
H A Dpage_owner.py72 if page_ext.cast(utils.get_ulong_type()) & PAGE_EXT_INVALID == PAGE_EXT_INVALID:
77 return (base.cast(utils.get_ulong_type()) + self.page_ext_size * index).cast(page_ext_t.get_type().pointer())
95 addr = page_ext.cast(utils.get_ulong_type()) + gdb.parse_and_eval("page_owner_ops")["offset"].cast(utils.get_ulong_type())
96 return addr.cast(page_owner_t.get_type().pointer())
99 page = gdb.Value(struct_page_addr).cast(utils.get_page_type().pointer())
H A Drbtree.py15 node = root.address.cast(rb_root_type.get_type().pointer())
31 node = root.address.cast(rb_root_type.get_type().pointer())
47 return parent.cast(rb_node_type.get_type().pointer())
56 node = node.address.cast(rb_node_type.get_type().pointer())
79 node = node.address.cast(rb_node_type.get_type().pointer())
H A Dradixtree.py22 return ((node.cast(long_type) & constants.LX_RADIX_TREE_ENTRY_MASK) == constants.LX_RADIX_TREE_INTERNAL_NODE)
27 indirect_ptr = node.cast(long_type) & ~constants.LX_RADIX_TREE_INTERNAL_NODE
28 return indirect_ptr.cast(radix_tree_node_type.get_type().pointer())
64 node = slot.cast(node.type.pointer()).dereference()
H A Dmm.py102 self.vmemmap = gdb.Value(self.VMEMMAP_START).cast(utils.get_page_type().pointer()) - (self.memstart_addr >> self.PAGE_SHIFT)
256 return int(page.cast(utils.get_page_type().pointer()) - self.vmemmap.cast(utils.get_page_type().pointer()))
262 return (self.vmemmap + pfn).cast(utils.get_page_type().pointer())
268 __idx = int((page.cast(gdb.lookup_type("unsigned long")) - self.VMEMMAP_START).cast(utils.get_ulong_type())) // self.struct_page_size
277 return gdb.Value(addr).cast(utils.get_page_type().pointer())
308 page = gdb.Value(struct_page_addr).cast(utils.get_page_type().pointer())
323 page = gdb.Value(struct_page_addr).cast(utils.get_page_type().pointer())
338 page = gdb.Value(struct_page_addr).cast(util
[all...]
H A Dcpus.py52 pointer = var_ptr.cast(utils.get_long_type()) + offset
53 return pointer.cast(var_ptr.type).dereference()
177 current_task = current_task_addr.cast(task_ptr_type)
H A Dutils.py65 element = gdb.Value(0).cast(typeobj)
70 return (ptr.cast(get_long_type()) -
71 offset_of(typeobj, member)).cast(typeobj)
H A Dslab.py39 return slab.cast(gdb.lookup_type("struct folio").pointer())
65 p = p.cast(utils.get_uint_type().pointer())
108 p = ptr_addr.cast(freeptr_t_ptr).dereference()
173 track = gdb.Value(p).cast(track_type.pointer())
209 addr = loc['addr'].cast(utils.get_ulong_type().pointer())
H A Dmodules.py120 addr = gdb.Value(int(args[0], 16)).cast(utils.get_ulong_type())
123 mod_text_end = mod_text_start + mod['mem'][constants.LX_MOD_TEXT]['size'].cast(utils.get_ulong_type())
H A Dtasks.py99 thread_info = thread_info_addr.cast(thread_info_ptr_type)
103 thread_info = task['stack'].cast(thread_info_ptr_type)
/kernel/linux/linux-5.10/drivers/ata/
H A Dpata_cs5536.c167 u32 cast; in cs5536_set_piomode() local
174 cs5536_read(pdev, CAST, &cast); in cs5536_set_piomode()
176 cast &= ~(IDE_CAST_DRV_MASK << cshift); in cs5536_set_piomode()
177 cast |= addr_timings[mode] << cshift; in cs5536_set_piomode()
179 cast &= ~(IDE_CAST_CMD_MASK << IDE_CAST_CMD_SHIFT); in cs5536_set_piomode()
180 cast |= cmd_timings[cmdmode] << IDE_CAST_CMD_SHIFT; in cs5536_set_piomode()
182 cs5536_write(pdev, CAST, cast); in cs5536_set_piomode()
/kernel/linux/linux-5.10/drivers/ide/
H A Dcs5536.c138 u32 cast; in cs5536_set_pio_mode() local
151 cs5536_read(pdev, CAST, &cast); in cs5536_set_pio_mode()
153 cast &= ~(IDE_CAST_DRV_MASK << cshift); in cs5536_set_pio_mode()
154 cast |= addr_timings[pio] << cshift; in cs5536_set_pio_mode()
156 cast &= ~(IDE_CAST_CMD_MASK << IDE_CAST_CMD_SHIFT); in cs5536_set_pio_mode()
157 cast |= cmd_timings[cmd_pio] << IDE_CAST_CMD_SHIFT; in cs5536_set_pio_mode()
159 cs5536_write(pdev, CAST, cast); in cs5536_set_pio_mode()
/kernel/linux/linux-6.6/drivers/ata/
H A Dpata_cs5536.c167 u32 cast; in cs5536_set_piomode() local
174 cs5536_read(pdev, CAST, &cast); in cs5536_set_piomode()
176 cast &= ~(IDE_CAST_DRV_MASK << cshift); in cs5536_set_piomode()
177 cast |= addr_timings[mode] << cshift; in cs5536_set_piomode()
179 cast &= ~(IDE_CAST_CMD_MASK << IDE_CAST_CMD_SHIFT); in cs5536_set_piomode()
180 cast |= cmd_timings[cmdmode] << IDE_CAST_CMD_SHIFT; in cs5536_set_piomode()
182 cs5536_write(pdev, CAST, cast); in cs5536_set_piomode()
/kernel/linux/linux-5.10/scripts/gdb/linux/
H A Drbtree.py15 node = root.address.cast(rb_root_type.get_type().pointer())
31 node = root.address.cast(rb_root_type.get_type().pointer())
47 return parent.cast(rb_node_type.get_type().pointer())
56 node = node.address.cast(rb_node_type.get_type().pointer())
79 node = node.address.cast(rb_node_type.get_type().pointer())
H A Dutils.py46 element = gdb.Value(0).cast(typeobj)
51 return (ptr.cast(get_long_type()) -
52 offset_of(typeobj, member)).cast(typeobj)
H A Dtasks.py99 thread_info = thread_info_addr.cast(thread_info_ptr_type)
103 thread_info = task['stack'].cast(thread_info_ptr_type)
H A Dcpus.py49 pointer = var_ptr.cast(utils.get_long_type()) + offset
50 return pointer.cast(var_ptr.type).dereference()
/kernel/linux/linux-5.10/drivers/scsi/fcoe/
H A Dfcoe_sysfs.c136 #define fcoe_ctlr_show_function(field, format_string, sz, cast) \
145 cast fcoe_ctlr_##field(ctlr)); \
148 #define fcoe_fcf_show_function(field, format_string, sz, cast) \
158 cast fcoe_fcf_##field(fcf)); \
161 #define fcoe_ctlr_private_show_function(field, format_string, sz, cast) \
167 return snprintf(buf, sz, format_string, cast fcoe_ctlr_##field(ctlr)); \
170 #define fcoe_fcf_private_show_function(field, format_string, sz, cast) \
176 return snprintf(buf, sz, format_string, cast fcoe_fcf_##field(fcf)); \
199 #define fcoe_ctlr_private_rd_attr_cast(field, format_string, sz, cast) \
200 fcoe_ctlr_private_show_function(field, format_string, sz, (cast)) \
[all...]
/kernel/linux/linux-6.6/drivers/scsi/fcoe/
H A Dfcoe_sysfs.c136 #define fcoe_ctlr_show_function(field, format_string, sz, cast) \
145 cast fcoe_ctlr_##field(ctlr)); \
148 #define fcoe_fcf_show_function(field, format_string, sz, cast) \
158 cast fcoe_fcf_##field(fcf)); \
161 #define fcoe_ctlr_private_show_function(field, format_string, sz, cast) \
167 return snprintf(buf, sz, format_string, cast fcoe_ctlr_##field(ctlr)); \
170 #define fcoe_fcf_private_show_function(field, format_string, sz, cast) \
176 return snprintf(buf, sz, format_string, cast fcoe_fcf_##field(fcf)); \
199 #define fcoe_ctlr_private_rd_attr_cast(field, format_string, sz, cast) \
200 fcoe_ctlr_private_show_function(field, format_string, sz, (cast)) \
[all...]
/kernel/linux/linux-5.10/scripts/atomic/
H A Dgen-atomic-long.sh27 local cast="$(gen_cast "$1" "${int}" "${atomic}")"
29 printf "${cast}${arg}"
/kernel/linux/linux-6.6/scripts/atomic/
H A Dgen-atomic-long.sh27 local cast="$(gen_cast "$1" "${int}" "${atomic}")"
29 printf "${cast}${arg}"
/kernel/linux/linux-6.6/rust/kernel/
H A Dtypes.rs63 unsafe { &*ptr.cast() } in borrow()
252 UnsafeCell::get(&self.value).cast::<T>() in get()
260 UnsafeCell::raw_get(this.cast::<UnsafeCell<MaybeUninit<T>>>()).cast::<T>()
/kernel/linux/linux-5.10/tools/perf/util/
H A Dprobe-finder.c306 const char *cast, bool user_access) in convert_variable_type()
317 if (cast && strcmp(cast, "string") != 0 && strcmp(cast, "ustring") && in convert_variable_type()
318 strcmp(cast, "x") != 0 && in convert_variable_type()
319 strcmp(cast, "s") != 0 && strcmp(cast, "u") != 0) { in convert_variable_type()
321 /* and respect signedness/hexadecimal cast */ in convert_variable_type()
322 tvar->type = strdup(cast); in convert_variable_type()
347 if (cast in convert_variable_type()
304 convert_variable_type(Dwarf_Die *vr_die, struct probe_trace_arg *tvar, const char *cast, bool user_access) convert_variable_type() argument
[all...]
/kernel/linux/linux-6.6/tools/perf/util/
H A Dprobe-finder.c311 const char *cast, bool user_access) in convert_variable_type()
322 if (cast && strcmp(cast, "string") != 0 && strcmp(cast, "ustring") && in convert_variable_type()
323 strcmp(cast, "x") != 0 && in convert_variable_type()
324 strcmp(cast, "s") != 0 && strcmp(cast, "u") != 0) { in convert_variable_type()
326 /* and respect signedness/hexadecimal cast */ in convert_variable_type()
327 tvar->type = strdup(cast); in convert_variable_type()
352 if (cast in convert_variable_type()
309 convert_variable_type(Dwarf_Die *vr_die, struct probe_trace_arg *tvar, const char *cast, bool user_access) convert_variable_type() argument
[all...]

Completed in 12 milliseconds

123