/linux-6.1.9/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.1.9/drivers/thunderbolt/ |
D | retimer.c | 29 int tb_retimer_nvm_read(struct tb_retimer *rt, unsigned int address, void *buf, in tb_retimer_nvm_read() argument 32 return usb4_port_retimer_nvm_read(rt->port, rt->index, address, buf, size); in tb_retimer_nvm_read() 38 struct tb_retimer *rt = tb_to_retimer(nvm->dev); in nvm_read() local 41 pm_runtime_get_sync(&rt->dev); in nvm_read() 43 if (!mutex_trylock(&rt->tb->lock)) { in nvm_read() 48 ret = tb_retimer_nvm_read(rt, offset, val, bytes); in nvm_read() 49 mutex_unlock(&rt->tb->lock); in nvm_read() 52 pm_runtime_mark_last_busy(&rt->dev); in nvm_read() 53 pm_runtime_put_autosuspend(&rt->dev); in nvm_read() 61 struct tb_retimer *rt = tb_to_retimer(nvm->dev); in nvm_write() local [all …]
|
/linux-6.1.9/arch/mips/ralink/ |
D | timer.c | 37 static inline void rt_timer_w32(struct rt_timer *rt, u8 reg, u32 val) in rt_timer_w32() argument 39 __raw_writel(val, rt->membase + reg); in rt_timer_w32() 42 static inline u32 rt_timer_r32(struct rt_timer *rt, u8 reg) in rt_timer_r32() argument 44 return __raw_readl(rt->membase + reg); in rt_timer_r32() 49 struct rt_timer *rt = (struct rt_timer *) _rt; in rt_timer_irq() local 51 rt_timer_w32(rt, TIMER_REG_TMR0LOAD, rt->timer_freq / rt->timer_div); in rt_timer_irq() 52 rt_timer_w32(rt, TIMER_REG_TMRSTAT, TMRSTAT_TMR0INT); in rt_timer_irq() 58 static int rt_timer_request(struct rt_timer *rt) in rt_timer_request() argument 60 int err = request_irq(rt->irq, rt_timer_irq, 0, in rt_timer_request() 61 dev_name(rt->dev), rt); in rt_timer_request() [all …]
|
/linux-6.1.9/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.1.9/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.1.9/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.1.9/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.1.9/drivers/net/appletalk/ |
D | ipddp.c | 56 static int ipddp_delete(struct ipddp_route *rt); 57 static struct ipddp_route* __ipddp_find_route(struct ipddp_route *rt); 124 struct ipddp_route *rt; in ipddp_xmit() local 135 for(rt = ipddp_route_list; rt != NULL; rt = rt->next) in ipddp_xmit() 137 if(rt->ip == paddr) in ipddp_xmit() 140 if(rt == NULL) { in ipddp_xmit() 145 our_addr = atalk_find_dev_addr(rt->dev); in ipddp_xmit() 164 if(rt->dev->type == ARPHRD_LOCALTLK) in ipddp_xmit() 171 ddp->deh_dnet = rt->at.s_net; /* FIXME more hops?? */ in ipddp_xmit() 174 ddp->deh_dnode = rt->at.s_node; in ipddp_xmit() [all …]
|
/linux-6.1.9/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.1.9/arch/mips/include/asm/ |
D | uasm.h | 212 # define UASM_i_ADDIU(buf, rs, rt, val) uasm_i_daddiu(buf, rs, rt, val) argument 213 # define UASM_i_ADDU(buf, rs, rt, rd) uasm_i_daddu(buf, rs, rt, rd) argument 214 # define UASM_i_LL(buf, rs, rt, off) uasm_i_lld(buf, rs, rt, off) argument 215 # define UASM_i_LW(buf, rs, rt, off) uasm_i_ld(buf, rs, rt, off) argument 216 # define UASM_i_LWX(buf, rs, rt, rd) uasm_i_ldx(buf, rs, rt, rd) argument 217 # define UASM_i_MFC0(buf, rt, rd...) uasm_i_dmfc0(buf, rt, rd) argument 218 # define UASM_i_MTC0(buf, rt, rd...) uasm_i_dmtc0(buf, rt, rd) argument 219 # define UASM_i_ROTR(buf, rs, rt, sh) uasm_i_drotr(buf, rs, rt, sh) argument 220 # define UASM_i_SC(buf, rs, rt, off) uasm_i_scd(buf, rs, rt, off) argument 221 # define UASM_i_SLL(buf, rs, rt, sh) uasm_i_dsll(buf, rs, rt, sh) argument [all …]
|
/linux-6.1.9/sound/aoa/ |
D | aoa-gpio.h | 25 void (*init)(struct gpio_runtime *rt); 26 void (*exit)(struct gpio_runtime *rt); 29 void (*all_amps_off)(struct gpio_runtime *rt); 31 void (*all_amps_restore)(struct gpio_runtime *rt); 33 void (*set_headphone)(struct gpio_runtime *rt, int on); 34 void (*set_speakers)(struct gpio_runtime *rt, int on); 35 void (*set_lineout)(struct gpio_runtime *rt, int on); 36 void (*set_master)(struct gpio_runtime *rt, int on); 38 int (*get_headphone)(struct gpio_runtime *rt); 39 int (*get_speakers)(struct gpio_runtime *rt); [all …]
|
/linux-6.1.9/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.1.9/net/ipv4/ |
D | xfrm4_policy.c | 26 struct rtable *rt; in __xfrm4_dst_lookup() local 36 rt = __ip_route_output_key(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() 72 struct rtable *rt = (struct rtable *)xdst->route; in xfrm4_fill_dst() local 75 xdst->u.rt.rt_iif = fl4->flowi4_iif; in xfrm4_fill_dst() 82 xdst->u.rt.rt_is_input = rt->rt_is_input; in xfrm4_fill_dst() 83 xdst->u.rt.rt_flags = rt->rt_flags & (RTCF_BROADCAST | RTCF_MULTICAST | in xfrm4_fill_dst() 85 xdst->u.rt.rt_type = rt->rt_type; in xfrm4_fill_dst() [all …]
|
D | route.c | 407 const struct rtable *rt = container_of(dst, struct rtable, dst); in ipv4_neigh_lookup() local 413 if (likely(rt->rt_gw_family == AF_INET)) { in ipv4_neigh_lookup() 414 n = ip_neigh_gw4(dev, rt->rt_gw4); in ipv4_neigh_lookup() 415 } else if (rt->rt_gw_family == AF_INET6) { in ipv4_neigh_lookup() 416 n = ip_neigh_gw6(dev, &rt->rt_gw6); in ipv4_neigh_lookup() 434 const struct rtable *rt = container_of(dst, struct rtable, dst); in ipv4_confirm_neigh() local 438 if (rt->rt_gw_family == AF_INET) { in ipv4_confirm_neigh() 439 pkey = (const __be32 *)&rt->rt_gw4; in ipv4_confirm_neigh() 440 } else if (rt->rt_gw_family == AF_INET6) { in ipv4_confirm_neigh() 441 return __ipv6_confirm_neigh_stub(dev, &rt->rt_gw6); in ipv4_confirm_neigh() [all …]
|
/linux-6.1.9/net/ipv6/ |
D | route.c | 110 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->rt6i_uncached_list = ul; in rt6_uncached_list_add() 145 list_add_tail(&rt->rt6i_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->rt6i_uncached)) { in rt6_uncached_list_del() 152 struct uncached_list *ul = rt->rt6i_uncached_list; in rt6_uncached_list_del() 155 list_del_init(&rt->rt6i_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, rt6i_uncached) { in rt6_uncached_list_flush_dev() [all …]
|
D | ip6_fib.c | 317 struct rt6_info *rt; in fib6_rule_lookup() local 319 rt = pol_lookup_func(lookup, in fib6_rule_lookup() 321 if (rt->dst.error == -EAGAIN) { in fib6_rule_lookup() 322 ip6_rt_put_flags(rt, flags); in fib6_rule_lookup() 323 rt = net->ipv6.ip6_null_entry; in fib6_rule_lookup() 325 dst_hold(&rt->dst); in fib6_rule_lookup() 328 return &rt->dst; in fib6_rule_lookup() 365 struct fib6_info *rt, in call_fib6_entry_notifier() argument 370 .rt = rt, in call_fib6_entry_notifier() 378 struct fib6_info *rt, in call_fib6_multipath_entry_notifier() argument [all …]
|
/linux-6.1.9/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.1.9/net/mctp/ |
D | route.c | 490 static unsigned int mctp_route_mtu(struct mctp_route *rt) in mctp_route_mtu() argument 492 return rt->mtu ?: READ_ONCE(rt->dev->dev->mtu); in mctp_route_mtu() 543 static void mctp_route_release(struct mctp_route *rt) in mctp_route_release() argument 545 if (refcount_dec_and_test(&rt->refs)) { in mctp_route_release() 546 mctp_dev_put(rt->dev); in mctp_route_release() 547 kfree_rcu(rt, rcu); in mctp_route_release() 554 struct mctp_route *rt; in mctp_route_alloc() local 556 rt = kzalloc(sizeof(*rt), GFP_KERNEL); in mctp_route_alloc() 557 if (!rt) in mctp_route_alloc() 560 INIT_LIST_HEAD(&rt->list); in mctp_route_alloc() [all …]
|
/linux-6.1.9/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.1.9/arch/arm/mm/ |
D | cache-v7m.S | 22 .macro v7m_cache_read, rt, reg 23 movw \rt, #:lower16:BASEADDR_V7M_SCB + \reg 24 movt \rt, #:upper16:BASEADDR_V7M_SCB + \reg 25 ldr \rt, [\rt] 28 .macro v7m_cacheop, rt, tmp, op, c = al 31 str\c \rt, [\tmp] 35 .macro read_ccsidr, rt argument 36 v7m_cache_read \rt, V7M_SCB_CCSIDR 39 .macro read_clidr, rt argument 40 v7m_cache_read \rt, V7M_SCB_CLIDR [all …]
|
/linux-6.1.9/arch/arm64/kvm/hyp/ |
D | vgic-v3-sr.c | 674 static void __vgic_v3_read_iar(struct kvm_vcpu *vcpu, u32 vmcr, int rt) in __vgic_v3_read_iar() argument 701 vcpu_set_reg(vcpu, rt, lr_val & ICH_LR_VIRTUAL_ID_MASK); in __vgic_v3_read_iar() 705 vcpu_set_reg(vcpu, rt, ICC_IAR1_EL1_SPURIOUS); in __vgic_v3_read_iar() 730 static void __vgic_v3_write_dir(struct kvm_vcpu *vcpu, u32 vmcr, int rt) in __vgic_v3_write_dir() argument 732 u32 vid = vcpu_get_reg(vcpu, rt); in __vgic_v3_write_dir() 753 static void __vgic_v3_write_eoir(struct kvm_vcpu *vcpu, u32 vmcr, int rt) in __vgic_v3_write_eoir() argument 755 u32 vid = vcpu_get_reg(vcpu, rt); in __vgic_v3_write_eoir() 788 static void __vgic_v3_read_igrpen0(struct kvm_vcpu *vcpu, u32 vmcr, int rt) in __vgic_v3_read_igrpen0() argument 790 vcpu_set_reg(vcpu, rt, !!(vmcr & ICH_VMCR_ENG0_MASK)); in __vgic_v3_read_igrpen0() 793 static void __vgic_v3_read_igrpen1(struct kvm_vcpu *vcpu, u32 vmcr, int rt) in __vgic_v3_read_igrpen1() argument [all …]
|