Searched refs:tb (Results 1 - 25 of 468) sorted by relevance

1234567891011>>

/linux-master/fs/reiserfs/
H A Ddo_balan.c19 static inline void buffer_info_init_left(struct tree_balance *tb, argument
22 bi->tb = tb;
23 bi->bi_bh = tb->L[0];
24 bi->bi_parent = tb->FL[0];
25 bi->bi_position = get_left_neighbor_position(tb, 0);
28 static inline void buffer_info_init_right(struct tree_balance *tb, argument
31 bi->tb = tb;
32 bi->bi_bh = tb
37 buffer_info_init_tbS0(struct tree_balance *tb, struct buffer_info *bi) argument
46 buffer_info_init_bh(struct tree_balance *tb, struct buffer_info *bi, struct buffer_head *bh) argument
56 do_balance_mark_leaf_dirty(struct tree_balance *tb, struct buffer_head *bh, int flag) argument
77 balance_leaf_when_delete_del(struct tree_balance *tb) argument
109 balance_leaf_when_delete_cut(struct tree_balance *tb) argument
146 balance_leaf_when_delete_left(struct tree_balance *tb) argument
239 balance_leaf_when_delete(struct tree_balance *tb, int flag) argument
286 balance_leaf_insert_left(struct tree_balance *tb, struct item_head *const ih, const char * const body) argument
351 balance_leaf_paste_left_shift_dirent(struct tree_balance *tb, struct item_head * const ih, const char * const body) argument
413 balance_leaf_paste_left_shift(struct tree_balance *tb, struct item_head * const ih, const char * const body) argument
532 balance_leaf_paste_left_whole(struct tree_balance *tb, struct item_head * const ih, const char * const body) argument
586 balance_leaf_paste_left(struct tree_balance *tb, struct item_head * const ih, const char * const body) argument
599 balance_leaf_left(struct tree_balance *tb, struct item_head * const ih, const char * const body, int flag) argument
621 balance_leaf_insert_right(struct tree_balance *tb, struct item_head * const ih, const char * const body) argument
707 balance_leaf_paste_right_shift_dirent(struct tree_balance *tb, struct item_head * const ih, const char * const body) argument
758 balance_leaf_paste_right_shift(struct tree_balance *tb, struct item_head * const ih, const char * const body) argument
836 balance_leaf_paste_right_whole(struct tree_balance *tb, struct item_head * const ih, const char * const body) argument
880 balance_leaf_paste_right(struct tree_balance *tb, struct item_head * const ih, const char * const body) argument
904 balance_leaf_right(struct tree_balance *tb, struct item_head * const ih, const char * const body, int flag) argument
919 balance_leaf_new_nodes_insert(struct tree_balance *tb, struct item_head * const ih, const char * const body, struct item_head *insert_key, struct buffer_head **insert_ptr, int i) argument
1009 balance_leaf_new_nodes_paste_dirent(struct tree_balance *tb, struct item_head * const ih, const char * const body, struct item_head *insert_key, struct buffer_head **insert_ptr, int i) argument
1064 balance_leaf_new_nodes_paste_shift(struct tree_balance *tb, struct item_head * const ih, const char * const body, struct item_head *insert_key, struct buffer_head **insert_ptr, int i) argument
1137 balance_leaf_new_nodes_paste_whole(struct tree_balance *tb, struct item_head * const ih, const char * const body, struct item_head *insert_key, struct buffer_head **insert_ptr, int i) argument
1190 balance_leaf_new_nodes_paste(struct tree_balance *tb, struct item_head * const ih, const char * const body, struct item_head *insert_key, struct buffer_head **insert_ptr, int i) argument
1220 balance_leaf_new_nodes(struct tree_balance *tb, struct item_head * const ih, const char * const body, struct item_head *insert_key, struct buffer_head **insert_ptr, int flag) argument
1260 balance_leaf_finish_node_insert(struct tree_balance *tb, struct item_head * const ih, const char * const body) argument
1277 balance_leaf_finish_node_paste_dirent(struct tree_balance *tb, struct item_head * const ih, const char * const body) argument
1311 balance_leaf_finish_node_paste(struct tree_balance *tb, struct item_head * const ih, const char * const body) argument
1355 balance_leaf_finish_node(struct tree_balance *tb, struct item_head * const ih, const char * const body, int flag) argument
1382 balance_leaf(struct tree_balance *tb, struct item_head *ih, const char *body, int flag, struct item_head *insert_key, struct buffer_head **insert_ptr) argument
1483 get_FEB(struct tree_balance *tb) argument
1505 store_thrown(struct tree_balance *tb, struct buffer_head *bh) argument
1522 free_thrown(struct tree_balance *tb) argument
1540 reiserfs_invalidate_buffer(struct tree_balance *tb, struct buffer_head *bh) argument
1552 replace_key(struct tree_balance *tb, struct buffer_head *dest, int n_dest, struct buffer_head *src, int n_src) argument
1579 get_left_neighbor_position(struct tree_balance *tb, int h) argument
1593 get_right_neighbor_position(struct tree_balance *tb, int h) argument
1636 locked_or_not_in_tree(struct tree_balance *tb, struct buffer_head *bh, char *which) argument
1647 check_before_balancing(struct tree_balance *tb) argument
1682 check_after_balance_leaf(struct tree_balance *tb) argument
1730 check_leaf_level(struct tree_balance *tb) argument
1737 check_internal_levels(struct tree_balance *tb) argument
1789 do_balance_starts(struct tree_balance *tb) argument
1806 do_balance_completed(struct tree_balance *tb) argument
1847 do_balance(struct tree_balance *tb, struct item_head *ih, const char *body, int flag) argument
[all...]
H A Dibalance.c28 struct tree_balance *tb,
41 src_bi->tb = tb;
42 src_bi->bi_bh = PATH_H_PBUFFER(tb->tb_path, h);
43 src_bi->bi_parent = PATH_H_PPARENT(tb->tb_path, h);
44 src_bi->bi_position = PATH_H_POSITION(tb->tb_path, h + 1);
45 dest_bi->tb = tb;
46 dest_bi->bi_bh = tb->L[h];
47 dest_bi->bi_parent = tb
27 internal_define_dest_src_infos(int shift_mode, struct tree_balance *tb, int h, struct buffer_info *dest_bi, struct buffer_info *src_bi, int *d_key, struct buffer_head **cf) argument
488 internal_shift_left( int mode, struct tree_balance *tb, int h, int pointer_amount) argument
534 internal_shift1_left(struct tree_balance *tb, int h, int pointer_amount) argument
560 internal_shift_right( int mode, struct tree_balance *tb, int h, int pointer_amount) argument
609 internal_shift1_right(struct tree_balance *tb, int h, int pointer_amount) argument
632 balance_internal_when_delete(struct tree_balance *tb, int h, int child_pos) argument
760 replace_lkey(struct tree_balance *tb, int h, struct item_head *key) argument
775 replace_rkey(struct tree_balance *tb, int h, struct item_head *key) argument
803 balance_internal(struct tree_balance *tb, int h, int child_pos, struct item_head *insert_key, struct buffer_head **insert_ptr) argument
[all...]
H A Dfix_node.c51 static void create_virtual_node(struct tree_balance *tb, int h) argument
54 struct virtual_node *vn = tb->tb_vn;
56 struct buffer_head *Sh; /* this comes from tb->S[h] */
58 Sh = PATH_H_PBUFFER(tb->tb_path, h);
62 MAX_CHILD_SIZE(Sh) - B_FREE_SPACE(Sh) + tb->insert_size[h];
76 vn->vn_vi = (struct virtual_item *)(tb->tb_vn + 1);
115 op_create_vi(vn, vi, is_affected, tb->insert_size[0]);
116 if (tb->vn_buf + tb->vn_buf_size < vn->vn_free_ptr)
117 reiserfs_panic(tb
194 check_left(struct tree_balance *tb, int h, int cur_free) argument
280 check_right(struct tree_balance *tb, int h, int cur_free) argument
374 get_num_ver(int mode, struct tree_balance *tb, int h, int from, int from_bytes, int to, int to_bytes, short *snum012, int flow) argument
621 set_parameters(struct tree_balance *tb, int h, int lnum, int rnum, int blk_num, short *s012, int lb, int rb) argument
652 is_leaf_removable(struct tree_balance *tb) argument
696 are_leaves_removable(struct tree_balance *tb, int lfree, int rfree) argument
797 free_buffers_in_tb(struct tree_balance *tb) argument
827 get_empty_nodes(struct tree_balance *tb, int h) argument
915 get_lfree(struct tree_balance *tb, int h) argument
938 get_rfree(struct tree_balance *tb, int h) argument
959 is_left_neighbor_in_cache(struct tree_balance *tb, int h) argument
1023 get_far_parent(struct tree_balance *tb, int h, struct buffer_head **pfather, struct buffer_head **pcom_father, char c_lr_par) argument
1172 get_parents(struct tree_balance *tb, int h) argument
1273 can_node_be_removed(int mode, int lfree, int sfree, int rfree, struct tree_balance *tb, int h) argument
1324 ip_check_balance(struct tree_balance *tb, int h) argument
1726 dc_check_balance_internal(struct tree_balance *tb, int h) argument
1925 dc_check_balance_leaf(struct tree_balance *tb, int h) argument
2031 dc_check_balance(struct tree_balance *tb, int h) argument
2061 check_balance(int mode, struct tree_balance *tb, int h, int inum, int pos_in_item, struct item_head *ins_ih, const void *data) argument
2090 get_direct_parent(struct tree_balance *tb, int h) argument
2151 get_neighbors(struct tree_balance *tb, int h) argument
2265 get_mem_for_virtual_node(struct tree_balance *tb) argument
2364 wait_tb_buffers_until_unlocked(struct tree_balance *tb) argument
2546 fix_nodes(int op_mode, struct tree_balance *tb, struct item_head *ins_ih, const void *data) argument
2778 unfix_nodes(struct tree_balance *tb) argument
[all...]
/linux-master/drivers/thunderbolt/
H A Ddomain.c17 #include "tb.h"
123 struct tb *tb = container_of(dev, struct tb, dev); local
128 uuids = kcalloc(tb->nboot_acl, sizeof(uuid_t), GFP_KERNEL);
132 pm_runtime_get_sync(&tb->dev);
134 if (mutex_lock_interruptible(&tb->lock)) {
138 ret = tb->cm_ops->get_boot_acl(tb, uuids, tb
163 struct tb *tb = container_of(dev, struct tb, dev); local
240 const struct tb *tb = container_of(dev, struct tb, dev); local
256 struct tb *tb = container_of(dev, struct tb, dev); local
265 struct tb *tb = container_of(dev, struct tb, dev); local
287 struct tb *tb = container_of(dev, struct tb, dev); local
320 struct tb *tb = container_of(dev, struct tb, dev); local
337 struct tb *tb = data; local
375 struct tb *tb; local
435 tb_domain_add(struct tb *tb, bool reset) argument
499 tb_domain_remove(struct tb *tb) argument
522 tb_domain_suspend_noirq(struct tb *tb) argument
548 tb_domain_resume_noirq(struct tb *tb) argument
561 tb_domain_suspend(struct tb *tb) argument
566 tb_domain_freeze_noirq(struct tb *tb) argument
580 tb_domain_thaw_noirq(struct tb *tb) argument
593 tb_domain_complete(struct tb *tb) argument
599 tb_domain_runtime_suspend(struct tb *tb) argument
610 tb_domain_runtime_resume(struct tb *tb) argument
630 tb_domain_disapprove_switch(struct tb *tb, struct tb_switch *sw) argument
647 tb_domain_approve_switch(struct tb *tb, struct tb_switch *sw) argument
673 tb_domain_approve_switch_key(struct tb *tb, struct tb_switch *sw) argument
705 tb_domain_challenge_switch_key(struct tb *tb, struct tb_switch *sw) argument
778 tb_domain_disconnect_pcie_paths(struct tb *tb) argument
802 tb_domain_approve_xdomain_paths(struct tb *tb, struct tb_xdomain *xd, int transmit_path, int transmit_ring, int receive_path, int receive_ring) argument
829 tb_domain_disconnect_xdomain_paths(struct tb *tb, struct tb_xdomain *xd, int transmit_path, int transmit_ring, int receive_path, int receive_ring) argument
843 struct tb *tb = data; local
863 tb_domain_disconnect_all_paths(struct tb *tb) argument
[all...]
H A Dicm.c24 #include "tb.h"
105 bool (*is_supported)(struct tb *tb);
106 int (*cio_reset)(struct tb *tb);
107 int (*get_mode)(struct tb *tb);
108 int (*get_route)(struct tb *tb, u8 link, u8 depth, u64 *route);
109 void (*save_devices)(struct tb *t
128 struct tb *tb; member in struct:icm_notification
298 icm_request(struct tb *tb, const void *request, size_t request_size, void *response, size_t response_size, size_t npackets, int retries, unsigned int timeout_msec) argument
342 icm_postpone_rescan(struct tb *tb) argument
351 icm_veto_begin(struct tb *tb) argument
362 icm_veto_end(struct tb *tb) argument
382 icm_fr_is_supported(struct tb *tb) argument
398 icm_fr_get_route(struct tb *tb, u8 link, u8 depth, u64 *route) argument
449 icm_fr_save_devices(struct tb *tb) argument
455 icm_fr_driver_ready(struct tb *tb, enum tb_security_level *security_level, u8 *proto_version, size_t *nboot_acl, bool *rpm) argument
476 icm_fr_approve_switch(struct tb *tb, struct tb_switch *sw) argument
503 icm_fr_add_switch_key(struct tb *tb, struct tb_switch *sw) argument
530 icm_fr_challenge_switch_key(struct tb *tb, struct tb_switch *sw, const u8 *challenge, u8 *response) argument
560 icm_fr_approve_xdomain_paths(struct tb *tb, struct tb_xdomain *xd, int transmit_path, int transmit_ring, int receive_path, int receive_ring) argument
590 icm_fr_disconnect_xdomain_paths(struct tb *tb, struct tb_xdomain *xd, int transmit_path, int transmit_ring, int receive_path, int receive_ring) argument
612 struct tb *tb = parent_sw->tb; local
720 icm_fr_device_connected(struct tb *tb, const struct icm_pkg_header *hdr) argument
868 icm_fr_device_disconnected(struct tb *tb, const struct icm_pkg_header *hdr) argument
902 icm_fr_xdomain_connected(struct tb *tb, const struct icm_pkg_header *hdr) argument
988 icm_fr_xdomain_disconnected(struct tb *tb, const struct icm_pkg_header *hdr) argument
1006 icm_tr_cio_reset(struct tb *tb) argument
1012 icm_tr_driver_ready(struct tb *tb, enum tb_security_level *security_level, u8 *proto_version, size_t *nboot_acl, bool *rpm) argument
1041 icm_tr_approve_switch(struct tb *tb, struct tb_switch *sw) argument
1068 icm_tr_add_switch_key(struct tb *tb, struct tb_switch *sw) argument
1096 icm_tr_challenge_switch_key(struct tb *tb, struct tb_switch *sw, const u8 *challenge, u8 *response) argument
1127 icm_tr_approve_xdomain_paths(struct tb *tb, struct tb_xdomain *xd, int transmit_path, int transmit_ring, int receive_path, int receive_ring) argument
1157 icm_tr_xdomain_tear_down(struct tb *tb, struct tb_xdomain *xd, int stage) argument
1183 icm_tr_disconnect_xdomain_paths(struct tb *tb, struct tb_xdomain *xd, int transmit_path, int transmit_ring, int receive_path, int receive_ring) argument
1198 __icm_tr_device_connected(struct tb *tb, const struct icm_pkg_header *hdr, bool force_rtd3) argument
1294 icm_tr_device_connected(struct tb *tb, const struct icm_pkg_header *hdr) argument
1300 icm_tr_device_disconnected(struct tb *tb, const struct icm_pkg_header *hdr) argument
1325 icm_tr_xdomain_connected(struct tb *tb, const struct icm_pkg_header *hdr) argument
1379 icm_tr_xdomain_disconnected(struct tb *tb, const struct icm_pkg_header *hdr) argument
1425 icm_ar_is_supported(struct tb *tb) argument
1461 icm_ar_cio_reset(struct tb *tb) argument
1466 icm_ar_get_mode(struct tb *tb) argument
1488 icm_ar_driver_ready(struct tb *tb, enum tb_security_level *security_level, u8 *proto_version, size_t *nboot_acl, bool *rpm) argument
1514 icm_ar_get_route(struct tb *tb, u8 link, u8 depth, u64 *route) argument
1536 icm_ar_get_boot_acl(struct tb *tb, uuid_t *uuids, size_t nuuids) argument
1573 icm_ar_set_boot_acl(struct tb *tb, const uuid_t *uuids, size_t nuuids) argument
1618 icm_icl_driver_ready(struct tb *tb, enum tb_security_level *security_level, u8 *proto_version, size_t *nboot_acl, bool *rpm) argument
1644 icm_icl_set_uuid(struct tb *tb) argument
1658 icm_icl_device_connected(struct tb *tb, const struct icm_pkg_header *hdr) argument
1663 icm_icl_rtd3_veto(struct tb *tb, const struct icm_pkg_header *hdr) argument
1676 icm_tgl_is_supported(struct tb *tb) argument
1695 struct tb *tb = n->tb; local
1733 icm_handle_event(struct tb *tb, enum tb_cfg_pkg_type type, const void *buf, size_t size) argument
1755 __icm_driver_ready(struct tb *tb, enum tb_security_level *security_level, u8 *proto_version, size_t *nboot_acl, bool *rpm) argument
1789 icm_firmware_reset(struct tb *tb, struct tb_nhi *nhi) argument
1812 icm_firmware_start(struct tb *tb, struct tb_nhi *nhi) argument
1841 icm_reset_phy_port(struct tb *tb, int phy_port) argument
1909 icm_firmware_init(struct tb *tb) argument
1957 icm_driver_ready(struct tb *tb) argument
1991 icm_suspend(struct tb *tb) argument
2075 struct tb *tb = icm_to_tb(icm); local
2083 icm_complete(struct tb *tb) argument
2113 icm_runtime_suspend(struct tb *tb) argument
2137 icm_runtime_resume(struct tb *tb) argument
2147 icm_start(struct tb *tb, bool not_used) argument
2174 icm_stop(struct tb *tb) argument
2186 icm_disconnect_pcie_paths(struct tb *tb) argument
2195 struct tb *tb = icm_to_tb(icm); local
2208 icm_usb4_switch_nvm_authenticate(struct tb *tb, u64 route) argument
2264 struct tb *tb = sw->tb; local
2324 struct tb *tb = sw->tb; local
2432 struct tb *tb; local
[all...]
H A Dtb.c15 #include "tb.h"
66 static inline struct tb *tcm_to_tb(struct tb_cm *tcm)
68 return ((void *)tcm - sizeof(struct tb));
73 struct tb *tb; member in struct:tb_hotplug_event
81 static void tb_queue_hotplug(struct tb *tb, u64 route, u8 port, bool unplug) argument
89 ev->tb = tb;
94 queue_work(tb
145 tb_discover_dp_resource(struct tb *tb, struct tb_port *port) argument
160 tb_discover_dp_resources(struct tb *tb) argument
334 struct tb *tb = sw->tb; local
388 struct tb *tb = sw->tb; local
446 tb_find_tunnel(struct tb *tb, enum tb_tunnel_type type, struct tb_port *src_port, struct tb_port *dst_port) argument
464 tb_find_first_usb3_tunnel(struct tb *tb, struct tb_port *src_port, struct tb_port *dst_port) argument
504 tb_consumed_usb3_pcie_bandwidth(struct tb *tb, struct tb_port *src_port, struct tb_port *dst_port, struct tb_port *port, int *consumed_up, int *consumed_down) argument
556 tb_consumed_dp_bandwidth(struct tb *tb, struct tb_port *src_port, struct tb_port *dst_port, struct tb_port *port, int *consumed_up, int *consumed_down) argument
656 tb_maximum_bandwidth(struct tb *tb, struct tb_port *src_port, struct tb_port *dst_port, struct tb_port *port, int *max_up, int *max_down, bool include_asym) argument
762 tb_available_bandwidth(struct tb *tb, struct tb_port *src_port, struct tb_port *dst_port, int *available_up, int *available_down, bool include_asym) argument
813 tb_release_unused_usb3_bandwidth(struct tb *tb, struct tb_port *src_port, struct tb_port *dst_port) argument
823 tb_reclaim_usb3_bandwidth(struct tb *tb, struct tb_port *src_port, struct tb_port *dst_port) argument
852 tb_tunnel_usb3(struct tb *tb, struct tb_switch *sw) argument
975 tb_configure_asym(struct tb *tb, struct tb_port *src_port, struct tb_port *dst_port, int requested_up, int requested_down) argument
1081 tb_configure_sym(struct tb *tb, struct tb_port *src_port, struct tb_port *dst_port, bool keep_asym) argument
1169 struct tb *tb = sw->tb; local
1359 struct tb *tb = group->tb; local
1439 tb_recalc_estimated_bandwidth(struct tb *tb) argument
1495 struct tb *tb = group->tb; local
1618 tb_discover_tunnels(struct tb *tb) argument
1649 struct tb *tb; local
1699 tb_free_invalid_tunnels(struct tb *tb) argument
1787 tb_find_dp_out(struct tb *tb, struct tb_port *in) argument
1830 tb_tunnel_one_dp(struct tb *tb, struct tb_port *in, struct tb_port *out) argument
1941 tb_tunnel_dp(struct tb *tb) argument
2025 tb_dp_resource_unavailable(struct tb *tb, struct tb_port *port) argument
2055 tb_dp_resource_available(struct tb *tb, struct tb_port *port) argument
2077 tb_disconnect_and_release_dp(struct tb *tb) argument
2100 tb_disconnect_pci(struct tb *tb, struct tb_switch *sw) argument
2121 tb_tunnel_pci(struct tb *tb, struct tb_switch *sw) argument
2165 tb_approve_xdomain_paths(struct tb *tb, struct tb_xdomain *xd, int transmit_path, int transmit_ring, int receive_path, int receive_ring) argument
2214 __tb_disconnect_xdomain_paths(struct tb *tb, struct tb_xdomain *xd, int transmit_path, int transmit_ring, int receive_path, int receive_ring) argument
2246 tb_disconnect_xdomain_paths(struct tb *tb, struct tb_xdomain *xd, int transmit_path, int transmit_ring, int receive_path, int receive_ring) argument
2270 struct tb *tb = ev->tb; local
2386 struct tb *tb = tunnel->tb; local
2577 struct tb *tb = ev->tb; local
2680 tb_queue_dp_bandwidth_request(struct tb *tb, u64 route, u8 port) argument
2695 tb_handle_notification(struct tb *tb, u64 route, const struct cfg_error_pkg *error) argument
2726 tb_handle_event(struct tb *tb, enum tb_cfg_pkg_type type, const void *buf, size_t size) argument
2751 tb_stop(struct tb *tb) argument
2773 tb_deinit(struct tb *tb) argument
2804 tb_start(struct tb *tb, bool reset) argument
2884 tb_suspend_noirq(struct tb *tb) argument
2929 tb_resume_noirq(struct tb *tb) argument
3011 tb_freeze_noirq(struct tb *tb) argument
3019 tb_thaw_noirq(struct tb *tb) argument
3027 tb_complete(struct tb *tb) argument
3040 tb_runtime_suspend(struct tb *tb) argument
3055 struct tb *tb = tcm_to_tb(tcm); local
3065 tb_runtime_resume(struct tb *tb) argument
3177 struct tb *tb; local
[all...]
H A Dtunnel.h12 #include "tb.h"
23 * @tb: Pointer to the domain
50 struct tb *tb; member in struct:tb_tunnel
79 struct tb_tunnel *tb_tunnel_discover_pci(struct tb *tb, struct tb_port *down,
81 struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up,
85 struct tb_tunnel *tb_tunnel_discover_dp(struct tb *tb, struc
[all...]
H A Dtb.h121 * @tb: Pointer to the domain the switch belongs to
175 struct tb *tb; member in struct:tb_switch
219 * @tb: Pointer to the domain the group belongs to
234 struct tb *tb; member in struct:tb_bandwidth_group
324 * @tb: Pointer to the domain the retimer belongs to
335 struct tb *tb; member in struct:tb_retimer
401 * @tb
422 struct tb *tb; member in struct:tb_path
535 tb_priv(struct tb *tb) argument
786 tb_domain_get(struct tb *tb) argument
793 tb_domain_put(struct tb *tb) argument
[all...]
/linux-master/include/drm/
H A Dtask_barrier.h55 static inline void task_barrier_init(struct task_barrier *tb) argument
57 tb->n = 0;
58 atomic_set(&tb->count, 0);
59 sema_init(&tb->enter_turnstile, 0);
60 sema_init(&tb->exit_turnstile, 0);
63 static inline void task_barrier_add_task(struct task_barrier *tb) argument
65 tb->n++;
68 static inline void task_barrier_rem_task(struct task_barrier *tb) argument
70 tb->n--;
78 static inline void task_barrier_enter(struct task_barrier *tb) argument
92 task_barrier_exit(struct task_barrier *tb) argument
101 task_barrier_full(struct task_barrier *tb) argument
[all...]
/linux-master/tools/bpf/bpftool/
H A Dnetlink_dumper.c14 static void xdp_dump_prog_id(struct nlattr **tb, int attr, argument
18 if (!tb[attr])
24 NET_DUMP_UINT("id", " id %u", libbpf_nla_getattr_u32(tb[attr]))
32 struct nlattr *tb[IFLA_XDP_MAX + 1]; local
35 if (libbpf_nla_parse_nested(tb, IFLA_XDP_MAX, attr, NULL) < 0)
38 if (!tb[IFLA_XDP_ATTACHED])
41 mode = libbpf_nla_getattr_u8(tb[IFLA_XDP_ATTACHED]);
55 xdp_dump_prog_id(tb, IFLA_XDP_SKB_PROG_ID, "generic", true);
56 xdp_dump_prog_id(tb, IFLA_XDP_DRV_PROG_ID, "driver", true);
57 xdp_dump_prog_id(tb, IFLA_XDP_HW_PROG_I
72 do_xdp_dump(struct ifinfomsg *ifinfo, struct nlattr **tb) argument
83 struct nlattr *tb[TCA_ACT_BPF_MAX + 1]; local
104 struct nlattr *tb[TCA_ACT_MAX + 1]; local
121 struct nlattr *tb[TCA_ACT_MAX_PRIO + 1]; local
140 struct nlattr *tb[TCA_BPF_MAX + 1]; local
161 do_filter_dump(struct tcmsg *info, struct nlattr **tb, const char *kind, const char *devname, int ifindex) argument
[all...]
/linux-master/tools/testing/selftests/powerpc/pmu/ebb/
H A Dtrace.h33 int trace_log_reg(struct trace_buffer *tb, u64 reg, u64 value);
34 int trace_log_counter(struct trace_buffer *tb, u64 value);
35 int trace_log_string(struct trace_buffer *tb, char *str);
36 int trace_log_indent(struct trace_buffer *tb);
37 int trace_log_outdent(struct trace_buffer *tb);
38 void trace_buffer_print(struct trace_buffer *tb);
39 void trace_print_location(struct trace_buffer *tb);
H A Dtrace.c17 struct trace_buffer *tb; local
19 if (size < sizeof(*tb)) {
24 tb = mmap(NULL, size, PROT_READ | PROT_WRITE,
26 if (tb == MAP_FAILED) {
31 tb->size = size;
32 tb->tail = tb->data;
33 tb->overflow = false;
35 return tb;
38 static bool trace_check_bounds(struct trace_buffer *tb, voi argument
43 trace_check_alloc(struct trace_buffer *tb, void *p) argument
62 trace_alloc(struct trace_buffer *tb, int bytes) argument
76 trace_alloc_entry(struct trace_buffer *tb, int payload_size) argument
87 trace_log_reg(struct trace_buffer *tb, u64 reg, u64 value) argument
104 trace_log_counter(struct trace_buffer *tb, u64 value) argument
120 trace_log_string(struct trace_buffer *tb, char *str) argument
142 trace_log_indent(struct trace_buffer *tb) argument
155 trace_log_outdent(struct trace_buffer *tb) argument
269 trace_buffer_print(struct trace_buffer *tb) argument
297 trace_print_location(struct trace_buffer *tb) argument
[all...]
/linux-master/net/bridge/
H A Dbr_cfm_netlink.c93 struct nlattr *tb[IFLA_BRIDGE_CFM_MEP_CREATE_MAX + 1]; local
98 err = nla_parse_nested(tb, IFLA_BRIDGE_CFM_MEP_CREATE_MAX, attr,
103 if (!tb[IFLA_BRIDGE_CFM_MEP_CREATE_INSTANCE]) {
107 if (!tb[IFLA_BRIDGE_CFM_MEP_CREATE_DOMAIN]) {
111 if (!tb[IFLA_BRIDGE_CFM_MEP_CREATE_DIRECTION]) {
115 if (!tb[IFLA_BRIDGE_CFM_MEP_CREATE_IFINDEX]) {
122 instance = nla_get_u32(tb[IFLA_BRIDGE_CFM_MEP_CREATE_INSTANCE]);
123 create.domain = nla_get_u32(tb[IFLA_BRIDGE_CFM_MEP_CREATE_DOMAIN]);
124 create.direction = nla_get_u32(tb[IFLA_BRIDGE_CFM_MEP_CREATE_DIRECTION]);
125 create.ifindex = nla_get_u32(tb[IFLA_BRIDGE_CFM_MEP_CREATE_IFINDE
133 struct nlattr *tb[IFLA_BRIDGE_CFM_MEP_DELETE_MAX + 1]; local
156 struct nlattr *tb[IFLA_BRIDGE_CFM_MEP_CONFIG_MAX + 1]; local
198 struct nlattr *tb[IFLA_BRIDGE_CFM_CC_CONFIG_MAX + 1]; local
239 struct nlattr *tb[IFLA_BRIDGE_CFM_CC_PEER_MEP_MAX + 1]; local
266 struct nlattr *tb[IFLA_BRIDGE_CFM_CC_PEER_MEP_MAX + 1]; local
293 struct nlattr *tb[IFLA_BRIDGE_CFM_CC_RDI_MAX + 1]; local
320 struct nlattr *tb[IFLA_BRIDGE_CFM_CC_CCM_TX_MAX + 1]; local
382 struct nlattr *tb[IFLA_BRIDGE_CFM_MAX + 1]; local
459 struct nlattr *tb; local
622 struct nlattr *tb; local
[all...]
H A Dbr_mrp_netlink.c34 struct nlattr *tb[IFLA_BRIDGE_MRP_INSTANCE_MAX + 1]; local
38 err = nla_parse_nested(tb, IFLA_BRIDGE_MRP_INSTANCE_MAX, attr,
43 if (!tb[IFLA_BRIDGE_MRP_INSTANCE_RING_ID] ||
44 !tb[IFLA_BRIDGE_MRP_INSTANCE_P_IFINDEX] ||
45 !tb[IFLA_BRIDGE_MRP_INSTANCE_S_IFINDEX]) {
53 inst.ring_id = nla_get_u32(tb[IFLA_BRIDGE_MRP_INSTANCE_RING_ID]);
54 inst.p_ifindex = nla_get_u32(tb[IFLA_BRIDGE_MRP_INSTANCE_P_IFINDEX]);
55 inst.s_ifindex = nla_get_u32(tb[IFLA_BRIDGE_MRP_INSTANCE_S_IFINDEX]);
58 if (tb[IFLA_BRIDGE_MRP_INSTANCE_PRIO])
59 inst.prio = nla_get_u16(tb[IFLA_BRIDGE_MRP_INSTANCE_PRI
79 struct nlattr *tb[IFLA_BRIDGE_MRP_PORT_STATE_MAX + 1]; local
108 struct nlattr *tb[IFLA_BRIDGE_MRP_PORT_ROLE_MAX + 1]; local
137 struct nlattr *tb[IFLA_BRIDGE_MRP_RING_STATE_MAX + 1]; local
171 struct nlattr *tb[IFLA_BRIDGE_MRP_RING_ROLE_MAX + 1]; local
208 struct nlattr *tb[IFLA_BRIDGE_MRP_START_TEST_MAX + 1]; local
251 struct nlattr *tb[IFLA_BRIDGE_MRP_IN_STATE_MAX + 1]; local
287 struct nlattr *tb[IFLA_BRIDGE_MRP_IN_ROLE_MAX + 1]; local
328 struct nlattr *tb[IFLA_BRIDGE_MRP_START_IN_TEST_MAX + 1]; local
359 struct nlattr *tb[IFLA_BRIDGE_MRP_MAX + 1]; local
449 struct nlattr *tb, *mrp_tb; local
[all...]
/linux-master/drivers/target/
H A Dtarget_core_hba.c40 struct target_backend *tb, *old; local
42 tb = kzalloc(sizeof(*tb), GFP_KERNEL);
43 if (!tb)
45 tb->ops = ops;
52 kfree(tb);
56 target_setup_backend_cits(tb);
57 list_add_tail(&tb->list, &backend_list);
68 struct target_backend *tb; local
71 list_for_each_entry(tb,
92 struct target_backend *tb; local
[all...]
/linux-master/net/netfilter/
H A Dnfnetlink_cthelper.c76 struct nlattr *tb[NFCTH_TUPLE_MAX+1]; local
78 err = nla_parse_nested_deprecated(tb, NFCTH_TUPLE_MAX, attr,
83 if (!tb[NFCTH_TUPLE_L3PROTONUM] || !tb[NFCTH_TUPLE_L4PROTONUM])
89 tuple->src.l3num = ntohs(nla_get_be16(tb[NFCTH_TUPLE_L3PROTONUM]));
90 tuple->dst.protonum = nla_get_u8(tb[NFCTH_TUPLE_L4PROTONUM]);
141 struct nlattr *tb[NFCTH_POLICY_MAX+1]; local
143 err = nla_parse_nested_deprecated(tb, NFCTH_POLICY_MAX, attr,
148 if (!tb[NFCTH_POLICY_NAME] ||
149 !tb[NFCTH_POLICY_EXPECT_MA
177 struct nlattr *tb[NFCTH_POLICY_SET_MAX+1]; local
220 nfnl_cthelper_create(const struct nlattr * const tb[], struct nf_conntrack_tuple *tuple) argument
292 struct nlattr *tb[NFCTH_POLICY_MAX + 1]; local
319 nfnl_cthelper_update_policy_all(struct nlattr *tb[], struct nf_conntrack_helper *helper) argument
363 struct nlattr *tb[NFCTH_POLICY_SET_MAX + 1]; local
384 nfnl_cthelper_update(const struct nlattr * const tb[], struct nf_conntrack_helper *helper) argument
419 nfnl_cthelper_new(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const tb[]) argument
616 nfnl_cthelper_get(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const tb[]) argument
681 nfnl_cthelper_del(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const tb[]) argument
[all...]
/linux-master/drivers/net/wireless/ath/ath6kl/
H A Dtestmode.c73 struct nlattr *tb[ATH6KL_TM_ATTR_MAX + 1]; local
77 err = nla_parse_deprecated(tb, ATH6KL_TM_ATTR_MAX, data, len,
82 if (!tb[ATH6KL_TM_ATTR_CMD])
85 switch (nla_get_u32(tb[ATH6KL_TM_ATTR_CMD])) {
87 if (!tb[ATH6KL_TM_ATTR_DATA])
90 buf = nla_data(tb[ATH6KL_TM_ATTR_DATA]);
91 buf_len = nla_len(tb[ATH6KL_TM_ATTR_DATA]);
/linux-master/arch/sparc/mm/
H A Dtlb.c25 struct tlb_batch *tb = &get_cpu_var(tlb_batch); local
26 struct mm_struct *mm = tb->mm;
28 if (!tb->tlb_nr)
31 flush_tsb_user(tb);
34 if (tb->tlb_nr == 1) {
35 global_flush_tlb_page(mm, tb->vaddrs[0]);
38 smp_flush_tlb_pending(tb->mm, tb->tlb_nr,
39 &tb->vaddrs[0]);
41 __flush_tlb_pending(CTX_HWBITS(tb
55 struct tlb_batch *tb = this_cpu_ptr(&tlb_batch); local
62 struct tlb_batch *tb = this_cpu_ptr(&tlb_batch); local
72 struct tlb_batch *tb = &get_cpu_var(tlb_batch); local
[all...]
/linux-master/include/linux/
H A Dtty_flip.h67 struct tty_buffer *tb = port->buf.tail; local
70 change = !tb->flags && (flag != TTY_NORMAL);
71 if (!change && tb->used < tb->size) {
72 if (tb->flags)
73 *flag_buf_ptr(tb, tb->used) = flag;
74 *char_buf_ptr(tb, tb->used++) = ch;
/linux-master/drivers/block/drbd/
H A Ddrbd_nla.h5 extern int drbd_nla_parse_nested(struct nlattr *tb[], int maxtype, struct nlattr *nla,
/linux-master/net/ethtool/
H A Dbitset.c330 struct nlattr *tb[ARRAY_SIZE(bitset_policy)]; local
333 ret = nla_parse_nested(tb, ARRAY_SIZE(bitset_policy) - 1, bitset,
338 if (tb[ETHTOOL_A_BITSET_BITS]) {
339 if (tb[ETHTOOL_A_BITSET_VALUE] || tb[ETHTOOL_A_BITSET_MASK])
344 if (!tb[ETHTOOL_A_BITSET_SIZE] || !tb[ETHTOOL_A_BITSET_VALUE])
382 struct nlattr *tb[ARRAY_SIZE(bit_policy)]; local
385 ret = nla_parse_nested(tb, ARRAY_SIZE(bit_policy) - 1, bit_attr,
390 if (tb[ETHTOOL_A_BITSET_BIT_INDE
429 ethnl_update_bitset32_verbose(u32 *bitmap, unsigned int nbits, const struct nlattr *attr, struct nlattr **tb, ethnl_string_array_t names, struct netlink_ext_ack *extack, bool *mod) argument
480 ethnl_compact_sanity_checks(unsigned int nbits, const struct nlattr *nest, struct nlattr **tb, struct netlink_ext_ack *extack) argument
556 struct nlattr *tb[ARRAY_SIZE(bitset_policy)]; local
609 struct nlattr *tb[ARRAY_SIZE(bitset_policy)]; local
[all...]
/linux-master/arch/powerpc/include/asm/
H A Dcputime.h60 unsigned long tb = mftb(); local
63 acct->utime += (tb - acct->starttime_user);
64 acct->starttime = tb;
69 unsigned long tb = mftb(); local
72 acct->stime += (tb - acct->starttime);
73 acct->starttime_user = tb;
/linux-master/net/netfilter/ipset/
H A Dip_set_hash_ipmac.c110 hash_ipmac4_uadt(struct ip_set *set, struct nlattr *tb[], argument
118 if (unlikely(!tb[IPSET_ATTR_IP] ||
119 !tb[IPSET_ATTR_ETHER] ||
120 nla_len(tb[IPSET_ATTR_ETHER]) != ETH_ALEN ||
121 !ip_set_optattr_netorder(tb, IPSET_ATTR_TIMEOUT) ||
122 !ip_set_optattr_netorder(tb, IPSET_ATTR_PACKETS) ||
123 !ip_set_optattr_netorder(tb, IPSET_ATTR_BYTES) ||
124 !ip_set_optattr_netorder(tb, IPSET_ATTR_SKBMARK) ||
125 !ip_set_optattr_netorder(tb, IPSET_ATTR_SKBPRIO) ||
126 !ip_set_optattr_netorder(tb, IPSET_ATTR_SKBQUEU
226 hash_ipmac6_uadt(struct ip_set *set, struct nlattr *tb[], enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) argument
[all...]
H A Dip_set_hash_ipportip.c108 hash_ipportip4_uadt(struct ip_set *set, struct nlattr *tb[], argument
119 if (tb[IPSET_ATTR_LINENO])
120 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]);
122 if (unlikely(!tb[IPSET_ATTR_IP] || !tb[IPSET_ATTR_IP2] ||
123 !ip_set_attr_netorder(tb, IPSET_ATTR_PORT) ||
124 !ip_set_optattr_netorder(tb, IPSET_ATTR_PORT_TO)))
127 ret = ip_set_get_ipaddr4(tb[IPSET_ATTR_IP], &e.ip);
131 ret = ip_set_get_extensions(set, tb, &ext);
135 ret = ip_set_get_ipaddr4(tb[IPSET_ATTR_IP
278 hash_ipportip6_uadt(struct ip_set *set, struct nlattr *tb[], enum ipset_adt adt, u32 *lineno, u32 flags, bool retried) argument
[all...]
/linux-master/drivers/net/wireless/ti/wlcore/
H A Dtestmode.c58 static int wl1271_tm_cmd_test(struct wl1271 *wl, struct nlattr *tb[]) argument
67 if (!tb[WL1271_TM_ATTR_DATA])
70 buf = nla_data(tb[WL1271_TM_ATTR_DATA]);
71 buf_len = nla_len(tb[WL1271_TM_ATTR_DATA]);
73 if (tb[WL1271_TM_ATTR_ANSWER])
74 answer = nla_get_u8(tb[WL1271_TM_ATTR_ANSWER]);
138 static int wl1271_tm_cmd_interrogate(struct wl1271 *wl, struct nlattr *tb[]) argument
147 if (!tb[WL1271_TM_ATTR_IE_ID])
150 ie_id = nla_get_u8(tb[WL1271_TM_ATTR_IE_ID]);
203 static int wl1271_tm_cmd_configure(struct wl1271 *wl, struct nlattr *tb[]) argument
235 wl1271_tm_detect_fem(struct wl1271 *wl, struct nlattr *tb[]) argument
272 wl1271_tm_cmd_set_plt_mode(struct wl1271 *wl, struct nlattr *tb[]) argument
303 wl12xx_tm_cmd_get_mac(struct wl1271 *wl, struct nlattr *tb[]) argument
353 struct nlattr *tb[WL1271_TM_ATTR_MAX + 1]; local
[all...]

Completed in 579 milliseconds

1234567891011>>