Lines Matching refs:icb

4654 	struct init_cb_24xx *icb;
4660 icb = (struct init_cb_24xx *)ha->init_cb;
4661 icb->request_q_outpointer = cpu_to_le16(0);
4662 icb->response_q_inpointer = cpu_to_le16(0);
4663 icb->request_q_length = cpu_to_le16(req->length);
4664 icb->response_q_length = cpu_to_le16(rsp->length);
4665 put_unaligned_le64(req->dma, &icb->request_q_address);
4666 put_unaligned_le64(rsp->dma, &icb->response_q_address);
4669 icb->atio_q_inpointer = cpu_to_le16(0);
4670 icb->atio_q_length = cpu_to_le16(ha->tgt.atio_q_length);
4671 put_unaligned_le64(ha->tgt.atio_dma, &icb->atio_q_address);
4674 icb->firmware_options_2 |= cpu_to_le32(BIT_30|BIT_29);
4678 icb->qos = cpu_to_le16(QLA_DEFAULT_QUE_QOS);
4679 icb->rid = cpu_to_le16(rid);
4685 icb->msix = cpu_to_le16(msix->entry);
4689 icb->firmware_options_2 |= cpu_to_le32(BIT_19);
4692 icb->firmware_options_2 |= cpu_to_le32(BIT_18);
4697 icb->firmware_options_2 &= cpu_to_le32(~BIT_22);
4702 icb->firmware_options_2 |= cpu_to_le32(BIT_22);
4704 icb->firmware_options_2 |= cpu_to_le32(BIT_23);
4724 icb->firmware_options_3 = cpu_to_le32(ha->set_data_rate << 13);
5204 init_cb_t *icb = ha->init_cb;
5290 memset(icb, 0, ha->init_cb_size);
5336 dptr1 = (uint8_t *)icb;
5338 cnt = (uint8_t *)&icb->request_q_outpointer - (uint8_t *)&icb->version;
5343 dptr1 = (uint8_t *)icb->add_firmware_options;
5344 cnt = (uint8_t *)icb->reserved_3 - (uint8_t *)icb->add_firmware_options;
5347 ha->frame_payload_size = le16_to_cpu(icb->frame_payload_size);
5350 memcpy(icb->node_name, nv->alternate_node_name, WWN_SIZE);
5351 memcpy(icb->port_name, nv->alternate_port_name, WWN_SIZE);
5355 if ((icb->firmware_options[1] & BIT_6) == 0) {
5360 memcpy(icb->node_name, icb->port_name, WWN_SIZE);
5361 icb->node_name[0] &= 0xF0;
5385 (icb->add_firmware_options[0] & (BIT_6 | BIT_5 | BIT_4)) >> 4;
5391 ha->serial0 = icb->port_name[5];
5392 ha->serial1 = icb->port_name[6];
5393 ha->serial2 = icb->port_name[7];
5394 memcpy(vha->node_name, icb->node_name, WWN_SIZE);
5395 memcpy(vha->port_name, icb->port_name, WWN_SIZE);
5397 icb->execution_throttle = cpu_to_le16(0xFFFF);
5448 icb->lun_enables = cpu_to_le16(0);
5449 icb->command_resource_count = 0;
5450 icb->immediate_notify_resource_count = 0;
5451 icb->timeout = cpu_to_le16(0);
5455 icb->firmware_options[0] &= ~BIT_3;
5456 icb->add_firmware_options[0] &=
5458 icb->add_firmware_options[0] |= BIT_2;
5459 icb->response_accumulation_timer = 3;
5460 icb->interrupt_delay_timer = 5;
5466 ha->zio_mode = icb->add_firmware_options[0] &
5468 ha->zio_timer = icb->interrupt_delay_timer ?
5469 icb->interrupt_delay_timer : 2;
5471 icb->add_firmware_options[0] &=
5481 icb->add_firmware_options[0] |= (uint8_t)ha->zio_mode;
5482 icb->interrupt_delay_timer = (uint8_t)ha->zio_timer;
7854 struct init_cb_24xx *icb;
7863 icb = (struct init_cb_24xx *)ha->init_cb;
7961 memset(icb, 0, ha->init_cb_size);
7964 dptr1 = (uint8_t *)icb;
7966 cnt = (uint8_t *)&icb->response_q_inpointer - (uint8_t *)&icb->version;
7970 icb->login_retry_count = nv->login_retry_count;
7971 icb->link_down_on_nos = nv->link_down_on_nos;
7974 dptr1 = (uint8_t *)&icb->interrupt_delay_timer;
7976 cnt = (uint8_t *)&icb->reserved_3 -
7977 (uint8_t *)&icb->interrupt_delay_timer;
7980 ha->frame_payload_size = le16_to_cpu(icb->frame_payload_size);
7987 qlt_24xx_config_nvram_stage2(vha, icb);
7991 memcpy(icb->node_name, nv->alternate_node_name, WWN_SIZE);
7992 memcpy(icb->port_name, nv->alternate_port_name, WWN_SIZE);
7996 if ((icb->firmware_options_1 & cpu_to_le32(BIT_14)) == 0) {
8001 memcpy(icb->node_name, icb->port_name, WWN_SIZE);
8002 icb->node_name[0] &= 0xF0;
8015 ha->operating_mode = (le32_to_cpu(icb->firmware_options_2) &
8022 ha->serial0 = icb->port_name[5];
8023 ha->serial1 = icb->port_name[6];
8024 ha->serial2 = icb->port_name[7];
8025 memcpy(vha->node_name, icb->node_name, WWN_SIZE);
8026 memcpy(vha->port_name, icb->port_name, WWN_SIZE);
8028 icb->execution_throttle = cpu_to_le16(0xFFFF);
8080 icb->firmware_options_3 |= cpu_to_le32(BIT_8);
8084 ha->zio_mode = le32_to_cpu(icb->firmware_options_2) &
8086 ha->zio_timer = le16_to_cpu(icb->interrupt_delay_timer) ?
8087 le16_to_cpu(icb->interrupt_delay_timer) : 2;
8089 icb->firmware_options_2 &= cpu_to_le32(
8098 icb->firmware_options_2 |= cpu_to_le32(
8100 icb->interrupt_delay_timer = cpu_to_le16(ha->zio_timer);
9034 struct init_cb_81xx *icb;
9045 icb = (struct init_cb_81xx *)ha->init_cb;
9159 memset(icb, 0, ha->init_cb_size);
9162 dptr1 = (uint8_t *)icb;
9164 cnt = (uint8_t *)&icb->response_q_inpointer - (uint8_t *)&icb->version;
9168 icb->login_retry_count = nv->login_retry_count;
9171 dptr1 = (uint8_t *)&icb->interrupt_delay_timer;
9173 cnt = (uint8_t *)&icb->reserved_5 -
9174 (uint8_t *)&icb->interrupt_delay_timer;
9178 memcpy(icb->enode_mac, nv->enode_mac, sizeof(icb->enode_mac));
9180 if (!memcmp(icb->enode_mac, "\0\0\0\0\0\0", sizeof(icb->enode_mac))) {
9181 icb->enode_mac[0] = 0x00;
9182 icb->enode_mac[1] = 0xC0;
9183 icb->enode_mac[2] = 0xDD;
9184 icb->enode_mac[3] = 0x04;
9185 icb->enode_mac[4] = 0x05;
9186 icb->enode_mac[5] = 0x06 + ha->port_no + 1;
9191 ha->frame_payload_size = le16_to_cpu(icb->frame_payload_size);
9198 qlt_81xx_config_nvram_stage2(vha, icb);
9202 memcpy(icb->node_name, nv->alternate_node_name, WWN_SIZE);
9203 memcpy(icb->port_name, nv->alternate_port_name, WWN_SIZE);
9207 if ((icb->firmware_options_1 & cpu_to_le32(BIT_14)) == 0) {
9212 memcpy(icb->node_name, icb->port_name, WWN_SIZE);
9213 icb->node_name[0] &= 0xF0;
9231 ha->operating_mode = (le32_to_cpu(icb->firmware_options_2) &
9235 ha->serial0 = icb->port_name[5];
9236 ha->serial1 = icb->port_name[6];
9237 ha->serial2 = icb->port_name[7];
9238 memcpy(vha->node_name, icb->node_name, WWN_SIZE);
9239 memcpy(vha->port_name, icb->port_name, WWN_SIZE);
9241 icb->execution_throttle = cpu_to_le16(0xFFFF);
9295 icb->firmware_options_2 |= cpu_to_le32(BIT_22);
9299 ha->zio_mode = le32_to_cpu(icb->firmware_options_2) &
9301 ha->zio_timer = le16_to_cpu(icb->interrupt_delay_timer) ?
9302 le16_to_cpu(icb->interrupt_delay_timer) : 2;
9304 icb->firmware_options_2 &= cpu_to_le32(
9315 icb->firmware_options_2 |= cpu_to_le32(
9317 icb->interrupt_delay_timer = cpu_to_le16(ha->zio_timer);
9322 icb->firmware_options_3 |= cpu_to_le32(BIT_0);
9325 icb->firmware_options_3 |= cpu_to_le32(BIT_8);