Home
last modified time | relevance | path

Searched refs:pw (Results 1 – 25 of 34) sorted by relevance

12

/linux/drivers/watchdog/
H A Dpseries-wdt.c102 struct pseries_wdt *pw = watchdog_get_drvdata(wdd); in pseries_wdt_start() local
107 flags = pw->action | PSERIES_WDTF_OP_START; in pseries_wdt_start()
109 rc = plpar_hcall_norets(H_WATCHDOG, flags, pw->num, msecs); in pseries_wdt_start()
112 rc, pw->num); in pseries_wdt_start()
120 struct pseries_wdt *pw = watchdog_get_drvdata(wdd); in pseries_wdt_stop() local
124 rc = plpar_hcall_norets(H_WATCHDOG, PSERIES_WDTF_OP_STOP, pw->num); in pseries_wdt_stop()
127 rc, pw->num); in pseries_wdt_stop()
148 struct pseries_wdt *pw; in pseries_wdt_probe() local
160 pw = devm_kzalloc(&pdev->dev, sizeof(*pw), GFP_KERNEL); in pseries_wdt_probe()
161 if (!pw) in pseries_wdt_probe()
[all …]
H A Df71808e_wdt.c231 static int fintek_wdt_set_pulse_width(struct fintek_wdt *wd, unsigned int pw) in fintek_wdt_set_pulse_width() argument
241 if (pw <= 1) { in fintek_wdt_set_pulse_width()
243 } else if (pw <= t1) { in fintek_wdt_set_pulse_width()
245 } else if (pw <= t2) { in fintek_wdt_set_pulse_width()
247 } else if (pw <= t3) { in fintek_wdt_set_pulse_width()
254 wd->pulse_mode = pw; in fintek_wdt_set_pulse_width()
/linux/arch/powerpc/sysdev/
H A Dfsl_rmu.c376 out_be32(&pw->pw_regs->pwsr, IPWSR_CLEAR); in msg_unit_error_handler()
391 struct fsl_rio_pw *pw = (struct fsl_rio_pw *)dev_instance; in fsl_rio_port_write_handler() local
398 ipwmr = in_be32(&pw->pw_regs->pwmr); in fsl_rio_port_write_handler()
399 ipwsr = in_be32(&pw->pw_regs->pwsr); in fsl_rio_port_write_handler()
420 if (kfifo_avail(&pw->pw_fifo) >= RIO_PW_MSG_SIZE) { in fsl_rio_port_write_handler()
421 pw->port_write_msg.msg_count++; in fsl_rio_port_write_handler()
422 kfifo_in(&pw->pw_fifo, pw->port_write_msg.virt, in fsl_rio_port_write_handler()
425 pw->port_write_msg.discard_count++; in fsl_rio_port_write_handler()
427 pw->port_write_msg.discard_count); in fsl_rio_port_write_handler()
432 out_be32(&pw->pw_regs->pwsr, RIO_IPWSR_QFI); in fsl_rio_port_write_handler()
[all …]
H A Dfsl_rio.c100 struct fsl_rio_pw *pw; variable
546 pw = kzalloc(sizeof(struct fsl_rio_pw), GFP_KERNEL); in fsl_rio_setup()
547 if (!(pw)) { in fsl_rio_setup()
552 pw->dev = &dev->dev; in fsl_rio_setup()
553 pw->pwirq = irq_of_parse_and_map(np, 0); in fsl_rio_setup()
554 dev_info(&dev->dev, "pwirq: %d\n", pw->pwirq); in fsl_rio_setup()
561 pw->pw_regs = (struct rio_pw_regs *)(rmu_regs_win + (u32)range_start); in fsl_rio_setup()
695 pw->mport[i] = port; in fsl_rio_setup()
712 fsl_rio_port_write_init(pw); in fsl_rio_setup()
716 kfree(pw); in fsl_rio_setup()
[all …]
H A Dfsl_rio.h122 extern struct fsl_rio_pw *pw;
126 extern int fsl_rio_port_write_init(struct fsl_rio_pw *pw);
/linux/drivers/i2c/busses/
H A Di2c-simtec.c34 static void simtec_i2c_setsda(void *pw, int state) in simtec_i2c_setsda() argument
36 struct simtec_i2c_data *pd = pw; in simtec_i2c_setsda()
40 static void simtec_i2c_setscl(void *pw, int state) in simtec_i2c_setscl() argument
42 struct simtec_i2c_data *pd = pw; in simtec_i2c_setscl()
46 static int simtec_i2c_getsda(void *pw) in simtec_i2c_getsda() argument
48 struct simtec_i2c_data *pd = pw; in simtec_i2c_getsda()
52 static int simtec_i2c_getscl(void *pw) in simtec_i2c_getscl() argument
54 struct simtec_i2c_data *pd = pw; in simtec_i2c_getscl()
/linux/kernel/
H A Dpadata.c74 struct padata_work *pw; in padata_work_alloc() local
81 pw = list_first_entry(&padata_free_works, struct padata_work, pw_list); in padata_work_alloc()
82 list_del(&pw->pw_list); in padata_work_alloc()
83 return pw; in padata_work_alloc()
94 static void __ref padata_work_init(struct padata_work *pw, work_func_t work_fn, in padata_work_init() argument
98 INIT_WORK_ONSTACK(&pw->pw_work, work_fn); in padata_work_init()
100 INIT_WORK(&pw->pw_work, work_fn); in padata_work_init()
101 pw->pw_data = data; in padata_work_init()
112 struct padata_work *pw = padata_work_alloc(); in padata_work_alloc_mt() local
114 if (!pw) in padata_work_alloc_mt()
[all …]
/linux/drivers/net/mdio/
H A Dmdio-i2c.c358 u8 pw[5]; in i2c_mii_init_rollball() local
361 pw[0] = ROLLBALL_PASSWORD; in i2c_mii_init_rollball()
362 pw[1] = 0xff; in i2c_mii_init_rollball()
363 pw[2] = 0xff; in i2c_mii_init_rollball()
364 pw[3] = 0xff; in i2c_mii_init_rollball()
365 pw[4] = 0xff; in i2c_mii_init_rollball()
369 msg.len = sizeof(pw); in i2c_mii_init_rollball()
370 msg.buf = pw; in i2c_mii_init_rollball()
/linux/drivers/media/usb/pwc/
H A Dpwc-dec23.c92 int compression_mode, j, k, bit, pw; in build_table_color() local
125 pw = 1 << bit; in build_table_color()
126 p0[k + 0x00] = (1 * pw) + 0x80; in build_table_color()
127 p0[k + 0x10] = (2 * pw) + 0x80; in build_table_color()
128 p0[k + 0x20] = (3 * pw) + 0x80; in build_table_color()
129 p0[k + 0x30] = (4 * pw) + 0x80; in build_table_color()
130 p0[k + 0x40] = (-1 * pw) + 0x80; in build_table_color()
131 p0[k + 0x50] = (-2 * pw) + 0x80; in build_table_color()
132 p0[k + 0x60] = (-3 * pw) + 0x80; in build_table_color()
133 p0[k + 0x70] = (-4 * pw) + 0x80; in build_table_color()
/linux/drivers/iio/accel/
H A Dst_accel_core.c140 .pw = {
218 .pw = {
303 .pw = {
387 .pw = {
458 .pw = {
533 .pw = {
603 .pw = {
665 .pw = {
738 .pw = {
813 .pw = {
[all …]
/linux/drivers/scsi/esas2r/
H A Desas2r_flash.c589 u16 *pw = (u16 *)cfg - 1; in chk_cfg() local
603 type = le16_to_cpu(*pw--); in chk_cfg()
604 size = le16_to_cpu(*pw--); in chk_cfg()
613 *flash_ver = le32_to_cpu(*(u32 *)(pw - 1)); in chk_cfg()
616 pw -= size / sizeof(u16); in chk_cfg()
669 u16 *pw; in calc_fi_checksum() local
672 pw = (u16 *)((u8 *)fi + fc->fi_hdr_len), in calc_fi_checksum()
675 len--, pw++) in calc_fi_checksum()
676 cksum = cksum + le16_to_cpu(*pw); in calc_fi_checksum()
1044 u16 *pw; in esas2r_read_flash_rev() local
[all …]
/linux/drivers/iio/common/st_sensors/
H A Dst_sensors_core.c88 sdata->sensor_settings->pw.addr) && in st_sensors_set_odr()
90 sdata->sensor_settings->pw.mask)) { in st_sensors_set_odr()
170 tmp_value = sdata->sensor_settings->pw.value_on; in st_sensors_set_enable()
172 sdata->sensor_settings->pw.addr) && in st_sensors_set_enable()
174 sdata->sensor_settings->pw.mask)) { in st_sensors_set_enable()
183 sdata->sensor_settings->pw.addr, in st_sensors_set_enable()
184 sdata->sensor_settings->pw.mask, tmp_value); in st_sensors_set_enable()
194 sdata->sensor_settings->pw.addr, in st_sensors_set_enable()
195 sdata->sensor_settings->pw.mask, in st_sensors_set_enable()
196 sdata->sensor_settings->pw.value_off); in st_sensors_set_enable()
/linux/arch/arm64/kvm/
H A Dat.c752 bool perm_fail, ur, uw, ux, pr, pw, px; in handle_at_slow() local
778 pr = pw = true; in handle_at_slow()
782 pr = pw = ur = uw = true; in handle_at_slow()
786 pw = ur = uw = false; in handle_at_slow()
790 pw = uw = false; in handle_at_slow()
801 pw = uw = false; in handle_at_slow()
804 pw = ur = uw = false; in handle_at_slow()
817 pw &= !pan; in handle_at_slow()
824 pr = pw = true; in handle_at_slow()
827 pw = false; in handle_at_slow()
[all …]
/linux/drivers/iio/pressure/
H A Dst_pressure_core.c248 .pw = {
320 .pw = {
373 .pw = {
443 .pw = {
512 .pw = {
582 .pw = {
/linux/include/soc/arc/
H A Dmcip.h65 pad:1, gfrc:1, dbg:1, pw:1, member
71 pw:1, dbg:1, gfrc:1, pad:1,
/linux/drivers/md/
H A Ddm-verity-target.c683 struct dm_verity_prefetch_work *pw = in verity_prefetch_io() local
685 struct dm_verity *v = pw->v; in verity_prefetch_io()
692 verity_hash_at_level(v, pw->block, i, &hash_block_start, NULL); in verity_prefetch_io()
693 verity_hash_at_level(v, pw->block + pw->n_blocks - 1, i, &hash_block_end, NULL); in verity_prefetch_io()
713 pw->ioprio); in verity_prefetch_io()
716 kfree(pw); in verity_prefetch_io()
724 struct dm_verity_prefetch_work *pw; in verity_submit_prefetch() local
738 pw = kmalloc(sizeof(struct dm_verity_prefetch_work), in verity_submit_prefetch()
741 if (!pw) in verity_submit_prefetch()
744 INIT_WORK(&pw->work, verity_prefetch_io); in verity_submit_prefetch()
[all …]
/linux/drivers/iio/magnetometer/
H A Dst_magn_core.c166 .pw = {
245 .pw = {
325 .pw = {
394 .pw = {
445 .pw = {
/linux/drivers/iio/gyro/
H A Dst_gyro_core.c87 .pw = {
165 .pw = {
239 .pw = {
313 .pw = {
/linux/drivers/clk/bcm/
H A Dclk-nsp.c16 #define AON_VAL(o, pw, ps, is) { .offset = o, .pwr_width = pw, \ argument
H A Dclk-ns2.c16 #define AON_VAL(o, pw, ps, is) { .offset = o, .pwr_width = pw, \ argument
H A Dclk-cygnus.c18 #define AON_VAL(o, pw, ps, is) { .offset = o, .pwr_width = pw, \ argument
/linux/drivers/gpu/drm/imx/dcss/
H A Ddcss-dtg.c243 int px, int py, int pw, int ph) in dcss_dtg_plane_pos_set() argument
250 p_lrc_x = p_ulc_x + pw; in dcss_dtg_plane_pos_set()
253 if (!px && !py && !pw && !ph) { in dcss_dtg_plane_pos_set()
/linux/drivers/net/pse-pd/
H A Dpd692x0.c571 struct pd692x0_msg *msg, int pw) in pd692x0_pi_set_pw_from_table() argument
577 if (pw < pw_table->class_pw) { in pd692x0_pi_set_pw_from_table()
580 pw, in pd692x0_pi_set_pw_from_table()
587 if (pw > (pw_table->class_pw + pw_table->max_added_class_pw)) in pd692x0_pi_set_pw_from_table()
590 if (pw < pw_table->class_pw) { in pd692x0_pi_set_pw_from_table()
593 pw, in pd692x0_pi_set_pw_from_table()
602 msg->data[3] = (pw - pw_table->class_pw) / 100; in pd692x0_pi_set_pw_from_table()
609 pw, pw_table->class_pw + pw_table->max_added_class_pw); in pd692x0_pi_set_pw_from_table()
/linux/drivers/pci/controller/
H A Dpci-rcar-gen2.c133 static irqreturn_t rcar_pci_err_irq(int irq, void *pw) in rcar_pci_err_irq() argument
135 struct rcar_pci *priv = pw; in rcar_pci_err_irq()
/linux/drivers/scsi/pm8001/
H A Dpm8001_hwi.c1448 struct pm8001_work *pw = container_of(work, struct pm8001_work, work); in pm8001_work_fn() local
1458 if (pw->handler != IO_FATAL_ERROR) { in pm8001_work_fn()
1459 pm8001_dev = pw->data; /* Most stash device structure */ in pm8001_work_fn()
1461 || ((pw->handler != IO_XFER_ERROR_BREAK) in pm8001_work_fn()
1463 kfree(pw); in pm8001_work_fn()
1468 switch (pw->handler) { in pm8001_work_fn()
1473 struct pm8001_hba_info *pm8001_ha = pw->pm8001_ha; in pm8001_work_fn()
1514 t, pw->handler, ts->resp, ts->stat); in pm8001_work_fn()
1529 struct pm8001_hba_info *pm8001_ha = pw->pm8001_ha; in pm8001_work_fn()
1628 struct pm8001_hba_info *pm8001_ha = pw->pm8001_ha; in pm8001_work_fn()
[all …]

12