Searched refs:format_string (Results 1 - 27 of 27) sorted by relevance

/linux-4.4.14/drivers/macintosh/
H A Dmacio_sysfs.c6 #define macio_config_of_attr(field, format_string) \
12 return sprintf (buf, format_string, mdev->ofdev.dev.of_node->field); \
/linux-4.4.14/sound/aoa/soundbus/
H A Dsysfs.c6 #define soundbus_config_of_attr(field, format_string) \
12 return sprintf (buf, format_string, mdev->ofdev.dev.of_node->field); \
/linux-4.4.14/drivers/scsi/fcoe/
H A Dfcoe_sysfs.c148 #define fcoe_ctlr_show_function(field, format_string, sz, cast) \
156 return snprintf(buf, sz, format_string, \
160 #define fcoe_fcf_show_function(field, format_string, sz, cast) \
169 return snprintf(buf, sz, format_string, \
173 #define fcoe_ctlr_private_show_function(field, format_string, sz, cast) \
179 return snprintf(buf, sz, format_string, cast fcoe_ctlr_##field(ctlr)); \
182 #define fcoe_fcf_private_show_function(field, format_string, sz, cast) \
188 return snprintf(buf, sz, format_string, cast fcoe_fcf_##field(fcf)); \
191 #define fcoe_ctlr_private_rd_attr(field, format_string, sz) \
192 fcoe_ctlr_private_show_function(field, format_string, sz, ) \
196 #define fcoe_ctlr_rd_attr(field, format_string, sz) \
197 fcoe_ctlr_show_function(field, format_string, sz, ) \
201 #define fcoe_fcf_rd_attr(field, format_string, sz) \
202 fcoe_fcf_show_function(field, format_string, sz, ) \
206 #define fcoe_fcf_private_rd_attr(field, format_string, sz) \
207 fcoe_fcf_private_show_function(field, format_string, sz, ) \
211 #define fcoe_ctlr_private_rd_attr_cast(field, format_string, sz, cast) \
212 fcoe_ctlr_private_show_function(field, format_string, sz, (cast)) \
216 #define fcoe_fcf_private_rd_attr_cast(field, format_string, sz, cast) \
217 fcoe_fcf_private_show_function(field, format_string, sz, (cast)) \
/linux-4.4.14/drivers/acpi/
H A Dutils.c59 char *format_string = NULL; acpi_extract_package() local
90 format_string = format->pointer; acpi_extract_package()
102 switch (format_string[i]) { acpi_extract_package()
117 i, format_string[i]); acpi_extract_package()
125 switch (format_string[i]) { acpi_extract_package()
142 i, format_string[i]); acpi_extract_package()
148 switch (format_string[i]) { acpi_extract_package()
157 i, format_string[i]); acpi_extract_package()
210 switch (format_string[i]) { acpi_extract_package()
235 switch (format_string[i]) { acpi_extract_package()
261 switch (format_string[i]) { acpi_extract_package()
/linux-4.4.14/drivers/zorro/
H A Dzorro-sysfs.c25 #define zorro_config_attr(name, field, format_string) \
32 return sprintf(buf, format_string, z->field); \
/linux-4.4.14/drivers/usb/core/
H A Dsysfs.c20 #define usb_actconfig_show(field, format_string) \
32 rc = sprintf(buf, format_string, \
38 #define usb_actconfig_attr(field, format_string) \
39 usb_actconfig_show(field, format_string) \
642 #define usb_descriptor_attr_le16(field, format_string) \
650 return sprintf(buf, format_string, \
659 #define usb_descriptor_attr(field, format_string) \
667 return sprintf(buf, format_string, udev->descriptor.field); \
888 #define usb_intf_assoc_attr(field, format_string) \
895 return sprintf(buf, format_string, \
907 #define usb_intf_attr(field, format_string) \
914 return sprintf(buf, format_string, \
H A Dendpoint.c34 #define usb_ep_attr(field, format_string) \
40 return sprintf(buf, format_string, ep->desc->field); \
/linux-4.4.14/drivers/scsi/
H A Dscsi_transport_sas.c453 #define sas_phy_show_simple(field, name, format_string, cast) \
460 return snprintf(buf, 20, format_string, cast phy->field); \
463 #define sas_phy_simple_attr(field, name, format_string, type) \
464 sas_phy_show_simple(field, name, format_string, (type)) \
820 #define sas_port_show_simple(field, name, format_string, cast) \
827 return snprintf(buf, 20, format_string, cast port->field); \
830 #define sas_port_simple_attr(field, name, format_string, type) \
831 sas_port_show_simple(field, name, format_string, (type)) \
1167 #define sas_rphy_show_simple(field, name, format_string, cast) \
1174 return snprintf(buf, 20, format_string, cast rphy->field); \
1177 #define sas_rphy_simple_attr(field, name, format_string, type) \
1178 sas_rphy_show_simple(field, name, format_string, (type)) \
1301 #define sas_end_dev_show_simple(field, name, format_string, cast) \
1309 return snprintf(buf, 20, format_string, cast rdev->field); \
1312 #define sas_end_dev_simple_attr(field, name, format_string, type) \
1313 sas_end_dev_show_simple(field, name, format_string, (type)) \
1330 #define sas_expander_show_simple(field, name, format_string, cast) \
1338 return snprintf(buf, 20, format_string, cast edev->field); \
1341 #define sas_expander_simple_attr(field, name, format_string, type) \
1342 sas_expander_show_simple(field, name, format_string, (type)) \
H A Dscsi_transport_spi.c279 #define spi_transport_show_simple(field, format_string) \
289 return snprintf(buf, 20, format_string, tp->field); \
292 #define spi_transport_store_simple(field, format_string) \
309 #define spi_transport_show_function(field, format_string) \
322 return snprintf(buf, 20, format_string, tp->field); \
325 #define spi_transport_store_function(field, format_string) \
343 #define spi_transport_store_max(field, format_string) \
365 #define spi_transport_rd_attr(field, format_string) \
366 spi_transport_show_function(field, format_string) \
367 spi_transport_store_function(field, format_string) \
372 #define spi_transport_simple_attr(field, format_string) \
373 spi_transport_show_simple(field, format_string) \
374 spi_transport_store_simple(field, format_string) \
379 #define spi_transport_max_attr(field, format_string) \
380 spi_transport_show_function(field, format_string) \
381 spi_transport_store_max(field, format_string) \
382 spi_transport_simple_attr(max_##field, format_string) \
H A Dscsi_sysfs.c126 #define shost_show_function(name, field, format_string) \
132 return snprintf (buf, 20, format_string, shost->field); \
139 #define shost_rd_attr2(name, field, format_string) \
140 shost_show_function(name, field, format_string) \
143 #define shost_rd_attr(field, format_string) \
144 shost_rd_attr2(field, field, format_string)
508 #define sdev_show_function(field, format_string) \
515 return snprintf (buf, 20, format_string, sdev->field); \
522 #define sdev_rd_attr(field, format_string) \
523 sdev_show_function(field, format_string) \
531 #define sdev_rw_attr(field, format_string) \
532 sdev_show_function(field, format_string) \
540 sscanf (buf, format_string, &sdev->field); \
H A Dscsi_transport_fc.c699 #define fc_rport_show_function(field, format_string, sz, cast) \
712 return snprintf(buf, sz, format_string, cast rport->field); \
737 #define fc_rport_rd_attr(field, format_string, sz) \
738 fc_rport_show_function(field, format_string, sz, ) \
742 #define fc_rport_rd_attr_cast(field, format_string, sz, cast) \
743 fc_rport_show_function(field, format_string, sz, (cast)) \
747 #define fc_rport_rw_attr(field, format_string, sz) \
748 fc_rport_show_function(field, format_string, sz, ) \
755 #define fc_private_rport_show_function(field, format_string, sz, cast) \
761 return snprintf(buf, sz, format_string, cast rport->field); \
764 #define fc_private_rport_rd_attr(field, format_string, sz) \
765 fc_private_rport_show_function(field, format_string, sz, ) \
769 #define fc_private_rport_rd_attr_cast(field, format_string, sz, cast) \
770 fc_private_rport_show_function(field, format_string, sz, (cast)) \
1014 #define fc_starget_show_function(field, format_string, sz, cast) \
1027 return snprintf(buf, sz, format_string, \
1031 #define fc_starget_rd_attr(field, format_string, sz) \
1032 fc_starget_show_function(field, format_string, sz, ) \
1036 #define fc_starget_rd_attr_cast(field, format_string, sz, cast) \
1037 fc_starget_show_function(field, format_string, sz, (cast)) \
1069 #define fc_vport_show_function(field, format_string, sz, cast) \
1080 return snprintf(buf, sz, format_string, cast vport->field); \
1124 #define fc_vport_rd_attr(field, format_string, sz) \
1125 fc_vport_show_function(field, format_string, sz, ) \
1129 #define fc_vport_rd_attr_cast(field, format_string, sz, cast) \
1130 fc_vport_show_function(field, format_string, sz, (cast)) \
1134 #define fc_vport_rw_attr(field, format_string, sz) \
1135 fc_vport_show_function(field, format_string, sz, ) \
1141 #define fc_private_vport_show_function(field, format_string, sz, cast) \
1147 return snprintf(buf, sz, format_string, cast vport->field); \
1169 #define fc_private_vport_rd_attr(field, format_string, sz) \
1170 fc_private_vport_show_function(field, format_string, sz, ) \
1174 #define fc_private_vport_rd_attr_cast(field, format_string, sz, cast) \
1175 fc_private_vport_show_function(field, format_string, sz, (cast)) \
1179 #define fc_private_vport_rw_u32_attr(field, format_string, sz) \
1180 fc_private_vport_show_function(field, format_string, sz, ) \
1338 #define fc_host_show_function(field, format_string, sz, cast) \
1347 return snprintf(buf, sz, format_string, cast fc_host_##field(shost)); \
1388 #define fc_host_rd_attr(field, format_string, sz) \
1389 fc_host_show_function(field, format_string, sz, ) \
1393 #define fc_host_rd_attr_cast(field, format_string, sz, cast) \
1394 fc_host_show_function(field, format_string, sz, (cast)) \
1398 #define fc_host_rw_attr(field, format_string, sz) \
1399 fc_host_show_function(field, format_string, sz, ) \
1448 #define fc_private_host_show_function(field, format_string, sz, cast) \
1454 return snprintf(buf, sz, format_string, cast fc_host_##field(shost)); \
1457 #define fc_private_host_rd_attr(field, format_string, sz) \
1458 fc_private_host_show_function(field, format_string, sz, ) \
1462 #define fc_private_host_rd_attr_cast(field, format_string, sz, cast) \
1463 fc_private_host_show_function(field, format_string, sz, (cast)) \
/linux-4.4.14/drivers/ata/
H A Dlibata-transport.c204 #define ata_port_show_simple(field, name, format_string, cast) \
211 return snprintf(buf, 20, format_string, cast ap->field); \
214 #define ata_port_simple_attr(field, name, format_string, type) \
215 ata_port_show_simple(field, name, format_string, (type)) \
473 #define ata_dev_show_simple(field, format_string, cast) \
480 return snprintf(buf, 20, format_string, cast ata_dev->field); \
483 #define ata_dev_simple_attr(field, format_string, type) \
484 ata_dev_show_simple(field, format_string, (type)) \
/linux-4.4.14/net/mac80211/
H A Ddebugfs_key.c19 #define KEY_READ(name, prop, format_string) \
26 format_string, key->prop); \
50 #define KEY_CONF_READ(name, format_string) \
51 KEY_READ(conf_##name, conf.name, format_string)
H A Ddebugfs_sta.c22 #define STA_READ(name, field, format_string) \
29 format_string, sta->field); \
H A Ddebugfs_netdev.c70 #define IEEE80211_IF_FMT(name, field, format_string) \
75 return scnprintf(buf, buflen, format_string, sdata->field); \
/linux-4.4.14/drivers/char/mwave/
H A Dmwavedd.c497 #define mwave_show_function(attr_name, format_string, field) \
502 return sprintf(buf, format_string, pSettings->field); \
506 #define mwave_dev_rd_attr(attr_name, format_string, field) \
507 mwave_show_function(attr_name, format_string, field) \
/linux-4.4.14/drivers/rapidio/
H A Drio-sysfs.c22 #define rio_config_attr(field, format_string) \
28 return sprintf(buf, format_string, rdev->field); \
/linux-4.4.14/drivers/mmc/core/
H A Dsdio_bus.c34 #define sdio_config_attr(field, format_string) \
41 return sprintf (buf, format_string, func->field); \
/linux-4.4.14/drivers/ipack/
H A Dipack.c105 #define ipack_device_attr(field, format_string) \
111 return sprintf(buf, format_string, idev->field); \
/linux-4.4.14/net/core/
H A Dnet-sysfs.c59 #define NETDEVICE_SHOW(field, format_string) \
62 return sprintf(buf, format_string, dev->field); \
70 #define NETDEVICE_SHOW_RO(field, format_string) \
71 NETDEVICE_SHOW(field, format_string); \
74 #define NETDEVICE_SHOW_RW(field, format_string) \
75 NETDEVICE_SHOW(field, format_string); \
/linux-4.4.14/drivers/s390/cio/
H A Dcmf.c1338 char *format_string; init_cmf() local
1360 format_string = "basic"; init_cmf()
1364 format_string = "extended"; init_cmf()
1375 "%s (mode %s)\n", format_string, detect_string); init_cmf()
/linux-4.4.14/drivers/rpmsg/
H A Dvirtio_rpmsg_bus.c122 #define rpmsg_show_attr(field, path, format_string) \
129 return sprintf(buf, format_string, rpdev->path); \
/linux-4.4.14/drivers/ssb/
H A Dmain.c353 #define ssb_config_attr(attrib, field, format_string) \
357 return sprintf(buf, format_string, dev_to_ssb_dev(dev)->field); \
/linux-4.4.14/arch/parisc/kernel/
H A Ddrivers.c573 #define pa_dev_attr(name, field, format_string) \
577 return sprintf(buf, format_string, padev->field); \
/linux-4.4.14/drivers/spi/
H A Dspi.c96 #define SPI_STATISTICS_SHOW_NAME(name, file, field, format_string) \
103 len = sprintf(buf, format_string, stat->field); \
109 #define SPI_STATISTICS_SHOW(field, format_string) \
111 field, format_string)
/linux-4.4.14/drivers/pci/
H A Dpci-sysfs.c38 #define pci_config_attr(field, format_string) \
45 return sprintf(buf, format_string, pdev->field); \
/linux-4.4.14/drivers/scsi/lpfc/
H A Dlpfc_attr.c5630 #define lpfc_rport_show_function(field, format_string, sz, cast) \
5638 return snprintf(buf, sz, format_string, \
5642 #define lpfc_rport_rd_attr(field, format_string, sz) \
5643 lpfc_rport_show_function(field, format_string, sz, ) \

Completed in 1022 milliseconds