/drivers/staging/iio/light/ |
D | isl29018.c | 240 unsigned long lval; in store_range() local 243 if (strict_strtoul(buf, 10, &lval)) in store_range() 246 if (!(lval == 1000UL || lval == 4000UL || in store_range() 247 lval == 16000UL || lval == 64000UL)) { in store_range() 253 status = isl29018_set_range(chip, lval, &new_range); in store_range() 282 unsigned long lval; in store_resolution() local 285 if (strict_strtoul(buf, 10, &lval)) in store_resolution() 287 if (!(lval == 4 || lval == 8 || lval == 12 || lval == 16)) { in store_resolution() 293 status = isl29018_set_resolution(chip, lval, &new_adc_bit); in store_resolution() 322 unsigned long lval; in store_prox_infrared_suppression() local [all …]
|
/drivers/staging/iio/adc/ |
D | ad7606_core.c | 127 unsigned long lval; in ad7606_store_range() local 129 if (strict_strtoul(buf, 10, &lval)) in ad7606_store_range() 131 if (!(lval == 5000 || lval == 10000)) { in ad7606_store_range() 136 gpio_set_value(st->pdata->gpio_range, lval == 10000); in ad7606_store_range() 137 st->range = lval; in ad7606_store_range() 173 unsigned long lval; in ad7606_store_oversampling_ratio() local 176 if (strict_strtoul(buf, 10, &lval)) in ad7606_store_oversampling_ratio() 179 ret = ad7606_oversampling_get_index(lval); in ad7606_store_oversampling_ratio() 181 dev_err(dev, "oversampling %lu is not supported\n", lval); in ad7606_store_oversampling_ratio() 189 st->oversampling = lval; in ad7606_store_oversampling_ratio()
|
D | spear_adc.c | 249 unsigned long lval; in spear_adc_write_frequency() local 252 ret = kstrtoul(buf, 10, &lval); in spear_adc_write_frequency() 258 if ((lval < CLK_MIN) || (lval > CLK_MAX)) { in spear_adc_write_frequency() 263 count = (apb_clk + lval - 1) / lval; in spear_adc_write_frequency() 267 spear_adc_set_clk(info, lval); in spear_adc_write_frequency()
|
D | ad7192.c | 326 unsigned long lval; in ad7192_write_frequency() local 329 ret = strict_strtoul(buf, 10, &lval); in ad7192_write_frequency() 332 if (lval == 0) in ad7192_write_frequency() 341 div = st->mclk / (lval * st->f_order * 1024); in ad7192_write_frequency()
|
/drivers/staging/comedi/drivers/ |
D | me4000.c | 489 long lval; in me4000_ai_insn_read() local 584 lval = inl(dev->iobase + ME4000_AI_DATA_REG) & 0xFFFF; in me4000_ai_insn_read() 585 data[0] = lval ^ 0x8000; in me4000_ai_insn_read() 1115 long lval; in me4000_ai_isr() local 1178 lval = inl(dev->iobase + ME4000_AI_DATA_REG) & 0xFFFF; in me4000_ai_isr() 1179 lval ^= 0x8000; in me4000_ai_isr() 1181 if (!comedi_buf_put(s->async, lval)) { in me4000_ai_isr() 1223 lval = inl(dev->iobase + ME4000_AI_DATA_REG) & 0xFFFF; in me4000_ai_isr() 1224 lval ^= 0x8000; in me4000_ai_isr() 1226 if (!comedi_buf_put(s->async, lval)) { in me4000_ai_isr()
|
/drivers/infiniband/hw/qib/ |
D | qib_driver.c | 457 u64 lval; in qib_kreceive() local 544 lval = l; in qib_kreceive() 546 dd->f_update_usrhead(rcd, lval, updegr, etail, i); in qib_kreceive() 596 lval = (u64)rcd->head | dd->rhdrhead_intr_off; in qib_kreceive() 597 dd->f_update_usrhead(rcd, lval, updegr, etail, i); in qib_kreceive()
|
/drivers/iio/adc/ |
D | ad7793.c | 369 long lval; in ad7793_write_frequency() local 379 ret = kstrtol(buf, 10, &lval); in ad7793_write_frequency() 383 if (lval == 0) in ad7793_write_frequency() 389 if (lval == st->chip_info->sample_freq_avail[i]) { in ad7793_write_frequency()
|
/drivers/scsi/ |
D | tmscsim.c | 1282 unsigned long lval; in dc390_DataIO_Comm() local 1314 lval = pSRB->SGToBeXferLen; in dc390_DataIO_Comm() 1315 …DEBUG1(printk (KERN_DEBUG " DC390: Start transfer: %li bytes (address %08lx)\n", lval, pSRB->SGBus… in dc390_DataIO_Comm() 1316 DC390_write8 (CtcReg_Low, (u8) lval); in dc390_DataIO_Comm() 1317 lval >>= 8; in dc390_DataIO_Comm() 1318 DC390_write8 (CtcReg_Mid, (u8) lval); in dc390_DataIO_Comm() 1319 lval >>= 8; in dc390_DataIO_Comm() 1320 DC390_write8 (CtcReg_High, (u8) lval); in dc390_DataIO_Comm()
|
/drivers/net/ethernet/dec/tulip/ |
D | de4x5.c | 5381 u32 lval[36]; in de4x5_ioctl() member 5455 tmp.lval[0] = inl(DE4X5_STS); j+=4; in de4x5_ioctl() 5456 tmp.lval[1] = inl(DE4X5_BMR); j+=4; in de4x5_ioctl() 5457 tmp.lval[2] = inl(DE4X5_IMR); j+=4; in de4x5_ioctl() 5458 tmp.lval[3] = inl(DE4X5_OMR); j+=4; in de4x5_ioctl() 5459 tmp.lval[4] = inl(DE4X5_SISR); j+=4; in de4x5_ioctl() 5460 tmp.lval[5] = inl(DE4X5_SICR); j+=4; in de4x5_ioctl() 5461 tmp.lval[6] = inl(DE4X5_STRR); j+=4; in de4x5_ioctl() 5462 tmp.lval[7] = inl(DE4X5_SIGR); j+=4; in de4x5_ioctl() 5464 if (copy_to_user(ioc->data, tmp.lval, ioc->len)) in de4x5_ioctl()
|
/drivers/infiniband/hw/ipath/ |
D | ipath_driver.c | 1271 u64 lval = l; in ipath_kreceive() local 1275 lval |= dd->ipath_rhdrhead_intr_off; in ipath_kreceive() 1276 ipath_write_ureg(dd, ur_rcvhdrhead, lval, in ipath_kreceive()
|