/linux-6.12.1/drivers/net/ethernet/intel/ice/ |
D | ice_parser_rt.c | 6 static void ice_rt_tsr_set(struct ice_parser_rt *rt, u16 tsr) in ice_rt_tsr_set() argument 8 rt->gpr[ICE_GPR_TSR_IDX] = tsr; in ice_rt_tsr_set() 11 static void ice_rt_ho_set(struct ice_parser_rt *rt, u16 ho) in ice_rt_ho_set() argument 13 rt->gpr[ICE_GPR_HO_IDX] = ho; in ice_rt_ho_set() 14 memcpy(&rt->gpr[ICE_GPR_HV_IDX], &rt->pkt_buf[ho], ICE_GPR_HV_SIZE); in ice_rt_ho_set() 17 static void ice_rt_np_set(struct ice_parser_rt *rt, u16 pc) in ice_rt_np_set() argument 19 rt->gpr[ICE_GPR_NP_IDX] = pc; in ice_rt_np_set() 22 static void ice_rt_nn_set(struct ice_parser_rt *rt, u16 node) in ice_rt_nn_set() argument 24 rt->gpr[ICE_GPR_NN_IDX] = node; in ice_rt_nn_set() 28 ice_rt_flag_set(struct ice_parser_rt *rt, unsigned int idx, bool set) in ice_rt_flag_set() argument [all …]
|
/linux-6.12.1/sound/usb/6fire/ |
D | midi.c | 24 struct midi_runtime *rt = urb->context; in usb6fire_midi_out_handler() local 28 spin_lock_irqsave(&rt->out_lock, flags); in usb6fire_midi_out_handler() 30 if (rt->out) { in usb6fire_midi_out_handler() 31 ret = snd_rawmidi_transmit(rt->out, rt->out_buffer + 4, in usb6fire_midi_out_handler() 34 rt->out_buffer[1] = ret + 2; in usb6fire_midi_out_handler() 35 rt->out_buffer[3] = rt->out_serial++; in usb6fire_midi_out_handler() 44 rt->out = NULL; in usb6fire_midi_out_handler() 46 spin_unlock_irqrestore(&rt->out_lock, flags); in usb6fire_midi_out_handler() 50 struct midi_runtime *rt, u8 *data, int length) in usb6fire_midi_in_received() argument 54 spin_lock_irqsave(&rt->in_lock, flags); in usb6fire_midi_in_received() [all …]
|
D | pcm.c | 70 static int usb6fire_pcm_set_rate(struct pcm_runtime *rt) in usb6fire_pcm_set_rate() argument 73 struct control_runtime *ctrl_rt = rt->chip->control; in usb6fire_pcm_set_rate() 78 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate() 80 rates[rt->rate]); in usb6fire_pcm_set_rate() 84 ret = ctrl_rt->set_rate(ctrl_rt, rt->rate); in usb6fire_pcm_set_rate() 86 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate() 88 rates[rt->rate]); in usb6fire_pcm_set_rate() 95 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate() 97 rates[rt->rate]); in usb6fire_pcm_set_rate() 104 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate() [all …]
|
D | control.c | 60 static void usb6fire_control_output_vol_update(struct control_runtime *rt) in usb6fire_control_output_vol_update() argument 62 struct comm_runtime *comm_rt = rt->chip->comm; in usb6fire_control_output_vol_update() 67 if (!(rt->ovol_updated & (1 << i))) { in usb6fire_control_output_vol_update() 69 180 - rt->output_vol[i]); in usb6fire_control_output_vol_update() 70 rt->ovol_updated |= 1 << i; in usb6fire_control_output_vol_update() 74 static void usb6fire_control_output_mute_update(struct control_runtime *rt) in usb6fire_control_output_mute_update() argument 76 struct comm_runtime *comm_rt = rt->chip->comm; in usb6fire_control_output_mute_update() 79 comm_rt->write8(comm_rt, 0x12, 0x0e, ~rt->output_mute); in usb6fire_control_output_mute_update() 82 static void usb6fire_control_input_vol_update(struct control_runtime *rt) in usb6fire_control_input_vol_update() argument 84 struct comm_runtime *comm_rt = rt->chip->comm; in usb6fire_control_input_vol_update() [all …]
|
D | comm.c | 21 static void usb6fire_comm_init_urb(struct comm_runtime *rt, struct urb *urb, in usb6fire_comm_init_urb() argument 26 urb->pipe = usb_sndintpipe(rt->chip->dev, COMM_EP); in usb6fire_comm_init_urb() 30 urb->dev = rt->chip->dev; in usb6fire_comm_init_urb() 35 struct comm_runtime *rt = urb->context; in usb6fire_comm_receiver_handler() local 36 struct midi_runtime *midi_rt = rt->chip->midi; in usb6fire_comm_receiver_handler() 39 if (rt->receiver_buffer[0] == 0x10) /* midi in event */ in usb6fire_comm_receiver_handler() 42 rt->receiver_buffer + 2, in usb6fire_comm_receiver_handler() 43 rt->receiver_buffer[1]); in usb6fire_comm_receiver_handler() 46 if (!rt->chip->shutdown) { in usb6fire_comm_receiver_handler() 106 static int usb6fire_comm_write8(struct comm_runtime *rt, u8 request, in usb6fire_comm_write8() argument [all …]
|
/linux-6.12.1/drivers/thunderbolt/ |
D | retimer.c | 33 int tb_retimer_nvm_read(struct tb_retimer *rt, unsigned int address, void *buf, in tb_retimer_nvm_read() argument 36 return usb4_port_retimer_nvm_read(rt->port, rt->index, address, buf, size); in tb_retimer_nvm_read() 42 struct tb_retimer *rt = tb_to_retimer(nvm->dev); in nvm_read() local 45 pm_runtime_get_sync(&rt->dev); in nvm_read() 47 if (!mutex_trylock(&rt->tb->lock)) { in nvm_read() 52 ret = tb_retimer_nvm_read(rt, offset, val, bytes); in nvm_read() 53 mutex_unlock(&rt->tb->lock); in nvm_read() 56 pm_runtime_mark_last_busy(&rt->dev); in nvm_read() 57 pm_runtime_put_autosuspend(&rt->dev); in nvm_read() 65 struct tb_retimer *rt = tb_to_retimer(nvm->dev); in nvm_write() local [all …]
|
/linux-6.12.1/arch/mips/ralink/ |
D | timer.c | 42 static inline void rt_timer_w32(struct rt_timer *rt, u8 reg, u32 val) in rt_timer_w32() argument 44 __raw_writel(val, rt->membase + reg); in rt_timer_w32() 47 static inline u32 rt_timer_r32(struct rt_timer *rt, u8 reg) in rt_timer_r32() argument 49 return __raw_readl(rt->membase + reg); in rt_timer_r32() 54 struct rt_timer *rt = (struct rt_timer *) _rt; in rt_timer_irq() local 56 rt_timer_w32(rt, TIMER_REG_TMR0LOAD, rt->timer_freq / rt->timer_div); in rt_timer_irq() 57 rt_timer_w32(rt, TIMER_REG_TMRSTAT, TMRSTAT_TMR0INT); in rt_timer_irq() 63 static int rt_timer_request(struct rt_timer *rt) in rt_timer_request() argument 65 int err = request_irq(rt->irq, rt_timer_irq, 0, in rt_timer_request() 66 dev_name(rt->dev), rt); in rt_timer_request() [all …]
|
/linux-6.12.1/drivers/leds/flash/ |
D | leds-rt8515.c | 66 static void rt8515_gpio_led_off(struct rt8515 *rt) in rt8515_gpio_led_off() argument 68 gpiod_set_value(rt->enable_flash, 0); in rt8515_gpio_led_off() 69 gpiod_set_value(rt->enable_torch, 0); in rt8515_gpio_led_off() 94 struct rt8515 *rt = to_rt8515(fled); in rt8515_led_brightness_set() local 96 mutex_lock(&rt->lock); in rt8515_led_brightness_set() 100 rt8515_gpio_led_off(rt); in rt8515_led_brightness_set() 103 rt8515_gpio_brightness_commit(rt->enable_torch, brightness); in rt8515_led_brightness_set() 106 gpiod_set_value(rt->enable_torch, 1); in rt8515_led_brightness_set() 109 mutex_unlock(&rt->lock); in rt8515_led_brightness_set() 117 struct rt8515 *rt = to_rt8515(fled); in rt8515_led_flash_strobe_set() local [all …]
|
/linux-6.12.1/net/x25/ |
D | x25_route.c | 29 struct x25_route *rt; in x25_add_route() local 34 list_for_each_entry(rt, &x25_route_list, node) { in x25_add_route() 35 if (!memcmp(&rt->address, address, sigdigits) && in x25_add_route() 36 rt->sigdigits == sigdigits) in x25_add_route() 40 rt = kmalloc(sizeof(*rt), GFP_ATOMIC); in x25_add_route() 42 if (!rt) in x25_add_route() 45 strcpy(rt->address.x25_addr, "000000000000000"); in x25_add_route() 46 memcpy(rt->address.x25_addr, address->x25_addr, sigdigits); in x25_add_route() 48 rt->sigdigits = sigdigits; in x25_add_route() 49 rt->dev = dev; in x25_add_route() [all …]
|
/linux-6.12.1/sound/aoa/core/ |
D | gpio-pmf.c | 14 static void pmf_gpio_set_##name(struct gpio_runtime *rt, int on)\ 19 if (unlikely(!rt)) return; \ 20 rc = pmf_call_function(rt->node, #name "-mute", &args); \ 24 rt->implementation_private &= ~(1<<bit); \ 25 rt->implementation_private |= (!!on << bit); \ 27 static int pmf_gpio_get_##name(struct gpio_runtime *rt) \ 29 if (unlikely(!rt)) return 0; \ 30 return (rt->implementation_private>>bit)&1; \ 37 static void pmf_gpio_set_hw_reset(struct gpio_runtime *rt, int on) in pmf_gpio_set_hw_reset() argument 42 if (unlikely(!rt)) return; in pmf_gpio_set_hw_reset() [all …]
|
D | gpio-feature.c | 133 static void ftr_gpio_set_##name(struct gpio_runtime *rt, int on)\ 137 if (unlikely(!rt)) return; \ 152 rt->implementation_private &= ~(1<<bit); \ 153 rt->implementation_private |= (!!on << bit); \ 155 static int ftr_gpio_get_##name(struct gpio_runtime *rt) \ 157 if (unlikely(!rt)) return 0; \ 158 return (rt->implementation_private>>bit)&1; \ 166 static void ftr_gpio_set_hw_reset(struct gpio_runtime *rt, int on) in ftr_gpio_set_hw_reset() argument 170 if (unlikely(!rt)) return; in ftr_gpio_set_hw_reset() 183 static void ftr_gpio_all_amps_off(struct gpio_runtime *rt) in ftr_gpio_all_amps_off() argument [all …]
|
/linux-6.12.1/sound/usb/hiface/ |
D | pcm.c | 112 static int hiface_pcm_set_rate(struct pcm_runtime *rt, unsigned int rate) in hiface_pcm_set_rate() argument 114 struct usb_device *device = rt->chip->dev; in hiface_pcm_set_rate() 172 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in hiface_pcm_get_substream() local 173 struct device *device = &rt->chip->dev->dev; in hiface_pcm_get_substream() 176 return &rt->playback; in hiface_pcm_get_substream() 183 static void hiface_pcm_stream_stop(struct pcm_runtime *rt) in hiface_pcm_stream_stop() argument 187 if (rt->stream_state != STREAM_DISABLED) { in hiface_pcm_stream_stop() 188 rt->stream_state = STREAM_STOPPING; in hiface_pcm_stream_stop() 192 &rt->out_urbs[i].submitted, 100); in hiface_pcm_stream_stop() 195 &rt->out_urbs[i].submitted); in hiface_pcm_stream_stop() [all …]
|
/linux-6.12.1/net/mctp/test/ |
D | route-test.c | 8 struct mctp_route rt; member 12 static int mctp_test_route_output(struct mctp_route *rt, struct sk_buff *skb) in mctp_test_route_output() argument 14 struct mctp_test_route *test_rt = container_of(rt, struct mctp_test_route, rt); in mctp_test_route_output() 24 struct mctp_test_route *rt; in mctp_route_test_alloc() local 26 rt = kzalloc(sizeof(*rt), GFP_KERNEL); in mctp_route_test_alloc() 27 if (!rt) in mctp_route_test_alloc() 30 INIT_LIST_HEAD(&rt->rt.list); in mctp_route_test_alloc() 31 refcount_set(&rt->rt.refs, 1); in mctp_route_test_alloc() 32 rt->rt.output = mctp_test_route_output; in mctp_route_test_alloc() 34 skb_queue_head_init(&rt->pkts); in mctp_route_test_alloc() [all …]
|
/linux-6.12.1/arch/mips/include/asm/ |
D | uasm.h | 210 # define UASM_i_ADDIU(buf, rs, rt, val) uasm_i_daddiu(buf, rs, rt, val) argument 211 # define UASM_i_ADDU(buf, rs, rt, rd) uasm_i_daddu(buf, rs, rt, rd) argument 212 # define UASM_i_LL(buf, rs, rt, off) uasm_i_lld(buf, rs, rt, off) argument 213 # define UASM_i_LW(buf, rs, rt, off) uasm_i_ld(buf, rs, rt, off) argument 214 # define UASM_i_LWX(buf, rs, rt, rd) uasm_i_ldx(buf, rs, rt, rd) argument 215 # define UASM_i_MFC0(buf, rt, rd...) uasm_i_dmfc0(buf, rt, rd) argument 216 # define UASM_i_MTC0(buf, rt, rd...) uasm_i_dmtc0(buf, rt, rd) argument 217 # define UASM_i_ROTR(buf, rs, rt, sh) uasm_i_drotr(buf, rs, rt, sh) argument 218 # define UASM_i_SC(buf, rs, rt, off) uasm_i_scd(buf, rs, rt, off) argument 219 # define UASM_i_SLL(buf, rs, rt, sh) uasm_i_dsll(buf, rs, rt, sh) argument [all …]
|
/linux-6.12.1/sound/aoa/ |
D | aoa-gpio.h | 24 void (*init)(struct gpio_runtime *rt); 25 void (*exit)(struct gpio_runtime *rt); 28 void (*all_amps_off)(struct gpio_runtime *rt); 30 void (*all_amps_restore)(struct gpio_runtime *rt); 32 void (*set_headphone)(struct gpio_runtime *rt, int on); 33 void (*set_speakers)(struct gpio_runtime *rt, int on); 34 void (*set_lineout)(struct gpio_runtime *rt, int on); 35 void (*set_master)(struct gpio_runtime *rt, int on); 37 int (*get_headphone)(struct gpio_runtime *rt); 38 int (*get_speakers)(struct gpio_runtime *rt); [all …]
|
/linux-6.12.1/tools/testing/selftests/bpf/progs/ |
D | bpf_iter_ipv6_route.c | 15 struct fib6_info *rt = ctx->rt; in dump_ipv6_route() local 21 if (rt == (void *)0) in dump_ipv6_route() 24 fib6_nh = &rt->fib6_nh[0]; in dump_ipv6_route() 25 flags = rt->fib6_flags; in dump_ipv6_route() 28 nh = rt->nh; in dump_ipv6_route() 29 if (rt->nh) in dump_ipv6_route() 32 BPF_SEQ_PRINTF(seq, "%pi6 %02x ", &rt->fib6_dst.addr, rt->fib6_dst.plen); in dump_ipv6_route() 35 BPF_SEQ_PRINTF(seq, "%pi6 %02x ", &rt->fib6_src.addr, in dump_ipv6_route() 36 rt->fib6_src.plen); in dump_ipv6_route() 49 BPF_SEQ_PRINTF(seq, "%08x %08x %08x %08x %8s\n", rt->fib6_metric, in dump_ipv6_route() [all …]
|
/linux-6.12.1/net/ipv4/ |
D | xfrm4_policy.c | 23 struct rtable *rt; in __xfrm4_dst_lookup() local 36 rt = __ip_route_output_key(params->net, fl4); in __xfrm4_dst_lookup() 37 if (!IS_ERR(rt)) in __xfrm4_dst_lookup() 38 return &rt->dst; in __xfrm4_dst_lookup() 40 return ERR_CAST(rt); in __xfrm4_dst_lookup() 68 struct rtable *rt = dst_rtable(xdst->route); in xfrm4_fill_dst() local 71 xdst->u.rt.rt_iif = fl4->flowi4_iif; in xfrm4_fill_dst() 78 xdst->u.rt.rt_is_input = rt->rt_is_input; in xfrm4_fill_dst() 79 xdst->u.rt.rt_flags = rt->rt_flags & (RTCF_BROADCAST | RTCF_MULTICAST | in xfrm4_fill_dst() 81 xdst->u.rt.rt_type = rt->rt_type; in xfrm4_fill_dst() [all …]
|
D | route.c | 405 const struct rtable *rt = container_of(dst, struct rtable, dst); in ipv4_neigh_lookup() local 411 if (likely(rt->rt_gw_family == AF_INET)) { in ipv4_neigh_lookup() 412 n = ip_neigh_gw4(dev, rt->rt_gw4); in ipv4_neigh_lookup() 413 } else if (rt->rt_gw_family == AF_INET6) { in ipv4_neigh_lookup() 414 n = ip_neigh_gw6(dev, &rt->rt_gw6); in ipv4_neigh_lookup() 432 const struct rtable *rt = container_of(dst, struct rtable, dst); in ipv4_confirm_neigh() local 436 if (rt->rt_gw_family == AF_INET) { in ipv4_confirm_neigh() 437 pkey = (const __be32 *)&rt->rt_gw4; in ipv4_confirm_neigh() 438 } else if (rt->rt_gw_family == AF_INET6) { in ipv4_confirm_neigh() 439 return __ipv6_confirm_neigh_stub(dev, &rt->rt_gw6); in ipv4_confirm_neigh() [all …]
|
/linux-6.12.1/net/ipv6/ |
D | route.c | 111 struct fib6_info *rt, struct dst_entry *dst, 138 void rt6_uncached_list_add(struct rt6_info *rt) in rt6_uncached_list_add() argument 142 rt->dst.rt_uncached_list = ul; in rt6_uncached_list_add() 145 list_add_tail(&rt->dst.rt_uncached, &ul->head); in rt6_uncached_list_add() 149 void rt6_uncached_list_del(struct rt6_info *rt) in rt6_uncached_list_del() argument 151 if (!list_empty(&rt->dst.rt_uncached)) { in rt6_uncached_list_del() 152 struct uncached_list *ul = rt->dst.rt_uncached_list; in rt6_uncached_list_del() 155 list_del_init(&rt->dst.rt_uncached); in rt6_uncached_list_del() 166 struct rt6_info *rt, *safe; in rt6_uncached_list_flush_dev() local 172 list_for_each_entry_safe(rt, safe, &ul->head, dst.rt_uncached) { in rt6_uncached_list_flush_dev() [all …]
|
D | ip6_fib.c | 319 struct rt6_info *rt; in fib6_rule_lookup() local 321 rt = pol_lookup_func(lookup, in fib6_rule_lookup() 323 if (rt->dst.error == -EAGAIN) { in fib6_rule_lookup() 324 ip6_rt_put_flags(rt, flags); in fib6_rule_lookup() 325 rt = net->ipv6.ip6_null_entry; in fib6_rule_lookup() 327 dst_hold(&rt->dst); in fib6_rule_lookup() 330 return &rt->dst; in fib6_rule_lookup() 367 struct fib6_info *rt, in call_fib6_entry_notifier() argument 372 .rt = rt, in call_fib6_entry_notifier() 380 struct fib6_info *rt, in call_fib6_multipath_entry_notifier() argument [all …]
|
/linux-6.12.1/arch/mips/cavium-octeon/crypto/ |
D | octeon-crypto.h | 36 : [rt] "d" (cpu_to_be64(value))); \ 48 : [rt] "=d" (__value) \ 62 : [rt] "d" (cpu_to_be64(value))); \ 73 : [rt] "d" (cpu_to_be64(value))); \ 84 : [rt] "d" (value)); \ 95 : [rt] "d" (value)); \ 110 : [rt] "d" (value)); \ 122 : [rt] "=d" (__value) \ 136 : [rt] "d" (value)); \ 147 : [rt] "d" (value)); \ [all …]
|
/linux-6.12.1/net/mctp/ |
D | route.c | 535 static unsigned int mctp_route_mtu(struct mctp_route *rt) in mctp_route_mtu() argument 537 return rt->mtu ?: READ_ONCE(rt->dev->dev->mtu); in mctp_route_mtu() 588 static void mctp_route_release(struct mctp_route *rt) in mctp_route_release() argument 590 if (refcount_dec_and_test(&rt->refs)) { in mctp_route_release() 591 mctp_dev_put(rt->dev); in mctp_route_release() 592 kfree_rcu(rt, rcu); in mctp_route_release() 599 struct mctp_route *rt; in mctp_route_alloc() local 601 rt = kzalloc(sizeof(*rt), GFP_KERNEL); in mctp_route_alloc() 602 if (!rt) in mctp_route_alloc() 605 INIT_LIST_HEAD(&rt->list); in mctp_route_alloc() [all …]
|
/linux-6.12.1/net/sunrpc/ |
D | timer.c | 35 void rpc_init_rtt(struct rpc_rtt *rt, unsigned long timeo) in rpc_init_rtt() argument 40 rt->timeo = timeo; in rpc_init_rtt() 45 rt->srtt[i] = init; in rpc_init_rtt() 46 rt->sdrtt[i] = RPC_RTO_INIT; in rpc_init_rtt() 47 rt->ntimeouts[i] = 0; in rpc_init_rtt() 61 void rpc_update_rtt(struct rpc_rtt *rt, unsigned int timer, long m) in rpc_update_rtt() argument 75 srtt = (long *)&rt->srtt[timer]; in rpc_update_rtt() 82 sdrtt = (long *)&rt->sdrtt[timer]; in rpc_update_rtt() 110 unsigned long rpc_calc_rto(struct rpc_rtt *rt, unsigned int timer) in rpc_calc_rto() argument 115 return rt->timeo; in rpc_calc_rto() [all …]
|
/linux-6.12.1/drivers/infiniband/core/ |
D | restrack.c | 25 struct rdma_restrack_root *rt; in rdma_restrack_init() local 28 dev->res = kcalloc(RDMA_RESTRACK_MAX, sizeof(*rt), GFP_KERNEL); in rdma_restrack_init() 32 rt = dev->res; in rdma_restrack_init() 35 xa_init_flags(&rt[i].xa, XA_FLAGS_ALLOC); in rdma_restrack_init() 46 struct rdma_restrack_root *rt = dev->res; in rdma_restrack_clean() local 55 kfree(rt); in rdma_restrack_clean() 67 struct rdma_restrack_root *rt = &dev->res[type]; in rdma_restrack_count() local 69 XA_STATE(xas, &rt->xa, 0); in rdma_restrack_count() 72 xa_lock(&rt->xa); in rdma_restrack_count() 74 if (xa_get_mark(&rt->xa, e->id, RESTRACK_DD) && !show_details) in rdma_restrack_count() [all …]
|
/linux-6.12.1/arch/arm/mm/ |
D | cache-v7m.S | 25 .macro v7m_cache_read, rt, reg 26 movw \rt, #:lower16:BASEADDR_V7M_SCB + \reg 27 movt \rt, #:upper16:BASEADDR_V7M_SCB + \reg 28 ldr \rt, [\rt] 31 .macro v7m_cacheop, rt, tmp, op, c = al 34 str\c \rt, [\tmp] 38 .macro read_ccsidr, rt argument 39 v7m_cache_read \rt, V7M_SCB_CCSIDR 42 .macro read_clidr, rt argument 43 v7m_cache_read \rt, V7M_SCB_CLIDR [all …]
|