Home
last modified time | relevance | path

Searched refs:limits (Results 1 – 25 of 155) sorted by relevance

1234567

/linux-2.6.39/block/
Dblk-settings.c167 blk_set_default_limits(&q->limits); in blk_queue_make_request()
202 q->limits.bounce_pfn = max(max_low_pfn, b_pfn); in blk_queue_bounce_limit()
206 q->limits.bounce_pfn = b_pfn; in blk_queue_bounce_limit()
211 q->limits.bounce_pfn = b_pfn; in blk_queue_bounce_limit()
232 void blk_limits_max_hw_sectors(struct queue_limits *limits, unsigned int max_hw_sectors) in blk_limits_max_hw_sectors() argument
240 limits->max_hw_sectors = max_hw_sectors; in blk_limits_max_hw_sectors()
241 limits->max_sectors = min_t(unsigned int, max_hw_sectors, in blk_limits_max_hw_sectors()
256 blk_limits_max_hw_sectors(&q->limits, max_hw_sectors); in blk_queue_max_hw_sectors()
268 q->limits.max_discard_sectors = max_discard_sectors; in blk_queue_max_discard_sectors()
289 q->limits.max_segments = max_segments; in blk_queue_max_segments()
[all …]
Dblk-lib.c57 max_discard_sectors = min(q->limits.max_discard_sectors, UINT_MAX >> 9); in blkdev_issue_discard()
58 if (q->limits.discard_granularity) { in blkdev_issue_discard()
59 unsigned int disc_sects = q->limits.discard_granularity >> 9; in blkdev_issue_discard()
/linux-2.6.39/drivers/infiniband/hw/mthca/
Dmthca_main.c170 mdev->limits.mtt_seg_size = (1 << log_mtts_per_seg) * 8; in mthca_dev_lim()
202 mdev->limits.num_ports = dev_lim->num_ports; in mthca_dev_lim()
203 mdev->limits.vl_cap = dev_lim->max_vl; in mthca_dev_lim()
204 mdev->limits.mtu_cap = dev_lim->max_mtu; in mthca_dev_lim()
205 mdev->limits.gid_table_len = dev_lim->max_gids; in mthca_dev_lim()
206 mdev->limits.pkey_table_len = dev_lim->max_pkeys; in mthca_dev_lim()
207 mdev->limits.local_ca_ack_delay = dev_lim->local_ca_ack_delay; in mthca_dev_lim()
213 mdev->limits.max_sg = min_t(int, dev_lim->max_sg, in mthca_dev_lim()
220 mdev->limits.max_wqes = dev_lim->max_qp_sz; in mthca_dev_lim()
221 mdev->limits.max_qp_init_rdma = dev_lim->max_requester_per_qp; in mthca_dev_lim()
[all …]
Dmthca_profile.c97 profile[MTHCA_RES_MTT].size = dev->limits.mtt_seg_size; in mthca_make_profile()
179 dev->limits.num_qps = profile[i].num; in mthca_make_profile()
184 dev->limits.num_eecs = profile[i].num; in mthca_make_profile()
189 dev->limits.num_srqs = profile[i].num; in mthca_make_profile()
194 dev->limits.num_cqs = profile[i].num; in mthca_make_profile()
205 dev->limits.num_eqs = profile[i].num; in mthca_make_profile()
218 dev->limits.num_mgms = profile[i].num >> 1; in mthca_make_profile()
219 dev->limits.num_amgms = profile[i].num >> 1; in mthca_make_profile()
226 dev->limits.num_mpts = profile[i].num; in mthca_make_profile()
232 dev->limits.num_mtt_segs = profile[i].num; in mthca_make_profile()
[all …]
Dmthca_mr.c223 for (i = dev->limits.mtt_seg_size / 8; i < size; i <<= 1) in __mthca_alloc_mtt()
270 mtt->first_seg * dev->limits.mtt_seg_size + in __mthca_write_mtt()
329 mtts = dev->mr_table.tavor_fmr.mtt_base + mtt->first_seg * dev->limits.mtt_seg_size + in mthca_tavor_write_mtt_seg()
348 BUG_ON(s % dev->limits.mtt_seg_size); in mthca_arbel_write_mtt_seg()
351 s / dev->limits.mtt_seg_size, &dma_handle); in mthca_arbel_write_mtt_seg()
486 mr->mtt->first_seg * dev->limits.mtt_seg_size); in mthca_mr_alloc()
500 key & (dev->limits.num_mpts - 1), in mthca_mr_alloc()
574 (dev->limits.num_mpts - 1), in mthca_free_mr()
613 idx = key & (dev->limits.num_mpts - 1); in mthca_fmr_alloc()
633 mtt_seg = mr->mtt->first_seg * dev->limits.mtt_seg_size; in mthca_fmr_alloc()
[all …]
Dmthca_uar.c59 dev->limits.num_uars, in mthca_init_uar_table()
60 dev->limits.num_uars - 1, in mthca_init_uar_table()
61 dev->limits.reserved_uars + 1); in mthca_init_uar_table()
Dmthca_provider.c98 props->page_size_cap = mdev->limits.page_size_cap; in mthca_query_device()
99 props->max_qp = mdev->limits.num_qps - mdev->limits.reserved_qps; in mthca_query_device()
100 props->max_qp_wr = mdev->limits.max_wqes; in mthca_query_device()
101 props->max_sge = mdev->limits.max_sg; in mthca_query_device()
102 props->max_cq = mdev->limits.num_cqs - mdev->limits.reserved_cqs; in mthca_query_device()
103 props->max_cqe = mdev->limits.max_cqes; in mthca_query_device()
104 props->max_mr = mdev->limits.num_mpts - mdev->limits.reserved_mrws; in mthca_query_device()
105 props->max_pd = mdev->limits.num_pds - mdev->limits.reserved_pds; in mthca_query_device()
107 props->max_qp_init_rd_atom = mdev->limits.max_qp_init_rdma; in mthca_query_device()
109 props->max_srq = mdev->limits.num_srqs - mdev->limits.reserved_srqs; in mthca_query_device()
[all …]
Dmthca_srq.c208 if (attr->max_wr > dev->limits.max_srq_wqes || in mthca_alloc_srq()
209 attr->max_sge > dev->limits.max_srq_sge) in mthca_alloc_srq()
225 if (!mthca_is_memfree(dev) && (ds > dev->limits.max_desc_sz)) in mthca_alloc_srq()
284 srq->srqn & (dev->limits.num_srqs - 1), in mthca_alloc_srq()
359 srq->srqn & (dev->limits.num_srqs - 1)); in mthca_free_srq()
448 srq = mthca_array_get(&dev->srq_table.srq, srqn & (dev->limits.num_srqs - 1)); in mthca_srq_event()
662 return dev->limits.max_sg; in mthca_max_srq_sge()
678 return min_t(int, dev->limits.max_sg, in mthca_max_srq_sge()
679 ((1 << (fls(dev->limits.max_desc_sz) - 1)) - in mthca_max_srq_sge()
694 dev->limits.num_srqs, in mthca_init_srq_table()
[all …]
Dmthca_qp.c244 qp = mthca_array_get(&dev->qp_table.qp, qpn & (dev->limits.num_qps - 1)); in mthca_qp_event()
316 param.port_width = dev->limits.port_width_cap; in init_port()
317 param.vl_cap = dev->limits.vl_cap; in init_port()
318 param.mtu_cap = dev->limits.mtu_cap; in init_port()
319 param.gid_cap = dev->limits.gid_table_len; in init_port()
320 param.pkey_cap = dev->limits.pkey_table_len; in init_port()
404 if (ib_ah_attr->port_num == 0 || ib_ah_attr->port_num > dev->limits.num_ports) in to_ib_ah_attr()
415 ib_ah_attr->grh.sgid_index = path->mgid_index & (dev->limits.gid_table_len - 1); in to_ib_ah_attr()
528 if (ah->grh.sgid_index >= dev->limits.gid_table_len) { in mthca_path_set()
530 ah->grh.sgid_index, dev->limits.gid_table_len-1); in mthca_path_set()
[all …]
Dmthca_mcg.c225 BUG_ON(index < dev->limits.num_mgms); in mthca_multicast_attach()
316 BUG_ON(amgm_index_to_free < dev->limits.num_mgms); in mthca_multicast_detach()
341 BUG_ON(index < dev->limits.num_mgms); in mthca_multicast_detach()
355 int table_size = dev->limits.num_mgms + dev->limits.num_amgms; in mthca_init_mcg_table()
360 dev->limits.num_mgms); in mthca_init_mcg_table()
Dmthca_pd.c72 dev->limits.num_pds, in mthca_init_pd_table()
74 dev->limits.reserved_pds); in mthca_init_pd_table()
Dmthca_av.c98 if (dev->limits.stat_rate_support == 0x3 && mthca_rate) in mthca_rate_to_ib()
147 if (!(dev->limits.stat_rate_support & (1 << rate))) in mthca_get_rate()
209 av->gid_index = (ah_attr->port_num - 1) * dev->limits.gid_table_len + in mthca_create_ah()
283 ah->av->gid_index % dev->limits.gid_table_len, in mthca_read_ah()
317 (dev->limits.gid_table_len - 1); in mthca_ah_query()
Dmthca_mad.c299 for (p = 0; p < dev->limits.num_ports; ++p) in mthca_create_agents()
313 for (p = 1; p <= dev->limits.num_ports; ++p) { in mthca_create_agents()
325 for (p = 0; p < dev->limits.num_ports; ++p) in mthca_create_agents()
338 for (p = 0; p < dev->limits.num_ports; ++p) { in mthca_free_agents()
/linux-2.6.39/drivers/video/matrox/
Dmatroxfb_misc.c542 minfo->limits.pixel.vcomax = maxdac; in parse_pins1()
554 minfo->limits.pixel.vcomax = 220000; in default_pins1()
563 minfo->limits.pixel.vcomax = in parse_pins2()
564 minfo->limits.system.vcomax = (bd->pins[41] == 0xFF) ? 230000 : ((bd->pins[41] + 100) * 1000); in parse_pins2()
577 minfo->limits.pixel.vcomax = in default_pins2()
578 minfo->limits.system.vcomax = 230000; in default_pins2()
587 minfo->limits.pixel.vcomax = in parse_pins3()
588 minfo->limits.system.vcomax = (bd->pins[36] == 0xFF) ? 230000 : ((bd->pins[36] + 100) * 1000); in parse_pins3()
605 minfo->limits.pixel.vcomax = in default_pins3()
606 minfo->limits.system.vcomax = 230000; in default_pins3()
[all …]
/linux-2.6.39/drivers/macintosh/
Dtherm_adt746x.c79 u8 limits[3]; member
174 th->limits[0], th->limits[1], th->limits[2], in remove_thermostat()
280 th->limits[0], th->limits[1], th->limits[2], in display_stats()
298 int var = th->temps[i] - th->limits[i]; in update_fans_speed()
375 th->limits[i] = default_limits_chip[i] + limit_adjust; in set_limit()
376 write_reg(th, LIMIT_REG[i], th->limits[i]); in set_limit()
379 th->limits[i] = default_limits_local[i] + limit_adjust; in set_limit()
425 th->initial_limits[2], th->limits[0], th->limits[1], in probe_thermostat()
426 th->limits[2]); in probe_thermostat()
531 BUILD_SHOW_FUNC_INT(sensor1_limit, thermostat->limits[1])
[all …]
/linux-2.6.39/include/linux/
Dblkdev.h352 struct queue_limits limits; member
513 return q->limits.cluster; in blk_queue_cluster()
818 extern void blk_limits_io_min(struct queue_limits *limits, unsigned int min);
820 extern void blk_limits_io_opt(struct queue_limits *limits, unsigned int opt);
954 return q->limits.bounce_pfn; in queue_bounce_pfn()
959 return q->limits.seg_boundary_mask; in queue_segment_boundary()
964 return q->limits.max_sectors; in queue_max_sectors()
969 return q->limits.max_hw_sectors; in queue_max_hw_sectors()
974 return q->limits.max_segments; in queue_max_segments()
979 return q->limits.max_segment_size; in queue_max_segment_size()
[all …]
/linux-2.6.39/drivers/md/
Ddm-table.c365 struct queue_limits *limits = data; in device_area_is_invalid() local
370 limits->logical_block_size >> SECTOR_SHIFT; in device_area_is_invalid()
394 limits->logical_block_size, bdevname(bdev, b)); in device_area_is_invalid()
403 limits->logical_block_size, bdevname(bdev, b)); in device_area_is_invalid()
499 struct queue_limits *limits = data; in dm_set_device_limits() local
510 if (bdev_stack_limits(limits, bdev, start) < 0) in dm_set_device_limits()
515 q->limits.physical_block_size, in dm_set_device_limits()
516 q->limits.logical_block_size, in dm_set_device_limits()
517 q->limits.alignment_offset, in dm_set_device_limits()
527 blk_limits_max_hw_sectors(limits, in dm_set_device_limits()
[all …]
Ddm.h53 struct queue_limits *limits);
55 struct queue_limits *limits);
/linux-2.6.39/drivers/target/
Dtarget_core_file.c131 struct queue_limits *limits; in fd_create_virtdevice() local
193 limits = &dev_limits.limits; in fd_create_virtdevice()
194 limits->logical_block_size = bdev_logical_block_size(inode->i_bdev); in fd_create_virtdevice()
195 limits->max_hw_sectors = queue_max_hw_sectors(q); in fd_create_virtdevice()
196 limits->max_sectors = queue_max_sectors(q); in fd_create_virtdevice()
218 limits = &dev_limits.limits; in fd_create_virtdevice()
219 limits->logical_block_size = FD_BLOCKSIZE; in fd_create_virtdevice()
220 limits->max_hw_sectors = FD_MAX_SECTORS; in fd_create_virtdevice()
221 limits->max_sectors = FD_MAX_SECTORS; in fd_create_virtdevice()
Dtarget_core_iblock.c130 struct queue_limits *limits; in iblock_create_virtdevice() local
166 limits = &dev_limits.limits; in iblock_create_virtdevice()
167 limits->logical_block_size = bdev_logical_block_size(bd); in iblock_create_virtdevice()
168 limits->max_hw_sectors = queue_max_hw_sectors(q); in iblock_create_virtdevice()
169 limits->max_sectors = queue_max_sectors(q); in iblock_create_virtdevice()
192 q->limits.max_discard_sectors; in iblock_create_virtdevice()
198 q->limits.discard_granularity; in iblock_create_virtdevice()
200 q->limits.discard_alignment; in iblock_create_virtdevice()
/linux-2.6.39/drivers/platform/x86/
Dintel_ips.c330 struct ips_mcp_limits *limits; member
650 if (avg > (ips->limits->core_temp_limit * 100)) in cpu_exceeded()
675 if (ips->mch_avg_temp > (ips->limits->mch_temp_limit * 100)) in mch_exceeded()
694 if (ips->mcp_power_limit < ips->limits->mcp_power_limit || in verify_limits()
696 ips->mcp_power_limit = ips->limits->mcp_power_limit; in verify_limits()
698 if (ips->mcp_temp_limit < ips->limits->core_temp_limit || in verify_limits()
699 ips->mcp_temp_limit < ips->limits->mch_temp_limit || in verify_limits()
701 ips->mcp_temp_limit = min(ips->limits->core_temp_limit, in verify_limits()
702 ips->limits->mch_temp_limit); in verify_limits()
1377 struct ips_mcp_limits *limits = NULL; in ips_detect_cpu() local
[all …]
/linux-2.6.39/security/apparmor/
Dresource.c94 new_rlim->rlim_max > profile->rlimits.limits[resource].rlim_max)) in aa_task_setrlimit()
134 new->rlimits.limits[i].rlim_max); in __aa_transition_rlimits()
/linux-2.6.39/Documentation/hwmon/
Dlm8025 Temperatures are measured in degrees Celsius. There are two sets of limits
28 drops below the HOT Hysteresis. The Overtemperature Shutdown (OS) limits
32 0.0625 degrees; the limits have a resolution of 1 degree.
Dds162132 both high and low temperature limits which can be user defined (i.e.
52 The alarm bits are set when the high or low limits are met or exceeded and
58 any of the limits have ever been met or exceeded since last power-up or
/linux-2.6.39/drivers/mmc/card/
Dqueue.c133 mq->queue->limits.max_discard_sectors = UINT_MAX; in mmc_init_queue()
135 mq->queue->limits.discard_zeroes_data = 1; in mmc_init_queue()
137 mq->queue->limits.discard_granularity = in mmc_init_queue()
139 mq->queue->limits.discard_alignment = in mmc_init_queue()

1234567