Lines Matching refs:init_fw_cb
453 struct addr_ctrl_blk *init_fw_cb) in qla4xxx_update_local_ip() argument
455 ha->ip_config.tcp_options = le16_to_cpu(init_fw_cb->ipv4_tcp_opts); in qla4xxx_update_local_ip()
456 ha->ip_config.ipv4_options = le16_to_cpu(init_fw_cb->ipv4_ip_opts); in qla4xxx_update_local_ip()
458 qla4xxx_set_ipaddr_state(init_fw_cb->ipv4_addr_state); in qla4xxx_update_local_ip()
460 le16_to_cpu(init_fw_cb->eth_mtu_size); in qla4xxx_update_local_ip()
461 ha->ip_config.ipv4_port = le16_to_cpu(init_fw_cb->ipv4_port); in qla4xxx_update_local_ip()
464 ha->ip_config.ipv6_options = le16_to_cpu(init_fw_cb->ipv6_opts); in qla4xxx_update_local_ip()
466 le16_to_cpu(init_fw_cb->ipv6_addtl_opts); in qla4xxx_update_local_ip()
468 le16_to_cpu(init_fw_cb->ipv6_tcp_opts); in qla4xxx_update_local_ip()
472 memcpy(ha->ip_config.ip_address, init_fw_cb->ipv4_addr, in qla4xxx_update_local_ip()
474 sizeof(init_fw_cb->ipv4_addr))); in qla4xxx_update_local_ip()
475 memcpy(ha->ip_config.subnet_mask, init_fw_cb->ipv4_subnet, in qla4xxx_update_local_ip()
477 sizeof(init_fw_cb->ipv4_subnet))); in qla4xxx_update_local_ip()
478 memcpy(ha->ip_config.gateway, init_fw_cb->ipv4_gw_addr, in qla4xxx_update_local_ip()
480 sizeof(init_fw_cb->ipv4_gw_addr))); in qla4xxx_update_local_ip()
482 ha->ip_config.ipv4_vlan_tag = be16_to_cpu(init_fw_cb->ipv4_vlan_tag); in qla4xxx_update_local_ip()
483 ha->ip_config.control = init_fw_cb->control; in qla4xxx_update_local_ip()
484 ha->ip_config.tcp_wsf = init_fw_cb->ipv4_tcp_wsf; in qla4xxx_update_local_ip()
485 ha->ip_config.ipv4_tos = init_fw_cb->ipv4_tos; in qla4xxx_update_local_ip()
486 ha->ip_config.ipv4_cache_id = init_fw_cb->ipv4_cacheid; in qla4xxx_update_local_ip()
487 ha->ip_config.ipv4_alt_cid_len = init_fw_cb->ipv4_dhcp_alt_cid_len; in qla4xxx_update_local_ip()
488 memcpy(ha->ip_config.ipv4_alt_cid, init_fw_cb->ipv4_dhcp_alt_cid, in qla4xxx_update_local_ip()
490 sizeof(init_fw_cb->ipv4_dhcp_alt_cid))); in qla4xxx_update_local_ip()
491 ha->ip_config.ipv4_vid_len = init_fw_cb->ipv4_dhcp_vid_len; in qla4xxx_update_local_ip()
492 memcpy(ha->ip_config.ipv4_vid, init_fw_cb->ipv4_dhcp_vid, in qla4xxx_update_local_ip()
494 sizeof(init_fw_cb->ipv4_dhcp_vid))); in qla4xxx_update_local_ip()
495 ha->ip_config.ipv4_ttl = init_fw_cb->ipv4_ttl; in qla4xxx_update_local_ip()
496 ha->ip_config.def_timeout = le16_to_cpu(init_fw_cb->def_timeout); in qla4xxx_update_local_ip()
497 ha->ip_config.abort_timer = init_fw_cb->abort_timer; in qla4xxx_update_local_ip()
498 ha->ip_config.iscsi_options = le16_to_cpu(init_fw_cb->iscsi_opts); in qla4xxx_update_local_ip()
500 le16_to_cpu(init_fw_cb->iscsi_max_pdu_size); in qla4xxx_update_local_ip()
502 le16_to_cpu(init_fw_cb->iscsi_fburst_len); in qla4xxx_update_local_ip()
504 le16_to_cpu(init_fw_cb->iscsi_max_outstnd_r2t); in qla4xxx_update_local_ip()
506 le16_to_cpu(init_fw_cb->iscsi_max_burst_len); in qla4xxx_update_local_ip()
507 memcpy(ha->ip_config.iscsi_name, init_fw_cb->iscsi_name, in qla4xxx_update_local_ip()
509 sizeof(init_fw_cb->iscsi_name))); in qla4xxx_update_local_ip()
514 qla4xxx_set_ipaddr_state(init_fw_cb->ipv6_lnk_lcl_addr_state); in qla4xxx_update_local_ip()
516 qla4xxx_set_ipaddr_state(init_fw_cb->ipv6_addr0_state); in qla4xxx_update_local_ip()
518 qla4xxx_set_ipaddr_state(init_fw_cb->ipv6_addr1_state); in qla4xxx_update_local_ip()
520 switch (le16_to_cpu(init_fw_cb->ipv6_dflt_rtr_state)) { in qla4xxx_update_local_ip()
546 init_fw_cb->ipv6_if_id, in qla4xxx_update_local_ip()
548 sizeof(init_fw_cb->ipv6_if_id))); in qla4xxx_update_local_ip()
549 memcpy(&ha->ip_config.ipv6_addr0, init_fw_cb->ipv6_addr0, in qla4xxx_update_local_ip()
551 sizeof(init_fw_cb->ipv6_addr0))); in qla4xxx_update_local_ip()
552 memcpy(&ha->ip_config.ipv6_addr1, init_fw_cb->ipv6_addr1, in qla4xxx_update_local_ip()
554 sizeof(init_fw_cb->ipv6_addr1))); in qla4xxx_update_local_ip()
556 init_fw_cb->ipv6_dflt_rtr_addr, in qla4xxx_update_local_ip()
558 sizeof(init_fw_cb->ipv6_dflt_rtr_addr))); in qla4xxx_update_local_ip()
560 be16_to_cpu(init_fw_cb->ipv6_vlan_tag); in qla4xxx_update_local_ip()
561 ha->ip_config.ipv6_port = le16_to_cpu(init_fw_cb->ipv6_port); in qla4xxx_update_local_ip()
562 ha->ip_config.ipv6_cache_id = init_fw_cb->ipv6_cache_id; in qla4xxx_update_local_ip()
564 le16_to_cpu(init_fw_cb->ipv6_flow_lbl); in qla4xxx_update_local_ip()
566 init_fw_cb->ipv6_traffic_class; in qla4xxx_update_local_ip()
567 ha->ip_config.ipv6_hop_limit = init_fw_cb->ipv6_hop_limit; in qla4xxx_update_local_ip()
569 le32_to_cpu(init_fw_cb->ipv6_nd_reach_time); in qla4xxx_update_local_ip()
571 le32_to_cpu(init_fw_cb->ipv6_nd_rexmit_timer); in qla4xxx_update_local_ip()
573 le32_to_cpu(init_fw_cb->ipv6_nd_stale_timeout); in qla4xxx_update_local_ip()
575 init_fw_cb->ipv6_dup_addr_detect_count; in qla4xxx_update_local_ip()
577 le32_to_cpu(init_fw_cb->ipv6_gw_advrt_mtu); in qla4xxx_update_local_ip()
578 ha->ip_config.ipv6_tcp_wsf = init_fw_cb->ipv6_tcp_wsf; in qla4xxx_update_local_ip()
586 struct addr_ctrl_blk *init_fw_cb, in qla4xxx_update_local_ifcb() argument
597 DEBUG2(qla4xxx_dump_buffer(init_fw_cb, sizeof(struct addr_ctrl_blk))); in qla4xxx_update_local_ifcb()
600 ha->acb_version = init_fw_cb->acb_version; in qla4xxx_update_local_ifcb()
601 ha->firmware_options = le16_to_cpu(init_fw_cb->fw_options); in qla4xxx_update_local_ifcb()
602 ha->heartbeat_interval = init_fw_cb->hb_interval; in qla4xxx_update_local_ifcb()
603 memcpy(ha->name_string, init_fw_cb->iscsi_name, in qla4xxx_update_local_ifcb()
605 sizeof(init_fw_cb->iscsi_name))); in qla4xxx_update_local_ifcb()
606 ha->def_timeout = le16_to_cpu(init_fw_cb->def_timeout); in qla4xxx_update_local_ifcb()
610 qla4xxx_update_local_ip(ha, init_fw_cb); in qla4xxx_update_local_ifcb()
621 struct addr_ctrl_blk *init_fw_cb; in qla4xxx_initialize_fw_cb() local
627 init_fw_cb = dma_alloc_coherent(&ha->pdev->dev, in qla4xxx_initialize_fw_cb()
630 if (init_fw_cb == NULL) { in qla4xxx_initialize_fw_cb()
646 init_fw_cb->rqq_consumer_idx = cpu_to_le16(ha->request_out); in qla4xxx_initialize_fw_cb()
647 init_fw_cb->compq_producer_idx = cpu_to_le16(ha->response_in); in qla4xxx_initialize_fw_cb()
648 init_fw_cb->rqq_len = cpu_to_le16(REQUEST_QUEUE_DEPTH); in qla4xxx_initialize_fw_cb()
649 init_fw_cb->compq_len = cpu_to_le16(RESPONSE_QUEUE_DEPTH); in qla4xxx_initialize_fw_cb()
650 init_fw_cb->rqq_addr_lo = cpu_to_le32(LSDW(ha->request_dma)); in qla4xxx_initialize_fw_cb()
651 init_fw_cb->rqq_addr_hi = cpu_to_le32(MSDW(ha->request_dma)); in qla4xxx_initialize_fw_cb()
652 init_fw_cb->compq_addr_lo = cpu_to_le32(LSDW(ha->response_dma)); in qla4xxx_initialize_fw_cb()
653 init_fw_cb->compq_addr_hi = cpu_to_le32(MSDW(ha->response_dma)); in qla4xxx_initialize_fw_cb()
654 init_fw_cb->shdwreg_addr_lo = cpu_to_le32(LSDW(ha->shadow_regs_dma)); in qla4xxx_initialize_fw_cb()
655 init_fw_cb->shdwreg_addr_hi = cpu_to_le32(MSDW(ha->shadow_regs_dma)); in qla4xxx_initialize_fw_cb()
658 init_fw_cb->fw_options |= in qla4xxx_initialize_fw_cb()
663 init_fw_cb->fw_options |= in qla4xxx_initialize_fw_cb()
666 init_fw_cb->fw_options &= cpu_to_le16(~FWOPT_TARGET_MODE); in qla4xxx_initialize_fw_cb()
668 init_fw_cb->add_fw_options = 0; in qla4xxx_initialize_fw_cb()
669 init_fw_cb->add_fw_options |= in qla4xxx_initialize_fw_cb()
671 init_fw_cb->add_fw_options |= in qla4xxx_initialize_fw_cb()
683 init_fw_cb, init_fw_cb_dma) != QLA_SUCCESS) { in qla4xxx_initialize_fw_cb()
692 init_fw_cb, init_fw_cb_dma); in qla4xxx_initialize_fw_cb()
703 struct addr_ctrl_blk *init_fw_cb; in qla4xxx_get_dhcp_ip_address() local
708 init_fw_cb = dma_alloc_coherent(&ha->pdev->dev, in qla4xxx_get_dhcp_ip_address()
711 if (init_fw_cb == NULL) { in qla4xxx_get_dhcp_ip_address()
724 init_fw_cb, init_fw_cb_dma); in qla4xxx_get_dhcp_ip_address()
729 qla4xxx_update_local_ip(ha, init_fw_cb); in qla4xxx_get_dhcp_ip_address()
731 init_fw_cb, init_fw_cb_dma); in qla4xxx_get_dhcp_ip_address()