Home
last modified time | relevance | path

Searched refs:privdata (Results 1 – 21 of 21) sorted by relevance

/openbmc/linux/drivers/hid/amd-sfh-hid/
H A Damd_sfh_pcie.c54 static void amd_start_sensor_v2(struct amd_mp2_dev *privdata, struct amd_mp2_sensor_info info) in amd_start_sensor_v2() argument
68 writeq(info.dma_address, privdata->mmio + AMD_C2P_MSG1); in amd_start_sensor_v2()
69 writel(cmd_base.ul, privdata->mmio + AMD_C2P_MSG0); in amd_start_sensor_v2()
72 static void amd_stop_sensor_v2(struct amd_mp2_dev *privdata, u16 sensor_idx) in amd_stop_sensor_v2() argument
83 writeq(0x0, privdata->mmio + AMD_C2P_MSG1); in amd_stop_sensor_v2()
84 writel(cmd_base.ul, privdata->mmio + AMD_C2P_MSG0); in amd_stop_sensor_v2()
87 static void amd_stop_all_sensor_v2(struct amd_mp2_dev *privdata) in amd_stop_all_sensor_v2() argument
96 writel(cmd_base.ul, privdata->mmio + AMD_C2P_MSG0); in amd_stop_all_sensor_v2()
99 void amd_sfh_clear_intr_v2(struct amd_mp2_dev *privdata) in amd_sfh_clear_intr_v2() argument
101 if (readl(privdata->mmio + AMD_P2C_MSG(4))) { in amd_sfh_clear_intr_v2()
[all …]
H A Damd_sfh_common.h53 void (*start)(struct amd_mp2_dev *privdata, struct amd_mp2_sensor_info info);
54 void (*stop)(struct amd_mp2_dev *privdata, u16 sensor_idx);
55 void (*stop_all)(struct amd_mp2_dev *privdata);
57 void (*clear_intr)(struct amd_mp2_dev *privdata);
58 int (*init_intr)(struct amd_mp2_dev *privdata);
59 int (*discovery_status)(struct amd_mp2_dev *privdata);
62 void (*remove)(void *privdata);
72 void amd_sfh_clear_intr_v2(struct amd_mp2_dev *privdata);
73 int amd_sfh_irq_init_v2(struct amd_mp2_dev *privdata);
74 void amd_sfh_clear_intr(struct amd_mp2_dev *privdata);
[all …]
H A Damd_sfh_client.c208 int amd_sfh_hid_client_init(struct amd_mp2_dev *privdata) in amd_sfh_hid_client_init() argument
210 struct amd_input_data *in_data = &privdata->in_data; in amd_sfh_hid_client_init()
211 struct amdtp_cl_data *cl_data = privdata->cl_data; in amd_sfh_hid_client_init()
212 struct amd_mp2_ops *mp2_ops = privdata->mp2_ops; in amd_sfh_hid_client_init()
222 dev = &privdata->pdev->dev; in amd_sfh_hid_client_init()
228 cl_data->num_hid_devices = amd_mp2_get_sensor_num(privdata, &cl_data->sensor_idx[0]); in amd_sfh_hid_client_init()
288 mp2_ops->start(privdata, info); in amd_sfh_hid_client_init()
290 (privdata, cl_data->sensor_idx[i], SENSOR_ENABLED); in amd_sfh_hid_client_init()
297 (mp2_ops->discovery_status && mp2_ops->discovery_status(privdata) == 0)) { in amd_sfh_hid_client_init()
322 amd_sfh_hid_client_deinit(privdata); in amd_sfh_hid_client_init()
[all …]
H A Damd_sfh_pcie.h102 int amd_mp2_get_sensor_num(struct amd_mp2_dev *privdata, u8 *sensor_id);
103 int amd_sfh_hid_client_init(struct amd_mp2_dev *privdata);
104 int amd_sfh_hid_client_deinit(struct amd_mp2_dev *privdata);
/openbmc/linux/drivers/i2c/busses/
H A Di2c-amd-mp2-pci.c21 struct amd_mp2_dev *privdata = i2c_common->mp2_dev; in amd_mp2_c2p_mutex_lock() local
24 mutex_lock(&privdata->c2p_lock); in amd_mp2_c2p_mutex_lock()
25 privdata->c2p_lock_busid = i2c_common->bus_id; in amd_mp2_c2p_mutex_lock()
30 struct amd_mp2_dev *privdata = i2c_common->mp2_dev; in amd_mp2_c2p_mutex_unlock() local
32 if (unlikely(privdata->c2p_lock_busid != i2c_common->bus_id)) { in amd_mp2_c2p_mutex_unlock()
33 pci_warn(privdata->pci_dev, in amd_mp2_c2p_mutex_unlock()
35 i2c_common->bus_id, privdata->c2p_lock_busid); in amd_mp2_c2p_mutex_unlock()
39 mutex_unlock(&privdata->c2p_lock); in amd_mp2_c2p_mutex_unlock()
45 struct amd_mp2_dev *privdata = i2c_common->mp2_dev; in amd_mp2_cmd() local
50 reg = privdata->mmio + ((i2c_cmd_base.s.bus_id == 1) ? in amd_mp2_cmd()
[all …]
/openbmc/linux/drivers/hid/amd-sfh-hid/sfh1_1/
H A Damd_sfh_init.c70 static int amd_sfh_hid_client_deinit(struct amd_mp2_dev *privdata) in amd_sfh_hid_client_deinit() argument
72 struct amdtp_cl_data *cl_data = privdata->cl_data; in amd_sfh_hid_client_deinit()
77 privdata->mp2_ops->stop(privdata, cl_data->sensor_idx[i]); in amd_sfh_hid_client_deinit()
79 (privdata, cl_data->sensor_idx[i], DISABLE_SENSOR); in amd_sfh_hid_client_deinit()
82 dev_dbg(&privdata->pdev->dev, "stopping sid 0x%x (%s) status 0x%x\n", in amd_sfh_hid_client_deinit()
95 static int amd_sfh1_1_hid_client_init(struct amd_mp2_dev *privdata) in amd_sfh1_1_hid_client_init() argument
97 struct amd_input_data *in_data = &privdata->in_data; in amd_sfh1_1_hid_client_init()
98 struct amdtp_cl_data *cl_data = privdata->cl_data; in amd_sfh1_1_hid_client_init()
99 struct amd_mp2_ops *mp2_ops = privdata->mp2_ops; in amd_sfh1_1_hid_client_init()
109 dev = &privdata->pdev->dev; in amd_sfh1_1_hid_client_init()
[all …]
H A Damd_sfh_interface.c29 static void amd_start_sensor(struct amd_mp2_dev *privdata, struct amd_mp2_sensor_info info) in amd_start_sensor() argument
39 writel(cmd_base.ul, privdata->mmio + AMD_C2P_MSG(0)); in amd_start_sensor()
42 static void amd_stop_sensor(struct amd_mp2_dev *privdata, u16 sensor_idx) in amd_stop_sensor() argument
52 writeq(0x0, privdata->mmio + AMD_C2P_MSG(1)); in amd_stop_sensor()
53 writel(cmd_base.ul, privdata->mmio + AMD_C2P_MSG(0)); in amd_stop_sensor()
56 static void amd_stop_all_sensor(struct amd_mp2_dev *privdata) in amd_stop_all_sensor() argument
66 writel(cmd_base.ul, privdata->mmio + AMD_C2P_MSG(0)); in amd_stop_all_sensor()
/openbmc/linux/drivers/hid/amd-sfh-hid/hid_descriptor/
H A Damd_sfh_hid_desc.c209 struct amd_mp2_dev *privdata = container_of(in_data, struct amd_mp2_dev, in_data); in get_input_report() local
212 u8 supported_input = privdata->mp2_acs & GENMASK(3, 0); in get_input_report()
256 readl(privdata->mmio + AMD_C2P_MSG(5)) & ILLUMINANCE_MASK; in get_input_report()
265 hpdstatus.val = readl(privdata->mmio + AMD_C2P_MSG(4)); in get_input_report()
/openbmc/linux/drivers/usb/gadget/udc/
H A Dfsl_qe_udc.h180 void *privdata; member
234 #define frame_get_privdata(frm) (frm->privdata)
235 #define frame_set_privdata(frm, dat) (frm->privdata = dat)
/openbmc/linux/drivers/counter/
H A Dcounter-core.c37 unsigned long privdata[] ____cacheline_aligned; member
74 return &ch->privdata; in counter_priv()
/openbmc/linux/include/net/
H A Dpkt_sched.h25 return &q->privdata; in qdisc_priv()
30 return container_of(priv, struct Qdisc, privdata); in qdisc_from_priv()
H A Dsch_generic.h131 long privdata[] ____cacheline_aligned; member
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_vf_isr.c130 static irqreturn_t adf_isr(int irq, void *privdata) in adf_isr() argument
132 struct adf_accel_dev *accel_dev = privdata; in adf_isr()
/openbmc/linux/drivers/usb/c67x00/
H A Dc67x00-sched.c63 unsigned long privdata; member
565 unsigned long privdata) in c67x00_create_td() argument
629 td->privdata = privdata; in c67x00_create_td()
920 switch (td->privdata) { in c67x00_handle_successful_td()
961 cnt = td->privdata; in c67x00_handle_isoc()
/openbmc/linux/arch/m68k/mac/
H A Diop.c448 int iop_send_message(uint iop_num, uint chan, void *privdata, in iop_send_message() argument
465 msg->caller_priv = privdata; in iop_send_message()
/openbmc/linux/include/linux/
H A Dthunderbolt.h86 unsigned long privdata[]; member
/openbmc/u-boot/include/
H A Dusbdevice.h616 void *privdata; /* private data for the bus interface */ member
/openbmc/linux/drivers/scsi/
H A Dmyrb.c3399 struct myrb_privdata *privdata = in myrb_detect() local
3401 irq_handler_t irq_handler = privdata->irq_handler; in myrb_detect()
3402 unsigned int mmio_size = privdata->mmio_size; in myrb_detect()
3425 if (privdata->hw_init == DAC960_PD_hw_init || in myrb_detect()
3426 privdata->hw_init == DAC960_P_hw_init) { in myrb_detect()
3444 if (privdata->hw_init(pdev, cb, cb->io_base)) in myrb_detect()
H A Dmyrs.c2287 struct myrs_privdata *privdata = in myrs_detect() local
2289 irq_handler_t irq_handler = privdata->irq_handler; in myrs_detect()
2290 unsigned int mmio_size = privdata->mmio_size; in myrs_detect()
2318 if (privdata->hw_init(pdev, cs, cs->io_base)) in myrs_detect()
/openbmc/linux/drivers/scsi/mpi3mr/
H A Dmpi3mr_fw.c607 static irqreturn_t mpi3mr_isr_primary(int irq, void *privdata) in mpi3mr_isr_primary() argument
609 struct mpi3mr_intr_info *intr_info = privdata; in mpi3mr_isr_primary()
638 static irqreturn_t mpi3mr_isr(int irq, void *privdata) in mpi3mr_isr() argument
640 struct mpi3mr_intr_info *intr_info = privdata; in mpi3mr_isr()
647 ret = mpi3mr_isr_primary(irq, privdata); in mpi3mr_isr()
675 static irqreturn_t mpi3mr_isr_poll(int irq, void *privdata) in mpi3mr_isr_poll() argument
677 struct mpi3mr_intr_info *intr_info = privdata; in mpi3mr_isr_poll()
/openbmc/linux/drivers/thunderbolt/
H A Dtb.h523 return (void *)tb->privdata; in tb_priv()