Lines Matching refs:str

202 	char *str = buf;  in sprintf_ipaddr()  local
210 str += sprintf(buf, "%pI4", ip + 12); in sprintf_ipaddr()
215 str += sprintf(str, "%pI6", ip); in sprintf_ipaddr()
217 str += sprintf(str, "\n"); in sprintf_ipaddr()
218 return str - buf; in sprintf_ipaddr()
221 static ssize_t sprintf_string(char *str, int len, char *buf) in sprintf_string() argument
223 return sprintf(str, "%.*s\n", len, buf); in sprintf_string()
255 char *str = buf; in ibft_attr_show_initiator() local
262 str += sprintf(str, "%d\n", initiator->hdr.index); in ibft_attr_show_initiator()
265 str += sprintf(str, "%d\n", initiator->hdr.flags); in ibft_attr_show_initiator()
268 str += sprintf_ipaddr(str, initiator->isns_server); in ibft_attr_show_initiator()
271 str += sprintf_ipaddr(str, initiator->slp_server); in ibft_attr_show_initiator()
274 str += sprintf_ipaddr(str, initiator->pri_radius_server); in ibft_attr_show_initiator()
277 str += sprintf_ipaddr(str, initiator->sec_radius_server); in ibft_attr_show_initiator()
280 str += sprintf_string(str, initiator->initiator_name_len, in ibft_attr_show_initiator()
288 return str - buf; in ibft_attr_show_initiator()
296 char *str = buf; in ibft_attr_show_nic() local
304 str += sprintf(str, "%d\n", nic->hdr.index); in ibft_attr_show_nic()
307 str += sprintf(str, "%d\n", nic->hdr.flags); in ibft_attr_show_nic()
310 str += sprintf_ipaddr(str, nic->ip_addr); in ibft_attr_show_nic()
314 str += sprintf(str, "%pI4", &val); in ibft_attr_show_nic()
317 str += sprintf(str, "%d\n", nic->subnet_mask_prefix); in ibft_attr_show_nic()
320 str += sprintf(str, "%d\n", nic->origin); in ibft_attr_show_nic()
323 str += sprintf_ipaddr(str, nic->gateway); in ibft_attr_show_nic()
326 str += sprintf_ipaddr(str, nic->primary_dns); in ibft_attr_show_nic()
329 str += sprintf_ipaddr(str, nic->secondary_dns); in ibft_attr_show_nic()
332 str += sprintf_ipaddr(str, nic->dhcp); in ibft_attr_show_nic()
335 str += sprintf(str, "%d\n", nic->vlan); in ibft_attr_show_nic()
338 str += sprintf(str, "%pM\n", nic->mac); in ibft_attr_show_nic()
341 str += sprintf_string(str, nic->hostname_len, in ibft_attr_show_nic()
348 return str - buf; in ibft_attr_show_nic()
356 char *str = buf; in ibft_attr_show_target() local
364 str += sprintf(str, "%d\n", tgt->hdr.index); in ibft_attr_show_target()
367 str += sprintf(str, "%d\n", tgt->hdr.flags); in ibft_attr_show_target()
370 str += sprintf_ipaddr(str, tgt->ip_addr); in ibft_attr_show_target()
373 str += sprintf(str, "%d\n", tgt->port); in ibft_attr_show_target()
377 str += sprintf(str, "%x", (u8)tgt->lun[i]); in ibft_attr_show_target()
378 str += sprintf(str, "\n"); in ibft_attr_show_target()
381 str += sprintf(str, "%d\n", tgt->nic_assoc); in ibft_attr_show_target()
384 str += sprintf(str, "%d\n", tgt->chap_type); in ibft_attr_show_target()
387 str += sprintf_string(str, tgt->tgt_name_len, in ibft_attr_show_target()
391 str += sprintf_string(str, tgt->chap_name_len, in ibft_attr_show_target()
395 str += sprintf_string(str, tgt->chap_secret_len, in ibft_attr_show_target()
399 str += sprintf_string(str, tgt->rev_chap_name_len, in ibft_attr_show_target()
404 str += sprintf_string(str, tgt->rev_chap_secret_len, in ibft_attr_show_target()
412 return str - buf; in ibft_attr_show_target()
418 char *str = buf; in ibft_attr_show_acpitbl() local
422 str += sprintf_string(str, ACPI_NAMESEG_SIZE, in ibft_attr_show_acpitbl()
426 str += sprintf_string(str, ACPI_OEM_ID_SIZE, in ibft_attr_show_acpitbl()
430 str += sprintf_string(str, ACPI_OEM_TABLE_ID_SIZE, in ibft_attr_show_acpitbl()
437 return str - buf; in ibft_attr_show_acpitbl()