icb
uint8_t *icb, uint8_t *hashstate);
uint8_t icb[AESCTR_BLOCKSIZE];
bzero(icb, AESCTR_BLOCKSIZE);
memcpy(icb, ses->ses_nonce, AESCTR_NONCESIZE);
memcpy(icb + AESCTR_NONCESIZE, iv, AESCTR_IVSIZE);
aesni_ctr_enc(ses, buf, buf, crd->crd_len, icb);
icb[AESCTR_BLOCKSIZE - 1] = 1;
aesni_ctr_enc(ses, buf, buf, rlen, icb);
aesni_ctr_enc(ses, buf, buf, rlen, icb);
icb[AESCTR_BLOCKSIZE - 1] = 1;
aesni_gmac_final(ses, tag, icb, ses->ses_ghash->S);
uint8_t *src, size_t len, uint8_t *icb);
memset(icb, 0, sizeof(icb));
memcpy(icb, ses->ses_nonce, AESCTR_NONCESIZE);
memcpy((uint8_t *)icb + AESCTR_NONCESIZE, iv,
octcrypto_aes_ctr_enc(encbuf, crde->crd_len, icb);
explicit_bzero(icb, sizeof(icb));
uint64_t icb[ndwords(AESCTR_BLOCKSIZE)];
memset(icb, 0, sizeof(icb));
memcpy(icb, ses->ses_nonce, AESCTR_NONCESIZE);
memcpy((uint8_t *)icb + AESCTR_NONCESIZE, iv, AESCTR_IVSIZE);
((uint8_t *)icb)[AESCTR_BLOCKSIZE - 1] = 1;
octcrypto_aes_ctr_enc(buf, rlen, icb);
octcrypto_aes_ctr_enc(buf, rlen, icb);
block[0] = icb[0];
block[1] = icb[1];
explicit_bzero(icb, sizeof(icb));
uint64_t icb[ndwords(AESCTR_BLOCKSIZE)];
struct qla_init_cb *icb;
icb = (struct qla_init_cb *)QLA_DMA_KVA(sc->sc_scratch);
memset(icb, 0, sizeof(*icb));
icb->icb_version = QLA_ICB_VERSION;
htobem32(&icb->icb_portname_hi, sc->sc_port_name >> 32);
htobem32(&icb->icb_portname_lo, sc->sc_port_name);
htobem32(&icb->icb_nodename_hi, sc->sc_node_name >> 32);
htobem32(&icb->icb_nodename_lo, sc->sc_node_name);
icb->icb_fw_options = sc->sc_nvram.fw_options;
icb->icb_max_frame_len = sc->sc_nvram.frame_payload_size;
icb->icb_max_alloc = sc->sc_nvram.max_iocb_allocation;
icb->icb_exec_throttle = sc->sc_nvram.execution_throttle;
icb->icb_retry_count = sc->sc_nvram.retry_count;
icb->icb_retry_delay = sc->sc_nvram.retry_delay;
icb->icb_hardaddr = sc->sc_nvram.hard_address;
icb->icb_inquiry_data = sc->sc_nvram.inquiry_data;
icb->icb_login_timeout = sc->sc_nvram.login_timeout;
icb->icb_xfwoptions = sc->sc_nvram.add_fw_options;
icb->icb_zfwoptions = sc->sc_nvram.special_options;
icb->icb_retry_count = 3;
icb->icb_retry_delay = 5;
icb->icb_exec_throttle = htole16(16);
icb->icb_max_alloc = htole16(256);
icb->icb_max_frame_len = htole16(1024);
icb->icb_fw_options = htole16(QLA_ICB_FW_FAIRNESS |
icb->icb_lun_enables = 0;
icb->icb_cmd_count = 0;
icb->icb_notify_count = 0;
icb->icb_lun_timeout = 0;
icb->icb_int_delaytimer = 0;
icb->icb_req_out = 0;
icb->icb_resp_in = 0;
htolem16(&icb->icb_req_queue_len, sc->sc_maxcmds);
htolem16(&icb->icb_resp_queue_len, sc->sc_maxcmds);
htolem32(&icb->icb_req_queue_addr_lo, dva);
htolem32(&icb->icb_req_queue_addr_hi, dva >> 32);
htolem32(&icb->icb_resp_queue_addr_lo, dva);
htolem32(&icb->icb_resp_queue_addr_hi, dva >> 32);
icb->icb_fw_options |= htole16(QLA_ICB_FW_EXTENDED_INIT_CB);
icb->icb_fw_options &= ~htole16(QLA_ICB_FW_FAST_POST);
sizeof(*icb), BUS_DMASYNC_PREWRITE);
sizeof(*icb), BUS_DMASYNC_POSTWRITE);
struct qle_init_cb *icb;
icb = (struct qle_init_cb *)QLE_DMA_KVA(sc->sc_scratch);
memset(icb, 0, sizeof(*icb));
icb->icb_version = QLE_ICB_VERSION;
icb->icb_max_frame_len = sc->sc_nvram.frame_payload_size;
icb->icb_exec_throttle = sc->sc_nvram.execution_throttle;
icb->icb_hardaddr = sc->sc_nvram.hard_address;
icb->icb_portname = sc->sc_nvram.port_name;
icb->icb_nodename = sc->sc_nvram.node_name;
icb->icb_login_retry = sc->sc_nvram.login_retry;
icb->icb_login_timeout = sc->sc_nvram.login_timeout;
icb->icb_fwoptions1 = sc->sc_nvram.fwoptions1;
icb->icb_fwoptions2 = sc->sc_nvram.fwoptions2;
icb->icb_fwoptions3 = sc->sc_nvram.fwoptions3;
htolem16(&icb->icb_max_frame_len, 1024);
htolem16(&icb->icb_exec_throttle, 16);
icb->icb_portname = htobe64(QLE_DEFAULT_PORT_NAME);
icb->icb_nodename = 0;
icb->icb_login_retry = 3;
htolem32(&icb->icb_fwoptions1, QLE_ICB_FW1_FAIRNESS |
htolem32(&icb->icb_fwoptions2, QLE_ICB_FW2_LOOP_PTP);
htolem32(&icb->icb_fwoptions3, QLE_ICB_FW3_FCP_RSP_24_0 |
icb->icb_exchange_count = 0;
icb->icb_req_out = 0;
icb->icb_resp_in = 0;
icb->icb_pri_req_out = 0;
htolem16(&icb->icb_req_queue_len, sc->sc_maxcmds);
htolem16(&icb->icb_resp_queue_len, sc->sc_maxcmds);
htolem16(&icb->icb_pri_req_queue_len, 8); /* apparently the minimum */
htolem32(&icb->icb_req_queue_addr_lo,
htolem32(&icb->icb_req_queue_addr_hi,
htolem32(&icb->icb_resp_queue_addr_lo,
htolem32(&icb->icb_resp_queue_addr_hi,
htolem32(&icb->icb_pri_req_queue_addr_lo,
htolem32(&icb->icb_pri_req_queue_addr_hi,
htolem16(&icb->icb_link_down_nos, 200);
icb->icb_int_delay = 0;
icb->icb_login_timeout = 0;
sizeof(*icb), BUS_DMASYNC_PREWRITE);
sizeof(*icb), BUS_DMASYNC_POSTWRITE);
struct long_ad icb;
#define GETICBLEN(ad_type, icb) letoh32(((struct ad_type *)(icb))->len)
udf_getid(struct long_ad *icb)
return (letoh32(icb->loc.lb_num));
id = udf_getid(&fid->icb);
id = udf_getid(&fid->icb);
void *icb;
icb = GETICB(short_ad, xfentry, l_ea + ad_offset);
icb = GETICB(short_ad, fentry, l_ea + ad_offset);
icblen = GETICBLEN(short_ad, icb);
letoh32(((struct short_ad *)(icb))->lb_num);
*max_size = GETICBLEN(short_ad, icb);
icb = GETICB(long_ad, xfentry, l_ea + ad_offset);
icb = GETICB(long_ad, fentry, l_ea + ad_offset);
icblen = GETICBLEN(long_ad, icb);
letoh32(((struct long_ad *)(icb))->loc.lb_num);
*max_size = GETICBLEN(long_ad, icb);
dir.d_fileno = udf_getid(&fid->icb);
dir.d_fileno = udf_getid(&fid->icb);