Home
last modified time | relevance | path

Searched refs:ptr (Results 6726 - 6750 of 11563) sorted by relevance

1...<<261262263264265266267268269270>>...463

/kernel/linux/linux-6.6/include/linux/
H A Dkfifo.h58 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 D8250_mtk.c99 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 Disst_if_common.c550 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 Discsi_ibft.c743 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 Dclkctrl.c345 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 Dhdaudio.h698 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 Dutil.c528 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 Dteam_mode_loadbalance.c246 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 Ddwmac5.c27 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 Drf.c59 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 Dkvm.c420 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 Dkgdb.c444 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 Dradeon_object.c219 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 Dbcache.h69 * 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 Dcpumap.c633 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 Dmaya44.c563 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 Dsysctl_net_core.c254 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 Dvf_tonemap_opencl.c429 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 Davio.c37 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 Dsimple.c984 * \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 Dusbd_video.c733 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 Dmemory.cpp465 // 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()
/third_party/mesa3d/src/gallium/drivers/vc4/
H A Dvc4_bufmgr.c45 vc4_bo_debug_describe(char* buf, const struct vc4_bo *ptr) in vc4_bo_debug_describe() argument
47 sprintf(buf, "vc4_bo<%s,%u,%u>", ptr->name ? ptr->name : "?", in vc4_bo_debug_describe()
48 ptr->handle, ptr->size); in vc4_bo_debug_describe()
/third_party/mesa3d/src/mesa/main/
H A Dframebuffer.c227 * Set *ptr to point to fb, with refcounting and locking.
232 _mesa_reference_framebuffer_(struct gl_framebuffer **ptr, in _mesa_reference_framebuffer_() argument
235 if (*ptr) { in _mesa_reference_framebuffer_()
238 struct gl_framebuffer *oldFb = *ptr; in _mesa_reference_framebuffer_()
249 *ptr = NULL; in _mesa_reference_framebuffer_()
256 *ptr = fb; in _mesa_reference_framebuffer_()
/third_party/lwip/src/core/ipv6/
H A Dip6_frag.c650 u8_t *ptr = (u8_t *)iphdr_ptr + IP6_HLEN; in ip6_reass() local
651 while (*ptr != IP6_NEXTH_FRAGMENT) { in ip6_reass()
652 ptr += 8 * (1 + ptr[1]); in ip6_reass()
654 *ptr = ipr->nexth; in ip6_reass()

Completed in 31 milliseconds

1...<<261262263264265266267268269270>>...463