Home
last modified time | relevance | path

Searched refs:val64 (Results 1 – 25 of 27) sorted by relevance

12

/drivers/net/ethernet/neterion/
Ds2io.c121 #define LINK_IS_UP(val64) (!(val64 & (ADAPTER_STATUS_RMAC_REMOTE_FAULT | \ argument
1019 register u64 val64 = 0; in s2io_verify_pci_mode() local
1022 val64 = readq(&bar0->pci_mode); in s2io_verify_pci_mode()
1023 mode = (u8)GET_PCI_MODE(val64); in s2io_verify_pci_mode()
1025 if (val64 & PCI_MODE_UNKNOWN_MODE) in s2io_verify_pci_mode()
1053 register u64 val64 = 0; in s2io_print_pci_mode() local
1058 val64 = readq(&bar0->pci_mode); in s2io_print_pci_mode()
1059 mode = (u8)GET_PCI_MODE(val64); in s2io_print_pci_mode()
1061 if (val64 & PCI_MODE_UNKNOWN_MODE) in s2io_print_pci_mode()
1103 nic->dev->name, val64 & PCI_MODE_32_BITS ? 32 : 64, pcimode); in s2io_print_pci_mode()
[all …]
/drivers/net/ethernet/neterion/vxge/
Dvxge-config.c28 &val64); \
36 u64 val64; in vxge_hw_vpath_set_zero_rx_frm_len() local
38 val64 = readq(&vp_reg->rxmac_vcfg0); in vxge_hw_vpath_set_zero_rx_frm_len()
39 val64 &= ~VXGE_HW_RXMAC_VCFG0_RTS_MAX_FRM_LEN(0x3fff); in vxge_hw_vpath_set_zero_rx_frm_len()
40 writeq(val64, &vp_reg->rxmac_vcfg0); in vxge_hw_vpath_set_zero_rx_frm_len()
41 val64 = readq(&vp_reg->rxmac_vcfg0); in vxge_hw_vpath_set_zero_rx_frm_len()
51 u64 val64, rxd_count, rxd_spat; in vxge_hw_vpath_wait_receive_idle() local
64 val64 = readq(&vp_reg->prc_cfg6); in vxge_hw_vpath_wait_receive_idle()
65 rxd_spat = VXGE_HW_PRC_CFG6_GET_RXD_SPAT(val64) + 1; in vxge_hw_vpath_wait_receive_idle()
79 val64 = readq(&vp_reg->frm_in_progress_cnt); in vxge_hw_vpath_wait_receive_idle()
[all …]
Dvxge-traffic.c32 u64 val64; in vxge_hw_vpath_intr_enable() local
86 val64 = readq(&vp_reg->vpath_general_int_status); in vxge_hw_vpath_intr_enable()
159 u64 val64; in vxge_hw_vpath_intr_disable() local
181 val64 = VXGE_HW_TIM_CLR_INT_EN_VP(1 << (16 - vpath->vp_id)); in vxge_hw_vpath_intr_disable()
226 u64 val64; in vxge_hw_vpath_tti_ci_set() local
236 val64 = readq(&vp_reg->tim_cfg1_int_num[VXGE_HW_VPATH_INTR_TX]); in vxge_hw_vpath_tti_ci_set()
237 val64 |= VXGE_HW_TIM_CFG1_INT_NUM_TIMER_CI; in vxge_hw_vpath_tti_ci_set()
238 fifo->tim_tti_cfg1_saved = val64; in vxge_hw_vpath_tti_ci_set()
239 writeq(val64, &vp_reg->tim_cfg1_int_num[VXGE_HW_VPATH_INTR_TX]); in vxge_hw_vpath_tti_ci_set()
245 u64 val64 = ring->tim_rti_cfg1_saved; in vxge_hw_vpath_dynamic_rti_ci_set() local
[all …]
Dvxge-main.c2716 u64 val64, function_mode; in vxge_open() local
2819 val64 = 0; in vxge_open()
2821 val64 |= VXGE_HW_RXMAC_AUTHORIZE_ALL_ADDR_VP(i); in vxge_open()
2828 val64); in vxge_open()
2835 val64); in vxge_open()
2949 u64 val64, vpath_vector; in do_vxge_close() local
2973 &val64); in do_vxge_close()
2975 val64 &= ~vpath_vector; in do_vxge_close()
2982 val64); in do_vxge_close()
3165 u64 val64; in vxge_timestamp_config() local
[all …]
Dvxge-config.h875 &val64); \
/drivers/gpu/drm/ttm/
Dttm_memory.c120 uint64_t val64; in ttm_mem_zone_store() local
126 val64 = val; in ttm_mem_zone_store()
127 val64 <<= 10; in ttm_mem_zone_store()
130 if (val64 > zone->zone_mem) in ttm_mem_zone_store()
131 val64 = zone->zone_mem; in ttm_mem_zone_store()
133 zone->emer_mem = val64; in ttm_mem_zone_store()
134 if (zone->max_mem > val64) in ttm_mem_zone_store()
135 zone->max_mem = val64; in ttm_mem_zone_store()
137 zone->max_mem = val64; in ttm_mem_zone_store()
138 if (zone->emer_mem < val64) in ttm_mem_zone_store()
[all …]
/drivers/thermal/
Dintel_powerclamp.c339 u64 val64; in powerclamp_adjust_controls() local
349 val64 = 100*(msr_now-msr_last); in powerclamp_adjust_controls()
350 do_div(val64, (tsc_now-tsc_last)); in powerclamp_adjust_controls()
351 current_ratio = val64; in powerclamp_adjust_controls()
485 u64 val64; in poll_pkg_cstate() local
496 val64 = 100 * (msr_now - msr_last); in poll_pkg_cstate()
497 do_div(val64, (tsc_now - tsc_last)); in poll_pkg_cstate()
498 pkg_cstate_ratio_cur = val64; in poll_pkg_cstate()
/drivers/infiniband/hw/hfi1/
Dpio_copy.c149 val.val64 = 0; in pio_copy()
151 writeq(val.val64, dest); in pio_copy()
228 pbuf->carry.val64 = 0; in read_low_bytes()
265 temp = pbuf->carry.val64 | (new << mshift(pbuf->carry_bytes)); in merge_write8()
267 pbuf->carry.val64 = new >> zshift(pbuf->carry_bytes); in merge_write8()
275 writeq(carry.val64, dest); in carry8_write8()
287 writeq(pbuf->carry.val64, dest); in carry_write8()
Dpio.h74 u64 val64; member
Dpio.c1468 pbuf->carry.val64 = 0; in sc_buffer_alloc()
/drivers/iio/dac/
Dad5791.c256 u64 val64; in ad5791_read_raw() local
272 val64 = (((u64)st->vref_neg_mv) << chan->scan_type.realbits); in ad5791_read_raw()
273 do_div(val64, st->vref_mv); in ad5791_read_raw()
274 *val = -val64; in ad5791_read_raw()
/drivers/gpu/drm/amd/amdgpu/
Datom.c690 uint64_t val64; in atom_op_div32() local
698 val64 = dst; in atom_op_div32()
699 val64 |= ((uint64_t)ctx->ctx->divmul[1]) << 32; in atom_op_div32()
700 do_div(val64, src); in atom_op_div32()
701 ctx->ctx->divmul[0] = lower_32_bits(val64); in atom_op_div32()
702 ctx->ctx->divmul[1] = upper_32_bits(val64); in atom_op_div32()
814 uint64_t val64; in atom_op_mul32() local
821 val64 = (uint64_t)dst * (uint64_t)src; in atom_op_mul32()
822 ctx->ctx->divmul[0] = lower_32_bits(val64); in atom_op_mul32()
823 ctx->ctx->divmul[1] = upper_32_bits(val64); in atom_op_mul32()
/drivers/input/touchscreen/
Dtsc2007.c294 u64 val64; in tsc2007_probe_dt() local
315 if (!of_property_read_u64(np, "ti,poll-period", &val64)) in tsc2007_probe_dt()
316 ts->poll_period = msecs_to_jiffies(val64); in tsc2007_probe_dt()
/drivers/hv/
Dhv_kvp.c365 __u64 val64; in kvp_send_key() local
429 val64 = in_msg->body.kvp_set.data.value_u64; in kvp_send_key()
432 "%llu", val64) + 1; in kvp_send_key()
/drivers/hwmon/pmbus/
Dpmbus_core.c634 s64 b, val64 = val; in pmbus_data2reg_direct() local
652 val64 = val64 * m + b; in pmbus_data2reg_direct()
655 val64 *= 10; in pmbus_data2reg_direct()
659 val64 = div_s64(val64 + 5LL, 10L); /* round closest */ in pmbus_data2reg_direct()
663 return (u16)clamp_val(val64, S16_MIN, S16_MAX); in pmbus_data2reg_direct()
/drivers/net/ethernet/cavium/liquidio/
Docteon_device.h611 #define octeon_write_csr64(oct_dev, reg_off, val64) \ argument
612 writeq(val64, oct_dev->mmio[0].hw_addr + reg_off)
Docteon_device.c1197 u64 val64; in lio_pci_readq() local
1219 val64 = readq(oct->reg_list.pci_win_rd_data); in lio_pci_readq()
1223 return val64; in lio_pci_readq()
/drivers/misc/genwqe/
Dcard_dev.c1085 put_user(val, &io->val64); in genwqe_ioctl()
1104 if (get_user(val, &io->val64)) in genwqe_ioctl()
1121 put_user(val, &io->val64); in genwqe_ioctl()
1140 if (get_user(val, &io->val64)) in genwqe_ioctl()
Dcard_ddcb.c1027 u64 val64; in setup_ddcb_queue() local
1080 val64 = ((u64)(queue->ddcb_max - 1) << 8); /* lastptr */ in setup_ddcb_queue()
1084 __genwqe_writeq(cd, queue->IO_QUEUE_WRAP, val64); in setup_ddcb_queue()
/drivers/powercap/
Dintel_rapl.c1454 u64 val64; in rapl_detect_powerlimit() local
1458 if (!rapl_read_data_raw(rd, FW_LOCK, false, &val64)) { in rapl_detect_powerlimit()
1459 if (val64) { in rapl_detect_powerlimit()
1468 if (rapl_read_data_raw(rd, prim, false, &val64)) in rapl_detect_powerlimit()
/drivers/ntb/
Dntb_transport.c891 u64 val64; in ntb_transport_link_work() local
894 val64 = (u64)val << 32; in ntb_transport_link_work()
897 val64 |= val; in ntb_transport_link_work()
899 dev_dbg(&pdev->dev, "Remote MW%d size = %#llx\n", i, val64); in ntb_transport_link_work()
901 rc = ntb_set_mw(nt, i, val64); in ntb_transport_link_work()
/drivers/infiniband/hw/qib/
Dqib_iba6120.c2794 u64 val64; in qib_6120_set_ib_cfg() local
2807 val64 = SYM_FIELD(dd->cspec->ibcctrl, IBCCtrl, in qib_6120_set_ib_cfg()
2809 if (val64 != val) { in qib_6120_set_ib_cfg()
2820 val64 = SYM_FIELD(dd->cspec->ibcctrl, IBCCtrl, in qib_6120_set_ib_cfg()
2822 if (val64 != val) { in qib_6120_set_ib_cfg()
2833 val64 = (u64) ppd->pkeys[0] | ((u64) ppd->pkeys[1] << 16) | in qib_6120_set_ib_cfg()
2836 qib_write_kreg(dd, kr_partitionkey, val64); in qib_6120_set_ib_cfg()
/drivers/infiniband/core/
Dsa_query.c525 u64 val64; in ib_nl_set_path_rec_attrs() local
546 val64 = be64_to_cpu(sa_rec->service_id); in ib_nl_set_path_rec_attrs()
548 sizeof(val64), &val64); in ib_nl_set_path_rec_attrs()
/drivers/net/ethernet/chelsio/cxgb3/
Dt3_hw.c160 u64 val64 = 0; in t3_mc7_bd_read() local
177 val64 = t3_read_reg(adap, in t3_mc7_bd_read()
180 val64 |= (u64) val << 32; in t3_mc7_bd_read()
184 val64 |= (u64) val << (step[mc7->width] * i); in t3_mc7_bd_read()
188 *buf++ = val64; in t3_mc7_bd_read()
/drivers/net/ethernet/marvell/
Dmvneta.c3686 u64 val64; in mvneta_ethtool_update_stats() local
3701 val64 = (u64)high << 32 | low; in mvneta_ethtool_update_stats()
3702 pp->ethtool_stats[i] += val64; in mvneta_ethtool_update_stats()

12