Home
last modified time | relevance | path

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

/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.c203 #define ata_port_show_simple(field, name, format_string, cast) \ argument
210 return snprintf(buf, 20, format_string, cast ap->field); \
470 #define ata_dev_show_simple(field, format_string, cast) \ argument
477 return snprintf(buf, 20, format_string, cast ata_dev->field); \
/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()
/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 …]
/drivers/scsi/
Dscsi_transport_fc.c698 #define fc_rport_show_function(field, format_string, sz, cast) \ argument
711 return snprintf(buf, sz, format_string, cast rport->field); \
741 #define fc_rport_rd_attr_cast(field, format_string, sz, cast) \ argument
742 fc_rport_show_function(field, format_string, sz, (cast)) \
754 #define fc_private_rport_show_function(field, format_string, sz, cast) \ argument
760 return snprintf(buf, sz, format_string, cast rport->field); \
768 #define fc_private_rport_rd_attr_cast(field, format_string, sz, cast) \ argument
769 fc_private_rport_show_function(field, format_string, sz, (cast)) \
1013 #define fc_starget_show_function(field, format_string, sz, cast) \ argument
1027 cast fc_starget_##field(starget)); \
[all …]
Dscsi_transport_sas.c453 #define sas_phy_show_simple(field, name, format_string, cast) \ argument
460 return snprintf(buf, 20, format_string, cast phy->field); \
820 #define sas_port_show_simple(field, name, format_string, cast) \ argument
827 return snprintf(buf, 20, format_string, cast port->field); \
1167 #define sas_rphy_show_simple(field, name, format_string, cast) \ argument
1174 return snprintf(buf, 20, format_string, cast rphy->field); \
1311 #define sas_end_dev_show_simple(field, name, format_string, cast) \ argument
1319 return snprintf(buf, 20, format_string, cast rdev->field); \
1340 #define sas_expander_show_simple(field, name, format_string, cast) \ argument
1348 return snprintf(buf, 20, format_string, cast edev->field); \
/drivers/staging/slicoss/
DTODO8 - don't cast netdev_priv it is already void
/drivers/scsi/lpfc/
Dlpfc_attr.c5629 #define lpfc_rport_show_function(field, format_string, sz, cast) \ argument
5638 (rdata->target) ? cast rdata->target->field : 0); \