Home
last modified time | relevance | path

Searched refs:pm (Results 1 – 25 of 2036) sorted by relevance

12345678910>>...82

/Linux-v5.4/drivers/base/power/
Dgeneric_ops.c22 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_runtime_suspend() local
25 ret = pm && pm->runtime_suspend ? pm->runtime_suspend(dev) : 0; in pm_generic_runtime_suspend()
41 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_runtime_resume() local
44 ret = pm && pm->runtime_resume ? pm->runtime_resume(dev) : 0; in pm_generic_runtime_resume()
63 if (drv && drv->pm && drv->pm->prepare) in pm_generic_prepare()
64 ret = drv->pm->prepare(dev); in pm_generic_prepare()
75 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_suspend_noirq() local
77 return pm && pm->suspend_noirq ? pm->suspend_noirq(dev) : 0; in pm_generic_suspend_noirq()
87 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_suspend_late() local
89 return pm && pm->suspend_late ? pm->suspend_late(dev) : 0; in pm_generic_suspend_late()
[all …]
/Linux-v5.4/drivers/input/touchscreen/
Dpenmount.c50 struct pm { struct
59 void (*parse_packet)(struct pm *); argument
66 static void pm_mtevent(struct pm *pm, struct input_dev *input) in pm_mtevent() argument
70 for (i = 0; i < pm->maxcontacts; ++i) { in pm_mtevent()
73 pm->slots[i].active); in pm_mtevent()
74 if (pm->slots[i].active) { in pm_mtevent()
75 input_event(input, EV_ABS, ABS_MT_POSITION_X, pm->slots[i].x); in pm_mtevent()
76 input_event(input, EV_ABS, ABS_MT_POSITION_Y, pm->slots[i].y); in pm_mtevent()
99 static void pm_parse_9000(struct pm *pm) in pm_parse_9000() argument
101 struct input_dev *dev = pm->dev; in pm_parse_9000()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/amdkfd/
Dkfd_packet_manager.c40 static void pm_calc_rlib_size(struct packet_manager *pm, in pm_calc_rlib_size() argument
47 struct kfd_dev *dev = pm->dqm->dev; in pm_calc_rlib_size()
49 process_count = pm->dqm->processes_count; in pm_calc_rlib_size()
50 queue_count = pm->dqm->queue_count; in pm_calc_rlib_size()
51 compute_queue_count = queue_count - pm->dqm->sdma_queue_count - in pm_calc_rlib_size()
52 pm->dqm->xgmi_sdma_queue_count; in pm_calc_rlib_size()
65 compute_queue_count > get_queues_num(pm->dqm)) { in pm_calc_rlib_size()
70 map_queue_size = pm->pmf->map_queues_size; in pm_calc_rlib_size()
72 *rlib_size = process_count * pm->pmf->map_process_size + in pm_calc_rlib_size()
80 *rlib_size += pm->pmf->runlist_size; in pm_calc_rlib_size()
[all …]
/Linux-v5.4/drivers/input/misc/
Dpowermate.c88 struct powermate_device *pm = urb->context; in powermate_irq() local
89 struct device *dev = &pm->intf->dev; in powermate_irq()
110 input_report_key(pm->input, BTN_0, pm->data[0] & 0x01); in powermate_irq()
111 input_report_rel(pm->input, REL_DIAL, pm->data[1]); in powermate_irq()
112 input_sync(pm->input); in powermate_irq()
122 static void powermate_sync_state(struct powermate_device *pm) in powermate_sync_state() argument
124 if (pm->requires_update == 0) in powermate_sync_state()
126 if (pm->config->status == -EINPROGRESS) in powermate_sync_state()
129 if (pm->requires_update & UPDATE_PULSE_ASLEEP){ in powermate_sync_state()
130 pm->configcr->wValue = cpu_to_le16( SET_PULSE_ASLEEP ); in powermate_sync_state()
[all …]
/Linux-v5.4/drivers/gpu/drm/radeon/
Dradeon_pm.c63 for (i = 0; i < rdev->pm.num_power_states; i++) { in radeon_pm_get_type_index()
64 if (rdev->pm.power_state[i].type == ps_type) { in radeon_pm_get_type_index()
71 return rdev->pm.default_power_state_index; in radeon_pm_get_type_index()
76 if ((rdev->pm.pm_method == PM_METHOD_DPM) && rdev->pm.dpm_enabled) { in radeon_pm_acpi_event_handler()
77 mutex_lock(&rdev->pm.mutex); in radeon_pm_acpi_event_handler()
79 rdev->pm.dpm.ac_power = true; in radeon_pm_acpi_event_handler()
81 rdev->pm.dpm.ac_power = false; in radeon_pm_acpi_event_handler()
84 radeon_dpm_enable_bapm(rdev, rdev->pm.dpm.ac_power); in radeon_pm_acpi_event_handler()
86 mutex_unlock(&rdev->pm.mutex); in radeon_pm_acpi_event_handler()
87 } else if (rdev->pm.pm_method == PM_METHOD_PROFILE) { in radeon_pm_acpi_event_handler()
[all …]
Dr600.c366 rdev->pm.dynpm_can_upclock = true; in r600_pm_get_dynpm_state()
367 rdev->pm.dynpm_can_downclock = true; in r600_pm_get_dynpm_state()
373 if (rdev->pm.num_power_states > 2) in r600_pm_get_dynpm_state()
376 switch (rdev->pm.dynpm_planned_action) { in r600_pm_get_dynpm_state()
378 rdev->pm.requested_power_state_index = min_power_state_index; in r600_pm_get_dynpm_state()
379 rdev->pm.requested_clock_mode_index = 0; in r600_pm_get_dynpm_state()
380 rdev->pm.dynpm_can_downclock = false; in r600_pm_get_dynpm_state()
383 if (rdev->pm.current_power_state_index == min_power_state_index) { in r600_pm_get_dynpm_state()
384 rdev->pm.requested_power_state_index = rdev->pm.current_power_state_index; in r600_pm_get_dynpm_state()
385 rdev->pm.dynpm_can_downclock = false; in r600_pm_get_dynpm_state()
[all …]
Dr600_dpm.c147 if (rps == rdev->pm.dpm.current_ps) in r600_dpm_print_ps_status()
149 if (rps == rdev->pm.dpm.requested_ps) in r600_dpm_print_ps_status()
151 if (rps == rdev->pm.dpm.boot_ps) in r600_dpm_print_ps_status()
758 rdev->pm.dpm.thermal.min_temp = low_temp; in r600_set_thermal_temperature_range()
759 rdev->pm.dpm.thermal.max_temp = high_temp; in r600_set_thermal_temperature_range()
792 r600_is_internal_thermal_sensor(rdev->pm.int_thermal_type)) { in r600_dpm_late_enable()
858 rdev->pm.dpm.platform_caps = le32_to_cpu(power_info->pplib.ulPlatformCaps); in r600_get_platform_caps()
859 rdev->pm.dpm.backbias_response_time = le16_to_cpu(power_info->pplib.usBackbiasTime); in r600_get_platform_caps()
860 rdev->pm.dpm.voltage_response_time = le16_to_cpu(power_info->pplib.usVoltageTime); in r600_get_platform_caps()
895 rdev->pm.dpm.fan.t_hyst = fan_info->fan.ucTHyst; in r600_parse_extended_power_table()
[all …]
Dr420.c48 rdev->pm.profiles[PM_PROFILE_DEFAULT_IDX].dpms_off_ps_idx = rdev->pm.default_power_state_index; in r420_pm_init_profile()
49 rdev->pm.profiles[PM_PROFILE_DEFAULT_IDX].dpms_on_ps_idx = rdev->pm.default_power_state_index; in r420_pm_init_profile()
50 rdev->pm.profiles[PM_PROFILE_DEFAULT_IDX].dpms_off_cm_idx = 0; in r420_pm_init_profile()
51 rdev->pm.profiles[PM_PROFILE_DEFAULT_IDX].dpms_on_cm_idx = 0; in r420_pm_init_profile()
53 rdev->pm.profiles[PM_PROFILE_LOW_SH_IDX].dpms_off_ps_idx = 0; in r420_pm_init_profile()
54 rdev->pm.profiles[PM_PROFILE_LOW_SH_IDX].dpms_on_ps_idx = 0; in r420_pm_init_profile()
55 rdev->pm.profiles[PM_PROFILE_LOW_SH_IDX].dpms_off_cm_idx = 0; in r420_pm_init_profile()
56 rdev->pm.profiles[PM_PROFILE_LOW_SH_IDX].dpms_on_cm_idx = 0; in r420_pm_init_profile()
58 rdev->pm.profiles[PM_PROFILE_MID_SH_IDX].dpms_off_ps_idx = 0; in r420_pm_init_profile()
59 rdev->pm.profiles[PM_PROFILE_MID_SH_IDX].dpms_on_ps_idx = 1; in r420_pm_init_profile()
[all …]
Drs690.c82 rdev->pm.igp_sideport_mclk.full = dfixed_const(le32_to_cpu(info->info.ulBootUpMemoryClock)); in rs690_pm_info()
83 rdev->pm.igp_sideport_mclk.full = dfixed_div(rdev->pm.igp_sideport_mclk, tmp); in rs690_pm_info()
85 rdev->pm.igp_system_mclk.full = dfixed_const(le16_to_cpu(info->info.usK8MemoryClock)); in rs690_pm_info()
87 rdev->pm.igp_system_mclk.full = dfixed_const(rdev->clock.default_mclk); in rs690_pm_info()
88 rdev->pm.igp_system_mclk.full = dfixed_div(rdev->pm.igp_system_mclk, tmp); in rs690_pm_info()
90 rdev->pm.igp_system_mclk.full = dfixed_const(400); in rs690_pm_info()
91 rdev->pm.igp_ht_link_clk.full = dfixed_const(le16_to_cpu(info->info.usFSBClock)); in rs690_pm_info()
92 rdev->pm.igp_ht_link_width.full = dfixed_const(info->info.ucHTLinkWidth); in rs690_pm_info()
96 rdev->pm.igp_sideport_mclk.full = dfixed_const(le32_to_cpu(info->info_v2.ulBootUpSidePortClock)); in rs690_pm_info()
97 rdev->pm.igp_sideport_mclk.full = dfixed_div(rdev->pm.igp_sideport_mclk, tmp); in rs690_pm_info()
[all …]
/Linux-v5.4/sound/drivers/
Dportman2x4.c78 static int portman_free(struct portman *pm) in portman_free() argument
80 kfree(pm); in portman_free()
88 struct portman *pm; in portman_create() local
92 pm = kzalloc(sizeof(struct portman), GFP_KERNEL); in portman_create()
93 if (pm == NULL) in portman_create()
97 spin_lock_init(&pm->reg_lock); in portman_create()
98 pm->card = card; in portman_create()
99 pm->pardev = pardev; in portman_create()
101 *rchip = pm; in portman_create()
181 static inline void portman_write_command(struct portman *pm, u8 value) in portman_write_command() argument
[all …]
/Linux-v5.4/drivers/hid/
Dhid-prodikeys.c39 struct pcmidi_snd *pm; /* pcmidi device context */ member
44 struct pcmidi_snd *pm; member
105 dbg_hid("pcmidi sysfs read channel=%u\n", pk->pm->midi_channel); in show_channel()
107 return sprintf(buf, "%u (min:%u, max:%u)\n", pk->pm->midi_channel, in show_channel()
122 pk->pm->midi_channel = channel; in store_channel()
142 dbg_hid("pcmidi sysfs read sustain=%u\n", pk->pm->midi_sustain); in show_sustain()
144 return sprintf(buf, "%u (off:%u, max:%u (ms))\n", pk->pm->midi_sustain, in show_sustain()
159 pk->pm->midi_sustain = sustain; in store_sustain()
160 pk->pm->midi_sustain_mode = in store_sustain()
161 (0 == sustain || !pk->pm->midi_mode) ? 0 : 1; in store_sustain()
[all …]
/Linux-v5.4/drivers/media/platform/s5p-mfc/
Ds5p_mfc_pm.c17 static struct s5p_mfc_pm *pm; variable
25 pm = &dev->pm; in s5p_mfc_init_pm()
28 pm->num_clocks = dev->variant->num_clocks; in s5p_mfc_init_pm()
29 pm->clk_names = dev->variant->clk_names; in s5p_mfc_init_pm()
30 pm->device = &dev->plat_dev->dev; in s5p_mfc_init_pm()
31 pm->clock_gate = NULL; in s5p_mfc_init_pm()
34 for (i = 0; i < pm->num_clocks; i++) { in s5p_mfc_init_pm()
35 pm->clocks[i] = devm_clk_get(pm->device, pm->clk_names[i]); in s5p_mfc_init_pm()
36 if (IS_ERR(pm->clocks[i])) { in s5p_mfc_init_pm()
38 if (i && PTR_ERR(pm->clocks[i]) == -ENOENT) { in s5p_mfc_init_pm()
[all …]
/Linux-v5.4/drivers/scsi/
Dscsi_pm.c23 static int do_scsi_suspend(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_suspend() argument
25 return pm && pm->suspend ? pm->suspend(dev) : 0; in do_scsi_suspend()
28 static int do_scsi_freeze(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_freeze() argument
30 return pm && pm->freeze ? pm->freeze(dev) : 0; in do_scsi_freeze()
33 static int do_scsi_poweroff(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_poweroff() argument
35 return pm && pm->poweroff ? pm->poweroff(dev) : 0; in do_scsi_poweroff()
38 static int do_scsi_resume(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_resume() argument
40 return pm && pm->resume ? pm->resume(dev) : 0; in do_scsi_resume()
43 static int do_scsi_thaw(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_thaw() argument
45 return pm && pm->thaw ? pm->thaw(dev) : 0; in do_scsi_thaw()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Damdgpu_dpm.c109 if (rps == adev->pm.dpm.current_ps) in amdgpu_dpm_print_ps_status()
111 if (rps == adev->pm.dpm.requested_ps) in amdgpu_dpm_print_ps_status()
113 if (rps == adev->pm.dpm.boot_ps) in amdgpu_dpm_print_ps_status()
124 adev->pm.dpm.new_active_crtcs = 0; in amdgpu_dpm_get_active_displays()
125 adev->pm.dpm.new_active_crtc_count = 0; in amdgpu_dpm_get_active_displays()
131 adev->pm.dpm.new_active_crtcs |= (1 << amdgpu_crtc->crtc_id); in amdgpu_dpm_get_active_displays()
132 adev->pm.dpm.new_active_crtc_count++; in amdgpu_dpm_get_active_displays()
264 adev->pm.dpm.platform_caps = le32_to_cpu(power_info->pplib.ulPlatformCaps); in amdgpu_get_platform_caps()
265 adev->pm.dpm.backbias_response_time = le16_to_cpu(power_info->pplib.usBackbiasTime); in amdgpu_get_platform_caps()
266 adev->pm.dpm.voltage_response_time = le16_to_cpu(power_info->pplib.usVoltageTime); in amdgpu_get_platform_caps()
[all …]
/Linux-v5.4/tools/power/pm-graph/
DMakefile9 install -d $(DESTDIR)$(PREFIX)/lib/pm-graph
10 install sleepgraph.py $(DESTDIR)$(PREFIX)/lib/pm-graph
11 install bootgraph.py $(DESTDIR)$(PREFIX)/lib/pm-graph
12 install -d $(DESTDIR)$(PREFIX)/lib/pm-graph/config
13 install -m 644 config/cgskip.txt $(DESTDIR)$(PREFIX)/lib/pm-graph/config
14 install -m 644 config/freeze-callgraph.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
15 install -m 644 config/freeze.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
16 install -m 644 config/freeze-dev.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
17 install -m 644 config/standby-callgraph.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
18 install -m 644 config/standby.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
[all …]
/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/engine/pm/
Dbase.c36 nvkm_pm_count_perfdom(struct nvkm_pm *pm) in nvkm_pm_count_perfdom() argument
41 list_for_each_entry(dom, &pm->domains, head) in nvkm_pm_count_perfdom()
62 nvkm_perfdom_find(struct nvkm_pm *pm, int di) in nvkm_perfdom_find() argument
67 list_for_each_entry(dom, &pm->domains, head) { in nvkm_perfdom_find()
75 nvkm_perfsig_find(struct nvkm_pm *pm, u8 di, u8 si, struct nvkm_perfdom **pdom) in nvkm_perfsig_find() argument
80 dom = nvkm_perfdom_find(pm, di); in nvkm_perfsig_find()
104 nvkm_perfsrc_find(struct nvkm_pm *pm, struct nvkm_perfsig *sig, int si) in nvkm_perfsrc_find() argument
119 list_for_each_entry(src, &pm->sources, head) { in nvkm_perfsrc_find()
129 nvkm_perfsrc_enable(struct nvkm_pm *pm, struct nvkm_perfctr *ctr) in nvkm_perfsrc_enable() argument
131 struct nvkm_subdev *subdev = &pm->engine.subdev; in nvkm_perfsrc_enable()
[all …]
Dnv40.c27 nv40_perfctr_init(struct nvkm_pm *pm, struct nvkm_perfdom *dom, in nv40_perfctr_init() argument
30 struct nvkm_device *device = pm->engine.subdev.device; in nv40_perfctr_init()
44 nv40_perfctr_read(struct nvkm_pm *pm, struct nvkm_perfdom *dom, in nv40_perfctr_read() argument
47 struct nvkm_device *device = pm->engine.subdev.device; in nv40_perfctr_read()
59 nv40_perfctr_next(struct nvkm_pm *pm, struct nvkm_perfdom *dom) in nv40_perfctr_next() argument
61 struct nvkm_device *device = pm->engine.subdev.device; in nv40_perfctr_next()
62 struct nv40_pm *nv40pm = container_of(pm, struct nv40_pm, base); in nv40_perfctr_next()
64 if (nv40pm->sequence != pm->sequence) { in nv40_perfctr_next()
66 nv40pm->sequence = pm->sequence; in nv40_perfctr_next()
85 struct nv40_pm *pm; in nv40_pm_new_() local
[all …]
DKbuild2 nvkm-y += nvkm/engine/pm/base.o
3 nvkm-y += nvkm/engine/pm/nv40.o
4 nvkm-y += nvkm/engine/pm/nv50.o
5 nvkm-y += nvkm/engine/pm/g84.o
6 nvkm-y += nvkm/engine/pm/gt200.o
7 nvkm-y += nvkm/engine/pm/gt215.o
8 nvkm-y += nvkm/engine/pm/gf100.o
9 nvkm-y += nvkm/engine/pm/gf108.o
10 nvkm-y += nvkm/engine/pm/gf117.o
11 nvkm-y += nvkm/engine/pm/gk104.o
Dgf100.c128 gf100_perfctr_init(struct nvkm_pm *pm, struct nvkm_perfdom *dom, in gf100_perfctr_init() argument
131 struct nvkm_device *device = pm->engine.subdev.device; in gf100_perfctr_init()
146 gf100_perfctr_read(struct nvkm_pm *pm, struct nvkm_perfdom *dom, in gf100_perfctr_read() argument
149 struct nvkm_device *device = pm->engine.subdev.device; in gf100_perfctr_read()
161 gf100_perfctr_next(struct nvkm_pm *pm, struct nvkm_perfdom *dom) in gf100_perfctr_next() argument
163 struct nvkm_device *device = pm->engine.subdev.device; in gf100_perfctr_next()
176 gf100_pm_fini(struct nvkm_pm *pm) in gf100_pm_fini() argument
178 struct nvkm_device *device = pm->engine.subdev.device; in gf100_pm_fini()
192 struct nvkm_pm *pm; in gf100_pm_new_() local
196 if (!(pm = *ppm = kzalloc(sizeof(*pm), GFP_KERNEL))) in gf100_pm_new_()
[all …]
/Linux-v5.4/drivers/media/platform/mtk-vcodec/
Dmtk_vcodec_enc_pm.c22 struct mtk_vcodec_pm *pm; in mtk_vcodec_init_enc_pm() local
29 pm = &mtkdev->pm; in mtk_vcodec_init_enc_pm()
30 memset(pm, 0, sizeof(struct mtk_vcodec_pm)); in mtk_vcodec_init_enc_pm()
31 pm->mtkdev = mtkdev; in mtk_vcodec_init_enc_pm()
32 pm->dev = &pdev->dev; in mtk_vcodec_init_enc_pm()
34 enc_clk = &pm->venc_clk; in mtk_vcodec_init_enc_pm()
47 pm->larbvenc = &pdev->dev; in mtk_vcodec_init_enc_pm()
62 pm->larbvenclt = &pdev->dev; in mtk_vcodec_init_enc_pm()
64 pm->dev = &pdev->dev; in mtk_vcodec_init_enc_pm()
104 void mtk_vcodec_enc_clock_on(struct mtk_vcodec_pm *pm) in mtk_vcodec_enc_clock_on() argument
[all …]
Dmtk_vcodec_dec_pm.c21 struct mtk_vcodec_pm *pm; in mtk_vcodec_init_dec_pm() local
27 pm = &mtkdev->pm; in mtk_vcodec_init_dec_pm()
28 pm->mtkdev = mtkdev; in mtk_vcodec_init_dec_pm()
29 dec_clk = &pm->vdec_clk; in mtk_vcodec_init_dec_pm()
41 pm->larbvdec = &pdev->dev; in mtk_vcodec_init_dec_pm()
43 pm->dev = &pdev->dev; in mtk_vcodec_init_dec_pm()
82 pm_runtime_disable(dev->pm.dev); in mtk_vcodec_release_dec_pm()
85 void mtk_vcodec_dec_pw_on(struct mtk_vcodec_pm *pm) in mtk_vcodec_dec_pw_on() argument
89 ret = pm_runtime_get_sync(pm->dev); in mtk_vcodec_dec_pw_on()
94 void mtk_vcodec_dec_pw_off(struct mtk_vcodec_pm *pm) in mtk_vcodec_dec_pw_off() argument
[all …]
/Linux-v5.4/drivers/mfd/
Dbcm2835-pm.c32 struct bcm2835_pm *pm; in bcm2835_pm_probe() local
35 pm = devm_kzalloc(dev, sizeof(*pm), GFP_KERNEL); in bcm2835_pm_probe()
36 if (!pm) in bcm2835_pm_probe()
38 platform_set_drvdata(pdev, pm); in bcm2835_pm_probe()
40 pm->dev = dev; in bcm2835_pm_probe()
43 pm->base = devm_ioremap_resource(dev, res); in bcm2835_pm_probe()
44 if (IS_ERR(pm->base)) in bcm2835_pm_probe()
45 return PTR_ERR(pm->base); in bcm2835_pm_probe()
59 pm->asb = devm_ioremap_resource(dev, res); in bcm2835_pm_probe()
60 if (IS_ERR(pm->asb)) in bcm2835_pm_probe()
[all …]
/Linux-v5.4/drivers/pci/
Dpci-driver.c672 WARN(ret && drv->driver.pm, "driver %s device %04x:%04x\n", in pci_has_legacy_pm_support()
685 if (drv && drv->pm && drv->pm->prepare) { in pci_pm_prepare()
686 int error = drv->pm->prepare(dev); in pci_pm_prepare()
752 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_suspend() local
759 if (!pm) { in pci_pm_suspend()
785 if (pm->suspend) { in pci_pm_suspend()
789 error = pm->suspend(dev); in pci_pm_suspend()
790 suspend_report_result(pm->suspend, error); in pci_pm_suspend()
798 pm->suspend); in pci_pm_suspend()
818 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_suspend_noirq() local
[all …]
/Linux-v5.4/fs/hfs/
Dpart_tbl.c73 struct old_pmap *pm; in hfs_part_find() local
76 pm = (struct old_pmap *)bh->b_data; in hfs_part_find()
77 p = pm->pdEntry; in hfs_part_find()
92 struct new_pmap *pm; in hfs_part_find() local
94 pm = (struct new_pmap *)bh->b_data; in hfs_part_find()
95 size = be32_to_cpu(pm->pmMapBlkCnt); in hfs_part_find()
97 if (!memcmp(pm->pmPartType,"Apple_HFS", 9) && in hfs_part_find()
99 *part_start += be32_to_cpu(pm->pmPyPartStart); in hfs_part_find()
100 *part_size = be32_to_cpu(pm->pmPartBlkCnt); in hfs_part_find()
105 bh = sb_bread512(sb, *part_start + HFS_PMAP_BLK + ++i, pm); in hfs_part_find()
[all …]
/Linux-v5.4/fs/hfsplus/
Dpart_tbl.c70 static int hfs_parse_old_pmap(struct super_block *sb, struct old_pmap *pm, in hfs_parse_old_pmap() argument
77 struct old_pmap_entry *p = &pm->pdEntry[i]; in hfs_parse_old_pmap()
92 struct new_pmap *pm, sector_t *part_start, sector_t *part_size) in hfs_parse_new_pmap() argument
95 int size = be32_to_cpu(pm->pmMapBlkCnt); in hfs_parse_new_pmap()
101 if (!memcmp(pm->pmPartType, "Apple_HFS", 9) && in hfs_parse_new_pmap()
103 *part_start += be32_to_cpu(pm->pmPyPartStart); in hfs_parse_new_pmap()
104 *part_size = be32_to_cpu(pm->pmPartBlkCnt); in hfs_parse_new_pmap()
111 pm = (struct new_pmap *)((u8 *)pm + HFSPLUS_SECTOR_SIZE); in hfs_parse_new_pmap()
112 if ((u8 *)pm - (u8 *)buf >= buf_size) { in hfs_parse_new_pmap()
115 buf, (void **)&pm, REQ_OP_READ, in hfs_parse_new_pmap()
[all …]

12345678910>>...82