Home
last modified time | relevance | path

Searched refs:ival (Results 1 – 25 of 29) sorted by relevance

12

/linux/drivers/pinctrl/ti/
H A Dpinctrl-ti-iodelay.c213 struct ti_iodelay_reg_values *ival = &iod->reg_init_conf_values; in ti_iodelay_pinconf_set() local
226 a_delay_coarse = cfg->a_delay / ival->cdpe; in ti_iodelay_pinconf_set()
227 a_delay_fine = ((cfg->a_delay % ival->cdpe) * 10) / ival->fdpe; in ti_iodelay_pinconf_set()
233 total_delay = c_elements * ival->cdpe + f_elements * ival->fdpe; in ti_iodelay_pinconf_set()
234 c_elements = total_delay / ival->cdpe; in ti_iodelay_pinconf_set()
235 f_elements = (total_delay % ival->cdpe) / ival->fdpe; in ti_iodelay_pinconf_set()
304 struct ti_iodelay_reg_values *ival = &iod->reg_init_conf_values; in ti_iodelay_pinconf_init_dev() local
323 ival->ref_clk_period = ti_iodelay_extract(val, reg->refclk_period_mask); in ti_iodelay_pinconf_init_dev()
324 dev_dbg(dev, "refclk_period=0x%04x\n", ival->ref_clk_period); in ti_iodelay_pinconf_init_dev()
329 ival->coarse_ref_count = in ti_iodelay_pinconf_init_dev()
[all …]
/linux/drivers/char/ipmi/
H A Dipmi_si_hotmod.c108 unsigned int ival; in parse_hotmod_str() local
111 rv = parse_str(hotmod_ops, &ival, "operation", &curr); in parse_hotmod_str()
114 *op = ival; in parse_hotmod_str()
116 rv = parse_str(hotmod_si, &ival, "interface type", &curr); in parse_hotmod_str()
119 h->type = ival; in parse_hotmod_str()
121 rv = parse_str(hotmod_as, &ival, "address space", &curr); in parse_hotmod_str()
124 h->space = ival; in parse_hotmod_str()
/linux/scripts/dtc/
H A Dfdtput.c63 int ival; in encode_value() local
100 sscanf(*arg, fmt, &ival); in encode_value()
102 *iptr = cpu_to_fdt32(ival); in encode_value()
104 *ptr = (uint8_t)ival; in encode_value()
109 ival); in encode_value()
/linux/drivers/media/pci/mgb4/
H A Dmgb4_vout.c392 struct v4l2_frmivalenum *ival) in vidioc_enum_frameintervals() argument
398 if (ival->index != 0) in vidioc_enum_frameintervals()
400 if (!(ival->pixel_format == V4L2_PIX_FMT_ABGR32 || in vidioc_enum_frameintervals()
401 ((has_yuv(video) && ival->pixel_format == V4L2_PIX_FMT_YUYV)))) in vidioc_enum_frameintervals()
403 if (ival->width != voutdev->width || ival->height != voutdev->height) in vidioc_enum_frameintervals()
408 ival->type = V4L2_FRMIVAL_TYPE_STEPWISE; in vidioc_enum_frameintervals()
409 ival->stepwise.max.denominator = MGB4_HW_FREQ; in vidioc_enum_frameintervals()
410 ival->stepwise.max.numerator = 0xFFFFFFFF; in vidioc_enum_frameintervals()
411 ival->stepwise.min.denominator = timings.bt.pixelclock; in vidioc_enum_frameintervals()
412 ival->stepwise.min.numerator = pixel_size(&timings); in vidioc_enum_frameintervals()
[all …]
H A Dmgb4_vin.c376 struct v4l2_frmivalenum *ival) in vidioc_enum_frameintervals() argument
381 if (ival->index != 0) in vidioc_enum_frameintervals()
383 if (!(ival->pixel_format == V4L2_PIX_FMT_ABGR32 || in vidioc_enum_frameintervals()
384 ((has_yuv(video) && ival->pixel_format == V4L2_PIX_FMT_YUYV)))) in vidioc_enum_frameintervals()
386 if (ival->width != vindev->timings.bt.width || in vidioc_enum_frameintervals()
387 ival->height != vindev->timings.bt.height) in vidioc_enum_frameintervals()
390 ival->type = V4L2_FRMIVAL_TYPE_STEPWISE; in vidioc_enum_frameintervals()
391 ival->stepwise.max.denominator = MGB4_HW_FREQ; in vidioc_enum_frameintervals()
392 ival->stepwise.max.numerator = 0xFFFFFFFF; in vidioc_enum_frameintervals()
393 ival->stepwise.min.denominator = vindev->timings.bt.pixelclock; in vidioc_enum_frameintervals()
[all …]
/linux/drivers/media/pci/zoran/
H A Dzr36050.c590 int *ival = (int *)data; in zr36050_control() local
600 *ival = ptr->status1; in zr36050_control()
606 *ival = CODEC_MODE_BJPG; in zr36050_control()
612 if (*ival != CODEC_MODE_BJPG) in zr36050_control()
629 *ival = ptr->total_code_vol; in zr36050_control()
635 ptr->total_code_vol = *ival; in zr36050_control()
642 *ival = zr36050_read_scalefactor(ptr); in zr36050_control()
648 ptr->scalefact = *ival; in zr36050_control()
H A Dzr36060.c646 int *ival = (int *)data; in zr36060_control() local
656 *ival = ptr->status; in zr36060_control()
662 *ival = CODEC_MODE_BJPG; in zr36060_control()
668 if (*ival != CODEC_MODE_BJPG) in zr36060_control()
685 *ival = ptr->total_code_vol; in zr36060_control()
691 ptr->total_code_vol = *ival; in zr36060_control()
698 *ival = zr36060_read_scalefactor(ptr); in zr36060_control()
704 ptr->scalefact = *ival; in zr36060_control()
H A Dzr36016.c259 int *ival = (int *)data; in zr36016_control() local
268 *ival = 0; in zr36016_control()
274 *ival = 0; in zr36016_control()
280 if (*ival != 0) in zr36016_control()
/linux/drivers/media/i2c/
H A Dmt9v011.c367 struct v4l2_subdev_frame_interval *ival) in mt9v011_get_frame_interval() argument
373 if (ival->which != V4L2_SUBDEV_FORMAT_ACTIVE) in mt9v011_get_frame_interval()
377 &ival->interval.numerator, in mt9v011_get_frame_interval()
378 &ival->interval.denominator); in mt9v011_get_frame_interval()
385 struct v4l2_subdev_frame_interval *ival) in mt9v011_set_frame_interval() argument
387 struct v4l2_fract *tpf = &ival->interval; in mt9v011_set_frame_interval()
394 if (ival->which != V4L2_SUBDEV_FORMAT_ACTIVE) in mt9v011_set_frame_interval()
H A Dov6650.c804 struct v4l2_subdev_frame_interval *ival) in ov6650_get_frame_interval() argument
813 if (ival->which != V4L2_SUBDEV_FORMAT_ACTIVE) in ov6650_get_frame_interval()
816 ival->interval = priv->tpf; in ov6650_get_frame_interval()
819 ival->interval.numerator, ival->interval.denominator); in ov6650_get_frame_interval()
826 struct v4l2_subdev_frame_interval *ival) in ov6650_set_frame_interval() argument
830 struct v4l2_fract *tpf = &ival->interval; in ov6650_set_frame_interval()
837 if (ival->which != V4L2_SUBDEV_FORMAT_ACTIVE) in ov6650_set_frame_interval()
H A Dtvp514x.c744 struct v4l2_subdev_frame_interval *ival) in tvp514x_get_frame_interval() argument
753 if (ival->which != V4L2_SUBDEV_FORMAT_ACTIVE) in tvp514x_get_frame_interval()
759 ival->interval = in tvp514x_get_frame_interval()
768 struct v4l2_subdev_frame_interval *ival) in tvp514x_set_frame_interval() argument
778 if (ival->which != V4L2_SUBDEV_FORMAT_ACTIVE) in tvp514x_set_frame_interval()
781 timeperframe = &ival->interval; in tvp514x_set_frame_interval()
H A Dmt9v111.c724 struct v4l2_subdev_frame_interval *ival) in mt9v111_set_frame_interval() argument
727 struct v4l2_fract *tpf = &ival->interval; in mt9v111_set_frame_interval()
737 if (ival->which != V4L2_SUBDEV_FORMAT_ACTIVE) in mt9v111_set_frame_interval()
784 struct v4l2_subdev_frame_interval *ival) in mt9v111_get_frame_interval() argument
787 struct v4l2_fract *tpf = &ival->interval; in mt9v111_get_frame_interval()
793 if (ival->which != V4L2_SUBDEV_FORMAT_ACTIVE) in mt9v111_get_frame_interval()
H A Dmt9m114.c1592 struct v4l2_fract *ival = &interval->interval; in mt9m114_ifp_get_frame_interval() local
1604 ival->numerator = 1; in mt9m114_ifp_get_frame_interval()
1605 ival->denominator = sensor->ifp.frame_rate; in mt9m114_ifp_get_frame_interval()
1616 struct v4l2_fract *ival = &interval->interval; in mt9m114_ifp_set_frame_interval() local
1629 if (ival->numerator != 0 && ival->denominator != 0) in mt9m114_ifp_set_frame_interval()
1631 ival->denominator / ival->numerator, in mt9m114_ifp_set_frame_interval()
1636 ival->numerator = 1; in mt9m114_ifp_set_frame_interval()
1637 ival->denominator = sensor->ifp.frame_rate; in mt9m114_ifp_set_frame_interval()
H A Dov772x.c722 struct v4l2_subdev_frame_interval *ival) in ov772x_get_frame_interval() argument
725 struct v4l2_fract *tpf = &ival->interval; in ov772x_get_frame_interval()
731 if (ival->which != V4L2_SUBDEV_FORMAT_ACTIVE) in ov772x_get_frame_interval()
742 struct v4l2_subdev_frame_interval *ival) in ov772x_set_frame_interval() argument
745 struct v4l2_fract *tpf = &ival->interval; in ov772x_set_frame_interval()
753 if (ival->which != V4L2_SUBDEV_FORMAT_ACTIVE) in ov772x_set_frame_interval()
H A Dov7670.c1159 struct v4l2_subdev_frame_interval *ival) in ov7670_get_frame_interval() argument
1167 if (ival->which != V4L2_SUBDEV_FORMAT_ACTIVE) in ov7670_get_frame_interval()
1170 info->devtype->get_framerate(sd, &ival->interval); in ov7670_get_frame_interval()
1177 struct v4l2_subdev_frame_interval *ival) in ov7670_set_frame_interval() argument
1179 struct v4l2_fract *tpf = &ival->interval; in ov7670_set_frame_interval()
1186 if (ival->which != V4L2_SUBDEV_FORMAT_ACTIVE) in ov7670_set_frame_interval()
/linux/include/linux/mfd/
H A Drc5t583.h335 unsigned int ival; in rc5t583_read() local
337 ret = regmap_read(rc5t583->regmap, reg, &ival); in rc5t583_read()
339 *val = (uint8_t)ival; in rc5t583_read()
/linux/drivers/scsi/qla4xxx/
H A Dql4_isr.c1355 uint32_t ival = 0; in qla4_83xx_mailbox_intr_handler() local
1359 ival = readl(&ha->qla4_83xx_reg->risc_intr); in qla4_83xx_mailbox_intr_handler()
1360 if (ival == 0) { in qla4_83xx_mailbox_intr_handler()
1364 ival = readl(&ha->qla4_83xx_reg->mb_int_mask); in qla4_83xx_mailbox_intr_handler()
1365 ival &= ~INT_MASK_FW_MB; in qla4_83xx_mailbox_intr_handler()
1366 writel(ival, &ha->qla4_83xx_reg->mb_int_mask); in qla4_83xx_mailbox_intr_handler()
1373 ival = readl(&ha->qla4_83xx_reg->mb_int_mask); in qla4_83xx_mailbox_intr_handler()
1374 ival &= ~INT_MASK_FW_MB; in qla4_83xx_mailbox_intr_handler()
1375 writel(ival, &ha->qla4_83xx_reg->mb_int_mask); in qla4_83xx_mailbox_intr_handler()
1433 uint32_t ival = 0; in qla4_8xxx_msix_rsp_q() local
[all …]
/linux/drivers/iio/dac/
H A Dadi-axi-dac.c637 u32 ival; in __axi_dac_bus_reg_write() local
647 ival = FIELD_PREP(AXI_DAC_CUSTOM_WR_DATA_16, val); in __axi_dac_bus_reg_write()
649 ival = FIELD_PREP(AXI_DAC_CUSTOM_WR_DATA_8, val); in __axi_dac_bus_reg_write()
651 ret = regmap_write(st->regmap, AXI_DAC_CUSTOM_WR_REG, ival); in __axi_dac_bus_reg_write()
677 AXI_DAC_UI_STATUS_REG, ival, in __axi_dac_bus_reg_write()
678 FIELD_GET(AXI_DAC_UI_STATUS_IF_BUSY, ival) == 0, in __axi_dac_bus_reg_write()
/linux/drivers/media/v4l2-core/
H A Dv4l2-common.c189 struct v4l2_subdev_frame_interval ival = { 0 }; in v4l2_g_parm_cap() local
200 ret = v4l2_subdev_call_state_active(sd, pad, get_frame_interval, &ival); in v4l2_g_parm_cap()
202 a->parm.capture.timeperframe = ival.interval; in v4l2_g_parm_cap()
210 struct v4l2_subdev_frame_interval ival = { in v4l2_s_parm_cap() local
227 ret = v4l2_subdev_call_state_active(sd, pad, set_frame_interval, &ival); in v4l2_s_parm_cap()
229 a->parm.capture.timeperframe = ival.interval; in v4l2_s_parm_cap()
/linux/tools/testing/selftests/breakpoints/
H A Dbreakpoint_test.c177 char cval; short sval; int ival; long long lval; in read_var() local
189 ival = *(int *)&dummy_var[i]; in read_var()
/linux/arch/riscv/include/asm/
H A Dkvm_vcpu_pmu.h84 unsigned long ctr_mask, unsigned long flags, u64 ival,
/linux/drivers/pinctrl/starfive/
H A Dpinctrl-starfive-jh7110.c260 u32 ival, imask; in jh7110_set_gpiomux() local
275 ival = (pin + 2) << ishift; in jh7110_set_gpiomux()
287 ival |= readl_relaxed(reg_din) & ~imask; in jh7110_set_gpiomux()
288 writel_relaxed(ival, reg_din); in jh7110_set_gpiomux()
/linux/tools/testing/selftests/kvm/riscv/
H A Dsbi_pmu_test.c95 unsigned long ival) in start_counter() argument
100 ival, 0, 0); in start_counter()
/linux/drivers/perf/
H A Driscv_pmu_sbi.c711 static void pmu_sbi_ctr_start(struct perf_event *event, u64 ival) in pmu_sbi_ctr_start() argument
720 1, flag, ival, ival >> 32, 0); in pmu_sbi_ctr_start()
723 1, flag, ival, 0, 0); in pmu_sbi_ctr_start()
/linux/net/can/
H A Dbcm.c407 ktime_t ival; in bcm_tx_set_expiry() local
410 ival = op->kt_ival1; in bcm_tx_set_expiry()
412 ival = op->kt_ival2; in bcm_tx_set_expiry()
416 hrtimer_set_expires(hrt, ktime_add(ktime_get(), ival)); in bcm_tx_set_expiry()

12