Home
last modified time | relevance | path

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

1234

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/lag/
Dlag.c68 static u8 lag_active_port_bits(struct mlx5_lag *ldev) in lag_active_port_bits() argument
75 mlx5_infer_tx_enabled(&ldev->tracker, ldev->ports, enabled_ports, in lag_active_port_bits()
181 struct mlx5_lag *ldev, in mlx5_lag_print_mapping() argument
195 mlx5_infer_tx_enabled(tracker, ldev->ports, enabled_ports, in mlx5_lag_print_mapping()
206 for (i = 0; i < ldev->ports; i++) { in mlx5_lag_print_mapping()
207 for (j = 0; j < ldev->buckets; j++) { in mlx5_lag_print_mapping()
208 idx = i * ldev->buckets + j; in mlx5_lag_print_mapping()
210 " port %d:%d", i + 1, ldev->v2p_map[idx]); in mlx5_lag_print_mapping()
226 struct mlx5_lag *ldev = container_of(ref, struct mlx5_lag, ref); in mlx5_ldev_free() local
228 if (ldev->nb.notifier_call) in mlx5_ldev_free()
[all …]
Ddebugfs.c6 static char *get_str_mode_type(struct mlx5_lag *ldev) in get_str_mode_type() argument
8 switch (ldev->mode) { in get_str_mode_type()
22 struct mlx5_lag *ldev; in type_show() local
25 ldev = dev->priv.lag; in type_show()
26 mutex_lock(&ldev->lock); in type_show()
27 if (__mlx5_lag_is_active(ldev)) in type_show()
28 mode = get_str_mode_type(ldev); in type_show()
29 mutex_unlock(&ldev->lock); in type_show()
40 struct mlx5_lag *ldev; in port_sel_mode_show() local
44 ldev = dev->priv.lag; in port_sel_mode_show()
[all …]
Dmp.c12 static bool __mlx5_lag_is_multipath(struct mlx5_lag *ldev) in __mlx5_lag_is_multipath() argument
14 return ldev->mode == MLX5_LAG_MODE_MULTIPATH; in __mlx5_lag_is_multipath()
17 static bool mlx5_lag_multipath_check_prereq(struct mlx5_lag *ldev) in mlx5_lag_multipath_check_prereq() argument
19 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()
25 return mlx5_esw_multipath_prereq(ldev->pf[MLX5_LAG_P1].dev, in mlx5_lag_multipath_check_prereq()
26 ldev->pf[MLX5_LAG_P2].dev); in mlx5_lag_multipath_check_prereq()
31 struct mlx5_lag *ldev; in mlx5_lag_is_multipath() local
34 ldev = mlx5_lag_dev(dev); in mlx5_lag_is_multipath()
35 res = ldev && __mlx5_lag_is_multipath(ldev); in mlx5_lag_is_multipath()
[all …]
Dmpesw.c10 static int add_mpesw_rule(struct mlx5_lag *ldev) in add_mpesw_rule() argument
12 struct mlx5_core_dev *dev = ldev->pf[MLX5_LAG_P1].dev; in add_mpesw_rule()
15 if (atomic_add_return(1, &ldev->lag_mpesw.mpesw_rule_count) != 1) in add_mpesw_rule()
18 if (ldev->mode != MLX5_LAG_MODE_NONE) { in add_mpesw_rule()
23 err = mlx5_activate_lag(ldev, NULL, MLX5_LAG_MODE_MPESW, false); in add_mpesw_rule()
32 atomic_dec(&ldev->lag_mpesw.mpesw_rule_count); in add_mpesw_rule()
36 static void del_mpesw_rule(struct mlx5_lag *ldev) in del_mpesw_rule() argument
38 if (!atomic_dec_return(&ldev->lag_mpesw.mpesw_rule_count) && in del_mpesw_rule()
39 ldev->mode == MLX5_LAG_MODE_MPESW) in del_mpesw_rule()
40 mlx5_disable_lag(ldev); in del_mpesw_rule()
[all …]
Dport_sel.c38 static int mlx5_lag_create_port_sel_table(struct mlx5_lag *ldev, in mlx5_lag_create_port_sel_table() argument
42 struct mlx5_core_dev *dev = ldev->pf[MLX5_LAG_P1].dev; in mlx5_lag_create_port_sel_table()
51 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()
84 dest.vport.vhca_id = MLX5_CAP_GEN(ldev->pf[affinity - 1].dev, in mlx5_lag_create_port_sel_table()
291 mlx5_lag_create_definer(struct mlx5_lag *ldev, enum netdev_lag_hash hash, in mlx5_lag_create_definer() argument
294 struct mlx5_core_dev *dev = ldev->pf[MLX5_LAG_P1].dev; in mlx5_lag_create_definer()
320 err = mlx5_lag_create_port_sel_table(ldev, lag_definer, ports); in mlx5_lag_create_definer()
[all …]
Dlag.h107 __mlx5_lag_is_active(struct mlx5_lag *ldev) in __mlx5_lag_is_active() argument
109 return ldev->mode != MLX5_LAG_MODE_NONE; in __mlx5_lag_is_active()
113 mlx5_lag_is_ready(struct mlx5_lag *ldev) in mlx5_lag_is_ready() argument
115 return test_bit(MLX5_LAG_FLAG_NDEVS_READY, &ldev->state_flags); in mlx5_lag_is_ready()
118 void mlx5_modify_lag(struct mlx5_lag *ldev,
120 int mlx5_activate_lag(struct mlx5_lag *ldev,
124 int mlx5_lag_dev_get_netdev_idx(struct mlx5_lag *ldev,
126 bool mlx5_shared_fdb_supported(struct mlx5_lag *ldev);
136 void mlx5_disable_lag(struct mlx5_lag *ldev);
/linux-6.1.9/drivers/gpu/drm/stm/
Dltdc.c61 #define LAY_OFS (ldev->caps.layer_ofs)
87 #define LTDC_L1C0R (ldev->caps.layer_regs[0]) /* L1 configuration 0 */
88 #define LTDC_L1C1R (ldev->caps.layer_regs[1]) /* L1 configuration 1 */
89 #define LTDC_L1RCR (ldev->caps.layer_regs[2]) /* L1 reload control */
90 #define LTDC_L1CR (ldev->caps.layer_regs[3]) /* L1 control register */
91 #define LTDC_L1WHPCR (ldev->caps.layer_regs[4]) /* L1 window horizontal position configuration */
92 #define LTDC_L1WVPCR (ldev->caps.layer_regs[5]) /* L1 window vertical position configuration */
93 #define LTDC_L1CKCR (ldev->caps.layer_regs[6]) /* L1 color keying configuration */
94 #define LTDC_L1PFCR (ldev->caps.layer_regs[7]) /* L1 pixel format configuration */
95 #define LTDC_L1CACR (ldev->caps.layer_regs[8]) /* L1 constant alpha configuration */
[all …]
/linux-6.1.9/drivers/virtio/
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()
69 void vp_legacy_remove(struct virtio_pci_legacy_device *ldev) in vp_legacy_remove() argument
71 struct pci_dev *pci_dev = ldev->pci_dev; in vp_legacy_remove()
73 pci_iounmap(pci_dev, ldev->ioaddr); in vp_legacy_remove()
[all …]
Dvirtio_pci_legacy.c27 return vp_legacy_get_features(&vp_dev->ldev); in vp_get_features()
42 vp_legacy_set_features(&vp_dev->ldev, vdev->features); in vp_finalize_features()
52 void __iomem *ioaddr = vp_dev->ldev.ioaddr + in vp_get()
68 void __iomem *ioaddr = vp_dev->ldev.ioaddr + in vp_set()
82 return vp_legacy_get_status(&vp_dev->ldev); in vp_get_status()
90 vp_legacy_set_status(&vp_dev->ldev, status); in vp_set_status()
97 vp_legacy_set_status(&vp_dev->ldev, 0); in vp_reset()
100 vp_legacy_get_status(&vp_dev->ldev); in vp_reset()
107 return vp_legacy_config_vector(&vp_dev->ldev, vector); in vp_config_vector()
124 num = vp_legacy_get_queue_size(&vp_dev->ldev, index); in setup_vq()
[all …]
/linux-6.1.9/sound/aoa/fabrics/
Dlayout.c675 struct layout_dev *ldev = snd_kcontrol_chip(kcontrol); in detect_choice_get() local
679 ucontrol->value.integer.value[0] = ldev->switch_on_headphone; in detect_choice_get()
682 ucontrol->value.integer.value[0] = ldev->switch_on_lineout; in detect_choice_get()
693 struct layout_dev *ldev = snd_kcontrol_chip(kcontrol); in detect_choice_put() local
697 ldev->switch_on_headphone = !!ucontrol->value.integer.value[0]; in detect_choice_put()
700 ldev->switch_on_lineout = !!ucontrol->value.integer.value[0]; in detect_choice_put()
731 struct layout_dev *ldev = snd_kcontrol_chip(kcontrol); in detected_get() local
736 v = ldev->gpio.methods->get_detect(&ldev->gpio, in detected_get()
740 v = ldev->gpio.methods->get_detect(&ldev->gpio, in detected_get()
769 struct layout_dev *ldev, in check_codec() argument
[all …]
/linux-6.1.9/drivers/gpu/drm/lima/
Dlima_device.c242 static void lima_fini_ip(struct lima_device *ldev, int index) in lima_fini_ip() argument
245 struct lima_ip *ip = ldev->ip + index; in lima_fini_ip()
251 static int lima_resume_ip(struct lima_device *ldev, int index) in lima_resume_ip() argument
254 struct lima_ip *ip = ldev->ip + index; in lima_resume_ip()
263 static void lima_suspend_ip(struct lima_device *ldev, int index) in lima_suspend_ip() argument
266 struct lima_ip *ip = ldev->ip + index; in lima_suspend_ip()
277 pipe->ldev = dev; in lima_init_gp_pipe()
309 pipe->ldev = dev; in lima_init_pp_pipe()
355 int lima_device_init(struct lima_device *ldev) in lima_device_init() argument
357 struct platform_device *pdev = to_platform_device(ldev->dev); in lima_device_init()
[all …]
Dlima_drv.c39 struct lima_device *ldev = to_lima_dev(dev); in lima_ioctl_get_param() local
46 switch (ldev->id) { in lima_ioctl_get_param()
60 args->value = ldev->pipe[lima_pipe_pp].num_processor; in lima_ioctl_get_param()
64 args->value = ldev->gp_version; in lima_ioctl_get_param()
68 args->value = ldev->pp_version; in lima_ioctl_get_param()
104 struct lima_device *ldev = to_lima_dev(dev); in lima_ioctl_gem_submit() local
120 pipe = ldev->pipe + args->pipe; in lima_ioctl_gem_submit()
192 struct lima_device *ldev = to_lima_dev(dev); in lima_ioctl_ctx_create() local
197 return lima_ctx_create(ldev, &priv->ctx_mgr, &args->id); in lima_ioctl_ctx_create()
215 struct lima_device *ldev = to_lima_dev(dev); in lima_drm_driver_open() local
[all …]
/linux-6.1.9/drivers/soundwire/
Dintel_init.c24 struct sdw_intel_link_dev *ldev = auxiliary_dev_to_sdw_intel_link_dev(auxdev); in intel_link_dev_release() local
26 kfree(ldev); in intel_link_dev_release()
36 struct sdw_intel_link_dev *ldev; in intel_link_dev_register() local
41 ldev = kzalloc(sizeof(*ldev), GFP_KERNEL); in intel_link_dev_register()
42 if (!ldev) in intel_link_dev_register()
45 auxdev = &ldev->auxdev; in intel_link_dev_register()
59 ctx->ldev[link_id] = ldev; in intel_link_dev_register()
62 link = &ldev->link_res; in intel_link_dev_register()
82 kfree(ldev); in intel_link_dev_register()
86 ret = auxiliary_device_add(&ldev->auxdev); in intel_link_dev_register()
[all …]
/linux-6.1.9/drivers/hid/
Dhid-led.c78 int (*init)(struct hidled_device *ldev);
89 struct hidled_device *ldev; member
113 static int hidled_send(struct hidled_device *ldev, __u8 *buf) in hidled_send() argument
117 mutex_lock(&ldev->lock); in hidled_send()
123 memcpy(ldev->buf, buf, ldev->config->report_size); in hidled_send()
125 if (ldev->config->report_type == RAW_REQUEST) in hidled_send()
126 ret = hid_hw_raw_request(ldev->hdev, buf[0], ldev->buf, in hidled_send()
127 ldev->config->report_size, in hidled_send()
130 else if (ldev->config->report_type == OUTPUT_REPORT) in hidled_send()
131 ret = hid_hw_output_report(ldev->hdev, ldev->buf, in hidled_send()
[all …]
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()
26 static int picolcd_set_contrast(struct lcd_device *ldev, int contrast) in picolcd_set_contrast() argument
28 struct picolcd_data *data = lcd_get_data(ldev); in picolcd_set_contrast()
44 static int picolcd_check_lcd_fb(struct lcd_device *ldev, struct fb_info *fb) in picolcd_check_lcd_fb() argument
46 return fb && fb == picolcd_fbinfo((struct picolcd_data *)lcd_get_data(ldev)); in picolcd_check_lcd_fb()
58 struct lcd_device *ldev; in picolcd_init_lcd() local
68 ldev = lcd_device_register(dev_name(dev), dev, data, &picolcd_lcdops); in picolcd_init_lcd()
69 if (IS_ERR(ldev)) { in picolcd_init_lcd()
71 return PTR_ERR(ldev); in picolcd_init_lcd()
[all …]
/linux-6.1.9/drivers/vdpa/alibaba/
Deni_vdpa.c40 struct virtio_pci_legacy_device ldev; member
58 return &eni_vdpa->ldev; in vdpa_to_ldev()
63 struct virtio_pci_legacy_device *ldev = vdpa_to_ldev(vdpa); in eni_vdpa_get_device_features() local
64 u64 features = vp_legacy_get_features(ldev); in eni_vdpa_get_device_features()
74 struct virtio_pci_legacy_device *ldev = vdpa_to_ldev(vdpa); in eni_vdpa_set_driver_features() local
77 ENI_ERR(ldev->pci_dev, in eni_vdpa_set_driver_features()
82 vp_legacy_set_features(ldev, (u32)features); in eni_vdpa_set_driver_features()
89 struct virtio_pci_legacy_device *ldev = vdpa_to_ldev(vdpa); in eni_vdpa_get_driver_features() local
91 return vp_legacy_get_driver_features(ldev); in eni_vdpa_get_driver_features()
96 struct virtio_pci_legacy_device *ldev = vdpa_to_ldev(vdpa); in eni_vdpa_get_status() local
[all …]
/linux-6.1.9/net/ieee802154/6lowpan/
Dcore.c62 static int lowpan_dev_init(struct net_device *ldev) in lowpan_dev_init() argument
64 netdev_lockdep_set_classes(ldev); in lowpan_dev_init()
108 static void lowpan_setup(struct net_device *ldev) in lowpan_setup() argument
110 memset(ldev->broadcast, 0xff, IEEE802154_ADDR_LEN); in lowpan_setup()
112 ldev->hard_header_len = sizeof(struct ipv6hdr); in lowpan_setup()
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()
[all …]
Dtx.c33 int lowpan_header_create(struct sk_buff *skb, struct net_device *ldev, in lowpan_header_create() argument
37 struct wpan_dev *wpan_dev = lowpan_802154_dev(ldev)->wdev->ieee802154_ptr; in lowpan_header_create()
56 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()
158 lowpan_xmit_fragmented(struct sk_buff *skb, struct net_device *ldev, in lowpan_xmit_fragmented() argument
167 frag_tag = htons(lowpan_802154_dev(ldev)->fragment_tag); in lowpan_xmit_fragmented()
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()
224 static int lowpan_header(struct sk_buff *skb, struct net_device *ldev, in lowpan_header() argument
[all …]
/linux-6.1.9/include/linux/
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,
31 void vp_legacy_set_queue_address(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,
[all …]
/linux-6.1.9/drivers/net/ethernet/intel/i40e/
Di40e_client.c15 static int i40e_client_virtchnl_send(struct i40e_info *ldev,
19 static int i40e_client_setup_qvlist(struct i40e_info *ldev,
23 static void i40e_client_request_reset(struct i40e_info *ldev,
27 static int i40e_client_update_vsi_ctxt(struct i40e_info *ldev,
138 static void i40e_client_release_qvlist(struct i40e_info *ldev) in i40e_client_release_qvlist() argument
140 struct i40e_qvlist_info *qvlist_info = ldev->qvlist_info; in i40e_client_release_qvlist()
143 if (!ldev->qvlist_info) in i40e_client_release_qvlist()
147 struct i40e_pf *pf = ldev->pf; 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()
[all …]
/linux-6.1.9/include/linux/net/intel/
Di40e_client.h103 struct i40e_info *ldev; member
112 int (*setup_qvlist)(struct i40e_info *ldev, struct i40e_client *client,
115 int (*virtchnl_send)(struct i40e_info *ldev, struct i40e_client *client,
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,
[all …]
/linux-6.1.9/drivers/leds/
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 …]
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()
Dleds-el15203000.c72 struct led_classdev ldev; member
86 #define to_el15203000_led(d) container_of(d, struct el15203000_led, ldev)
131 static int el15203000_set_blocking(struct led_classdev *ldev, in el15203000_set_blocking() argument
134 struct el15203000_led *led = to_el15203000_led(ldev); in el15203000_set_blocking()
139 static int el15203000_pattern_set_S(struct led_classdev *ldev, in el15203000_pattern_set_S() argument
143 struct el15203000_led *led = to_el15203000_led(ldev); in el15203000_pattern_set_S()
190 static int el15203000_pattern_set_P(struct led_classdev *ldev, in el15203000_pattern_set_P() argument
194 struct el15203000_led *led = to_el15203000_led(ldev); in el15203000_pattern_set_P()
230 static int el15203000_pattern_clear(struct led_classdev *ldev) in el15203000_pattern_clear() argument
232 struct el15203000_led *led = to_el15203000_led(ldev); in el15203000_pattern_clear()
[all …]
/linux-6.1.9/drivers/net/ethernet/intel/iavf/
Diavf_client.c17 static u32 iavf_client_virtchnl_send(struct iavf_info *ldev,
21 static int iavf_client_setup_qvlist(struct iavf_info *ldev,
135 static int iavf_client_release_qvlist(struct iavf_info *ldev) in iavf_client_release_qvlist() argument
137 struct iavf_adapter *adapter = ldev->vf; in iavf_client_release_qvlist()
294 struct iavf_device *ldev; in iavf_lan_add_device() local
298 list_for_each_entry(ldev, &iavf_devices, list) { in iavf_lan_add_device()
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()
[all …]

1234