/linux-6.3-rc2/include/linux/ |
A D | ptr_ring.h | 51 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 D | refcount.h | 136 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-6.3-rc2/arch/x86/um/shared/sysdep/ |
A D | ptrace.h | 11 #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 D | ptrace_64.h | 13 #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-6.3-rc2/drivers/gpu/drm/exynos/ |
A D | regs-scaler.h | 79 #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-6.3-rc2/drivers/net/wireless/zydas/zd1211rw/ |
A D | zd_rf_al7230b.c | 64 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 D | zd_rf_al2230.c | 68 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 …]
|
A D | zd_chip.c | 95 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 …]
|
/linux-6.3-rc2/arch/x86/um/asm/ |
A D | ptrace.h | 11 #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-6.3-rc2/sound/pci/ice1712/ |
A D | hoontech.h | 30 #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-6.3-rc2/lib/ |
A D | linear_ranges.c | 29 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-6.3-rc2/fs/dlm/ |
A D | recover.c | 352 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 …]
|
/linux-6.3-rc2/drivers/gpio/ |
A D | gpio-reg.c | 59 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-6.3-rc2/include/drm/ |
A D | drm_rect.h | 74 #define DRM_RECT_ARG(r) drm_rect_width(r), drm_rect_height(r), (r)->x1, (r)->y1 argument 90 (r)->x1 >> 16, (((r)->x1 & 0xffff) * 15625) >> 10, \ 91 (r)->y1 >> 16, (((r)->y1 & 0xffff) * 15625) >> 10 104 r->x1 = x; in drm_rect_init() 105 r->y1 = y; in drm_rect_init() 141 r->x1 += dx; in drm_rect_translate() 142 r->y1 += dy; in drm_rect_translate() 143 r->x2 += dx; in drm_rect_translate() 158 drm_rect_translate(r, x - r->x1, y - r->y1); in drm_rect_translate_to() 186 return r->x2 - r->x1; in drm_rect_width() [all …]
|
/linux-6.3-rc2/sound/firewire/ |
A D | iso-resources.c | 29 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-6.3-rc2/arch/powerpc/platforms/ps3/ |
A D | mm.c | 228 if (!r->base || !r->size) { in ps3_mm_get_repository_highmem() 233 r->offset = r->base - map.rm.size; in ps3_mm_get_repository_highmem() 243 r->size = r->base = r->offset = 0; in ps3_mm_get_repository_highmem() 296 r->size = r->base = r->offset = 0; in ps3_mm_region_create() 320 r->size = r->base = r->offset = 0; in ps3_mm_region_destroy() 654 __LINE__, r->len, r->page_size, r->offset); in dma_sb_region_create() 664 roundup_pow_of_two(r->len), r->page_size, r->region_type, in dma_sb_region_create() 671 r->len = r->bus_addr = 0; in dma_sb_region_create() 693 r->len = r->bus_addr = 0; in dma_ioc0_region_create() 696 r->len, r->page_size, r->bus_addr); in dma_ioc0_region_create() [all …]
|
/linux-6.3-rc2/kernel/ |
A D | resource_kunit.c | 31 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-6.3-rc2/drivers/net/wireless/ath/wil6210/ |
A D | rx_reorder.c | 30 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-6.3-rc2/drivers/md/ |
A D | dm-thin-metadata.c | 456 int r; in __superblock_all_zeroes() local 466 if (r) in __superblock_all_zeroes() 523 int r; in save_sm_roots() local 555 int r; in __write_initial_superblock() local 576 if (r) in __write_initial_superblock() 601 int r; in __format_metadata() local 637 if (r) in __format_metadata() 683 int r; in __open_metadata() local 763 if (r) in __open_or_format_metadata() 774 int r; in __create_persistent_data_objects() local [all …]
|
/linux-6.3-rc2/drivers/clk/sifive/ |
A D | sifive-prci.c | 207 int r; in sifive_prci_wrpll_set_rate() local 210 if (r) in sifive_prci_wrpll_set_rate() 228 u32 r; in sifive_clk_is_enabled() local 260 u32 r; in sifive_prci_clock_disable() local 315 u32 r; in sifive_prci_coreclksel_use_hfclk() local 336 u32 r; in sifive_prci_coreclksel_use_corepll() local 358 u32 r; in sifive_prci_coreclksel_use_final_corepll() local 379 u32 r; in sifive_prci_corepllsel_use_dvfscorepll() local 400 u32 r; in sifive_prci_corepllsel_use_corepll() local 421 u32 r; in sifive_prci_hfpclkpllsel_use_hfclk() local [all …]
|
/linux-6.3-rc2/tools/testing/selftests/powerpc/include/ |
A D | instructions.h | 80 #define __PPC_PREFIX_R(r) (((r) & 0x1) << 20) argument 117 #define PLBZ(t, a, r, d) PREFIX_MLS(PPC_INST_LBZ, t, a, r, d) argument 118 #define PLHZ(t, a, r, d) PREFIX_MLS(PPC_INST_LHZ, t, a, r, d) argument 119 #define PLHA(t, a, r, d) PREFIX_MLS(PPC_INST_LHA, t, a, r, d) argument 120 #define PLWZ(t, a, r, d) PREFIX_MLS(PPC_INST_LWZ, t, a, r, d) argument 121 #define PLWA(t, a, r, d) PREFIX_8LS(0xa4000000, t, a, r, d) argument 122 #define PLD(t, a, r, d) PREFIX_8LS(0xe4000000, t, a, r, d) argument 123 #define PLQ(t, a, r, d) PREFIX_8LS(0xe0000000, t, a, r, d) argument 127 #define PSTD(s, a, r, d) PREFIX_8LS(0xf4000000, s, a, r, d) argument 128 #define PSTQ(s, a, r, d) PREFIX_8LS(0xf0000000, s, a, r, d) argument [all …]
|
/linux-6.3-rc2/crypto/ |
A D | cast5_generic.c | 327 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 …]
|
/linux-6.3-rc2/drivers/media/radio/ |
A D | radio-wl1273.c | 122 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-6.3-rc2/drivers/dma-buf/ |
A D | st-dma-resv.c | 42 int r; in sanitycheck() local 55 if (r) in sanitycheck() 60 return r; in sanitycheck() 68 int r; in test_signaling() local 78 if (r) { in test_signaling() 84 if (r) { in test_signaling() 115 int r; in test_for_each() local 155 r = 0; in test_for_each() 176 int r; in test_for_each_unlocked() local 233 if (r) in test_for_each_unlocked() [all …]
|
/linux-6.3-rc2/arch/x86/kernel/cpu/resctrl/ |
A D | core.c | 152 r->cache.cbm_len = 20; in cache_alloc_hsw_probe() 162 if (!r) in is_mba_sc() 217 r->data_width = 3; in __get_mem_config_intel() 256 r->membw.min_bw = 0; in __rdt_get_mem_config_amd() 257 r->membw.bw_gran = 1; in __rdt_get_mem_config_amd() 259 r->data_width = 4; in __rdt_get_mem_config_amd() 277 r->cache.shareable_bits = ebx & r->default_ctrl; in rdt_get_cache_alloc_cfg() 278 r->data_width = (r->cache.cbm_len + 3) / 4; in rdt_get_cache_alloc_cfg() 383 cpu, r->name); in rdt_ctrl_update() 534 if (r->alloc_capable && domain_setup_ctrlval(r, d)) { in domain_add_cpu() [all …]
|