Home
last modified time | relevance | path

Searched refs:ofst (Results 1 – 8 of 8) sorted by relevance

/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/qlc/
H A Dql_api.h318 #define RD8_MBAR_REG(ha, ofst) \ argument
320 (uint8_t *)(ha->mbar + (ofst)))
321 #define RD16_MBAR_REG(ha, ofst) \ argument
323 (uint16_t *)(ha->mbar + (ofst)))
324 #define RD32_MBAR_REG(ha, ofst) \ argument
326 (uint32_t *)(ha->mbar + (ofst)))
327 #define RD64_MBAR_REG(ha, ofst) \ argument
329 (uint64_t *)(ha->mbar + (ofst)))
333 (uint8_t *)(ha->mbar + (ofst)), \
337 (uint16_t *)(ha->mbar + (ofst)), \
[all …]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_ioctl.c1554 uint32_t xfer, bsize, saddr, ofst; in ql_r_m_w_flash() local
1562 ofst = faddr & (bsize - 1); in ql_r_m_w_flash()
1571 if (ofst + xfer > bsize) { in ql_r_m_w_flash()
1572 xfer = bsize - ofst; in ql_r_m_w_flash()
1576 bc, ofst, xfer); in ql_r_m_w_flash()
1578 if (ofst || xfer < bsize) { in ql_r_m_w_flash()
1588 if ((rval = ddi_copyin(dp, (caddr_t)(bp + ofst), xfer, in ql_r_m_w_flash()
1591 "xfer=%xh\n", rval, (void *)dp, ofst, xfer); in ql_r_m_w_flash()
1605 ofst = 0; in ql_r_m_w_flash()
H A Dql_init.c378 int ofst; in ql_set_max_read_req() local
384 if ((ofst = ql_get_cap_ofst(ha, PCI_CAP_ID_PCIX))) { in ql_set_max_read_req()
385 ofst += PCI_PCIX_COMMAND; in ql_set_max_read_req()
386 QL_PRINT_10(ha, "PCI-X Command Reg = %xh\n", ofst); in ql_set_max_read_req()
396 w16 = (uint16_t)ql_pci_config_get16(ha, ofst); in ql_set_max_read_req()
399 ql_pci_config_put16(ha, ofst, w16); in ql_set_max_read_req()
405 } else if ((ofst = ql_get_cap_ofst(ha, PCI_CAP_ID_PCI_E))) { in ql_set_max_read_req()
406 ofst += PCI_PCIE_DEVICE_CONTROL; in ql_set_max_read_req()
407 QL_PRINT_10(ha, "PCI-E Device Control Reg = %xh\n", ofst); in ql_set_max_read_req()
416 w16 = (uint16_t)ql_pci_config_get16(ha, ofst); in ql_set_max_read_req()
[all …]
H A Dql_mbx.c3539 uint64_t ofst, addr; in ql_init_firmware() local
3545 ofst = (uintptr_t)&icb->ext_blk - (uintptr_t)icb; in ql_init_firmware()
3546 addr = mem_desc.cookie.dmac_laddress + ofst; in ql_init_firmware()
5117 uint32_t ofst, uint16_t opt) in ql_get_md_template() argument
5135 if (ofst != 0) { in ql_get_md_template()
5136 mcp->mb[10] = LSW(ofst); in ql_get_md_template()
5137 mcp->mb[11] = MSW(ofst); in ql_get_md_template()
H A Dql_api.c19235 caddr_t *addrp, uint32_t ofst, uint32_t len) in ql_map_mem_bar() argument
19246 w32 = ql_pci_config_get32(ha, ofst); in ql_map_mem_bar()
19248 EL(ha, "no Mem BAR %xh\n", ofst); in ql_map_mem_bar()
19265 if ((reg2->pci_phys_hi & PCI_REG_REG_M) == ofst) { in ql_map_mem_bar()
19292 w32 = (reg2->pci_phys_hi & ~PCI_REG_REG_M) | ofst; in ql_map_mem_bar()
/illumos-gate/usr/src/uts/common/io/sfxge/common/
H A Defx_mcdi.c1081 unsigned int ofst; in efx_mcdi_read_assertion() local
1145 ofst = MC_CMD_GET_ASSERTS_OUT_GP_REGS_OFFS_OFST; in efx_mcdi_read_assertion()
1150 EFX_DWORD_FIELD(*MCDI_OUT(req, efx_dword_t, ofst), in efx_mcdi_read_assertion()
1152 ofst += sizeof (efx_dword_t); in efx_mcdi_read_assertion()
1154 EFSYS_ASSERT(ofst <= MC_CMD_GET_ASSERTS_OUT_LEN); in efx_mcdi_read_assertion()
/illumos-gate/usr/src/lib/libsqlite/tool/
H A Dlemon.c3378 int ofst; local
3380 ofst = stp->iTknOfst;
3381 if( ofst==NO_OFFSET ) ofst = mnTknOfst - 1;
3383 fprintf(out, " %4d,", ofst);
3399 int ofst; local
3401 ofst = stp->iNtOfst;
3402 if( ofst==NO_OFFSET ) ofst = mnNtOfst - 1;
3404 fprintf(out, " %4d,", ofst);
/illumos-gate/usr/src/uts/common/io/cxgbe/common/
H A Dt4_hw.c6307 int i, ofst = idx * 4; in t4_set_trace_filter() local
6311 t4_write_reg(adap, A_MPS_TRC_FILTER_MATCH_CTL_A + ofst, 0); in t4_set_trace_filter()
6349 t4_write_reg(adap, A_MPS_TRC_FILTER_MATCH_CTL_A + ofst, 0); in t4_set_trace_filter()
6359 t4_write_reg(adap, A_MPS_TRC_FILTER_MATCH_CTL_B + ofst, in t4_set_trace_filter()
6362 t4_write_reg(adap, A_MPS_TRC_FILTER_MATCH_CTL_A + ofst, in t4_set_trace_filter()
6385 int i, ofst = idx * 4; in t4_get_trace_filter() local
6388 ctla = t4_read_reg(adap, A_MPS_TRC_FILTER_MATCH_CTL_A + ofst); in t4_get_trace_filter()
6389 ctlb = t4_read_reg(adap, A_MPS_TRC_FILTER_MATCH_CTL_B + ofst); in t4_get_trace_filter()
6405 ofst = (A_MPS_TRC_FILTER1_MATCH - A_MPS_TRC_FILTER0_MATCH) * idx; in t4_get_trace_filter()
6406 data_reg = A_MPS_TRC_FILTER0_MATCH + ofst; in t4_get_trace_filter()
[all …]