Home
last modified time | relevance | path

Searched refs:nb (Results 1 – 25 of 299) sorted by relevance

12345678910>>...12

/drivers/gpu/drm/nouveau/nvkm/engine/device/
Dacpi.c30 nvkm_acpi_ntfy(struct notifier_block *nb, unsigned long val, void *data) in nvkm_acpi_ntfy() argument
33 container_of(nb, typeof(*device), acpi.nb); in nvkm_acpi_ntfy()
47 unregister_acpi_notifier(&device->acpi.nb); in nvkm_acpi_fini()
55 device->acpi.nb.notifier_call = nvkm_acpi_ntfy; in nvkm_acpi_init()
56 register_acpi_notifier(&device->acpi.nb); in nvkm_acpi_init()
/drivers/devfreq/
Dgovernor_passive.c128 static int devfreq_passive_notifier_call(struct notifier_block *nb, in devfreq_passive_notifier_call() argument
132 = container_of(nb, struct devfreq_passive_data, nb); in devfreq_passive_notifier_call()
159 struct notifier_block *nb = &p_data->nb; in devfreq_passive_event_handler() local
170 nb->notifier_call = devfreq_passive_notifier_call; in devfreq_passive_event_handler()
171 ret = devm_devfreq_register_notifier(dev, parent, nb, in devfreq_passive_event_handler()
175 devm_devfreq_unregister_notifier(dev, parent, nb, in devfreq_passive_event_handler()
Ddevfreq.c464 static int devfreq_notifier_call(struct notifier_block *nb, unsigned long type, in devfreq_notifier_call() argument
467 struct devfreq *devfreq = container_of(nb, struct devfreq, nb); in devfreq_notifier_call()
565 devfreq->nb.notifier_call = devfreq_notifier_call; in devfreq_add_device()
1305 ret = srcu_notifier_chain_register(nh, &devfreq->nb); in devfreq_register_opp_notifier()
1332 ret = srcu_notifier_chain_unregister(nh, &devfreq->nb); in devfreq_unregister_opp_notifier()
1393 struct notifier_block *nb, in devfreq_register_notifier() argument
1404 &devfreq->transition_notifier_list, nb); in devfreq_register_notifier()
1421 struct notifier_block *nb, in devfreq_unregister_notifier() argument
1432 &devfreq->transition_notifier_list, nb); in devfreq_unregister_notifier()
1444 struct notifier_block *nb; member
[all …]
/drivers/extcon/
Ddevres.c43 struct notifier_block *nb; member
50 extcon_unregister_notifier(this->edev, this->id, this->nb); in devm_extcon_dev_notifier_unreg()
176 unsigned int id, struct notifier_block *nb) in devm_extcon_register_notifier() argument
186 ret = extcon_register_notifier(edev, id, nb); in devm_extcon_register_notifier()
194 ptr->nb = nb; in devm_extcon_register_notifier()
211 struct notifier_block *nb) in devm_extcon_unregister_notifier() argument
/drivers/regulator/
Ddevres.c419 struct notifier_block *nb; member
428 return match->regulator == target->regulator && match->nb == target->nb; in devm_regulator_match_notifier()
435 regulator_unregister_notifier(match->regulator, match->nb); in devm_regulator_destroy_notifier()
449 struct notifier_block *nb) in devm_regulator_register_notifier() argument
461 match->nb = nb; in devm_regulator_register_notifier()
463 ret = regulator_register_notifier(regulator, nb); in devm_regulator_register_notifier()
487 struct notifier_block *nb) in devm_regulator_unregister_notifier() argument
493 match.nb = nb; in devm_regulator_unregister_notifier()
/drivers/video/fbdev/core/
Dfb_notify.c23 int fb_register_client(struct notifier_block *nb) in fb_register_client() argument
25 return blocking_notifier_chain_register(&fb_notifier_list, nb); in fb_register_client()
33 int fb_unregister_client(struct notifier_block *nb) in fb_unregister_client() argument
35 return blocking_notifier_chain_unregister(&fb_notifier_list, nb); in fb_unregister_client()
/drivers/usb/core/
Dnotify.c27 void usb_register_notify(struct notifier_block *nb) in usb_register_notify() argument
29 blocking_notifier_chain_register(&usb_notifier_list, nb); in usb_register_notify()
40 void usb_unregister_notify(struct notifier_block *nb) in usb_unregister_notify() argument
42 blocking_notifier_chain_unregister(&usb_notifier_list, nb); in usb_unregister_notify()
Dledtrig-usbport.c20 struct notifier_block nb; member
215 static int usbport_trig_notify(struct notifier_block *nb, unsigned long action, in usbport_trig_notify() argument
219 container_of(nb, struct usbport_trig_data, nb); in usbport_trig_notify()
260 usbport_data->nb.notifier_call = usbport_trig_notify, in usbport_trig_activate()
262 usb_register_notify(&usbport_data->nb); in usbport_trig_activate()
283 usb_unregister_notify(&usbport_data->nb); in usbport_trig_deactivate()
/drivers/staging/clocking-wizard/
Dclk-xlnx-clock-wizard.c65 struct notifier_block nb; member
75 #define to_clk_wzrd(_nb) container_of(_nb, struct clk_wzrd, nb)
84 static int clk_wzrd_clk_notifier(struct notifier_block *nb, unsigned long event, in clk_wzrd_clk_notifier() argument
89 struct clk_wzrd *clk_wzrd = to_clk_wzrd(nb); in clk_wzrd_clk_notifier()
278 clk_wzrd->nb.notifier_call = clk_wzrd_clk_notifier; in clk_wzrd_probe()
281 &clk_wzrd->nb); in clk_wzrd_probe()
286 ret = clk_notifier_register(clk_wzrd->axi_clk, &clk_wzrd->nb); in clk_wzrd_probe()
318 clk_notifier_unregister(clk_wzrd->axi_clk, &clk_wzrd->nb); in clk_wzrd_remove()
319 clk_notifier_unregister(clk_wzrd->clk_in1, &clk_wzrd->nb); in clk_wzrd_remove()
/drivers/acpi/
Dhed.c36 int register_acpi_hed_notifier(struct notifier_block *nb) in register_acpi_hed_notifier() argument
38 return blocking_notifier_chain_register(&acpi_hed_notify_list, nb); in register_acpi_hed_notifier()
42 void unregister_acpi_hed_notifier(struct notifier_block *nb) in unregister_acpi_hed_notifier() argument
44 blocking_notifier_chain_unregister(&acpi_hed_notify_list, nb); in unregister_acpi_hed_notifier()
Devent.c40 int register_acpi_notifier(struct notifier_block *nb) in register_acpi_notifier() argument
42 return blocking_notifier_chain_register(&acpi_chain_head, nb); in register_acpi_notifier()
46 int unregister_acpi_notifier(struct notifier_block *nb) in unregister_acpi_notifier() argument
48 return blocking_notifier_chain_unregister(&acpi_chain_head, nb); in unregister_acpi_notifier()
/drivers/power/supply/
Daxp288_charger.c166 struct notifier_block nb; member
660 static int axp288_charger_handle_cable_evt(struct notifier_block *nb, in axp288_charger_handle_cable_evt() argument
664 container_of(nb, struct axp288_chrg_info, cable.nb); in axp288_charger_handle_cable_evt()
683 static int axp288_charger_handle_otg_evt(struct notifier_block *nb, in axp288_charger_handle_otg_evt() argument
687 container_of(nb, struct axp288_chrg_info, otg.id_nb); in axp288_charger_handle_otg_evt()
843 info->cable.nb.notifier_call = axp288_charger_handle_cable_evt; in axp288_charger_probe()
845 &info->cable.nb); in axp288_charger_probe()
853 &info->cable.nb); in axp288_charger_probe()
858 EXTCON_CHG_USB_SDP, &info->cable.nb); in axp288_charger_probe()
863 &info->cable.nb); in axp288_charger_probe()
[all …]
Disp1704_charger.c64 struct notifier_block nb; member
315 static int isp1704_notifier_call(struct notifier_block *nb, in isp1704_notifier_call() argument
319 container_of(nb, struct isp1704_charger, nb); in isp1704_notifier_call()
490 isp->nb.notifier_call = isp1704_notifier_call; in isp1704_charger_probe()
492 ret = usb_register_notifier(isp->phy, &isp->nb); in isp1704_charger_probe()
533 usb_unregister_notifier(isp->phy, &isp->nb); in isp1704_charger_remove()
/drivers/net/wireless/marvell/libertas/
Dif_cs.c352 static int if_cs_send_cmd(struct lbs_private *priv, u8 *buf, u16 nb) in if_cs_send_cmd() argument
373 if_cs_write16(card, IF_CS_CMD_LEN, nb); in if_cs_send_cmd()
375 if_cs_write16_rep(card, IF_CS_CMD, buf, nb / 2); in if_cs_send_cmd()
377 if (nb & 1) in if_cs_send_cmd()
378 if_cs_write8(card, IF_CS_CMD, buf[nb-1]); in if_cs_send_cmd()
398 static void if_cs_send_data(struct lbs_private *priv, u8 *buf, u16 nb) in if_cs_send_data() argument
409 if_cs_write16(card, IF_CS_WRITE_LEN, nb); in if_cs_send_data()
412 if_cs_write16_rep(card, IF_CS_WRITE, buf, nb / 2); in if_cs_send_data()
413 if (nb & 1) in if_cs_send_data()
414 if_cs_write8(card, IF_CS_WRITE, buf[nb-1]); in if_cs_send_data()
[all …]
/drivers/scsi/
Dmac53c94.c199 int nb, stat, seq, intr; in mac53c94_interrupt() local
268 nb = cmd->SCp.this_residual; in mac53c94_interrupt()
269 if (nb > 0xfff0) in mac53c94_interrupt()
270 nb = 0xfff0; in mac53c94_interrupt()
271 cmd->SCp.this_residual -= nb; in mac53c94_interrupt()
272 writeb(nb, &regs->count_lo); in mac53c94_interrupt()
273 writeb(nb >> 8, &regs->count_mid); in mac53c94_interrupt()
301 nb = cmd->SCp.this_residual; in mac53c94_interrupt()
302 if (nb > 0xfff0) in mac53c94_interrupt()
303 nb = 0xfff0; in mac53c94_interrupt()
[all …]
/drivers/power/avs/
Drockchip-io-domain.c68 struct notifier_block nb; member
100 static int rockchip_iodomain_notify(struct notifier_block *nb, in rockchip_iodomain_notify() argument
105 container_of(nb, struct rockchip_iodomain_supply, nb); in rockchip_iodomain_notify()
412 supply->nb.notifier_call = rockchip_iodomain_notify; in rockchip_iodomain_probe()
421 ret = regulator_register_notifier(reg, &supply->nb); in rockchip_iodomain_probe()
441 &io_supply->nb); in rockchip_iodomain_probe()
457 &io_supply->nb); in rockchip_iodomain_remove()
/drivers/usb/phy/
Dphy.c27 struct notifier_block *nb; member
91 if (res->nb) in devm_usb_phy_release2()
92 usb_unregister_notifier(res->phy, res->nb); in devm_usb_phy_release2()
187 struct notifier_block *nb) in devm_usb_get_phy_by_node() argument
212 if (nb) in devm_usb_get_phy_by_node()
213 usb_register_notifier(phy, nb); in devm_usb_get_phy_by_node()
215 ptr->nb = nb; in devm_usb_get_phy_by_node()
Dphy-omap-otg.c71 static int omap_otg_id_notifier(struct notifier_block *nb, in omap_otg_id_notifier() argument
74 struct otg_device *otg_dev = container_of(nb, struct otg_device, id_nb); in omap_otg_id_notifier()
82 static int omap_otg_vbus_notifier(struct notifier_block *nb, in omap_otg_vbus_notifier() argument
85 struct otg_device *otg_dev = container_of(nb, struct otg_device, in omap_otg_vbus_notifier()
/drivers/media/usb/pvrusb2/
Dpvrusb2-io.c320 struct pvr2_buffer **nb; in pvr2_stream_buffer_count() local
321 nb = kmalloc(scnt * sizeof(*nb),GFP_KERNEL); in pvr2_stream_buffer_count()
322 if (!nb) return -ENOMEM; in pvr2_stream_buffer_count()
324 memcpy(nb,sp->buffers, in pvr2_stream_buffer_count()
325 sp->buffer_slot_count * sizeof(*nb)); in pvr2_stream_buffer_count()
328 sp->buffers = nb; in pvr2_stream_buffer_count()
355 struct pvr2_buffer **nb = NULL; in pvr2_stream_buffer_count() local
357 nb = kmemdup(sp->buffers, scnt * sizeof(*nb), in pvr2_stream_buffer_count()
359 if (!nb) return -ENOMEM; in pvr2_stream_buffer_count()
362 sp->buffers = nb; in pvr2_stream_buffer_count()
/drivers/base/power/
Dclock_ops.c462 static int pm_clk_notify(struct notifier_block *nb, in pm_clk_notify() argument
472 clknb = container_of(nb, struct pm_clk_notifier_block, nb); in pm_clk_notify()
590 static int pm_clk_notify(struct notifier_block *nb, in pm_clk_notify() argument
599 clknb = container_of(nb, struct pm_clk_notifier_block, nb); in pm_clk_notify()
642 clknb->nb.notifier_call = pm_clk_notify; in pm_clk_add_notifier()
643 bus_register_notifier(bus, &clknb->nb); in pm_clk_add_notifier()
/drivers/gpu/drm/exynos/
Dexynos_drm_ipp.h190 extern int exynos_drm_ippnb_register(struct notifier_block *nb);
191 extern int exynos_drm_ippnb_unregister(struct notifier_block *nb);
235 static inline int exynos_drm_ippnb_register(struct notifier_block *nb) in exynos_drm_ippnb_register() argument
240 static inline int exynos_drm_ippnb_unregister(struct notifier_block *nb) in exynos_drm_ippnb_unregister() argument
/drivers/net/ethernet/mellanox/mlx5/core/
Dlag.c63 struct notifier_block nb; member
385 ldev = container_of(this, struct mlx5_lag, nb); in mlx5_lag_netdev_event()
491 if (!ldev->nb.notifier_call) { in mlx5_lag_add()
492 ldev->nb.notifier_call = mlx5_lag_netdev_event; in mlx5_lag_add()
493 if (register_netdevice_notifier(&ldev->nb)) { in mlx5_lag_add()
494 ldev->nb.notifier_call = NULL; in mlx5_lag_add()
520 if (ldev->nb.notifier_call) in mlx5_lag_remove()
521 unregister_netdevice_notifier(&ldev->nb); in mlx5_lag_remove()
/drivers/bcma/
Ddriver_chipcommon.c59 u32 nb; in bcma_chipco_watchdog_get_max_timer() local
63 nb = 32; in bcma_chipco_watchdog_get_max_timer()
65 nb = 16; in bcma_chipco_watchdog_get_max_timer()
67 nb = (cc->core->id.rev >= 37) ? 32 : 24; in bcma_chipco_watchdog_get_max_timer()
69 nb = 28; in bcma_chipco_watchdog_get_max_timer()
71 if (nb == 32) in bcma_chipco_watchdog_get_max_timer()
74 return (1 << nb) - 1; in bcma_chipco_watchdog_get_max_timer()
/drivers/usb/musb/
Dux500.c109 static int musb_otg_notifications(struct notifier_block *nb, in musb_otg_notifications() argument
112 struct musb *musb = container_of(nb, struct musb, nb); in musb_otg_notifications()
169 musb->nb.notifier_call = musb_otg_notifications; in ux500_musb_init()
170 status = usb_register_notifier(musb->xceiv, &musb->nb); in ux500_musb_init()
183 usb_unregister_notifier(musb->xceiv, &musb->nb); in ux500_musb_exit()
/drivers/video/fbdev/omap/
Domapfb.h145 struct notifier_block nb; member
162 void (*bind_client) (struct omapfb_notifier_block *nb);
237 extern int omapfb_register_client(struct omapfb_notifier_block *nb,
240 extern int omapfb_unregister_client(struct omapfb_notifier_block *nb);

12345678910>>...12