/drivers/staging/android/ |
D | ashmem.c | 81 #define range_size(range) \ argument 82 ((range)->pgend - (range)->pgstart + 1) 84 #define range_on_lru(range) \ argument 85 ((range)->purged == ASHMEM_NOT_PURGED) 87 #define page_range_subsumes_range(range, start, end) \ argument 88 (((range)->pgstart >= (start)) && ((range)->pgend <= (end))) 90 #define page_range_subsumed_by_range(range, start, end) \ argument 91 (((range)->pgstart <= (start)) && ((range)->pgend >= (end))) 93 #define page_in_range(range, page) \ argument 94 (((range)->pgstart <= (page)) && ((range)->pgend >= (page))) [all …]
|
/drivers/pci/hotplug/ |
D | ibmphp_res.c | 387 static int add_bus_range (int type, struct range_node *range, struct bus_node *bus_cur) in add_bus_range() argument 411 if (range->start < range_cur->start) in add_bus_range() 421 bus_cur->rangeMem = range; in add_bus_range() 424 bus_cur->rangePFMem = range; in add_bus_range() 427 bus_cur->rangeIO = range; in add_bus_range() 430 range->next = range_cur; in add_bus_range() 431 range->rangeno = 1; in add_bus_range() 435 range->next = NULL; in add_bus_range() 436 range_prev->next = range; in add_bus_range() 437 range->rangeno = range_prev->rangeno + 1; in add_bus_range() [all …]
|
/drivers/staging/comedi/drivers/ |
D | jr3_pci.c | 115 struct comedi_krange range; member 116 } range[9]; member 635 p->range[0].range.min = in jr3_pci_poll_subdevice() 637 p->range[0].range.max = in jr3_pci_poll_subdevice() 639 p->range[1].range.min = in jr3_pci_poll_subdevice() 641 p->range[1].range.max = in jr3_pci_poll_subdevice() 643 p->range[2].range.min = in jr3_pci_poll_subdevice() 645 p->range[2].range.max = in jr3_pci_poll_subdevice() 647 p->range[3].range.min = in jr3_pci_poll_subdevice() 649 p->range[3].range.max = in jr3_pci_poll_subdevice() [all …]
|
D | cb_pcidda.c | 259 unsigned int range); 615 unsigned int channel, range; in cb_pcidda_ao_winsn() local 618 range = CR_RANGE(insn->chanspec); in cb_pcidda_ao_winsn() 621 if (range != devpriv->ao_range[channel]) in cb_pcidda_ao_winsn() 622 cb_pcidda_calibrate(dev, channel, range); in cb_pcidda_ao_winsn() 628 switch (range) { in cb_pcidda_ao_winsn() 788 unsigned int range) in offset_eeprom_address() argument 790 return 0x7 + 2 * range + 12 * ao_channel; in offset_eeprom_address() 795 unsigned int range) in gain_eeprom_address() argument 797 return 0x8 + 2 * range + 12 * ao_channel; in gain_eeprom_address() [all …]
|
/drivers/mfd/ |
D | ab8500-debugfs.c | 42 const struct ab8500_reg_range *range; member 53 .range = 0, 57 .range = (struct ab8500_reg_range[]) { 74 .range = (struct ab8500_reg_range[]) { 95 .range = (struct ab8500_reg_range[]) { 112 .range = (struct ab8500_reg_range[]) { 139 .range = (struct ab8500_reg_range[]) { 152 .range = (struct ab8500_reg_range[]) { 193 .range = NULL, 197 .range = (struct ab8500_reg_range[]) { [all …]
|
D | ab5500-debugfs.c | 21 .range = (struct ab5500_reg_range[]) { 32 .range = (struct ab5500_reg_range[]) { 68 .range = (struct ab5500_reg_range[]) { 84 .range = (struct ab5500_reg_range[]) { 150 .range = (struct ab5500_reg_range[]) { 171 .range = (struct ab5500_reg_range[]) { 187 .range = (struct ab5500_reg_range[]) { 203 .range = (struct ab5500_reg_range[]) { 269 .range = (struct ab5500_reg_range[]) { 295 .range = (struct ab5500_reg_range[]) { [all …]
|
D | ab5500-core.c | 49 #define NO_RANGE {.count = 0, .range = NULL,} 57 .range = (struct ab5500_reg_range[]) { 128 .range = (struct ab5500_reg_range[]) { 169 .range = (struct ab5500_reg_range[]) { 185 .range = (struct ab5500_reg_range[]) { 256 .range = (struct ab5500_reg_range[]) { 322 .range = (struct ab5500_reg_range[]) { 338 .range = (struct ab5500_reg_range[]) { 354 .range = (struct ab5500_reg_range[]) { 375 .range = (struct ab5500_reg_range[]) { [all …]
|
/drivers/base/ |
D | map.c | 23 unsigned long range; member 32 int kobj_map(struct kobj_map *domain, dev_t dev, unsigned long range, in kobj_map() argument 36 unsigned n = MAJOR(dev + range - 1) - MAJOR(dev) + 1; in kobj_map() 54 p->range = range; in kobj_map() 60 while (*s && (*s)->range < range) in kobj_map() 69 void kobj_unmap(struct kobj_map *domain, dev_t dev, unsigned long range) in kobj_unmap() argument 71 unsigned n = MAJOR(dev + range - 1) - MAJOR(dev) + 1; in kobj_unmap() 84 if (p->dev == dev && p->range == range) { in kobj_unmap() 109 if (p->dev > dev || p->dev + p->range - 1 < dev) in kobj_lookup() 111 if (p->range - 1 >= best) in kobj_lookup() [all …]
|
/drivers/hid/ |
D | hid-lg4ff.c | 47 static void hid_lg4ff_set_range_dfp(struct hid_device *hid, u16 range); 48 static void hid_lg4ff_set_range_g25(struct hid_device *hid, u16 range); 52 static DEVICE_ATTR(range, S_IRWXU | S_IRWXG | S_IRWXO, lg4ff_range_show, lg4ff_range_store); 58 __u16 range; member 63 void (*set_range)(struct hid_device *hid, u16 range); 79 void (*set_range)(struct hid_device *hid, u16 range); 200 static void hid_lg4ff_set_range_g25(struct hid_device *hid, u16 range) in hid_lg4ff_set_range_g25() argument 204 dbg_hid("G25/G27/DFGT: setting range to %u\n", range); in hid_lg4ff_set_range_g25() 208 report->field[0]->value[2] = range & 0x00ff; in hid_lg4ff_set_range_g25() 209 report->field[0]->value[3] = (range & 0xff00) >> 8; in hid_lg4ff_set_range_g25() [all …]
|
/drivers/pinctrl/ |
D | core.c | 236 struct pinctrl_gpio_range *range = NULL; in pinctrl_match_gpio_range() local 239 list_for_each_entry(range, &pctldev->gpio_ranges, node) { in pinctrl_match_gpio_range() 241 if (gpio >= range->base && in pinctrl_match_gpio_range() 242 gpio < range->base + range->npins) { in pinctrl_match_gpio_range() 243 return range; in pinctrl_match_gpio_range() 268 struct pinctrl_gpio_range *range; in pinctrl_get_device_gpio_range() local 270 range = pinctrl_match_gpio_range(pctldev, gpio); in pinctrl_get_device_gpio_range() 271 if (range != NULL) { in pinctrl_get_device_gpio_range() 273 *outrange = range; in pinctrl_get_device_gpio_range() 290 struct pinctrl_gpio_range *range) in pinctrl_add_gpio_range() argument [all …]
|
D | pinmux.h | 20 struct pinctrl_gpio_range *range, 23 struct pinctrl_gpio_range *range); 25 struct pinctrl_gpio_range *range, 53 struct pinctrl_gpio_range *range, in pinmux_request_gpio() argument 61 struct pinctrl_gpio_range *range) in pinmux_free_gpio() argument 66 struct pinctrl_gpio_range *range, in pinmux_gpio_direction() argument
|
D | pinctrl-u300.c | 1055 struct pinctrl_gpio_range *range; in u300_match_gpio_range() local 1057 range = &u300_gpio_ranges[i]; in u300_match_gpio_range() 1058 if (pin >= range->pin_base && in u300_match_gpio_range() 1059 pin <= (range->pin_base + range->npins - 1)) in u300_match_gpio_range() 1060 return range; in u300_match_gpio_range() 1069 struct pinctrl_gpio_range *range = u300_match_gpio_range(pin); in u300_pin_config_get() local 1072 if (!range) in u300_pin_config_get() 1075 return u300_gpio_config_get(range->gc, in u300_pin_config_get() 1076 (pin - range->pin_base + range->base), in u300_pin_config_get() 1084 struct pinctrl_gpio_range *range = u300_match_gpio_range(pin); in u300_pin_config_set() local [all …]
|
/drivers/staging/rtl8192u/ |
D | r8192U_wx.c | 383 struct iw_range *range = (struct iw_range *)extra; in rtl8180_wx_get_range() local 384 struct iw_range_with_scan_capa* tmp = (struct iw_range_with_scan_capa*)range; in rtl8180_wx_get_range() 389 wrqu->data.length = sizeof(*range); in rtl8180_wx_get_range() 390 memset(range, 0, sizeof(*range)); in rtl8180_wx_get_range() 401 range->throughput = 5 * 1000 * 1000; in rtl8180_wx_get_range() 413 range->sensitivity = priv->max_sens; /* signal level threshold range */ in rtl8180_wx_get_range() 415 range->max_qual.qual = 100; in rtl8180_wx_get_range() 417 range->max_qual.level = 0; in rtl8180_wx_get_range() 418 range->max_qual.noise = -98; in rtl8180_wx_get_range() 419 range->max_qual.updated = 7; /* Updated all three */ in rtl8180_wx_get_range() [all …]
|
/drivers/staging/vt6656/ |
D | iwctl.c | 513 struct iw_range *range = (struct iw_range *) extra; in iwctl_giwrange() local 520 memset(range, 0, sizeof(struct iw_range)); in iwctl_giwrange() 521 range->min_nwid = 0x0000; in iwctl_giwrange() 522 range->max_nwid = 0x0000; in iwctl_giwrange() 523 range->num_channels = 14; in iwctl_giwrange() 528 range->freq[k].i = i + 1; // List index in iwctl_giwrange() 529 range->freq[k].m = frequency_list[i] * 100000; in iwctl_giwrange() 530 range->freq[k++].e = 1; // Values in table in MHz -> * 10^5 * 10 in iwctl_giwrange() 532 range->num_frequency = k; in iwctl_giwrange() 534 range->max_qual.qual = 100; in iwctl_giwrange() [all …]
|
/drivers/staging/iio/magnetometer/ |
D | hmc5843.c | 131 u8 range; member 406 u8 range; in show_range() local 410 range = data->range; in show_range() 411 return sprintf(buf, "%d\n", regval_to_input_field_mg[range]); in show_range() 423 unsigned long range = 0; in set_range() local 426 error = strict_strtoul(buf, 10, &range); in set_range() 431 dev_dbg(dev, "set range to %lu\n", range); in set_range() 433 if (range > RANGE_6_5) { in set_range() 438 data->range = range; in set_range() 439 range = range << RANGE_GAIN_OFFSET; in set_range() [all …]
|
/drivers/staging/rtl8192e/rtl8192e/ |
D | rtl_wx.c | 384 struct iw_range *range = (struct iw_range *)extra; in rtl8192_wx_get_range() local 389 wrqu->data.length = sizeof(*range); in rtl8192_wx_get_range() 390 memset(range, 0, sizeof(*range)); in rtl8192_wx_get_range() 393 range->throughput = 130 * 1000 * 1000; in rtl8192_wx_get_range() 397 range->sensitivity = priv->max_sens; in rtl8192_wx_get_range() 400 range->max_qual.qual = 100; in rtl8192_wx_get_range() 401 range->max_qual.level = 0; in rtl8192_wx_get_range() 402 range->max_qual.noise = 0; in rtl8192_wx_get_range() 403 range->max_qual.updated = 7; /* Updated all three */ in rtl8192_wx_get_range() 405 range->avg_qual.qual = 70; /* > 8% missed beacons is 'bad' */ in rtl8192_wx_get_range() [all …]
|
/drivers/staging/vt6655/ |
D | iwctl.c | 566 struct iw_range *range = (struct iw_range *) extra; in iwctl_giwrange() local 574 memset(range, 0, sizeof(struct iw_range)); in iwctl_giwrange() 575 range->min_nwid = 0x0000; in iwctl_giwrange() 576 range->max_nwid = 0x0000; in iwctl_giwrange() 577 range->num_channels = 14; in iwctl_giwrange() 582 range->freq[k].i = i + 1; // List index in iwctl_giwrange() 583 range->freq[k].m = frequency_list[i] * 100000; in iwctl_giwrange() 584 range->freq[k++].e = 1; // Values in table in MHz -> * 10^5 * 10 in iwctl_giwrange() 586 range->num_frequency = k; in iwctl_giwrange() 589 range->max_qual.qual = 100; in iwctl_giwrange() [all …]
|
/drivers/regulator/ |
D | tps65912-regulator.c | 125 int range; in tps65912_get_range() local 129 range = tps65912_reg_read(mfd, TPS65912_DCDC1_LIMIT); in tps65912_get_range() 132 range = tps65912_reg_read(mfd, TPS65912_DCDC2_LIMIT); in tps65912_get_range() 135 range = tps65912_reg_read(mfd, TPS65912_DCDC3_LIMIT); in tps65912_get_range() 138 range = tps65912_reg_read(mfd, TPS65912_DCDC4_LIMIT); in tps65912_get_range() 144 if (range >= 0) in tps65912_get_range() 145 range = (range & DCDC_LIMIT_RANGE_MASK) in tps65912_get_range() 148 pmic->dcdc_range[id] = range; in tps65912_get_range() 149 return range; in tps65912_get_range() 379 int range, voltage = 0, id = rdev_get_id(dev); in tps65912_list_voltage_dcdc() local [all …]
|
/drivers/staging/rtl8187se/ |
D | r8180_wx.c | 227 struct iw_range *range = (struct iw_range *)extra; in rtl8180_wx_get_range() local 232 wrqu->data.length = sizeof(*range); in rtl8180_wx_get_range() 233 memset(range, 0, sizeof(*range)); in rtl8180_wx_get_range() 244 range->throughput = 5 * 1000 * 1000; in rtl8180_wx_get_range() 256 range->sensitivity = priv->max_sens; /* signal level threshold range */ in rtl8180_wx_get_range() 258 range->max_qual.qual = 100; in rtl8180_wx_get_range() 260 range->max_qual.level = 0; in rtl8180_wx_get_range() 261 range->max_qual.noise = -98; in rtl8180_wx_get_range() 262 range->max_qual.updated = 7; /* Updated all three */ in rtl8180_wx_get_range() 264 range->avg_qual.qual = 92; /* > 8% missed beacons is 'bad' */ in rtl8180_wx_get_range() [all …]
|
/drivers/net/wireless/bcmdhd/ |
D | wl_iw.c | 672 struct iw_range *range = (struct iw_range *) extra; in wl_iw_get_range() local 695 memset(range, 0, sizeof(*range)); in wl_iw_get_range() 698 range->min_nwid = range->max_nwid = 0; in wl_iw_get_range() 705 range->freq[i].i = dtoh32(list->element[i]); in wl_iw_get_range() 713 range->freq[i].m = wf_channel2mhz(ch, sf); in wl_iw_get_range() 714 range->freq[i].e = 6; in wl_iw_get_range() 716 range->num_frequency = range->num_channels = i; in wl_iw_get_range() 719 range->max_qual.qual = 5; in wl_iw_get_range() 721 range->max_qual.level = 0x100 - 200; /* -200 dBm */ in wl_iw_get_range() 723 range->max_qual.noise = 0x100 - 200; /* -200 dBm */ in wl_iw_get_range() [all …]
|
/drivers/edac/ |
D | amd64_edac.c | 1007 static void read_dram_base_limit_regs(struct amd64_pvt *pvt, unsigned range) in read_dram_base_limit_regs() argument 1010 int off = range << 3; in read_dram_base_limit_regs() 1012 amd64_read_pci_cfg(pvt->F1, DRAM_BASE_LO + off, &pvt->ranges[range].base.lo); in read_dram_base_limit_regs() 1013 amd64_read_pci_cfg(pvt->F1, DRAM_LIMIT_LO + off, &pvt->ranges[range].lim.lo); in read_dram_base_limit_regs() 1018 if (!dram_rw(pvt, range)) in read_dram_base_limit_regs() 1021 amd64_read_pci_cfg(pvt->F1, DRAM_BASE_HI + off, &pvt->ranges[range].base.hi); in read_dram_base_limit_regs() 1022 amd64_read_pci_cfg(pvt->F1, DRAM_LIMIT_HI + off, &pvt->ranges[range].lim.hi); in read_dram_base_limit_regs() 1027 u8 nid = dram_dst_node(pvt, range); in read_dram_base_limit_regs() 1036 pvt->ranges[range].lim.lo &= GENMASK(0, 15); in read_dram_base_limit_regs() 1039 pvt->ranges[range].lim.lo |= ((llim & 0x1fff) << 3 | 0x7) << 16; in read_dram_base_limit_regs() [all …]
|
/drivers/of/ |
D | address.c | 39 u64 (*map)(u32 *addr, const __be32 *range, 58 static u64 of_bus_default_map(u32 *addr, const __be32 *range, in of_bus_default_map() argument 63 cp = of_read_number(range, na); in of_bus_default_map() 64 s = of_read_number(range + na + pna, ns); in of_bus_default_map() 132 static u64 of_bus_pci_map(u32 *addr, const __be32 *range, int na, int ns, in of_bus_pci_map() argument 139 rf = of_bus_pci_get_flags(range); in of_bus_pci_map() 146 cp = of_read_number(range + 1, na - 1); in of_bus_pci_map() 147 s = of_read_number(range + na + pna, ns); in of_bus_pci_map() 241 static u64 of_bus_isa_map(u32 *addr, const __be32 *range, int na, int ns, in of_bus_isa_map() argument 247 if ((addr[0] ^ range[0]) & cpu_to_be32(1)) in of_bus_isa_map() [all …]
|
/drivers/ata/ |
D | pata_at91.c | 71 static int adjust_smc_value(int *value, struct smc_range *range, int size) in adjust_smc_value() argument 73 int maximum = (range + size - 1)->max; in adjust_smc_value() 77 if (*value < range->min) { in adjust_smc_value() 78 remainder = range->min - *value; in adjust_smc_value() 79 *value = range->min; /* nearest valid value */ in adjust_smc_value() 81 } else if ((range->min <= *value) && (*value <= range->max)) in adjust_smc_value() 84 range++; in adjust_smc_value()
|
/drivers/hwmon/ |
D | max16065.c | 96 int range[MAX16065_NUM_ADC + 1];/* voltage range */ member 106 static inline int ADC_TO_MV(int adc, int range) in ADC_TO_MV() argument 108 return (adc * range) / 1024; in ADC_TO_MV() 115 static inline int LIMIT_TO_MV(int limit, int range) in LIMIT_TO_MV() argument 117 return limit * range / 256; in LIMIT_TO_MV() 120 static inline int MV_TO_LIMIT(int mv, int range) in MV_TO_LIMIT() argument 122 return SENSORS_LIMIT(DIV_ROUND_CLOSEST(mv * 256, range), 0, 255); in MV_TO_LIMIT() 207 ADC_TO_MV(adc, data->range[attr->index])); in max16065_show_input() 237 limit = MV_TO_LIMIT(val, data->range[attr2->index]); in max16065_set_limit() 241 = LIMIT_TO_MV(limit, data->range[attr2->index]); in max16065_set_limit() [all …]
|
/drivers/block/paride/ |
D | paride.c | 274 int best, range; in pi_probe_mode() local 279 range = 3; in pi_probe_mode() 281 range = 8; in pi_probe_mode() 282 if ((range == 8) && (pi->port % 8)) in pi_probe_mode() 284 pi->reserved = range; in pi_probe_mode() 289 range = 3; in pi_probe_mode() 291 range = 8; in pi_probe_mode() 292 if ((range == 8) && (pi->port % 8)) in pi_probe_mode() 294 pi->reserved = range; in pi_probe_mode()
|