Home
last modified time | relevance | path

Searched refs:pv (Results 1 - 25 of 110) sorted by relevance

12345

/kernel/linux/linux-5.10/drivers/tty/hvc/
H A Dhvsi_lib.c10 static int hvsi_send_packet(struct hvsi_priv *pv, struct hvsi_header *packet) in hvsi_send_packet() argument
12 packet->seqno = cpu_to_be16(atomic_inc_return(&pv->seqno)); in hvsi_send_packet()
15 return pv->put_chars(pv->termno, (char *)packet, packet->len); in hvsi_send_packet()
18 static void hvsi_start_handshake(struct hvsi_priv *pv) in hvsi_start_handshake() argument
23 pv->established = 0; in hvsi_start_handshake()
24 atomic_set(&pv->seqno, 0); in hvsi_start_handshake()
26 pr_devel("HVSI@%x: Handshaking started\n", pv->termno); in hvsi_start_handshake()
32 hvsi_send_packet(pv, &q.hdr); in hvsi_start_handshake()
35 static int hvsi_send_close(struct hvsi_priv *pv) in hvsi_send_close() argument
47 hvsi_cd_change(struct hvsi_priv *pv, int cd) hvsi_cd_change() argument
68 hvsi_got_control(struct hvsi_priv *pv) hvsi_got_control() argument
84 hvsi_got_query(struct hvsi_priv *pv) hvsi_got_query() argument
108 hvsi_got_response(struct hvsi_priv *pv) hvsi_got_response() argument
121 hvsi_check_packet(struct hvsi_priv *pv) hvsi_check_packet() argument
165 hvsi_get_packet(struct hvsi_priv *pv) hvsi_get_packet() argument
181 hvsilib_get_chars(struct hvsi_priv *pv, char *buf, int count) hvsilib_get_chars() argument
231 hvsilib_put_chars(struct hvsi_priv *pv, const char *buf, int count) hvsilib_put_chars() argument
257 hvsilib_read_mctrl(struct hvsi_priv *pv) hvsilib_read_mctrl() argument
287 hvsilib_write_mctrl(struct hvsi_priv *pv, int dtr) hvsilib_write_mctrl() argument
312 hvsilib_establish(struct hvsi_priv *pv) hvsilib_establish() argument
374 hvsilib_open(struct hvsi_priv *pv, struct hvc_struct *hp) hvsilib_open() argument
386 hvsilib_close(struct hvsi_priv *pv, struct hvc_struct *hp) hvsilib_close() argument
413 hvsilib_init(struct hvsi_priv *pv, int (*get_chars)(uint32_t termno, char *buf, int count), int (*put_chars)(uint32_t termno, const char *buf, int count), int termno, int is_console) hvsilib_init() argument
[all...]
H A Dhvc_vio.c71 struct hvterm_priv *pv = hvterm_privs[vtermno]; in hvterm_raw_get_chars() local
76 if (WARN_ON(!pv)) in hvterm_raw_get_chars()
79 spin_lock_irqsave(&pv->buf_lock, flags); in hvterm_raw_get_chars()
81 if (pv->left == 0) { in hvterm_raw_get_chars()
82 pv->offset = 0; in hvterm_raw_get_chars()
83 pv->left = hvc_get_chars(pv->termno, pv->buf, count); in hvterm_raw_get_chars()
89 for (i = 1; i < pv->left; ++i) { in hvterm_raw_get_chars()
90 if (pv in hvterm_raw_get_chars()
120 struct hvterm_priv *pv = hvterm_privs[vtermno]; hvterm_raw_put_chars() local
138 struct hvterm_priv *pv = hvterm_privs[vtermno]; hvterm_hvsi_get_chars() local
148 struct hvterm_priv *pv = hvterm_privs[vtermno]; hvterm_hvsi_put_chars() local
158 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; hvterm_hvsi_open() local
172 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; hvterm_hvsi_close() local
183 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; hvterm_hvsi_hangup() local
194 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; hvterm_hvsi_tiocmget() local
204 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; hvterm_hvsi_tiocmset() local
301 struct hvterm_priv *pv; hvc_vio_probe() local
[all...]
H A Dhvc_opal.c63 struct hvc_opal_priv *pv = hvc_opal_privs[vtermno]; in hvc_opal_hvsi_get_chars() local
65 if (WARN_ON(!pv)) in hvc_opal_hvsi_get_chars()
68 return hvsilib_get_chars(&pv->hvsi, buf, count); in hvc_opal_hvsi_get_chars()
73 struct hvc_opal_priv *pv = hvc_opal_privs[vtermno]; in hvc_opal_hvsi_put_chars() local
75 if (WARN_ON(!pv)) in hvc_opal_hvsi_put_chars()
78 return hvsilib_put_chars(&pv->hvsi, buf, count); in hvc_opal_hvsi_put_chars()
83 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_open() local
92 return hvsilib_open(&pv->hvsi, hp); in hvc_opal_hvsi_open()
97 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_close() local
101 hvsilib_close(&pv in hvc_opal_hvsi_close()
108 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; hvc_opal_hvsi_hangup() local
119 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; hvc_opal_hvsi_tiocmget() local
129 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; hvc_opal_hvsi_tiocmset() local
157 struct hvc_opal_priv *pv; hvc_opal_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/tty/hvc/
H A Dhvsi_lib.c10 static int hvsi_send_packet(struct hvsi_priv *pv, struct hvsi_header *packet) in hvsi_send_packet() argument
12 packet->seqno = cpu_to_be16(atomic_inc_return(&pv->seqno)); in hvsi_send_packet()
15 return pv->put_chars(pv->termno, (char *)packet, packet->len); in hvsi_send_packet()
18 static void hvsi_start_handshake(struct hvsi_priv *pv) in hvsi_start_handshake() argument
23 pv->established = 0; in hvsi_start_handshake()
24 atomic_set(&pv->seqno, 0); in hvsi_start_handshake()
26 pr_devel("HVSI@%x: Handshaking started\n", pv->termno); in hvsi_start_handshake()
32 hvsi_send_packet(pv, &q.hdr); in hvsi_start_handshake()
35 static int hvsi_send_close(struct hvsi_priv *pv) in hvsi_send_close() argument
47 hvsi_cd_change(struct hvsi_priv *pv, int cd) hvsi_cd_change() argument
68 hvsi_got_control(struct hvsi_priv *pv) hvsi_got_control() argument
84 hvsi_got_query(struct hvsi_priv *pv) hvsi_got_query() argument
108 hvsi_got_response(struct hvsi_priv *pv) hvsi_got_response() argument
121 hvsi_check_packet(struct hvsi_priv *pv) hvsi_check_packet() argument
165 hvsi_get_packet(struct hvsi_priv *pv) hvsi_get_packet() argument
181 hvsilib_get_chars(struct hvsi_priv *pv, char *buf, int count) hvsilib_get_chars() argument
231 hvsilib_put_chars(struct hvsi_priv *pv, const char *buf, int count) hvsilib_put_chars() argument
257 hvsilib_read_mctrl(struct hvsi_priv *pv) hvsilib_read_mctrl() argument
287 hvsilib_write_mctrl(struct hvsi_priv *pv, int dtr) hvsilib_write_mctrl() argument
312 hvsilib_establish(struct hvsi_priv *pv) hvsilib_establish() argument
374 hvsilib_open(struct hvsi_priv *pv, struct hvc_struct *hp) hvsilib_open() argument
386 hvsilib_close(struct hvsi_priv *pv, struct hvc_struct *hp) hvsilib_close() argument
413 hvsilib_init(struct hvsi_priv *pv, int (*get_chars)(uint32_t termno, char *buf, int count), int (*put_chars)(uint32_t termno, const char *buf, int count), int termno, int is_console) hvsilib_init() argument
[all...]
H A Dhvc_vio.c71 struct hvterm_priv *pv = hvterm_privs[vtermno]; in hvterm_raw_get_chars() local
76 if (WARN_ON(!pv)) in hvterm_raw_get_chars()
79 spin_lock_irqsave(&pv->buf_lock, flags); in hvterm_raw_get_chars()
81 if (pv->left == 0) { in hvterm_raw_get_chars()
82 pv->offset = 0; in hvterm_raw_get_chars()
83 pv->left = hvc_get_chars(pv->termno, pv->buf, count); in hvterm_raw_get_chars()
89 for (i = 1; i < pv->left; ++i) { in hvterm_raw_get_chars()
90 if (pv in hvterm_raw_get_chars()
120 struct hvterm_priv *pv = hvterm_privs[vtermno]; hvterm_raw_put_chars() local
138 struct hvterm_priv *pv = hvterm_privs[vtermno]; hvterm_hvsi_get_chars() local
148 struct hvterm_priv *pv = hvterm_privs[vtermno]; hvterm_hvsi_put_chars() local
158 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; hvterm_hvsi_open() local
172 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; hvterm_hvsi_close() local
183 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; hvterm_hvsi_hangup() local
194 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; hvterm_hvsi_tiocmget() local
204 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; hvterm_hvsi_tiocmset() local
301 struct hvterm_priv *pv; hvc_vio_probe() local
[all...]
H A Dhvc_opal.c63 struct hvc_opal_priv *pv = hvc_opal_privs[vtermno]; in hvc_opal_hvsi_get_chars() local
65 if (WARN_ON(!pv)) in hvc_opal_hvsi_get_chars()
68 return hvsilib_get_chars(&pv->hvsi, buf, count); in hvc_opal_hvsi_get_chars()
73 struct hvc_opal_priv *pv = hvc_opal_privs[vtermno]; in hvc_opal_hvsi_put_chars() local
75 if (WARN_ON(!pv)) in hvc_opal_hvsi_put_chars()
78 return hvsilib_put_chars(&pv->hvsi, buf, count); in hvc_opal_hvsi_put_chars()
83 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_open() local
92 return hvsilib_open(&pv->hvsi, hp); in hvc_opal_hvsi_open()
97 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_close() local
101 hvsilib_close(&pv in hvc_opal_hvsi_close()
108 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; hvc_opal_hvsi_hangup() local
119 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; hvc_opal_hvsi_tiocmget() local
129 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; hvc_opal_hvsi_tiocmset() local
157 struct hvc_opal_priv *pv; hvc_opal_probe() local
[all...]
/kernel/linux/linux-5.10/drivers/macintosh/
H A Dwindfarm_ad7417_sensor.c38 struct wf_ad7417_priv *pv = sr->priv; in wf_ad7417_temp_get() local
44 mutex_lock(&pv->lock); in wf_ad7417_temp_get()
48 rc = i2c_master_send(pv->i2c, buf, 1); in wf_ad7417_temp_get()
51 rc = i2c_master_recv(pv->i2c, buf, 2); in wf_ad7417_temp_get()
61 mutex_unlock(&pv->lock); in wf_ad7417_temp_get()
65 mutex_unlock(&pv->lock); in wf_ad7417_temp_get()
79 static void wf_ad7417_adc_convert(struct wf_ad7417_priv *pv, in wf_ad7417_adc_convert() argument
84 *value = (raw * (s32)pv->mpu->mdiode + in wf_ad7417_adc_convert()
85 ((s32)pv->mpu->bdiode << 12)) >> 2; in wf_ad7417_adc_convert()
101 struct wf_ad7417_priv *pv in wf_ad7417_adc_get() local
154 struct wf_ad7417_priv *pv = container_of(ref, wf_ad7417_release() local
161 struct wf_ad7417_priv *pv = sr->priv; wf_ad7417_sensor_release() local
179 wf_ad7417_add_sensor(struct wf_ad7417_priv *pv, int index, const char *name, const struct wf_sensor_ops *ops) wf_ad7417_add_sensor() argument
190 wf_ad7417_init_chip(struct wf_ad7417_priv *pv) wf_ad7417_init_chip() argument
235 struct wf_ad7417_priv *pv; wf_ad7417_probe() local
294 struct wf_ad7417_priv *pv = dev_get_drvdata(&client->dev); wf_ad7417_remove() local
[all...]
H A Dwindfarm_fcu_controls.c73 struct wf_fcu_priv *pv = container_of(ref, struct wf_fcu_priv, ref); in wf_fcu_release() local
75 kfree(pv); in wf_fcu_release()
86 static int wf_fcu_read_reg(struct wf_fcu_priv *pv, int reg, in wf_fcu_read_reg() argument
91 mutex_lock(&pv->lock); in wf_fcu_read_reg()
96 nw = i2c_master_send(pv->i2c, buf, 1); in wf_fcu_read_reg()
109 nr = i2c_master_recv(pv->i2c, buf, nb); in wf_fcu_read_reg()
118 mutex_unlock(&pv->lock); in wf_fcu_read_reg()
122 static int wf_fcu_write_reg(struct wf_fcu_priv *pv, int reg, in wf_fcu_write_reg() argument
133 nw = i2c_master_send(pv->i2c, buf, nb); in wf_fcu_write_reg()
147 struct wf_fcu_priv *pv in wf_fcu_fan_set_rpm() local
169 struct wf_fcu_priv *pv = fan->fcu_priv; wf_fcu_fan_get_rpm() local
204 struct wf_fcu_priv *pv = fan->fcu_priv; wf_fcu_fan_set_pwm() local
226 struct wf_fcu_priv *pv = fan->fcu_priv; wf_fcu_fan_get_pwm() local
321 struct wf_fcu_priv *pv = fan->fcu_priv; wf_fcu_get_rpmfan_minmax() local
361 wf_fcu_add_fan(struct wf_fcu_priv *pv, const char *name, int type, int id) wf_fcu_add_fan() argument
400 wf_fcu_lookup_fans(struct wf_fcu_priv *pv) wf_fcu_lookup_fans() argument
480 wf_fcu_default_fans(struct wf_fcu_priv *pv) wf_fcu_default_fans() argument
495 wf_fcu_init_chip(struct wf_fcu_priv *pv) wf_fcu_init_chip() argument
520 struct wf_fcu_priv *pv; wf_fcu_probe() local
565 struct wf_fcu_priv *pv = dev_get_drvdata(&client->dev); wf_fcu_remove() local
[all...]
/kernel/linux/linux-6.6/drivers/macintosh/
H A Dwindfarm_ad7417_sensor.c38 struct wf_ad7417_priv *pv = sr->priv; in wf_ad7417_temp_get() local
44 mutex_lock(&pv->lock); in wf_ad7417_temp_get()
48 rc = i2c_master_send(pv->i2c, buf, 1); in wf_ad7417_temp_get()
51 rc = i2c_master_recv(pv->i2c, buf, 2); in wf_ad7417_temp_get()
61 mutex_unlock(&pv->lock); in wf_ad7417_temp_get()
65 mutex_unlock(&pv->lock); in wf_ad7417_temp_get()
79 static void wf_ad7417_adc_convert(struct wf_ad7417_priv *pv, in wf_ad7417_adc_convert() argument
84 *value = (raw * (s32)pv->mpu->mdiode + in wf_ad7417_adc_convert()
85 ((s32)pv->mpu->bdiode << 12)) >> 2; in wf_ad7417_adc_convert()
101 struct wf_ad7417_priv *pv in wf_ad7417_adc_get() local
154 struct wf_ad7417_priv *pv = container_of(ref, wf_ad7417_release() local
161 struct wf_ad7417_priv *pv = sr->priv; wf_ad7417_sensor_release() local
179 wf_ad7417_add_sensor(struct wf_ad7417_priv *pv, int index, const char *name, const struct wf_sensor_ops *ops) wf_ad7417_add_sensor() argument
190 wf_ad7417_init_chip(struct wf_ad7417_priv *pv) wf_ad7417_init_chip() argument
234 struct wf_ad7417_priv *pv; wf_ad7417_probe() local
293 struct wf_ad7417_priv *pv = dev_get_drvdata(&client->dev); wf_ad7417_remove() local
[all...]
H A Dwindfarm_fcu_controls.c73 struct wf_fcu_priv *pv = container_of(ref, struct wf_fcu_priv, ref); in wf_fcu_release() local
75 kfree(pv); in wf_fcu_release()
86 static int wf_fcu_read_reg(struct wf_fcu_priv *pv, int reg, in wf_fcu_read_reg() argument
91 mutex_lock(&pv->lock); in wf_fcu_read_reg()
96 nw = i2c_master_send(pv->i2c, buf, 1); in wf_fcu_read_reg()
109 nr = i2c_master_recv(pv->i2c, buf, nb); in wf_fcu_read_reg()
118 mutex_unlock(&pv->lock); in wf_fcu_read_reg()
122 static int wf_fcu_write_reg(struct wf_fcu_priv *pv, int reg, in wf_fcu_write_reg() argument
133 nw = i2c_master_send(pv->i2c, buf, nb); in wf_fcu_write_reg()
147 struct wf_fcu_priv *pv in wf_fcu_fan_set_rpm() local
169 struct wf_fcu_priv *pv = fan->fcu_priv; wf_fcu_fan_get_rpm() local
204 struct wf_fcu_priv *pv = fan->fcu_priv; wf_fcu_fan_set_pwm() local
226 struct wf_fcu_priv *pv = fan->fcu_priv; wf_fcu_fan_get_pwm() local
321 struct wf_fcu_priv *pv = fan->fcu_priv; wf_fcu_get_rpmfan_minmax() local
361 wf_fcu_add_fan(struct wf_fcu_priv *pv, const char *name, int type, int id) wf_fcu_add_fan() argument
400 wf_fcu_lookup_fans(struct wf_fcu_priv *pv) wf_fcu_lookup_fans() argument
480 wf_fcu_default_fans(struct wf_fcu_priv *pv) wf_fcu_default_fans() argument
495 wf_fcu_init_chip(struct wf_fcu_priv *pv) wf_fcu_init_chip() argument
519 struct wf_fcu_priv *pv; wf_fcu_probe() local
564 struct wf_fcu_priv *pv = dev_get_drvdata(&client->dev); wf_fcu_remove() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/
H A Dnv04.c144 struct nvkm_pll_vals *pv) in setPLL_single()
150 uint32_t pll = (oldpll & 0xfff80000) | pv->log2P << 16 | pv->NM1; in setPLL_single()
164 if (oldM && pv->M1 && (oldN / oldM < pv->N1 / pv->M1)) in setPLL_single()
166 nvkm_wr32(device, reg, pv->log2P << 16 | (oldpll & 0xffff)); in setPLL_single()
169 nvkm_wr32(device, reg, (oldpll & 0xffff0000) | pv->NM1); in setPLL_single()
199 struct nvkm_pll_vals *pv) in setPLL_double_highregs()
207 uint32_t pll1 = (oldpll1 & 0xfff80000) | pv in setPLL_double_highregs()
143 setPLL_single(struct nvkm_devinit *init, u32 reg, struct nvkm_pll_vals *pv) setPLL_single() argument
198 setPLL_double_highregs(struct nvkm_devinit *init, u32 reg1, struct nvkm_pll_vals *pv) setPLL_double_highregs() argument
276 setPLL_double_lowregs(struct nvkm_devinit *init, u32 NMNMreg, struct nvkm_pll_vals *pv) setPLL_double_lowregs() argument
360 struct nvkm_pll_vals pv; nv04_devinit_pll_set() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/
H A Dnv04.c144 struct nvkm_pll_vals *pv) in setPLL_single()
150 uint32_t pll = (oldpll & 0xfff80000) | pv->log2P << 16 | pv->NM1; in setPLL_single()
164 if (oldM && pv->M1 && (oldN / oldM < pv->N1 / pv->M1)) in setPLL_single()
166 nvkm_wr32(device, reg, pv->log2P << 16 | (oldpll & 0xffff)); in setPLL_single()
169 nvkm_wr32(device, reg, (oldpll & 0xffff0000) | pv->NM1); in setPLL_single()
199 struct nvkm_pll_vals *pv) in setPLL_double_highregs()
207 uint32_t pll1 = (oldpll1 & 0xfff80000) | pv in setPLL_double_highregs()
143 setPLL_single(struct nvkm_devinit *init, u32 reg, struct nvkm_pll_vals *pv) setPLL_single() argument
198 setPLL_double_highregs(struct nvkm_devinit *init, u32 reg1, struct nvkm_pll_vals *pv) setPLL_double_highregs() argument
276 setPLL_double_lowregs(struct nvkm_devinit *init, u32 NMNMreg, struct nvkm_pll_vals *pv) setPLL_double_lowregs() argument
360 struct nvkm_pll_vals pv; nv04_devinit_pll_set() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dnv04.c33 int clk, struct nvkm_pll_vals *pv) in nv04_clk_pll_calc()
38 pv->refclk = info->refclk; in nv04_clk_pll_calc()
39 pv->N1 = N1; in nv04_clk_pll_calc()
40 pv->M1 = M1; in nv04_clk_pll_calc()
41 pv->N2 = N2; in nv04_clk_pll_calc()
42 pv->M2 = M2; in nv04_clk_pll_calc()
43 pv->log2P = P; in nv04_clk_pll_calc()
49 nv04_clk_pll_prog(struct nvkm_clk *clk, u32 reg1, struct nvkm_pll_vals *pv) in nv04_clk_pll_prog() argument
58 setPLL_double_highregs(devinit, reg1, pv); in nv04_clk_pll_prog()
60 setPLL_double_lowregs(devinit, reg1, pv); in nv04_clk_pll_prog()
32 nv04_clk_pll_calc(struct nvkm_clk *clock, struct nvbios_pll *info, int clk, struct nvkm_pll_vals *pv) nv04_clk_pll_calc() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dnv04.c33 int clk, struct nvkm_pll_vals *pv) in nv04_clk_pll_calc()
38 pv->refclk = info->refclk; in nv04_clk_pll_calc()
39 pv->N1 = N1; in nv04_clk_pll_calc()
40 pv->M1 = M1; in nv04_clk_pll_calc()
41 pv->N2 = N2; in nv04_clk_pll_calc()
42 pv->M2 = M2; in nv04_clk_pll_calc()
43 pv->log2P = P; in nv04_clk_pll_calc()
49 nv04_clk_pll_prog(struct nvkm_clk *clk, u32 reg1, struct nvkm_pll_vals *pv) in nv04_clk_pll_prog() argument
58 setPLL_double_highregs(devinit, reg1, pv); in nv04_clk_pll_prog()
60 setPLL_double_lowregs(devinit, reg1, pv); in nv04_clk_pll_prog()
32 nv04_clk_pll_calc(struct nvkm_clk *clock, struct nvbios_pll *info, int clk, struct nvkm_pll_vals *pv) nv04_clk_pll_calc() argument
[all...]
/kernel/linux/linux-6.6/arch/s390/kvm/
H A Dpv.c60 kvm->arch.pv.handle = 0; in kvm_s390_clear_pv_state()
61 kvm->arch.pv.guest_len = 0; in kvm_s390_clear_pv_state()
62 kvm->arch.pv.stor_base = 0; in kvm_s390_clear_pv_state()
63 kvm->arch.pv.stor_var = NULL; in kvm_s390_clear_pv_state()
81 free_pages(vcpu->arch.pv.stor_base, in kvm_s390_pv_destroy_cpu()
87 memset(&vcpu->arch.pv, 0, sizeof(vcpu->arch.pv)); in kvm_s390_pv_destroy_cpu()
112 vcpu->arch.pv.stor_base = __get_free_pages(GFP_KERNEL_ACCOUNT, in kvm_s390_pv_create_cpu()
114 if (!vcpu->arch.pv.stor_base) in kvm_s390_pv_create_cpu()
121 uvcb.stor_origin = virt_to_phys((void *)vcpu->arch.pv in kvm_s390_pv_create_cpu()
[all...]
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
H A Dhvsi.h82 extern void hvsilib_init(struct hvsi_priv *pv,
87 extern int hvsilib_open(struct hvsi_priv *pv, struct hvc_struct *hp);
88 extern void hvsilib_close(struct hvsi_priv *pv, struct hvc_struct *hp);
89 extern int hvsilib_read_mctrl(struct hvsi_priv *pv);
90 extern int hvsilib_write_mctrl(struct hvsi_priv *pv, int dtr);
91 extern void hvsilib_establish(struct hvsi_priv *pv);
92 extern int hvsilib_get_chars(struct hvsi_priv *pv, char *buf, int count);
93 extern int hvsilib_put_chars(struct hvsi_priv *pv, const char *buf, int count);
/kernel/linux/linux-6.6/arch/powerpc/include/asm/
H A Dhvsi.h82 extern void hvsilib_init(struct hvsi_priv *pv,
87 extern int hvsilib_open(struct hvsi_priv *pv, struct hvc_struct *hp);
88 extern void hvsilib_close(struct hvsi_priv *pv, struct hvc_struct *hp);
89 extern int hvsilib_read_mctrl(struct hvsi_priv *pv);
90 extern int hvsilib_write_mctrl(struct hvsi_priv *pv, int dtr);
91 extern void hvsilib_establish(struct hvsi_priv *pv);
92 extern int hvsilib_get_chars(struct hvsi_priv *pv, char *buf, int count);
93 extern int hvsilib_put_chars(struct hvsi_priv *pv, const char *buf, int count);
/kernel/linux/linux-5.10/arch/s390/kvm/
H A Dpv.c32 free_pages(vcpu->arch.pv.stor_base, in kvm_s390_pv_destroy_cpu()
38 memset(&vcpu->arch.pv, 0, sizeof(vcpu->arch.pv)); in kvm_s390_pv_destroy_cpu()
62 vcpu->arch.pv.stor_base = __get_free_pages(GFP_KERNEL, in kvm_s390_pv_create_cpu()
64 if (!vcpu->arch.pv.stor_base) in kvm_s390_pv_create_cpu()
71 uvcb.stor_origin = (u64)vcpu->arch.pv.stor_base; in kvm_s390_pv_create_cpu()
76 free_pages(vcpu->arch.pv.stor_base, in kvm_s390_pv_create_cpu()
97 vcpu->arch.pv.handle = uvcb.cpu_handle; in kvm_s390_pv_create_cpu()
108 vfree(kvm->arch.pv.stor_var); in kvm_s390_pv_dealloc_vm()
109 free_pages(kvm->arch.pv in kvm_s390_pv_dealloc_vm()
[all...]
/kernel/linux/linux-6.6/net/bridge/
H A Dbr_mst.c128 static void br_mst_vlan_sync_state(struct net_bridge_vlan *pv, u16 msti) in br_mst_vlan_sync_state() argument
130 struct net_bridge_vlan_group *vg = nbp_vlan_group(pv->port); in br_mst_vlan_sync_state()
138 if (v != pv && v->brvlan->msti == msti) { in br_mst_vlan_sync_state()
139 br_mst_vlan_set_state(pv->port, pv, v->state); in br_mst_vlan_sync_state()
145 return br_mst_vlan_set_state(pv->port, pv, BR_STATE_DISABLED); in br_mst_vlan_sync_state()
159 struct net_bridge_vlan *pv; in br_mst_vlan_set_msti() local
175 pv = br_vlan_find(vg, mv->vid); in br_mst_vlan_set_msti()
176 if (pv) in br_mst_vlan_set_msti()
[all...]
/kernel/linux/linux-5.10/fs/afs/
H A Dwrite.c242 struct pagevec pv; in afs_kill_pages() local
248 pagevec_init(&pv); in afs_kill_pages()
256 pv.nr = find_get_pages_contig(mapping, first, count, pv.pages); in afs_kill_pages()
257 ASSERTCMP(pv.nr, ==, count); in afs_kill_pages()
260 struct page *page = pv.pages[loop]; in afs_kill_pages()
271 __pagevec_release(&pv); in afs_kill_pages()
285 struct pagevec pv; in afs_redirty_pages() local
291 pagevec_init(&pv); in afs_redirty_pages()
299 pv in afs_redirty_pages()
323 struct pagevec pv; afs_pages_written_back() local
[all...]
/kernel/linux/linux-5.10/drivers/pwm/
H A Dpwm-spear.c82 unsigned long prescale = PWMCR_MIN_PRESCALE, pv, dc; in spear_pwm_config() local
86 * Find pv, dc and prescale to suit duty_ns and period_ns. This is done in spear_pwm_config()
100 pv = div64_u64(val, div); in spear_pwm_config()
105 if (pv < PWMPCR_MIN_PERIOD || dc < PWMDCR_MIN_DUTY) in spear_pwm_config()
109 * if pv and dc have crossed their upper limit, then increase in spear_pwm_config()
110 * prescale and recalculate pv and dc. in spear_pwm_config()
112 if (pv > PWMPCR_MAX_PERIOD || dc > PWMDCR_MAX_DUTY) { in spear_pwm_config()
131 spear_pwm_writel(pc, pwm->hwpwm, PWMPCR, pv); in spear_pwm_config()
/kernel/linux/linux-6.6/drivers/pwm/
H A Dpwm-spear.c82 unsigned long prescale = PWMCR_MIN_PRESCALE, pv, dc; in spear_pwm_config() local
86 * Find pv, dc and prescale to suit duty_ns and period_ns. This is done in spear_pwm_config()
100 pv = div64_u64(val, div); in spear_pwm_config()
105 if (pv < PWMPCR_MIN_PERIOD || dc < PWMDCR_MIN_DUTY) in spear_pwm_config()
109 * if pv and dc have crossed their upper limit, then increase in spear_pwm_config()
110 * prescale and recalculate pv and dc. in spear_pwm_config()
112 if (pv > PWMPCR_MAX_PERIOD || dc > PWMDCR_MAX_DUTY) { in spear_pwm_config()
131 spear_pwm_writel(pc, pwm->hwpwm, PWMPCR, pv); in spear_pwm_config()
H A Dpwm-pxa.c73 unsigned long period_cycles, prescale, pv, dc; in pxa_pwm_config() local
86 pv = period_cycles / (prescale + 1) - 1; in pxa_pwm_config()
94 dc = mul_u64_u64_div_u64(pv + 1, duty_ns, period_ns); in pxa_pwm_config()
98 writel(pv, pc->mmio_base + offset + PWMPCR); in pxa_pwm_config()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/dispnv04/
H A Dhw.c205 nouveau_hw_pllvals_to_clk(struct nvkm_pll_vals *pv) in nouveau_hw_pllvals_to_clk() argument
208 if (!pv->M1 || !pv->M2) in nouveau_hw_pllvals_to_clk()
211 return pv->N1 * pv->N2 * pv->refclk / (pv->M1 * pv->M2) >> pv->log2P; in nouveau_hw_pllvals_to_clk()
264 struct nvkm_pll_vals pv; in nouveau_hw_fix_bad_vpll() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/dispnv04/
H A Dhw.c205 nouveau_hw_pllvals_to_clk(struct nvkm_pll_vals *pv) in nouveau_hw_pllvals_to_clk() argument
208 if (!pv->M1 || !pv->M2) in nouveau_hw_pllvals_to_clk()
211 return pv->N1 * pv->N2 * pv->refclk / (pv->M1 * pv->M2) >> pv->log2P; in nouveau_hw_pllvals_to_clk()
265 struct nvkm_pll_vals pv; in nouveau_hw_fix_bad_vpll() local
[all...]

Completed in 12 milliseconds

12345