Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 414) sorted by relevance

12345678910>>...17

/drivers/macintosh/
Dwindfarm_max6690_sensor.c49 struct wf_6690_sensor *max = wf_to_6690(sr); in wf_max6690_get() local
52 if (max->i2c.adapter == NULL) in wf_max6690_get()
56 data = i2c_smbus_read_byte_data(&max->i2c, MAX6690_EXTERNAL_TEMP); in wf_max6690_get()
65 struct wf_6690_sensor *max = wf_to_6690(sr); in wf_max6690_release() local
67 if (max->i2c.adapter) { in wf_max6690_release()
68 i2c_detach_client(&max->i2c); in wf_max6690_release()
69 max->i2c.adapter = NULL; in wf_max6690_release()
71 kfree(max); in wf_max6690_release()
83 struct wf_6690_sensor *max; in wf_max6690_create() local
86 max = kzalloc(sizeof(struct wf_6690_sensor), GFP_KERNEL); in wf_max6690_create()
[all …]
Dvia-pmu-backlight.c23 static void pmu_backlight_init_curve(u8 off, u8 min, u8 max) in pmu_backlight_init_curve() argument
25 int i, flat, count, range = (max - min); in pmu_backlight_init_curve()
40 int i, max = 0; in pmu_backlight_curve_lookup() local
44 max = max((int)bl_curve[i], max); in pmu_backlight_curve_lookup()
49 if (diff < max) { in pmu_backlight_curve_lookup()
50 max = diff; in pmu_backlight_curve_lookup()
Dwindfarm_pm81.c307 pid_param.max = fan_system->ops->get_max(fan_system); in wf_smu_create_sys_fans()
310 max(pid_param.min,fan_hd->ops->get_min(fan_hd)); in wf_smu_create_sys_fans()
311 pid_param.max = in wf_smu_create_sys_fans()
312 min(pid_param.max,fan_hd->ops->get_max(fan_hd)); in wf_smu_create_sys_fans()
318 FIX32TOPRINT(pid_param.itarget), pid_param.min, pid_param.max); in wf_smu_create_sys_fans()
365 scaled = max(scaled, cputarget); in wf_smu_sys_fans_tick()
366 scaled = max(scaled, st->pid.param.min); in wf_smu_sys_fans_tick()
367 scaled = min(scaled, st->pid.param.max); in wf_smu_sys_fans_tick()
452 pid_param.max = fan_cpu_main->ops->get_max(fan_cpu_main); in wf_smu_create_cpu_fans()
459 pid_param.min, pid_param.max); in wf_smu_create_cpu_fans()
[all …]
/drivers/net/sfc/
Dbitfield.h120 #define EFX_EXTRACT_NATIVE(native_element, min, max, low, high) \ argument
121 (((low > max) || (high < min)) ? 0 : \
130 #define EFX_EXTRACT64(element, min, max, low, high) \ argument
131 EFX_EXTRACT_NATIVE(le64_to_cpu(element), min, max, low, high)
137 #define EFX_EXTRACT32(element, min, max, low, high) \ argument
138 EFX_EXTRACT_NATIVE(le32_to_cpu(element), min, max, low, high)
239 #define EFX_INSERT_NATIVE64(min, max, low, high, value) \ argument
240 (((low > max) || (high < min)) ? 0 : \
245 #define EFX_INSERT_NATIVE32(min, max, low, high, value) \ argument
246 (((low > max) || (high < min)) ? 0 : \
[all …]
/drivers/staging/meilhaus/
Dme1600_ao.c83 int unit, int *min, int *max,
88 int *unit, int *min, int *max,
139 subdevice->u_ranges[0].max = 9997558; //10V in me1600_ao_constructor()
142 subdevice->u_ranges[1].max = 9995117; //10V in me1600_ao_constructor()
148 subdevice->i_ranges[0].max = 19995117; //20mA in me1600_ao_constructor()
151 subdevice->i_ranges[1].max = 19995118; //20mA in me1600_ao_constructor()
156 subdevice->i_ranges[0].max = 0; //0mA in me1600_ao_constructor()
159 subdevice->i_ranges[1].max = 0; //0mA in me1600_ao_constructor()
831 int *max, int *maxdata, int *range) in me1600_ao_query_range_by_min_max() argument
842 if ((*max - *min) < 0) { in me1600_ao_query_range_by_min_max()
[all …]
/drivers/gpu/drm/i915/
Dintel_display.c50 int min, max; member
121 .dot = { .min = I8XX_DOT_MIN, .max = I8XX_DOT_MAX },
122 .vco = { .min = I8XX_VCO_MIN, .max = I8XX_VCO_MAX },
123 .n = { .min = I8XX_N_MIN, .max = I8XX_N_MAX },
124 .m = { .min = I8XX_M_MIN, .max = I8XX_M_MAX },
125 .m1 = { .min = I8XX_M1_MIN, .max = I8XX_M1_MAX },
126 .m2 = { .min = I8XX_M2_MIN, .max = I8XX_M2_MAX },
127 .p = { .min = I8XX_P_MIN, .max = I8XX_P_MAX },
128 .p1 = { .min = I8XX_P1_MIN, .max = I8XX_P1_MAX },
133 .dot = { .min = I8XX_DOT_MIN, .max = I8XX_DOT_MAX },
[all …]
/drivers/media/dvb/frontends/
Ddvb-pll.c61 u32 max; member
82 .max = 858000000,
104 .max = 896000000,
121 .max = 862000000,
137 .max = 862000000,
159 .max = 858000000,
173 .max = 858000000,
197 .max = 858000000,
231 .max = 858000000,
255 .max = 863000000,
[all …]
/drivers/net/mlx4/
Dalloc.c49 obj = find_next_zero_bit(bitmap->table, bitmap->max, bitmap->last); in mlx4_bitmap_alloc()
50 if (obj >= bitmap->max) { in mlx4_bitmap_alloc()
51 bitmap->top = (bitmap->top + bitmap->max + bitmap->reserved_top) in mlx4_bitmap_alloc()
53 obj = find_first_zero_bit(bitmap->table, bitmap->max); in mlx4_bitmap_alloc()
56 if (obj < bitmap->max) { in mlx4_bitmap_alloc()
59 if (bitmap->last == bitmap->max) in mlx4_bitmap_alloc()
114 bitmap->max, cnt, align); in mlx4_bitmap_alloc_range()
115 if (obj >= bitmap->max) { in mlx4_bitmap_alloc_range()
116 bitmap->top = (bitmap->top + bitmap->max + bitmap->reserved_top) in mlx4_bitmap_alloc_range()
118 obj = find_aligned_range(bitmap->table, 0, bitmap->max, in mlx4_bitmap_alloc_range()
[all …]
/drivers/infiniband/hw/mthca/
Dmthca_srq.c118 int logsize, max; in mthca_arbel_init_srq_context() local
126 max = srq->max; in mthca_arbel_init_srq_context()
127 logsize = ilog2(max); in mthca_arbel_init_srq_context()
142 mthca_buf_free(dev, srq->max << srq->wqe_shift, &srq->queue, in mthca_free_srq_buf()
158 srq->wrid = kmalloc(srq->max * sizeof (u64), GFP_KERNEL); in mthca_alloc_srq_buf()
162 err = mthca_buf_alloc(dev, srq->max << srq->wqe_shift, in mthca_alloc_srq_buf()
175 for (i = 0; i < srq->max; ++i) { in mthca_alloc_srq_buf()
180 if (i < srq->max - 1) { in mthca_alloc_srq_buf()
194 srq->last = get_wqe(srq, srq->max - 1); in mthca_alloc_srq_buf()
212 srq->max = attr->max_wr; in mthca_alloc_srq()
[all …]
Dmthca_qp.c232 wq->last_comp = wq->max - 1; in mthca_wq_reset()
504 qp_attr->cap.max_send_wr = qp->sq.max; in mthca_query_qp()
505 qp_attr->cap.max_recv_wr = qp->rq.max; in mthca_query_qp()
604 if (qp->rq.max) in __mthca_modify_qp()
605 qp_context->rq_size_stride = ilog2(qp->rq.max) << 3; in __mthca_modify_qp()
608 if (qp->sq.max) in __mthca_modify_qp()
609 qp_context->sq_size_stride = ilog2(qp->sq.max) << 3; in __mthca_modify_qp()
834 qp->sq.last = get_send_wqe(qp, qp->sq.max - 1); in __mthca_modify_qp()
837 qp->rq.last = get_recv_wqe(qp, qp->rq.max - 1); in __mthca_modify_qp()
1039 qp->send_wqe_offset = ALIGN(qp->rq.max << qp->rq.wqe_shift, in mthca_alloc_wqe_buf()
[all …]
Dmthca_allocator.c47 obj = find_next_zero_bit(alloc->table, alloc->max, alloc->last); in mthca_alloc()
48 if (obj >= alloc->max) { in mthca_alloc()
49 alloc->top = (alloc->top + alloc->max) & alloc->mask; in mthca_alloc()
50 obj = find_first_zero_bit(alloc->table, alloc->max); in mthca_alloc()
53 if (obj < alloc->max) { in mthca_alloc()
68 obj &= alloc->max - 1; in mthca_free()
74 alloc->top = (alloc->top + alloc->max) & alloc->mask; in mthca_free()
90 alloc->max = num; in mthca_alloc_init()
/drivers/infiniband/hw/amso1100/
Dc2_pd.c48 obj = find_next_zero_bit(c2dev->pd_table.table, c2dev->pd_table.max, in c2_pd_alloc()
50 if (obj >= c2dev->pd_table.max) in c2_pd_alloc()
52 c2dev->pd_table.max); in c2_pd_alloc()
53 if (obj < c2dev->pd_table.max) { in c2_pd_alloc()
57 if (c2dev->pd_table.last >= c2dev->pd_table.max) in c2_pd_alloc()
76 c2dev->pd_table.max = c2dev->props.max_pd; in c2_init_pd_table()
/drivers/pci/
Dprobe.c450 static void pci_fixup_parent_subordinate_busnr(struct pci_bus *child, int max) in pci_fixup_parent_subordinate_busnr() argument
459 while (parent->parent && parent->subordinate < max) { in pci_fixup_parent_subordinate_busnr()
460 parent->subordinate = max; in pci_fixup_parent_subordinate_busnr()
461 pci_write_config_byte(parent->self, PCI_SUBORDINATE_BUS, max); in pci_fixup_parent_subordinate_busnr()
476 int __devinit pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max, int pass) in pci_scan_bridge() argument
530 if (cmax > max) in pci_scan_bridge()
531 max = cmax; in pci_scan_bridge()
532 if (child->subordinate > max) in pci_scan_bridge()
533 max = child->subordinate; in pci_scan_bridge()
557 if (pci_find_bus(pci_domain_nr(bus), max+1)) in pci_scan_bridge()
[all …]
/drivers/usb/core/
Durb.c290 int xfertype, max; in usb_submit_urb() local
338 max = le16_to_cpu(ep->desc.wMaxPacketSize); in usb_submit_urb()
339 if (max <= 0) { in usb_submit_urb()
343 __func__, max); in usb_submit_urb()
356 int mult = 1 + ((max >> 11) & 0x03); in usb_submit_urb()
357 max &= 0x07ff; in usb_submit_urb()
358 max *= mult; in usb_submit_urb()
365 if (len < 0 || len > max) in usb_submit_urb()
433 max = 1024 * 8; in usb_submit_urb()
441 max = 128; in usb_submit_urb()
[all …]
/drivers/ide/
Dide-timings.c119 m->setup = max(a->setup, b->setup); in ide_timing_merge()
121 m->act8b = max(a->act8b, b->act8b); in ide_timing_merge()
123 m->rec8b = max(a->rec8b, b->rec8b); in ide_timing_merge()
125 m->cyc8b = max(a->cyc8b, b->cyc8b); in ide_timing_merge()
127 m->active = max(a->active, b->active); in ide_timing_merge()
129 m->recover = max(a->recover, b->recover); in ide_timing_merge()
131 m->cycle = max(a->cycle, b->cycle); in ide_timing_merge()
133 m->udma = max(a->udma, b->udma); in ide_timing_merge()
/drivers/infiniband/hw/mlx4/
Dsrq.c93 srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1); in mlx4_ib_create_srq()
96 desc_size = max(32UL, in mlx4_ib_create_srq()
102 buf_size = srq->msrq.max * desc_size; in mlx4_ib_create_srq()
145 srq->tail = srq->msrq.max - 1; in mlx4_ib_create_srq()
148 for (i = 0; i < srq->msrq.max; ++i) { in mlx4_ib_create_srq()
151 cpu_to_be16((i + 1) & (srq->msrq.max - 1)); in mlx4_ib_create_srq()
163 srq->wrid = kmalloc(srq->msrq.max * sizeof (u64), GFP_KERNEL); in mlx4_ib_create_srq()
183 init_attr->attr.max_wr = srq->msrq.max - 1; in mlx4_ib_create_srq()
224 if (attr->srq_limit >= srq->msrq.max) in mlx4_ib_modify_srq()
250 srq_attr->max_wr = srq->msrq.max - 1; in mlx4_ib_query_srq()
[all …]
/drivers/cpufreq/
Dfreq_table.c47 policy->max = policy->cpuinfo.max_freq = max_freq; in cpufreq_frequency_table_cpuinfo()
65 policy->min, policy->max, policy->cpu); in cpufreq_frequency_table_verify()
77 if ((freq >= policy->min) && (freq <= policy->max)) in cpufreq_frequency_table_verify()
79 else if ((next_larger > freq) && (freq > policy->max)) in cpufreq_frequency_table_verify()
84 policy->max = next_larger; in cpufreq_frequency_table_verify()
90 policy->min, policy->max, policy->cpu); in cpufreq_frequency_table_verify()
132 if ((freq < policy->min) || (freq > policy->max)) in cpufreq_frequency_table_target()
/drivers/net/ixgb/
Dixgb_param.c188 int max; member
220 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in ixgb_validate_option()
276 .max = MAX_TXD}} in ixgb_check_options()
295 .max = MAX_RXD}} in ixgb_check_options()
356 .max = MAX_FCRTH}} in ixgb_check_options()
376 .max = MAX_FCRTL}} in ixgb_check_options()
396 .max = MAX_FCPAUSE}} in ixgb_check_options()
429 .max = MAX_RDTR}} in ixgb_check_options()
446 .max = MAX_TIDV}} in ixgb_check_options()
/drivers/parisc/
Dccio-dma.c1031 unsigned long avg = 0, min, max; in ccio_proc_info() local
1052 min = max = ioc->avg_search[0]; in ccio_proc_info()
1055 if(ioc->avg_search[j] > max) in ccio_proc_info()
1056 max = ioc->avg_search[j]; in ccio_proc_info()
1062 min, avg, max); in ccio_proc_info()
1071 max = ioc->usingle_pages - ioc->usg_pages; in ccio_proc_info()
1073 min, max, (int)((max * 1000)/min)); in ccio_proc_info()
1419 unsigned long min, unsigned long max, unsigned long align) in new_ioc_area() argument
1421 if (max <= min) in new_ioc_area()
1424 res->start = (max - size + 1) &~ (align - 1); in new_ioc_area()
[all …]
/drivers/hid/
Dhid-lg.c56 #define lg_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \
60 struct hid_usage *usage, unsigned long **bit, int *max) in lg_ultrax_remote_mapping() argument
93 unsigned long **bit, int *max) in lg_wireless_mapping() argument
146 unsigned long **bit, int *max) in lg_input_mapping() argument
164 lg_ultrax_remote_mapping(hi, usage, bit, max)) in lg_input_mapping()
167 if ((quirks & LG_WIRELESS) && lg_wireless_mapping(hi, usage, bit, max)) in lg_input_mapping()
184 hid_map_usage(hi, usage, bit, max, EV_KEY, in lg_input_mapping()
195 unsigned long **bit, int *max) in lg_input_mapped() argument
Dhid-microsoft.c50 #define ms_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \
53 unsigned long **bit, int *max) in ms_ergonomy_kb_quirk() argument
75 unsigned long **bit, int *max) in ms_presenter_8k_quirk() argument
92 unsigned long **bit, int *max) in ms_input_mapping() argument
100 int ret = ms_ergonomy_kb_quirk(hi, usage, bit, max); in ms_input_mapping()
106 ms_presenter_8k_quirk(hi, usage, bit, max)) in ms_input_mapping()
/drivers/scsi/
Dlibsrp.c47 static int srp_iu_pool_alloc(struct srp_queue *q, size_t max, in srp_iu_pool_alloc() argument
53 q->pool = kcalloc(max, sizeof(struct iu_entry *), GFP_KERNEL); in srp_iu_pool_alloc()
56 q->items = kcalloc(max, sizeof(struct iu_entry), GFP_KERNEL); in srp_iu_pool_alloc()
61 q->queue = kfifo_init((void *) q->pool, max * sizeof(void *), in srp_iu_pool_alloc()
66 for (i = 0, iue = q->items; i < max; i++) { in srp_iu_pool_alloc()
87 size_t max, size_t size) in srp_ring_alloc() argument
92 ring = kcalloc(max, sizeof(struct srp_buf *), GFP_KERNEL); in srp_ring_alloc()
96 for (i = 0; i < max; i++) { in srp_ring_alloc()
108 for (i = 0; i < max && ring[i]; i++) { in srp_ring_alloc()
118 static void srp_ring_free(struct device *dev, struct srp_buf **ring, size_t max, in srp_ring_free() argument
[all …]
Dscsi_devinfo.c404 size_t max; in scsi_get_device_flags() local
413 max = 8; /* max length of vendor */ in scsi_get_device_flags()
414 while ((max > 0) && *vendor == ' ') { in scsi_get_device_flags()
415 max--; in scsi_get_device_flags()
427 min(max, strlen(devinfo->vendor)))) in scsi_get_device_flags()
432 max = 16; /* max length of model */ in scsi_get_device_flags()
433 while ((max > 0) && *model == ' ') { in scsi_get_device_flags()
434 max--; in scsi_get_device_flags()
438 min(max, strlen(devinfo->model)))) in scsi_get_device_flags()
/drivers/net/e1000e/
Dparam.c172 int max; member
202 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in e1000_validate_option()
258 .max = MAX_TXDELAY } } in e1000e_check_options()
277 .max = MAX_TXABSDELAY } } in e1000e_check_options()
296 .max = MAX_RXDELAY } } in e1000e_check_options()
315 .max = MAX_RXABSDELAY } } in e1000e_check_options()
334 .max = MAX_ITR } } in e1000e_check_options()
390 .max = MAX_INTMODE } } in e1000e_check_options()
/drivers/net/atl1e/
Datl1e_param.c110 int max; member
138 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in atl1e_validate_option()
194 .max = ATL1E_MAX_TX_DESC_CNT} } in atl1e_check_options()
213 .max = ATL1E_MAX_RX_MEM_SIZE} } in atl1e_check_options()
233 .max = INT_MOD_MAX_CNT} } in atl1e_check_options()
252 .max = MEDIA_TYPE_10M_HALF} } in atl1e_check_options()

12345678910>>...17