Home
last modified time | relevance | path

Searched refs:cast (Results 1 – 25 of 60) sorted by relevance

123

/linux-6.3-rc2/tools/testing/selftests/bpf/progs/
A Dcpumask_success.c223 if (bpf_cpumask_and(dst1, cast(mask1), cast(mask2))) { in BPF_PROG()
232 bpf_cpumask_or(dst1, cast(mask1), cast(mask2)); in BPF_PROG()
242 bpf_cpumask_xor(dst2, cast(mask1), cast(mask2)); in BPF_PROG()
243 if (!bpf_cpumask_equal(cast(dst1), cast(dst2))) { in BPF_PROG()
274 bpf_cpumask_or(dst1, cast(mask1), cast(mask2)); in BPF_PROG()
275 if (!bpf_cpumask_subset(cast(mask1), cast(dst1))) { in BPF_PROG()
280 if (!bpf_cpumask_subset(cast(mask2), cast(dst1))) { in BPF_PROG()
285 if (bpf_cpumask_subset(cast(dst1), cast(mask1))) { in BPF_PROG()
312 bpf_cpumask_or(dst1, cast(mask1), cast(mask2)); in BPF_PROG()
327 if (!bpf_cpumask_equal(cast(dst1), cast(dst2))) { in BPF_PROG()
[all …]
A Dcpumask_common.h54 static inline const struct cpumask *cast(struct bpf_cpumask *cpumask) in cast() function
69 if (!bpf_cpumask_empty(cast(cpumask))) { in create_cpumask()
/linux-6.3-rc2/drivers/ata/
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()
A Dlibata-transport.c204 #define ata_port_show_simple(field, name, format_string, cast) \ argument
211 return scnprintf(buf, 20, format_string, cast ap->field); \
510 #define ata_dev_show_simple(field, format_string, cast) \ argument
517 return scnprintf(buf, 20, format_string, cast ata_dev->field); \
/linux-6.3-rc2/scripts/gdb/linux/
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())
A Dcpus.py52 pointer = var_ptr.cast(utils.get_long_type()) + offset
53 return pointer.cast(var_ptr.type).dereference()
171 current_task = current_task_addr.cast(task_ptr_type)
A Dutils.py45 element = gdb.Value(0).cast(typeobj)
50 return (ptr.cast(get_long_type()) -
51 offset_of(typeobj, member)).cast(typeobj)
A Dtasks.py99 thread_info = thread_info_addr.cast(thread_info_ptr_type)
103 thread_info = task['stack'].cast(thread_info_ptr_type)
/linux-6.3-rc2/drivers/scsi/fcoe/
A Dfcoe_sysfs.c136 #define fcoe_ctlr_show_function(field, format_string, sz, cast) \ argument
145 cast fcoe_ctlr_##field(ctlr)); \
148 #define fcoe_fcf_show_function(field, format_string, sz, cast) \ argument
158 cast fcoe_fcf_##field(fcf)); \
161 #define fcoe_ctlr_private_show_function(field, format_string, sz, cast) \ argument
170 #define fcoe_fcf_private_show_function(field, format_string, sz, cast) \ argument
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) \ argument
200 fcoe_ctlr_private_show_function(field, format_string, sz, (cast)) \
204 #define fcoe_fcf_private_rd_attr_cast(field, format_string, sz, cast) \ argument
[all …]
/linux-6.3-rc2/scripts/
A DMakefile.extrawarn65 KBUILD_CFLAGS += $(call cc-disable-warning, pointer-to-enum-cast)
68 KBUILD_CFLAGS += $(call cc-disable-warning, cast-function-type-strict)
95 KBUILD_CFLAGS += -Wbad-function-cast
/linux-6.3-rc2/scripts/atomic/
A Dgen-atomic-long.sh27 local cast="$(gen_cast "$1" "${int}" "${atomic}")"
29 printf "${cast}${arg}"
/linux-6.3-rc2/rust/kernel/
A Dprint.rs24 let mut w = unsafe { RawFormatter::from_ptrs(buf.cast(), end.cast()) }; in rust_fmt_argument()
26 w.pos().cast() in rust_fmt_argument()
A Dtypes.rs78 unsafe { &*ptr.cast() } in borrow()
/linux-6.3-rc2/tools/perf/util/
A Dprobe-finder.c311 const char *cast, bool user_access) in convert_variable_type() argument
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()
327 tvar->type = strdup(cast); in convert_variable_type()
352 if (cast && (!strcmp(cast, "string") || !strcmp(cast, "ustring"))) { in convert_variable_type()
385 tvar->type = strdup(cast); in convert_variable_type()
389 if (cast && (strcmp(cast, "u") == 0)) in convert_variable_type()
391 else if (cast && (strcmp(cast, "s") == 0)) in convert_variable_type()
393 else if (cast && (strcmp(cast, "x") == 0) && in convert_variable_type()
/linux-6.3-rc2/rust/alloc/
A Draw_vec.rs206 ptr: unsafe { Unique::new_unchecked(ptr.cast().as_ptr()) }, in allocate_in()
231 ptr: unsafe { Unique::new_unchecked(ptr.cast().as_ptr()) }, in try_allocate_in()
281 Some((self.ptr.cast().into(), layout)) in current_memory()
407 self.ptr = unsafe { Unique::new_unchecked(ptr.cast().as_ptr()) }; in set_ptr_and_cap()
/linux-6.3-rc2/drivers/scsi/
A Dscsi_transport_fc.c1000 return snprintf(buf, sz, format_string, cast rport->field); \
1030 #define fc_rport_rd_attr_cast(field, format_string, sz, cast) \ argument
1031 fc_rport_show_function(field, format_string, sz, (cast)) \
1049 return snprintf(buf, sz, format_string, cast rport->field); \
1429 cast fc_starget_##field(starget)); \
1438 fc_starget_show_function(field, format_string, sz, (cast)) \
1481 return snprintf(buf, sz, format_string, cast vport->field); \
1531 fc_vport_show_function(field, format_string, sz, (cast)) \
1548 return snprintf(buf, sz, format_string, cast vport->field); \
1794 #define fc_host_rd_attr_cast(field, format_string, sz, cast) \ argument
[all …]
A Dscsi_transport_sas.c423 #define sas_phy_show_simple(field, name, format_string, cast) \ argument
430 return snprintf(buf, 20, format_string, cast phy->field); \
794 #define sas_port_show_simple(field, name, format_string, cast) \ argument
801 return snprintf(buf, 20, format_string, cast port->field); \
1141 #define sas_rphy_show_simple(field, name, format_string, cast) \ argument
1148 return snprintf(buf, 20, format_string, cast rphy->field); \
1275 #define sas_end_dev_show_simple(field, name, format_string, cast) \ argument
1283 return snprintf(buf, 20, format_string, cast rdev->field); \
1304 #define sas_expander_show_simple(field, name, format_string, cast) \ argument
1312 return snprintf(buf, 20, format_string, cast edev->field); \
/linux-6.3-rc2/tools/cgroup/
A Dmemcg_slabinfo.py14 from drgn import container_of, FaultError, Object, cast
155 yield cast('struct slab *', page)
/linux-6.3-rc2/tools/perf/scripts/perl/Perf-Trace-Util/
A DBuild3 …BED_CCOPTS) -Wno-redundant-decls -Wno-strict-prototypes -Wno-bad-function-cast -Wno-declaration-af…
/linux-6.3-rc2/fs/ntfs3/
A DMakefile7 ccflags-y += -Wint-to-pointer-cast \
/linux-6.3-rc2/tools/perf/util/scripting-engines/
A DBuild6 …adow -Wno-nested-externs -Wno-undef -Wno-switch-default -Wno-bad-function-cast -Wno-declaration-af…
/linux-6.3-rc2/Documentation/bpf/
A Dcpumasks.rst31 are RCU-protected, can be mutated, can be used as kptrs, and can be safely cast
192 cpumask``, which is why it's safe to cast it as such (note however that it is
193 **not** safe to cast a ``struct cpumask *`` to a ``struct bpf_cpumask *``, and
244 if (!bpf_cpumask_test_cpu(0, cast(cpumask)))
249 if (bpf_cpumask_test_cpu(0, cast(cpumask)))
/linux-6.3-rc2/Documentation/networking/
A D6lowpan.rst15 To access the LL_PRIV_6LOWPAN_DATA structure you can cast::
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/diag/
A Dfs_tracepoint.c57 #define PRINT_MASKED_VALP(name, cast, p, format) { \ argument
60 (cast)&name.v);\
/linux-6.3-rc2/Documentation/scsi/
A DChangeLog.arcmsr22 ** 1.20.00.06 3/12/2005 Erich Chen fix with arcmsr_pci_unmap_dma "unsigned long" cast,
41 ** cast off sizeof(dma_addr_t) condition for 64bit pci_set_dma_mask

Completed in 49 milliseconds

123