/kernel/linux/linux-6.6/fs/erofs/ |
H A D | xattr.c | 500 void *ptr = erofs_read_metadata(sb, &buf, &pos, &len); in erofs_xattr_prefixes_init() local 502 if (IS_ERR(ptr)) { in erofs_xattr_prefixes_init() 503 ret = PTR_ERR(ptr); in erofs_xattr_prefixes_init() 507 kfree(ptr); in erofs_xattr_prefixes_init() 511 pfs[i].prefix = ptr; in erofs_xattr_prefixes_init()
|
/kernel/linux/linux-6.6/fs/xfs/libxfs/ |
H A D | xfs_rmap_btree.c | 63 const union xfs_btree_ptr *ptr, in xfs_rmapbt_set_root() 70 ASSERT(ptr->s != 0); in xfs_rmapbt_set_root() 72 agf->agf_roots[btnum] = ptr->s; in xfs_rmapbt_set_root() 223 union xfs_btree_ptr *ptr) in xfs_rmapbt_init_ptr_from_cur() 229 ptr->s = agf->agf_roots[cur->bc_btnum]; in xfs_rmapbt_init_ptr_from_cur() 61 xfs_rmapbt_set_root( struct xfs_btree_cur *cur, const union xfs_btree_ptr *ptr, int inc) xfs_rmapbt_set_root() argument 221 xfs_rmapbt_init_ptr_from_cur( struct xfs_btree_cur *cur, union xfs_btree_ptr *ptr) xfs_rmapbt_init_ptr_from_cur() argument
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | dma-mapping.h | 328 static inline dma_addr_t dma_map_single_attrs(struct device *dev, void *ptr, in dma_map_single_attrs() argument 332 if (dev_WARN_ONCE(dev, is_vmalloc_addr(ptr), in dma_map_single_attrs() 335 debug_dma_map_single(dev, ptr, size); in dma_map_single_attrs() 336 return dma_map_page_attrs(dev, virt_to_page(ptr), offset_in_page(ptr), in dma_map_single_attrs()
|
H A D | kfifo.h | 58 ptrtype *ptr; \ 446 typeof(__tmp->ptr) __val = (val); \ 485 typeof(__tmp->ptr) __val = (val); \ 591 typeof(__tmp->ptr) __buf = (buf); \ 821 typeof(__tmp->ptr) __buf = (buf); \
|
/kernel/linux/linux-6.6/drivers/tty/serial/8250/ |
H A D | 8250_mtk.c | 99 unsigned char *ptr; in mtk8250_dma_rx_complete() local 114 ptr = (unsigned char *)(data->rx_pos + dma->rx_buf); in mtk8250_dma_rx_complete() 115 copied = tty_insert_flip_string(tty_port, ptr, cnt); in mtk8250_dma_rx_complete() 119 ptr = (unsigned char *)(dma->rx_buf); in mtk8250_dma_rx_complete() 121 copied += tty_insert_flip_string(tty_port, ptr, cnt); in mtk8250_dma_rx_complete()
|
/kernel/linux/linux-6.6/drivers/platform/x86/intel/speed_select_if/ |
H A D | isst_if_common.c | 550 unsigned char __user *ptr; in isst_if_exec_multi_cmd() local 568 ptr = argp + cb->offset; in isst_if_exec_multi_cmd() 578 if (copy_from_user(cmd_ptr, ptr, cb->cmd_size)) { in isst_if_exec_multi_cmd() 587 if (!wr_only && copy_to_user(ptr, cmd_ptr, cb->cmd_size)) { in isst_if_exec_multi_cmd() 592 ptr += cb->cmd_size; in isst_if_exec_multi_cmd()
|
/kernel/linux/linux-6.6/drivers/firmware/ |
H A D | iscsi_ibft.c | 743 void *ptr, *end; in ibft_register_kobjects() local 760 for (ptr = &control->initiator_off; ptr + sizeof(u16) <= end; ptr += sizeof(u16)) { in ibft_register_kobjects() 761 offset = *(u16 *)ptr; in ibft_register_kobjects()
|
/kernel/linux/linux-6.6/drivers/clk/ti/ |
H A D | clkctrl.c | 345 clk_hw->enable_reg.ptr = reg; in _ti_clkctrl_setup_gate() 380 mux->reg.ptr = reg; in _ti_clkctrl_setup_mux() 402 div->reg.ptr = reg; in _ti_clkctrl_setup_div() 657 hw->enable_reg.ptr = provider->base + reg_data->offset; in _ti_omap4_clkctrl_setup() 660 hw->enable_reg.ptr, clkctrl_name); in _ti_omap4_clkctrl_setup()
|
/kernel/linux/linux-6.6/include/sound/ |
H A D | hdaudio.h | 698 static inline unsigned int snd_array_index(struct snd_array *array, void *ptr) in snd_array_index() argument 700 return (unsigned long)(ptr - array->list) / array->elem_size; in snd_array_index() 704 #define snd_array_for_each(array, idx, ptr) \ 705 for ((idx) = 0, (ptr) = (array)->list; (idx) < (array)->used; \ 706 (ptr) = snd_array_elem(array, ++(idx)))
|
/kernel/linux/linux-6.6/ipc/ |
H A D | util.c | 528 bool ipc_rcu_getref(struct kern_ipc_perm *ptr) in ipc_rcu_getref() argument 530 return refcount_inc_not_zero(&ptr->refcount); in ipc_rcu_getref() 533 void ipc_rcu_putref(struct kern_ipc_perm *ptr, in ipc_rcu_putref() argument 536 if (!refcount_dec_and_test(&ptr->refcount)) in ipc_rcu_putref() 539 call_rcu(&ptr->rcu, func); in ipc_rcu_putref()
|
/kernel/linux/linux-6.6/drivers/net/team/ |
H A D | team_mode_loadbalance.c | 246 ctx->data.bin_val.ptr = NULL; in lb_bpf_func_get() 251 ctx->data.bin_val.ptr = lb_priv->ex->orig_fprog->filter; in lb_bpf_func_get() 291 ctx->data.bin_val.ptr); in lb_bpf_func_set() 409 ctx->data.bin_val.ptr = &lb_priv->ex->stats.info[hash].stats; in lb_hash_stats_get() 427 ctx->data.bin_val.ptr = &lb_port_priv->stats_info.stats; in lb_port_stats_get()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac5.c | 27 unsigned long *ptr; in dwmac5_log_error() local 29 ptr = (unsigned long *)(bptr + field_offset); in dwmac5_log_error() 38 ptr[loc]++; in dwmac5_log_error() 317 unsigned long *ptr = (unsigned long *)stats; in dwmac5_safety_feat_dump() local 324 *count = *(ptr + index); in dwmac5_safety_feat_dump()
|
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
H A D | rf.c | 59 u8 *ptr; in rtl92d_phy_rf6052_set_cck_txpower() local 92 ptr = (u8 *) (&(tx_agc[idx1])); in rtl92d_phy_rf6052_set_cck_txpower() 94 if (*ptr > RF6052_MAX_TX_PWR) in rtl92d_phy_rf6052_set_cck_txpower() 95 *ptr = RF6052_MAX_TX_PWR; in rtl92d_phy_rf6052_set_cck_txpower() 96 ptr++; in rtl92d_phy_rf6052_set_cck_txpower()
|
/kernel/linux/linux-6.6/arch/x86/kernel/ |
H A D | kvm.c | 420 static inline void __set_percpu_decrypted(void *ptr, unsigned long size) in __set_percpu_decrypted() argument 422 early_set_memory_decrypted((unsigned long) ptr, size); in __set_percpu_decrypted() 1040 static void kvm_wait(u8 *ptr, u8 val) in kvm_wait() argument 1051 if (READ_ONCE(*ptr) == val) in kvm_wait() 1057 if (READ_ONCE(*ptr) == val) in kvm_wait()
|
H A D | kgdb.c | 444 char *ptr; in kgdb_arch_handle_exception() local 450 ptr = &remcomInBuffer[1]; in kgdb_arch_handle_exception() 451 if (kgdb_hex2long(&ptr, &addr)) in kgdb_arch_handle_exception() 575 kgdb_notify(struct notifier_block *self, unsigned long cmd, void *ptr) in kgdb_notify() argument 581 ret = __kgdb_notify(ptr, cmd); in kgdb_notify()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/ |
H A D | radeon_object.c | 219 int radeon_bo_kmap(struct radeon_bo *bo, void **ptr) in radeon_bo_kmap() argument 230 if (ptr) { in radeon_bo_kmap() 231 *ptr = bo->kptr; in radeon_bo_kmap() 240 if (ptr) { in radeon_bo_kmap() 241 *ptr = bo->kptr; in radeon_bo_kmap()
|
/kernel/linux/linux-6.6/drivers/md/bcache/ |
H A D | bcache.h | 69 * At a high level, the btree is just an index of key -> ptr tuples. 812 unsigned int ptr) in PTR_BUCKET_NR() 814 return sector_to_bucket(c, PTR_OFFSET(k, ptr)); in PTR_BUCKET_NR() 819 unsigned int ptr) in PTR_BUCKET() 821 return c->cache->buckets + PTR_BUCKET_NR(c, k, ptr); in PTR_BUCKET() 975 struct bkey *k, unsigned int ptr); 810 PTR_BUCKET_NR(struct cache_set *c, const struct bkey *k, unsigned int ptr) PTR_BUCKET_NR() argument 817 PTR_BUCKET(struct cache_set *c, const struct bkey *k, unsigned int ptr) PTR_BUCKET() argument
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | cpumap.c | 633 char *ptr = buf; in cpu_map__snprint_mask() local 659 *ptr++ = hex_char(bits); in cpu_map__snprint_mask() 661 *ptr++ = ','; in cpu_map__snprint_mask() 663 *ptr = '\0'; in cpu_map__snprint_mask() 667 return ptr - buf; in cpu_map__snprint_mask()
|
/kernel/linux/linux-6.6/sound/pci/ice1712/ |
H A D | maya44.c | 563 const unsigned short *ptr; in wm8776_init() local 571 ptr = inits_wm8776; in wm8776_init() 572 while (*ptr != 0xff) { in wm8776_init() 573 reg = *ptr++; in wm8776_init() 574 data = *ptr++; in wm8776_init()
|
/kernel/linux/linux-6.6/net/core/ |
H A D | sysctl_net_core.c | 254 unsigned int old, *ptr; in flow_limit_table_len_sysctl() local 259 ptr = table->data; in flow_limit_table_len_sysctl() 260 old = *ptr; in flow_limit_table_len_sysctl() 262 if (!ret && write && !is_power_of_2(*ptr)) { in flow_limit_table_len_sysctl() 263 *ptr = old; in flow_limit_table_len_sysctl()
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_tonemap_opencl.c | 429 uint32_t *ptr, *max_total_p, *avg_total_p, *frame_number_p; in tonemap_opencl_filter_frame() local 432 ptr = (void *)clEnqueueMapBuffer(ctx->command_queue, ctx->util_mem, in tonemap_opencl_filter_frame() 436 if (ptr) { in tonemap_opencl_filter_frame() 437 max_total_p = ptr + 2 * (DETECTION_FRAMES + 1) + 1; in tonemap_opencl_filter_frame() 444 clEnqueueUnmapMemObject(ctx->command_queue, ctx->util_mem, ptr, 0, in tonemap_opencl_filter_frame()
|
/third_party/ffmpeg/libavformat/ |
H A D | avio.c | 37 static const char *urlcontext_to_name(void *ptr) in urlcontext_to_name() argument 39 URLContext *h = (URLContext *)ptr; in urlcontext_to_name() 254 char proto_str[128], proto_nested[128], *ptr; in url_find_protocol() local 267 if ((ptr = strchr(proto_nested, '+'))) in url_find_protocol() 268 *ptr = '\0'; in url_find_protocol()
|
/third_party/alsa-lib/src/mixer/ |
H A D | simple.c | 984 * \param ptr returned pointer 987 int snd_mixer_selem_id_malloc(snd_mixer_selem_id_t **ptr) in snd_mixer_selem_id_malloc() argument 989 assert(ptr); in snd_mixer_selem_id_malloc() 990 *ptr = calloc(1, sizeof(snd_mixer_selem_id_t)); in snd_mixer_selem_id_malloc() 991 if (!*ptr) in snd_mixer_selem_id_malloc() 1070 char *ptr = buf; in snd_mixer_selem_id_parse() local 1081 *ptr++ = *str; in snd_mixer_selem_id_parse() 1090 *ptr++ = *str; in snd_mixer_selem_id_parse() 1099 *ptr = 0; in snd_mixer_selem_id_parse() 1104 *ptr in snd_mixer_selem_id_parse() [all...] |
/third_party/NuttX/drivers/usbdev/gadget/ |
H A D | usbd_video.c | 733 uintptr_t ptr; in uvc_nocp_continue() local 735 ptr = (uintptr_t)tran->data; in uvc_nocp_continue() 736 ptr -= tran->res_next; in uvc_nocp_continue() 740 if ((ptr + length) & 0x3) in uvc_nocp_continue() 742 while ((ptr + length) & 0x3) in uvc_nocp_continue()
|
/third_party/mesa3d/src/gallium/frontends/clover/api/ |
H A D | memory.cpp | 465 // check the ptr in more detail in clGetMemObjectInfo() 609 void *ptr = nullptr; in clSVMAlloc() local 612 posix_memalign(&ptr, alignment, size); in clSVMAlloc() 614 if (ptr) in clSVMAlloc() 615 ctx.add_svm_allocation(ptr, size); in clSVMAlloc() 617 return ptr; in clSVMAlloc()
|