Lines Matching refs:icb

4170 	struct init_cb_24xx *icb;
4176 icb = (struct init_cb_24xx *)ha->init_cb;
4177 icb->request_q_outpointer = cpu_to_le16(0);
4178 icb->response_q_inpointer = cpu_to_le16(0);
4179 icb->request_q_length = cpu_to_le16(req->length);
4180 icb->response_q_length = cpu_to_le16(rsp->length);
4181 put_unaligned_le64(req->dma, &icb->request_q_address);
4182 put_unaligned_le64(rsp->dma, &icb->response_q_address);
4185 icb->atio_q_inpointer = cpu_to_le16(0);
4186 icb->atio_q_length = cpu_to_le16(ha->tgt.atio_q_length);
4187 put_unaligned_le64(ha->tgt.atio_dma, &icb->atio_q_address);
4190 icb->firmware_options_2 |= cpu_to_le32(BIT_30|BIT_29);
4194 icb->qos = cpu_to_le16(QLA_DEFAULT_QUE_QOS);
4195 icb->rid = cpu_to_le16(rid);
4201 icb->msix = cpu_to_le16(msix->entry);
4205 icb->firmware_options_2 |= cpu_to_le32(BIT_19);
4208 icb->firmware_options_2 |= cpu_to_le32(BIT_18);
4213 icb->firmware_options_2 &= cpu_to_le32(~BIT_22);
4218 icb->firmware_options_2 |= cpu_to_le32(BIT_22);
4220 icb->firmware_options_2 |= cpu_to_le32(BIT_23);
4240 icb->firmware_options_3 = cpu_to_le32(ha->set_data_rate << 13);
4709 init_cb_t *icb = ha->init_cb;
4795 memset(icb, 0, ha->init_cb_size);
4841 dptr1 = (uint8_t *)icb;
4843 cnt = (uint8_t *)&icb->request_q_outpointer - (uint8_t *)&icb->version;
4848 dptr1 = (uint8_t *)icb->add_firmware_options;
4849 cnt = (uint8_t *)icb->reserved_3 - (uint8_t *)icb->add_firmware_options;
4852 ha->frame_payload_size = le16_to_cpu(icb->frame_payload_size);
4855 memcpy(icb->node_name, nv->alternate_node_name, WWN_SIZE);
4856 memcpy(icb->port_name, nv->alternate_port_name, WWN_SIZE);
4860 if ((icb->firmware_options[1] & BIT_6) == 0) {
4865 memcpy(icb->node_name, icb->port_name, WWN_SIZE);
4866 icb->node_name[0] &= 0xF0;
4890 (icb->add_firmware_options[0] & (BIT_6 | BIT_5 | BIT_4)) >> 4;
4896 ha->serial0 = icb->port_name[5];
4897 ha->serial1 = icb->port_name[6];
4898 ha->serial2 = icb->port_name[7];
4899 memcpy(vha->node_name, icb->node_name, WWN_SIZE);
4900 memcpy(vha->port_name, icb->port_name, WWN_SIZE);
4902 icb->execution_throttle = cpu_to_le16(0xFFFF);
4953 icb->lun_enables = cpu_to_le16(0);
4954 icb->command_resource_count = 0;
4955 icb->immediate_notify_resource_count = 0;
4956 icb->timeout = cpu_to_le16(0);
4960 icb->firmware_options[0] &= ~BIT_3;
4961 icb->add_firmware_options[0] &=
4963 icb->add_firmware_options[0] |= BIT_2;
4964 icb->response_accumulation_timer = 3;
4965 icb->interrupt_delay_timer = 5;
4971 ha->zio_mode = icb->add_firmware_options[0] &
4973 ha->zio_timer = icb->interrupt_delay_timer ?
4974 icb->interrupt_delay_timer : 2;
4976 icb->add_firmware_options[0] &=
4986 icb->add_firmware_options[0] |= (uint8_t)ha->zio_mode;
4987 icb->interrupt_delay_timer = (uint8_t)ha->zio_timer;
7368 struct init_cb_24xx *icb;
7377 icb = (struct init_cb_24xx *)ha->init_cb;
7475 memset(icb, 0, ha->init_cb_size);
7478 dptr1 = (uint8_t *)icb;
7480 cnt = (uint8_t *)&icb->response_q_inpointer - (uint8_t *)&icb->version;
7484 icb->login_retry_count = nv->login_retry_count;
7485 icb->link_down_on_nos = nv->link_down_on_nos;
7488 dptr1 = (uint8_t *)&icb->interrupt_delay_timer;
7490 cnt = (uint8_t *)&icb->reserved_3 -
7491 (uint8_t *)&icb->interrupt_delay_timer;
7494 ha->frame_payload_size = le16_to_cpu(icb->frame_payload_size);
7501 qlt_24xx_config_nvram_stage2(vha, icb);
7505 memcpy(icb->node_name, nv->alternate_node_name, WWN_SIZE);
7506 memcpy(icb->port_name, nv->alternate_port_name, WWN_SIZE);
7510 if ((icb->firmware_options_1 & cpu_to_le32(BIT_14)) == 0) {
7515 memcpy(icb->node_name, icb->port_name, WWN_SIZE);
7516 icb->node_name[0] &= 0xF0;
7529 ha->operating_mode = (le32_to_cpu(icb->firmware_options_2) &
7536 ha->serial0 = icb->port_name[5];
7537 ha->serial1 = icb->port_name[6];
7538 ha->serial2 = icb->port_name[7];
7539 memcpy(vha->node_name, icb->node_name, WWN_SIZE);
7540 memcpy(vha->port_name, icb->port_name, WWN_SIZE);
7542 icb->execution_throttle = cpu_to_le16(0xFFFF);
7594 icb->firmware_options_3 |= cpu_to_le32(BIT_8);
7598 ha->zio_mode = le32_to_cpu(icb->firmware_options_2) &
7600 ha->zio_timer = le16_to_cpu(icb->interrupt_delay_timer) ?
7601 le16_to_cpu(icb->interrupt_delay_timer) : 2;
7603 icb->firmware_options_2 &= cpu_to_le32(
7612 icb->firmware_options_2 |= cpu_to_le32(
7614 icb->interrupt_delay_timer = cpu_to_le16(ha->zio_timer);
8548 struct init_cb_81xx *icb;
8559 icb = (struct init_cb_81xx *)ha->init_cb;
8673 memset(icb, 0, ha->init_cb_size);
8676 dptr1 = (uint8_t *)icb;
8678 cnt = (uint8_t *)&icb->response_q_inpointer - (uint8_t *)&icb->version;
8682 icb->login_retry_count = nv->login_retry_count;
8685 dptr1 = (uint8_t *)&icb->interrupt_delay_timer;
8687 cnt = (uint8_t *)&icb->reserved_5 -
8688 (uint8_t *)&icb->interrupt_delay_timer;
8692 memcpy(icb->enode_mac, nv->enode_mac, sizeof(icb->enode_mac));
8694 if (!memcmp(icb->enode_mac, "\0\0\0\0\0\0", sizeof(icb->enode_mac))) {
8695 icb->enode_mac[0] = 0x00;
8696 icb->enode_mac[1] = 0xC0;
8697 icb->enode_mac[2] = 0xDD;
8698 icb->enode_mac[3] = 0x04;
8699 icb->enode_mac[4] = 0x05;
8700 icb->enode_mac[5] = 0x06 + ha->port_no + 1;
8705 ha->frame_payload_size = le16_to_cpu(icb->frame_payload_size);
8712 qlt_81xx_config_nvram_stage2(vha, icb);
8716 memcpy(icb->node_name, nv->alternate_node_name, WWN_SIZE);
8717 memcpy(icb->port_name, nv->alternate_port_name, WWN_SIZE);
8721 if ((icb->firmware_options_1 & cpu_to_le32(BIT_14)) == 0) {
8726 memcpy(icb->node_name, icb->port_name, WWN_SIZE);
8727 icb->node_name[0] &= 0xF0;
8745 ha->operating_mode = (le32_to_cpu(icb->firmware_options_2) &
8749 ha->serial0 = icb->port_name[5];
8750 ha->serial1 = icb->port_name[6];
8751 ha->serial2 = icb->port_name[7];
8752 memcpy(vha->node_name, icb->node_name, WWN_SIZE);
8753 memcpy(vha->port_name, icb->port_name, WWN_SIZE);
8755 icb->execution_throttle = cpu_to_le16(0xFFFF);
8809 icb->firmware_options_2 |= cpu_to_le32(BIT_22);
8813 ha->zio_mode = le32_to_cpu(icb->firmware_options_2) &
8815 ha->zio_timer = le16_to_cpu(icb->interrupt_delay_timer) ?
8816 le16_to_cpu(icb->interrupt_delay_timer) : 2;
8818 icb->firmware_options_2 &= cpu_to_le32(
8829 icb->firmware_options_2 |= cpu_to_le32(
8831 icb->interrupt_delay_timer = cpu_to_le16(ha->zio_timer);
8836 icb->firmware_options_3 |= cpu_to_le32(BIT_0);
8839 icb->firmware_options_3 |= cpu_to_le32(BIT_8);