• Home
  • Raw
  • Download

Lines Matching refs:buf

164 	char buf[20];  in xprt_rdma_format_addresses4()  local
166 snprintf(buf, sizeof(buf), "%08x", ntohl(sin->sin_addr.s_addr)); in xprt_rdma_format_addresses4()
167 xprt->address_strings[RPC_DISPLAY_HEX_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses4()
176 char buf[40]; in xprt_rdma_format_addresses6() local
178 snprintf(buf, sizeof(buf), "%pi6", &sin6->sin6_addr); in xprt_rdma_format_addresses6()
179 xprt->address_strings[RPC_DISPLAY_HEX_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses6()
187 char buf[128]; in xprt_rdma_format_addresses() local
201 (void)rpc_ntop(sap, buf, sizeof(buf)); in xprt_rdma_format_addresses()
202 xprt->address_strings[RPC_DISPLAY_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses()
204 snprintf(buf, sizeof(buf), "%u", rpc_get_port(sap)); in xprt_rdma_format_addresses()
205 xprt->address_strings[RPC_DISPLAY_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses()
207 snprintf(buf, sizeof(buf), "%4hx", rpc_get_port(sap)); in xprt_rdma_format_addresses()
208 xprt->address_strings[RPC_DISPLAY_HEX_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses()
406 char buf[8]; in xprt_rdma_set_port() local
411 snprintf(buf, sizeof(buf), "%u", port); in xprt_rdma_set_port()
412 xprt->address_strings[RPC_DISPLAY_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_set_port()
415 snprintf(buf, sizeof(buf), "%4hx", port); in xprt_rdma_set_port()
416 xprt->address_strings[RPC_DISPLAY_HEX_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_set_port()