/Linux-v4.19/sound/usb/6fire/ |
D | midi.c | 28 struct midi_runtime *rt = urb->context; in usb6fire_midi_out_handler() local 32 spin_lock_irqsave(&rt->out_lock, flags); in usb6fire_midi_out_handler() 34 if (rt->out) { in usb6fire_midi_out_handler() 35 ret = snd_rawmidi_transmit(rt->out, rt->out_buffer + 4, in usb6fire_midi_out_handler() 38 rt->out_buffer[1] = ret + 2; in usb6fire_midi_out_handler() 39 rt->out_buffer[3] = rt->out_serial++; in usb6fire_midi_out_handler() 48 rt->out = NULL; in usb6fire_midi_out_handler() 50 spin_unlock_irqrestore(&rt->out_lock, flags); in usb6fire_midi_out_handler() 54 struct midi_runtime *rt, u8 *data, int length) in usb6fire_midi_in_received() argument 58 spin_lock_irqsave(&rt->in_lock, flags); in usb6fire_midi_in_received() [all …]
|
D | pcm.c | 74 static int usb6fire_pcm_set_rate(struct pcm_runtime *rt) in usb6fire_pcm_set_rate() argument 77 struct control_runtime *ctrl_rt = rt->chip->control; in usb6fire_pcm_set_rate() 82 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate() 84 rates[rt->rate]); in usb6fire_pcm_set_rate() 88 ret = ctrl_rt->set_rate(ctrl_rt, rt->rate); in usb6fire_pcm_set_rate() 90 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate() 92 rates[rt->rate]); in usb6fire_pcm_set_rate() 99 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate() 101 rates[rt->rate]); in usb6fire_pcm_set_rate() 108 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate() [all …]
|
D | control.c | 64 static void usb6fire_control_output_vol_update(struct control_runtime *rt) in usb6fire_control_output_vol_update() argument 66 struct comm_runtime *comm_rt = rt->chip->comm; in usb6fire_control_output_vol_update() 71 if (!(rt->ovol_updated & (1 << i))) { in usb6fire_control_output_vol_update() 73 180 - rt->output_vol[i]); in usb6fire_control_output_vol_update() 74 rt->ovol_updated |= 1 << i; in usb6fire_control_output_vol_update() 78 static void usb6fire_control_output_mute_update(struct control_runtime *rt) in usb6fire_control_output_mute_update() argument 80 struct comm_runtime *comm_rt = rt->chip->comm; in usb6fire_control_output_mute_update() 83 comm_rt->write8(comm_rt, 0x12, 0x0e, ~rt->output_mute); in usb6fire_control_output_mute_update() 86 static void usb6fire_control_input_vol_update(struct control_runtime *rt) in usb6fire_control_input_vol_update() argument 88 struct comm_runtime *comm_rt = rt->chip->comm; in usb6fire_control_input_vol_update() [all …]
|
D | comm.c | 25 static void usb6fire_comm_init_urb(struct comm_runtime *rt, struct urb *urb, in usb6fire_comm_init_urb() argument 30 urb->pipe = usb_sndintpipe(rt->chip->dev, COMM_EP); in usb6fire_comm_init_urb() 34 urb->dev = rt->chip->dev; in usb6fire_comm_init_urb() 39 struct comm_runtime *rt = urb->context; in usb6fire_comm_receiver_handler() local 40 struct midi_runtime *midi_rt = rt->chip->midi; in usb6fire_comm_receiver_handler() 43 if (rt->receiver_buffer[0] == 0x10) /* midi in event */ in usb6fire_comm_receiver_handler() 46 rt->receiver_buffer + 2, in usb6fire_comm_receiver_handler() 47 rt->receiver_buffer[1]); in usb6fire_comm_receiver_handler() 50 if (!rt->chip->shutdown) { in usb6fire_comm_receiver_handler() 110 static int usb6fire_comm_write8(struct comm_runtime *rt, u8 request, in usb6fire_comm_write8() argument [all …]
|
/Linux-v4.19/arch/mips/ralink/ |
D | timer.c | 40 static inline void rt_timer_w32(struct rt_timer *rt, u8 reg, u32 val) in rt_timer_w32() argument 42 __raw_writel(val, rt->membase + reg); in rt_timer_w32() 45 static inline u32 rt_timer_r32(struct rt_timer *rt, u8 reg) in rt_timer_r32() argument 47 return __raw_readl(rt->membase + reg); in rt_timer_r32() 52 struct rt_timer *rt = (struct rt_timer *) _rt; in rt_timer_irq() local 54 rt_timer_w32(rt, TIMER_REG_TMR0LOAD, rt->timer_freq / rt->timer_div); in rt_timer_irq() 55 rt_timer_w32(rt, TIMER_REG_TMRSTAT, TMRSTAT_TMR0INT); in rt_timer_irq() 61 static int rt_timer_request(struct rt_timer *rt) in rt_timer_request() argument 63 int err = request_irq(rt->irq, rt_timer_irq, 0, in rt_timer_request() 64 dev_name(rt->dev), rt); in rt_timer_request() [all …]
|
/Linux-v4.19/net/x25/ |
D | x25_route.c | 34 struct x25_route *rt; in x25_add_route() local 41 rt = list_entry(entry, struct x25_route, node); in x25_add_route() 43 if (!memcmp(&rt->address, address, sigdigits) && in x25_add_route() 44 rt->sigdigits == sigdigits) in x25_add_route() 48 rt = kmalloc(sizeof(*rt), GFP_ATOMIC); in x25_add_route() 50 if (!rt) in x25_add_route() 53 strcpy(rt->address.x25_addr, "000000000000000"); in x25_add_route() 54 memcpy(rt->address.x25_addr, address->x25_addr, sigdigits); in x25_add_route() 56 rt->sigdigits = sigdigits; in x25_add_route() 57 rt->dev = dev; in x25_add_route() [all …]
|
/Linux-v4.19/sound/aoa/core/ |
D | gpio-pmf.c | 15 static void pmf_gpio_set_##name(struct gpio_runtime *rt, int on)\ 20 if (unlikely(!rt)) return; \ 21 rc = pmf_call_function(rt->node, #name "-mute", &args); \ 25 rt->implementation_private &= ~(1<<bit); \ 26 rt->implementation_private |= (!!on << bit); \ 28 static int pmf_gpio_get_##name(struct gpio_runtime *rt) \ 30 if (unlikely(!rt)) return 0; \ 31 return (rt->implementation_private>>bit)&1; \ 38 static void pmf_gpio_set_hw_reset(struct gpio_runtime *rt, int on) in pmf_gpio_set_hw_reset() argument 43 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-v4.19/sound/usb/hiface/ |
D | pcm.c | 116 static int hiface_pcm_set_rate(struct pcm_runtime *rt, unsigned int rate) in hiface_pcm_set_rate() argument 118 struct usb_device *device = rt->chip->dev; in hiface_pcm_set_rate() 178 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in hiface_pcm_get_substream() local 179 struct device *device = &rt->chip->dev->dev; in hiface_pcm_get_substream() 182 return &rt->playback; in hiface_pcm_get_substream() 189 static void hiface_pcm_stream_stop(struct pcm_runtime *rt) in hiface_pcm_stream_stop() argument 193 if (rt->stream_state != STREAM_DISABLED) { in hiface_pcm_stream_stop() 194 rt->stream_state = STREAM_STOPPING; in hiface_pcm_stream_stop() 198 &rt->out_urbs[i].submitted, 100); in hiface_pcm_stream_stop() 201 &rt->out_urbs[i].submitted); in hiface_pcm_stream_stop() [all …]
|
/Linux-v4.19/drivers/net/appletalk/ |
D | ipddp.c | 55 static int ipddp_delete(struct ipddp_route *rt); 56 static struct ipddp_route* __ipddp_find_route(struct ipddp_route *rt); 121 struct ipddp_route *rt; in ipddp_xmit() local 129 for(rt = ipddp_route_list; rt != NULL; rt = rt->next) in ipddp_xmit() 131 if(rt->ip == paddr) in ipddp_xmit() 134 if(rt == NULL) { in ipddp_xmit() 139 our_addr = atalk_find_dev_addr(rt->dev); in ipddp_xmit() 158 if(rt->dev->type == ARPHRD_LOCALTLK) in ipddp_xmit() 165 ddp->deh_dnet = rt->at.s_net; /* FIXME more hops?? */ in ipddp_xmit() 168 ddp->deh_dnode = rt->at.s_node; in ipddp_xmit() [all …]
|
/Linux-v4.19/net/decnet/ |
D | dn_route.c | 156 struct dn_route *rt = (struct dn_route *) dst; in dn_dst_destroy() local 158 if (rt->n) in dn_dst_destroy() 159 neigh_release(rt->n); in dn_dst_destroy() 166 struct dn_route *rt = (struct dn_route *) dst; in dn_dst_ifdown() local 167 struct neighbour *n = rt->n; in dn_dst_ifdown() 189 struct dn_route *rt; in dn_dst_check_expire() local 198 while ((rt = rcu_dereference_protected(*rtp, in dn_dst_check_expire() 200 if (atomic_read(&rt->dst.__refcnt) > 1 || in dn_dst_check_expire() 201 (now - rt->dst.lastuse) < expire) { in dn_dst_check_expire() 202 rtp = &rt->dn_next; in dn_dst_check_expire() [all …]
|
/Linux-v4.19/net/ipv6/ |
D | route.c | 105 static int rt6_score_route(struct fib6_info *rt, int oif, int strict); 106 static size_t rt6_nlmsg_size(struct fib6_info *rt); 108 struct fib6_info *rt, struct dst_entry *dst, 112 static struct rt6_info *rt6_find_cached_rt(struct fib6_info *rt, 135 void rt6_uncached_list_add(struct rt6_info *rt) in rt6_uncached_list_add() argument 139 rt->rt6i_uncached_list = ul; in rt6_uncached_list_add() 142 list_add_tail(&rt->rt6i_uncached, &ul->head); in rt6_uncached_list_add() 146 void rt6_uncached_list_del(struct rt6_info *rt) in rt6_uncached_list_del() argument 148 if (!list_empty(&rt->rt6i_uncached)) { in rt6_uncached_list_del() 149 struct uncached_list *ul = rt->rt6i_uncached_list; in rt6_uncached_list_del() [all …]
|
D | ip6_fib.c | 350 struct rt6_info *rt; in fib6_rule_lookup() local 352 rt = lookup(net, net->ipv6.fib6_main_tbl, fl6, skb, flags); in fib6_rule_lookup() 353 if (rt->dst.error == -EAGAIN) { in fib6_rule_lookup() 354 ip6_rt_put(rt); in fib6_rule_lookup() 355 rt = net->ipv6.ip6_null_entry; in fib6_rule_lookup() 356 dst_hold(&rt->dst); in fib6_rule_lookup() 359 return &rt->dst; in fib6_rule_lookup() 395 struct fib6_info *rt) in call_fib6_entry_notifier() argument 398 .rt = rt, in call_fib6_entry_notifier() 406 struct fib6_info *rt, in call_fib6_entry_notifiers() argument [all …]
|
/Linux-v4.19/arch/mips/include/asm/ |
D | uasm.h | 202 # define UASM_i_ADDIU(buf, rs, rt, val) uasm_i_daddiu(buf, rs, rt, val) argument 203 # define UASM_i_ADDU(buf, rs, rt, rd) uasm_i_daddu(buf, rs, rt, rd) argument 204 # define UASM_i_LL(buf, rs, rt, off) uasm_i_lld(buf, rs, rt, off) argument 205 # define UASM_i_LW(buf, rs, rt, off) uasm_i_ld(buf, rs, rt, off) argument 206 # define UASM_i_LWX(buf, rs, rt, rd) uasm_i_ldx(buf, rs, rt, rd) argument 207 # define UASM_i_MFC0(buf, rt, rd...) uasm_i_dmfc0(buf, rt, rd) argument 208 # define UASM_i_MTC0(buf, rt, rd...) uasm_i_dmtc0(buf, rt, rd) argument 209 # define UASM_i_ROTR(buf, rs, rt, sh) uasm_i_drotr(buf, rs, rt, sh) argument 210 # define UASM_i_SC(buf, rs, rt, off) uasm_i_scd(buf, rs, rt, off) argument 211 # define UASM_i_SLL(buf, rs, rt, sh) uasm_i_dsll(buf, rs, rt, sh) argument [all …]
|
/Linux-v4.19/sound/aoa/ |
D | aoa-gpio.h | 26 void (*init)(struct gpio_runtime *rt); 27 void (*exit)(struct gpio_runtime *rt); 30 void (*all_amps_off)(struct gpio_runtime *rt); 32 void (*all_amps_restore)(struct gpio_runtime *rt); 34 void (*set_headphone)(struct gpio_runtime *rt, int on); 35 void (*set_speakers)(struct gpio_runtime *rt, int on); 36 void (*set_lineout)(struct gpio_runtime *rt, int on); 37 void (*set_master)(struct gpio_runtime *rt, int on); 39 int (*get_headphone)(struct gpio_runtime *rt); 40 int (*get_speakers)(struct gpio_runtime *rt); [all …]
|
/Linux-v4.19/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-v4.19/net/ipv4/ |
D | route.c | 439 const struct rtable *rt; in ipv4_neigh_lookup() local 442 rt = (const struct rtable *) dst; in ipv4_neigh_lookup() 443 if (rt->rt_gateway) in ipv4_neigh_lookup() 444 pkey = (const __be32 *) &rt->rt_gateway; in ipv4_neigh_lookup() 458 const struct rtable *rt; in ipv4_confirm_neigh() local 460 rt = (const struct rtable *)dst; in ipv4_confirm_neigh() 461 if (rt->rt_gateway) in ipv4_confirm_neigh() 462 pkey = (const __be32 *)&rt->rt_gateway; in ipv4_confirm_neigh() 464 (rt->rt_flags & in ipv4_confirm_neigh() 582 struct rtable *rt; in fnhe_flush_routes() local [all …]
|
/Linux-v4.19/net/sunrpc/ |
D | timer.c | 34 void rpc_init_rtt(struct rpc_rtt *rt, unsigned long timeo) in rpc_init_rtt() argument 39 rt->timeo = timeo; in rpc_init_rtt() 44 rt->srtt[i] = init; in rpc_init_rtt() 45 rt->sdrtt[i] = RPC_RTO_INIT; in rpc_init_rtt() 46 rt->ntimeouts[i] = 0; in rpc_init_rtt() 60 void rpc_update_rtt(struct rpc_rtt *rt, unsigned int timer, long m) in rpc_update_rtt() argument 74 srtt = (long *)&rt->srtt[timer]; in rpc_update_rtt() 81 sdrtt = (long *)&rt->sdrtt[timer]; in rpc_update_rtt() 109 unsigned long rpc_calc_rto(struct rpc_rtt *rt, unsigned int timer) in rpc_calc_rto() argument 114 return rt->timeo; in rpc_calc_rto() [all …]
|
/Linux-v4.19/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 39 v7m_cache_read \rt, V7M_SCB_CCSIDR 42 .macro read_clidr, rt 43 v7m_cache_read \rt, V7M_SCB_CLIDR [all …]
|
/Linux-v4.19/virt/kvm/arm/hyp/ |
D | vgic-v3-sr.c | 646 static void __hyp_text __vgic_v3_read_iar(struct kvm_vcpu *vcpu, u32 vmcr, int rt) in __vgic_v3_read_iar() argument 675 vcpu_set_reg(vcpu, rt, lr_val & ICH_LR_VIRTUAL_ID_MASK); in __vgic_v3_read_iar() 679 vcpu_set_reg(vcpu, rt, ICC_IAR1_EL1_SPURIOUS); in __vgic_v3_read_iar() 705 u32 vmcr, int rt) in __vgic_v3_write_dir() argument 707 u32 vid = vcpu_get_reg(vcpu, rt); in __vgic_v3_write_dir() 728 static void __hyp_text __vgic_v3_write_eoir(struct kvm_vcpu *vcpu, u32 vmcr, int rt) in __vgic_v3_write_eoir() argument 730 u32 vid = vcpu_get_reg(vcpu, rt); in __vgic_v3_write_eoir() 765 static void __hyp_text __vgic_v3_read_igrpen0(struct kvm_vcpu *vcpu, u32 vmcr, int rt) in __vgic_v3_read_igrpen0() argument 767 vcpu_set_reg(vcpu, rt, !!(vmcr & ICH_VMCR_ENG0_MASK)); in __vgic_v3_read_igrpen0() 770 static void __hyp_text __vgic_v3_read_igrpen1(struct kvm_vcpu *vcpu, u32 vmcr, int rt) in __vgic_v3_read_igrpen1() argument [all …]
|
/Linux-v4.19/arch/powerpc/mm/ |
D | slb_low.S | 42 #define ASM_VSID_SCRAMBLE(rt, rx, rf, size) \ argument 45 mulld rt,rt,rx; /* rt = rt * MULTIPLIER */ \ 51 srdi rx,rt,VSID_BITS_65_##size; \ 52 clrldi rt,rt,(64-VSID_BITS_65_##size); \ 53 add rt,rt,rx; \ 54 addi rx,rt,1; \ 56 add rt,rt,rx; \ 57 rldimi rf,rt,SLB_VSID_SHIFT_##size,(64 - (SLB_VSID_SHIFT_##size + VSID_BITS_65_##size)); \ 59 srdi rx,rt,VSID_BITS_##size; \ 60 clrldi rt,rt,(64-VSID_BITS_##size); \ [all …]
|
/Linux-v4.19/arch/mips/kernel/ |
D | mips-r2-to-r6-emul.c | 405 s32 rt, rs; in mult_func() local 407 rt = regs->regs[MIPSInst_RT(ir)]; in mult_func() 409 res = (s64)rt * (s64)rs; in mult_func() 413 rt = res >> 32; in mult_func() 414 res = (s64)rt; in mult_func() 432 u32 rt, rs; in multu_func() local 434 rt = regs->regs[MIPSInst_RT(ir)]; in multu_func() 436 res = (u64)rt * (u64)rs; in multu_func() 437 rt = res; in multu_func() 438 regs->lo = (s64)(s32)rt; in multu_func() [all …]
|
/Linux-v4.19/net/mpls/ |
D | af_mpls.c | 74 static void rtmsg_lfib(int event, u32 label, struct mpls_route *rt, 80 struct mpls_route *rt = NULL; in mpls_route_input_rcu() local 85 rt = rcu_dereference(platform_label[index]); in mpls_route_input_rcu() 87 return rt; in mpls_route_input_rcu() 96 static u8 *__mpls_nh_via(struct mpls_route *rt, struct mpls_nh *nh) in __mpls_nh_via() argument 98 return (u8 *)nh + rt->rt_via_offset; in __mpls_nh_via() 101 static const u8 *mpls_nh_via(const struct mpls_route *rt, in mpls_nh_via() argument 104 return __mpls_nh_via((struct mpls_route *)rt, (struct mpls_nh *)nh); in mpls_nh_via() 157 static u32 mpls_multipath_hash(struct mpls_route *rt, struct sk_buff *skb) in mpls_multipath_hash() argument 224 static struct mpls_nh *mpls_get_nexthop(struct mpls_route *rt, u8 index) in mpls_get_nexthop() argument [all …]
|
/Linux-v4.19/include/net/ |
D | route.h | 73 static inline bool rt_is_input_route(const struct rtable *rt) in rt_is_input_route() argument 75 return rt->rt_is_input != 0; in rt_is_input_route() 78 static inline bool rt_is_output_route(const struct rtable *rt) in rt_is_output_route() argument 80 return rt->rt_is_input == 0; in rt_is_output_route() 83 static inline __be32 rt_nexthop(const struct rtable *rt, __be32 daddr) in rt_nexthop() argument 85 if (rt->rt_gateway) in rt_nexthop() 86 return rt->rt_gateway; in rt_nexthop() 219 int ip_rt_ioctl(struct net *, unsigned int cmd, struct rtentry *rt); 220 void ip_rt_get_source(u8 *src, struct sk_buff *skb, struct rtable *rt); 230 void rt_add_uncached_list(struct rtable *rt); [all …]
|
/Linux-v4.19/drivers/slimbus/ |
D | stream.c | 102 struct slim_stream_runtime *rt; in slim_stream_allocate() local 104 rt = kzalloc(sizeof(*rt), GFP_KERNEL); in slim_stream_allocate() 105 if (!rt) in slim_stream_allocate() 108 rt->name = kasprintf(GFP_KERNEL, "slim-%s", name); in slim_stream_allocate() 109 if (!rt->name) { in slim_stream_allocate() 110 kfree(rt); in slim_stream_allocate() 114 rt->dev = dev; in slim_stream_allocate() 116 list_add_tail(&rt->node, &dev->stream_list); in slim_stream_allocate() 119 return rt; in slim_stream_allocate() 202 int slim_stream_prepare(struct slim_stream_runtime *rt, in slim_stream_prepare() argument [all …]
|