/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | cpumask_success.c | 94 if (!bpf_cpumask_test_cpu(0, cast(cpumask))) { 100 if (bpf_cpumask_test_cpu(0, cast(cpumask))) { 123 if (!bpf_cpumask_full(cast(cpumask))) { 129 if (!bpf_cpumask_empty(cast(cpumask))) { 151 if (bpf_cpumask_first(cast(cpumask)) < nr_cpus) { 156 if (bpf_cpumask_first_zero(cast(cpumask)) != 0) { 157 bpf_printk("first zero: %d", bpf_cpumask_first_zero(cast(cpumask))); 163 if (bpf_cpumask_first(cast(cpumask)) != 0) { 168 if (bpf_cpumask_first_zero(cast(cpumask)) != 1) { 198 first = bpf_cpumask_first_and(cast(mask [all...] |
H A D | cpumask_common.h | 63 static inline const struct cpumask *cast(struct bpf_cpumask *cpumask) function 78 if (!bpf_cpumask_empty(cast(cpumask))) {
|
/linux-master/scripts/gdb/linux/ |
H A D | stackdepot.py | 26 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 D | radixtree.py | 22 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 D | cpus.py | 52 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) 187 current_task = current_tp.cast(task_ptr_type) 193 if (scratch_reg.cast(utils.get_ulong_type()) > current_tp.cast(utils.get_ulong_type())): 194 current_task = scratch_reg.cast(task_ptr_type)
|
H A D | rbtree.py | 15 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 D | page_owner.py | 72 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 D | modules.py | 120 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 D | mm.py | 102 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 D | tasks.py | 90 thread_info = task['stack'].cast(thread_info_ptr_type)
|
H A D | utils.py | 65 element = gdb.Value(0).cast(typeobj) 70 return (ptr.cast(get_long_type()) - 71 offset_of(typeobj, member)).cast(typeobj)
|
H A D | slab.py | 39 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 D | interrupts.py | 30 desc = desc.cast(irq_desc_type.get_type()) 176 desc = ipi_desc[ipi].cast(irq_desc_type.get_type().pointer())
|
/linux-master/scripts/atomic/ |
H A D | gen-atomic-long.sh | 27 local cast="$(gen_cast "$1" "${int}" "${atomic}")" 29 printf "${cast}${arg}"
|
/linux-master/drivers/ata/ |
H A D | pata_cs5536.c | 167 u32 cast; local 174 cs5536_read(pdev, CAST, &cast); 176 cast &= ~(IDE_CAST_DRV_MASK << cshift); 177 cast |= addr_timings[mode] << cshift; 179 cast &= ~(IDE_CAST_CMD_MASK << IDE_CAST_CMD_SHIFT); 180 cast |= cmd_timings[cmdmode] << IDE_CAST_CMD_SHIFT; 182 cs5536_write(pdev, CAST, cast);
|
H A D | libata-transport.c | 204 #define ata_port_show_simple(field, name, format_string, cast) \ 211 return scnprintf(buf, 20, format_string, cast ap->field); \ 517 #define ata_dev_show_simple(field, format_string, cast) \ 524 return scnprintf(buf, 20, format_string, cast ata_dev->field); \
|
/linux-master/fs/ntfs3/ |
H A D | Makefile | 7 ccflags-y += -Wint-to-pointer-cast \
|
/linux-master/scripts/ |
H A D | Makefile.extrawarn | 54 # In order to make sure new function cast mismatches are not introduced 133 KBUILD_CFLAGS += $(call cc-disable-warning, pointer-to-enum-cast) 136 KBUILD_CFLAGS += $(call cc-disable-warning, cast-function-type-strict) 176 KBUILD_CFLAGS += -Wbad-function-cast
|
/linux-master/drivers/scsi/fcoe/ |
H A D | fcoe_sysfs.c | 137 #define fcoe_ctlr_show_function(field, format_string, sz, cast) \ 146 cast fcoe_ctlr_##field(ctlr)); \ 149 #define fcoe_fcf_show_function(field, format_string, sz, cast) \ 159 cast fcoe_fcf_##field(fcf)); \ 162 #define fcoe_ctlr_private_show_function(field, format_string, sz, cast) \ 168 return snprintf(buf, sz, format_string, cast fcoe_ctlr_##field(ctlr)); \ 171 #define fcoe_fcf_private_show_function(field, format_string, sz, cast) \ 177 return snprintf(buf, sz, format_string, cast fcoe_fcf_##field(fcf)); \ 200 #define fcoe_ctlr_private_rd_attr_cast(field, format_string, sz, cast) \ 201 fcoe_ctlr_private_show_function(field, format_string, sz, (cast)) \ [all...] |
/linux-master/tools/perf/util/ |
H A D | probe-finder.c | 193 const char *cast, bool user_access) 204 if (cast && strcmp(cast, "string") != 0 && strcmp(cast, "ustring") && 205 strcmp(cast, "x") != 0 && 206 strcmp(cast, "s") != 0 && strcmp(cast, "u") != 0) { 208 /* and respect signedness/hexadecimal cast */ 209 tvar->type = strdup(cast); 234 if (cast 191 convert_variable_type(Dwarf_Die *vr_die, struct probe_trace_arg *tvar, const char *cast, bool user_access) argument [all...] |
/linux-master/tools/cgroup/ |
H A D | memcg_slabinfo.py | 14 from drgn import container_of, FaultError, Object, cast namespace 155 yield cast('struct slab *', page)
|
/linux-master/drivers/scsi/ |
H A D | scsi_transport_fc.c | 986 #define fc_rport_show_function(field, format_string, sz, cast) \ 999 return snprintf(buf, sz, format_string, cast rport->field); \ 1029 #define fc_rport_rd_attr_cast(field, format_string, sz, cast) \ 1030 fc_rport_show_function(field, format_string, sz, (cast)) \ 1042 #define fc_private_rport_show_function(field, format_string, sz, cast) \ 1048 return snprintf(buf, sz, format_string, cast rport->field); \ 1056 #define fc_private_rport_rd_attr_cast(field, format_string, sz, cast) \ 1057 fc_private_rport_show_function(field, format_string, sz, (cast)) \ 1414 #define fc_starget_show_function(field, format_string, sz, cast) \ 1428 cast fc_starget [all...] |
H A D | scsi_transport_sas.c | 423 #define sas_phy_show_simple(field, name, format_string, cast) \ 430 return snprintf(buf, 20, format_string, cast phy->field); \ 794 #define sas_port_show_simple(field, name, format_string, cast) \ 801 return snprintf(buf, 20, format_string, cast port->field); \ 1141 #define sas_rphy_show_simple(field, name, format_string, cast) \ 1148 return snprintf(buf, 20, format_string, cast rphy->field); \ 1275 #define sas_end_dev_show_simple(field, name, format_string, cast) \ 1283 return snprintf(buf, 20, format_string, cast rdev->field); \ 1304 #define sas_expander_show_simple(field, name, format_string, cast) \ 1312 return snprintf(buf, 20, format_string, cast ede [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
H A D | fs_tracepoint.c | 57 #define PRINT_MASKED_VALP(name, cast, p, format) { \ 60 (cast)&name.v);\
|
/linux-master/arch/arm/lib/ |
H A D | memset.S | 20 and r1, r1, #255 @ cast to unsigned char
|