/illumos-gate/usr/src/uts/common/io/bnx/570x/driver/common/lmdev/ |
H A D | bnx_hw_cpu.c | 162 fw_info_t *fw) in load_cpu_fw() argument 173 if(fw->text) in load_cpu_fw() 177 cpu_reg->spad_base + (fw->text_addr - cpu_reg->mips_view_base), in load_cpu_fw() 178 fw->text, in load_cpu_fw() 179 fw->text_len/4); in load_cpu_fw() 183 if(fw->data) in load_cpu_fw() 187 cpu_reg->spad_base + (fw->data_addr - cpu_reg->mips_view_base), in load_cpu_fw() 188 fw->data, in load_cpu_fw() 189 fw->data_len/4); in load_cpu_fw() 193 if(fw->sbss) in load_cpu_fw() [all …]
|
/illumos-gate/usr/src/test/util-tests/tests/smbios/ |
H A D | smbios_test_fwinfo.c | 33 smbios_test_fwinfo_mktable_common_fwinfo(smb_fwinfo_t *fw) in smbios_test_fwinfo_mktable_common_fwinfo() argument 35 fw->smbfwii_hdr.smbh_type = SMB_TYPE_FWINFO; in smbios_test_fwinfo_mktable_common_fwinfo() 36 fw->smbfwii_hdr.smbh_len = sizeof (*fw); in smbios_test_fwinfo_mktable_common_fwinfo() 37 fw->smbfwii_name = 1; in smbios_test_fwinfo_mktable_common_fwinfo() 38 fw->smbfwii_vers = 2; in smbios_test_fwinfo_mktable_common_fwinfo() 39 fw->smbfwii_vers_fmt = smbios_fwinfo_versid; in smbios_test_fwinfo_mktable_common_fwinfo() 40 fw->smbfwii_id = 3; in smbios_test_fwinfo_mktable_common_fwinfo() 41 fw->smbfwii_id_fmt = smbios_fwinfo_versid; in smbios_test_fwinfo_mktable_common_fwinfo() 42 fw->smbfwii_reldate = 4; in smbios_test_fwinfo_mktable_common_fwinfo() 43 fw->smbfwii_mfg = 5; in smbios_test_fwinfo_mktable_common_fwinfo() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/qlc/ |
H A D | qlc.c | 1872 uint8_t *fw, *bp; in ql_8021_dump_dcmd() local 1875 bp = fw = (uint8_t *)mdb_alloc(ha->ql_dump_size, UM_SLEEP); in ql_8021_dump_dcmd() 1877 if (mdb_vread(fw, ha->ql_dump_size, in ql_8021_dump_dcmd() 1880 mdb_free(fw, ha->ql_dump_size); in ql_8021_dump_dcmd() 1894 mdb_free(fw, ha->ql_dump_size); in ql_8021_dump_dcmd() 1921 ql_83xx_fw_dump_t *fw; in ql_8300_dump_dcmd() local 1925 fw = mdb_alloc(ha->ql_dump_size, UM_SLEEP); in ql_8300_dump_dcmd() 1930 if (mdb_vread(fw, ha->ql_dump_size, in ql_8300_dump_dcmd() 1938 mdb_free(fw, ha->ql_dump_size); in ql_8300_dump_dcmd() 1946 mdb_printf("\nHCCR Register\n%08x\n", fw->hccr); in ql_8300_dump_dcmd() [all …]
|
/illumos-gate/usr/src/lib/libm/common/C/ |
H A D | __rem_pio2m.c | 171 double z, fw, f[20], fq[20], q[20]; in __rem_pio2m() local 197 for (j = 0, fw = zero; j <= jx; j++) in __rem_pio2m() 198 fw += x[j] * f[jx+i-j]; in __rem_pio2m() 199 q[i] = fw; in __rem_pio2m() 206 fw = (double)((int)(twon24 * z)); in __rem_pio2m() 207 iq[i] = (int)(z - two24 * fw); in __rem_pio2m() 208 z = q[j-1] + fw; in __rem_pio2m() 272 for (j = 0, fw = zero; j <= jx; j++) in __rem_pio2m() 273 fw += x[j] * f[jx+i-j]; in __rem_pio2m() 274 q[i] = fw; in __rem_pio2m() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/ |
H A D | sfmove.c | 34 Sfoff_t sfmove(Sfio_t* fr, Sfio_t* fw, Sfoff_t n, reg int rc) in sfmove() argument 36 Sfoff_t sfmove(fr,fw,n,rc) in sfmove() 38 Sfio_t* fw; /* moving data to this stream */ 51 SFMTXDECL2(fw); /* declare a shadow stream variable for to stream */ 54 if(fw) 55 SFMTXBEGIN2(fw, (Sfoff_t)0); 64 if(fw && (w = SFWRITE(fw, cp, r)) != r) 67 if(fw->extent >= 0 && w > 0) 68 (void)SFSEEK(fw,(Sfoff_t)(-w),SEEK_CUR); 87 if(fw) [all …]
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_fw.c | 85 emlxs_fw_get(emlxs_firmware_t *fw) in emlxs_fw_get() argument 94 if ((fw_table->id == fw->id) && in emlxs_fw_get() 95 (fw_table->kern == fw->kern) && in emlxs_fw_get() 96 (fw_table->stub == fw->stub) && in emlxs_fw_get() 97 (fw_table->sli1 == fw->sli1) && in emlxs_fw_get() 98 (fw_table->sli2 == fw->sli2) && in emlxs_fw_get() 99 (fw_table->sli3 == fw->sli3) && in emlxs_fw_get() 100 (fw_table->sli4 == fw->sli4)) { in emlxs_fw_get() 102 fw->image = fw_table->image; in emlxs_fw_get() 103 fw->size = fw_table->size; in emlxs_fw_get() [all …]
|
/illumos-gate/usr/src/lib/libnvme/common/ |
H A D | libnvme_fw.c | 38 nvme_ioctl_fw_load_t fw; in nvme_fw_load() local 64 (void) memset(&fw, 0, sizeof (fw)); in nvme_fw_load() 65 fw.fwl_buf = (uintptr_t)buf; in nvme_fw_load() 66 fw.fwl_len = len; in nvme_fw_load() 67 fw.fwl_off = off; in nvme_fw_load() 69 if (ioctl(ctrl->nc_fd, NVME_IOC_FIRMWARE_DOWNLOAD, &fw) != 0) { in nvme_fw_load() 74 if (fw.fwl_common.nioc_drv_err != NVME_IOCTL_E_OK) { in nvme_fw_load() 75 return (nvme_ioctl_error(ctrl, &fw.fwl_common, in nvme_fw_load() 175 nvme_ioctl_fw_commit_t fw; in nvme_fw_commit_req_exec() local 184 (void) memset(&fw, 0, sizeof (fw)); in nvme_fw_commit_req_exec() [all …]
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_api.c | 12457 ql_fw_dump_t *fw = ha->ql_dump_ptr; in ql_ascii_fw_dump() local 12490 for (cnt = 0; cnt < sizeof (fw->pbiu_reg) / 2; cnt++) { in ql_ascii_fw_dump() 12494 (void) sprintf(bp, "%04x ", fw->pbiu_reg[cnt]); in ql_ascii_fw_dump() 12502 for (cnt = 0; cnt < sizeof (fw->risc_host_reg) / 2; cnt++) { in ql_ascii_fw_dump() 12506 (void) sprintf(bp, "%04x ", fw->risc_host_reg[cnt]); in ql_ascii_fw_dump() 12518 (void) sprintf(bp, "%04x ", fw->mailbox_reg[cnt]); in ql_ascii_fw_dump() 12525 for (cnt = 0; cnt < sizeof (fw->resp_dma_reg) / 2; cnt++) { in ql_ascii_fw_dump() 12529 (void) sprintf(bp, "%04x ", fw->resp_dma_reg[cnt]); in ql_ascii_fw_dump() 12536 for (cnt = 0; cnt < sizeof (fw->dma_reg) / 2; cnt++) { in ql_ascii_fw_dump() 12540 (void) sprintf(bp, "%04x ", fw->dma_reg[cnt]); in ql_ascii_fw_dump() [all …]
|
/illumos-gate/usr/src/uts/common/io/nvme/ |
H A D | nvme_validate.c | 868 nvme_validate_fw_load(nvme_t *nvme, nvme_ioctl_fw_load_t *fw) in nvme_validate_fw_load() argument 876 return (nvme_ioctl_error(&fw->fwl_common, in nvme_validate_fw_load() 880 if (!nvme_validate_one_field(&fw->fwl_common, fw->fwl_len, in nvme_validate_fw_load() 885 if (!nvme_validate_one_field(&fw->fwl_common, fw->fwl_off, in nvme_validate_fw_load() 904 nvme_validate_fw_commit(nvme_t *nvme, nvme_ioctl_fw_commit_t *fw) in nvme_validate_fw_commit() argument 912 return (nvme_ioctl_error(&fw->fwc_common, in nvme_validate_fw_commit() 916 if (!nvme_validate_one_field(&fw->fwc_common, fw->fwc_slot, in nvme_validate_fw_commit() 921 if (!nvme_validate_one_field(&fw->fwc_common, fw->fwc_action, in nvme_validate_fw_commit() 931 if (fw->fwc_slot == 1 && nvme->n_idctl->id_frmw.fw_readonly && in nvme_validate_fw_commit() 932 (fw->fwc_action == NVME_FWC_SAVE || in nvme_validate_fw_commit() [all …]
|
/illumos-gate/usr/src/uts/common/sys/scsi/adapters/pmcs/ |
H A D | pmcs_mpi.h | 46 #define PMCS_FW_TYPE(hwp) (hwp->fw & 0xf) 51 #define PMCS_FW_VARIANT(hwp) ((hwp->fw >> 4) & 0xf) 52 #define PMCS_FW_MAJOR(hwp) ((hwp->fw >> 24) & 0xff) 53 #define PMCS_FW_MINOR(hwp) ((hwp->fw >> 16) & 0xff) 54 #define PMCS_FW_MICRO(hwp) ((hwp->fw >> 8) & 0xff) 55 #define PMCS_FW_REV(hwp) ((hwp->fw >> 8) & 0xffffff)
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/ |
H A D | sfio | 27 FILE* fw; 46 if (!(fw = fopen(file, "w"))) 50 fclose(fw); 57 fclose(fw); 61 if (fwrite(data, sizeof(data), 1, fw) != 1) 63 fclose(fw);
|
/illumos-gate/usr/src/cmd/mdb/common/modules/sctp/ |
H A D | sctp.c | 1054 find_next_hash_item(fanout_walk_data_t *fw) in find_next_hash_item() argument 1060 if (fw->sctp != 0) { in find_next_hash_item() 1062 if (mdb_vread(&sctp, sizeof (sctp), fw->sctp) == -1) { in find_next_hash_item() 1063 mdb_warn("failed to read sctp at %p", fw->sctp); in find_next_hash_item() 1066 fw->sctp = fw->getnext(&sctp); in find_next_hash_item() 1067 if (fw->sctp != 0) in find_next_hash_item() 1068 return (fw->sctp); in find_next_hash_item() 1071 fw->index++; in find_next_hash_item() 1075 for (; fw->index < fw->size; fw->index++) { in find_next_hash_item() 1078 (uintptr_t)(fw->fanout + fw->index)) == -1) { in find_next_hash_item() [all …]
|
/illumos-gate/usr/src/data/ucode/ |
H A D | update.amd | 106 cp $f $tmp/amd-fw 107 $UCODEADM -l $tmp/amd-fw 108 $UCODEADM -i -R $tmp/out/$bf $tmp/amd-fw 109 rm -f $tmp/amd-fw
|
H A D | update.intel | 72 cp $f $tmp/intel-fw 73 $UCODEADM -i -R $tmp/out $tmp/intel-fw 74 rm -f $tmp/intel-fw
|
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/ |
H A D | ecore_init_ops.c | 608 struct ecore_fw_data *fw = p_dev->fw_data; local 622 fw->fw_ver_info = (struct fw_ver_info *)(data + offset); 625 fw->init_ops = (union init_op *)(data + offset); 628 fw->arr_data = (u32 *)(data + offset); 631 fw->modes_tree_buf = (u8 *)(data + offset); 633 fw->init_ops_size = len / sizeof(struct init_raw_op); 635 fw->init_ops = (union init_op *)init_ops; 636 fw->arr_data = (u32 *)init_val; 637 fw->modes_tree_buf = (u8 *)modes_tree_buf; 638 fw->init_ops_size = init_ops_size;
|
/illumos-gate/usr/src/uts/common/io/nxge/ |
H A D | nxge_fflp_hash.c | 332 uint32_t w, fw, i, crch1 = crcin; in nxge_compute_h1_table4() local 339 fw = buf[i]; in nxge_compute_h1_table4() 341 fw = flip32(buf[i]); in nxge_compute_h1_table4() 342 fw = buf[i]; in nxge_compute_h1_table4() 344 w = crch1 ^ fw; in nxge_compute_h1_table4()
|
/illumos-gate/usr/src/uts/common/io/iwn/ |
H A D | if_iwn.c | 6685 struct iwn_fw_info *fw = &sc->fw; in iwn4965_load_firmware() local 6693 memcpy(dma->vaddr, fw->init.data, fw->init.datasz); in iwn4965_load_firmware() 6695 fw->init.text, fw->init.textsz); in iwn4965_load_firmware() 6702 iwn_prph_write(sc, IWN_BSM_DRAM_DATA_SIZE, fw->init.datasz); in iwn4965_load_firmware() 6705 iwn_prph_write(sc, IWN_BSM_DRAM_TEXT_SIZE, fw->init.textsz); in iwn4965_load_firmware() 6709 error = iwn4965_load_bootcode(sc, fw->boot.text, fw->boot.textsz); in iwn4965_load_firmware() 6734 memcpy(dma->vaddr, fw->main.data, fw->main.datasz); in iwn4965_load_firmware() 6736 fw->main.text, fw->main.textsz); in iwn4965_load_firmware() 6743 iwn_prph_write(sc, IWN_BSM_DRAM_DATA_SIZE, fw->main.datasz); in iwn4965_load_firmware() 6747 IWN_FW_UPDATED | fw->main.textsz); in iwn4965_load_firmware() [all …]
|
/illumos-gate/usr/src/pkg/manifests/ |
H A D | driver-network-iwh.p5m | 58 license usr/src/uts/common/io/iwh/fw-iw/fw_5000/LICENSE \ 59 license=usr/src/uts/common/io/iwh/fw-iw/fw_5000/LICENSE 60 license usr/src/uts/common/io/iwh/fw-iw/fw_5150/LICENSE \ 61 license=usr/src/uts/common/io/iwh/fw-iw/fw_5150/LICENSE
|
/illumos-gate/usr/src/uts/common/inet/ipf/ |
H A D | ip_fil_solaris.c | 2413 hook_pkt_event_t *fw; in ipf_hook() local 2422 fw = (hook_pkt_event_t *)info; in ipf_hook() 2424 ASSERT(fw != NULL); in ipf_hook() 2425 phy = (out == 0) ? fw->hpe_ifp : fw->hpe_ofp; in ipf_hook() 2427 ip = fw->hpe_hdr; in ipf_hook() 2434 qpi.qpi_m = fw->hpe_mb; in ipf_hook() 2435 qpi.qpi_data = fw->hpe_hdr; in ipf_hook() 2436 qpi.qpi_off = (char *)qpi.qpi_data - (char *)fw->hpe_mb->b_rptr; in ipf_hook() 2438 qpi.qpi_flags = fw->hpe_flags & (HPE_MULTICAST|HPE_BROADCAST); in ipf_hook() 2443 rval = fr_check(fw->hpe_hdr, hlen, qpi.qpi_ill, out, in ipf_hook() [all …]
|
/illumos-gate/usr/src/common/ficl/ |
H A D | vm.c | 243 ficlVmInnerLoop(ficlVm *vm, ficlWord *fw) in ficlVmInnerLoop() argument 268 once = (fw != NULL); in ficlVmInnerLoop() 289 instruction = (ficlInstruction)((void *)fw); in ficlVmInnerLoop() 292 fw = (ficlWord *)instruction; in ficlVmInnerLoop() 1331 cell = fw->param; in ficlVmInnerLoop() 1990 ip = (ficlInstruction *)(fw->param); in ficlVmInnerLoop() 1995 (++dataTop)->p = (fw->param + 1); in ficlVmInnerLoop() 2000 (++dataTop)->p = fw->param; in ficlVmInnerLoop() 2012 FLOAT_PUSH_CELL_POINTER_DOUBLE(fw->param); in ficlVmInnerLoop() 2016 FLOAT_PUSH_CELL_POINTER(fw->param); in ficlVmInnerLoop() [all …]
|
/illumos-gate/usr/src/cmd/cxgbetool/ |
H A D | cxgbetool.c | 496 struct t4_ldfw *fw; in load_fw() local 514 fw = malloc(sizeof (struct t4_ldfw) + len); in load_fw() 515 if (!fw) { in load_fw() 522 if (read(fd, fw->data, len) < len) { in load_fw() 525 free(fw); in load_fw() 531 fw->len = len; in load_fw() 533 if (doit(iff_name, T4_IOCTL_LOAD_FW, fw)) { in load_fw() 534 free(fw); in load_fw() 541 free(fw); in load_fw()
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | t4_ioctl.c | 2228 struct t4_ldfw fw; in flash_fw() local 2232 if (ddi_copyin(data, &fw, sizeof(struct t4_ldfw), flags) < 0) in flash_fw() 2235 if (!fw.len) in flash_fw() 2238 ptr = (u8 *)kmem_zalloc(fw.len, KM_NOSLEEP); in flash_fw() 2242 if (ddi_copyin((void *)((uintptr_t)data + sizeof(fw)), ptr, fw.len, in flash_fw() 2244 kmem_free(ptr, fw.len); in flash_fw() 2251 rc = -t4_fw_upgrade(sc, mbox, ptr, fw.len, true); in flash_fw() 2254 kmem_free(ptr, fw.len); in flash_fw()
|
/illumos-gate/usr/src/common/smbios/ |
H A D | smb_info.c | 2075 smb_fwinfo_t fw; in smbios_info_fwinfo() local 2085 if (stp->smbst_hdr->smbh_len < sizeof (fw)) { in smbios_info_fwinfo() 2093 smb_info_bcopy(stp->smbst_hdr, &fw, sizeof (fw)); in smbios_info_fwinfo() 2094 fwinfo->smbfw_name = smb_strptr(stp, fw.smbfwii_name); in smbios_info_fwinfo() 2095 fwinfo->smbfw_id = smb_strptr(stp, fw.smbfwii_id); in smbios_info_fwinfo() 2096 fwinfo->smbfw_reldate = smb_strptr(stp, fw.smbfwii_reldate); in smbios_info_fwinfo() 2097 fwinfo->smbfw_lsv = smb_strptr(stp, fw.smbfwii_lsv); in smbios_info_fwinfo() 2098 fwinfo->smbfw_imgsz = fw.smbfwii_imgsz; in smbios_info_fwinfo() 2099 fwinfo->smbfw_chars = fw.smbfwii_chars; in smbios_info_fwinfo() 2100 fwinfo->smbfw_state = fw.smbfwii_state; in smbios_info_fwinfo() [all …]
|
/illumos-gate/exception_lists/ |
H A D | hdrchk | 269 usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/fw/5710_hsi.h 270 usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/fw/57710_int_offsets.h 271 usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/fw/57711_int_offsets.h 272 usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/fw/57712_int_offsets.h 273 usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/fw/577xx_int_offsets.h 274 usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/fw/57xx_fcoe_constants.h 275 usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/fw/57xx_fcoe_rfc_constants.h 276 usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/fw/57xx_iscsi_constants.h 277 usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/fw/57xx_iscsi_rfc_constants.h 278 usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/fw/57xx_l5cm_constants.h [all …]
|
/illumos-gate/usr/src/cmd/fwflash/plugins/transport/common/ |
H A D | hermon.c | 500 handle->fw = (uint32_t *)calloc(1, image_size); in cnx_read_image() 501 if (handle->fw == NULL) { in cnx_read_image() 516 free(handle->fw); in cnx_read_image() 519 handle->fw[i / 4] = htonl(ioctl_info.af_quadlet); in cnx_read_image() 524 ntohl(handle->fw[i / 4])); in cnx_read_image() 555 len = ntohl(handle->fw[CNX_IMG_SIZE_OFFSET / 4]); in cnx_write_file() 558 if (fwrite(&handle->fw[0], len, 1, fp) == 0) { in cnx_write_file() 666 uint8_t *fw; in cnx_write_image() local 698 fw = (uint8_t *)verifier->fwimage; in cnx_write_image() 703 ioctl_info.af_byte = fw[i]; in cnx_write_image() [all …]
|