Home
last modified time | relevance | path

Searched refs:format_string (Results 1 – 20 of 20) sorted by relevance

/drivers/scsi/fcoe/
Dfcoe_sysfs.c136 #define fcoe_ctlr_show_function(field, format_string, sz, cast) \ argument
144 return snprintf(buf, sz, format_string, \
148 #define fcoe_fcf_show_function(field, format_string, sz, cast) \ argument
157 return snprintf(buf, sz, format_string, \
161 #define fcoe_ctlr_private_show_function(field, format_string, sz, cast) \ argument
167 return snprintf(buf, sz, format_string, cast fcoe_ctlr_##field(ctlr)); \
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)); \
179 #define fcoe_ctlr_private_rd_attr(field, format_string, sz) \ argument
180 fcoe_ctlr_private_show_function(field, format_string, sz, ) \
[all …]
/drivers/scsi/
Dscsi_transport_fc.c689 #define fc_rport_show_function(field, format_string, sz, cast) \ argument
702 return snprintf(buf, sz, format_string, cast rport->field); \
727 #define fc_rport_rd_attr(field, format_string, sz) \ argument
728 fc_rport_show_function(field, format_string, sz, ) \
732 #define fc_rport_rd_attr_cast(field, format_string, sz, cast) \ argument
733 fc_rport_show_function(field, format_string, sz, (cast)) \
737 #define fc_rport_rw_attr(field, format_string, sz) \ argument
738 fc_rport_show_function(field, format_string, sz, ) \
745 #define fc_private_rport_show_function(field, format_string, sz, cast) \ argument
751 return snprintf(buf, sz, format_string, cast rport->field); \
[all …]
Dscsi_transport_spi.c265 #define spi_transport_show_simple(field, format_string) \ argument
275 return snprintf(buf, 20, format_string, tp->field); \
278 #define spi_transport_store_simple(field, format_string) \ argument
295 #define spi_transport_show_function(field, format_string) \ argument
308 return snprintf(buf, 20, format_string, tp->field); \
311 #define spi_transport_store_function(field, format_string) \ argument
329 #define spi_transport_store_max(field, format_string) \ argument
351 #define spi_transport_rd_attr(field, format_string) \ argument
352 spi_transport_show_function(field, format_string) \
353 spi_transport_store_function(field, format_string) \
[all …]
Dscsi_transport_sas.c417 #define sas_phy_show_simple(field, name, format_string, cast) \ argument
424 return snprintf(buf, 20, format_string, cast phy->field); \
427 #define sas_phy_simple_attr(field, name, format_string, type) \ argument
428 sas_phy_show_simple(field, name, format_string, (type)) \
783 #define sas_port_show_simple(field, name, format_string, cast) \ argument
790 return snprintf(buf, 20, format_string, cast port->field); \
793 #define sas_port_simple_attr(field, name, format_string, type) \ argument
794 sas_port_show_simple(field, name, format_string, (type)) \
1130 #define sas_rphy_show_simple(field, name, format_string, cast) \ argument
1137 return snprintf(buf, 20, format_string, cast rphy->field); \
[all …]
Dscsi_sysfs.c159 #define shost_show_function(name, field, format_string) \ argument
165 return snprintf (buf, 20, format_string, shost->field); \
172 #define shost_rd_attr2(name, field, format_string) \ argument
173 shost_show_function(name, field, format_string) \
176 #define shost_rd_attr(field, format_string) \ argument
177 shost_rd_attr2(field, field, format_string)
559 #define sdev_show_function(field, format_string) \ argument
566 return snprintf (buf, 20, format_string, sdev->field); \
573 #define sdev_rd_attr(field, format_string) \ argument
574 sdev_show_function(field, format_string) \
[all …]
/drivers/acpi/
Dutils.c47 char *format_string = NULL; in acpi_extract_package() local
78 format_string = format->pointer; in acpi_extract_package()
90 switch (format_string[i]) { in acpi_extract_package()
105 i, format_string[i]); in acpi_extract_package()
113 switch (format_string[i]) { in acpi_extract_package()
130 i, format_string[i]); in acpi_extract_package()
136 switch (format_string[i]) { in acpi_extract_package()
145 i, format_string[i]); in acpi_extract_package()
194 switch (format_string[i]) { in acpi_extract_package()
219 switch (format_string[i]) { in acpi_extract_package()
[all …]
/drivers/ata/
Dlibata-transport.c204 #define ata_port_show_simple(field, name, format_string, cast) \ argument
211 return snprintf(buf, 20, format_string, cast ap->field); \
214 #define ata_port_simple_attr(field, name, format_string, type) \ argument
215 ata_port_show_simple(field, name, format_string, (type)) \
475 #define ata_dev_show_simple(field, format_string, cast) \ argument
482 return snprintf(buf, 20, format_string, cast ata_dev->field); \
485 #define ata_dev_simple_attr(field, format_string, type) \ argument
486 ata_dev_show_simple(field, format_string, (type)) \
/drivers/usb/core/
Dsysfs.c24 #define usb_actconfig_show(field, format_string) \ argument
38 rc = sprintf(buf, format_string, \
44 #define usb_actconfig_attr(field, format_string) \ argument
45 usb_actconfig_show(field, format_string) \
709 #define usb_descriptor_attr_le16(field, format_string) \ argument
717 return sprintf(buf, format_string, \
726 #define usb_descriptor_attr(field, format_string) \ argument
734 return sprintf(buf, format_string, udev->descriptor.field); \
1078 #define usb_intf_assoc_attr(field, format_string) \ argument
1085 return sprintf(buf, format_string, \
[all …]
Dendpoint.c36 #define usb_ep_attr(field, format_string) \ argument
42 return sprintf(buf, format_string, ep->desc->field); \
/drivers/zorro/
Dzorro-sysfs.c25 #define zorro_config_attr(name, field, format_string) \ argument
32 return sprintf(buf, format_string, z->field); \
/drivers/char/mwave/
Dmwavedd.c504 #define mwave_show_function(attr_name, format_string, field) \
509 return sprintf(buf, format_string, pSettings->field); \
513 #define mwave_dev_rd_attr(attr_name, format_string, field) \
514 mwave_show_function(attr_name, format_string, field) \
/drivers/mmc/core/
Dsdio_bus.c31 #define sdio_config_attr(field, format_string) \ argument
38 return sprintf (buf, format_string, func->field); \
/drivers/rapidio/
Drio-sysfs.c18 #define rio_config_attr(field, format_string) \ argument
24 return sprintf(buf, format_string, rdev->field); \
/drivers/rpmsg/
Drpmsg_core.c318 #define rpmsg_show_attr(field, path, format_string) \ argument
325 return sprintf(buf, format_string, rpdev->path); \
/drivers/s390/cio/
Dcmf.c1264 char *format_string; in init_cmf() local
1286 format_string = "basic"; in init_cmf()
1290 format_string = "extended"; in init_cmf()
1301 "%s (mode %s)\n", format_string, detect_string); in init_cmf()
/drivers/ipack/
Dipack.c102 #define ipack_device_attr(field, format_string) \ argument
108 return sprintf(buf, format_string, idev->field); \
/drivers/ssb/
Dmain.c354 #define ssb_config_attr(attrib, field, format_string) \ argument
358 return sprintf(buf, format_string, dev_to_ssb_dev(dev)->field); \
/drivers/spi/
Dspi.c143 #define SPI_STATISTICS_SHOW_NAME(name, file, field, format_string) \ argument
150 len = sprintf(buf, format_string, stat->field); \
156 #define SPI_STATISTICS_SHOW(field, format_string) \ argument
158 field, format_string)
/drivers/pci/
Dpci-sysfs.c35 #define pci_config_attr(field, format_string) \ argument
42 return sprintf(buf, format_string, pdev->field); \
/drivers/scsi/lpfc/
Dlpfc_attr.c6899 #define lpfc_rport_show_function(field, format_string, sz, cast) \ argument
6907 return scnprintf(buf, sz, format_string, \
6911 #define lpfc_rport_rd_attr(field, format_string, sz) \ argument
6912 lpfc_rport_show_function(field, format_string, sz, ) \