/drivers/block/ |
D | loop.c | 111 static int loop_global_lock_killable(struct loop_device *lo, bool global) in loop_global_lock_killable() argument 120 err = mutex_lock_killable(&lo->lo_mutex); in loop_global_lock_killable() 132 static void loop_global_unlock(struct loop_device *lo, bool global) in loop_global_unlock() argument 134 mutex_unlock(&lo->lo_mutex); in loop_global_unlock() 163 static loff_t get_loop_size(struct loop_device *lo, struct file *file) in get_loop_size() argument 165 return get_size(lo->lo_offset, lo->lo_sizelimit, file); in get_loop_size() 173 static bool lo_bdev_can_use_dio(struct loop_device *lo, in lo_bdev_can_use_dio() argument 178 if (queue_logical_block_size(lo->lo_queue) < sb_bsize) in lo_bdev_can_use_dio() 180 if (lo->lo_offset & (sb_bsize - 1)) in lo_bdev_can_use_dio() 185 static void __loop_update_dio(struct loop_device *lo, bool dio) in __loop_update_dio() argument [all …]
|
/drivers/acpi/acpica/ |
D | utmath.c | 16 u32 lo; member 65 ACPI_MUL_64_BY_32(0, multiplicand_ovl.part.lo, multiplier, in acpi_ut_short_multiply() 66 product.part.lo, carry32); in acpi_ut_short_multiply() 100 operand_ovl.part.hi = operand_ovl.part.lo; in acpi_ut_short_shift_left() 101 operand_ovl.part.lo = 0; in acpi_ut_short_shift_left() 105 operand_ovl.part.lo, count); in acpi_ut_short_shift_left() 137 operand_ovl.part.lo = operand_ovl.part.hi; in acpi_ut_short_shift_right() 142 operand_ovl.part.lo, count); in acpi_ut_short_shift_right() 281 ACPI_DIV_64_BY_32(remainder32, dividend_ovl.part.lo, divisor, in acpi_ut_short_divide() 282 quotient.part.lo, remainder32); in acpi_ut_short_divide() [all …]
|
/drivers/char/hw_random/ |
D | via-rng.c | 132 u32 lo, hi, old_lo; in via_rng_init() local 153 rdmsr(MSR_VIA_RNG, lo, hi); in via_rng_init() 155 old_lo = lo; in via_rng_init() 156 lo &= ~(0x7f << VIA_STRFILT_CNT_SHIFT); in via_rng_init() 157 lo &= ~VIA_XSTORE_CNT_MASK; in via_rng_init() 158 lo &= ~(VIA_STRFILT_ENABLE | VIA_STRFILT_FAIL | VIA_RAWBITS_ENABLE); in via_rng_init() 159 lo |= VIA_RNG_ENABLE; in via_rng_init() 160 lo |= VIA_NOISESRC1; in via_rng_init() 166 lo |= VIA_NOISESRC2; in via_rng_init() 170 lo |= VIA_NOISESRC2; in via_rng_init() [all …]
|
/drivers/cpufreq/ |
D | e_powersaver.c | 94 u32 lo, hi; in eps_get() local 103 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_get() 104 return centaur->fsb * ((lo >> 8) & 0xff); in eps_get() 111 u32 lo, hi; in eps_set_state() local 115 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state() 117 while (lo & ((1 << 16) | (1 << 17))) { in eps_set_state() 119 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state() 131 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state() 136 } while (lo & ((1 << 16) | (1 << 17))); in eps_set_state() 143 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state() [all …]
|
D | powernow-k8.c | 89 u32 lo, hi __always_unused; in pending_bit_stuck() local 91 rdmsr(MSR_FIDVID_STATUS, lo, hi); in pending_bit_stuck() 92 return lo & MSR_S_LO_CHANGE_PENDING ? 1 : 0; in pending_bit_stuck() 101 u32 lo, hi; in query_current_values_with_pending_wait() local 109 rdmsr(MSR_FIDVID_STATUS, lo, hi); in query_current_values_with_pending_wait() 110 } while (lo & MSR_S_LO_CHANGE_PENDING); in query_current_values_with_pending_wait() 113 data->currfid = lo & MSR_S_LO_CURRENT_FID; in query_current_values_with_pending_wait() 133 u32 lo, hi; in fidvid_msr_init() local 136 rdmsr(MSR_FIDVID_STATUS, lo, hi); in fidvid_msr_init() 138 fid = lo & MSR_S_LO_CURRENT_FID; in fidvid_msr_init() [all …]
|
/drivers/net/dsa/b53/ |
D | b53_mmap.c | 83 u16 lo; in b53_mmap_read48() local 87 lo = ioread16be(regs + (page << 8) + reg); in b53_mmap_read48() 90 lo = readw(regs + (page << 8) + reg); in b53_mmap_read48() 94 *val = ((u64)hi << 16) | lo; in b53_mmap_read48() 96 u32 lo; in b53_mmap_read48() local 100 lo = ioread32be(regs + (page << 8) + reg); in b53_mmap_read48() 103 lo = readl(regs + (page << 8) + reg); in b53_mmap_read48() 107 *val = ((u64)hi << 32) | lo; in b53_mmap_read48() 117 u32 hi, lo; in b53_mmap_read64() local 123 lo = ioread32be(regs + (page << 8) + reg); in b53_mmap_read64() [all …]
|
/drivers/net/wireless/broadcom/b43/ |
D | lo.c | 27 static struct b43_lo_calib *b43_find_lo_calib(struct b43_txpower_lo_control *lo, in b43_find_lo_calib() argument 33 list_for_each_entry(c, &lo->calib_list, list) { in b43_find_lo_calib() 166 struct b43_txpower_lo_control *lo = gphy->lo_control; in lo_measure_txctl_values() local 239 lo->tx_bias = tx_bias; in lo_measure_txctl_values() 240 lo->tx_magn = tx_magn; in lo_measure_txctl_values() 243 if (lo->tx_bias == 0) in lo_measure_txctl_values() 248 & 0xFF00) | lo->tx_bias | lo-> in lo_measure_txctl_values() 252 lo->tx_magn = 0; in lo_measure_txctl_values() 253 lo->tx_bias = 0; in lo_measure_txctl_values() 256 lo->txctl_measured_time = jiffies; in lo_measure_txctl_values() [all …]
|
D | debugfs.c | 429 struct b43_txpower_lo_control *lo; in loctls_read_file() local 440 lo = phy->g->lo_control; in loctls_read_file() 445 lo->tx_bias, lo->tx_magn, in loctls_read_file() 446 calc_expire_secs(now, lo->txctl_measured_time, in loctls_read_file() 449 (unsigned int)((lo->power_vector & 0xFFFFFFFF00000000ULL) >> 32), in loctls_read_file() 450 (unsigned int)(lo->power_vector & 0x00000000FFFFFFFFULL), in loctls_read_file() 451 calc_expire_secs(now, lo->pwr_vec_read_time, in loctls_read_file() 455 list_for_each_entry(cal, &lo->calib_list, list) { in loctls_read_file() 471 for (i = 0; i < lo->rfatt_list.len; i++) { in loctls_read_file() 473 lo->rfatt_list.list[i].att, in loctls_read_file() [all …]
|
/drivers/infiniband/hw/mthca/ |
D | mthca_doorbell.h | 59 static inline void mthca_write64(u32 hi, u32 lo, void __iomem *dest, in mthca_write64() argument 62 __raw_writeq((__force u64) cpu_to_be64((u64) hi << 32 | lo), dest); in mthca_write64() 88 static inline void mthca_write64(u32 hi, u32 lo, void __iomem *dest, in mthca_write64() argument 94 lo = (__force u32) cpu_to_be32(lo); in mthca_write64() 98 __raw_writel(lo, dest + 4); in mthca_write64()
|
/drivers/net/ethernet/xscale/ |
D | ptp_ixp46x.c | 44 u32 lo, hi; in ixp_systime_read() local 46 lo = __raw_readl(®s->systime_lo); in ixp_systime_read() 50 ns |= lo; in ixp_systime_read() 58 u32 hi, lo; in ixp_systime_write() local 62 lo = ns & 0xffffffff; in ixp_systime_write() 64 __raw_writel(lo, ®s->systime_lo); in ixp_systime_write() 77 u32 ack = 0, lo, hi, val; in isr() local 85 lo = __raw_readl(®s->asms_lo); in isr() 89 event.timestamp |= lo; in isr() 99 lo = __raw_readl(®s->amms_lo); in isr() [all …]
|
/drivers/char/ |
D | ds1620.c | 203 ds1620_out(THERM_WRITE_TL, 9, therm->lo); in ds1620_write_state() 210 therm->lo = cvt_9_to_int(ds1620_in(THERM_READ_TL, 9)); in ds1620_read_state() 257 therm.lo = therm.hi - 3; in ds1620_ioctl() 263 therm.lo <<= 1; in ds1620_ioctl() 273 therm.lo >>= 1; in ds1620_ioctl() 344 th.lo >> 1, th.lo & 1 ? 5 : 0, in ds1620_proc_therm_show() 383 th_start.lo = 0; in ds1620_init() 406 th.lo >> 1, th.lo & 1 ? 5 : 0, in ds1620_init()
|
/drivers/staging/media/atomisp/pci/isp/kernels/s3a/s3a_1.0/ |
D | ia_css_s3a.host.c | 321 merge_hi_lo_14(unsigned short hi, unsigned short lo) in merge_hi_lo_14() argument 324 ((unsigned int)lo & 0x3fff)); in merge_hi_lo_14() 335 const u16 *hi, *lo; in ia_css_s3a_vmem_decode() local 347 lo = isp_stats_lo; in ia_css_s3a_vmem_decode() 362 hi[elm + chunk * 0], lo[elm + chunk * 0]); in ia_css_s3a_vmem_decode() 364 hi[elm + chunk * 1], lo[elm + chunk * 1]); in ia_css_s3a_vmem_decode() 366 hi[elm + chunk * 2], lo[elm + chunk * 2]); in ia_css_s3a_vmem_decode() 368 hi[elm + chunk * 3], lo[elm + chunk * 3]); in ia_css_s3a_vmem_decode() 370 hi[elm + chunk * 4], lo[elm + chunk * 4]); in ia_css_s3a_vmem_decode() 372 hi[elm + chunk * 5], lo[elm + chunk * 5]); in ia_css_s3a_vmem_decode() [all …]
|
/drivers/crypto/vmx/ |
D | ppc-xlate.pl | 77 my ($hi,$lo); 80 { $hi=$1?"0x$1":"0"; $lo="0x$2"; } 82 { $hi=$1>>32; $lo=$1&0xffffffff; } # error-prone with 32-bit perl 84 { $hi=undef; $lo=$_; } 87 { push(@ret,$flavour=~/le$/o?".long\t$lo,$hi":".long\t$hi,$lo"); } 89 { push(@ret,".quad $lo"); }
|
/drivers/gpu/drm/nouveau/nvkm/engine/device/ |
D | ctrl.c | 78 u32 lo, hi; in nvkm_control_mthd_pstate_attr() local 111 lo = pstate->base.domain[domain->name]; in nvkm_control_mthd_pstate_attr() 112 hi = lo; in nvkm_control_mthd_pstate_attr() 114 lo = min(lo, cstate->domain[domain->name]); in nvkm_control_mthd_pstate_attr() 120 lo = max(nvkm_clk_read(clk, domain->name), 0); in nvkm_control_mthd_pstate_attr() 121 hi = lo; in nvkm_control_mthd_pstate_attr() 126 args->v0.min = lo / domain->mdiv; in nvkm_control_mthd_pstate_attr()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/timer/ |
D | nv04.c | 33 u32 lo = lower_32_bits(time); in nv04_timer_time() local 35 nvkm_debug(subdev, "time low : %08x\n", lo); in nv04_timer_time() 39 nvkm_wr32(device, NV04_PTIMER_TIME_0, lo); in nv04_timer_time() 46 u32 hi, lo; in nv04_timer_read() local 50 lo = nvkm_rd32(device, NV04_PTIMER_TIME_0); in nv04_timer_read() 53 return ((u64)hi << 32 | lo); in nv04_timer_read()
|
/drivers/net/ethernet/qualcomm/emac/ |
D | emac-mac.h | 42 #define BITS_GET(val, lo, hi) ((le32_to_cpu(val) & GENMASK((hi), (lo))) >> lo) argument 43 #define BITS_SET(val, lo, hi, new_val) \ argument 44 val = cpu_to_le32((le32_to_cpu(val) & (~GENMASK((hi), (lo)))) | \ 45 (((new_val) << (lo)) & GENMASK((hi), (lo))))
|
/drivers/md/ |
D | md-cluster.c | 32 __le64 lo; member 259 sector_t lo, sector_t hi) in add_resync_info() argument 264 ri->lo = cpu_to_le64(lo); in add_resync_info() 279 cinfo->suspend_lo = le64_to_cpu(ri.lo); in read_resync_info() 293 sector_t lo, hi; in recover_bitmaps() local 311 ret = md_bitmap_copy_from_slot(mddev, slot, &lo, &hi, true); in recover_bitmaps() 331 if (lo < mddev->recovery_cp) in recover_bitmaps() 332 mddev->recovery_cp = lo; in recover_bitmaps() 444 int slot, sector_t lo, sector_t hi) in process_suspend_info() argument 491 cinfo->sync_hi, lo, hi); in process_suspend_info() [all …]
|
D | md-linear.c | 26 int lo, mid, hi; in which_dev() local 29 lo = 0; in which_dev() 37 while (hi > lo) { in which_dev() 39 mid = (hi + lo) / 2; in which_dev() 43 lo = mid + 1; in which_dev() 46 return conf->disks + lo; in which_dev()
|
/drivers/scsi/qedf/ |
D | drv_scsi_fw_funcs.c | 25 val = cpu_to_le32(sgl_task_params->sgl_phys_addr.lo); in init_scsi_sgl_context() 26 ctx_sgl_params->sgl_addr.lo = val; in init_scsi_sgl_context() 34 val = cpu_to_le32(sgl_task_params->sgl[sge_index].sge_addr.lo); in init_scsi_sgl_context() 35 ctx_data_desc->sge[sge_index].sge_addr.lo = val; in init_scsi_sgl_context()
|
/drivers/gpu/drm/i915/gvt/ |
D | cfg_space.c | 185 bool lo = IS_ALIGNED(offset, 8); in emulate_pci_bar_write() local 204 size >> (lo ? 0 : 32), lo); in emulate_pci_bar_write() 215 size >> (lo ? 0 : 32), lo); in emulate_pci_bar_write() 231 intel_vgpu_write_pci_bar(vgpu, offset, new, lo); in emulate_pci_bar_write() 237 intel_vgpu_write_pci_bar(vgpu, offset, new, lo); in emulate_pci_bar_write() 241 intel_vgpu_write_pci_bar(vgpu, offset, new, lo); in emulate_pci_bar_write()
|
/drivers/gpu/drm/nouveau/nvif/ |
D | userc361.c | 27 u32 hi, lo; in nvif_userc361_time() local 31 lo = nvif_rd32(&user->object, 0x080); in nvif_userc361_time() 34 return ((u64)hi << 32 | lo); in nvif_userc361_time()
|
/drivers/ptp/ |
D | ptp_qoriq.c | 31 u32 lo, hi; in tmr_cnt_read() local 33 lo = ptp_qoriq->read(®s->ctrl_regs->tmr_cnt_l); in tmr_cnt_read() 36 ns |= lo; in tmr_cnt_read() 45 u32 lo = ns & 0xffffffff; in tmr_cnt_write() local 47 ptp_qoriq->write(®s->ctrl_regs->tmr_cnt_l, lo); in tmr_cnt_write() 56 u32 lo, hi; in set_alarm() local 62 lo = ns & 0xffffffff; in set_alarm() 63 ptp_qoriq->write(®s->alarm_regs->tmr_alarm1_l, lo); in set_alarm() 87 u32 valid, lo, hi; in extts_clean_up() local 112 lo = ptp_qoriq->read(reg_etts_l); in extts_clean_up() [all …]
|
/drivers/video/fbdev/ |
D | edid.h | 66 #define COMBINE_HI_8LO( hi, lo ) \ argument 67 ( (((unsigned)hi) << 8) | (unsigned)lo ) 69 #define COMBINE_HI_4LO( hi, lo ) \ argument 70 ( (((unsigned)hi) << 4) | (unsigned)lo )
|
/drivers/net/wireless/silabs/wfx/ |
D | wfx.h | 145 u8 *lo = src; in memreverse() local 149 while (lo < hi) { in memreverse() 150 swap = *lo; in memreverse() 151 *lo++ = *hi; in memreverse()
|
/drivers/edac/ |
D | amd64_edac.h | 151 #define dram_rw(pvt, i) ((u8)(pvt->ranges[i].base.lo & 0x3)) 152 #define dram_intlv_sel(pvt, i) ((u8)((pvt->ranges[i].lim.lo >> 8) & 0x7)) 153 #define dram_dst_node(pvt, i) ((u8)(pvt->ranges[i].lim.lo & 0x7)) 322 u32 lo, hi; member 438 u64 addr = ((u64)pvt->ranges[i].base.lo & 0xffff0000) << 8; in get_dram_base() 448 u64 lim = (((u64)pvt->ranges[i].lim.lo & 0xffff0000) << 8) | 0x00ffffff; in get_dram_limit() 545 return (u8) (pvt->ranges[i].base.lo >> 8) & 0x7; in dram_intlv_en()
|