Lines Matching refs:base_dev

66 	struct ib_device *base_dev = &sdev->base_dev;  in siw_device_register()  local
72 rv = ib_register_device(base_dev, name, NULL); in siw_device_register()
78 siw_dbg(base_dev, "HWaddr=%pM\n", sdev->raw_gid); in siw_device_register()
82 static void siw_device_cleanup(struct ib_device *base_dev) in siw_device_cleanup() argument
84 struct siw_device *sdev = to_siw_dev(base_dev); in siw_device_cleanup()
198 siw_dbg(&sdev->base_dev, in siw_get_tx_cpu()
215 static struct ib_qp *siw_get_base_qp(struct ib_device *base_dev, int id) in siw_get_base_qp() argument
217 struct siw_qp *qp = siw_qp_id2obj(to_siw_dev(base_dev), id); in siw_get_base_qp()
284 struct ib_device *base_dev; in siw_device_create() local
287 sdev = ib_alloc_device(siw_device, base_dev); in siw_device_create()
291 base_dev = &sdev->base_dev; in siw_device_create()
304 addrconf_addr_eui48((u8 *)&base_dev->node_guid, sdev->raw_gid); in siw_device_create()
306 base_dev->uverbs_cmd_mask |= BIT_ULL(IB_USER_VERBS_CMD_POST_SEND); in siw_device_create()
308 base_dev->node_type = RDMA_NODE_RNIC; in siw_device_create()
309 memcpy(base_dev->node_desc, SIW_NODE_DESC_COMMON, in siw_device_create()
317 base_dev->phys_port_cnt = 1; in siw_device_create()
318 base_dev->num_comp_vectors = num_possible_cpus(); in siw_device_create()
323 ib_set_device_ops(base_dev, &siw_device_ops); in siw_device_create()
324 rv = ib_device_set_netdev(base_dev, netdev, 1); in siw_device_create()
328 memcpy(base_dev->iw_ifname, netdev->name, in siw_device_create()
329 sizeof(base_dev->iw_ifname)); in siw_device_create()
332 base_dev->iw_driver_flags = IW_F_NO_PORT_MAP; in siw_device_create()
364 ib_dealloc_device(base_dev); in siw_device_create()
391 ib_device_put(&sdev->base_dev); in siw_netdev_down()
396 if (ib_device_try_get(&sdev->base_dev)) { in siw_device_goes_down()
406 struct ib_device *base_dev; in siw_netdev_event() local
411 base_dev = ib_device_get_by_netdev(netdev, RDMA_DRIVER_SIW); in siw_netdev_event()
412 if (!base_dev) in siw_netdev_event()
415 sdev = to_siw_dev(base_dev); in siw_netdev_event()
438 siw_dbg(base_dev, "unexpected NETDEV_REGISTER event\n"); in siw_netdev_event()
442 ib_unregister_device_queued(&sdev->base_dev); in siw_netdev_event()
458 ib_device_put(&sdev->base_dev); in siw_netdev_event()
469 struct ib_device *base_dev; in siw_newlink() local
476 base_dev = ib_device_get_by_netdev(netdev, RDMA_DRIVER_SIW); in siw_newlink()
477 if (base_dev) { in siw_newlink()
478 ib_device_put(base_dev); in siw_newlink()
492 ib_dealloc_device(&sdev->base_dev); in siw_newlink()