Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/ata/
Dpata_cs5536.c179 u32 cast; in cs5536_set_piomode() local
186 cs5536_read(pdev, CAST, &cast); in cs5536_set_piomode()
188 cast &= ~(IDE_CAST_DRV_MASK << cshift); in cs5536_set_piomode()
189 cast |= addr_timings[mode] << cshift; in cs5536_set_piomode()
191 cast &= ~(IDE_CAST_CMD_MASK << IDE_CAST_CMD_SHIFT); in cs5536_set_piomode()
192 cast |= cmd_timings[cmdmode] << IDE_CAST_CMD_SHIFT; in cs5536_set_piomode()
194 cs5536_write(pdev, CAST, cast); in cs5536_set_piomode()
Dlibata-transport.c204 #define ata_port_show_simple(field, name, format_string, cast) \ argument
211 return snprintf(buf, 20, format_string, cast ap->field); \
475 #define ata_dev_show_simple(field, format_string, cast) \ argument
482 return snprintf(buf, 20, format_string, cast ata_dev->field); \
/Linux-v4.19/drivers/ide/
Dcs5536.c150 u32 cast; in cs5536_set_pio_mode() local
163 cs5536_read(pdev, CAST, &cast); in cs5536_set_pio_mode()
165 cast &= ~(IDE_CAST_DRV_MASK << cshift); in cs5536_set_pio_mode()
166 cast |= addr_timings[pio] << cshift; in cs5536_set_pio_mode()
168 cast &= ~(IDE_CAST_CMD_MASK << IDE_CAST_CMD_SHIFT); in cs5536_set_pio_mode()
169 cast |= cmd_timings[cmd_pio] << IDE_CAST_CMD_SHIFT; in cs5536_set_pio_mode()
171 cs5536_write(pdev, CAST, cast); in cs5536_set_pio_mode()
/Linux-v4.19/drivers/scsi/fcoe/
Dfcoe_sysfs.c148 #define fcoe_ctlr_show_function(field, format_string, sz, cast) \ argument
157 cast fcoe_ctlr_##field(ctlr)); \
160 #define fcoe_fcf_show_function(field, format_string, sz, cast) \ argument
170 cast fcoe_fcf_##field(fcf)); \
173 #define fcoe_ctlr_private_show_function(field, format_string, sz, cast) \ argument
179 return snprintf(buf, sz, format_string, cast fcoe_ctlr_##field(ctlr)); \
182 #define fcoe_fcf_private_show_function(field, format_string, sz, cast) \ argument
188 return snprintf(buf, sz, format_string, cast fcoe_fcf_##field(fcf)); \
211 #define fcoe_ctlr_private_rd_attr_cast(field, format_string, sz, cast) \ argument
212 fcoe_ctlr_private_show_function(field, format_string, sz, (cast)) \
[all …]
/Linux-v4.19/scripts/gdb/linux/
Dutils.py46 element = gdb.Value(0).cast(typeobj)
51 return (ptr.cast(get_long_type()) -
52 offset_of(typeobj, member)).cast(typeobj)
Dtasks.py97 thread_info = thread_info_addr.cast(thread_info_ptr_type)
101 thread_info = task['stack'].cast(thread_info_ptr_type)
Dcpus.py49 pointer = var_ptr.cast(utils.get_long_type()) + offset
50 return pointer.cast(var_ptr.type).dereference()
/Linux-v4.19/fs/coda/
Dcoda_linux.h66 #define CODA_ALLOC(ptr, cast, size) do { \ argument
70 ptr = (cast)vzalloc((unsigned long) size); \
/Linux-v4.19/tools/perf/util/
Dprobe-finder.c297 const char *cast) in convert_variable_type() argument
308 if (cast && strcmp(cast, "string") != 0 && strcmp(cast, "x") != 0 && in convert_variable_type()
309 strcmp(cast, "s") != 0 && strcmp(cast, "u") != 0) { in convert_variable_type()
312 tvar->type = strdup(cast); in convert_variable_type()
337 if (cast && strcmp(cast, "string") == 0) { /* String type */ in convert_variable_type()
368 tvar->type = strdup(cast); in convert_variable_type()
372 if (cast && (strcmp(cast, "u") == 0)) in convert_variable_type()
374 else if (cast && (strcmp(cast, "s") == 0)) in convert_variable_type()
376 else if (cast && (strcmp(cast, "x") == 0) && in convert_variable_type()
/Linux-v4.19/drivers/scsi/
Dscsi_transport_fc.c703 #define fc_rport_show_function(field, format_string, sz, cast) \ argument
716 return snprintf(buf, sz, format_string, cast rport->field); \
746 #define fc_rport_rd_attr_cast(field, format_string, sz, cast) \ argument
747 fc_rport_show_function(field, format_string, sz, (cast)) \
759 #define fc_private_rport_show_function(field, format_string, sz, cast) \ argument
765 return snprintf(buf, sz, format_string, cast rport->field); \
773 #define fc_private_rport_rd_attr_cast(field, format_string, sz, cast) \ argument
774 fc_private_rport_show_function(field, format_string, sz, (cast)) \
1018 #define fc_starget_show_function(field, format_string, sz, cast) \ argument
1032 cast fc_starget_##field(starget)); \
[all …]
Dscsi_transport_sas.c422 #define sas_phy_show_simple(field, name, format_string, cast) \ argument
429 return snprintf(buf, 20, format_string, cast phy->field); \
789 #define sas_port_show_simple(field, name, format_string, cast) \ argument
796 return snprintf(buf, 20, format_string, cast port->field); \
1136 #define sas_rphy_show_simple(field, name, format_string, cast) \ argument
1143 return snprintf(buf, 20, format_string, cast rphy->field); \
1271 #define sas_end_dev_show_simple(field, name, format_string, cast) \ argument
1279 return snprintf(buf, 20, format_string, cast rdev->field); \
1300 #define sas_expander_show_simple(field, name, format_string, cast) \ argument
1308 return snprintf(buf, 20, format_string, cast edev->field); \
/Linux-v4.19/Documentation/networking/
D6lowpan.txt12 To access the LL_PRIV_6LOWPAN_DATA structure you can cast:
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/diag/
Dfs_tracepoint.c57 #define PRINT_MASKED_VALP(name, cast, p, format) { \ argument
60 (cast)&name.v);\
/Linux-v4.19/Documentation/RCU/
Drcu_dereference.txt22 In addition, the volatile cast in rcu_dereference() prevents the
32 cast the pointer to uintptr_t in order to:
42 It is important to cast the value back to pointer before
170 pointer. Note that the volatile cast in rcu_dereference()
307 guarantees that RCU depends on. And the volatile cast in rcu_dereference()
/Linux-v4.19/scripts/
DMakefile.extrawarn46 warning-3 := -Wbad-function-cast
Dcheckpatch.pl5861 my $cast = $1;
5869 $suffix .= 'U' if ($cast =~ /\bunsigned\b/);
5870 if ($cast =~ /\blong\s+long\b/) {
5872 } elsif ($cast =~ /\blong\b/) {
5875 $fixed[$fixlinenr] =~ s/\Q$cast\E$const\b/$newconst$suffix/;
6030 my $cast;
6033 $cast = "$cast1 or $cast2";
6035 $cast = $cast1;
6037 $cast = $cast2;
6040 "$call() should probably be ${call}_t($cast, $arg1, $arg2)\n" . "$here\n$stat\n");
/Linux-v4.19/Documentation/scsi/
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
DChangeLog.lpfc258 unneeded cast of kmalloc's return.
727 typed pointer lots of the cast mess can go away, and while at it
1423 * Move dma_addr_t cast inside of getPaddr macro as everywhere
1424 getPaddr is used, the return is cast to dma_addr_t.
1515 * Since everywhere IOCB_ENTRY is used, the return value is cast,
1516 move the cast into the macro.
/Linux-v4.19/tools/scripts/
DMakefile.include23 EXTRA_WARNINGS := -Wbad-function-cast
/Linux-v4.19/lib/raid6/
Daltivec.uc63 /* vec_cmpgt returns a vector bool char; thus the need for the cast */
/Linux-v4.19/arch/arm/nwfpe/
DChangeLog46 as a struct user_fp (see user.h). This pointer was cast to a
/Linux-v4.19/Documentation/core-api/
Dlocal_ops.rst57 ``atomic_long_t`` inside a structure. This is made so a cast from this type to
Dprintk-formats.rst32 format specifier of its largest possible type and explicitly cast to it.
/Linux-v4.19/Documentation/arm/
Dvlocks.txt18 cast identifies the winner.
/Linux-v4.19/Documentation/
Dunaligned-memory-access.txt104 you do not cast the field to a type of different length).

12