/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/ |
D | lag.c | 105 struct mlx5_lag *ldev = container_of(ref, struct mlx5_lag, ref); in mlx5_ldev_free() local 107 if (ldev->nb.notifier_call) in mlx5_ldev_free() 108 unregister_netdevice_notifier_net(&init_net, &ldev->nb); in mlx5_ldev_free() 109 mlx5_lag_mp_cleanup(ldev); in mlx5_ldev_free() 110 cancel_delayed_work_sync(&ldev->bond_work); in mlx5_ldev_free() 111 destroy_workqueue(ldev->wq); in mlx5_ldev_free() 112 kfree(ldev); in mlx5_ldev_free() 115 static void mlx5_ldev_put(struct mlx5_lag *ldev) in mlx5_ldev_put() argument 117 kref_put(&ldev->ref, mlx5_ldev_free); in mlx5_ldev_put() 120 static void mlx5_ldev_get(struct mlx5_lag *ldev) in mlx5_ldev_get() argument [all …]
|
D | lag_mp.c | 12 static bool __mlx5_lag_is_multipath(struct mlx5_lag *ldev) in __mlx5_lag_is_multipath() argument 14 return !!(ldev->flags & MLX5_LAG_FLAG_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 …]
|
D | lag_mp.h | 24 void mlx5_lag_mp_reset(struct mlx5_lag *ldev); 25 int mlx5_lag_mp_init(struct mlx5_lag *ldev); 26 void mlx5_lag_mp_cleanup(struct mlx5_lag *ldev); 31 static inline void mlx5_lag_mp_reset(struct mlx5_lag *ldev) {}; in mlx5_lag_mp_reset() argument 32 static inline int mlx5_lag_mp_init(struct mlx5_lag *ldev) { return 0; } in mlx5_lag_mp_init() argument 33 static inline void mlx5_lag_mp_cleanup(struct mlx5_lag *ldev) {} in mlx5_lag_mp_cleanup() argument
|
D | lag.h | 61 __mlx5_lag_is_active(struct mlx5_lag *ldev) in __mlx5_lag_is_active() argument 63 return !!(ldev->flags & MLX5_LAG_MODE_FLAGS); in __mlx5_lag_is_active() 67 mlx5_lag_is_ready(struct mlx5_lag *ldev) in mlx5_lag_is_ready() argument 69 return ldev->flags & MLX5_LAG_FLAG_READY; in mlx5_lag_is_ready() 72 void mlx5_modify_lag(struct mlx5_lag *ldev, 74 int mlx5_activate_lag(struct mlx5_lag *ldev, 78 int mlx5_lag_dev_get_netdev_idx(struct mlx5_lag *ldev,
|
/Linux-v5.15/sound/aoa/fabrics/ |
D | layout.c | 675 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-v5.15/drivers/gpu/drm/lima/ |
D | lima_device.c | 241 static void lima_fini_ip(struct lima_device *ldev, int index) in lima_fini_ip() argument 244 struct lima_ip *ip = ldev->ip + index; in lima_fini_ip() 250 static int lima_resume_ip(struct lima_device *ldev, int index) in lima_resume_ip() argument 253 struct lima_ip *ip = ldev->ip + index; in lima_resume_ip() 262 static void lima_suspend_ip(struct lima_device *ldev, int index) in lima_suspend_ip() argument 265 struct lima_ip *ip = ldev->ip + index; in lima_suspend_ip() 276 pipe->ldev = dev; in lima_init_gp_pipe() 308 pipe->ldev = dev; in lima_init_pp_pipe() 354 int lima_device_init(struct lima_device *ldev) in lima_device_init() argument 356 struct platform_device *pdev = to_platform_device(ldev->dev); in lima_device_init() [all …]
|
D | lima_drv.c | 39 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 …]
|
D | lima_devfreq.c | 57 struct lima_device *ldev = dev_get_drvdata(dev); in lima_devfreq_get_dev_status() local 58 struct lima_devfreq *devfreq = &ldev->devfreq; in lima_devfreq_get_dev_status() 61 status->current_frequency = clk_get_rate(ldev->clk_gpu); in lima_devfreq_get_dev_status() 75 dev_dbg(ldev->dev, "busy %lu total %lu %lu %% freq %lu MHz\n", in lima_devfreq_get_dev_status() 90 void lima_devfreq_fini(struct lima_device *ldev) in lima_devfreq_fini() argument 92 struct lima_devfreq *devfreq = &ldev->devfreq; in lima_devfreq_fini() 100 devm_devfreq_remove_device(ldev->dev, devfreq->devfreq); in lima_devfreq_fini() 105 int lima_devfreq_init(struct lima_device *ldev) in lima_devfreq_init() argument 108 struct device *dev = ldev->dev; in lima_devfreq_init() 110 struct lima_devfreq *ldevfreq = &ldev->devfreq; in lima_devfreq_init() [all …]
|
/Linux-v5.15/drivers/soundwire/ |
D | intel_init.c | 24 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-v5.15/drivers/hid/ |
D | hid-led.c | 78 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 …]
|
D | hid-picolcd_lcd.c | 20 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-v5.15/drivers/gpu/drm/stm/ |
D | ltdc.c | 56 #define REG_OFS (ldev->caps.reg_ofs) 370 struct ltdc_device *ldev = ddev->dev_private; in ltdc_irq_thread() local 374 if (ldev->irq_status & ISR_LIF) in ltdc_irq_thread() 378 mutex_lock(&ldev->err_lock); in ltdc_irq_thread() 379 if (ldev->irq_status & ISR_FUIF) in ltdc_irq_thread() 380 ldev->error_status |= ISR_FUIF; in ltdc_irq_thread() 381 if (ldev->irq_status & ISR_TERRIF) in ltdc_irq_thread() 382 ldev->error_status |= ISR_TERRIF; in ltdc_irq_thread() 383 mutex_unlock(&ldev->err_lock); in ltdc_irq_thread() 391 struct ltdc_device *ldev = ddev->dev_private; in ltdc_irq() local [all …]
|
D | drv.c | 71 struct ltdc_device *ldev; in drv_load() local 76 ldev = devm_kzalloc(ddev->dev, sizeof(*ldev), GFP_KERNEL); in drv_load() 77 if (!ldev) in drv_load() 80 ddev->dev_private = (void *)ldev; in drv_load() 120 struct ltdc_device *ldev = ddev->dev_private; in drv_suspend() local 123 WARN_ON(ldev->suspend_state); in drv_suspend() 129 ldev->suspend_state = state; in drv_suspend() 138 struct ltdc_device *ldev = ddev->dev_private; in drv_resume() local 141 if (WARN_ON(!ldev->suspend_state)) in drv_resume() 145 ret = drm_atomic_helper_resume(ddev, ldev->suspend_state); in drv_resume() [all …]
|
/Linux-v5.15/net/ieee802154/6lowpan/ |
D | core.c | 61 static int lowpan_dev_init(struct net_device *ldev) in lowpan_dev_init() argument 63 netdev_lockdep_set_classes(ldev); in lowpan_dev_init() 107 static void lowpan_setup(struct net_device *ldev) in lowpan_setup() argument 109 memset(ldev->broadcast, 0xff, IEEE802154_ADDR_LEN); in lowpan_setup() 111 ldev->hard_header_len = sizeof(struct ipv6hdr); in lowpan_setup() 112 ldev->flags = IFF_BROADCAST | IFF_MULTICAST; in lowpan_setup() 113 ldev->priv_flags |= IFF_NO_QUEUE; in lowpan_setup() 115 ldev->netdev_ops = &lowpan_netdev_ops; in lowpan_setup() 116 ldev->header_ops = &lowpan_header_ops; in lowpan_setup() 117 ldev->needs_free_netdev = true; in lowpan_setup() [all …]
|
D | tx.c | 33 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-v5.15/drivers/net/ethernet/intel/i40e/ |
D | i40e_client.c | 15 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-v5.15/include/linux/net/intel/ |
D | i40e_client.h | 108 struct i40e_info *ldev; member 117 int (*setup_qvlist)(struct i40e_info *ldev, struct i40e_client *client, 120 int (*virtchnl_send)(struct i40e_info *ldev, struct i40e_client *client, 126 void (*request_reset)(struct i40e_info *ldev, 132 int (*update_vsi_ctxt)(struct i40e_info *ldev, 142 int (*open)(struct i40e_info *ldev, struct i40e_client *client); 148 void (*close)(struct i40e_info *ldev, struct i40e_client *client, 152 void (*l2_param_change)(struct i40e_info *ldev, 156 int (*virtchnl_receive)(struct i40e_info *ldev, 161 void (*vf_reset)(struct i40e_info *ldev, [all …]
|
/Linux-v5.15/drivers/leds/ |
D | leds-dac124s085.c | 16 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 …]
|
D | leds-spi-byte.c | 46 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()
|
D | leds-el15203000.c | 72 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 …]
|
D | leds-sc27xx-bltc.c | 49 struct led_classdev ldev; member 62 #define to_sc27xx_led(ldev) \ argument 63 container_of(ldev, struct sc27xx_led, ldev) 117 static int sc27xx_led_set(struct led_classdev *ldev, enum led_brightness value) in sc27xx_led_set() argument 119 struct sc27xx_led *leds = to_sc27xx_led(ldev); in sc27xx_led_set() 146 static int sc27xx_led_pattern_clear(struct led_classdev *ldev) in sc27xx_led_pattern_clear() argument 148 struct sc27xx_led *leds = to_sc27xx_led(ldev); in sc27xx_led_pattern_clear() 164 ldev->brightness = LED_OFF; in sc27xx_led_pattern_clear() 171 static int sc27xx_led_pattern_set(struct led_classdev *ldev, in sc27xx_led_pattern_set() argument 175 struct sc27xx_led *leds = to_sc27xx_led(ldev); in sc27xx_led_pattern_set() [all …]
|
D | leds-lp3944.c | 60 #define ldev_to_led(c) container_of(c, struct lp3944_led_data, ldev) 66 struct led_classdev ldev; member 175 __func__, led->ldev.name, status); in lp3944_led_set() 214 __func__, led->ldev.name, reg, id, status, val); in lp3944_led_set() 307 led->ldev.name = pled->name; in lp3944_configure() 308 led->ldev.max_brightness = 1; in lp3944_configure() 309 led->ldev.brightness_set_blocking = in lp3944_configure() 311 led->ldev.blink_set = lp3944_led_set_blink; in lp3944_configure() 312 led->ldev.flags = LED_CORE_SUSPENDRESUME; in lp3944_configure() 314 err = led_classdev_register(&client->dev, &led->ldev); in lp3944_configure() [all …]
|
/Linux-v5.15/drivers/net/ethernet/intel/iavf/ |
D | iavf_client.c | 17 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 …]
|
/Linux-v5.15/drivers/cpuidle/governors/ |
D | ladder.c | 52 struct ladder_device *ldev, in ladder_do_selection() argument 55 ldev->states[old_idx].stats.promotion_count = 0; in ladder_do_selection() 56 ldev->states[old_idx].stats.demotion_count = 0; in ladder_do_selection() 69 struct ladder_device *ldev = this_cpu_ptr(&ladder_devices); in ladder_select_state() local 78 ladder_do_selection(dev, ldev, last_idx, 0); in ladder_select_state() 82 last_state = &ldev->states[last_idx]; in ladder_select_state() 94 ladder_do_selection(dev, ldev, last_idx, last_idx + 1); in ladder_select_state() 109 ladder_do_selection(dev, ldev, last_idx, i); in ladder_select_state() 118 ladder_do_selection(dev, ldev, last_idx, last_idx - 1); in ladder_select_state() 137 struct ladder_device *ldev = &per_cpu(ladder_devices, dev->cpu); in ladder_enable_device() local [all …]
|
/Linux-v5.15/drivers/acpi/ |
D | proc.c | 45 struct device *ldev; in acpi_system_wakeup_device_seq_show() local 48 ldev = get_device(entry->dev); in acpi_system_wakeup_device_seq_show() 49 if (!ldev) in acpi_system_wakeup_device_seq_show() 59 device_may_wakeup(ldev)) ? in acpi_system_wakeup_device_seq_show() 61 ldev->bus ? ldev->bus->name : in acpi_system_wakeup_device_seq_show() 62 "no-bus", dev_name(ldev)); in acpi_system_wakeup_device_seq_show() 63 put_device(ldev); in acpi_system_wakeup_device_seq_show()
|