/drivers/thunderbolt/ |
H A D | tb.c | 11 #include "tb.h" 52 sw = tb_switch_alloc(port->sw->tb, tb_downstream_route(port)); 63 static void tb_free_invalid_tunnels(struct tb *tb) argument 67 list_for_each_entry_safe(tunnel, n, &tb->tunnel_list, list) 143 static void tb_activate_pcie_devices(struct tb *tb) argument 153 for (i = 1; i <= tb->root_switch->config.max_port_number; i++) { 154 if (tb_is_upstream_port(&tb->root_switch->ports[i])) 156 if (tb 205 struct tb *tb; member in struct:tb_hotplug_event 219 struct tb *tb = ev->tb; local 287 struct tb *tb = data; local 306 thunderbolt_shutdown_and_free(struct tb *tb) argument 351 struct tb *tb; local 398 thunderbolt_suspend(struct tb *tb) argument 409 thunderbolt_resume(struct tb *tb) argument [all...] |
H A D | tunnel_pci.h | 10 #include "tb.h" 13 struct tb *tb; member in struct:tb_pci_tunnel 21 struct tb_pci_tunnel *tb_pci_alloc(struct tb *tb, struct tb_port *up,
|
H A D | tb.h | 21 struct tb *tb; member in struct:tb_switch 80 struct tb *tb; member in struct:tb_path 97 * struct tb - main thunderbolt bus structure 99 struct tb { struct 143 return tb_cfg_read(sw->tb->ctl, 155 return tb_cfg_write(sw->tb->ctl, 167 return tb_cfg_read(port->sw->tb->ctl, 179 return tb_cfg_write(port->sw->tb [all...] |
H A D | switch.c | 10 #include "tb.h" 43 static void tb_dump_port(struct tb *tb, struct tb_regs_port_header *port) argument 45 tb_info(tb, 50 tb_info(tb, " Max hop id (in/out): %d/%d\n", 52 tb_info(tb, " Max counters: %d\n", port->max_counters); 53 tb_info(tb, " NFC Credits: %#x\n", port->nfc_credits); 203 tb_dump_port(port->sw->tb, &port->config); 212 static void tb_dump_switch(struct tb *tb, struc argument 235 tb_switch_reset(struct tb *tb, u64 route) argument 339 tb_switch_alloc(struct tb *tb, u64 route) argument [all...] |
H A D | Makefile | 2 thunderbolt-objs := nhi.o ctl.o tb.o switch.o cap.o path.o tunnel_pci.o eeprom.o
|
H A D | path.c | 10 #include "tb.h" 35 struct tb_path *tb_path_alloc(struct tb *tb, int num_hops) argument 45 path->tb = tb; 56 tb_WARN(path->tb, "trying to free an activated path\n") 93 tb_WARN(path->tb, "trying to deactivate an inactive path\n"); 96 tb_info(path->tb, 120 tb_WARN(path->tb, "trying to activate already activated path\n"); 124 tb_info(path->tb, [all...] |
H A D | tunnel_pci.c | 11 #include "tb.h" 16 level(__tunnel->tb, "%llx:%x <-> %llx:%x (PCI): " fmt, \ 58 struct tb_pci_tunnel *tb_pci_alloc(struct tb *tb, struct tb_port *up, argument 64 tunnel->tb = tb; 68 tunnel->path_to_up = tb_path_alloc(up->sw->tb, 2); 71 tunnel->path_to_down = tb_path_alloc(up->sw->tb, 2); 208 list_add(&tunnel->list, &tunnel->tb->tunnel_list);
|
H A D | nhi.c | 20 #include "tb.h" 499 struct tb *tb = pci_get_drvdata(pdev); local 500 thunderbolt_suspend(tb); 507 struct tb *tb = pci_get_drvdata(pdev); local 508 thunderbolt_resume(tb); 538 struct tb *tb; local 596 tb 612 struct tb *tb = pci_get_drvdata(pdev); local [all...] |
/drivers/iio/common/st_sensors/ |
H A D | st_sensors_spi.c | 29 static int st_sensors_spi_read(struct st_sensor_transfer_buffer *tb, argument 36 .tx_buf = tb->tx_buf, 41 .rx_buf = tb->rx_buf, 47 mutex_lock(&tb->buf_lock); 49 tb->tx_buf[0] = reg_addr | ST_SENSORS_SPI_MULTIREAD; 51 tb->tx_buf[0] = reg_addr | ST_SENSORS_SPI_READ; 57 memcpy(data, tb->rx_buf, len*sizeof(u8)); 58 mutex_unlock(&tb->buf_lock); 62 mutex_unlock(&tb->buf_lock); 66 static int st_sensors_spi_read_byte(struct st_sensor_transfer_buffer *tb, argument 72 st_sensors_spi_read_multiple_byte( struct st_sensor_transfer_buffer *tb, struct device *dev, u8 reg_addr, int len, u8 *data, bool multiread_bit) argument 79 st_sensors_spi_write_byte(struct st_sensor_transfer_buffer *tb, struct device *dev, u8 reg_addr, u8 data) argument [all...] |
H A D | st_sensors_i2c.c | 29 static int st_sensors_i2c_read_byte(struct st_sensor_transfer_buffer *tb, argument 45 struct st_sensor_transfer_buffer *tb, struct device *dev, 55 static int st_sensors_i2c_write_byte(struct st_sensor_transfer_buffer *tb, argument 44 st_sensors_i2c_read_multiple_byte( struct st_sensor_transfer_buffer *tb, struct device *dev, u8 reg_addr, int len, u8 *data, bool multiread_bit) argument
|
H A D | st_sensors_buffer.c | 48 len = sdata->tf->read_multiple_byte(&sdata->tb, sdata->dev, 53 len = sdata->tf->read_multiple_byte(&sdata->tb, 65 len = sdata->tf->read_multiple_byte(&sdata->tb, 85 len = sdata->tf->read_multiple_byte(&sdata->tb, sdata->dev,
|
/drivers/net/wireless/ath/ath6kl/ |
H A D | testmode.c | 73 struct nlattr *tb[ATH6KL_TM_ATTR_MAX + 1]; local 77 err = nla_parse(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]);
|
/drivers/block/drbd/ |
H A D | drbd_nla.h | 4 extern int drbd_nla_parse_nested(struct nlattr *tb[], int maxtype, struct nlattr *nla,
|
H A D | drbd_nla.c | 30 int drbd_nla_parse_nested(struct nlattr *tb[], int maxtype, struct nlattr *nla, argument 37 err = nla_parse_nested(tb, maxtype, nla, policy);
|
/drivers/net/wireless/ti/wlcore/ |
H A D | testmode.c | 72 static int wl1271_tm_cmd_test(struct wl1271 *wl, struct nlattr *tb[]) argument 81 if (!tb[WL1271_TM_ATTR_DATA]) 84 buf = nla_data(tb[WL1271_TM_ATTR_DATA]); 85 buf_len = nla_len(tb[WL1271_TM_ATTR_DATA]); 87 if (tb[WL1271_TM_ATTR_ANSWER]) 88 answer = nla_get_u8(tb[WL1271_TM_ATTR_ANSWER]); 151 static int wl1271_tm_cmd_interrogate(struct wl1271 *wl, struct nlattr *tb[]) argument 160 if (!tb[WL1271_TM_ATTR_IE_ID]) 163 ie_id = nla_get_u8(tb[WL1271_TM_ATTR_IE_ID]); 215 static int wl1271_tm_cmd_configure(struct wl1271 *wl, struct nlattr *tb[]) argument 247 wl1271_tm_detect_fem(struct wl1271 *wl, struct nlattr *tb[]) argument 284 wl1271_tm_cmd_set_plt_mode(struct wl1271 *wl, struct nlattr *tb[]) argument 315 wl12xx_tm_cmd_get_mac(struct wl1271 *wl, struct nlattr *tb[]) argument 365 struct nlattr *tb[WL1271_TM_ATTR_MAX + 1]; local [all...] |
H A D | vendor_cmd.c | 35 struct nlattr *tb[NUM_WLCORE_VENDOR_ATTR]; local 43 ret = nla_parse(tb, MAX_WLCORE_VENDOR_ATTR, data, data_len, 48 if (!tb[WLCORE_VENDOR_ATTR_GROUP_ID]) 63 nla_get_u32(tb[WLCORE_VENDOR_ATTR_GROUP_ID])); 110 struct nlattr *tb[NUM_WLCORE_VENDOR_ATTR]; local 118 ret = nla_parse(tb, MAX_WLCORE_VENDOR_ATTR, data, data_len, 123 if (!tb[WLCORE_VENDOR_ATTR_GROUP_ID] || 124 !tb[WLCORE_VENDOR_ATTR_GROUP_KEY]) 139 nla_get_u32(tb[WLCORE_VENDOR_ATTR_GROUP_ID]), 140 nla_len(tb[WLCORE_VENDOR_ATTR_GROUP_KE [all...] |
/drivers/net/wireless/ath/ath10k/ |
H A D | testmode.c | 110 static int ath10k_tm_cmd_get_version(struct ath10k *ar, struct nlattr *tb[]) argument 142 static int ath10k_tm_cmd_utf_start(struct ath10k *ar, struct nlattr *tb[]) argument 260 static int ath10k_tm_cmd_utf_stop(struct ath10k *ar, struct nlattr *tb[]) argument 284 static int ath10k_tm_cmd_wmi(struct ath10k *ar, struct nlattr *tb[]) argument 298 if (!tb[ATH10K_TM_ATTR_DATA]) { 303 if (!tb[ATH10K_TM_ATTR_WMI_CMDID]) { 308 buf = nla_data(tb[ATH10K_TM_ATTR_DATA]); 309 buf_len = nla_len(tb[ATH10K_TM_ATTR_DATA]); 310 cmd_id = nla_get_u32(tb[ATH10K_TM_ATTR_WMI_CMDID]); 344 struct nlattr *tb[ATH10K_TM_ATTR_MA local [all...] |
/drivers/tty/ |
H A D | tty_buffer.c | 302 struct tty_buffer *tb = port->buf.tail; local 305 memcpy(char_buf_ptr(tb, tb->used), chars, space); 306 if (~tb->flags & TTYB_NORMAL) 307 memset(flag_buf_ptr(tb, tb->used), flag, space); 308 tb->used += space; 337 struct tty_buffer *tb = port->buf.tail; local 340 memcpy(char_buf_ptr(tb, tb 389 struct tty_buffer *tb = port->buf.tail; local [all...] |
/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_netlink.c | 68 struct nlattr *tb[], struct nlattr *data[]) 96 struct nlattr *tb[], struct nlattr *data[]) 103 if (!tb[IFLA_LINK]) 106 pdev = __dev_get_by_index(src_net, nla_get_u32(tb[IFLA_LINK])); 135 err = ipoib_changelink(dev, tb, data); 67 ipoib_changelink(struct net_device *dev, struct nlattr *tb[], struct nlattr *data[]) argument 95 ipoib_new_child_link(struct net *src_net, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[]) argument
|
/drivers/net/ |
H A D | dummy.c | 141 static int dummy_validate(struct nlattr *tb[], struct nlattr *data[]) argument 143 if (tb[IFLA_ADDRESS]) { 144 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) 146 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS])))
|
H A D | veth.c | 313 static int veth_validate(struct nlattr *tb[], struct nlattr *data[]) argument 315 if (tb[IFLA_ADDRESS]) { 316 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) 318 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) 321 if (tb[IFLA_MTU]) { 322 if (!is_valid_veth_mtu(nla_get_u32(tb[IFLA_MTU]))) 331 struct nlattr *tb[], struct nlattr *data[]) 363 tbp = tb; 410 if (tb[IFLA_ADDRESS] == NULL) 413 if (tb[IFLA_IFNAM 330 veth_newlink(struct net *src_net, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[]) argument [all...] |
H A D | ifb.c | 245 static int ifb_validate(struct nlattr *tb[], struct nlattr *data[]) argument 247 if (tb[IFLA_ADDRESS]) { 248 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) 250 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS])))
|
/drivers/staging/lustre/lnet/lnet/ |
H A D | config.c | 906 lnet_text_buf_t *tb; local 916 tb = list_entry(nets->next, lnet_text_buf_t, ltb_list); 919 sep = strchr(tb->ltb_text, ','); 920 bracket = strchr(tb->ltb_text, '('); 927 offset2 = offset + (int)(bracket - tb->ltb_text); 944 net = lnet_netspec2net(tb->ltb_text); 947 strlen(tb->ltb_text)); 954 if (tb2 == tb) 960 strlen(tb->ltb_text)); 968 offset += (int)(sep - tb 991 lnet_text_buf_t *tb; local [all...] |
/drivers/net/fddi/skfp/ |
H A D | fplustm.c | 1065 struct s_fpmc *tb ; local 1080 for (i = 0, tb = smc->hw.fp.mc.table ; i < FPMAX_MULTICAST ; i++, tb++){ 1081 if (!tb->n) { /* not used */ 1083 slot = tb ; 1086 if (!ether_addr_equal((char *)&tb->a, (char *)own)) 1088 return tb; 1106 struct s_fpmc *tb ; local 1111 for (i = 0, tb = smc->hw.fp.mc.table ; i < FPMAX_MULTICAST ; i++, tb 1149 struct s_fpmc *tb ; local 1202 struct s_fpmc *tb ; local [all...] |
/drivers/net/bonding/ |
H A D | bond_netlink.c | 103 static int bond_validate(struct nlattr *tb[], struct nlattr *data[]) argument 105 if (tb[IFLA_ADDRESS]) { 106 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) 108 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) 116 struct nlattr *tb[], struct nlattr *data[]) 142 struct nlattr *tb[], struct nlattr *data[]) 386 struct nlattr *tb[], struct nlattr *data[]) 390 err = bond_changelink(bond_dev, tb, data); 114 bond_slave_changelink(struct net_device *bond_dev, struct net_device *slave_dev, struct nlattr *tb[], struct nlattr *data[]) argument 141 bond_changelink(struct net_device *bond_dev, struct nlattr *tb[], struct nlattr *data[]) argument 385 bond_newlink(struct net *src_net, struct net_device *bond_dev, struct nlattr *tb[], struct nlattr *data[]) argument
|