| /linux/drivers/net/ethernet/intel/ice/ |
| H A 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/drivers/thunderbolt/ |
| H A D | retimer.c | 34 int tb_retimer_nvm_read(struct tb_retimer *rt, unsigned int address, void *buf, in tb_retimer_nvm_read() argument 37 return usb4_port_retimer_nvm_read(rt->port, rt->index, address, buf, size); in tb_retimer_nvm_read() 43 struct tb_retimer *rt = tb_to_retimer(nvm->dev); in nvm_read() local 46 pm_runtime_get_sync(&rt->dev); in nvm_read() 48 if (!mutex_trylock(&rt->tb->lock)) { in nvm_read() 53 ret = tb_retimer_nvm_read(rt, offset, val, bytes); in nvm_read() 54 mutex_unlock(&rt->tb->lock); in nvm_read() 57 pm_runtime_mark_last_busy(&rt->dev); in nvm_read() 58 pm_runtime_put_autosuspend(&rt->dev); in nvm_read() 66 struct tb_retimer *rt = tb_to_retimer(nvm->dev); in nvm_write() local [all …]
|
| /linux/sound/usb/6fire/ |
| H A D | midi.c | 24 struct midi_runtime *rt = urb->context; in usb6fire_midi_out_handler() local 27 guard(spinlock_irqsave)(&rt->out_lock); in usb6fire_midi_out_handler() 29 if (rt->out) { in usb6fire_midi_out_handler() 30 ret = snd_rawmidi_transmit(rt->out, rt->out_buffer + 4, in usb6fire_midi_out_handler() 33 rt->out_buffer[1] = ret + 2; in usb6fire_midi_out_handler() 34 rt->out_buffer[3] = rt->out_serial++; in usb6fire_midi_out_handler() 43 rt->out = NULL; in usb6fire_midi_out_handler() 48 struct midi_runtime *rt, u8 *data, int length) in usb6fire_midi_in_received() argument 50 guard(spinlock_irqsave)(&rt->in_lock); in usb6fire_midi_in_received() 51 if (rt->in) in usb6fire_midi_in_received() [all …]
|
| H A 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 …]
|
| H A 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 …]
|
| H A 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/arch/mips/ralink/ |
| H A 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/sound/aoa/core/ |
| H A 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 …]
|
| /linux/net/x25/ |
| H A 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_obj(*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/net/mctp/test/ |
| H A D | utils.c | 107 struct mctp_test_route *rt; in mctp_route_test_alloc() local 109 rt = kzalloc_obj(*rt); in mctp_route_test_alloc() 110 if (!rt) in mctp_route_test_alloc() 113 INIT_LIST_HEAD(&rt->rt.list); in mctp_route_test_alloc() 114 refcount_set(&rt->rt.refs, 1); in mctp_route_test_alloc() 115 rt->rt.output = mctp_test_dst_output; in mctp_route_test_alloc() 117 return rt; in mctp_route_test_alloc() 125 struct mctp_test_route *rt; in mctp_test_create_route_direct() local 127 rt = mctp_route_test_alloc(); in mctp_test_create_route_direct() 128 if (!rt) in mctp_test_create_route_direct() [all …]
|
| /linux/sound/usb/hiface/ |
| H A 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/kernel/bpf/ |
| H A D | range_tree.c | 27 * range_tree_set(rt, 0, max); 29 * start = range_tree_find(rt, len); 31 * range_tree_clear(rt, start, len); 33 * range_tree_set(rt, start, len); 55 static inline struct range_node *__find_range(struct range_tree *rt, u32 len) 57 struct rb_node *rb = rt->range_size_root.rb_root.rb_node; in __find_range() 74 s64 range_tree_find(struct range_tree *rt, u32 len) 78 rn = __find_range(rt, len); in range_tree_find() 115 range_it_insert(struct range_node *rn, struct range_tree *rt) in INTERVAL_TREE_DEFINE() 117 __range_size_insert(rn, &rt in INTERVAL_TREE_DEFINE() 56 __find_range(struct range_tree * rt,u32 len) __find_range() argument 75 range_tree_find(struct range_tree * rt,u32 len) range_tree_find() argument 123 range_it_remove(struct range_node * rn,struct range_tree * rt) range_it_remove() argument 131 range_it_iter_first(struct range_tree * rt,u32 start,u32 last) range_it_iter_first() argument 137 range_tree_clear(struct range_tree * rt,u32 start,u32 len) range_tree_clear() argument 184 is_range_tree_set(struct range_tree * rt,u32 start,u32 len) is_range_tree_set() argument 197 range_tree_set(struct range_tree * rt,u32 start,u32 len) range_tree_set() argument 256 range_tree_destroy(struct range_tree * rt) range_tree_destroy() argument 266 range_tree_init(struct range_tree * rt) range_tree_init() argument [all...] |
| /linux/arch/mips/include/asm/ |
| H A 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/net/ipv6/ |
| H A 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 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() 173 struct inet6_dev *rt_idev = rt in rt6_uncached_list_flush_dev() 228 const struct rt6_info *rt = dst_rt6_info(dst); ip6_dst_neigh_lookup() local 236 const struct rt6_info *rt = dst_rt6_info(dst); ip6_confirm_neigh() local 333 rt6_info_init(struct rt6_info * rt) rt6_info_init() argument 342 struct rt6_info *rt = dst_alloc(&net->ipv6.ip6_dst_ops, dev, ip6_dst_alloc() local 356 struct rt6_info *rt = dst_rt6_info(dst); ip6_dst_destroy() local 375 struct rt6_info *rt = dst_rt6_info(dst); ip6_dst_ifdown() local 391 __rt6_check_expired(const struct rt6_info * rt) __rt6_check_expired() argument 398 rt6_check_expired(const struct rt6_info * rt) rt6_check_expired() argument 415 rt6_multipath_first_sibling_rcu(const struct fib6_info * rt) rt6_multipath_first_sibling_rcu() argument 975 struct fib6_info *rt; rt6_route_rcv() local 1098 fib6_info_dst_flags(struct fib6_info * rt) fib6_info_dst_flags() argument 1110 ip6_rt_init_dst_reject(struct rt6_info * rt,u8 fib6_type) ip6_rt_init_dst_reject() argument 1132 ip6_rt_init_dst(struct rt6_info * rt,const struct fib6_result * res) ip6_rt_init_dst() argument 1162 rt6_set_from(struct rt6_info * rt,struct fib6_info * from) rt6_set_from() argument 1170 ip6_rt_copy_init(struct rt6_info * rt,const struct fib6_result * res) ip6_rt_copy_init() argument 1211 struct rt6_info *rt = *prt; ip6_hold_safe() local 1260 struct rt6_info *rt; ip6_pol_route_lookup() local 1344 __ip6_ins_rt(struct fib6_info * rt,struct nl_info * info,struct netlink_ext_ack * extack) __ip6_ins_rt() argument 1358 ip6_ins_rt(struct net * net,struct fib6_info * rt) ip6_ins_rt() argument 1371 struct rt6_info *rt; ip6_rt_cache_alloc() local 1891 fib6_nh_remove_exception(const struct fib6_nh * nh,int plen,const struct rt6_info * rt) fib6_nh_remove_exception() argument 1929 struct rt6_info *rt; global() member 1945 rt6_remove_exception_rt(struct rt6_info * rt) rt6_remove_exception_rt() argument 1975 fib6_nh_update_exception(const struct fib6_nh * nh,int plen,const struct rt6_info * rt) fib6_nh_update_exception() argument 2020 rt6_update_exception_stamp_rt(struct rt6_info * rt) rt6_update_exception_stamp_rt() argument 2051 rt6_mtu_change_route_allowed(struct inet6_dev * idev,struct rt6_info * rt,int mtu) rt6_mtu_change_route_allowed() argument 2141 struct rt6_info *rt = rt6_ex->rt6i; rt6_age_examine_exception() local 2270 struct rt6_info *rt = NULL; ip6_pol_route() local 2725 struct rt6_info *rt, *ort = dst_rt6_info(dst_orig); ip6_blackhole_route() local 2773 rt6_check(struct rt6_info * rt,struct fib6_info * from,u32 cookie) rt6_check() argument 2789 rt6_dst_from_check(struct rt6_info * rt,struct fib6_info * from,u32 cookie) rt6_dst_from_check() argument 2805 struct rt6_info *rt; ip6_dst_check() local 2836 struct rt6_info *rt = dst_rt6_info(dst); ip6_negative_advice() local 2855 struct rt6_info *rt; ip6_link_failure() local 2895 rt6_do_update_pmtu(struct rt6_info * rt,u32 mtu) rt6_do_update_pmtu() argument 2904 rt6_cache_allowed_for_pmtu(const struct rt6_info * rt) rt6_cache_allowed_for_pmtu() argument 3123 struct fib6_info *rt; __ip6_route_redirect() local 3299 struct rt6_info *rt; ip6_mtu_from_fib6() local 3329 struct rt6_info *rt; icmp6_dst_alloc() local 3800 struct fib6_info *rt; ip6_route_info_create() local 3861 ip6_route_info_create_nh(struct fib6_info * rt,struct fib6_config * cfg,gfp_t gfp_flags,struct netlink_ext_ack * extack) ip6_route_info_create_nh() argument 3940 struct fib6_info *rt; ip6_route_add() local 3961 __ip6_del_rt(struct fib6_info * rt,struct nl_info * info) __ip6_del_rt() argument 3982 ip6_del_rt(struct net * net,struct fib6_info * rt,bool skip_notify) ip6_del_rt() argument 3992 __ip6_del_rt_siblings(struct fib6_info * rt,struct fib6_config * cfg) __ip6_del_rt_siblings() argument 4071 __ip6_del_cached_rt(struct rt6_info * rt,struct fib6_config * cfg) __ip6_del_cached_rt() argument 4087 ip6_del_cached_rt(struct fib6_config * cfg,struct fib6_info * rt,struct fib6_nh * nh) ip6_del_cached_rt() argument 4131 struct fib6_info *rt; ip6_route_del() local 4217 struct rt6_info *rt, *nrt = NULL; rt6_do_redirect() local 4366 struct fib6_info *rt = NULL; rt6_get_route_info() local 4436 struct fib6_info *rt; rt6_get_dflt_router() local 4500 struct fib6_info *rt; __rt6_purge_dflt_routers() local 4711 fib6_remove_prefsrc(struct fib6_info * rt,void * arg) fib6_remove_prefsrc() argument 4741 fib6_clean_tohost(struct fib6_info * rt,void * arg) fib6_clean_tohost() argument 4777 rt6_multipath_first_sibling(const struct fib6_info * rt) rt6_multipath_first_sibling() argument 4798 rt6_is_dead(const struct fib6_info * rt) rt6_is_dead() argument 4808 rt6_multipath_total_weight(const struct fib6_info * rt) rt6_multipath_total_weight() argument 4824 rt6_upper_bound_set(struct fib6_info * rt,int * weight,int total) rt6_upper_bound_set() argument 4836 rt6_multipath_upper_bound_set(struct fib6_info * rt,int total) rt6_multipath_upper_bound_set() argument 4847 rt6_multipath_rebalance(struct fib6_info * rt) rt6_multipath_rebalance() argument 4871 fib6_ifup(struct fib6_info * rt,void * p_arg) fib6_ifup() argument 4902 rt6_multipath_uses_dev(const struct fib6_info * rt,const struct net_device * dev) rt6_multipath_uses_dev() argument 4916 rt6_multipath_flush(struct fib6_info * rt) rt6_multipath_flush() argument 4925 rt6_multipath_dead_count(const struct fib6_info * rt,const struct net_device * down_dev) rt6_multipath_dead_count() argument 4942 rt6_multipath_nh_flags_set(struct fib6_info * rt,const struct net_device * dev,unsigned char nh_flags) rt6_multipath_nh_flags_set() argument 4956 fib6_ifdown(struct fib6_info * rt,void * p_arg) fib6_ifdown() argument 5322 ip6_route_info_append(struct list_head * rt6_nh_list,struct fib6_info * rt,struct fib6_config * r_cfg) ip6_route_info_append() argument 5344 ip6_route_mpath_notify(struct fib6_info * rt,struct fib6_info * rt_last,struct nl_info * info,__u16 nlflags) ip6_route_mpath_notify() argument 5370 ip6_route_mpath_should_notify(const struct fib6_info * rt) ip6_route_mpath_should_notify() argument 5406 struct fib6_info *rt; ip6_route_multipath_add() local 5756 rt6_fill_node(struct net * net,struct sk_buff * skb,struct fib6_info * rt,struct dst_entry * dst,struct in6_addr * dest,struct in6_addr * src,int iif,int type,u32 portid,u32 seq,unsigned int flags) rt6_fill_node() argument 5992 struct fib6_info *rt; global() member 6050 rt6_dump_route(struct fib6_info * rt,void * p_arg,unsigned int skip) rt6_dump_route() argument 6200 struct rt6_info *rt; inet6_rtm_getroute() local 6339 inet6_rt_notify(int event,struct fib6_info * rt,struct nl_info * info,unsigned int nlm_flags) inet6_rt_notify() argument 6380 fib6_rt_update(struct net * net,struct fib6_info * rt,struct nl_info * info) fib6_rt_update() argument [all...] |
| H A D | ip6_fib.c | 324 struct rt6_info *rt; in fib6_rule_lookup() local 326 rt = pol_lookup_func(lookup, in fib6_rule_lookup() 328 if (rt->dst.error == -EAGAIN) { in fib6_rule_lookup() 329 ip6_rt_put_flags(rt, flags); in fib6_rule_lookup() 330 rt = net->ipv6.ip6_null_entry; in fib6_rule_lookup() 332 dst_hold(&rt->dst); in fib6_rule_lookup() 335 return &rt->dst; in fib6_rule_lookup() 372 struct fib6_info *rt, in call_fib6_entry_notifier() argument 377 .rt = rt, in call_fib6_entry_notifier() 385 call_fib6_multipath_entry_notifier(struct notifier_block * nb,enum fib_event_type event_type,struct fib6_info * rt,unsigned int nsiblings,struct netlink_ext_ack * extack) call_fib6_multipath_entry_notifier() argument 400 call_fib6_entry_notifiers(struct net * net,enum fib_event_type event_type,struct fib6_info * rt,struct netlink_ext_ack * extack) call_fib6_entry_notifiers() argument 414 call_fib6_multipath_entry_notifiers(struct net * net,enum fib_event_type event_type,struct fib6_info * rt,unsigned int nsiblings,struct netlink_ext_ack * extack) call_fib6_multipath_entry_notifiers() argument 428 call_fib6_entry_notifiers_replace(struct net * net,struct fib6_info * rt) call_fib6_entry_notifiers_replace() argument 445 fib6_rt_dump(struct fib6_info * rt,struct fib6_dump_arg * arg) fib6_rt_dump() argument 528 struct fib6_info *rt; fib6_dump_node() local 1031 fib6_purge_rt(struct fib6_info * rt,struct fib6_node * fn,struct net * net) fib6_purge_rt() argument 1080 fib6_add_rt2node(struct fib6_node * fn,struct fib6_info * rt,struct nl_info * info,struct netlink_ext_ack * extack,struct list_head * purge_list) fib6_add_rt2node() argument 1351 fib6_add_rt2node_nh(struct fib6_node * fn,struct fib6_info * rt,struct nl_info * info,struct netlink_ext_ack * extack,struct list_head * purge_list) fib6_add_rt2node_nh() argument 1373 fib6_start_gc(struct net * net,struct fib6_info * rt) fib6_start_gc() argument 1388 __fib6_update_sernum_upto_root(struct fib6_info * rt,int sernum) __fib6_update_sernum_upto_root() argument 1403 fib6_update_sernum_upto_root(struct net * net,struct fib6_info * rt) fib6_update_sernum_upto_root() argument 1423 fib6_add(struct fib6_node * root,struct fib6_info * rt,struct nl_info * info,struct netlink_ext_ack * extack) fib6_add() argument 1972 struct fib6_info *rt = rcu_dereference_protected(*rtp, fib6_del_route() local 2063 fib6_del(struct fib6_info * rt,struct nl_info * info) fib6_del() argument 2233 struct fib6_info *rt; fib6_clean_node() local 2352 fib6_age(struct fib6_info * rt,struct fib6_gc_args * gc_args) fib6_age() argument 2382 struct fib6_info *rt; fib6_gc_table() local 2591 struct fib6_info *rt = v; ipv6_route_native_seq_show() local [all...] |
| /linux/net/ipv4/ |
| H A D | route.c | 416 const struct rtable *rt = container_of(dst, struct rtable, dst); in ipv4_neigh_lookup() local 422 if (likely(rt->rt_gw_family == AF_INET)) { in ipv4_neigh_lookup() 423 n = ip_neigh_gw4(dev, rt->rt_gw4); in ipv4_neigh_lookup() 424 } else if (rt->rt_gw_family == AF_INET6) { in ipv4_neigh_lookup() 425 n = ip_neigh_gw6(dev, &rt->rt_gw6); in ipv4_neigh_lookup() 443 const struct rtable *rt = container_of(dst, struct rtable, dst); in ipv4_confirm_neigh() local 447 if (rt->rt_gw_family == AF_INET) { in ipv4_confirm_neigh() 448 pkey = (const __be32 *)&rt->rt_gw4; in ipv4_confirm_neigh() 449 } else if (rt->rt_gw_family == AF_INET6) { in ipv4_confirm_neigh() 450 return __ipv6_confirm_neigh_stub(dev, &rt->rt_gw6); in ipv4_confirm_neigh() [all …]
|
| /linux/sound/aoa/ |
| H A 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/net/mctp/ |
| H A D | route.c | 667 static void mctp_route_release(struct mctp_route *rt) in mctp_route_release() argument 669 if (refcount_dec_and_test(&rt->refs)) { in mctp_route_release() 670 if (rt->dst_type == MCTP_ROUTE_DIRECT) in mctp_route_release() 671 mctp_dev_put(rt->dev); in mctp_route_release() 672 kfree_rcu(rt, rcu); in mctp_route_release() 679 struct mctp_route *rt; in mctp_route_alloc() local 681 rt = kzalloc_obj(*rt); in mctp_route_alloc() 682 if (!rt) in mctp_route_alloc() 685 INIT_LIST_HEAD(&rt->list); in mctp_route_alloc() 686 refcount_set(&rt->refs, 1); in mctp_route_alloc() [all …]
|
| /linux/arch/mips/include/asm/octeon/ |
| H A D | 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/net/mpls/ |
| H A D | af_mpls.c | 74 static void rtmsg_lfib(int event, u32 label, struct mpls_route *rt, 103 static u8 *__mpls_nh_via(struct mpls_route *rt, struct mpls_nh *nh) in __mpls_nh_via() argument 105 return (u8 *)nh + rt->rt_via_offset; in __mpls_nh_via() 108 static const u8 *mpls_nh_via(const struct mpls_route *rt, in mpls_nh_via() argument 111 return __mpls_nh_via((struct mpls_route *)rt, (struct mpls_nh *)nh); in mpls_nh_via() 165 static u32 mpls_multipath_hash(struct mpls_route *rt, struct sk_buff *skb) in mpls_multipath_hash() argument 232 static struct mpls_nh *mpls_get_nexthop(struct mpls_route *rt, u8 index) in mpls_get_nexthop() argument 234 return (struct mpls_nh *)((u8 *)rt->rt_nh + index * rt->rt_nh_size); in mpls_get_nexthop() 242 static const struct mpls_nh *mpls_select_multipath(struct mpls_route *rt, in mpls_select_multipath() argument 253 if (rt->rt_nhn == 1) in mpls_select_multipath() [all …]
|
| /linux/arch/arm/mm/ |
| H A 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 …]
|
| /linux/drivers/infiniband/core/ |
| H A D | restrack.c | 25 struct rdma_restrack_root *rt; in rdma_restrack_init() local 28 dev->res = kzalloc_objs(*rt, RDMA_RESTRACK_MAX); 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/net/sunrpc/ |
| H A 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/tools/testing/selftests/net/ |
| H A D | srv6_end_dx6_netfilter_test.sh | 167 ip link del veth-rt-1 2>/dev/null || true 168 ip link del veth-rt-2 2>/dev/null || true 179 local rt=$1 180 local nsname=rt-${rt} 187 ip link set veth-rt-${rt} netns ${nsname} 188 ip -netns ${nsname} link set veth-rt-${rt} name veth0 190 ip -netns ${nsname} addr add ${IPv6_RT_NETWORK}::${rt}/64 dev veth0 nodad 199 local rt=$1 200 local nsname=rt-${rt} 209 local rt=$2 [all …]
|
| H A D | srv6_end_dx4_netfilter_test.sh | 167 ip link del veth-rt-1 2>/dev/null || true 168 ip link del veth-rt-2 2>/dev/null || true 179 local rt=$1 180 local nsname=rt-${rt} 187 ip link set veth-rt-${rt} netns ${nsname} 188 ip -netns ${nsname} link set veth-rt-${rt} name veth0 190 ip -netns ${nsname} addr add ${IPv6_RT_NETWORK}::${rt}/64 dev veth0 nodad 200 local rt=$1 201 local nsname=rt-${rt} 210 local rt=$2 [all …]
|