/linux-master/drivers/infiniband/hw/mlx5/ |
H A D | macsec.c | 129 static int macsec_event(struct notifier_block *nb, unsigned long event, void *data) argument 131 struct mlx5_macsec *macsec = container_of(nb, struct mlx5_macsec, blocking_events_nb);
|
H A D | srq_cmd.c | 723 static int srq_event_notifier(struct notifier_block *nb, argument 735 table = container_of(nb, struct mlx5_srq_table, nb); 763 table->nb.notifier_call = srq_event_notifier; 764 mlx5_notifier_register(dev->mdev, &table->nb); 773 mlx5_notifier_unregister(dev->mdev, &table->nb);
|
H A D | qpc.c | 106 static int rsc_event_notifier(struct notifier_block *nb, argument 110 container_of(nb, struct mlx5_ib_dev, qp_table.nb); 509 table->nb.notifier_call = rsc_event_notifier; 510 mlx5_notifier_register(dev->mdev, &table->nb); 519 mlx5_notifier_unregister(dev->mdev, &table->nb);
|
/linux-master/drivers/clocksource/ |
H A D | timer-sun5i.c | 148 static int sun5i_rate_cb(struct notifier_block *nb, argument 152 struct sun5i_timer *cs = nb_to_sun5i_timer(nb);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
H A D | fw_tracer.c | 1008 static int fw_tracer_event(struct notifier_block *nb, unsigned long action, void *data); 1040 MLX5_NB_INIT(&tracer->nb, fw_tracer_event, DEVICE_TRACER); 1041 mlx5_eq_notifier_register(dev, &tracer->nb); 1053 mlx5_eq_notifier_unregister(dev, &tracer->nb); 1075 mlx5_eq_notifier_unregister(tracer->dev, &tracer->nb); 1166 static int fw_tracer_event(struct notifier_block *nb, unsigned long action, void *data) argument 1168 struct mlx5_fw_tracer *tracer = mlx5_nb_cof(nb, struct mlx5_fw_tracer, nb);
|
/linux-master/include/linux/ |
H A D | netlink.h | 239 int netlink_register_notifier(struct notifier_block *nb); 240 int netlink_unregister_notifier(struct notifier_block *nb);
|
H A D | power_supply.h | 771 extern int power_supply_reg_notifier(struct notifier_block *nb); 772 extern void power_supply_unreg_notifier(struct notifier_block *nb);
|
/linux-master/drivers/pwm/ |
H A D | pwm-sifive.c | 208 static int pwm_sifive_clock_notifier(struct notifier_block *nb, argument 213 container_of(nb, struct pwm_sifive_ddata, notifier);
|
/linux-master/drivers/platform/chrome/ |
H A D | cros_ec.c | 153 static int cros_ec_ready_event(struct notifier_block *nb, argument 157 struct cros_ec_device *ec_dev = container_of(nb, struct cros_ec_device,
|
/linux-master/drivers/acpi/apei/ |
H A D | ghes.c | 631 int ghes_register_vendor_record_notifier(struct notifier_block *nb) argument 633 return blocking_notifier_chain_register(&vendor_record_notify_list, nb); 637 void ghes_unregister_vendor_record_notifier(struct notifier_block *nb) argument 639 blocking_notifier_chain_unregister(&vendor_record_notify_list, nb); 1680 void ghes_register_report_chain(struct notifier_block *nb) argument 1682 atomic_notifier_chain_register(&ghes_report_chain, nb); 1686 void ghes_unregister_report_chain(struct notifier_block *nb) argument 1688 atomic_notifier_chain_unregister(&ghes_report_chain, nb);
|
/linux-master/drivers/clk/renesas/ |
H A D | rzg2l-cpg.h | 357 int rzg2l_cpg_sd_clk_mux_notifier(struct notifier_block *nb, unsigned long event, void *data); 358 int rzg3s_cpg_div_clk_notifier(struct notifier_block *nb, unsigned long event, void *data);
|
/linux-master/drivers/rtc/ |
H A D | rtc-cros-ec.c | 260 static int cros_ec_rtc_event(struct notifier_block *nb, argument 269 cros_ec_rtc = container_of(nb, struct cros_ec_rtc, notifier);
|
/linux-master/drivers/macintosh/ |
H A D | adbhid.c | 266 adbhid_keyboard_input(unsigned char *data, int nb, int apoll) argument 277 if (nb != 3 || (data[0] & 3) != KEYB_KEYREG) 405 adbhid_mouse_input(unsigned char *data, int nb, int autopoll) argument 484 nb=4; 491 if (nb >= 4 && adbhid[id]->mouse_kind != ADBMOUSE_TRACKPAD) 503 adbhid_buttons_input(unsigned char *data, int nb, int autopoll) argument
|
/linux-master/net/dsa/ |
H A D | switch.c | 974 static int dsa_switch_event(struct notifier_block *nb, argument 977 struct dsa_switch *ds = container_of(nb, struct dsa_switch, nb); 1122 ds->nb.notifier_call = dsa_switch_event; 1124 return raw_notifier_chain_register(&ds->dst->nh, &ds->nb); 1131 err = raw_notifier_chain_unregister(&ds->dst->nh, &ds->nb);
|
/linux-master/drivers/iio/frequency/ |
H A D | adf4377.c | 409 struct notifier_block nb; member in struct:adf4377_state 909 static int adf4377_freq_change(struct notifier_block *nb, unsigned long action, void *data) argument 911 struct adf4377_state *st = container_of(nb, struct adf4377_state, nb); 954 st->nb.notifier_call = adf4377_freq_change; 955 ret = devm_clk_notifier_register(&spi->dev, st->clkin, &st->nb);
|
/linux-master/drivers/staging/nvec/ |
H A D | nvec.c | 101 * @nb: The notifier block to register 108 int nvec_register_notifier(struct nvec_chip *nvec, struct notifier_block *nb, argument 111 return atomic_notifier_chain_register(&nvec->notifier_list, nb); 118 * @nb: The notifier block to unregister 123 int nvec_unregister_notifier(struct nvec_chip *nvec, struct notifier_block *nb) argument 125 return atomic_notifier_chain_unregister(&nvec->notifier_list, nb); 135 static int nvec_status_notifier(struct notifier_block *nb, argument 138 struct nvec_chip *nvec = container_of(nb, struct nvec_chip,
|
/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | chip.c | 597 uint nb, banksize, lss; local 612 nb = (coreinfo & SRCI_SRNB_MASK) >> SRCI_SRNB_SHIFT; 618 nb--; 619 *ramsize = nb * (1 << (banksize + SR_BSZ_BASE)); 625 nb = (coreinfo & (SRCI_SRNB_MASK | SRCI_SRNB_MASK_EXT)) 628 nb = (coreinfo & SRCI_SRNB_MASK) >> SRCI_SRNB_SHIFT; 630 for (i = 0; i < nb; i++) { 662 u32 nb; local 669 nb = (coreinfo & SRCI_SRNB_MASK) >> SRCI_SRNB_SHIFT; 671 for (idx = 0; idx < nb; id [all...] |
/linux-master/drivers/scsi/ |
H A D | mesh.c | 675 int i, seq, nb; local 785 nb = ms->dma_count; 786 if (nb > 0xfff0) 787 nb = 0xfff0; 788 ms->dma_count -= nb; 789 ms->data_ptr += nb; 790 out_8(&mr->count_lo, nb); 791 out_8(&mr->count_hi, nb >> 8); 1320 int t, nb; local 1332 nb [all...] |
/linux-master/drivers/iommu/ |
H A D | iommu.c | 93 static int iommu_bus_notifier(struct notifier_block *nb, 193 struct notifier_block *nb; local 221 nb = kcalloc(ARRAY_SIZE(iommu_buses), sizeof(*nb), GFP_KERNEL); 222 if (!nb) 226 nb[i].notifier_call = iommu_bus_notifier; 227 bus_register_notifier(iommu_buses[i], &nb[i]); 293 struct notifier_block *nb) 295 bus_unregister_notifier(bus, nb); 308 struct notifier_block *nb) 291 iommu_device_unregister_bus(struct iommu_device *iommu, const struct bus_type *bus, struct notifier_block *nb) argument 305 iommu_device_register_bus(struct iommu_device *iommu, const struct iommu_ops *ops, const struct bus_type *bus, struct notifier_block *nb) argument 1665 iommu_bus_notifier(struct notifier_block *nb, unsigned long action, void *data) argument [all...] |
/linux-master/drivers/mtd/nand/raw/ |
H A D | arasan-nand-controller.c | 284 unsigned int nb, sz; local 286 for (nb = 1; nb < ANFC_MAX_STEPS; nb *= 2) { 287 sz = len / nb; 292 if (sz * nb != len) 296 *steps = nb;
|
/linux-master/drivers/net/ethernet/intel/ice/ |
H A D | ice_eswitch_br.c | 538 ice_eswitch_br_switchdev_event(struct notifier_block *nb, argument 549 br_offloads = ice_nb_to_br_offloads(nb, switchdev_nb); 855 ice_eswitch_br_event_blocking(struct notifier_block *nb, unsigned long event, argument 1147 ice_eswitch_br_port_changeupper(struct notifier_block *nb, void *ptr) argument 1155 br_offloads = ice_nb_to_br_offloads(nb, netdev_nb); 1175 ice_eswitch_br_port_event(struct notifier_block *nb, argument 1182 err = ice_eswitch_br_port_changeupper(nb, ptr);
|
/linux-master/drivers/usb/chipidea/ |
H A D | core.c | 588 static int ci_cable_notifier(struct notifier_block *nb, unsigned long event, argument 591 struct ci_hdrc_cable *cbl = container_of(nb, struct ci_hdrc_cable, nb); 780 cable->nb.notifier_call = ci_cable_notifier; 792 cable->nb.notifier_call = ci_cable_notifier; 838 EXTCON_USB_HOST, &id->nb); 849 EXTCON_USB, &vbus->nb);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | eswitch.c | 996 static int eswitch_vport_event(struct notifier_block *nb, argument 999 struct mlx5_eswitch *esw = mlx5_nb_cof(nb, struct mlx5_eswitch, nb); 1044 MLX5_NB_INIT(&esw->esw_funcs.nb, mlx5_esw_funcs_changed_handler, 1046 mlx5_eq_notifier_register(esw->dev, &esw->esw_funcs.nb); 1053 mlx5_eq_notifier_unregister(esw->dev, &esw->esw_funcs.nb); 1481 MLX5_NB_INIT(&esw->nb, eswitch_vport_event, NIC_VPORT_CHANGE); 1482 mlx5_eq_notifier_register(esw->dev, &esw->nb); 1616 mlx5_eq_notifier_unregister(esw->dev, &esw->nb); 2220 int mlx5_esw_event_notifier_register(struct mlx5_eswitch *esw, struct notifier_block *nb) argument 2225 mlx5_esw_event_notifier_unregister(struct mlx5_eswitch *esw, struct notifier_block *nb) argument [all...] |
/linux-master/arch/x86/kernel/cpu/mce/ |
H A D | core.c | 146 void mce_register_decode_chain(struct notifier_block *nb) argument 148 if (WARN_ON(nb->priority < MCE_PRIO_LOWEST || 149 nb->priority > MCE_PRIO_HIGHEST)) 152 blocking_notifier_chain_register(&x86_mce_decoder_chain, nb); 156 void mce_unregister_decode_chain(struct notifier_block *nb) argument 158 blocking_notifier_chain_unregister(&x86_mce_decoder_chain, nb); 562 static int mce_early_notifier(struct notifier_block *nb, unsigned long val, argument 585 static int uc_decode_notifier(struct notifier_block *nb, unsigned long val, argument 612 static int mce_default_notifier(struct notifier_block *nb, unsigned long val, argument
|
/linux-master/arch/powerpc/platforms/powernv/ |
H A D | opal.c | 294 struct notifier_block *nb) 299 if (!nb || msg_type >= OPAL_MSG_TYPE_MAX) { 307 &opal_msg_notifier_head[msg_type], nb); 324 struct notifier_block *nb) 327 &opal_msg_notifier_head[msg_type], nb); 293 opal_message_notifier_register(enum opal_msg_type msg_type, struct notifier_block *nb) argument 323 opal_message_notifier_unregister(enum opal_msg_type msg_type, struct notifier_block *nb) argument
|