Searched refs:nr (Results 201 - 225 of 1695) sorted by relevance

1234567891011>>

/linux-master/arch/arm/mach-omap1/
H A Dtime.c74 static inline unsigned long notrace omap_mpu_timer_read(int nr) argument
76 omap_mpu_timer_regs_t __iomem *timer = omap_mpu_timer_base(nr);
80 static inline void omap_mpu_set_autoreset(int nr) argument
82 omap_mpu_timer_regs_t __iomem *timer = omap_mpu_timer_base(nr);
87 static inline void omap_mpu_remove_autoreset(int nr) argument
89 omap_mpu_timer_regs_t __iomem *timer = omap_mpu_timer_base(nr);
94 static inline void omap_mpu_timer_start(int nr, unsigned long load_val, argument
97 omap_mpu_timer_regs_t __iomem *timer = omap_mpu_timer_base(nr);
110 static inline void omap_mpu_timer_stop(int nr) argument
112 omap_mpu_timer_regs_t __iomem *timer = omap_mpu_timer_base(nr);
[all...]
/linux-master/include/linux/
H A Dudp.h100 #define udp_test_bit(nr, sk) \
101 test_bit(UDP_FLAGS_##nr, &udp_sk(sk)->udp_flags)
102 #define udp_set_bit(nr, sk) \
103 set_bit(UDP_FLAGS_##nr, &udp_sk(sk)->udp_flags)
104 #define udp_test_and_set_bit(nr, sk) \
105 test_and_set_bit(UDP_FLAGS_##nr, &udp_sk(sk)->udp_flags)
106 #define udp_clear_bit(nr, sk) \
107 clear_bit(UDP_FLAGS_##nr, &udp_sk(sk)->udp_flags)
108 #define udp_assign_bit(nr, sk, val) \
109 assign_bit(UDP_FLAGS_##nr,
[all...]
H A Dsbitmap.h252 unsigned int nr; local
258 nr = SB_NR_TO_BIT(sb, start);
263 __map_depth(sb, index) - nr,
274 * On all other iterations, nr is zero, so this is a noop.
276 depth += nr;
278 nr = find_next_bit(&word, depth, nr);
279 if (nr >= depth)
281 if (!fn(sb, (index << sb->shift) + nr, data))
284 nr
499 int nr; local
[all...]
H A Dpercpu-refcount.h192 * @nr: number of references to get
198 static inline void percpu_ref_get_many(struct percpu_ref *ref, unsigned long nr) argument
205 this_cpu_add(*percpu_count, nr);
207 atomic_long_add(nr, &ref->data->count);
228 * @nr: number of references to get
230 * Increment a percpu refcount by @nr unless its count already reached zero.
236 unsigned long nr)
244 this_cpu_add(*percpu_count, nr);
247 ret = atomic_long_add_unless(&ref->data->count, nr, 0);
319 * @nr
235 percpu_ref_tryget_many(struct percpu_ref *ref, unsigned long nr) argument
326 percpu_ref_put_many(struct percpu_ref *ref, unsigned long nr) argument
[all...]
/linux-master/drivers/hwmon/
H A Dpc87427.c133 #define BANK_FM(nr) (nr)
134 #define BANK_FT(nr) (0x08 + (nr))
135 #define BANK_FC(nr) (0x10 + (nr) * 2)
136 #define BANK_TM(nr) (nr)
137 #define BANK_VM(nr) (0x08 + (nr))
184 pc87427_readall_fan(struct pc87427_data *data, u8 nr) argument
239 pc87427_readall_pwm(struct pc87427_data *data, u8 nr) argument
303 pc87427_readall_temp(struct pc87427_data *data, u8 nr) argument
391 int nr = to_sensor_dev_attr(devattr)->index; local
400 int nr = to_sensor_dev_attr(devattr)->index; local
409 int nr = to_sensor_dev_attr(devattr)->index; local
419 int nr = to_sensor_dev_attr(devattr)->index; local
430 int nr = to_sensor_dev_attr(devattr)->index; local
556 update_pwm_enable(struct pc87427_data *data, int nr, u8 mode) argument
568 int nr = to_sensor_dev_attr(devattr)->index; local
582 int nr = to_sensor_dev_attr(devattr)->index; local
603 int nr = to_sensor_dev_attr(devattr)->index; local
612 int nr = to_sensor_dev_attr(devattr)->index; local
695 int nr = to_sensor_dev_attr(devattr)->index; local
704 int nr = to_sensor_dev_attr(devattr)->index; local
713 int nr = to_sensor_dev_attr(devattr)->index; local
722 int nr = to_sensor_dev_attr(devattr)->index; local
731 int nr = to_sensor_dev_attr(devattr)->index; local
741 int nr = to_sensor_dev_attr(devattr)->index; local
752 int nr = to_sensor_dev_attr(devattr)->index; local
763 int nr = to_sensor_dev_attr(devattr)->index; local
773 int nr = to_sensor_dev_attr(devattr)->index; local
[all...]
H A Dvia686a.c64 #define VIA686A_REG_IN_MAX(nr) (0x2b + ((nr) * 2))
65 #define VIA686A_REG_IN_MIN(nr) (0x2c + ((nr) * 2))
66 #define VIA686A_REG_IN(nr) (0x22 + (nr))
69 #define VIA686A_REG_FAN_MIN(nr) (0x3a + (nr))
70 #define VIA686A_REG_FAN(nr) (0x28 + (nr))
415 int nr = attr->index; local
423 int nr = attr->index; local
431 int nr = attr->index; local
439 int nr = attr->index; local
458 int nr = attr->index; local
495 int nr = attr->index; local
502 int nr = attr->index; local
509 int nr = attr->index; local
517 int nr = attr->index; local
537 int nr = attr->index; local
568 int nr = attr->index; local
576 int nr = attr->index; local
585 int nr = attr->index; local
592 int nr = attr->index; local
610 int nr = attr->index; local
[all...]
H A Dvt8231.c65 #define VT8231_REG_FAN_MIN(nr) (0x3b + (nr))
66 #define VT8231_REG_FAN(nr) (0x29 + (nr))
251 int nr = sensor_attr->index; local
254 return sprintf(buf, "%d\n", ((data->in[nr] - 3) * 10000) / 958);
261 int nr = sensor_attr->index; local
264 return sprintf(buf, "%d\n", ((data->in_min[nr] - 3) * 10000) / 958);
271 int nr = sensor_attr->index; local
274 return sprintf(buf, "%d\n", (((data->in_max[nr]
281 int nr = sensor_attr->index; local
301 int nr = sensor_attr->index; local
468 int nr = sensor_attr->index; local
477 int nr = sensor_attr->index; local
486 int nr = sensor_attr->index; local
496 int nr = sensor_attr->index; local
516 int nr = sensor_attr->index; local
562 int nr = sensor_attr->index; local
572 int nr = sensor_attr->index; local
582 int nr = sensor_attr->index; local
592 int nr = sensor_attr->index; local
615 int nr = sensor_attr->index; local
[all...]
H A Dasb100.c49 #define ASB100_REG_IN(nr) (0x20 + (nr))
50 #define ASB100_REG_IN_MAX(nr) (0x2b + (nr * 2))
51 #define ASB100_REG_IN_MIN(nr) (0x2c + (nr * 2))
54 #define ASB100_REG_FAN(nr) (0x28 + (nr))
55 #define ASB100_REG_FAN_MIN(nr) (0x3b + (nr))
289 int nr = to_sensor_dev_attr(attr)->index; local
298 int nr = to_sensor_dev_attr(attr)->index; local
307 int nr = to_sensor_dev_attr(attr)->index; local
315 int nr = to_sensor_dev_attr(attr)->index; local
341 int nr = to_sensor_dev_attr(attr)->index; local
401 sprintf_temp_from_reg(u16 reg, char *buf, int nr) argument
[all...]
H A Dnct6775-core.c84 * Voltage min/max registers for nr=7..14 are in bank 5
192 #define NCT6775_AUTO_TEMP(data, nr, p) ((data)->REG_AUTO_TEMP[nr] + (p))
193 #define NCT6775_AUTO_PWM(data, nr, p) ((data)->REG_AUTO_PWM[nr] + (p))
1002 static inline long in_from_reg(u8 reg, u8 nr, const u16 *scales) argument
1004 return DIV_ROUND_CLOSEST(reg * scales[nr], 100);
1007 static inline u8 in_to_reg(u32 val, u8 nr, const u16 *scales) argument
1009 return clamp_val(DIV_ROUND_CLOSEST(val * 100, scales[nr]), 0, 255);
1026 u8 nr; member in struct:sensor_device_template::__anon52::__anon53
1227 nct6775_write_fan_div(struct nct6775_data *data, int nr) argument
1242 nct6775_write_fan_div_common(struct nct6775_data *data, int nr) argument
1337 nct6775_select_fan_div(struct device *dev, struct nct6775_data *data, int nr, u16 reg) argument
1719 int nr = sattr->nr; local
1735 int nr = sattr->nr; local
1754 int nr; local
1768 int nr, err; local
1788 int nr; local
1811 int nr; local
1828 int nr = data->BEEP_BITS[sattr->index]; local
1857 int nr; local
1882 int nr, bit, regindex; local
1917 int nr = index % 5; /* attribute index */ local
1958 int nr = sattr->index; local
1971 int nr = sattr->index; local
1986 int nr = sattr->index; local
2000 int nr = sattr->index; local
2110 int nr = sattr->index; local
2142 int nr = index % 6; /* attribute index */ local
2195 int nr = sattr->index; local
2208 int nr = sattr->nr; local
2223 int nr = sattr->nr; local
2257 int nr = sattr->index; local
2280 int nr = sattr->index; local
2294 int nr = sattr->index; local
2352 int nr = index % 10; /* attribute index */ local
2480 int nr = sattr->index; local
2518 int nr = sattr->nr; local
2547 int nr = sattr->nr; local
2588 check_trip_points(struct nct6775_data *data, int nr) argument
2611 pwm_update_registers(struct nct6775_data *data, int nr) argument
2679 int nr = sattr->index; local
2761 int nr = sattr->index; local
2813 int nr = sattr->index; local
2873 int nr = sattr->index; local
2896 int nr = sattr->index; local
2912 int nr = sattr->index; local
2937 int nr = sattr->nr; local
2952 int nr = sattr->nr; local
2987 int nr = sattr->index; local
3019 int nr = sattr->index; local
3064 int nr = sattr->nr; local
3079 int nr = sattr->nr; local
3113 int nr = sattr->nr; local
3130 int nr = sattr->nr; local
3165 int nr = sattr->nr; local
3238 int nr = sattr->nr; local
3257 int nr = sattr->nr; local
3287 int nr = index % 36; /* attribute index */ local
[all...]
H A Dit87.c257 #define IT87_REG_TEMP(nr) (0x29 + (nr))
259 #define IT87_REG_VIN_MAX(nr) (0x30 + (nr) * 2)
260 #define IT87_REG_VIN_MIN(nr) (0x31 + (nr) * 2)
261 #define IT87_REG_TEMP_HIGH(nr) (0x40 + (nr) * 2)
262 #define IT87_REG_TEMP_LOW(nr) (0x41 + (nr) *
641 adc_lsb(const struct it87_data *data, int nr) argument
656 in_to_reg(const struct it87_data *data, int nr, long val) argument
662 in_from_reg(const struct it87_data *data, int nr, int val) argument
797 it87_update_pwm_ctrl(struct it87_data *data, int nr) argument
995 int nr = sattr->nr; local
1009 int nr = sattr->nr; local
1088 int nr = sattr->nr; local
1102 int nr = sattr->nr; local
1232 int nr = sensor_attr->index; local
1293 pwm_mode(const struct it87_data *data, int nr) argument
1311 int nr = sattr->nr; local
1331 int nr = sensor_attr->index; local
1344 int nr = sensor_attr->index; local
1357 int nr = sensor_attr->index; local
1371 int nr = sensor_attr->index; local
1392 int nr = sattr->nr; local
1441 int nr = sensor_attr->index; local
1485 check_trip_points(struct device *dev, int nr) argument
1519 int nr = sensor_attr->index; local
1594 int nr = sensor_attr->index; local
1640 int nr = sensor_attr->index; local
1680 int nr = sensor_attr->index; local
1701 int nr = sensor_attr->index; local
1751 int nr = sensor_attr->nr; local
1767 int nr = sensor_attr->nr; local
1795 int nr = sensor_attr->index; local
1809 int nr = sensor_attr->index; local
1833 int nr = sensor_attr->nr; local
1854 int nr = sensor_attr->nr; local
2240 int nr = to_sensor_dev_attr(attr)->index; local
[all...]
H A Dsis5595.c83 #define SIS5595_REG_IN_MAX(nr) (0x2b + (nr) * 2)
84 #define SIS5595_REG_IN_MIN(nr) (0x2c + (nr) * 2)
85 #define SIS5595_REG_IN(nr) (0x20 + (nr))
87 #define SIS5595_REG_FAN_MIN(nr) (0x3b + (nr))
88 #define SIS5595_REG_FAN(nr) (0x28 + (nr))
267 int nr = attr->index; local
276 int nr = attr->index; local
285 int nr = attr->index; local
294 int nr = attr->index; local
314 int nr = attr->index; local
415 int nr = attr->index; local
425 int nr = attr->index; local
435 int nr = attr->index; local
455 int nr = attr->index; local
470 int nr = attr->index; local
542 int nr = to_sensor_dev_attr(da)->index; local
[all...]
/linux-master/fs/ocfs2/
H A Dblockcheck.c89 * _in_this_hunk_. nr is the bit offset of this hunk. So, if you had
97 u32 ocfs2_hamming_encode(u32 parity, void *data, unsigned int d, unsigned int nr) argument
115 * i is the offset in this hunk, nr + i is the total bit
118 b = calc_code_bit(nr + i, &p);
150 * Like ocfs2_hamming_encode(), this can handle hunks. nr is the bit
156 void ocfs2_hamming_fix(void *data, unsigned int d, unsigned int nr, argument
171 * nr + d is the bit right past the data hunk we're looking at.
174 if (fix >= calc_code_bit(nr + d, NULL))
178 * nr is the offset in the data hunk we're starting at. Let's
182 b = calc_code_bit(nr, NUL
441 ocfs2_block_check_compute_bhs(struct buffer_head **bhs, int nr, struct ocfs2_block_check *bc) argument
485 ocfs2_block_check_validate_bhs(struct buffer_head **bhs, int nr, struct ocfs2_block_check *bc, struct ocfs2_blockcheck_stats *stats) argument
584 ocfs2_compute_meta_ecc_bhs(struct super_block *sb, struct buffer_head **bhs, int nr, struct ocfs2_block_check *bc) argument
592 ocfs2_validate_meta_ecc_bhs(struct super_block *sb, struct buffer_head **bhs, int nr, struct ocfs2_block_check *bc) argument
[all...]
H A Dbuffer_head_io.c90 unsigned int nr, struct buffer_head *bhs[])
97 trace_ocfs2_read_blocks_sync((unsigned long long)block, nr);
99 if (!nr)
107 for (i = 0 ; i < nr ; i++) {
154 for (i = nr; i > 0; i--) {
193 int ocfs2_read_blocks(struct ocfs2_caching_info *ci, u64 block, int nr, argument
204 trace_ocfs2_read_blocks_begin(ci, (unsigned long long)block, nr, flags);
216 if (nr < 0) {
217 mlog(ML_ERROR, "asked to read %d blocks!\n", nr);
223 if (nr
89 ocfs2_read_blocks_sync(struct ocfs2_super *osb, u64 block, unsigned int nr, struct buffer_head *bhs[]) argument
[all...]
/linux-master/drivers/media/common/videobuf2/
H A Dvideobuf2-memops.c43 unsigned long nr; local
48 nr = last - first + 1;
49 vec = frame_vector_create(nr);
52 ret = get_vaddr_frames(start & PAGE_MASK, nr, write, vec);
56 if (ret != nr) {
/linux-master/drivers/gpio/
H A Dgpio-altera-a10sr.c50 unsigned int nr)
52 if (nr < (ALTR_A10SR_IN_VALID_RANGE_LO - ALTR_A10SR_LED_VALID_SHIFT))
59 unsigned int nr, int value)
61 if (nr > (ALTR_A10SR_OUT_VALID_RANGE_HI - ALTR_A10SR_LED_VALID_SHIFT))
64 altr_a10sr_gpio_set(gc, nr, value);
49 altr_a10sr_gpio_direction_input(struct gpio_chip *gc, unsigned int nr) argument
58 altr_a10sr_gpio_direction_output(struct gpio_chip *gc, unsigned int nr, int value) argument
/linux-master/arch/arm/include/asm/
H A Decard.h130 #define ecard_resource_start(ec,nr) ((ec)->resource[nr].start)
131 #define ecard_resource_end(ec,nr) ((ec)->resource[nr].end)
132 #define ecard_resource_len(ec,nr) ((ec)->resource[nr].end - \
133 (ec)->resource[nr].start + 1)
134 #define ecard_resource_flags(ec,nr) ((ec)->resource[nr].flags)
/linux-master/drivers/misc/mchp_pci1xxxx/
H A Dmchp_pci1xxxx_gpio.c45 static int pci1xxxx_gpio_get_direction(struct gpio_chip *gpio, unsigned int nr) argument
51 data = readl(priv->reg_base + INP_EN_OFFSET(nr));
52 if (data & BIT(nr % 32)) {
55 data = readl(priv->reg_base + OUT_EN_OFFSET(nr));
56 if (data & BIT(nr % 32))
76 static int pci1xxxx_gpio_direction_input(struct gpio_chip *gpio, unsigned int nr) argument
82 pci1xxx_assign_bit(priv->reg_base, INP_EN_OFFSET(nr), (nr % 32), true);
83 pci1xxx_assign_bit(priv->reg_base, OUT_EN_OFFSET(nr), (nr
89 pci1xxxx_gpio_get(struct gpio_chip *gpio, unsigned int nr) argument
96 pci1xxxx_gpio_direction_output(struct gpio_chip *gpio, unsigned int nr, int val) argument
117 pci1xxxx_gpio_set(struct gpio_chip *gpio, unsigned int nr, int val) argument
[all...]
/linux-master/tools/perf/bench/
H A Dsched-seccomp-notify.c49 static int user_notif_syscall(int nr, unsigned int flags) argument
53 offsetof(struct seccomp_data, nr)),
54 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, nr, 0, 1),
72 uint64_t nr; local
74 for (nr = 0; nr < loops; nr++) {
79 if (req.data.nr != __NR_gettid)
80 errx(EXIT_FAILURE, "unexpected syscall: %d", req.data.nr);
/linux-master/arch/s390/tools/
H A Dgen_opcode_table.c45 int nr; member in struct:gen_opcode
167 desc->nr++;
168 desc->insn = realloc(desc->insn, desc->nr * sizeof(*desc->insn));
171 desc->insn[desc->nr - 1] = insn;
185 qsort(desc->insn, desc->nr, sizeof(*desc->insn), cmpformat);
189 for (i = 0; i < desc->nr; i++) {
209 qsort(desc->insn, desc->nr, sizeof(*desc->insn), cmp_long_insn);
212 for (i = 0; i < desc->nr; i++) {
222 for (i = 0; i < desc->nr; i++) {
231 static void print_opcode(struct insn *insn, int nr) argument
[all...]
/linux-master/net/llc/
H A Dllc_pdu.c103 * @nr: The seq. number of the expected I PDU from the remote
107 void llc_pdu_init_as_i_cmd(struct sk_buff *skb, u8 p_bit, u8 ns, u8 nr) argument
115 pdu->ctrl_2 |= (nr << 1) & 0xFE; /* set N(R) in bits 10..16 */
122 * @nr: The seq. number of the expected I PDU from the remote
126 void llc_pdu_init_as_rej_cmd(struct sk_buff *skb, u8 p_bit, u8 nr) argument
135 pdu->ctrl_2 |= (nr << 1) & 0xFE; /* set N(R) in bits 10..16 */
142 * @nr: The seq. number of the expected I PDU from the remote
146 void llc_pdu_init_as_rnr_cmd(struct sk_buff *skb, u8 p_bit, u8 nr) argument
155 pdu->ctrl_2 |= (nr << 1) & 0xFE; /* set N(R) in bits 10..16 */
162 * @nr
166 llc_pdu_init_as_rr_cmd(struct sk_buff *skb, u8 p_bit, u8 nr) argument
255 llc_pdu_init_as_rr_rsp(struct sk_buff *skb, u8 f_bit, u8 nr) argument
275 llc_pdu_init_as_rej_rsp(struct sk_buff *skb, u8 f_bit, u8 nr) argument
295 llc_pdu_init_as_rnr_rsp(struct sk_buff *skb, u8 f_bit, u8 nr) argument
[all...]
/linux-master/arch/s390/include/asm/
H A Dstacktrace.h164 * rc = call_on_stack(nr, stack, rettype, fn, t1, a1, t2, a2, ...)
166 * - nr specifies the number of function arguments of fn.
174 #define call_on_stack(nr, stack, rettype, fn, ...) \
176 rettype (*__fn)(CALL_PARM_##nr(__VA_ARGS__)) = fn; \
180 CALL_LARGS_##nr(__VA_ARGS__); \
181 CALL_REGS_##nr; \
183 CALL_TYPECHECK_##nr(__VA_ARGS__); \
190 : [_prev] "=&d" (prev), CALL_FMT_##nr \
194 [_fn] "X" (__fn) : CALL_CLOBBER_##nr); \
203 * rc = call_nodat(nr, rettyp
[all...]
/linux-master/tools/testing/selftests/net/mptcp/
H A Ddiag.sh53 local nr
55 nr=$(eval $command)
58 if [ "$nr" != "$expected" ]; then
59 if [ "$nr" = "$skip" ] && ! mptcp_lib_expect_all_features; then
63 mptcp_lib_pr_fail "expected $expected found $nr"
100 local msg nr
108 nr=$(ss -inmHMN $ns | $condition)
109 [ $nr == $expected ] && break;
110 [ $nr -gt $max ] && max=$nr
[all...]
/linux-master/fs/ext4/
H A Dindirect.c248 * Because this is only used for non-extent files, we limit the block nr
930 ext4_fsblk_t nr; /* Current block # */ local
946 nr = le32_to_cpu(*p);
947 if (nr) {
950 block_to_free = nr;
953 } else if (nr == block_to_free + count) {
961 block_to_free = nr;
1011 ext4_fsblk_t nr; local
1022 nr = le32_to_cpu(*p);
1023 if (!nr)
1127 __le32 nr = 0; local
1245 __le32 nr = 0, nr2 = 0; local
[all...]
/linux-master/net/ax25/
H A Dax25_std_in.c141 static int ax25_std_state3_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int nr, int pf, int type) argument
184 if (ax25_validate_nr(ax25, nr)) {
185 ax25_check_iframes_acked(ax25, nr);
196 if (ax25_validate_nr(ax25, nr)) {
197 ax25_frames_acked(ax25, nr);
209 if (!ax25_validate_nr(ax25, nr)) {
215 ax25_frames_acked(ax25, nr);
217 ax25_check_iframes_acked(ax25, nr);
266 static int ax25_std_state4_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int nr, int pf, int type) argument
312 if (ax25_validate_nr(ax25, nr)) {
421 int queued = 0, frametype, ns, nr, pf; local
[all...]
/linux-master/fs/minix/
H A Ditree_common.c84 int nr = minix_new_block(inode); local
85 if (!nr)
87 branch[n].key = cpu_to_block(nr);
90 minix_free_block(inode, nr);
102 parent = nr;
265 unsigned long nr; local
268 nr = block_to_cpu(*p);
269 if (nr) {
271 minix_free_block(inode, nr);
279 unsigned long nr; local
307 block_t nr = 0; local
[all...]

Completed in 474 milliseconds

1234567891011>>