Lines Matching refs:config

157 		     port->config.nfc_credits,  in tb_port_add_nfc_credits()
158 port->config.nfc_credits + credits); in tb_port_add_nfc_credits()
159 port->config.nfc_credits += credits; in tb_port_add_nfc_credits()
160 return tb_port_write(port, &port->config.nfc_credits, in tb_port_add_nfc_credits()
189 res = tb_port_read(port, &port->config, TB_CFG_PORT, 0, 8); in tb_init_port()
194 if (port->config.type == TB_TYPE_PORT && port->port != 0) { in tb_init_port()
203 tb_dump_port(port->sw->tb, &port->config); in tb_init_port()
262 if (next_port > sw->config.max_port_number) in get_switch_at_route()
284 sw->config.plug_events_delay = 0xff; in tb_plug_events_active()
285 res = tb_sw_write(sw, ((u32 *) &sw->config) + 4, TB_CFG_SWITCH, 4, 1); in tb_plug_events_active()
295 switch (sw->config.device_id) { in tb_plug_events_active()
318 for (i = 1; i <= sw->config.max_port_number; i++) { in tb_switch_free()
353 if (tb_cfg_read(tb->ctl, &sw->config, route, 0, 2, 0, 5)) in tb_switch_alloc()
359 tb_dump_switch(tb, &sw->config); in tb_switch_alloc()
362 sw->config.upstream_port_number = upstream_port; in tb_switch_alloc()
363 sw->config.depth = tb_route_length(route); in tb_switch_alloc()
364 sw->config.route_lo = route; in tb_switch_alloc()
365 sw->config.route_hi = route >> 32; in tb_switch_alloc()
366 sw->config.enabled = 1; in tb_switch_alloc()
369 if (sw->config.vendor_id != 0x8086) in tb_switch_alloc()
371 sw->config.vendor_id); in tb_switch_alloc()
373 if (sw->config.device_id != 0x1547 && sw->config.device_id != 0x1549) in tb_switch_alloc()
375 sw->config.device_id); in tb_switch_alloc()
378 if (tb_sw_write(sw, 1 + (u32 *) &sw->config, TB_CFG_SWITCH, 1, 3)) in tb_switch_alloc()
382 sw->ports = kcalloc(sw->config.max_port_number + 1, sizeof(*sw->ports), in tb_switch_alloc()
387 for (i = 0; i <= sw->config.max_port_number; i++) { in tb_switch_alloc()
405 for (i = 0; i <= sw->config.max_port_number; i++) { in tb_switch_alloc()
442 for (i = 0; i <= sw->config.max_port_number; i++) { in tb_sw_set_unpplugged()
467 err = tb_sw_write(sw, 1 + (u32 *) &sw->config, TB_CFG_SWITCH, 1, 3); in tb_switch_resume()
476 for (i = 1; i <= sw->config.max_port_number; i++) { in tb_switch_resume()
499 for (i = 1; i <= sw->config.max_port_number; i++) { in tb_switch_suspend()