Searched refs:nb (Results 51 - 75 of 881) sorted by relevance

1234567891011>>

/linux-master/drivers/iio/imu/inv_mpu6050/
H A Dinv_mpu_ring.c54 size_t i, nb; local
90 nb = 3 * bytes_per_datum;
91 if (fifo_count >= st->hw->fifo_size - nb) {
97 nb = fifo_count / bytes_per_datum;
98 fifo_count = nb * bytes_per_datum;
99 if (nb == 0)
103 inv_sensors_timestamp_interrupt(&st->timestamp, nb, pf->timestamp);
104 inv_sensors_timestamp_apply_odr(&st->timestamp, fifo_period, nb, 0);
113 for (i = 0; i < nb; ++i) {
/linux-master/arch/x86/include/asm/
H A Diosf_mbi.h166 * @nb: notifier_block to register
168 int iosf_mbi_register_pmic_bus_access_notifier(struct notifier_block *nb);
173 * @nb: notifier_block to unregister
175 int iosf_mbi_unregister_pmic_bus_access_notifier(struct notifier_block *nb);
184 * @nb: notifier_block to unregister
187 struct notifier_block *nb);
226 int iosf_mbi_register_pmic_bus_access_notifier(struct notifier_block *nb) argument
232 int iosf_mbi_unregister_pmic_bus_access_notifier(struct notifier_block *nb) argument
238 iosf_mbi_unregister_pmic_bus_access_notifier_unlocked(struct notifier_block *nb) argument
/linux-master/drivers/video/console/
H A Ddummycon.c36 void dummycon_register_output_notifier(struct notifier_block *nb) argument
40 raw_notifier_chain_register(&dummycon_output_nh, nb);
43 nb->notifier_call(nb, 0, NULL);
46 void dummycon_unregister_output_notifier(struct notifier_block *nb) argument
50 raw_notifier_chain_unregister(&dummycon_output_nh, nb);
/linux-master/lib/
H A Dnetdev-notifier-error-inject.c38 err = register_netdevice_notifier(&netdev_notifier_err_inject.nb);
47 unregister_netdevice_notifier(&netdev_notifier_err_inject.nb);
H A Dpm-notifier-error-inject.c32 err = register_pm_notifier(&pm_notifier_err_inject.nb);
41 unregister_pm_notifier(&pm_notifier_err_inject.nb);
H A Dof-reconfig-notifier-error-inject.c34 err = of_reconfig_notifier_register(&reconfig_err_inject.nb);
43 of_reconfig_notifier_unregister(&reconfig_err_inject.nb);
H A Dnotifier-error-inject.h16 struct notifier_block nb; member in struct:notifier_err_inject
/linux-master/arch/x86/mm/
H A Damdtopology.c61 int i, j, nb; local
66 nb = find_northbridge();
67 if (nb < 0)
68 return nb;
70 pr_info("Scanning NUMA topology in Northbridge %d\n", nb);
72 reg = read_pci_config(0, nb, 0, 0x60);
83 base = read_pci_config(0, nb, 1, 0x40 + i*8);
84 limit = read_pci_config(0, nb, 1, 0x44 + i*8);
/linux-master/arch/s390/include/asm/
H A Dchsc.h81 int chsc_notifier_register(struct notifier_block *nb);
82 int chsc_notifier_unregister(struct notifier_block *nb);
/linux-master/include/linux/pds/
H A Dpds_common.h49 int pdsc_register_notify(struct notifier_block *nb);
50 void pdsc_unregister_notify(struct notifier_block *nb);
/linux-master/kernel/
H A Dcpu_pm.c54 * @nb: notifier block to register
61 int cpu_pm_register_notifier(struct notifier_block *nb) argument
67 ret = raw_notifier_chain_register(&cpu_pm_notifier.chain, nb);
75 * @nb: notifier block to be unregistered
81 int cpu_pm_unregister_notifier(struct notifier_block *nb) argument
87 ret = raw_notifier_chain_unregister(&cpu_pm_notifier.chain, nb);
H A Dnotifier.c78 struct notifier_block *nb, *next_nb; local
80 nb = rcu_dereference_raw(*nl);
82 while (nb && nr_to_call) {
83 next_nb = rcu_dereference_raw(nb->next);
86 if (unlikely(!func_ptr_is_kernel_text(nb->notifier_call))) {
88 nb = next_nb;
92 trace_notifier_run((void *)nb->notifier_call);
93 ret = nb->notifier_call(nb, val, v);
100 nb
600 register_die_notifier(struct notifier_block *nb) argument
606 unregister_die_notifier(struct notifier_block *nb) argument
[all...]
/linux-master/include/acpi/
H A Dghes.h62 * @nb: pointer to the notifier_block structure of the event handler.
66 int ghes_register_vendor_record_notifier(struct notifier_block *nb);
71 * @nb: pointer to the notifier_block structure of the vendor record handler.
73 void ghes_unregister_vendor_record_notifier(struct notifier_block *nb);
134 extern void ghes_register_report_chain(struct notifier_block *nb);
135 extern void ghes_unregister_report_chain(struct notifier_block *nb);
/linux-master/include/linux/
H A Dmemory.h137 static inline int register_memory_notifier(struct notifier_block *nb) argument
141 static inline void unregister_memory_notifier(struct notifier_block *nb) argument
153 extern int register_memory_notifier(struct notifier_block *nb);
154 extern void unregister_memory_notifier(struct notifier_block *nb);
H A Dmemory-tiers.h45 int register_mt_adistance_algorithm(struct notifier_block *nb);
46 int unregister_mt_adistance_algorithm(struct notifier_block *nb);
117 static inline int register_mt_adistance_algorithm(struct notifier_block *nb) argument
122 static inline int unregister_mt_adistance_algorithm(struct notifier_block *nb) argument
H A Ddevfreq.h98 * has registered devfreq->nb at a notifier-head,
148 * @nb: notifier block used to notify devfreq object that it should
150 * devfreq.nb to the corresponding register notifier call chain.
188 struct notifier_block nb; member in struct:devfreq
261 struct notifier_block *nb,
264 struct notifier_block *nb,
268 struct notifier_block *nb,
272 struct notifier_block *nb,
315 * @nb: the notifier block for DEVFREQ_TRANSITION_NOTIFIER or
321 * initialize the 'this' and 'nb' fiel
336 struct notifier_block nb; member in struct:devfreq_passive_data
409 devfreq_register_notifier(struct devfreq *devfreq, struct notifier_block *nb, unsigned int list) argument
416 devfreq_unregister_notifier(struct devfreq *devfreq, struct notifier_block *nb, unsigned int list) argument
423 devm_devfreq_register_notifier(struct device *dev, struct devfreq *devfreq, struct notifier_block *nb, unsigned int list) argument
431 devm_devfreq_unregister_notifier(struct device *dev, struct devfreq *devfreq, struct notifier_block *nb, unsigned int list) argument
[all...]
/linux-master/drivers/thermal/
H A Dthermal_netlink.h34 int thermal_genl_register_notifier(struct notifier_block *nb);
35 int thermal_genl_unregister_notifier(struct notifier_block *nb);
67 static inline int thermal_genl_register_notifier(struct notifier_block *nb) argument
72 static inline int thermal_genl_unregister_notifier(struct notifier_block *nb) argument
/linux-master/fs/jfs/
H A Djfs_extent.c19 static s64 extRoundDown(s64 nb);
303 s64 nb, nblks, daddr, max; local
321 nb = nblks = (max > nbperpage) ? max : nbperpage;
323 nb = nblks = *nblocks;
326 while ((rc = dbAlloc(ip, hint, nb, &daddr)) != 0) {
334 nb = min(nblks, extRoundDown(nb));
337 if (nb < nbperpage)
341 *nblocks = nb;
368 * nb
373 extRoundDown(s64 nb) argument
[all...]
/linux-master/drivers/platform/chrome/
H A Dcros_usbpd_notify.c24 struct notifier_block nb; member in struct:cros_usbpd_notify_data
29 * @nb: Notifier block pointer to register
37 int cros_usbpd_register_notify(struct notifier_block *nb) argument
40 nb);
46 * @nb: Notifier block pointer to unregister
51 void cros_usbpd_unregister_notify(struct notifier_block *nb) argument
53 blocking_notifier_chain_unregister(&cros_usbpd_notifier_list, nb);
164 static int cros_usbpd_notify_plat(struct notifier_block *nb, argument
168 struct cros_usbpd_notify_data *pdnotify = container_of(nb,
169 struct cros_usbpd_notify_data, nb);
[all...]
/linux-master/drivers/rpmsg/
H A Dqcom_glink_ssr.c52 struct notifier_block nb; member in struct:glink_ssr
98 static int qcom_glink_ssr_notifier_call(struct notifier_block *nb, argument
102 struct glink_ssr *ssr = container_of(nb, struct glink_ssr, nb);
139 ssr->nb.notifier_call = qcom_glink_ssr_notifier_call;
143 return blocking_notifier_chain_register(&ssr_notifiers, &ssr->nb);
150 blocking_notifier_chain_unregister(&ssr_notifiers, &ssr->nb);
/linux-master/drivers/devfreq/
H A Dgovernor_passive.c201 static int cpufreq_passive_notifier_call(struct notifier_block *nb, argument
205 container_of(nb, struct devfreq_passive_data, nb);
240 if (p_data->nb.notifier_call) {
241 ret = cpufreq_unregister_notifier(&p_data->nb,
267 p_data->nb.notifier_call = cpufreq_passive_notifier_call;
268 ret = cpufreq_register_notifier(&p_data->nb, CPUFREQ_TRANSITION_NOTIFIER);
271 p_data->nb.notifier_call = NULL;
337 static int devfreq_passive_notifier_call(struct notifier_block *nb, argument
341 = container_of(nb, struc
374 struct notifier_block *nb = &p_data->nb; local
384 struct notifier_block *nb = &p_data->nb; local
[all...]
/linux-master/fs/xfs/
H A Dxfs_fsops.c48 xfs_rfsblock_t nb = mp->m_sb.sb_dblocks + delta; local
59 id->agsize = nb - (id->agno *
94 xfs_rfsblock_t nb, nb_div, nb_mod; local
102 nb = in->newblocks;
103 error = xfs_sb_validate_fsb_count(&mp->m_sb, nb);
107 if (nb > mp->m_sb.sb_dblocks) {
109 XFS_FSB_TO_BB(mp, nb) - XFS_FSS_TO_BB(mp, 1),
116 nb_div = nb;
121 nb = nb_div * mp->m_sb.sb_agblocks;
125 nb
243 xfs_extlen_t nb; local
[all...]
/linux-master/drivers/acpi/
H A Devent.c40 int register_acpi_notifier(struct notifier_block *nb) argument
42 return blocking_notifier_chain_register(&acpi_chain_head, nb);
46 int unregister_acpi_notifier(struct notifier_block *nb) argument
48 return blocking_notifier_chain_unregister(&acpi_chain_head, nb);
/linux-master/net/x25/
H A Dx25_forward.c94 struct x25_neigh *nb; local
112 if ( (nb = x25_get_neigh(peer)) == NULL)
119 x25_transmit_link(skbn, nb);
123 x25_neigh_put(nb);
/linux-master/drivers/clk/renesas/
H A Drcar-cpg-lib.h19 struct notifier_block nb; member in struct:cpg_simple_notifier

Completed in 259 milliseconds

1234567891011>>