Home
last modified time | relevance | path

Searched refs:tb (Results 1 – 25 of 120) sorted by relevance

12345

/drivers/thunderbolt/
A Ddomain.c123 struct tb *tb = container_of(dev, struct tb, dev); in boot_acl_show() local
138 ret = tb->cm_ops->get_boot_acl(tb, uuids, tb->nboot_acl); in boot_acl_show()
163 struct tb *tb = container_of(dev, struct tb, dev); in boot_acl_store() local
256 struct tb *tb = container_of(dev, struct tb, dev); in iommu_dma_protection_show() local
265 struct tb *tb = container_of(dev, struct tb, dev); in security_show() local
287 struct tb *tb = container_of(dev, struct tb, dev); in domain_attr_is_visible() local
320 struct tb *tb = container_of(dev, struct tb, dev); in tb_domain_release() local
337 struct tb *tb = data; in tb_domain_event_cb() local
375 struct tb *tb; in tb_domain_alloc() local
503 tb->cm_ops->stop(tb); in tb_domain_remove()
[all …]
A Dtb.c79 struct tb *tb; member
101 ev->tb = tb; in tb_queue_hotplug()
382 struct tb *tb = sw->tb; in tb_switch_discover_tunnels() local
436 struct tb *tb = sw->tb; in tb_scan_xdomain() local
1227 struct tb *tb = sw->tb; in tb_configure_link() local
1427 struct tb *tb = group->tb; in tb_recalc_estimated_bandwidth_for_group() local
1563 struct tb *tb = group->tb; in tb_bandwidth_group_release_work() local
2416 struct tb *tb = ev->tb; in tb_handle_hotplug() local
2532 struct tb *tb = tunnel->tb; in tb_alloc_dp_bandwidth() local
2728 struct tb *tb = ev->tb; in tb_handle_dp_bandwidth_request() local
[all …]
A Dicm.c107 int (*cio_reset)(struct tb *tb);
108 int (*get_mode)(struct tb *tb);
129 struct tb *tb; member
386 struct tb *tb = xd->tb; in icm_xdomain_activated() local
637 struct tb *tb = parent_sw->tb; in alloc_switch() local
1726 struct tb *tb = n->tb; in icm_handle_notification() local
1783 n->tb = tb; in icm_handle_event()
2189 tb->root_switch = tb_switch_alloc(tb, &tb->dev, 0); in icm_start()
2298 struct tb *tb = sw->tb; in icm_usb4_switch_op() local
2358 struct tb *tb = sw->tb; in icm_usb4_switch_nvm_authenticate_status() local
[all …]
A Dtb.h177 struct tb *tb; member
239 struct tb *tb; member
341 struct tb *tb; member
431 struct tb *tb; member
507 int (*driver_ready)(struct tb *tb);
509 void (*stop)(struct tb *tb);
510 void (*deinit)(struct tb *tb);
513 int (*suspend)(struct tb *tb);
515 int (*thaw_noirq)(struct tb *tb);
516 void (*complete)(struct tb *tb);
[all …]
A Ddebugfs.c225 struct tb *tb = sw->tb; in regs_write() local
386 struct tb *tb = sw->tb; in port_sb_regs_write() local
419 struct tb *tb = rt->tb; in retimer_sb_regs_write() local
814 struct tb *tb = port->sw->tb; in margining_lanes_write() local
1226 struct tb *tb = sw->tb; in margining_run_write() local
2100 struct tb *tb = sw->tb; in port_regs_show() local
2204 struct tb *tb = sw->tb; in switch_regs_show() local
2256 struct tb *tb = sw->tb; in path_show() local
2319 struct tb *tb = sw->tb; in counters_show() local
2379 struct tb *tb = sw->tb; in port_sb_regs_show() local
[all …]
A Dtunnel.h75 struct tb *tb; member
112 struct tb_tunnel *tb_tunnel_discover_pci(struct tb *tb, struct tb_port *down,
114 struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up,
118 struct tb_tunnel *tb_tunnel_discover_dp(struct tb *tb, struct tb_port *in,
120 struct tb_tunnel *tb_tunnel_alloc_dp(struct tb *tb, struct tb_port *in,
125 struct tb_tunnel *tb_tunnel_alloc_dma(struct tb *tb, struct tb_port *nhi,
131 struct tb_tunnel *tb_tunnel_discover_usb3(struct tb *tb, struct tb_port *down,
133 struct tb_tunnel *tb_tunnel_alloc_usb3(struct tb *tb, struct tb_port *up,
215 void tb_tunnel_event(struct tb *tb, enum tb_tunnel_event event,
225 level(__tunnel->tb, "%llx:%u <-> %llx:%u (%s): " fmt, \
A Dusb4_port.c46 struct tb *tb = port->sw->tb; in link_show() local
49 if (mutex_lock_interruptible(&tb->lock)) in link_show()
61 mutex_unlock(&tb->lock); in link_show()
126 struct tb *tb; in usb4_usb3_port_match() local
133 tb = sw->tb; in usb4_usb3_port_match()
134 nhi = tb->nhi; in usb4_usb3_port_match()
164 struct tb *tb = port->sw->tb; in offline_store() local
174 if (mutex_lock_interruptible(&tb->lock)) { in offline_store()
201 mutex_unlock(&tb->lock); in offline_store()
215 struct tb *tb = port->sw->tb; in rescan_store() local
[all …]
A Dxdomain.c58 struct tb *tb; member
414 static int tb_xdp_properties_response(struct tb *tb, struct tb_ctl *ctl, in tb_xdp_properties_response() argument
732 struct tb *tb = xw->tb; in tb_xdp_handle_request() local
850 tb_domain_put(tb); in tb_xdp_handle_request()
854 tb_xdp_schedule_request(struct tb *tb, const struct tb_xdp_header *hdr, in tb_xdp_schedule_request() argument
869 xw->tb = tb_domain_get(tb); in tb_xdp_schedule_request()
1197 struct tb *tb = xd->tb; in tb_xdomain_get_uuid() local
1250 struct tb *tb = xd->tb; in tb_xdomain_get_link_status() local
1284 struct tb *tb = xd->tb; in tb_xdomain_link_state_change() local
1385 struct tb *tb = xd->tb; in tb_xdomain_get_properties() local
[all …]
A Dnhi.c967 struct tb *tb = pci_get_drvdata(pdev); in __nhi_suspend_noirq() local
992 struct tb *tb = pci_get_drvdata(pdev); in nhi_freeze_noirq() local
1000 struct tb *tb = pci_get_drvdata(pdev); in nhi_thaw_noirq() local
1047 struct tb *tb = pci_get_drvdata(pdev); in nhi_resume_noirq() local
1073 struct tb *tb = pci_get_drvdata(pdev); in nhi_suspend() local
1081 struct tb *tb = pci_get_drvdata(pdev); in nhi_complete() local
1097 struct tb *tb = pci_get_drvdata(pdev); in nhi_runtime_suspend() local
1116 struct tb *tb = pci_get_drvdata(pdev); in nhi_runtime_resume() local
1308 struct tb *tb; in nhi_select_cm() local
1333 struct tb *tb; in nhi_probe() local
[all …]
A Dnhi_ops.c27 struct tb *tb = pci_get_drvdata(nhi->pdev); in icl_nhi_is_device_connected() local
30 ret = device_for_each_child(&tb->root_switch->dev, NULL, in icl_nhi_is_device_connected()
124 struct tb *tb = pci_get_drvdata(nhi->pdev); in icl_nhi_suspend() local
130 if (tb_switch_is_icm(tb->root_switch)) { in icl_nhi_suspend()
147 struct tb *tb = pci_get_drvdata(nhi->pdev); in icl_nhi_suspend_noirq() local
153 if (!tb_switch_is_icm(tb->root_switch)) in icl_nhi_suspend_noirq()
A Dswitch.c444 static void tb_dump_port(struct tb *tb, const struct tb_port *port) in tb_dump_port() argument
448 tb_dbg(tb, in tb_dump_port()
1535 tb_dbg(tb, in tb_dump_switch()
2438 sw->tb = tb; in tb_switch_alloc()
2540 sw->tb = tb; in tb_switch_alloc_safe_mode()
2569 struct tb *tb = sw->tb; in tb_switch_configure() local
3681 struct tb *tb; member
3695 if (sw->tb != lookup->tb) in tb_switch_match()
3728 lookup.tb = tb; in tb_switch_find_by_link_depth()
3753 lookup.tb = tb; in tb_switch_find_by_uuid()
[all …]
/drivers/target/
A Dtarget_core_hba.c42 tb = kzalloc(sizeof(*tb), GFP_KERNEL); in transport_backend_register()
43 if (!tb) in transport_backend_register()
45 tb->ops = ops; in transport_backend_register()
52 kfree(tb); in transport_backend_register()
68 struct target_backend *tb; in target_backend_unregister() local
72 if (tb->ops == ops) { in target_backend_unregister()
73 list_del(&tb->list); in target_backend_unregister()
82 kfree(tb); in target_backend_unregister()
102 if (tb->ops->owner && !try_module_get(tb->ops->owner)) in core_get_backend()
103 tb = NULL; in core_get_backend()
[all …]
/drivers/net/wireless/ti/wlcore/
A Dtestmode.c67 if (!tb[WL1271_TM_ATTR_DATA]) in wl1271_tm_cmd_test()
70 buf = nla_data(tb[WL1271_TM_ATTR_DATA]); in wl1271_tm_cmd_test()
73 if (tb[WL1271_TM_ATTR_ANSWER]) in wl1271_tm_cmd_test()
147 if (!tb[WL1271_TM_ATTR_IE_ID]) in wl1271_tm_cmd_interrogate()
211 if (!tb[WL1271_TM_ATTR_DATA]) in wl1271_tm_cmd_configure()
213 if (!tb[WL1271_TM_ATTR_IE_ID]) in wl1271_tm_cmd_configure()
279 if (!tb[WL1271_TM_ATTR_PLT_MODE]) in wl1271_tm_cmd_set_plt_mode()
293 ret = wl1271_tm_detect_fem(wl, tb); in wl1271_tm_cmd_set_plt_mode()
362 if (!tb[WL1271_TM_ATTR_CMD_ID]) in wl1271_tm_cmd()
374 return wl1271_tm_cmd_test(wl, tb); in wl1271_tm_cmd()
[all …]
A Dvendor_cmd.c33 struct nlattr *tb[NUM_WLCORE_VENDOR_ATTR]; in wlcore_vendor_cmd_smart_config_start() local
41 ret = nla_parse_deprecated(tb, MAX_WLCORE_VENDOR_ATTR, data, data_len, in wlcore_vendor_cmd_smart_config_start()
46 if (!tb[WLCORE_VENDOR_ATTR_GROUP_ID]) in wlcore_vendor_cmd_smart_config_start()
61 nla_get_u32(tb[WLCORE_VENDOR_ATTR_GROUP_ID])); in wlcore_vendor_cmd_smart_config_start()
110 struct nlattr *tb[NUM_WLCORE_VENDOR_ATTR]; in wlcore_vendor_cmd_smart_config_set_group_key() local
118 ret = nla_parse_deprecated(tb, MAX_WLCORE_VENDOR_ATTR, data, data_len, in wlcore_vendor_cmd_smart_config_set_group_key()
123 if (!tb[WLCORE_VENDOR_ATTR_GROUP_ID] || in wlcore_vendor_cmd_smart_config_set_group_key()
124 !tb[WLCORE_VENDOR_ATTR_GROUP_KEY]) in wlcore_vendor_cmd_smart_config_set_group_key()
139 nla_get_u32(tb[WLCORE_VENDOR_ATTR_GROUP_ID]), in wlcore_vendor_cmd_smart_config_set_group_key()
140 nla_len(tb[WLCORE_VENDOR_ATTR_GROUP_KEY]), in wlcore_vendor_cmd_smart_config_set_group_key()
[all …]
/drivers/infiniband/core/
A Dnldev.c1151 if (tb[RDMA_NLDEV_NET_NS_FD]) { in nldev_set_doit()
1159 if (tb[RDMA_NLDEV_ATTR_DEV_DIM]) { in nldev_set_doit()
1489 if (ret || !tb[RDMA_NLDEV_ATTR_DEV_INDEX] || !fe->id || !tb[fe->id]) in res_get_common_doit()
1511 id = nla_get_u32(tb[fe->id]); in res_get_common_doit()
1771 !tb[RDMA_NLDEV_ATTR_LINK_TYPE] || !tb[RDMA_NLDEV_ATTR_NDEV_NAME]) in nldev_newlink()
2029 struct nlattr *tb[], in nldev_stat_set_mode_doit() argument
2209 !tb[RDMA_NLDEV_ATTR_DEV_INDEX] || !tb[RDMA_NLDEV_ATTR_PORT_INDEX] || in nldev_stat_del_doit()
2270 struct nlattr *tb[]) in stat_get_doit_default_counter() argument
2280 if (!tb[RDMA_NLDEV_ATTR_DEV_INDEX] || !tb[RDMA_NLDEV_ATTR_PORT_INDEX]) in stat_get_doit_default_counter()
2377 !tb[RDMA_NLDEV_ATTR_DEV_INDEX] || !tb[RDMA_NLDEV_ATTR_PORT_INDEX]) in stat_get_doit_qp()
[all …]
/drivers/net/wireless/mediatek/mt76/
A Dtestmode.c430 if (tb[MT76_TM_ATTR_RESET]) { in mt76_testmode_cmd()
437 if (tb[MT76_TM_ATTR_TX_COUNT]) in mt76_testmode_cmd()
440 if (tb[MT76_TM_ATTR_TX_RATE_IDX]) in mt76_testmode_cmd()
460 if (tb[MT76_TM_ATTR_TX_LENGTH]) { in mt76_testmode_cmd()
470 if (tb[MT76_TM_ATTR_TX_IPG]) in mt76_testmode_cmd()
473 if (tb[MT76_TM_ATTR_TX_TIME]) in mt76_testmode_cmd()
479 if (tb[MT76_TM_ATTR_STATE]) { in mt76_testmode_cmd()
487 if (tb[MT76_TM_ATTR_TX_POWER]) { in mt76_testmode_cmd()
522 if (tb[i]) in mt76_testmode_cmd()
526 if (tb[MT76_TM_ATTR_STATE]) in mt76_testmode_cmd()
[all …]
/drivers/net/wireless/ath/ath11k/
A Dtestmode.c196 const void **tb; in ath11k_tm_wmi_event_segmented() local
202 if (IS_ERR(tb)) { in ath11k_tm_wmi_event_segmented()
203 ret = PTR_ERR(tb); in ath11k_tm_wmi_event_segmented()
208 ev = tb[WMI_TAG_ARRAY_BYTE]; in ath11k_tm_wmi_event_segmented()
211 kfree(tb); in ath11k_tm_wmi_event_segmented()
220 kfree(tb); in ath11k_tm_wmi_event_segmented()
313 if (!tb[ATH_TM_ATTR_DATA]) { in ath11k_tm_cmd_wmi()
318 if (!tb[ATH_TM_ATTR_WMI_CMDID]) { in ath11k_tm_cmd_wmi()
323 buf = nla_data(tb[ATH_TM_ATTR_DATA]); in ath11k_tm_cmd_wmi()
412 if (!tb[ATH_TM_ATTR_DATA]) { in ath11k_tm_cmd_wmi_ftm()
[all …]
/drivers/net/wireless/ath/ath12k/
A Dtestmode.c223 if (!tb[ATH_TM_ATTR_DATA]) in ath12k_tm_cmd_process_ftm()
226 buf = nla_data(tb[ATH_TM_ATTR_DATA]); in ath12k_tm_cmd_process_ftm()
227 buf_len = nla_len(tb[ATH_TM_ATTR_DATA]); in ath12k_tm_cmd_process_ftm()
309 if (!tb[ATH_TM_ATTR_DATA]) in ath12k_tm_cmd_wmi()
312 if (!tb[ATH_TM_ATTR_WMI_CMDID]) in ath12k_tm_cmd_wmi()
315 buf = nla_data(tb[ATH_TM_ATTR_DATA]); in ath12k_tm_cmd_wmi()
316 buf_len = nla_len(tb[ATH_TM_ATTR_DATA]); in ath12k_tm_cmd_wmi()
359 struct nlattr *tb[ATH_TM_ATTR_MAX + 1]; in ath12k_tm_cmd() local
371 if (!tb[ATH_TM_ATTR_CMD]) in ath12k_tm_cmd()
384 return ath12k_tm_cmd_wmi(ar, tb); in ath12k_tm_cmd()
[all …]
/drivers/net/wireless/ath/ath10k/
A Dwmi-tlv.c148 tb = kcalloc(WMI_TLV_TAG_MAX, sizeof(*tb), gfp); in ath10k_wmi_tlv_parse_alloc()
149 if (!tb) in ath10k_wmi_tlv_parse_alloc()
154 kfree(tb); in ath10k_wmi_tlv_parse_alloc()
158 return tb; in ath10k_wmi_tlv_parse_alloc()
187 kfree(tb); in ath10k_wmi_tlv_event_bcn_tx_status()
212 kfree(tb); in ath10k_wmi_tlv_event_bcn_tx_status()
299 kfree(tb); in ath10k_wmi_tlv_op_pull_peer_stats_info()
370 kfree(tb); in ath10k_wmi_tlv_event_diag_data()
398 kfree(tb); in ath10k_wmi_tlv_event_diag()
432 kfree(tb); in ath10k_wmi_tlv_event_p2p_noa()
[all …]
A Dtestmode.c385 if (!tb[ATH10K_TM_ATTR_DATA]) { in ath10k_tm_cmd_wmi()
390 if (!tb[ATH10K_TM_ATTR_WMI_CMDID]) { in ath10k_tm_cmd_wmi()
395 buf = nla_data(tb[ATH10K_TM_ATTR_DATA]); in ath10k_tm_cmd_wmi()
396 buf_len = nla_len(tb[ATH10K_TM_ATTR_DATA]); in ath10k_tm_cmd_wmi()
431 struct nlattr *tb[ATH10K_TM_ATTR_MAX + 1]; in ath10k_tm_cmd() local
439 if (!tb[ATH10K_TM_ATTR_CMD]) in ath10k_tm_cmd()
442 switch (nla_get_u32(tb[ATH10K_TM_ATTR_CMD])) { in ath10k_tm_cmd()
444 return ath10k_tm_cmd_get_version(ar, tb); in ath10k_tm_cmd()
446 return ath10k_tm_cmd_utf_start(ar, tb); in ath10k_tm_cmd()
448 return ath10k_tm_cmd_utf_stop(ar, tb); in ath10k_tm_cmd()
[all …]
/drivers/net/wireless/ath/wcn36xx/
A Dtestmode.c44 struct nlattr *tb[]) in wcn36xx_tm_cmd_ptt() argument
51 if (!tb[WCN36XX_TM_ATTR_DATA]) in wcn36xx_tm_cmd_ptt()
54 buf = nla_data(tb[WCN36XX_TM_ATTR_DATA]); in wcn36xx_tm_cmd_ptt()
55 buf_len = nla_len(tb[WCN36XX_TM_ATTR_DATA]); in wcn36xx_tm_cmd_ptt()
130 struct nlattr *tb[WCN36XX_TM_ATTR_MAX + 1]; in wcn36xx_tm_cmd() local
135 ret = nla_parse_deprecated(tb, WCN36XX_TM_ATTR_MAX, data, len, in wcn36xx_tm_cmd()
140 if (!tb[WCN36XX_TM_ATTR_CMD]) in wcn36xx_tm_cmd()
143 attr = nla_get_u16(tb[WCN36XX_TM_ATTR_CMD]); in wcn36xx_tm_cmd()
148 return wcn36xx_tm_cmd_ptt(wcn, vif, tb); in wcn36xx_tm_cmd()
/drivers/net/wireless/ath/ath6kl/
A Dtestmode.c73 struct nlattr *tb[ATH6KL_TM_ATTR_MAX + 1]; in ath6kl_tm_cmd() local
77 err = nla_parse_deprecated(tb, ATH6KL_TM_ATTR_MAX, data, len, in ath6kl_tm_cmd()
82 if (!tb[ATH6KL_TM_ATTR_CMD]) in ath6kl_tm_cmd()
85 switch (nla_get_u32(tb[ATH6KL_TM_ATTR_CMD])) { in ath6kl_tm_cmd()
87 if (!tb[ATH6KL_TM_ATTR_DATA]) in ath6kl_tm_cmd()
90 buf = nla_data(tb[ATH6KL_TM_ATTR_DATA]); in ath6kl_tm_cmd()
91 buf_len = nla_len(tb[ATH6KL_TM_ATTR_DATA]); in ath6kl_tm_cmd()
/drivers/acpi/
A Dspcr.c50 static bool xgene_8250_erratum_present(struct acpi_table_spcr *tb) in xgene_8250_erratum_present() argument
54 if (tb->interface_type != ACPI_DBG2_16550_COMPATIBLE) in xgene_8250_erratum_present()
57 if (memcmp(tb->header.oem_id, "APMC0D", ACPI_OEM_ID_SIZE) && in xgene_8250_erratum_present()
58 memcmp(tb->header.oem_id, "HPE ", ACPI_OEM_ID_SIZE)) in xgene_8250_erratum_present()
61 if (!memcmp(tb->header.oem_table_id, "XGENESPC", in xgene_8250_erratum_present()
62 ACPI_OEM_TABLE_ID_SIZE) && tb->header.oem_revision == 0) in xgene_8250_erratum_present()
65 if (!memcmp(tb->header.oem_table_id, "ProLiant", in xgene_8250_erratum_present()
66 ACPI_OEM_TABLE_ID_SIZE) && tb->header.oem_revision == 1) in xgene_8250_erratum_present()
/drivers/base/regmap/
A Dregmap-spi-avmm.c253 tb = br->trans_buf; in br_pkt_phy_tx_prepare()
254 tb_end = tb + br->trans_len; in br_pkt_phy_tx_prepare()
269 *pb = *tb++ ^ 0x20; in br_pkt_phy_tx_prepare()
285 switch (*tb) { in br_pkt_phy_tx_prepare()
299 *pb = *tb++; in br_pkt_phy_tx_prepare()
305 if (tb < tb_end) in br_pkt_phy_tx_prepare()
371 while (tb < tb_limit) { in br_do_rx_and_pkt_phy_parse()
383 if (!tb && pb[i] != PKT_SOP) in br_do_rx_and_pkt_phy_parse()
412 tb = br->trans_buf; in br_do_rx_and_pkt_phy_parse()
446 *tb++ = pb[i] ^ 0x20; in br_do_rx_and_pkt_phy_parse()
[all …]
/drivers/tty/
A Dtty_buffer.c310 struct tty_buffer *tb = port->buf.tail; in __tty_insert_flip_string_flags() local
315 memcpy(char_buf_ptr(tb, tb->used), chars, space); in __tty_insert_flip_string_flags()
318 memcpy(flag_buf_ptr(tb, tb->used), flags, space); in __tty_insert_flip_string_flags()
320 } else if (tb->flags) { in __tty_insert_flip_string_flags()
321 memset(flag_buf_ptr(tb, tb->used), flags[0], space); in __tty_insert_flip_string_flags()
327 tb->used += space; in __tty_insert_flip_string_flags()
359 struct tty_buffer *tb = port->buf.tail; in tty_prepare_flip_string() local
361 *chars = char_buf_ptr(tb, tb->used); in tty_prepare_flip_string()
362 if (tb->flags) in tty_prepare_flip_string()
363 memset(flag_buf_ptr(tb, tb->used), TTY_NORMAL, space); in tty_prepare_flip_string()
[all …]

Completed in 109 milliseconds

12345