Lines Matching refs:sprintf

106 	return sprintf(buf, "%d: %s\n", attr.state,  in state_show()
121 return sprintf(buf, "0x%x\n", attr.lid); in lid_show()
135 return sprintf(buf, "%d\n", attr.lmc); in lid_mask_count_show()
148 return sprintf(buf, "0x%x\n", attr.sm_lid); in sm_lid_show()
161 return sprintf(buf, "%d\n", attr.sm_sl); in sm_sl_show()
174 return sprintf(buf, "0x%08x\n", attr.port_cap_flags); in cap_mask_show()
220 return sprintf(buf, "%d%s Gb/sec (%dX%s)\n", in rate_show()
237 case 1: return sprintf(buf, "1: Sleep\n"); in phys_state_show()
238 case 2: return sprintf(buf, "2: Polling\n"); in phys_state_show()
239 case 3: return sprintf(buf, "3: Disabled\n"); in phys_state_show()
240 case 4: return sprintf(buf, "4: PortConfigurationTraining\n"); in phys_state_show()
241 case 5: return sprintf(buf, "5: LinkUp\n"); in phys_state_show()
242 case 6: return sprintf(buf, "6: LinkErrorRecovery\n"); in phys_state_show()
243 case 7: return sprintf(buf, "7: Phy Test\n"); in phys_state_show()
244 default: return sprintf(buf, "%d: <unknown>\n", attr.phys_state); in phys_state_show()
253 return sprintf(buf, "%s\n", "InfiniBand"); in link_layer_show()
255 return sprintf(buf, "%s\n", "Ethernet"); in link_layer_show()
257 return sprintf(buf, "%s\n", "Unknown"); in link_layer_show()
296 return sprintf(buf, "%pI6\n", gid.raw); in show_port_gid()
311 return sprintf(buf, "0x%04x\n", pkey); in show_port_pkey()
332 return sprintf(buf, "N/A (no PMA)\n"); in show_pma_counter()
359 ret = sprintf(buf, "%u\n", (out_mad->data[40 + offset / 8] >> in show_pma_counter()
363 ret = sprintf(buf, "%u\n", out_mad->data[40 + offset / 8]); in show_pma_counter()
366 ret = sprintf(buf, "%u\n", in show_pma_counter()
370 ret = sprintf(buf, "%u\n", in show_pma_counter()
620 case RDMA_NODE_IB_CA: return sprintf(buf, "%d: CA\n", dev->node_type); in show_node_type()
621 case RDMA_NODE_RNIC: return sprintf(buf, "%d: RNIC\n", dev->node_type); in show_node_type()
622 case RDMA_NODE_USNIC: return sprintf(buf, "%d: usNIC\n", dev->node_type); in show_node_type()
623 case RDMA_NODE_USNIC_UDP: return sprintf(buf, "%d: usNIC UDP\n", dev->node_type); in show_node_type()
624 case RDMA_NODE_IB_SWITCH: return sprintf(buf, "%d: switch\n", dev->node_type); in show_node_type()
625 case RDMA_NODE_IB_ROUTER: return sprintf(buf, "%d: router\n", dev->node_type); in show_node_type()
626 default: return sprintf(buf, "%d: <unknown>\n", dev->node_type); in show_node_type()
641 return sprintf(buf, "%04x:%04x:%04x:%04x\n", in show_sys_image_guid()
653 return sprintf(buf, "%04x:%04x:%04x:%04x\n", in show_node_guid()
665 return sprintf(buf, "%.64s\n", dev->node_desc); in show_node_desc()
718 return sprintf(buf, "%llu\n", in show_protocol_stat()