Home
last modified time | relevance | path

Searched refs:ldev (Results 1 – 25 of 81) sorted by relevance

1234

/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/lag/
A Dlag.c252 ldev = kzalloc(sizeof(*ldev), GFP_KERNEL); in mlx5_lag_dev_alloc()
611 mlx5_infer_tx_affinity_mapping(tracker, ldev->ports, ldev->buckets, ldev->v2p_map); in mlx5_activate_lag()
1310 res = ldev && __mlx5_lag_is_roce(ldev); in mlx5_lag_is_roce()
1325 res = ldev && __mlx5_lag_is_active(ldev); in mlx5_lag_is_active()
1356 res = ldev && __mlx5_lag_is_active(ldev) && in mlx5_lag_is_master()
1372 res = ldev && __mlx5_lag_is_sriov(ldev); in mlx5_lag_is_sriov()
1437 if (!(ldev && __mlx5_lag_is_roce(ldev))) in mlx5_lag_get_roce_netdev()
1445 ndev = ldev->pf[ldev->ports - 1].netdev; in mlx5_lag_get_roce_netdev()
1469 if (!(ldev && __mlx5_lag_is_roce(ldev))) in mlx5_lag_get_slave_port()
1479 port = ldev->v2p_map[port * ldev->buckets]; in mlx5_lag_get_slave_port()
[all …]
A Ddebugfs.c8 switch (ldev->mode) { in get_str_mode_type()
22 struct mlx5_lag *ldev; in type_show() local
25 ldev = mlx5_lag_dev(dev); in type_show()
26 mutex_lock(&ldev->lock); in type_show()
40 struct mlx5_lag *ldev; in port_sel_mode_show() local
45 mutex_lock(&ldev->lock); in port_sel_mode_show()
47 mode = mlx5_get_str_port_sel_mode(ldev->mode, ldev->mode_flags); in port_sel_mode_show()
61 struct mlx5_lag *ldev; in state_show() local
76 struct mlx5_lag *ldev; in flags_show() local
105 struct mlx5_lag *ldev; in mapping_show() local
[all …]
A Dmpesw.c19 dev = ldev->pf[i].dev; in mlx5_mpesw_metadata_cleanup()
40 dev = ldev->pf[i].dev; in mlx5_mpesw_metadata_set()
56 dev = ldev->pf[i].dev; in mlx5_mpesw_metadata_set()
108 mlx5_deactivate_lag(ldev); in enable_mpesw()
121 mlx5_disable_lag(ldev); in disable_mpesw()
131 mutex_lock(&ldev->lock); in mlx5_mpesw_work()
140 disable_mpesw(ldev); in mlx5_mpesw_work()
142 mutex_unlock(&ldev->lock); in mlx5_mpesw_work()
154 if (!ldev) in mlx5_lag_mpesw_queue_work()
164 work->lag = ldev; in mlx5_lag_mpesw_queue_work()
[all …]
A Dmp.c19 if (!mlx5_lag_is_ready(ldev)) in mlx5_lag_multipath_check_prereq()
22 if (__mlx5_lag_is_active(ldev) && !__mlx5_lag_is_multipath(ldev)) in mlx5_lag_multipath_check_prereq()
26 ldev->pf[MLX5_LAG_P2].dev); in mlx5_lag_multipath_check_prereq()
33 return ldev && __mlx5_lag_is_multipath(ldev); in mlx5_lag_is_multipath()
51 if (!__mlx5_lag_is_multipath(ldev)) in mlx5_lag_set_port_affinity()
89 mlx5_modify_lag(ldev, &tracker); in mlx5_lag_set_port_affinity()
109 struct mlx5_lag *ldev; member
199 tracker = ldev->tracker; in mlx5_lag_fib_route_event()
236 struct mlx5_lag *ldev = fib_work->ldev; in mlx5_lag_fib_update() local
273 fib_work->ldev = ldev; in mlx5_lag_init_fib_work()
[all …]
A Dport_sel.c51 ft_attr.max_fte = ldev->ports * ldev->buckets; in mlx5_lag_create_port_sel_table()
77 for (i = 0; i < ldev->ports; i++) { in mlx5_lag_create_port_sel_table()
78 for (j = 0; j < ldev->buckets; j++) { in mlx5_lag_create_port_sel_table()
81 idx = i * ldev->buckets + j; in mlx5_lag_create_port_sel_table()
347 idx = i * ldev->buckets + j; in mlx5_lag_destroy_definer()
364 mlx5_lag_destroy_definer(ldev, in mlx5_lag_destroy_definers()
367 mlx5_lag_destroy_definer(ldev, in mlx5_lag_destroy_definers()
405 mlx5_lag_destroy_definers(ldev); in mlx5_lag_create_definers()
557 mlx5_lag_destroy_definers(ldev); in mlx5_lag_port_sel_create()
576 idx = i * ldev->buckets + j; in __mlx5_lag_modify_definers_destinations()
[all …]
A Dlag.h94 __mlx5_lag_is_active(struct mlx5_lag *ldev) in __mlx5_lag_is_active() argument
96 return ldev->mode != MLX5_LAG_MODE_NONE; in __mlx5_lag_is_active()
100 mlx5_lag_is_ready(struct mlx5_lag *ldev) in mlx5_lag_is_ready() argument
105 bool mlx5_lag_check_prereq(struct mlx5_lag *ldev);
106 void mlx5_modify_lag(struct mlx5_lag *ldev,
108 int mlx5_activate_lag(struct mlx5_lag *ldev,
112 int mlx5_lag_dev_get_netdev_idx(struct mlx5_lag *ldev,
122 void mlx5_disable_lag(struct mlx5_lag *ldev);
123 void mlx5_lag_remove_devices(struct mlx5_lag *ldev);
124 int mlx5_deactivate_lag(struct mlx5_lag *ldev);
[all …]
/linux-6.3-rc2/drivers/gpu/drm/stm/
A Dltdc.c727 ldev->fifo_err++; in ltdc_irq_thread()
729 ldev->fifo_warn++; in ltdc_irq_thread()
745 ldev->irq_status = readl_relaxed(ldev->regs + LTDC_ISR); in ltdc_irq()
746 writel_relaxed(ldev->irq_status, ldev->regs + LTDC_ICR); in ltdc_irq()
825 ldev->fifo_err = 0; in ltdc_crtc_atomic_disable()
826 ldev->fifo_warn = 0; in ltdc_crtc_atomic_disable()
1497 if (ldev->fifo_warn >= ldev->fifo_threshold) { in ltdc_plane_atomic_update()
1678 if (ldev->caps.crc) in ltdc_crtc_init()
1744 regmap_write(ldev->regmap, LTDC_FUT, ldev->fifo_threshold); in ltdc_encoder_enable()
1818 regmap_read(ldev->regmap, LTDC_IDR, &ldev->caps.hw_version); in ltdc_get_caps()
[all …]
/linux-6.3-rc2/drivers/virtio/
A Dvirtio_pci_legacy_dev.c16 int vp_legacy_probe(struct virtio_pci_legacy_device *ldev) in vp_legacy_probe() argument
18 struct pci_dev *pci_dev = ldev->pci_dev; in vp_legacy_probe()
47 ldev->ioaddr = pci_iomap(pci_dev, 0, 0); in vp_legacy_probe()
48 if (!ldev->ioaddr) { in vp_legacy_probe()
53 ldev->isr = ldev->ioaddr + VIRTIO_PCI_ISR; in vp_legacy_probe()
55 ldev->id.vendor = pci_dev->subsystem_vendor; in vp_legacy_probe()
56 ldev->id.device = pci_dev->subsystem_device; in vp_legacy_probe()
71 struct pci_dev *pci_dev = ldev->pci_dev; in vp_legacy_remove()
73 pci_iounmap(pci_dev, ldev->ioaddr); in vp_legacy_remove()
123 return ioread8(ldev->ioaddr + VIRTIO_PCI_STATUS); in vp_legacy_get_status()
[all …]
A Dvirtio_pci_legacy.c27 return vp_legacy_get_features(&vp_dev->ldev); in vp_get_features()
52 void __iomem *ioaddr = vp_dev->ldev.ioaddr + in vp_get()
97 vp_legacy_set_status(&vp_dev->ldev, 0); in vp_reset()
100 vp_legacy_get_status(&vp_dev->ldev); in vp_reset()
208 struct virtio_pci_legacy_device *ldev = &vp_dev->ldev; in virtio_pci_legacy_probe() local
212 ldev->pci_dev = pci_dev; in virtio_pci_legacy_probe()
214 rc = vp_legacy_probe(ldev); in virtio_pci_legacy_probe()
218 vp_dev->isr = ldev->isr; in virtio_pci_legacy_probe()
219 vp_dev->vdev.id = ldev->id; in virtio_pci_legacy_probe()
232 struct virtio_pci_legacy_device *ldev = &vp_dev->ldev; in virtio_pci_legacy_remove() local
[all …]
/linux-6.3-rc2/sound/aoa/fabrics/
A Dlayout.c736 v = ldev->gpio.methods->get_detect(&ldev->gpio, in detected_get()
740 v = ldev->gpio.methods->get_detect(&ldev->gpio, in detected_get()
866 ldev->gpio.methods->set_lineout(&ldev->gpio, 0); in layout_notify()
1053 ldev->selfptr_headphone.ptr = ldev; in aoa_fabric_layout_probe()
1054 ldev->selfptr_lineout.ptr = ldev; in aoa_fabric_layout_probe()
1069 ldev->gpio.methods->init(&ldev->gpio); in aoa_fabric_layout_probe()
1084 ldev->gpio.methods->exit(&ldev->gpio); in aoa_fabric_layout_probe()
1112 ldev->gpio.methods->set_notify(&ldev->gpio, in aoa_fabric_layout_remove()
1116 ldev->gpio.methods->set_notify(&ldev->gpio, in aoa_fabric_layout_remove()
1121 ldev->gpio.methods->exit(&ldev->gpio); in aoa_fabric_layout_remove()
[all …]
/linux-6.3-rc2/drivers/soundwire/
A Dintel_init.c27 kfree(ldev); in intel_link_dev_release()
42 ldev = kzalloc(sizeof(*ldev), GFP_KERNEL); in intel_link_dev_register()
43 if (!ldev) in intel_link_dev_register()
60 ctx->ldev[link_id] = ldev; in intel_link_dev_register()
84 kfree(ldev); in intel_link_dev_register()
97 return ldev; in intel_link_dev_register()
118 ldev = ctx->ldev[i]; in sdw_intel_cleanup()
264 ldev = ctx->ldev[i]; in sdw_intel_probe_controller()
283 if (!ctx->ldev) in sdw_intel_startup_controller()
293 ldev = ctx->ldev[i]; in sdw_intel_startup_controller()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/lima/
A Dlima_device.c277 pipe->ldev = dev; in lima_init_gp_pipe()
309 pipe->ldev = dev; in lima_init_pp_pipe()
371 ldev->empty_vm = lima_vm_create(ldev); in lima_device_init()
377 ldev->va_start = 0; in lima_device_init()
417 dev_info(ldev->dev, "bus rate = %lu\n", clk_get_rate(ldev->clk_bus)); in lima_device_init()
418 dev_info(ldev->dev, "mod rate = %lu", clk_get_rate(ldev->clk_gpu)); in lima_device_init()
428 if (ldev->dlbu_cpu) in lima_device_init()
430 ldev->dlbu_cpu, ldev->dlbu_dma); in lima_device_init()
436 lima_clk_fini(ldev); in lima_device_init()
457 if (ldev->dlbu_cpu) in lima_device_fini()
[all …]
A Dlima_drv.c46 switch (ldev->id) { in lima_ioctl_get_param()
330 if (lima_read_block(&reader, &ldev->dump, sizeof(ldev->dump))) { in lima_error_state_read()
356 ldev->dump.size = 0; in lima_error_state_write()
382 ldev = devm_kzalloc(&pdev->dev, sizeof(*ldev), GFP_KERNEL); in lima_pdev_probe()
383 if (!ldev) { in lima_pdev_probe()
388 ldev->dev = &pdev->dev; in lima_pdev_probe()
399 ldev->ddev = ddev; in lima_pdev_probe()
432 lima_devfreq_fini(ldev); in lima_pdev_probe()
434 lima_device_fini(ldev); in lima_pdev_probe()
455 lima_devfreq_fini(ldev); in lima_pdev_remove()
[all …]
/linux-6.3-rc2/drivers/hid/
A Dhid-led.c123 memcpy(ldev->buf, buf, ldev->config->report_size); in hidled_send()
126 ret = hid_hw_raw_request(ldev->hdev, buf[0], ldev->buf, in hidled_send()
131 ret = hid_hw_output_report(ldev->hdev, ldev->buf, in hidled_send()
154 memcpy(ldev->buf, buf, ldev->config->report_size); in hidled_recv()
156 ret = hid_hw_raw_request(ldev->hdev, buf[0], ldev->buf, in hidled_recv()
163 ret = hid_hw_raw_request(ldev->hdev, buf[0], ldev->buf, in hidled_recv()
168 memcpy(buf, ldev->buf, ldev->config->report_size); in hidled_recv()
454 ldev = devm_kzalloc(&hdev->dev, sizeof(*ldev), GFP_KERNEL); in hidled_probe()
455 if (!ldev) in hidled_probe()
477 ret = ldev->config->init(ldev); in hidled_probe()
[all …]
A Dhid-picolcd_lcd.c20 static int picolcd_get_contrast(struct lcd_device *ldev) in picolcd_get_contrast() argument
22 struct picolcd_data *data = lcd_get_data(ldev); in picolcd_get_contrast()
28 struct picolcd_data *data = lcd_get_data(ldev); in picolcd_set_contrast()
58 struct lcd_device *ldev; in picolcd_init_lcd() local
69 if (IS_ERR(ldev)) { in picolcd_init_lcd()
71 return PTR_ERR(ldev); in picolcd_init_lcd()
73 ldev->props.max_contrast = 0x0ff; in picolcd_init_lcd()
75 data->lcd = ldev; in picolcd_init_lcd()
76 picolcd_set_contrast(ldev, 0xe5); in picolcd_init_lcd()
82 struct lcd_device *ldev = data->lcd; in picolcd_exit_lcd() local
[all …]
/linux-6.3-rc2/drivers/vdpa/alibaba/
A Deni_vdpa.c58 return &eni_vdpa->ldev; in vdpa_to_ldev()
77 ENI_ERR(ldev->pci_dev, in eni_vdpa_set_driver_features()
114 struct virtio_pci_legacy_device *ldev = &eni_vdpa->ldev; in eni_vdpa_free_irq() local
161 struct virtio_pci_legacy_device *ldev = &eni_vdpa->ldev; in eni_vdpa_request_irq() local
214 struct virtio_pci_legacy_device *ldev = &eni_vdpa->ldev; in eni_vdpa_set_status() local
232 struct virtio_pci_legacy_device *ldev = &eni_vdpa->ldev; in eni_vdpa_reset() local
375 struct virtio_pci_legacy_device *ldev = &eni_vdpa->ldev; in eni_vdpa_get_config() local
391 struct virtio_pci_legacy_device *ldev = &eni_vdpa->ldev; in eni_vdpa_set_config() local
440 struct virtio_pci_legacy_device *ldev = &eni_vdpa->ldev; in eni_vdpa_get_num_queues() local
479 ldev = &eni_vdpa->ldev; in eni_vdpa_probe()
[all …]
/linux-6.3-rc2/net/ieee802154/6lowpan/
A Dcore.c64 netdev_lockdep_set_classes(ldev); in lowpan_dev_init()
113 ldev->flags = IFF_BROADCAST | IFF_MULTICAST; in lowpan_setup()
114 ldev->priv_flags |= IFF_NO_QUEUE; in lowpan_setup()
116 ldev->netdev_ops = &lowpan_netdev_ops; in lowpan_setup()
117 ldev->header_ops = &lowpan_header_ops; in lowpan_setup()
118 ldev->needs_free_netdev = true; in lowpan_setup()
119 ldev->features |= NETIF_F_NETNS_LOCAL; in lowpan_setup()
159 lowpan_802154_dev(ldev)->wdev = wdev; in lowpan_newlink()
170 ldev->needed_tailroom = wdev->needed_tailroom; in lowpan_newlink()
180 wdev->ieee802154_ptr->lowpan_dev = ldev; in lowpan_newlink()
[all …]
A Dtx.c56 if (!memcmp(daddr, ldev->broadcast, EUI64_ADDR_LEN)) { in lowpan_header_create()
62 n = neigh_lookup(&nd_tbl, &hdr->daddr, ldev); in lowpan_header_create()
168 lowpan_802154_dev(ldev)->fragment_tag++; in lowpan_xmit_fragmented()
214 ldev->stats.tx_packets++; in lowpan_xmit_fragmented()
215 ldev->stats.tx_bytes += dgram_size; in lowpan_xmit_fragmented()
264 skb_tailroom(skb) < ldev->needed_tailroom)) { in lowpan_xmit()
267 nskb = skb_copy_expand(skb, ldev->needed_headroom, in lowpan_xmit()
268 ldev->needed_tailroom, GFP_ATOMIC); in lowpan_xmit()
296 skb->dev = lowpan_802154_dev(ldev)->wdev; in lowpan_xmit()
297 ldev->stats.tx_packets++; in lowpan_xmit()
[all …]
/linux-6.3-rc2/include/linux/
A Dvirtio_pci_legacy.h20 u64 vp_legacy_get_features(struct virtio_pci_legacy_device *ldev);
21 u64 vp_legacy_get_driver_features(struct virtio_pci_legacy_device *ldev);
22 void vp_legacy_set_features(struct virtio_pci_legacy_device *ldev,
24 u8 vp_legacy_get_status(struct virtio_pci_legacy_device *ldev);
25 void vp_legacy_set_status(struct virtio_pci_legacy_device *ldev,
27 u16 vp_legacy_queue_vector(struct virtio_pci_legacy_device *ldev,
29 u16 vp_legacy_config_vector(struct virtio_pci_legacy_device *ldev,
33 bool vp_legacy_get_queue_enable(struct virtio_pci_legacy_device *ldev,
35 u16 vp_legacy_get_queue_size(struct virtio_pci_legacy_device *ldev,
37 int vp_legacy_probe(struct virtio_pci_legacy_device *ldev);
[all …]
/linux-6.3-rc2/drivers/net/ethernet/intel/i40e/
A Di40e_client.c143 if (!ldev->qvlist_info) in i40e_client_release_qvlist()
157 kfree(ldev->qvlist_info); in i40e_client_release_qvlist()
158 ldev->qvlist_info = NULL; in i40e_client_release_qvlist()
301 i40e_aux_dev->ldev = ldev; in i40e_register_auxiliary_dev()
467 if (ldev->pf == pf) { in i40e_lan_add_device()
472 ldev = kzalloc(sizeof(*ldev), GFP_KERNEL); in i40e_lan_add_device()
473 if (!ldev) { in i40e_lan_add_device()
477 ldev->pf = pf; in i40e_lan_add_device()
514 if (ldev->pf == pf) { in i40e_lan_del_device()
519 kfree(ldev); in i40e_lan_del_device()
[all …]
/linux-6.3-rc2/include/linux/net/intel/
A Di40e_client.h103 struct i40e_info *ldev; member
121 void (*request_reset)(struct i40e_info *ldev,
127 int (*update_vsi_ctxt)(struct i40e_info *ldev,
137 int (*open)(struct i40e_info *ldev, struct i40e_client *client);
143 void (*close)(struct i40e_info *ldev, struct i40e_client *client,
147 void (*l2_param_change)(struct i40e_info *ldev,
151 int (*virtchnl_receive)(struct i40e_info *ldev,
156 void (*vf_reset)(struct i40e_info *ldev,
160 void (*vf_enable)(struct i40e_info *ldev,
164 int (*vf_capable)(struct i40e_info *ldev,
[all …]
/linux-6.3-rc2/drivers/leds/
A Dleds-dac124s085.c16 struct led_classdev ldev; member
33 static int dac124s085_set_brightness(struct led_classdev *ldev, in dac124s085_set_brightness() argument
36 struct dac124s085_led *led = container_of(ldev, struct dac124s085_led, in dac124s085_set_brightness()
37 ldev); in dac124s085_set_brightness()
68 led->ldev.name = led->name; in dac124s085_probe()
69 led->ldev.brightness = LED_OFF; in dac124s085_probe()
70 led->ldev.max_brightness = 0xfff; in dac124s085_probe()
71 led->ldev.brightness_set_blocking = dac124s085_set_brightness; in dac124s085_probe()
72 ret = led_classdev_register(&spi->dev, &led->ldev); in dac124s085_probe()
83 led_classdev_unregister(&dac->leds[i].ldev); in dac124s085_probe()
[all …]
A Dleds-spi-byte.c46 struct led_classdev ldev; member
68 struct spi_byte_led *led = container_of(dev, struct spi_byte_led, ldev); in spi_byte_brightness_set_blocking()
105 led->ldev.name = led->name; in spi_byte_probe()
106 led->ldev.brightness = LED_OFF; in spi_byte_probe()
107 led->ldev.max_brightness = led->cdef->max_value - led->cdef->off_value; in spi_byte_probe()
108 led->ldev.brightness_set_blocking = spi_byte_brightness_set_blocking; in spi_byte_probe()
113 led->ldev.brightness = led->ldev.max_brightness; in spi_byte_probe()
120 spi_byte_brightness_set_blocking(&led->ldev, in spi_byte_probe()
121 led->ldev.brightness); in spi_byte_probe()
123 ret = devm_led_classdev_register(&spi->dev, &led->ldev); in spi_byte_probe()
A Dleds-el15203000.c72 struct led_classdev ldev; member
134 struct el15203000_led *led = to_el15203000_led(ldev); in el15203000_set_blocking()
143 struct el15203000_led *led = to_el15203000_led(ldev); in el15203000_pattern_set_S()
194 struct el15203000_led *led = to_el15203000_led(ldev); in el15203000_pattern_set_P()
232 struct el15203000_led *led = to_el15203000_led(ldev); in el15203000_pattern_clear()
259 led->ldev.max_brightness = LED_ON; in el15203000_probe_dt()
263 led->ldev.pattern_set = el15203000_pattern_set_S; in el15203000_probe_dt()
264 led->ldev.pattern_clear = el15203000_pattern_clear; in el15203000_probe_dt()
266 led->ldev.pattern_set = el15203000_pattern_set_P; in el15203000_probe_dt()
267 led->ldev.pattern_clear = el15203000_pattern_clear; in el15203000_probe_dt()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/intel/iavf/
A Diavf_client.c294 struct iavf_device *ldev; in iavf_lan_add_device() local
299 if (ldev->vf == adapter) { in iavf_lan_add_device()
304 ldev = kzalloc(sizeof(*ldev), GFP_KERNEL); in iavf_lan_add_device()
305 if (!ldev) { in iavf_lan_add_device()
309 ldev->vf = adapter; in iavf_lan_add_device()
344 list_del(&ldev->list); in iavf_lan_del_device()
345 kfree(ldev); in iavf_lan_del_device()
363 struct iavf_device *ldev; in iavf_client_release() local
368 adapter = ldev->vf; in iavf_client_release()
397 struct iavf_device *ldev; in iavf_client_prepare() local
[all …]

Completed in 77 milliseconds

1234