/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/ |
H A D | oal_netbuf.h | 98 #define OAL_NETBUF_QUEUE_TAIL(q, nb) NetBufQueueEnqueue(q, nb)
107 #define oal_netbuf_free(nb) NetBufFree(nb)
108 #define oal_netbuf_expand_head(nb, head, tail, mask) NetBufResizeRoom(nb, head, tail)
109 #define oal_netbuf_realloc_tailroom(nb, tail) (NetBufResizeRoom(nb, 0, tail) == 0 ? nb : NULL)
110 #define oal_netbuf_concat(nb, cn 139 set_oal_netbuf_next(NetBuf *nb, NetBuf *new) set_oal_netbuf_next() argument 144 set_oal_netbuf_prev(NetBuf *nb, NetBuf *new) set_oal_netbuf_prev() argument 248 oal_netbuf_get_appointed_netbuf(NetBuf *nb, uint8_t num, NetBuf **expect_netbuf) oal_netbuf_get_appointed_netbuf() argument 283 NetBuf *nb = NULL; oal_netbuf_alloc() local 296 NetBuf *nb = NULL; oal_netbuf_splice_sync() local [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/ |
H A D | osal_notifier.c | 30 struct notifier_block *nb;
member 34 static struct osal_notifier_block *osal_find_ob(struct notifier_block *nb)
in osal_find_ob() argument 38 osal_trace("find nb failed! nb_list is empty!\n");
in osal_find_ob() 43 if (ns->nb == nb) {
in osal_find_ob() 51 static int osal_del_nb(struct osal_notifier_block *nb)
in osal_del_nb() argument 56 osal_trace("find nb failed! nb_list is empty!\n");
in osal_del_nb() 61 if (ns->osal_nb == nb) {
in osal_del_nb() 67 osal_trace("del nb failed!\n");
in osal_del_nb() 71 static int osal_notifier(struct notifier_block *nb, unsigne argument 82 struct notifier_block *nb = NULL; osal_register_reboot_notifier() local 110 osal_unregister_reboot_notifier(struct osal_notifier_block *nb) osal_unregister_reboot_notifier() argument [all...] |
/device/soc/rockchip/common/sdk_linux/include/linux/ |
H A D | extcon.h | 195 * extcon_register_notifier(*edev, id, *nb) : Register a notifier block 197 * extcon_register_notifier_all(*edev, *nb) : Register a notifier block 200 int extcon_register_notifier(struct extcon_dev *edev, unsigned int id, struct notifier_block *nb); 201 int extcon_unregister_notifier(struct extcon_dev *edev, unsigned int id, struct notifier_block *nb); 203 struct notifier_block *nb); 205 struct notifier_block *nb); 207 int extcon_register_notifier_all(struct extcon_dev *edev, struct notifier_block *nb); 208 int extcon_unregister_notifier_all(struct extcon_dev *edev, struct notifier_block *nb); 209 int devm_extcon_register_notifier_all(struct device *dev, struct extcon_dev *edev, struct notifier_block *nb); 210 void devm_extcon_unregister_notifier_all(struct device *dev, struct extcon_dev *edev, struct notifier_block *nb); 239 extcon_register_notifier(struct extcon_dev *edev, unsigned int id, struct notifier_block *nb) extcon_register_notifier() argument 244 extcon_unregister_notifier(struct extcon_dev *edev, unsigned int id, struct notifier_block *nb) extcon_unregister_notifier() argument 249 devm_extcon_register_notifier(struct device *dev, struct extcon_dev *edev, unsigned int id, struct notifier_block *nb) devm_extcon_register_notifier() argument 255 devm_extcon_unregister_notifier(struct device *dev, struct extcon_dev *edev, unsigned int id, struct notifier_block *nb) devm_extcon_unregister_notifier() argument 260 extcon_register_notifier_all(struct extcon_dev *edev, struct notifier_block *nb) extcon_register_notifier_all() argument 265 extcon_unregister_notifier_all(struct extcon_dev *edev, struct notifier_block *nb) extcon_unregister_notifier_all() argument 270 devm_extcon_register_notifier_all(struct device *dev, struct extcon_dev *edev, struct notifier_block *nb) devm_extcon_register_notifier_all() argument 276 devm_extcon_unregister_notifier_all(struct device *dev, struct extcon_dev *edev, struct notifier_block *nb) devm_extcon_unregister_notifier_all() argument 313 extcon_register_interest(struct extcon_specific_cable_nb *obj, const char *extcon_name, const char *cable_name, struct notifier_block *nb) extcon_register_interest() argument [all...] |
H A D | reboot.h | 51 extern int register_pre_restart_handler(struct notifier_block *nb); 52 extern int unregister_pre_restart_handler(struct notifier_block *nb); 55 static inline int register_pre_restart_handler(struct notifier_block *nb) in register_pre_restart_handler() argument 60 static inline int unregister_pre_restart_handler(struct notifier_block *nb) in unregister_pre_restart_handler() argument
|
/device/soc/rockchip/common/sdk_linux/kernel/ |
H A D | reboot.c | 81 * @nb: Info about notifier function to be called 89 int register_reboot_notifier(struct notifier_block *nb) in register_reboot_notifier() argument 91 return blocking_notifier_chain_register(&reboot_notifier_list, nb); in register_reboot_notifier() 97 * @nb: Hook to be unregistered 104 int unregister_reboot_notifier(struct notifier_block *nb) in unregister_reboot_notifier() argument 106 return blocking_notifier_chain_unregister(&reboot_notifier_list, nb); in unregister_reboot_notifier() 115 int devm_register_reboot_notifier(struct device *dev, struct notifier_block *nb) in devm_register_reboot_notifier() argument 125 ret = register_reboot_notifier(nb); in devm_register_reboot_notifier() 127 *rcnb = nb; in devm_register_reboot_notifier() 146 * @nb 181 register_restart_handler(struct notifier_block *nb) register_restart_handler() argument 196 unregister_restart_handler(struct notifier_block *nb) unregister_restart_handler() argument 221 register_pre_restart_handler(struct notifier_block *nb) register_pre_restart_handler() argument 227 unregister_pre_restart_handler(struct notifier_block *nb) unregister_pre_restart_handler() argument [all...] |
/device/soc/rockchip/common/sdk_linux/include/linux/power/ |
H A D | rk_usbbc.h | 26 extern int rk_bc_detect_notifier_register(struct notifier_block *nb, enum bc_port_type *type); 27 extern int rk_bc_detect_notifier_unregister(struct notifier_block *nb); 34 static inline int rk_bc_detect_notifier_register(struct notifier_block *nb, enum bc_port_type *type) in rk_bc_detect_notifier_register() argument 39 static inline int rk_bc_detect_notifier_unregister(struct notifier_block *nb) in rk_bc_detect_notifier_unregister() argument
|
/device/soc/rockchip/common/sdk_linux/include/soc/rockchip/ |
H A D | rockchip-system-status.h | 10 int rockchip_register_system_status_notifier(struct notifier_block *nb); 11 int rockchip_unregister_system_status_notifier(struct notifier_block *nb); 18 static inline int rockchip_register_system_status_notifier(struct notifier_block *nb) in rockchip_register_system_status_notifier() argument 23 static inline int rockchip_unregister_system_status_notifier(struct notifier_block *nb) in rockchip_unregister_system_status_notifier() argument
|
/device/soc/rockchip/rk3588/kernel/include/linux/power/ |
H A D | rk_usbbc.h | 26 extern int rk_bc_detect_notifier_register(struct notifier_block *nb, 28 extern int rk_bc_detect_notifier_unregister(struct notifier_block *nb); 32 static inline int rk_bc_detect_notifier_register(struct notifier_block *nb, in rk_bc_detect_notifier_register() argument 38 static inline int rk_bc_detect_notifier_unregister(struct notifier_block *nb) in rk_bc_detect_notifier_unregister() argument
|
/device/soc/rockchip/rk3588/kernel/include/soc/rockchip/ |
H A D | rockchip-system-status.h | 10 int rockchip_register_system_status_notifier(struct notifier_block *nb); 11 int rockchip_unregister_system_status_notifier(struct notifier_block *nb); 19 rockchip_register_system_status_notifier(struct notifier_block *nb) in rockchip_register_system_status_notifier() argument 25 rockchip_unregister_system_status_notifier(struct notifier_block *nb) in rockchip_unregister_system_status_notifier() argument
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/platform/devicetree/ |
H A D | mali_kbase_clk_rate_trace.c | 70 void *gpu_clk_handle, struct notifier_block *nb) in gpu_clk_notifier_register() 86 return clk_notifier_register((struct clk *)gpu_clk_handle, nb); in gpu_clk_notifier_register() 90 void *gpu_clk_handle, struct notifier_block *nb) in gpu_clk_notifier_unregister() 97 clk_notifier_unregister((struct clk *)gpu_clk_handle, nb); in gpu_clk_notifier_unregister() 69 gpu_clk_notifier_register(struct kbase_device *kbdev, void *gpu_clk_handle, struct notifier_block *nb) gpu_clk_notifier_register() argument 89 gpu_clk_notifier_unregister(struct kbase_device *kbdev, void *gpu_clk_handle, struct notifier_block *nb) gpu_clk_notifier_unregister() argument
|
/device/soc/rockchip/common/vendor/drivers/gpu/drm/rockchip/ebc-dev/ |
H A D | ebc_dev.h | 94 int ebc_register_notifier(struct notifier_block *nb); 95 int ebc_unregister_notifier(struct notifier_block *nb); 98 static inline int ebc_register_notifier(struct notifier_block *nb) in ebc_register_notifier() argument 103 static inline int ebc_unregister_notifier(struct notifier_block *nb) in ebc_unregister_notifier() argument
|
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/rockchip/ebc-dev/ |
H A D | ebc_dev.h | 94 int ebc_register_notifier(struct notifier_block *nb); 95 int ebc_unregister_notifier(struct notifier_block *nb); 98 static inline int ebc_register_notifier(struct notifier_block *nb) in ebc_register_notifier() argument 103 static inline int ebc_unregister_notifier(struct notifier_block *nb) in ebc_unregister_notifier() argument
|
/device/soc/rockchip/rk3588/kernel/drivers/gpu/drm/rockchip/ebc-dev/ |
H A D | ebc_dev.h | 94 int ebc_register_notifier(struct notifier_block *nb); 95 int ebc_unregister_notifier(struct notifier_block *nb); 98 static inline int ebc_register_notifier(struct notifier_block *nb) in ebc_register_notifier() argument 103 static inline int ebc_unregister_notifier(struct notifier_block *nb) in ebc_unregister_notifier() argument
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/arbiter/ |
H A D | mali_kbase_arbiter_pm.c | 1061 if (arb_freq->nb) in kbase_arbiter_pm_update_gpu_freq() 1062 arb_freq->nb->notifier_call(arb_freq->nb, in kbase_arbiter_pm_update_gpu_freq() 1110 * @nb: notifier block containing the callback function pointer 1118 void *gpu_clk_handle, struct notifier_block *nb) in arb_gpu_clk_notifier_register() 1124 if (!arb_dev_freq->nb) in arb_gpu_clk_notifier_register() 1125 arb_dev_freq->nb = nb; in arb_gpu_clk_notifier_register() 1136 * @nb: notifier block containing the callback function pointer 1143 void *gpu_clk_handle, struct notifier_block *nb) in arb_gpu_clk_notifier_unregister() 1117 arb_gpu_clk_notifier_register(struct kbase_device *kbdev, void *gpu_clk_handle, struct notifier_block *nb) arb_gpu_clk_notifier_register() argument 1142 arb_gpu_clk_notifier_unregister(struct kbase_device *kbdev, void *gpu_clk_handle, struct notifier_block *nb) arb_gpu_clk_notifier_unregister() argument [all...] |
/device/soc/rockchip/common/vendor/drivers/rockchip/ |
H A D | rockchip_debug.c | 197 static int rockchip_panic_notify_edpcsr(struct notifier_block *nb, unsigned long event, void *p)
in rockchip_panic_notify_edpcsr() argument 254 static int rockchip_panic_notify_pmpcsr(struct notifier_block *nb, unsigned long event, void *p)
in rockchip_panic_notify_pmpcsr() argument 309 static int rockchip_panic_notify_pmpcsr(struct notifier_block *nb, unsigned long event, void *p)
in rockchip_panic_notify_pmpcsr() argument 315 static int rockchip_panic_notify(struct notifier_block *nb, unsigned long event, void *p)
in rockchip_panic_notify() argument 318 rockchip_panic_notify_edpcsr(nb, event, p);
in rockchip_panic_notify() 320 rockchip_panic_notify_pmpcsr(nb, event, p);
in rockchip_panic_notify()
|
H A D | io-domain.c | 72 struct notifier_block nb;
member 146 static int rockchip_iodomain_notify(struct notifier_block *nb, unsigned long event, void *data)
in rockchip_iodomain_notify() argument 148 struct rockchip_iodomain_supply *supply = container_of(nb, struct rockchip_iodomain_supply, nb);
in rockchip_iodomain_notify() 621 supply->nb.notifier_call = rockchip_iodomain_notify;
in rockchip_iodomain_probe() 630 ret = regulator_register_notifier(reg, &supply->nb);
in rockchip_iodomain_probe() 649 regulator_unregister_notifier(io_supply->reg, &io_supply->nb);
in rockchip_iodomain_probe() 665 regulator_unregister_notifier(io_supply->reg, &io_supply->nb);
in rockchip_iodomain_remove()
|
/device/soc/rockchip/rk3588/kernel/drivers/soc/rockchip/ |
H A D | rockchip_debug.c | 203 static int rockchip_panic_notify_edpcsr(struct notifier_block *nb, in rockchip_panic_notify_edpcsr() argument 263 static int rockchip_panic_notify_pmpcsr(struct notifier_block *nb, in rockchip_panic_notify_pmpcsr() argument 320 static int rockchip_panic_notify_pmpcsr(struct notifier_block *nb, in rockchip_panic_notify_pmpcsr() argument 327 static int rockchip_panic_notify(struct notifier_block *nb, unsigned long event, in rockchip_panic_notify() argument 331 rockchip_panic_notify_edpcsr(nb, event, p); in rockchip_panic_notify() 333 rockchip_panic_notify_pmpcsr(nb, event, p); in rockchip_panic_notify()
|
/device/soc/rockchip/common/vendor/drivers/devfreq/ |
H A D | rockchip_bus.c | 26 #define to_rockchip_bus_clk_nb(nb) container_of(nb, struct rockchip_bus, clk_nb) 27 #define to_rockchip_bus_cpufreq_nb(nb) container_of(nb, struct rockchip_bus, cpufreq_nb) 201 static int rockchip_bus_clk_notifier(struct notifier_block *nb, unsigned long event, void *data) in rockchip_bus_clk_notifier() argument 204 struct rockchip_bus *bus = to_rockchip_bus_clk_nb(nb); in rockchip_bus_clk_notifier() 330 static int rockchip_bus_cpufreq_notifier(struct notifier_block *nb, unsigned long event, void *data) in rockchip_bus_cpufreq_notifier() argument 332 struct rockchip_bus *bus = to_rockchip_bus_cpufreq_nb(nb); in rockchip_bus_cpufreq_notifier()
|
/device/soc/rockchip/common/sdk_linux/drivers/soc/rockchip/ |
H A D | io-domain.c | 72 struct notifier_block nb;
member 146 static int rockchip_iodomain_notify(struct notifier_block *nb, unsigned long event, void *data)
in rockchip_iodomain_notify() argument 148 struct rockchip_iodomain_supply *supply = container_of(nb, struct rockchip_iodomain_supply, nb);
in rockchip_iodomain_notify() 616 supply->nb.notifier_call = rockchip_iodomain_notify;
in rockchip_iodomain_probe() 625 ret = regulator_register_notifier(reg, &supply->nb);
in rockchip_iodomain_probe() 644 regulator_unregister_notifier(io_supply->reg, &io_supply->nb);
in rockchip_iodomain_probe() 660 regulator_unregister_notifier(io_supply->reg, &io_supply->nb);
in rockchip_iodomain_remove()
|
/device/soc/rockchip/rk3588/kernel/drivers/devfreq/ |
H A D | rockchip_bus.c | 26 #define to_rockchip_bus_clk_nb(nb) \ 27 container_of(nb, struct rockchip_bus, clk_nb) 28 #define to_rockchip_bus_cpufreq_nb(nb) \ 29 container_of(nb, struct rockchip_bus, cpufreq_nb) 209 static int rockchip_bus_clk_notifier(struct notifier_block *nb, in rockchip_bus_clk_notifier() argument 213 struct rockchip_bus *bus = to_rockchip_bus_clk_nb(nb); in rockchip_bus_clk_notifier() 346 static int rockchip_bus_cpufreq_notifier(struct notifier_block *nb, in rockchip_bus_cpufreq_notifier() argument 349 struct rockchip_bus *bus = to_rockchip_bus_cpufreq_nb(nb); in rockchip_bus_cpufreq_notifier()
|
/device/qemu/drivers/virtio/ |
H A D | virtnet.c | 157 NetBuf *nb = NULL; in FreeTxEntry() local 167 nb = nic->tbufRec[idx]; in FreeTxEntry() 171 NetBufFree(nb); in FreeTxEntry() 267 NetBuf *nb = NULL; in LowLevelInput() local 271 nb = NetBufDevAlloc(netDev, len); in LowLevelInput() 272 if (nb == NULL) { in LowLevelInput() 276 payload = NetBufPush(nb, E_DATA_BUF, len); /* here always succeed */ in LowLevelInput() 279 return nb; in LowLevelInput() 286 NetBuf *nb = NULL; in VirtnetRxHandle() local 304 nb in VirtnetRxHandle() [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_config.h | 276 * @nb - notifier block containing the callback function 284 * @nb contains the pointer to callback function. 288 int (*gpu_clk_notifier_register)(struct kbase_device *kbdev, void *gpu_clk_handle, struct notifier_block *nb); 294 * @nb - notifier block containing the callback function 301 void (*gpu_clk_notifier_unregister)(struct kbase_device *kbdev, void *gpu_clk_handle, struct notifier_block *nb);
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_config.h | 396 * @nb - notifier block containing the callback function 404 * @nb contains the pointer to callback function. 409 void *gpu_clk_handle, struct notifier_block *nb); 415 * @nb - notifier block containing the callback function 423 void *gpu_clk_handle, struct notifier_block *nb);
|
/device/soc/rockchip/common/sdk_linux/drivers/devfreq/ |
H A D | devfreq.c | 625 * @nb: the notifier_block (supposed to be devfreq->nb) 629 * Called by a notifier that uses devfreq->nb. 631 static int devfreq_notifier_call(struct notifier_block *nb, unsigned long type, void *devp) in devfreq_notifier_call() argument 633 struct devfreq *devfreq = container_of(nb, struct devfreq, nb); in devfreq_notifier_call() 680 * @nb: Should be devfreq->nb_min 682 static int qos_min_notifier_call(struct notifier_block *nb, unsigned long val, void *ptr) in qos_min_notifier_call() argument 684 return qos_notifier_call(container_of(nb, struct devfreq, nb_min)); in qos_min_notifier_call() 689 * @nb 691 qos_max_notifier_call(struct notifier_block *nb, unsigned long val, void *ptr) qos_max_notifier_call() argument 1999 devfreq_register_notifier(struct devfreq *devfreq, struct notifier_block *nb, unsigned int list) devfreq_register_notifier() argument 2025 devfreq_unregister_notifier(struct devfreq *devfreq, struct notifier_block *nb, unsigned int list) devfreq_unregister_notifier() argument 2047 struct notifier_block *nb; global() member 2066 devm_devfreq_register_notifier(struct device *dev, struct devfreq *devfreq, struct notifier_block *nb, unsigned int list) devm_devfreq_register_notifier() argument 2100 devm_devfreq_unregister_notifier(struct device *dev, struct devfreq *devfreq, struct notifier_block *nb, unsigned int list) devm_devfreq_unregister_notifier() argument [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/clk/rockchip/ |
H A D | clk-cpu.c | 69 #define to_rockchip_cpuclk_nb(nb) container_of(nb, struct rockchip_cpuclk, clk_nb) 229 static int rockchip_cpuclk_notifier_cb(struct notifier_block *nb, unsigned long event, void *data) in rockchip_cpuclk_notifier_cb() argument 232 struct rockchip_cpuclk *cpuclk = to_rockchip_cpuclk_nb(nb); in rockchip_cpuclk_notifier_cb()
|