Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 2808) sorted by relevance

12345678910>>...113

/linux/include/linux/
A Dptr_ring.h51 return r->queue[r->producer]; in __ptr_ring_full()
106 if (unlikely(!r->size) || r->queue[r->producer]) in __ptr_ring_produce()
113 WRITE_ONCE(r->queue[r->producer++], ptr); in __ptr_ring_produce()
114 if (unlikely(r->producer >= r->size)) in __ptr_ring_produce()
172 return READ_ONCE(r->queue[r->consumer_head]); in __ptr_ring_peek()
197 return !r->queue[READ_ONCE(r->consumer_head)]; in __ptr_ring_empty()
477 r->batch = SMP_CACHE_BYTES * 2 / sizeof(*(r->queue)); in __ptr_ring_set_size()
483 if (r->batch > r->size / 2 || !r->batch) in __ptr_ring_set_size()
494 r->producer = r->consumer_head = r->consumer_tail = 0; in ptr_ring_init()
520 if (!r->size) in ptr_ring_unconsume()
[all …]
A Drefcount.h136 atomic_set(&r->refs, n); in refcount_set()
147 return atomic_read(&r->refs); in refcount_read()
152 int old = refcount_read(r); in __refcount_add_not_zero()
188 return __refcount_add_not_zero(i, r, NULL); in refcount_add_not_zero()
222 __refcount_add(i, r, NULL); in refcount_add()
227 return __refcount_add_not_zero(1, r, oldp); in __refcount_inc_not_zero()
245 return __refcount_inc_not_zero(r, NULL); in refcount_inc_not_zero()
250 __refcount_add(1, r, oldp); in __refcount_inc()
267 __refcount_inc(r, NULL); in refcount_inc()
333 return __refcount_dec_and_test(r, NULL); in refcount_dec_and_test()
[all …]
/linux/arch/x86/um/shared/sysdep/
A Dptrace.h11 #define REGS_IP(r) ((r)[HOST_IP]) argument
12 #define REGS_SP(r) ((r)[HOST_SP]) argument
14 #define REGS_AX(r) ((r)[HOST_AX]) argument
15 #define REGS_BX(r) ((r)[HOST_BX]) argument
16 #define REGS_CX(r) ((r)[HOST_CX]) argument
17 #define REGS_DX(r) ((r)[HOST_DX]) argument
18 #define REGS_SI(r) ((r)[HOST_SI]) argument
19 #define REGS_DI(r) ((r)[HOST_DI]) argument
20 #define REGS_BP(r) ((r)[HOST_BP]) argument
21 #define REGS_CS(r) ((r)[HOST_CS]) argument
[all …]
A Dptrace_64.h13 #define REGS_R8(r) ((r)[HOST_R8]) argument
14 #define REGS_R9(r) ((r)[HOST_R9]) argument
15 #define REGS_R10(r) ((r)[HOST_R10]) argument
16 #define REGS_R11(r) ((r)[HOST_R11]) argument
17 #define REGS_R12(r) ((r)[HOST_R12]) argument
18 #define REGS_R13(r) ((r)[HOST_R13]) argument
19 #define REGS_R14(r) ((r)[HOST_R14]) argument
20 #define REGS_R15(r) ((r)[HOST_R15]) argument
44 #define UPT_R8(r) REGS_R8((r)->gp) argument
45 #define UPT_R9(r) REGS_R9((r)->gp) argument
[all …]
/linux/drivers/gpu/drm/exynos/
A Dregs-scaler.h79 #define _SCALER_HCOEF_DELTA(r, c) ((r) * 0x10 + (c) * 0x4) argument
80 #define _SCALER_VCOEF_DELTA(r, c) ((r) * 0x8 + (c) * 0x4) argument
243 #define SCALER_SRC_WH_GET_WIDTH(r) SCALER_GET(r, 29, 16) argument
245 #define SCALER_SRC_WH_GET_HEIGHT(r) SCALER_GET(r, 13, 0) argument
267 #define SCALER_DST_WH_GET_WIDTH(r) SCALER_GET(r, 29, 16) argument
269 #define SCALER_DST_WH_GET_HEIGHT(r) SCALER_GET(r, 13, 0) argument
273 #define SCALER_DST_POS_GET_H_POS(r) SCALER_GET(r, 29, 16) argument
275 #define SCALER_DST_POS_GET_V_POS(r) SCALER_GET(r, 13, 0) argument
279 #define SCALER_H_RATIO_GET(r) SCALER_GET(r, 18, 0) argument
283 #define SCALER_V_RATIO_GET(r) SCALER_GET(r, 18, 0) argument
[all …]
/linux/drivers/net/wireless/zydas/zd1211rw/
A Dzd_rf_al7230b.c64 int r; in zd1211b_al7230b_finalize() local
74 if (r) in zd1211b_al7230b_finalize()
80 if (r) in zd1211b_al7230b_finalize()
89 int r; in zd1211_al7230b_init_hw() local
159 if (r) in zd1211_al7230b_init_hw()
163 if (r) in zd1211_al7230b_init_hw()
167 if (r) in zd1211_al7230b_init_hw()
171 if (r) in zd1211_al7230b_init_hw()
175 if (r) in zd1211_al7230b_init_hw()
179 if (r) in zd1211_al7230b_init_hw()
[all …]
A Dzd_chip.c95 int r; in zd_ioread32v_locked() local
173 int r; in _zd_iowrite32v_locked() local
187 int r; in zd_iowrite16a_locked() local
225 int r; in zd_iowrite32a_locked() local
247 r); in zd_iowrite32a_locked()
257 int r; in zd_ioread16() local
267 int r; in zd_ioread32() local
277 int r; in zd_iowrite16() local
287 int r; in zd_iowrite32() local
298 int r; in zd_ioread32v() local
[all …]
A Dzd_rf_al2230.c68 int r; in zd1211b_al2230_finalize_rf() local
79 if (r) in zd1211b_al2230_finalize_rf()
85 if (r) in zd1211b_al2230_finalize_rf()
94 int r; in zd1211_al2230_init_hw() local
168 if (r) in zd1211_al2230_init_hw()
179 if (r) in zd1211_al2230_init_hw()
187 if (r) in zd1211_al2230_init_hw()
191 if (r) in zd1211_al2230_init_hw()
195 if (r) in zd1211_al2230_init_hw()
199 if (r) in zd1211_al2230_init_hw()
[all …]
/linux/fs/dlm/
A Drecover.c352 return r; in recover_idr_find()
415 set_lock_master(&r->res_grantqueue, r->res_nodeid); in set_master_lkbs()
416 set_lock_master(&r->res_convertqueue, r->res_nodeid); in set_master_lkbs()
417 set_lock_master(&r->res_waitqueue, r->res_nodeid); in set_master_lkbs()
572 if (!r) { in dlm_recover_master_reply()
585 lock_rsb(r); in dlm_recover_master_reply()
636 lock_rsb(r); in recover_locks()
640 error = recover_locks_queue(r, &r->res_grantqueue); in recover_locks()
643 error = recover_locks_queue(r, &r->res_convertqueue); in recover_locks()
646 error = recover_locks_queue(r, &r->res_waitqueue); in recover_locks()
[all …]
A Dlock.c174 r->res_nodeid, r->res_master_nodeid, r->res_dir_nodeid, in dlm_print_rsb()
175 r->res_flags, r->res_first_lkid, r->res_recover_locks_count, in dlm_print_rsb()
860 r->res_master_nodeid, r->res_dir_nodeid, in validate_master_nodeid()
861 r->res_first_lkid, r->res_name); in validate_master_nodeid()
872 r->res_first_lkid, r->res_name); in validate_master_nodeid()
999 r->res_first_lkid, r->res_name); in dlm_master_lookup()
1030 r->res_first_lkid, r->res_name); in dlm_master_lookup()
1633 r->res_dir_nodeid, r->res_name); in wait_pending_remove()
2679 send_bast_queue(r, &r->res_grantqueue, lkb); in send_blocking_asts()
2684 send_bast_queue(r, &r->res_grantqueue, lkb); in send_blocking_asts_all()
[all …]
/linux/arch/x86/um/asm/
A Dptrace.h11 #define user_mode(r) UPT_IS_USER(&(r)->regs) argument
13 #define PT_REGS_AX(r) UPT_AX(&(r)->regs) argument
14 #define PT_REGS_BX(r) UPT_BX(&(r)->regs) argument
15 #define PT_REGS_CX(r) UPT_CX(&(r)->regs) argument
16 #define PT_REGS_DX(r) UPT_DX(&(r)->regs) argument
18 #define PT_REGS_SI(r) UPT_SI(&(r)->regs) argument
19 #define PT_REGS_DI(r) UPT_DI(&(r)->regs) argument
20 #define PT_REGS_BP(r) UPT_BP(&(r)->regs) argument
23 #define PT_REGS_CS(r) UPT_CS(&(r)->regs) argument
24 #define PT_REGS_SS(r) UPT_SS(&(r)->regs) argument
[all …]
/linux/arch/powerpc/platforms/ps3/
A Dmm.c229 if (!r->base || !r->size) { in ps3_mm_get_repository_highmem()
234 r->offset = r->base - map.rm.size; in ps3_mm_get_repository_highmem()
244 r->size = r->base = r->offset = 0; in ps3_mm_get_repository_highmem()
297 r->size = r->base = r->offset = 0; in ps3_mm_region_create()
321 r->size = r->base = r->offset = 0; in ps3_mm_region_destroy()
655 __LINE__, r->len, r->page_size, r->offset); in dma_sb_region_create()
665 roundup_pow_of_two(r->len), r->page_size, r->region_type, in dma_sb_region_create()
672 r->len = r->bus_addr = 0; in dma_sb_region_create()
694 r->len = r->bus_addr = 0; in dma_ioc0_region_create()
697 r->len, r->page_size, r->bus_addr); in dma_ioc0_region_create()
[all …]
/linux/include/drm/
A Ddrm_rect.h58 #define DRM_RECT_ARG(r) drm_rect_width(r), drm_rect_height(r), (r)->x1, (r)->y1 argument
74 (r)->x1 >> 16, (((r)->x1 & 0xffff) * 15625) >> 10, \
75 (r)->y1 >> 16, (((r)->y1 & 0xffff) * 15625) >> 10
88 r->x1 = x; in drm_rect_init()
89 r->y1 = y; in drm_rect_init()
125 r->x1 += dx; in drm_rect_translate()
126 r->y1 += dy; in drm_rect_translate()
127 r->x2 += dx; in drm_rect_translate()
142 drm_rect_translate(r, x - r->x1, y - r->y1); in drm_rect_translate_to()
170 return r->x2 - r->x1; in drm_rect_width()
[all …]
/linux/lib/
A Dlinear_ranges.c29 if (!r) in linear_range_values_in_range()
31 return r->max_sel - r->min_sel + 1; in linear_range_values_in_range()
72 return r->min + (r->max_sel - r->min_sel) * r->step; in linear_range_get_max_value()
90 if (r->min_sel > selector || r->max_sel < selector) in linear_range_get_value()
93 *val = r->min + (selector - r->min_sel) * r->step; in linear_range_get_value()
117 if (r[i].min_sel <= selector && r[i].max_sel >= selector) in linear_range_get_value_array()
144 if (r->min > val) in linear_range_get_selector_low()
154 if (r->step == 0) in linear_range_get_selector_low()
157 *selector = (val - r->min) / r->step + r->min_sel; in linear_range_get_selector_low()
238 *selector = DIV_ROUND_UP(val - r->min, r->step) + r->min_sel; in linear_range_get_selector_high()
[all …]
/linux/drivers/gpio/
A Dgpio-reg.c59 val = r->out; in gpio_reg_set()
64 r->out = val; in gpio_reg_set()
82 val = r->out; in gpio_reg_get()
94 r->out = (r->out & ~*mask) | (*bits & *mask); in gpio_reg_set_multiple()
95 writel_relaxed(r->out, r->reg); in gpio_reg_set_multiple()
139 r = devm_kzalloc(dev, sizeof(*r), GFP_KERNEL); in gpio_reg_init()
141 r = kzalloc(sizeof(*r), GFP_KERNEL); in gpio_reg_init()
143 if (!r) in gpio_reg_init()
166 ret = devm_gpiochip_add_data(dev, &r->gc, r); in gpio_reg_init()
168 ret = gpiochip_add_data(&r->gc, r); in gpio_reg_init()
[all …]
/linux/sound/pci/ice1712/
A Dhoontech.h30 #define ICE1712_STDSP24_0_BOX(r, x) r[0] = ((r[0] & ~3) | ((x)&3)) argument
31 #define ICE1712_STDSP24_0_DAREAR(r, x) r[0] = ((r[0] & ~4) | (((x)&1)<<2)) argument
32 #define ICE1712_STDSP24_1_CHN1(r, x) r[1] = ((r[1] & ~1) | ((x)&1)) argument
33 #define ICE1712_STDSP24_1_CHN2(r, x) r[1] = ((r[1] & ~2) | (((x)&1)<<1)) argument
34 #define ICE1712_STDSP24_1_CHN3(r, x) r[1] = ((r[1] & ~4) | (((x)&1)<<2)) argument
35 #define ICE1712_STDSP24_2_CHN4(r, x) r[2] = ((r[2] & ~1) | ((x)&1)) argument
36 #define ICE1712_STDSP24_2_MIDIIN(r, x) r[2] = ((r[2] & ~2) | (((x)&1)<<1)) argument
37 #define ICE1712_STDSP24_2_MIDI1(r, x) r[2] = ((r[2] & ~4) | (((x)&1)<<2)) argument
38 #define ICE1712_STDSP24_3_MIDI2(r, x) r[3] = ((r[3] & ~1) | ((x)&1)) argument
39 #define ICE1712_STDSP24_3_MUTE(r, x) r[3] = ((r[3] & ~2) | (((x)&1)<<1)) argument
[all …]
/linux/drivers/md/
A Ddm-thin-metadata.c450 int r; in __superblock_all_zeroes() local
460 if (r) in __superblock_all_zeroes()
517 int r; in save_sm_roots() local
549 int r; in __write_initial_superblock() local
570 if (r) in __write_initial_superblock()
595 int r; in __format_metadata() local
631 if (r) in __format_metadata()
677 int r; in __open_metadata() local
748 if (r) in __open_or_format_metadata()
759 int r; in __create_persistent_data_objects() local
[all …]
A Ddm-cache-metadata.c262 int r; in __superblock_all_zeroes() local
272 if (r) in __superblock_all_zeroes()
308 int r; in __save_sm_root() local
334 int r; in __write_initial_superblock() local
352 if (r) in __write_initial_superblock()
356 if (r) in __write_initial_superblock()
392 int r; in __format_metadata() local
423 if (r) in __format_metadata()
467 int r; in __open_metadata() local
519 int r; in __open_or_format_metadata() local
[all …]
/linux/kernel/
A Dresource_kunit.c31 struct resource r; member
37 .r1 = &r1, .r2 = &r0, .r.start = R0_START, .r.end = R0_END, .ret = true,
39 .r1 = &r2, .r2 = &r0, .r.start = R0_START, .r.end = R0_END, .ret = true,
98 ret = resource_union(r->r1, r->r2, &result); in resource_do_union_test()
99 resource_do_test(test, ret, &result, r->ret, &r->r, r->r1, r->r2); in resource_do_union_test()
102 ret = resource_union(r->r2, r->r1, &result); in resource_do_union_test()
103 resource_do_test(test, ret, &result, r->ret, &r->r, r->r2, r->r1); in resource_do_union_test()
122 ret = resource_intersection(r->r1, r->r2, &result); in resource_do_intersection_test()
123 resource_do_test(test, ret, &result, r->ret, &r->r, r->r1, r->r2); in resource_do_intersection_test()
126 ret = resource_intersection(r->r2, r->r1, &result); in resource_do_intersection_test()
[all …]
/linux/sound/firewire/
A Diso-resources.c29 r->unit = unit; in fw_iso_resources_init()
30 mutex_init(&r->mutex); in fw_iso_resources_init()
31 r->allocated = false; in fw_iso_resources_init()
43 WARN_ON(r->allocated); in fw_iso_resources_destroy()
128 bandwidth = r->bandwidth + r->bandwidth_overhead; in fw_iso_resources_allocate()
129 fw_iso_resource_manage(card, r->generation, r->channels_mask, in fw_iso_resources_allocate()
181 bandwidth = r->bandwidth + r->bandwidth_overhead; in fw_iso_resources_update()
183 fw_iso_resource_manage(card, r->generation, 1uLL << r->channel, in fw_iso_resources_update()
223 if (r->allocated) { in fw_iso_resources_free()
224 bandwidth = r->bandwidth + r->bandwidth_overhead; in fw_iso_resources_free()
[all …]
/linux/drivers/net/wireless/ath/wil6210/
A Drx_reorder.c30 return seq_sub(seq, r->ssn) % r->buf_size; in reorder_index()
48 r->head_seq_num = seq_inc(r->head_seq_num); in wil_release_reorder_frame()
64 index = reorder_index(r, r->head_seq_num); in wil_release_reorder_frames()
73 int index = reorder_index(r, r->head_seq_num); in wil_reorder_release()
77 index = reorder_index(r, r->head_seq_num); in wil_reorder_release()
112 if (!r) { in wil_rx_reorder()
199 r->head_seq_num = seq_inc(r->head_seq_num); in wil_rx_reorder()
224 if (!r) { in wil_rx_bar()
246 if (!r) in wil_tid_ampdu_rx_alloc()
262 return r; in wil_tid_ampdu_rx_alloc()
[all …]
/linux/arch/x86/kernel/cpu/resctrl/
A Dcore.c146 r->cache.cbm_len = 20; in cache_alloc_hsw_probe()
157 if (!r) in is_mba_sc()
205 r->data_width = 3; in __get_mem_config_intel()
239 r->membw.min_bw = 0; in __rdt_get_mem_config_amd()
240 r->membw.bw_gran = 1; in __rdt_get_mem_config_amd()
242 r->data_width = 4; in __rdt_get_mem_config_amd()
261 r->cache.shareable_bits = ebx & r->default_ctrl; in rdt_get_cache_alloc_cfg()
262 r->data_width = (r->cache.cbm_len + 3) / 4; in rdt_get_cache_alloc_cfg()
368 cpu, r->name); in rdt_ctrl_update()
529 if (r->alloc_capable && domain_setup_ctrlval(r, d)) { in domain_add_cpu()
[all …]
/linux/drivers/media/radio/
A Dradio-wl1273.c122 r = 0; in wl1273_fm_write_fw()
152 int r; in wl1273_fm_rds() local
158 if (r) in wl1273_fm_rds()
223 int r; in wl1273_fm_irq_thread_handler() local
226 if (r) in wl1273_fm_irq_thread_handler()
250 if (r) in wl1273_fm_irq_thread_handler()
364 if (r) in wl1273_fm_set_tx_freq()
378 if (r) in wl1273_fm_set_tx_freq()
458 int r; in wl1273_fm_get_freq() local
497 int r; in wl1273_fm_upload_firmware_patch() local
[all …]
/linux/drivers/clk/sifive/
A Dsifive-prci.c212 int r; in sifive_prci_wrpll_set_rate() local
215 if (r) in sifive_prci_wrpll_set_rate()
233 u32 r; in sifive_clk_is_enabled() local
265 u32 r; in sifive_prci_clock_disable() local
320 u32 r; in sifive_prci_coreclksel_use_hfclk() local
341 u32 r; in sifive_prci_coreclksel_use_corepll() local
363 u32 r; in sifive_prci_coreclksel_use_final_corepll() local
384 u32 r; in sifive_prci_corepllsel_use_dvfscorepll() local
405 u32 r; in sifive_prci_corepllsel_use_corepll() local
426 u32 r; in sifive_prci_hfpclkpllsel_use_hfclk() local
[all …]
/linux/crypto/
A Dcast5_generic.c327 t = l; l = r; r = t ^ F1(r, Km[0], Kr[0]); in __cast5_encrypt()
328 t = l; l = r; r = t ^ F2(r, Km[1], Kr[1]); in __cast5_encrypt()
329 t = l; l = r; r = t ^ F3(r, Km[2], Kr[2]); in __cast5_encrypt()
330 t = l; l = r; r = t ^ F1(r, Km[3], Kr[3]); in __cast5_encrypt()
331 t = l; l = r; r = t ^ F2(r, Km[4], Kr[4]); in __cast5_encrypt()
332 t = l; l = r; r = t ^ F3(r, Km[5], Kr[5]); in __cast5_encrypt()
333 t = l; l = r; r = t ^ F1(r, Km[6], Kr[6]); in __cast5_encrypt()
334 t = l; l = r; r = t ^ F2(r, Km[7], Kr[7]); in __cast5_encrypt()
335 t = l; l = r; r = t ^ F3(r, Km[8], Kr[8]); in __cast5_encrypt()
336 t = l; l = r; r = t ^ F1(r, Km[9], Kr[9]); in __cast5_encrypt()
[all …]

Completed in 96 milliseconds

12345678910>>...113