| /linux/drivers/ntb/test/ |
| H A D | ntb_tool.c | 208 struct tool_ctx *tc; member 233 struct tool_ctx *tc; member 239 struct tool_ctx *tc; member 244 struct tool_ctx *tc; member 291 struct tool_ctx *tc = ctx; in tool_link_event() local 296 up = ntb_link_is_up(tc->ntb, &speed, &width); in tool_link_event() 298 dev_dbg(&tc->ntb->dev, "link is %s speed %d width %d\n", in tool_link_event() 301 wake_up(&tc->link_wq); in tool_link_event() 306 struct tool_ctx *tc = ctx; in tool_db_event() local 309 db_mask = ntb_db_vector_mask(tc in tool_db_event() 320 struct tool_ctx *tc = ctx; tool_msg_event() local 341 tool_fn_read(struct tool_ctx * tc,char __user * ubuf,size_t size,loff_t * offp,u64 (* fn_read)(struct ntb_dev *)) tool_fn_read() argument 359 tool_fn_write(struct tool_ctx * tc,const char __user * ubuf,size_t size,loff_t * offp,int (* fn_set)(struct ntb_dev *,u64),int (* fn_clear)(struct ntb_dev *,u64)) tool_fn_write() argument 408 struct tool_ctx *tc = filep->private_data; tool_port_read() local 425 struct tool_ctx *tc = peer->tc; tool_peer_port_read() local 439 tool_init_peers(struct tool_ctx * tc) tool_init_peers() argument 465 struct tool_ctx *tc = filep->private_data; tool_link_write() local 492 struct tool_ctx *tc = peer->tc; tool_peer_link_read() local 514 struct tool_ctx *tc = peer->tc; tool_peer_link_event_write() local 569 tool_setup_mw(struct tool_ctx * tc,int pidx,int widx,size_t req_size) tool_setup_mw() argument 619 tool_free_mw(struct tool_ctx * tc,int pidx,int widx) tool_free_mw() argument 804 tool_setup_peer_mw(struct tool_ctx * tc,int pidx,int widx,u64 req_addr,size_t req_size) tool_setup_peer_mw() argument 847 tool_free_peer_mw(struct tool_ctx * tc,int widx) tool_free_peer_mw() argument 958 tool_init_mws(struct tool_ctx * tc) tool_init_mws() argument 1006 tool_clear_mws(struct tool_ctx * tc) tool_clear_mws() argument 1028 struct tool_ctx *tc = filep->private_data; tool_db_read() local 1036 struct tool_ctx *tc = filep->private_data; tool_db_write() local 1049 struct tool_ctx *tc = filep->private_data; tool_db_valid_mask_read() local 1061 struct tool_ctx *tc = filep->private_data; tool_db_mask_read() local 1069 struct tool_ctx *tc = filep->private_data; tool_db_mask_write() local 1082 struct tool_ctx *tc = filep->private_data; tool_peer_db_read() local 1090 struct tool_ctx *tc = filep->private_data; tool_peer_db_write() local 1103 struct tool_ctx *tc = filep->private_data; tool_peer_db_mask_read() local 1113 struct tool_ctx *tc = filep->private_data; tool_peer_db_mask_write() local 1128 struct tool_ctx *tc = filep->private_data; tool_db_event_write() local 1233 tool_init_spads(struct tool_ctx * tc) tool_init_spads() argument 1318 struct tool_ctx *tc = filep->private_data; tool_msg_sts_read() local 1326 struct tool_ctx *tc = filep->private_data; tool_msg_sts_write() local 1339 struct tool_ctx *tc = filep->private_data; tool_msg_inbits_read() local 1351 struct tool_ctx *tc = filep->private_data; tool_msg_outbits_read() local 1363 struct tool_ctx *tc = filep->private_data; tool_msg_mask_write() local 1378 struct tool_ctx *tc = filep->private_data; tool_msg_event_write() local 1397 tool_init_msgs(struct tool_ctx * tc) tool_init_msgs() argument 1440 struct tool_ctx *tc; tool_create_data() local 1460 tool_clear_data(struct tool_ctx * tc) tool_clear_data() argument 1467 tool_init_ntb(struct tool_ctx * tc) tool_init_ntb() argument 1472 tool_clear_ntb(struct tool_ctx * tc) tool_clear_ntb() argument 1478 tool_setup_dbgfs(struct tool_ctx * tc) tool_setup_dbgfs() argument 1600 tool_clear_dbgfs(struct tool_ctx * tc) tool_clear_dbgfs() argument 1607 struct tool_ctx *tc; tool_probe() local 1649 struct tool_ctx *tc = ntb->ctx; tool_remove() local [all...] |
| /linux/net/rds/ |
| H A D | tcp.c | 85 u32 rds_tcp_write_seq(struct rds_tcp_connection *tc) in rds_tcp_write_seq() argument 88 return tcp_sk(tc->t_sock->sk)->write_seq; in rds_tcp_write_seq() 91 u32 rds_tcp_snd_una(struct rds_tcp_connection *tc) in rds_tcp_snd_una() argument 93 return tcp_sk(tc->t_sock->sk)->snd_una; in rds_tcp_snd_una() 97 struct rds_tcp_connection *tc) in rds_tcp_restore_callbacks() argument 99 rdsdebug("restoring sock %p callbacks from tc %p\n", sock, tc); in rds_tcp_restore_callbacks() 104 list_del_init(&tc->t_list_item); in rds_tcp_restore_callbacks() 107 tc->t_sock = NULL; in rds_tcp_restore_callbacks() 109 sock->sk->sk_write_space = tc in rds_tcp_restore_callbacks() 138 struct rds_tcp_connection *tc = cp->cp_transport_data; rds_tcp_reset_callbacks() local 230 struct rds_tcp_connection *tc = cp->cp_transport_data; rds_tcp_set_callbacks() local 272 struct rds_tcp_connection *tc; rds_tcp_tc_info() local 337 struct rds_tcp_connection *tc; rds6_tcp_tc_info() local 429 struct rds_tcp_connection *tc = arg; rds_tcp_conn_free() local 444 struct rds_tcp_connection *tc; rds_tcp_conn_alloc() local 486 struct rds_tcp_connection *tc, *_tc; list_has_conn() local 507 struct rds_tcp_connection *tc, *_tc; rds_tcp_destroy_conns() local 678 struct rds_tcp_connection *tc, *_tc; rds_tcp_kill_sock() local 743 struct rds_tcp_connection *tc, *_tc; rds_tcp_sysctl_reset() local [all...] |
| H A D | tcp_recv.c | 160 struct rds_tcp_connection *tc = cp->cp_transport_data; in rds_tcp_data_recv() local 161 struct rds_tcp_incoming *tinc = tc->t_tinc; in rds_tcp_data_recv() 165 rdsdebug("tcp data tc %p skb %p offset %u len %zu\n", tc, skb, offset, in rds_tcp_data_recv() 180 tc->t_tinc = tinc; in rds_tcp_data_recv() 194 if (left && tc->t_tinc_hdr_rem) { in rds_tcp_data_recv() 195 to_copy = min(tc->t_tinc_hdr_rem, left); in rds_tcp_data_recv() 201 tc->t_tinc_hdr_rem, in rds_tcp_data_recv() 203 tc->t_tinc_hdr_rem -= to_copy; in rds_tcp_data_recv() 207 if (tc in rds_tcp_data_recv() 265 struct rds_tcp_connection *tc = cp->cp_transport_data; rds_tcp_read_sock() local 293 struct rds_tcp_connection *tc = cp->cp_transport_data; rds_tcp_recv_path() local 311 struct rds_tcp_connection *tc; rds_tcp_data_ready() local [all...] |
| H A D | tcp_send.c | 43 struct rds_tcp_connection *tc = cp->cp_transport_data; in rds_tcp_xmit_path_prepare() local 45 tcp_sock_set_cork(tc->t_sock->sk, true); in rds_tcp_xmit_path_prepare() 50 struct rds_tcp_connection *tc = cp->cp_transport_data; in rds_tcp_xmit_path_complete() local 52 tcp_sock_set_cork(tc->t_sock->sk, false); in rds_tcp_xmit_path_complete() 74 struct rds_tcp_connection *tc = cp->cp_transport_data; in rds_tcp_xmit() local 85 tc->t_last_sent_nxt = rds_tcp_write_seq(tc); in rds_tcp_xmit() 86 rm->m_ack_seq = tc->t_last_sent_nxt + in rds_tcp_xmit() 91 tc->t_last_expected_una = rm->m_ack_seq + 1; in rds_tcp_xmit() 97 rm, rds_tcp_write_seq(tc), in rds_tcp_xmit() 183 struct rds_tcp_connection *tc; rds_tcp_write_space() local [all...] |
| H A D | tcp_connect.c | 44 struct rds_tcp_connection *tc; in rds_tcp_state_change() local 52 tc = cp->cp_transport_data; in rds_tcp_state_change() 53 state_change = tc->t_orig_state_change; in rds_tcp_state_change() 55 rdsdebug("sock %p state_change to %d\n", tc->t_sock, sk->sk_state); in rds_tcp_state_change() 80 if (wq_has_sleeper(&tc->t_recv_done_waitq)) in rds_tcp_state_change() 81 wake_up(&tc->t_recv_done_waitq); in rds_tcp_state_change() 86 if (wq_has_sleeper(&tc->t_recv_done_waitq)) in rds_tcp_state_change() 87 wake_up(&tc->t_recv_done_waitq); in rds_tcp_state_change() 110 struct rds_tcp_connection *tc = cp->cp_transport_data; in rds_tcp_conn_path_connect() 118 mutex_lock(&tc in rds_tcp_conn_path_connect() 100 struct rds_tcp_connection *tc = cp->cp_transport_data; rds_tcp_conn_path_connect() local 206 struct rds_tcp_connection *tc = cp->cp_transport_data; rds_tcp_conn_path_shutdown() local [all...] |
| /linux/drivers/md/ |
| H A D | dm-thin.c | 226 typedef void (*process_bio_fn)(struct thin_c *tc, struct bio *bio); 227 typedef void (*process_cell_fn)(struct thin_c *tc, struct dm_bio_prison_cell *cell); 382 struct thin_c *tc; member 388 static void begin_discard(struct discard_op *op, struct thin_c *tc, struct bio *parent) in begin_discard() argument 392 op->tc = tc; in begin_discard() 400 struct thin_c *tc = op->tc; in issue_discard() local 401 sector_t s = block_to_sectors(tc->pool, data_b); in issue_discard() 402 sector_t len = block_to_sectors(tc in issue_discard() 587 struct thin_c *tc; global() member 605 error_thin_bio_list(struct thin_c * tc,struct bio_list * master,blk_status_t error) error_thin_bio_list() argument 619 requeue_deferred_cells(struct thin_c * tc) requeue_deferred_cells() argument 635 requeue_io(struct thin_c * tc) requeue_io() argument 652 struct thin_c *tc; error_retry_list_with_code() local 672 get_bio_block(struct thin_c * tc,struct bio * bio) get_bio_block() argument 688 get_bio_block_range(struct thin_c * tc,struct bio * bio,dm_block_t * begin,dm_block_t * end) get_bio_block_range() argument 714 remap(struct thin_c * tc,struct bio * bio,dm_block_t block) remap() argument 730 remap_to_origin(struct thin_c * tc,struct bio * bio) remap_to_origin() argument 735 bio_triggers_commit(struct thin_c * tc,struct bio * bio) bio_triggers_commit() argument 752 issue(struct thin_c * tc,struct bio * bio) issue() argument 780 remap_to_origin_and_issue(struct thin_c * tc,struct bio * bio) remap_to_origin_and_issue() argument 786 remap_and_issue(struct thin_c * tc,struct bio * bio,dm_block_t block) remap_and_issue() argument 812 struct thin_c *tc; global() member 880 cell_defer_no_holder(struct thin_c * tc,struct dm_bio_prison_cell * cell) cell_defer_no_holder() argument 900 struct thin_c *tc; global() member 927 inc_remap_and_issue_cell(struct thin_c * tc,struct dm_bio_prison_cell * cell,dm_block_t block) inc_remap_and_issue_cell() argument 960 complete_overwrite_bio(struct thin_c * tc,struct bio * bio) complete_overwrite_bio() argument 994 struct thin_c *tc = m->tc; process_prepared_mapping() local 1040 struct thin_c *tc = m->tc; free_discard_mapping() local 1062 struct thin_c *tc = m->tc; process_prepared_discard_no_passdown() local 1086 struct thin_c *tc = m->tc; passdown_double_checking_shared_status() local 1148 struct thin_c *tc = m->tc; process_prepared_discard_passdown_pt1() local 1197 struct thin_c *tc = m->tc; process_prepared_discard_passdown_pt2() local 1278 ll_zero(struct thin_c * tc,struct dm_thin_new_mapping * m,sector_t begin,sector_t end) ll_zero() argument 1290 remap_and_issue_overwrite(struct thin_c * tc,struct bio * bio,dm_block_t data_begin,struct dm_thin_new_mapping * m) remap_and_issue_overwrite() argument 1307 schedule_copy(struct thin_c * tc,dm_block_t virt_block,struct dm_dev * origin,dm_block_t data_origin,dm_block_t data_dest,struct dm_bio_prison_cell * cell,struct bio * bio,sector_t len) schedule_copy() argument 1368 schedule_internal_copy(struct thin_c * tc,dm_block_t virt_block,dm_block_t data_origin,dm_block_t data_dest,struct dm_bio_prison_cell * cell,struct bio * bio) schedule_internal_copy() argument 1377 schedule_zero(struct thin_c * tc,dm_block_t virt_block,dm_block_t data_block,struct dm_bio_prison_cell * cell,struct bio * bio) schedule_zero() argument 1407 schedule_external_copy(struct thin_c * tc,dm_block_t virt_block,dm_block_t data_dest,struct dm_bio_prison_cell * cell,struct bio * bio) schedule_external_copy() argument 1513 alloc_data_block(struct thin_c * tc,dm_block_t * result) alloc_data_block() argument 1583 struct thin_c *tc = h->tc; retry_on_resume() local 1644 process_discard_cell_no_passdown(struct thin_c * tc,struct dm_bio_prison_cell * virt_cell) process_discard_cell_no_passdown() argument 1664 break_up_discard_bio(struct thin_c * tc,dm_block_t begin,dm_block_t end,struct bio * bio) break_up_discard_bio() argument 1743 process_discard_cell_passdown(struct thin_c * tc,struct dm_bio_prison_cell * virt_cell) process_discard_cell_passdown() argument 1764 process_discard_bio(struct thin_c * tc,struct bio * bio) process_discard_bio() argument 1799 break_sharing(struct thin_c * tc,struct bio * bio,dm_block_t block,struct dm_cell_key * key,struct dm_thin_lookup_result * lookup_result,struct dm_bio_prison_cell * cell) break_sharing() argument 1847 remap_and_issue_shared_cell(struct thin_c * tc,struct dm_bio_prison_cell * cell,dm_block_t block) remap_and_issue_shared_cell() argument 1868 process_shared_bio(struct thin_c * tc,struct bio * bio,dm_block_t block,struct dm_thin_lookup_result * lookup_result,struct dm_bio_prison_cell * virt_cell) process_shared_bio() argument 1902 provision_block(struct thin_c * tc,struct bio * bio,dm_block_t block,struct dm_bio_prison_cell * cell) provision_block() argument 1951 process_cell(struct thin_c * tc,struct dm_bio_prison_cell * cell) process_cell() argument 2006 process_bio(struct thin_c * tc,struct bio * bio) process_bio() argument 2024 __process_bio_read_only(struct thin_c * tc,struct bio * bio,struct dm_bio_prison_cell * cell) __process_bio_read_only() argument 2075 process_bio_read_only(struct thin_c * tc,struct bio * bio) process_bio_read_only() argument 2080 process_cell_read_only(struct thin_c * tc,struct dm_bio_prison_cell * cell) process_cell_read_only() argument 2085 process_bio_success(struct thin_c * tc,struct bio * bio) process_bio_success() argument 2090 process_bio_fail(struct thin_c * tc,struct bio * bio) process_bio_fail() argument 2095 process_cell_success(struct thin_c * tc,struct dm_bio_prison_cell * cell) process_cell_success() argument 2100 process_cell_fail(struct thin_c * tc,struct dm_bio_prison_cell * cell) process_cell_fail() argument 2118 __thin_bio_rb_add(struct thin_c * tc,struct bio * bio) __thin_bio_rb_add() argument 2141 __extract_sorted_bios(struct thin_c * tc) __extract_sorted_bios() argument 2158 __sort_thin_deferred_bios(struct thin_c * tc) __sort_thin_deferred_bios() argument 2179 process_thin_deferred_bios(struct thin_c * tc) process_thin_deferred_bios() argument 2273 process_thin_deferred_cells(struct thin_c * tc) process_thin_deferred_cells() argument 2330 struct thin_c *tc = NULL; get_first_thin() local 2341 get_next_thin(struct pool * pool,struct thin_c * tc) get_next_thin() argument 2362 struct thin_c *tc; process_deferred_bios() local 2491 struct thin_c *tc; global() member 2516 noflush_work(struct thin_c * tc,void (* fn)(struct work_struct *)) noflush_work() argument 2672 thin_defer_bio(struct thin_c * tc,struct bio * bio) thin_defer_bio() argument 2683 thin_defer_bio_with_throttle(struct thin_c * tc,struct bio * bio) thin_defer_bio_with_throttle() argument 2692 thin_defer_cell(struct thin_c * tc,struct dm_bio_prison_cell * cell) thin_defer_cell() argument 2705 thin_hook_bio(struct thin_c * tc,struct bio * bio) thin_hook_bio() argument 2722 struct thin_c *tc = ti->private; thin_bio_map() local 2813 struct thin_c *tc; requeue_bios() local 3601 struct thin_c *tc; pool_suspend_active_thins() local 3613 struct thin_c *tc; pool_resume_active_thins() local 4134 thin_get(struct thin_c * tc) thin_get() argument 4139 thin_put(struct thin_c * tc) thin_put() argument 4147 struct thin_c *tc = ti->private; thin_dtr() local 4184 struct thin_c *tc; thin_ctr() local 4374 struct thin_c *tc = ti->private; thin_presuspend() local 4382 struct thin_c *tc = ti->private; thin_postsuspend() local 4390 struct thin_c *tc = ti->private; thin_preresume() local 4408 struct thin_c *tc = ti->private; thin_status() local 4464 struct thin_c *tc = ti->private; thin_iterate_devices() local 4484 struct thin_c *tc = ti->private; thin_io_hints() local [all...] |
| /linux/tools/testing/selftests/drivers/net/mlxsw/ |
| H A D | tc_restrictions.sh | 44 tc qdisc add dev $swp1 ingress_block 22 clsact 47 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 51 tc qdisc add dev $swp2 ingress_block 22 clsact 54 tc qdisc del dev $swp2 clsact 56 tc qdisc add dev $swp2 egress_block 22 clsact 59 tc filter del block 22 protocol ip pref 1 handle 101 flower 61 tc qdisc add dev $swp2 egress_block 22 clsact 64 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 68 tc qdisc del dev $swp1 clsact 70 tc qdisc add dev $swp1 egress_block 22 clsact [all …]
|
| H A D | qos_headroom.sh | 124 dcb ets set dev $swp prio-tc 0:0 1:2 2:4 3:6 4:1 5:3 6:5 7:7 130 dcb ets set dev $swp prio-tc all:0 168 tc qdisc replace dev $swp root handle 1: bfifo limit 1.5M 170 tc qdisc delete dev $swp root 177 dcb ets set dev $swp prio-tc all:0 5:1 6:2 7:3 225 dcb ets set dev $swp prio-tc all:0 245 dcb ets set dev $swp prio-tc 0:0 1:1 2:2 3:3 4:4 5:5 6:6 7:7 248 tc qdisc replace dev $swp root handle 1: bfifo limit 1.5M 254 tc qdisc delete dev $swp root 258 tc qdisc replace dev $swp root handle 1: bfifo limit 1.5M [all …]
|
| H A D | sch_offload.sh | 42 local unoffloaded=$(tc q sh dev $h1 invisible | 57 tc qdisc add dev $h1 $locus handle $handle \ 60 tc qdisc del dev $h1 $locus 68 tc qdisc add dev $h1 $locus handle $handle \ 71 tc qdisc del dev $h1 $locus 79 tc qdisc add dev $h1 $locus handle $handle \ 82 tc qdisc del dev $h1 $locus 90 tc qdisc add dev $h1 $locus handle $handle \ 93 tc qdisc del dev $h1 $locus 101 tc qdisc add dev $h1 $locus handle $handle pfifo limit 100K [all …]
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_dcb.c | 165 int tc; in ixgbe_dcb_unpack_pfc() local 167 for (*pfc_en = 0, tc = 0; tc < MAX_TRAFFIC_CLASS; tc++) { in ixgbe_dcb_unpack_pfc() 168 if (tc_config[tc].dcb_pfc != pfc_disabled) in ixgbe_dcb_unpack_pfc() 169 *pfc_en |= BIT(tc); in ixgbe_dcb_unpack_pfc() 177 int tc; in ixgbe_dcb_unpack_refill() local 179 for (tc = 0; tc < MAX_TRAFFIC_CLASS; tc++) in ixgbe_dcb_unpack_refill() 180 refill[tc] = tc_config[tc].path[direction].data_credits_refill; in ixgbe_dcb_unpack_refill() 186 int tc; in ixgbe_dcb_unpack_max() local 188 for (tc = 0; tc < MAX_TRAFFIC_CLASS; tc++) in ixgbe_dcb_unpack_max() 189 max[tc] = tc_config[tc].desc_credits_max; in ixgbe_dcb_unpack_max() [all …]
|
| /linux/arch/mips/kernel/ |
| H A D | smp-mt.c | 46 static unsigned int __init smvp_vpe_init(unsigned int tc, unsigned int mvpconf0, in smvp_vpe_init() argument 49 if (tc >= smp_max_threads || in smvp_vpe_init() 50 (tc > ((mvpconf0 & MVPCONF0_PVPE) >> MVPCONF0_PVPE_SHIFT))) in smvp_vpe_init() 54 if (tc != 0) { in smvp_vpe_init() 64 set_cpu_possible(tc, true); in smvp_vpe_init() 65 set_cpu_present(tc, true); in smvp_vpe_init() 66 __cpu_number_map[tc] = ++ncpu; in smvp_vpe_init() 67 __cpu_logical_map[ncpu] = tc; in smvp_vpe_init() 73 if (tc != 0) in smvp_vpe_init() 76 cpu_set_vpe_id(&cpu_data[ncpu], tc); in smvp_vpe_init() [all …]
|
| H A D | vpe-mt.c | 31 struct tc *t; in vpe_run() 46 if (list_empty(&v->tc)) { in vpe_run() 57 t = list_first_entry(&v->tc, struct tc, tc); in vpe_run() 146 void cleanup_tc(struct tc *tc) in cleanup_tc() argument 158 settc(tc->index); in cleanup_tc() 208 struct tc *t; in vpe_stop() 213 t = list_entry(v->tc.next, struct tc, tc); in vpe_stop() 229 struct tc *t; in vpe_free() 232 t = list_entry(v->tc.next, struct tc, tc); in vpe_free() 330 struct tc *t; in vpe_module_init() [all …]
|
| /linux/tools/testing/selftests/net/forwarding/ |
| H A D | tc_flower.sh | 29 tc qdisc add dev $h2 clsact 34 tc qdisc del dev $h2 clsact 44 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 46 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 58 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 59 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 70 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 72 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 84 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 85 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower [all …]
|
| H A D | tc_actions.sh | 20 tc qdisc add dev $h1 clsact 25 tc qdisc del dev $h1 clsact 32 tc qdisc add dev $h2 clsact 37 tc qdisc del dev $h2 clsact 44 tc qdisc add dev $swp1 clsact 53 tc qdisc del dev $swp1 clsact 66 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 75 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \ 85 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \ 87 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower [all …]
|
| H A D | tc_chains.sh | 25 tc qdisc add dev $h2 clsact 30 tc qdisc del dev $h2 clsact 38 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ 47 tc filter del dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ 57 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ 59 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 61 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 76 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 77 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 78 tc filter del dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ [all …]
|
| H A D | router_multicast.sh | 46 tc qdisc add dev $h1 ingress 51 tc qdisc del dev $h1 ingress 72 tc qdisc add dev $h2 ingress 77 tc qdisc del dev $h2 ingress 98 tc qdisc add dev $h3 ingress 103 tc qdisc del dev $h3 ingress 128 tc qdisc add dev $rp3 ingress 133 tc qdisc del dev $rp3 ingress 217 tc filter add dev $h2 ingress protocol ip pref 1 handle 122 flower \ 219 tc filter add dev $h3 ingress protocol ip pref 1 handle 133 flower \ [all …]
|
| /linux/lib/tests/ |
| H A D | ffs_kunit.c | 212 const struct ffs_test_case *tc = &basic_test_cases[i]; in ffs_basic_correctness_test() local 215 validate_ffs_result(test, tc->input, ffs(tc->input), in ffs_basic_correctness_test() 216 tc->expected_ffs, "ffs", tc->description); in ffs_basic_correctness_test() 219 validate_ffs_result(test, tc->input, fls(tc->input), in ffs_basic_correctness_test() 220 tc->expected_fls, "fls", tc->description); in ffs_basic_correctness_test() 223 if (tc->input != 0) { in ffs_basic_correctness_test() 225 unsigned int expected_ffs_0based = tc->expected_ffs - 1; in ffs_basic_correctness_test() 226 validate_ffs_result(test, tc->input, __ffs(tc->input), in ffs_basic_correctness_test() 227 expected_ffs_0based, "__ffs", tc->description); in ffs_basic_correctness_test() 231 if (tc->input != 0) { in ffs_basic_correctness_test() [all …]
|
| /linux/net/sched/ |
| H A D | sch_mqprio_lib.c | 105 int tc, num_tc = netdev_get_num_tc(dev); in mqprio_qopt_reconstruct() local 108 for (tc = 0; tc <= TC_BITMASK; tc++) in mqprio_qopt_reconstruct() 109 qopt->prio_tc_map[tc] = netdev_get_prio_tc_map(dev, tc); in mqprio_qopt_reconstruct() 111 for (tc = 0; tc < num_tc; tc++) { in mqprio_qopt_reconstruct() 114 res.combined = READ_ONCE(dev->tc_to_txq[tc].combined); in mqprio_qopt_reconstruct() 115 qopt->count[tc] = res.count; in mqprio_qopt_reconstruct() 116 qopt->offset[tc] = res.offset; in mqprio_qopt_reconstruct() 125 int tc; in mqprio_fp_to_offload() local 127 for (tc = 0; tc < TC_QOPT_MAX_QUEUE; tc++) in mqprio_fp_to_offload() 128 if (fp[tc] == TC_FP_PREEMPTIBLE) in mqprio_fp_to_offload() [all …]
|
| H A D | sch_taprio.c | 132 int tc; in taprio_calculate_gate_durations() 147 for (tc = 0; tc < num_tc; tc++) { in taprio_calculate_gate_durations() 148 if (!(gates_still_open & BIT(tc))) in taprio_calculate_gate_durations() 151 if (cur->gate_mask & BIT(tc)) in taprio_calculate_gate_durations() 152 entry->gate_duration[tc] += cur->interval; in taprio_calculate_gate_durations() 154 gates_still_open &= ~BIT(tc); in taprio_calculate_gate_durations() 164 for (tc = 0; tc < num_t 125 int tc; taprio_calculate_gate_durations() local 165 taprio_entry_allows_tx(ktime_t skb_end_time,struct sched_entry * entry,int tc) taprio_entry_allows_tx() argument 280 int tc; taprio_update_queue_max_sdu() local 339 int tc, n; find_entry_to_transmit() local 548 u8 tc; taprio_skb_exceeds_queue_max_sdu() local 668 int tc, budget; taprio_set_budgets() local 686 int tc, budget, new_budget = 0; taprio_update_budgets() local 718 u8 tc; taprio_dequeue_from_txq() local 763 taprio_next_tc_txq(struct net_device * dev,int tc,int * txq) taprio_next_tc_txq() argument 785 int tc; taprio_dequeue_tc_priority() local 929 int tc; advance_sched() local 1249 int tc; setup_first_end_time() local 1524 int tc, err = 0; taprio_enable_offload() local 1710 int err, tc; taprio_parse_tc_entry() local 1759 int tc, rem; taprio_parse_tc_entries() local 2076 int i, tc; taprio_init() local 2298 int tc; taprio_dump_tc_entries() local [all...] |
| /linux/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/ |
| H A D | tc_flower.sh | 35 tc qdisc add dev $h2 clsact 40 tc qdisc del dev $h2 clsact 101 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 110 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 125 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 133 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 147 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 149 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 158 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 166 tc filter add dev $h2 ingress protocol ip pref 3 handle 103 flower \ [all …]
|
| /linux/drivers/clocksource/ |
| H A D | timer-atmel-tcb.c | 256 static int __init setup_clkevents(struct atmel_tc *tc, int divisor_idx) in setup_clkevents() argument 259 struct clk *t2_clk = tc->clk[2]; in setup_clkevents() 260 int irq = tc->irq[2]; in setup_clkevents() 261 int bits = tc->tcb_config->counter_width; in setup_clkevents() 268 clkevt.regs = tc->regs; in setup_clkevents() 275 ret = clk_prepare_enable(tc->slow_clk); in setup_clkevents() 281 clkevt.rate = clk_get_rate(tc->slow_clk); in setup_clkevents() 293 clk_disable_unprepare(tc->slow_clk); in setup_clkevents() 304 static int __init setup_clkevents(struct atmel_tc *tc, int divisor_idx) in setup_clkevents() argument 312 static void __init tcb_setup_dual_chan(struct atmel_tc *tc, int mck_divisor_idx) in tcb_setup_dual_chan() argument [all …]
|
| /linux/drivers/net/ethernet/sfc/ |
| H A D | tc.c | 16 #include "tc.h" 133 old = rhashtable_lookup_get_insert_fast(&efx->tc->mac_ht, in efx_tc_flower_get_mac() 157 rhashtable_remove_fast(&efx->tc->mac_ht, &ped->linkage, in efx_tc_flower_get_mac() 168 rhashtable_remove_fast(&efx->tc->mac_ht, &ped->linkage, in efx_tc_flower_put_mac() 482 rhashtable_remove_fast(&efx->tc->encap_match_ht, &encap->linkage, in efx_tc_flower_release_encap_match() 595 old = rhashtable_lookup_get_insert_fast(&efx->tc->encap_match_ht, in efx_tc_flower_record_encap_match() 681 rhashtable_remove_fast(&efx->tc->encap_match_ht, &encap->linkage, in efx_tc_flower_record_encap_match() 706 old = rhashtable_lookup_get_insert_fast(&efx->tc->recirc_ht, in efx_tc_get_recirc_id() 719 rc = ida_alloc_range(&efx->tc->recirc_ida, 1, U8_MAX, GFP_USER); in efx_tc_get_recirc_id() 721 rhashtable_remove_fast(&efx->tc in efx_tc_get_recirc_id() 968 efx_tc_flower_handle_lhs_actions(struct efx_nic * efx,struct flow_cls_offload * tc,struct flow_rule * fr,struct net_device * net_dev,struct efx_tc_lhs_rule * rule) efx_tc_flower_handle_lhs_actions() argument 1453 efx_tc_flower_replace_foreign_lhs_ar(struct efx_nic * efx,struct flow_cls_offload * tc,struct flow_rule * fr,struct efx_tc_match * match,struct net_device * net_dev) efx_tc_flower_replace_foreign_lhs_ar() argument 1557 efx_tc_flower_replace_foreign_lhs(struct efx_nic * efx,struct flow_cls_offload * tc,struct flow_rule * fr,struct efx_tc_match * match,struct net_device * net_dev) efx_tc_flower_replace_foreign_lhs() argument 1670 efx_tc_flower_replace_foreign(struct efx_nic * efx,struct net_device * net_dev,struct flow_cls_offload * tc) efx_tc_flower_replace_foreign() argument 1992 efx_tc_flower_replace_lhs(struct efx_nic * efx,struct flow_cls_offload * tc,struct flow_rule * fr,struct efx_tc_match * match,struct efx_rep * efv,struct net_device * net_dev) efx_tc_flower_replace_lhs() argument 2068 efx_tc_flower_replace(struct efx_nic * efx,struct net_device * net_dev,struct flow_cls_offload * tc,struct efx_rep * efv) efx_tc_flower_replace() argument 2554 efx_tc_flower_destroy(struct efx_nic * efx,struct net_device * net_dev,struct flow_cls_offload * tc) efx_tc_flower_destroy() argument 2603 efx_tc_flower_stats(struct efx_nic * efx,struct net_device * net_dev,struct flow_cls_offload * tc) efx_tc_flower_stats() argument 2639 efx_tc_flower(struct efx_nic * efx,struct net_device * net_dev,struct flow_cls_offload * tc,struct efx_rep * efv) efx_tc_flower() argument [all...] |
| /linux/drivers/gpu/drm/imx/dc/ |
| H A D | dc-tc.c | 62 void dc_tc_init(struct dc_tc *tc) in dc_tc_init() argument 65 regmap_write(tc->reg, TCON_CTRL, CTRL_RST_VAL); in dc_tc_init() 68 regmap_bulk_write(tc->reg, MAPBIT3_0, dc_tc_mapbit, in dc_tc_init() 78 struct dc_tc *tc; in dc_tc_bind() local 81 tc = devm_kzalloc_obj(dev, *tc); in dc_tc_bind() 82 if (!tc) in dc_tc_bind() 89 tc->reg = devm_regmap_init_mmio(dev, base, &dc_tc_regmap_config); in dc_tc_bind() 90 if (IS_ERR(tc->reg)) in dc_tc_bind() 91 return PTR_ERR(tc in dc_tc_bind() [all...] |
| /linux/drivers/android/tests/ |
| H A D | binder_alloc_kunit.c | |
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | channels.c | 76 int i, tc; in mlx5e_channels_tx_change_dim() local 79 for (tc = 0; tc < mlx5e_get_dcb_num_tc(&chs->params); tc++) { in mlx5e_channels_tx_change_dim() 80 int err = mlx5e_dim_tx_change(&chs->c[i]->sq[tc], enable); in mlx5e_channels_tx_change_dim() 116 int i, tc; in mlx5e_channels_tx_toggle_dim() local 119 for (tc = 0; tc < mlx5e_get_dcb_num_tc(&chs->params); tc++) { in mlx5e_channels_tx_toggle_dim() 129 if (!chs->c[i]->sq[tc].dim) in mlx5e_channels_tx_toggle_dim() 132 mlx5e_dim_tx_change(&chs->c[i]->sq[tc], false); in mlx5e_channels_tx_toggle_dim() 133 err = mlx5e_dim_tx_change(&chs->c[i]->sq[tc], true); in mlx5e_channels_tx_toggle_dim()
|