| /drivers/block/ |
| A D | loop.c | 177 if (lo->lo_offset & (lo->lo_min_dio_size - 1)) in lo_can_use_dio() 443 __func__, lo->lo_number, lo->lo_file_name, rc); in loop_reread_partitions() 508 lo->lo_min_dio_size = loop_query_min_dio_size(lo); in loop_assign_backing_file() 833 worker->lo = lo; in loop_queue_work() 1402 size = get_loop_size(lo, lo->lo_backing_file); in loop_set_capacity() 1997 lo = kzalloc(sizeof(*lo), GFP_KERNEL); in loop_add() 1998 if (!lo) in loop_add() 2028 lo->tag_set.driver_data = lo; in loop_add() 2034 disk = lo->lo_disk = blk_mq_alloc_disk(&lo->tag_set, &lim, lo); in loop_add() 2039 lo->lo_queue = lo->lo_disk->queue; in loop_add() [all …]
|
| /drivers/acpi/acpica/ |
| A D | utmath.c | 16 u32 lo; member 101 operand_ovl.part.lo = 0; in acpi_ut_short_shift_left() 350 ACPI_DIV_64_BY_32(partial1, dividend.part.lo, divisor.part.lo, in acpi_ut_divide() 351 quotient.part.lo, remainder.part.lo); in acpi_ut_divide() 377 normalized_divisor.part.lo, quotient.part.lo, in acpi_ut_divide() 385 partial2.full = (u64) quotient.part.lo * divisor.part.lo; in acpi_ut_divide() 389 remainder.part.lo = partial2.part.lo; in acpi_ut_divide() 394 if (partial2.part.lo > dividend.part.lo) { in acpi_ut_divide() 395 quotient.part.lo--; in acpi_ut_divide() 399 quotient.part.lo--; in acpi_ut_divide() [all …]
|
| /drivers/char/hw_random/ |
| A 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() 157 lo &= ~VIA_XSTORE_CNT_MASK; 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() 172 if (lo != old_lo) in via_rng_init() 173 wrmsr(MSR_VIA_RNG, lo, hi); in via_rng_init() [all …]
|
| /drivers/cpufreq/ |
| A D | e_powersaver.c | 94 u32 lo, hi; in eps_get() local 103 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_get() 111 u32 lo, hi; in eps_set_state() local 115 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state() 144 current_voltage = lo & 0xff; in eps_set_state() 175 u32 lo, hi; in eps_cpu_init() local 199 rdmsr(0x1153, lo, hi); in eps_cpu_init() 200 brand = (((lo >> 2) ^ lo) >> 18) & 3; in eps_cpu_init() 204 rdmsr(0x1154, lo, hi); in eps_cpu_init() 205 brand = (((lo >> 4) ^ (lo >> 2))) & 0x000000ff; in eps_cpu_init() [all …]
|
| A D | powernow-k8.c | 89 u32 lo, hi __always_unused; in pending_bit_stuck() local 101 u32 lo, hi; in query_current_values_with_pending_wait() local 133 u32 lo, hi; in fidvid_msr_init() local 142 wrmsr(MSR_FIDVID_CTL, lo, hi); in fidvid_msr_init() 148 u32 lo; in write_new_fid() local 157 lo = fid; in write_new_fid() 159 lo |= MSR_C_LO_INIT_FID_VID; in write_new_fid() 192 u32 lo; in write_new_vid() local 201 lo = data->currfid; in write_new_vid() 203 lo |= MSR_C_LO_INIT_FID_VID; in write_new_vid() [all …]
|
| /drivers/gpu/nova-core/regs/ |
| A D | macros.rs | 178 $($hi:tt:$lo:tt $field:ident as $type:tt 187 register!(@check_field_bounds $hi:$lo $field as $type); 193 register!(@field_accessor $name $hi:$lo $field as $type 204 (@check_field_bounds $hi:tt:$lo:tt $field:ident as bool) => { 208 $hi == $lo, 215 (@check_field_bounds $hi:tt:$lo:tt $field:ident as $type:tt) => { 219 $hi >= $lo, 231 @leaf_accessor $name $hi:$lo $field as bool 249 register!(@leaf_accessor $name $hi:$lo $field as $type 263 register!(@leaf_accessor $name $hi:$lo $field as $type [all …]
|
| /drivers/net/wireless/broadcom/b43/ |
| A D | lo.c | 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() 819 B43_WARN_ON(lo->rfatt_list.len * lo->bbatt_list.len > 64); in b43_gphy_dc_lt_init() 859 lo->dc_lt[idx] = (lo->dc_lt[idx] & 0x00FF) in b43_gphy_dc_lt_init() 863 lo->dc_lt[idx] = (lo->dc_lt[idx] & 0xFF00) in b43_gphy_dc_lt_init() 931 if (!lo) in b43_lo_g_maintenance_work() [all …]
|
| A D | debugfs.c | 428 struct b43_txpower_lo_control *lo; in loctls_read_file() local 439 lo = phy->g->lo_control; in loctls_read_file() 444 lo->tx_bias, lo->tx_magn, in loctls_read_file() 445 calc_expire_secs(now, lo->txctl_measured_time, in loctls_read_file() 450 calc_expire_secs(now, lo->pwr_vec_read_time, in loctls_read_file() 454 list_for_each_entry(cal, &lo->calib_list, list) { in loctls_read_file() 470 for (i = 0; i < lo->rfatt_list.len; i++) { in loctls_read_file() 472 lo->rfatt_list.list[i].att, in loctls_read_file() 473 lo->rfatt_list.list[i].with_padmix); in loctls_read_file() 477 for (i = 0; i < lo->bbatt_list.len; i++) { in loctls_read_file() [all …]
|
| /drivers/net/dsa/b53/ |
| A D | b53_mmap.c | 125 u16 lo; in b53_mmap_read48() local 136 *val = ((u64)hi << 16) | lo; in b53_mmap_read48() 138 u32 lo; in b53_mmap_read48() local 149 *val = ((u64)hi << 32) | lo; in b53_mmap_read48() 159 u32 hi, lo; in b53_mmap_read64() local 172 *val = ((u64)hi << 32) | lo; in b53_mmap_read64() 229 u16 lo = (u16)value; in b53_mmap_write48() local 235 u32 lo = (u32)value; in b53_mmap_write48() local 247 u32 hi, lo; in b53_mmap_write64() local 250 lo = lower_32_bits(value); in b53_mmap_write64() [all …]
|
| /drivers/ras/amd/atl/ |
| A D | access.c | 65 static int __df_indirect_read(u16 node, u8 func, u16 reg, u8 instance_id, u32 *lo) in __df_indirect_read() argument 115 err = pci_read_config_dword(F4, ficad_addr, lo); in __df_indirect_read() 120 node, instance_id, func, reg << 2, *lo); in __df_indirect_read() 129 int df_indirect_read_instance(u16 node, u8 func, u16 reg, u8 instance_id, u32 *lo) in df_indirect_read_instance() argument 131 return __df_indirect_read(node, func, reg, instance_id, lo); in df_indirect_read_instance() 134 int df_indirect_read_broadcast(u16 node, u8 func, u16 reg, u32 *lo) in df_indirect_read_broadcast() argument 136 return __df_indirect_read(node, func, reg, DF_BROADCAST, lo); in df_indirect_read_broadcast()
|
| /drivers/net/ethernet/xscale/ |
| A 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/infiniband/hw/mthca/ |
| A 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/char/ |
| A 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() 382 th_start.lo = 0; in ds1620_init() 405 th.lo >> 1, th.lo & 1 ? 5 : 0, in ds1620_init()
|
| /drivers/staging/media/atomisp/pci/isp/kernels/s3a/s3a_1.0/ |
| A D | ia_css_s3a.host.c | 312 merge_hi_lo_14(unsigned short hi, unsigned short lo) in merge_hi_lo_14() argument 315 ((unsigned int)lo & 0x3fff)); in merge_hi_lo_14() 326 const u16 *hi, *lo; in ia_css_s3a_vmem_decode() local 338 lo = isp_stats_lo; in ia_css_s3a_vmem_decode() 353 hi[elm + chunk * 0], lo[elm + chunk * 0]); in ia_css_s3a_vmem_decode() 355 hi[elm + chunk * 1], lo[elm + chunk * 1]); in ia_css_s3a_vmem_decode() 357 hi[elm + chunk * 2], lo[elm + chunk * 2]); in ia_css_s3a_vmem_decode() 359 hi[elm + chunk * 3], lo[elm + chunk * 3]); in ia_css_s3a_vmem_decode() 361 hi[elm + chunk * 4], lo[elm + chunk * 4]); in ia_css_s3a_vmem_decode() 363 hi[elm + chunk * 5], lo[elm + chunk * 5]); in ia_css_s3a_vmem_decode() [all …]
|
| /drivers/ptp/ |
| A D | ptp_qoriq.c | 31 u32 lo, hi; in tmr_cnt_read() local 36 ns |= lo; in tmr_cnt_read() 45 u32 lo = ns & 0xffffffff; in tmr_cnt_write() local 54 u32 lo, hi; in tmr_offset_read() local 60 ns |= lo; in tmr_offset_read() 67 u32 lo = delta_ns & 0xffffffff; in tmr_offset_write() local 79 u32 lo, hi; in set_alarm() local 87 lo = ns & 0xffffffff; in set_alarm() 112 u32 valid, lo, hi; in extts_clean_up() local 137 lo = ptp_qoriq->read(reg_etts_l); in extts_clean_up() [all …]
|
| /drivers/gpu/drm/nouveau/nvkm/engine/device/ |
| A 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/ |
| A 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/ |
| A 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/ |
| A D | md-cluster.c | 33 __le64 lo; member 273 ri->lo = cpu_to_le64(lo); in add_resync_info() 302 sector_t lo, hi; in recover_bitmaps() local 341 mddev->resync_offset = lo; in recover_bitmaps() 502 cinfo->sync_low = lo; in process_suspend_info() 508 cinfo->suspend_lo = lo; in process_suspend_info() 825 sector_t lo, hi; in gather_all_resync_info() local 1366 *lo = cinfo->suspend_lo; in resync_info_get() 1412 if (lo == 0 && hi == 0) in resync_info_update() 1436 sector_t lo, sector_t hi) in area_resyncing() argument [all …]
|
| /drivers/scsi/qedf/ |
| A 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/ |
| A 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/clocksource/ |
| A D | mips-gic-timer.c | 29 unsigned int hi, hi2, lo; in gic_read_count_2x32() local 33 lo = read_gic_counter_32l(); in gic_read_count_2x32() 37 return (((u64) hi) << 32) + lo; in gic_read_count_2x32() 174 unsigned int hi, hi2, lo; in gic_hpt_read_multicluster() local 186 lo = read_gic_redir_counter_32l(); in gic_hpt_read_multicluster() 197 count = (((u64)hi) << 32) + lo; in gic_hpt_read_multicluster()
|
| /drivers/gpu/drm/nouveau/nvif/ |
| A 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/net/dsa/ |
| A D | mt7530-mdio.c | 23 u16 page, r, lo, hi; in mt7530_regmap_write() local 28 lo = val & 0xffff; in mt7530_regmap_write() 35 ret = bus->write(bus, priv->mdiodev->addr, r, lo); in mt7530_regmap_write() 48 u16 page, r, lo, hi; in mt7530_regmap_read() local 58 lo = bus->read(bus, priv->mdiodev->addr, r); in mt7530_regmap_read() 61 *val = (hi << 16) | (lo & 0xffff); in mt7530_regmap_read()
|
| /drivers/video/fbdev/ |
| A 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 )
|