Home
last modified time | relevance | path

Searched refs:rt (Results 1 – 25 of 343) sorted by relevance

12345678910>>...14

/linux/drivers/net/ethernet/intel/ice/
H A Dice_parser_rt.c6 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/sound/usb/6fire/
H A Dmidi.c24 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 …]
H A Dpcm.c70 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 …]
H A Dcontrol.c60 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 …]
H A Dcomm.c21 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/drivers/thunderbolt/
H A Dretimer.c33 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/arch/mips/ralink/
H A Dtimer.c42 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/drivers/leds/flash/
H A Dleds-rt8515.c66 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/net/x25/
H A Dx25_route.c29 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/sound/aoa/core/
H A Dgpio-pmf.c14 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 …]
H A Dgpio-feature.c133 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/sound/usb/hiface/
H A Dpcm.c112 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/net/mctp/test/
H A Droute-test.c8 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/arch/mips/include/asm/
H A Duasm.h210 # 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/net/ipv6/
H A Droute.c111 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 …]
/linux/sound/aoa/
H A Daoa-gpio.h24 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/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_ipv6_route.c15 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 in dump_ipv6_route()
[all...]
/linux/net/mctp/
H A Droute.c551 static unsigned int mctp_route_mtu(struct mctp_route *rt) in mctp_route_mtu() argument
553 return rt->mtu ?: READ_ONCE(rt->dev->dev->mtu); in mctp_route_mtu()
604 static void mctp_route_release(struct mctp_route *rt) in mctp_route_release() argument
606 if (refcount_dec_and_test(&rt->refs)) { in mctp_route_release()
607 mctp_dev_put(rt->dev); in mctp_route_release()
608 kfree_rcu(rt, rcu); in mctp_route_release()
615 struct mctp_route *rt; in mctp_route_alloc() local
617 rt = kzalloc(sizeof(*rt), GFP_KERNEL); in mctp_route_alloc()
618 if (!rt) in mctp_route_alloc()
621 INIT_LIST_HEAD(&rt->list); in mctp_route_alloc()
[all …]
/linux/net/ipv4/
H A Droute.c405 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/arch/mips/cavium-octeon/crypto/
H A Docteon-crypto.h36 : [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/drivers/infiniband/core/
H A Drestrack.c25 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/arch/arm/mm/
H A Dcache-v7m.S25 .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 …]
/linux/include/net/
H A Droute.h90 static inline bool rt_is_input_route(const struct rtable *rt) in rt_is_input_route() argument
92 return rt->rt_is_input != 0; in rt_is_input_route()
95 static inline bool rt_is_output_route(const struct rtable *rt) in rt_is_output_route() argument
97 return rt->rt_is_input == 0; in rt_is_output_route()
100 static inline __be32 rt_nexthop(const struct rtable *rt, __be32 daddr) in rt_nexthop() argument
102 if (rt->rt_gw_family == AF_INET) in rt_nexthop()
103 return rt->rt_gw4; in rt_nexthop()
247 int ip_rt_ioctl(struct net *, unsigned int cmd, struct rtentry *rt);
248 void ip_rt_get_source(u8 *src, struct sk_buff *skb, struct rtable *rt);
251 struct rtable *rt_dst_clone(struct net_device *dev, struct rtable *rt);
[all …]
/linux/net/sunrpc/
H A Dtimer.c35 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/net/mpls/
H A Daf_mpls.c74 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 …]

12345678910>>...14