/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | lag.c | 96 int mlx5_lag_dev_get_netdev_idx(struct mlx5_lag *ldev, in mlx5_lag_dev_get_netdev_idx() argument 102 if (ldev->pf[i].netdev == ndev) in mlx5_lag_dev_get_netdev_idx() 108 static bool __mlx5_lag_is_roce(struct mlx5_lag *ldev) in __mlx5_lag_is_roce() argument 110 return !!(ldev->flags & MLX5_LAG_FLAG_ROCE); in __mlx5_lag_is_roce() 113 static bool __mlx5_lag_is_sriov(struct mlx5_lag *ldev) in __mlx5_lag_is_sriov() argument 115 return !!(ldev->flags & MLX5_LAG_FLAG_SRIOV); in __mlx5_lag_is_sriov() 141 void mlx5_modify_lag(struct mlx5_lag *ldev, in mlx5_modify_lag() argument 144 struct mlx5_core_dev *dev0 = ldev->pf[MLX5_LAG_P1].dev; in mlx5_modify_lag() 151 if (v2p_port1 != ldev->v2p_map[MLX5_LAG_P1] || in mlx5_modify_lag() 152 v2p_port2 != ldev->v2p_map[MLX5_LAG_P2]) { in mlx5_modify_lag() [all …]
|
D | lag_mp.c | 12 static bool mlx5_lag_multipath_check_prereq(struct mlx5_lag *ldev) in mlx5_lag_multipath_check_prereq() argument 14 if (!mlx5_lag_is_ready(ldev)) in mlx5_lag_multipath_check_prereq() 17 return mlx5_esw_multipath_prereq(ldev->pf[MLX5_LAG_P1].dev, in mlx5_lag_multipath_check_prereq() 18 ldev->pf[MLX5_LAG_P2].dev); in mlx5_lag_multipath_check_prereq() 21 static bool __mlx5_lag_is_multipath(struct mlx5_lag *ldev) in __mlx5_lag_is_multipath() argument 23 return !!(ldev->flags & MLX5_LAG_FLAG_MULTIPATH); in __mlx5_lag_is_multipath() 28 struct mlx5_lag *ldev; in mlx5_lag_is_multipath() local 31 ldev = mlx5_lag_dev_get(dev); in mlx5_lag_is_multipath() 32 res = ldev && __mlx5_lag_is_multipath(ldev); in mlx5_lag_is_multipath() 47 static void mlx5_lag_set_port_affinity(struct mlx5_lag *ldev, in mlx5_lag_set_port_affinity() argument [all …]
|
D | lag.h | 58 __mlx5_lag_is_active(struct mlx5_lag *ldev) in __mlx5_lag_is_active() argument 60 return !!(ldev->flags & MLX5_LAG_MODE_FLAGS); in __mlx5_lag_is_active() 64 mlx5_lag_is_ready(struct mlx5_lag *ldev) in mlx5_lag_is_ready() argument 66 return ldev->flags & MLX5_LAG_FLAG_READY; in mlx5_lag_is_ready() 69 void mlx5_modify_lag(struct mlx5_lag *ldev, 71 int mlx5_activate_lag(struct mlx5_lag *ldev, 74 int mlx5_lag_dev_get_netdev_idx(struct mlx5_lag *ldev,
|
/kernel/linux/linux-5.10/drivers/staging/kpc2000/kpc_dma/ |
D | kpc_dma_driver.c | 38 static void kpc_dma_add_device(struct kpc_dma_device *ldev) in kpc_dma_add_device() argument 41 list_add(&ldev->list, &kpc_dma_list); in kpc_dma_add_device() 45 static void kpc_dma_del_device(struct kpc_dma_device *ldev) in kpc_dma_del_device() argument 48 list_del(&ldev->list); in kpc_dma_del_device() 55 struct kpc_dma_device *ldev; in show_engine_regs() local 60 ldev = platform_get_drvdata(pldev); in show_engine_regs() 61 if (!ldev) in show_engine_regs() 73 readl(ldev->eng_regs + 1), in show_engine_regs() 74 readl(ldev->eng_regs + 2), in show_engine_regs() 75 readl(ldev->eng_regs + 3), in show_engine_regs() [all …]
|
D | fileops.c | 39 struct kpc_dma_device *ldev; in kpc_dma_transfer() local 52 ldev = priv->ldev; in kpc_dma_transfer() 56 dev_err(&priv->ldev->pldev->dev, "Couldn't kmalloc space for the aio data\n"); in kpc_dma_transfer() 62 acd->ldev = priv->ldev; in kpc_dma_transfer() 72 dev_err(&priv->ldev->pldev->dev, "Couldn't kmalloc space for the page pointers\n"); in kpc_dma_transfer() 86 dev_err(&priv->ldev->pldev->dev, "Couldn't pin_user_pages (%d)\n", rv); in kpc_dma_transfer() 94 dev_err(&priv->ldev->pldev->dev, "Couldn't alloc sg_table (%d)\n", rv); in kpc_dma_transfer() 99 acd->mapped_entry_count = dma_map_sg(&ldev->pldev->dev, acd->sgt.sgl, acd->sgt.nents, ldev->dir); in kpc_dma_transfer() 101 dev_err(&priv->ldev->pldev->dev, "Couldn't dma_map_sg (%d)\n", acd->mapped_entry_count); in kpc_dma_transfer() 110 lock_engine(ldev); in kpc_dma_transfer() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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 | 62 struct lima_device *ldev = dev_get_drvdata(dev); in lima_devfreq_get_dev_status() local 63 struct lima_devfreq *devfreq = &ldev->devfreq; in lima_devfreq_get_dev_status() 66 status->current_frequency = clk_get_rate(ldev->clk_gpu); in lima_devfreq_get_dev_status() 80 dev_dbg(ldev->dev, "busy %lu total %lu %lu %% freq %lu MHz\n", in lima_devfreq_get_dev_status() 94 void lima_devfreq_fini(struct lima_device *ldev) in lima_devfreq_fini() argument 96 struct lima_devfreq *devfreq = &ldev->devfreq; in lima_devfreq_fini() 104 devm_devfreq_remove_device(ldev->dev, devfreq->devfreq); in lima_devfreq_fini() 109 dev_pm_opp_of_remove_table(ldev->dev); in lima_devfreq_fini() 124 int lima_devfreq_init(struct lima_device *ldev) in lima_devfreq_init() argument 127 struct device *dev = ldev->dev; in lima_devfreq_init() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/stm/ |
D | ltdc.c | 55 #define REG_OFS (ldev->caps.reg_ofs) 369 struct ltdc_device *ldev = ddev->dev_private; in ltdc_irq_thread() local 373 if (ldev->irq_status & ISR_LIF) in ltdc_irq_thread() 377 mutex_lock(&ldev->err_lock); in ltdc_irq_thread() 378 if (ldev->irq_status & ISR_FUIF) in ltdc_irq_thread() 379 ldev->error_status |= ISR_FUIF; in ltdc_irq_thread() 380 if (ldev->irq_status & ISR_TERRIF) in ltdc_irq_thread() 381 ldev->error_status |= ISR_TERRIF; in ltdc_irq_thread() 382 mutex_unlock(&ldev->err_lock); in ltdc_irq_thread() 390 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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/ |
D | i40e_client.c | 16 static int i40e_client_virtchnl_send(struct i40e_info *ldev, 20 static int i40e_client_setup_qvlist(struct i40e_info *ldev, 24 static void i40e_client_request_reset(struct i40e_info *ldev, 28 static int i40e_client_update_vsi_ctxt(struct i40e_info *ldev, 139 static void i40e_client_release_qvlist(struct i40e_info *ldev) in i40e_client_release_qvlist() argument 141 struct i40e_qvlist_info *qvlist_info = ldev->qvlist_info; in i40e_client_release_qvlist() 144 if (!ldev->qvlist_info) in i40e_client_release_qvlist() 148 struct i40e_pf *pf = ldev->pf; in i40e_client_release_qvlist() 158 kfree(ldev->qvlist_info); in i40e_client_release_qvlist() 159 ldev->qvlist_info = NULL; in i40e_client_release_qvlist() [all …]
|
/kernel/linux/linux-5.10/drivers/leds/ |
D | leds-el15203000.c | 72 struct led_classdev ldev; member 128 static int el15203000_set_blocking(struct led_classdev *ldev, in el15203000_set_blocking() argument 131 struct el15203000_led *led = container_of(ldev, in el15203000_set_blocking() 133 ldev); in el15203000_set_blocking() 138 static int el15203000_pattern_set_S(struct led_classdev *ldev, in el15203000_pattern_set_S() argument 142 struct el15203000_led *led = container_of(ldev, in el15203000_pattern_set_S() 144 ldev); in el15203000_pattern_set_S() 191 static int el15203000_pattern_set_P(struct led_classdev *ldev, in el15203000_pattern_set_P() argument 196 struct el15203000_led *led = container_of(ldev, in el15203000_pattern_set_P() 198 ldev); in el15203000_pattern_set_P() [all …]
|
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-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 …]
|
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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/include/linux/net/intel/ |
D | i40e_client.h | 109 int (*setup_qvlist)(struct i40e_info *ldev, struct i40e_client *client, 112 int (*virtchnl_send)(struct i40e_info *ldev, struct i40e_client *client, 118 void (*request_reset)(struct i40e_info *ldev, 124 int (*update_vsi_ctxt)(struct i40e_info *ldev, 134 int (*open)(struct i40e_info *ldev, struct i40e_client *client); 140 void (*close)(struct i40e_info *ldev, struct i40e_client *client, 144 void (*l2_param_change)(struct i40e_info *ldev, 148 int (*virtchnl_receive)(struct i40e_info *ldev, 153 void (*vf_reset)(struct i40e_info *ldev, 157 void (*vf_enable)(struct i40e_info *ldev, [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/i40iw/ |
D | i40iw_main.c | 106 static struct i40iw_handler *i40iw_find_i40e_handler(struct i40e_info *ldev) in i40iw_find_i40e_handler() argument 113 if (hdl->ldev.netdev == ldev->netdev) { in i40iw_find_i40e_handler() 133 if (hdl->ldev.netdev == netdev) { in i40iw_find_netdev() 755 struct i40e_info *ldev = iwdev->ldev; in i40iw_request_reset() local 757 ldev->ops->request_reset(ldev, iwdev->client, 1); in i40iw_request_reset() 770 struct i40e_info *ldev) in i40iw_setup_ceqs() argument 779 if (ldev && ldev->ops && ldev->ops->setup_qvlist) { in i40iw_setup_ceqs() 780 status = ldev->ops->setup_qvlist(ldev, &i40iw_client, in i40iw_setup_ceqs() 1302 struct i40e_info *ldev) in i40iw_initialize_dev() argument 1339 info.hmc_fn_id = ldev->fid; in i40iw_initialize_dev() [all …]
|