Home
last modified time | relevance | path

Searched refs:lo (Results 1 – 25 of 218) sorted by relevance

123456789

/drivers/block/
Dloop.c89 static int transfer_xor(struct loop_device *lo, int cmd, in transfer_xor() argument
107 key = lo->lo_encrypt_key; in transfer_xor()
108 keysize = lo->lo_encrypt_key_size; in transfer_xor()
118 static int xor_init(struct loop_device *lo, const struct loop_info64 *info) in xor_init() argument
162 static loff_t get_loop_size(struct loop_device *lo, struct file *file) in get_loop_size() argument
164 return get_size(lo->lo_offset, lo->lo_sizelimit, file); in get_loop_size()
167 static void __loop_update_dio(struct loop_device *lo, bool dio) in __loop_update_dio() argument
169 struct file *file = lo->lo_backing_file; in __loop_update_dio()
192 if (queue_logical_block_size(lo->lo_queue) >= sb_bsize && in __loop_update_dio()
193 !(lo->lo_offset & dio_align) && in __loop_update_dio()
[all …]
Dcryptoloop.c40 cryptoloop_init(struct loop_device *lo, const struct loop_info64 *info) in cryptoloop_init() argument
95 lo->key_data = tfm; in cryptoloop_init()
109 cryptoloop_transfer(struct loop_device *lo, int cmd, in cryptoloop_transfer() argument
114 struct crypto_skcipher *tfm = lo->key_data; in cryptoloop_transfer()
172 cryptoloop_ioctl(struct loop_device *lo, int cmd, unsigned long arg) in cryptoloop_ioctl() argument
178 cryptoloop_release(struct loop_device *lo) in cryptoloop_release() argument
180 struct crypto_skcipher *tfm = lo->key_data; in cryptoloop_release()
183 lo->key_data = NULL; in cryptoloop_release()
/drivers/acpi/acpica/
Dutmath.c52 u32 lo; member
101 ACPI_MUL_64_BY_32(0, multiplicand_ovl.part.lo, multiplier, in acpi_ut_short_multiply()
102 product.part.lo, carry32); in acpi_ut_short_multiply()
136 operand_ovl.part.hi = operand_ovl.part.lo; in acpi_ut_short_shift_left()
137 operand_ovl.part.lo ^= operand_ovl.part.lo; in acpi_ut_short_shift_left()
141 operand_ovl.part.lo, count); in acpi_ut_short_shift_left()
173 operand_ovl.part.lo = operand_ovl.part.hi; in acpi_ut_short_shift_right()
178 operand_ovl.part.lo, count); in acpi_ut_short_shift_right()
317 ACPI_DIV_64_BY_32(remainder32, dividend_ovl.part.lo, divisor, in acpi_ut_short_divide()
318 quotient.part.lo, remainder32); in acpi_ut_short_divide()
[all …]
/drivers/char/hw_random/
Dvia-rng.c132 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/
De_powersaver.c95 u32 lo, hi; in eps_get() local
104 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_get()
105 return centaur->fsb * ((lo >> 8) & 0xff); in eps_get()
112 u32 lo, hi; in eps_set_state() local
116 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state()
118 while (lo & ((1 << 16) | (1 << 17))) { in eps_set_state()
120 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state()
132 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state()
137 } while (lo & ((1 << 16) | (1 << 17))); in eps_set_state()
144 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state()
[all …]
Dpowernow-k8.c92 u32 lo, hi; in pending_bit_stuck() local
94 rdmsr(MSR_FIDVID_STATUS, lo, hi); in pending_bit_stuck()
95 return lo & MSR_S_LO_CHANGE_PENDING ? 1 : 0; in pending_bit_stuck()
104 u32 lo, hi; in query_current_values_with_pending_wait() local
112 rdmsr(MSR_FIDVID_STATUS, lo, hi); in query_current_values_with_pending_wait()
113 } while (lo & MSR_S_LO_CHANGE_PENDING); in query_current_values_with_pending_wait()
116 data->currfid = lo & MSR_S_LO_CURRENT_FID; in query_current_values_with_pending_wait()
138 u32 lo, hi; in fidvid_msr_init() local
141 rdmsr(MSR_FIDVID_STATUS, lo, hi); in fidvid_msr_init()
143 fid = lo & MSR_S_LO_CURRENT_FID; in fidvid_msr_init()
[all …]
Dsfi-cpufreq.c58 u32 lo, hi; in sfi_cpufreq_target() local
62 rdmsr_on_cpu(policy->cpu, MSR_IA32_PERF_CTL, &lo, &hi); in sfi_cpufreq_target()
63 lo = (lo & ~INTEL_PERF_CTL_MASK) | in sfi_cpufreq_target()
66 wrmsr_on_cpu(policy->cpu, MSR_IA32_PERF_CTL, lo, hi); in sfi_cpufreq_target()
/drivers/net/dsa/b53/
Db53_mmap.c78 u16 lo; in b53_mmap_read48() local
82 lo = ioread16be(regs + (page << 8) + reg); in b53_mmap_read48()
85 lo = readw(regs + (page << 8) + reg); in b53_mmap_read48()
89 *val = ((u64)hi << 16) | lo; in b53_mmap_read48()
91 u32 lo; in b53_mmap_read48() local
95 lo = ioread32be(regs + (page << 8) + reg); in b53_mmap_read48()
98 lo = readl(regs + (page << 8) + reg); in b53_mmap_read48()
102 *val = ((u64)hi << 32) | lo; in b53_mmap_read48()
111 u32 hi, lo; in b53_mmap_read64() local
117 lo = ioread32be(regs + (page << 8) + reg); in b53_mmap_read64()
[all …]
/drivers/net/wireless/broadcom/b43/
Dlo.c40 static struct b43_lo_calib *b43_find_lo_calib(struct b43_txpower_lo_control *lo, in b43_find_lo_calib() argument
46 list_for_each_entry(c, &lo->calib_list, list) { in b43_find_lo_calib()
179 struct b43_txpower_lo_control *lo = gphy->lo_control; in lo_measure_txctl_values() local
252 lo->tx_bias = tx_bias; in lo_measure_txctl_values()
253 lo->tx_magn = tx_magn; in lo_measure_txctl_values()
256 if (lo->tx_bias == 0) in lo_measure_txctl_values()
261 & 0xFF00) | lo->tx_bias | lo-> in lo_measure_txctl_values()
265 lo->tx_magn = 0; in lo_measure_txctl_values()
266 lo->tx_bias = 0; in lo_measure_txctl_values()
269 lo->txctl_measured_time = jiffies; in lo_measure_txctl_values()
[all …]
/drivers/ptp/
Dptp_ixp46x.c57 u32 lo, hi; in ixp_systime_read() local
59 lo = __raw_readl(&regs->systime_lo); in ixp_systime_read()
63 ns |= lo; in ixp_systime_read()
71 u32 hi, lo; in ixp_systime_write() local
75 lo = ns & 0xffffffff; in ixp_systime_write()
77 __raw_writel(lo, &regs->systime_lo); in ixp_systime_write()
90 u32 ack = 0, lo, hi, val; in isr() local
98 lo = __raw_readl(&regs->asms_lo); in isr()
102 event.timestamp |= lo; in isr()
112 lo = __raw_readl(&regs->amms_lo); in isr()
[all …]
Dptp_pch.c160 u32 lo, hi; in pch_systime_read() local
162 lo = ioread32(&regs->systime_lo); in pch_systime_read()
166 ns |= lo; in pch_systime_read()
174 u32 hi, lo; in pch_systime_write() local
178 lo = ns & 0xffffffff; in pch_systime_write()
180 iowrite32(lo, &regs->systime_lo); in pch_systime_write()
258 u32 lo, hi; in pch_rx_snap_read() local
260 lo = ioread32(&chip->regs->rx_snap_lo); in pch_rx_snap_read()
264 ns |= lo; in pch_rx_snap_read()
275 u32 lo, hi; in pch_tx_snap_read() local
[all …]
/drivers/infiniband/hw/mthca/
Dmthca_doorbell.h59 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/ide/
Dide-cd_verbose.c281 int lo = 0, mid, hi = ARRAY_SIZE(sense_data_texts); in ide_cd_log_error() local
289 while (hi > lo) { in ide_cd_log_error()
290 mid = (lo + hi) / 2; in ide_cd_log_error()
298 lo = mid + 1; in ide_cd_log_error()
313 int lo = 0, mid, hi = ARRAY_SIZE(packet_command_texts); in ide_cd_log_error() local
316 while (hi > lo) { in ide_cd_log_error()
317 mid = (lo + hi) / 2; in ide_cd_log_error()
327 lo = mid + 1; in ide_cd_log_error()
/drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/s3a/s3a_1.0/
Dia_css_s3a.host.c325 merge_hi_lo_14(unsigned short hi, unsigned short lo) in merge_hi_lo_14() argument
328 ((unsigned int) lo & 0x3fff)); in merge_hi_lo_14()
339 const uint16_t *hi, *lo; in ia_css_s3a_vmem_decode() local
351 lo = isp_stats_lo; in ia_css_s3a_vmem_decode()
366 hi[elm + chunk * 0], lo[elm + chunk * 0]); in ia_css_s3a_vmem_decode()
368 hi[elm + chunk * 1], lo[elm + chunk * 1]); in ia_css_s3a_vmem_decode()
370 hi[elm + chunk * 2], lo[elm + chunk * 2]); in ia_css_s3a_vmem_decode()
372 hi[elm + chunk * 3], lo[elm + chunk * 3]); in ia_css_s3a_vmem_decode()
374 hi[elm + chunk * 4], lo[elm + chunk * 4]); in ia_css_s3a_vmem_decode()
376 hi[elm + chunk * 5], lo[elm + chunk * 5]); in ia_css_s3a_vmem_decode()
[all …]
/drivers/char/
Dds1620.c202 ds1620_out(THERM_WRITE_TL, 9, therm->lo); in ds1620_write_state()
209 therm->lo = cvt_9_to_int(ds1620_in(THERM_READ_TL, 9)); in ds1620_read_state()
256 therm.lo = therm.hi - 3; in ds1620_ioctl()
262 therm.lo <<= 1; in ds1620_ioctl()
272 therm.lo >>= 1; in ds1620_ioctl()
343 th.lo >> 1, th.lo & 1 ? 5 : 0, in ds1620_proc_therm_show()
394 th_start.lo = 0; in ds1620_init()
417 th.lo >> 1, th.lo & 1 ? 5 : 0, in ds1620_init()
/drivers/net/ethernet/freescale/
Dgianfar_ptp.c160 u32 lo, hi; in tmr_cnt_read() local
162 lo = gfar_read(&etsects->regs->tmr_cnt_l); in tmr_cnt_read()
165 ns |= lo; in tmr_cnt_read()
173 u32 lo = ns & 0xffffffff; in tmr_cnt_write() local
175 gfar_write(&etsects->regs->tmr_cnt_l, lo); in tmr_cnt_write()
183 u32 lo, hi; in set_alarm() local
189 lo = ns & 0xffffffff; in set_alarm()
190 gfar_write(&etsects->regs->tmr_alarm1_l, lo); in set_alarm()
211 u32 ack = 0, lo, hi, mask, val; in isr() local
218 lo = gfar_read(&etsects->regs->tmr_etts1_l); in isr()
[all …]
/drivers/crypto/vmx/
Dppc-xlate.pl77 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/subdev/timer/
Dnv04.c33 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/md/
Dmd-cluster.c38 sector_t lo; member
44 __le64 lo; member
264 sector_t lo, sector_t hi) in add_resync_info() argument
269 ri->lo = cpu_to_le64(lo); in add_resync_info()
287 s->lo = le64_to_cpu(ri.lo); in read_resync_info()
302 sector_t lo, hi; in recover_bitmaps() local
320 ret = bitmap_copy_from_slot(mddev, slot, &lo, &hi, true); in recover_bitmaps()
336 if (lo < mddev->recovery_cp) in recover_bitmaps()
337 mddev->recovery_cp = lo; in recover_bitmaps()
455 int slot, sector_t lo, sector_t hi) in process_suspend_info() argument
[all …]
/drivers/gpu/drm/nouveau/nvkm/engine/device/
Dctrl.c78 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/isdn/hardware/eicon/
Dcapidtmf.c252 long d, e, q1, q2, lo, mid, hi; in capidtmf_goertzel_result() local
268 lo = k & 0xffff; in capidtmf_goertzel_result()
282 lo = -((long)(k & 0xffff)); in capidtmf_goertzel_result()
294 lo = -lo; in capidtmf_goertzel_result()
300 lo += k & 0xffff; in capidtmf_goertzel_result()
308 lo += k & 0xffff; in capidtmf_goertzel_result()
314 mid += lo >> 16; in capidtmf_goertzel_result()
316 buffer[i] = (lo & 0xffff) | (mid << 16); in capidtmf_goertzel_result()
495 dword lo, hi; in capidtmf_recv_block() local
553 lo = (dword)(p_state->recv.goertzel_buffer[0][i]); in capidtmf_recv_block()
[all …]
/drivers/net/ethernet/qualcomm/emac/
Demac-mac.h50 #define BITS_GET(val, lo, hi) ((le32_to_cpu(val) & GENMASK((hi), (lo))) >> lo) argument
51 #define BITS_SET(val, lo, hi, new_val) \ argument
52 val = cpu_to_le32((le32_to_cpu(val) & (~GENMASK((hi), (lo)))) | \
53 (((new_val) << (lo)) & GENMASK((hi), (lo))))
/drivers/scsi/qedf/
Ddrv_scsi_fw_funcs.c28 val = cpu_to_le32(sgl_task_params->sgl_phys_addr.lo); in init_scsi_sgl_context()
29 ctx_sgl_params->sgl_addr.lo = val; in init_scsi_sgl_context()
37 val = cpu_to_le32(sgl_task_params->sgl[sge_index].sge_addr.lo); in init_scsi_sgl_context()
38 ctx_data_desc->sge[sge_index].sge_addr.lo = val; in init_scsi_sgl_context()
/drivers/gpu/drm/i915/gvt/
Dcfg_space.c201 bool lo = IS_ALIGNED(offset, 8); in emulate_pci_bar_write() local
221 size >> (lo ? 0 : 32), lo); in emulate_pci_bar_write()
232 size >> (lo ? 0 : 32), lo); in emulate_pci_bar_write()
248 intel_vgpu_write_pci_bar(vgpu, offset, new, lo); in emulate_pci_bar_write()
254 intel_vgpu_write_pci_bar(vgpu, offset, new, lo); in emulate_pci_bar_write()
258 intel_vgpu_write_pci_bar(vgpu, offset, new, lo); in emulate_pci_bar_write()
/drivers/staging/comedi/drivers/
Ddt2814.c81 int n, hi, lo; in dt2814_ai_insn_read() local
95 lo = inb(dev->iobase + DT2814_DATA); in dt2814_ai_insn_read()
97 data[n] = (hi << 4) | (lo >> 4); in dt2814_ai_insn_read()
198 int lo, hi; in dt2814_interrupt() local
210 lo = inb(dev->iobase + DT2814_DATA); in dt2814_interrupt()
212 data = (hi << 4) | (lo >> 4); in dt2814_interrupt()

123456789