Home
last modified time | relevance | path

Searched refs:nr (Results 1 – 25 of 357) sorted by relevance

12345678910>>...15

/linux-2.4.37.9/include/asm-m68k/
Dbitops.h17 #define test_and_set_bit(nr,vaddr) \ argument
18 (__builtin_constant_p(nr) ? \
19 __constant_test_and_set_bit(nr, vaddr) : \
20 __generic_test_and_set_bit(nr, vaddr))
22 static inline int __constant_test_and_set_bit(int nr, volatile void *vaddr) in __constant_test_and_set_bit() argument
27 : "=d" (retval), "+m" (((volatile char *)vaddr)[(nr^31) >> 3]) in __constant_test_and_set_bit()
28 : "di" (nr & 7)); in __constant_test_and_set_bit()
33 static inline int __generic_test_and_set_bit(int nr, volatile void *vaddr) in __generic_test_and_set_bit() argument
38 : "=d" (retval) : "d" (nr^31), "a" (vaddr) : "memory"); in __generic_test_and_set_bit()
43 #define set_bit(nr,vaddr) \ argument
[all …]
Draw_io.h74 unsigned int nr) in raw_insw() argument
78 if (nr & 15) { in raw_insw()
79 tmp = (nr & 15) - 1; in raw_insw()
86 if (nr >> 4) { in raw_insw()
87 tmp = (nr >> 4) - 1; in raw_insw()
114 const unsigned short *buf, unsigned int nr) in raw_outsw() argument
118 if (nr & 15) { in raw_outsw()
119 tmp = (nr & 15) - 1; in raw_outsw()
126 if (nr >> 4) { in raw_outsw()
127 tmp = (nr >> 4) - 1; in raw_outsw()
[all …]
/linux-2.4.37.9/include/asm-s390/
Dbitops.h55 static __inline__ void set_bit_cs(int nr, volatile void * addr) in set_bit_cs() argument
78 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) : in set_bit_cs()
85 static __inline__ void clear_bit_cs(int nr, volatile void * addr) in clear_bit_cs() argument
110 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) in clear_bit_cs()
117 static __inline__ void change_bit_cs(int nr, volatile void * addr) in change_bit_cs() argument
140 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) : in change_bit_cs()
147 static __inline__ int test_and_set_bit_cs(int nr, volatile void * addr) in test_and_set_bit_cs() argument
171 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) : in test_and_set_bit_cs()
173 return nr != 0; in test_and_set_bit_cs()
179 static __inline__ int test_and_clear_bit_cs(int nr, volatile void * addr) in test_and_clear_bit_cs() argument
[all …]
/linux-2.4.37.9/include/asm-s390x/
Dbitops.h59 static __inline__ void set_bit_cs(unsigned long nr, volatile void * addr) in set_bit_cs() argument
82 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) : in set_bit_cs()
89 static __inline__ void clear_bit_cs(unsigned long nr, volatile void * addr) in clear_bit_cs() argument
113 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) : in clear_bit_cs()
120 static __inline__ void change_bit_cs(unsigned long nr, volatile void * addr) in change_bit_cs() argument
143 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) : in change_bit_cs()
151 test_and_set_bit_cs(unsigned long nr, volatile void * addr) in test_and_set_bit_cs() argument
175 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) : in test_and_set_bit_cs()
177 return nr != 0; in test_and_set_bit_cs()
184 test_and_clear_bit_cs(unsigned long nr, volatile void * addr) in test_and_clear_bit_cs() argument
[all …]
/linux-2.4.37.9/include/asm-ppc64/
Dbitops.h44 static __inline__ int test_bit(unsigned long nr, __const__ volatile void *addr) in test_bit() argument
46 return (1UL & (((__const__ long *) addr)[nr >> 6] >> (nr & 63))); in test_bit()
49 static __inline__ void set_bit(unsigned long nr, volatile void *addr) in set_bit() argument
52 unsigned long mask = 1UL << (nr & 0x3f); in set_bit()
53 unsigned long *p = ((unsigned long *)addr) + (nr >> 6); in set_bit()
65 static __inline__ void clear_bit(unsigned long nr, volatile void *addr) in clear_bit() argument
68 unsigned long mask = 1UL << (nr & 0x3f); in clear_bit()
69 unsigned long *p = ((unsigned long *)addr) + (nr >> 6); in clear_bit()
81 static __inline__ void change_bit(unsigned long nr, volatile void *addr) in change_bit() argument
84 unsigned long mask = 1UL << (nr & 0x3f); in change_bit()
[all …]
/linux-2.4.37.9/include/asm-arm/
Dbitops.h26 extern void set_bit(int nr, volatile void * addr);
28 static inline void __set_bit(int nr, volatile void *addr) in __set_bit() argument
30 ((unsigned char *) addr)[nr >> 3] |= (1U << (nr & 7)); in __set_bit()
33 extern void clear_bit(int nr, volatile void * addr);
35 static inline void __clear_bit(int nr, volatile void *addr) in __clear_bit() argument
37 ((unsigned char *) addr)[nr >> 3] &= ~(1U << (nr & 7)); in __clear_bit()
40 extern void change_bit(int nr, volatile void * addr);
42 static inline void __change_bit(int nr, volatile void *addr) in __change_bit() argument
44 ((unsigned char *) addr)[nr >> 3] ^= (1U << (nr & 7)); in __change_bit()
47 extern int test_and_set_bit(int nr, volatile void * addr);
[all …]
/linux-2.4.37.9/include/asm-sparc64/
Dbitops.h14 extern int test_and_set_bit(unsigned long nr, volatile void *addr);
15 extern int test_and_clear_bit(unsigned long nr, volatile void *addr);
16 extern int test_and_change_bit(unsigned long nr, volatile void *addr);
17 extern void set_bit(unsigned long nr, volatile void *addr);
18 extern void clear_bit(unsigned long nr, volatile void *addr);
19 extern void change_bit(unsigned long nr, volatile void *addr);
23 static __inline__ void __set_bit(int nr, volatile void *addr) in __set_bit() argument
27 m = ((unsigned long *)addr) + (nr >> 6); in __set_bit()
28 *m |= (1UL << (nr & 63)); in __set_bit()
31 static __inline__ void __clear_bit(int nr, volatile void *addr) in __clear_bit() argument
[all …]
/linux-2.4.37.9/include/asm-mips/
Dbitops.h69 static __inline__ void set_bit(int nr, volatile void *addr) in set_bit() argument
71 unsigned long *m = ((unsigned long *) addr) + (nr >> 5); in set_bit()
80 : "ir" (1UL << (nr & 0x1f)), "m" (*m)); in set_bit()
92 static __inline__ void __set_bit(int nr, volatile void * addr) in __set_bit() argument
94 unsigned long * m = ((unsigned long *) addr) + (nr >> 5); in __set_bit()
96 *m |= 1UL << (nr & 31); in __set_bit()
109 static __inline__ void clear_bit(int nr, volatile void *addr) in clear_bit() argument
111 unsigned long *m = ((unsigned long *) addr) + (nr >> 5); in clear_bit()
120 : "ir" (~(1UL << (nr & 0x1f))), "m" (*m)); in clear_bit()
132 static __inline__ void change_bit(int nr, volatile void *addr) in change_bit() argument
[all …]
/linux-2.4.37.9/include/asm-sh/
Dbitops.h9 static __inline__ void set_bit(int nr, volatile void * addr) in set_bit() argument
15 a += nr >> 5; in set_bit()
16 mask = 1 << (nr & 0x1f); in set_bit()
22 static __inline__ void __set_bit(int nr, volatile void * addr) in __set_bit() argument
27 a += nr >> 5; in __set_bit()
28 mask = 1 << (nr & 0x1f); in __set_bit()
37 static __inline__ void clear_bit(int nr, volatile void * addr) in clear_bit() argument
43 a += nr >> 5; in clear_bit()
44 mask = 1 << (nr & 0x1f); in clear_bit()
50 static __inline__ void __clear_bit(int nr, volatile void * addr) in __clear_bit() argument
[all …]
/linux-2.4.37.9/include/asm-sh64/
Dbitops.h9 static __inline__ void set_bit(int nr, volatile void * addr) in set_bit() argument
15 a += nr >> 5; in set_bit()
16 mask = 1 << (nr & 0x1f); in set_bit()
22 static __inline__ void __set_bit(int nr, volatile void * addr) in __set_bit() argument
27 a += nr >> 5; in __set_bit()
28 mask = 1 << (nr & 0x1f); in __set_bit()
37 static __inline__ void clear_bit(int nr, volatile void * addr) in clear_bit() argument
43 a += nr >> 5; in clear_bit()
44 mask = 1 << (nr & 0x1f); in clear_bit()
50 static __inline__ void __clear_bit(int nr, volatile void * addr) in __clear_bit() argument
[all …]
/linux-2.4.37.9/include/asm-sparc/
Dbitops.h24 static inline int test_and_set_bit(unsigned long nr, volatile void *addr) in test_and_set_bit() argument
33 ADDR = ((unsigned long *) addr) + (nr >> 5); in test_and_set_bit()
34 mask = 1 << (nr & 31); in test_and_set_bit()
47 static inline void set_bit(unsigned long nr, volatile void *addr) in set_bit() argument
56 ADDR = ((unsigned long *) addr) + (nr >> 5); in set_bit()
57 mask = 1 << (nr & 31); in set_bit()
68 static inline int test_and_clear_bit(unsigned long nr, volatile void *addr) in test_and_clear_bit() argument
77 ADDR = ((unsigned long *) addr) + (nr >> 5); in test_and_clear_bit()
78 mask = 1 << (nr & 31); in test_and_clear_bit()
91 static inline void clear_bit(unsigned long nr, volatile void *addr) in clear_bit() argument
[all …]
/linux-2.4.37.9/include/asm-ppc/
Dbitops.h29 static __inline__ void set_bit(int nr, volatile void * addr) in set_bit() argument
32 unsigned long mask = 1 << (nr & 0x1f); in set_bit()
33 unsigned long *p = ((unsigned long *)addr) + (nr >> 5); in set_bit()
49 static __inline__ void __set_bit(int nr, volatile void *addr) in __set_bit() argument
51 unsigned long mask = 1 << (nr & 0x1f); in __set_bit()
52 unsigned long *p = ((unsigned long *)addr) + (nr >> 5); in __set_bit()
63 static __inline__ void clear_bit(int nr, volatile void *addr) in clear_bit() argument
66 unsigned long mask = 1 << (nr & 0x1f); in clear_bit()
67 unsigned long *p = ((unsigned long *)addr) + (nr >> 5); in clear_bit()
83 static __inline__ void __clear_bit(int nr, volatile void *addr) in __clear_bit() argument
[all …]
/linux-2.4.37.9/net/netrom/
Dnr_timer.c48 del_timer(&sk->protinfo.nr->t1timer); in nr_start_t1timer()
50 sk->protinfo.nr->t1timer.data = (unsigned long)sk; in nr_start_t1timer()
51 sk->protinfo.nr->t1timer.function = &nr_t1timer_expiry; in nr_start_t1timer()
52 sk->protinfo.nr->t1timer.expires = jiffies + sk->protinfo.nr->t1; in nr_start_t1timer()
54 add_timer(&sk->protinfo.nr->t1timer); in nr_start_t1timer()
59 del_timer(&sk->protinfo.nr->t2timer); in nr_start_t2timer()
61 sk->protinfo.nr->t2timer.data = (unsigned long)sk; in nr_start_t2timer()
62 sk->protinfo.nr->t2timer.function = &nr_t2timer_expiry; in nr_start_t2timer()
63 sk->protinfo.nr->t2timer.expires = jiffies + sk->protinfo.nr->t2; in nr_start_t2timer()
65 add_timer(&sk->protinfo.nr->t2timer); in nr_start_t2timer()
[all …]
Dnr_in.c59 sk->protinfo.nr->fraglen += skb->len; in nr_queue_rx_frame()
60 skb_queue_tail(&sk->protinfo.nr->frag_queue, skb); in nr_queue_rx_frame()
64 if (!more && sk->protinfo.nr->fraglen > 0) { /* End of fragment */ in nr_queue_rx_frame()
65 sk->protinfo.nr->fraglen += skb->len; in nr_queue_rx_frame()
66 skb_queue_tail(&sk->protinfo.nr->frag_queue, skb); in nr_queue_rx_frame()
68 if ((skbn = alloc_skb(sk->protinfo.nr->fraglen, GFP_ATOMIC)) == NULL) in nr_queue_rx_frame()
73 while ((skbo = skb_dequeue(&sk->protinfo.nr->frag_queue)) != NULL) { in nr_queue_rx_frame()
78 sk->protinfo.nr->fraglen = 0; in nr_queue_rx_frame()
96 sk->protinfo.nr->your_index = skb->data[17]; in nr_state1_machine()
97 sk->protinfo.nr->your_id = skb->data[18]; in nr_state1_machine()
[all …]
Dnr_out.c97 skb->data[2] = sk->protinfo.nr->vs; in nr_send_iframe()
98 skb->data[3] = sk->protinfo.nr->vr; in nr_send_iframe()
100 if (sk->protinfo.nr->condition & NR_COND_OWN_RX_BUSY) in nr_send_iframe()
112 if ((skb = skb_peek(&sk->protinfo.nr->ack_queue)) == NULL) in nr_send_nak_frame()
118 skbn->data[2] = sk->protinfo.nr->va; in nr_send_nak_frame()
119 skbn->data[3] = sk->protinfo.nr->vr; in nr_send_nak_frame()
121 if (sk->protinfo.nr->condition & NR_COND_OWN_RX_BUSY) in nr_send_nak_frame()
126 sk->protinfo.nr->condition &= ~NR_COND_ACK_PENDING; in nr_send_nak_frame()
127 sk->protinfo.nr->vl = sk->protinfo.nr->vr; in nr_send_nak_frame()
137 if (sk->protinfo.nr->state != NR_STATE_3) in nr_kick()
[all …]
Dnr_subr.c46 skb_queue_purge(&sk->protinfo.nr->ack_queue); in nr_clear_queues()
47 skb_queue_purge(&sk->protinfo.nr->reseq_queue); in nr_clear_queues()
48 skb_queue_purge(&sk->protinfo.nr->frag_queue); in nr_clear_queues()
56 void nr_frames_acked(struct sock *sk, unsigned short nr) in nr_frames_acked() argument
63 if (sk->protinfo.nr->va != nr) { in nr_frames_acked()
64 while (skb_peek(&sk->protinfo.nr->ack_queue) != NULL && sk->protinfo.nr->va != nr) { in nr_frames_acked()
65 skb = skb_dequeue(&sk->protinfo.nr->ack_queue); in nr_frames_acked()
67 sk->protinfo.nr->va = (sk->protinfo.nr->va + 1) % NR_MODULUS; in nr_frames_acked()
81 while ((skb = skb_dequeue(&sk->protinfo.nr->ack_queue)) != NULL) { in nr_requeue_frames()
94 int nr_validate_nr(struct sock *sk, unsigned short nr) in nr_validate_nr() argument
[all …]
/linux-2.4.37.9/include/asm-i386/
Dbitops.h36 static __inline__ void set_bit(int nr, volatile void * addr) in set_bit() argument
41 :"Ir" (nr), "m" (ADDR)); in set_bit()
53 static __inline__ void __set_bit(int nr, volatile void * addr) in __set_bit() argument
58 :"Ir" (nr), "m" (ADDR)); in __set_bit()
71 static __inline__ void clear_bit(int nr, volatile void * addr) in clear_bit() argument
76 :"Ir" (nr), "m" (ADDR)); in clear_bit()
90 static __inline__ void __change_bit(int nr, volatile void * addr) in __change_bit() argument
95 :"Ir" (nr), "m" (ADDR)); in __change_bit()
107 static __inline__ void change_bit(int nr, volatile void * addr) in change_bit() argument
112 :"Ir" (nr), "m" (ADDR)); in change_bit()
[all …]
/linux-2.4.37.9/include/asm-parisc/
Dbitops.h33 static __inline__ void set_bit(int nr, void * address) in set_bit() argument
39 addr += (nr >> SHIFT_PER_LONG); in set_bit()
40 mask = 1L << CHOP_SHIFTCOUNT(nr); in set_bit()
46 static __inline__ void __set_bit(int nr, void * address) in __set_bit() argument
51 addr += (nr >> SHIFT_PER_LONG); in __set_bit()
52 mask = 1L << CHOP_SHIFTCOUNT(nr); in __set_bit()
56 static __inline__ void clear_bit(int nr, void * address) in clear_bit() argument
62 addr += (nr >> SHIFT_PER_LONG); in clear_bit()
63 mask = 1L << CHOP_SHIFTCOUNT(nr); in clear_bit()
69 static __inline__ void change_bit(int nr, void * address) in change_bit() argument
[all …]
/linux-2.4.37.9/include/asm-alpha/
Dbitops.h24 set_bit(unsigned long nr, volatile void * addr) in set_bit() argument
27 int *m = ((int *) addr) + (nr >> 5); in set_bit()
38 :"Ir" (1UL << (nr & 31)), "m" (*m)); in set_bit()
45 __set_bit(unsigned long nr, volatile void * addr) in __set_bit() argument
47 int *m = ((int *) addr) + (nr >> 5); in __set_bit()
49 *m |= 1 << (nr & 31); in __set_bit()
56 clear_bit(unsigned long nr, volatile void * addr) in clear_bit() argument
59 int *m = ((int *) addr) + (nr >> 5); in clear_bit()
70 :"Ir" (~(1UL << (nr & 31))), "m" (*m)); in clear_bit()
77 __change_bit(unsigned long nr, volatile void * addr) in __change_bit() argument
[all …]
/linux-2.4.37.9/include/asm-mips64/
Dbitops.h41 static inline void set_bit(unsigned long nr, volatile void *addr) in set_bit() argument
43 unsigned long *m = ((unsigned long *) addr) + (nr >> 6); in set_bit()
52 : "ir" (1UL << (nr & 0x3f)), "m" (*m) in set_bit()
65 static inline void __set_bit(int nr, volatile void * addr) in __set_bit() argument
67 unsigned long * m = ((unsigned long *) addr) + (nr >> 6); in __set_bit()
69 *m |= 1UL << (nr & 0x3f); in __set_bit()
82 static inline void clear_bit(unsigned long nr, volatile void *addr) in clear_bit() argument
84 unsigned long *m = ((unsigned long *) addr) + (nr >> 6); in clear_bit()
93 : "ir" (~(1UL << (nr & 0x3f))), "m" (*m)); in clear_bit()
108 static inline void change_bit(unsigned long nr, volatile void *addr) in change_bit() argument
[all …]
/linux-2.4.37.9/include/asm-x86_64/
Dbitops.h36 static __inline__ void set_bit(long nr, volatile void * addr) in set_bit() argument
41 :"dIr" (nr), "m" (ADDR)); in set_bit()
53 static __inline__ void __set_bit(long nr, volatile void * addr) in __set_bit() argument
58 :"dIr" (nr), "m" (ADDR)); in __set_bit()
71 static __inline__ void clear_bit(long nr, volatile void * addr) in clear_bit() argument
76 :"dIr" (nr), "m" (ADDR)); in clear_bit()
90 static __inline__ void __change_bit(long nr, volatile void * addr) in __change_bit() argument
95 :"dIr" (nr), "m" (ADDR)); in __change_bit()
107 static __inline__ void change_bit(long nr, volatile void * addr) in change_bit() argument
112 :"dIr" (nr), "m" (ADDR)); in change_bit()
[all …]
/linux-2.4.37.9/include/asm-cris/
Dbitops.h44 #define set_bit(nr, addr) (void)test_and_set_bit(nr, addr) argument
45 #define __set_bit(nr, addr) (void)__test_and_set_bit(nr, addr) argument
58 #define clear_bit(nr, addr) (void)test_and_clear_bit(nr, addr) argument
59 #define __clear_bit(nr, addr) (void)__test_and_clear_bit(nr, addr) argument
71 #define change_bit(nr, addr) (void)test_and_change_bit(nr, addr) argument
83 #define __change_bit(nr, addr) (void)__test_and_change_bit(nr, addr) argument
94 extern __inline__ int test_and_set_bit(int nr, void *addr) in test_and_set_bit() argument
100 adr += nr >> 5; in test_and_set_bit()
101 mask = 1 << (nr & 0x1f); in test_and_set_bit()
110 extern inline int __test_and_set_bit(int nr, void *addr) in __test_and_set_bit() argument
[all …]
Dirq.h113 #define BLOCK_IRQ(mask,nr) \ argument
121 #define IRQ_NAME2(nr) nr##_interrupt(void) argument
122 #define IRQ_NAME(nr) IRQ_NAME2(IRQ##nr) argument
123 #define sIRQ_NAME(nr) IRQ_NAME2(sIRQ##nr) argument
124 #define BAD_IRQ_NAME(nr) IRQ_NAME2(bad_IRQ##nr) argument
134 #define BUILD_IRQ(nr,mask) \ argument
135 void IRQ_NAME(nr); \
136 void sIRQ_NAME(nr); \
137 void BAD_IRQ_NAME(nr); \
140 "IRQ" #nr "_interrupt:\n\t" \
[all …]
/linux-2.4.37.9/include/asm-ia64/
Dbitops.h31 set_bit (int nr, volatile void *addr) in set_bit() argument
37 m = (volatile __u32 *) addr + (nr >> 5); in set_bit()
38 bit = 1 << (nr & 31); in set_bit()
56 __set_bit (int nr, volatile void *addr) in __set_bit() argument
58 *((__u32 *) addr + (nr >> 5)) |= (1 << (nr & 31)); in __set_bit()
78 clear_bit (int nr, volatile void *addr) in clear_bit() argument
84 m = (volatile __u32 *) addr + (nr >> 5); in clear_bit()
85 mask = ~(1 << (nr & 31)); in clear_bit()
103 change_bit (int nr, volatile void *addr) in change_bit() argument
109 m = (volatile __u32 *) addr + (nr >> 5); in change_bit()
[all …]
/linux-2.4.37.9/include/linux/
Dquotaops.h67 static __inline__ int DQUOT_PREALLOC_SPACE_NODIRTY(struct inode *inode, qsize_t nr) in DQUOT_PREALLOC_SPACE_NODIRTY() argument
72 if (inode->i_sb->dq_op->alloc_space(inode, nr, 1) == NO_QUOTA) { in DQUOT_PREALLOC_SPACE_NODIRTY()
78 inode_add_bytes(inode, nr); in DQUOT_PREALLOC_SPACE_NODIRTY()
83 static __inline__ int DQUOT_PREALLOC_SPACE(struct inode *inode, qsize_t nr) in DQUOT_PREALLOC_SPACE() argument
86 if (!(ret = DQUOT_PREALLOC_SPACE_NODIRTY(inode, nr))) in DQUOT_PREALLOC_SPACE()
91 static __inline__ int DQUOT_ALLOC_SPACE_NODIRTY(struct inode *inode, qsize_t nr) in DQUOT_ALLOC_SPACE_NODIRTY() argument
96 if (inode->i_sb->dq_op->alloc_space(inode, nr, 0) == NO_QUOTA) { in DQUOT_ALLOC_SPACE_NODIRTY()
102 inode_add_bytes(inode, nr); in DQUOT_ALLOC_SPACE_NODIRTY()
107 static __inline__ int DQUOT_ALLOC_SPACE(struct inode *inode, qsize_t nr) in DQUOT_ALLOC_SPACE() argument
110 if (!(ret = DQUOT_ALLOC_SPACE_NODIRTY(inode, nr))) in DQUOT_ALLOC_SPACE()
[all …]

12345678910>>...15