Home
last modified time | relevance | path

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

/drivers/hid/amd-sfh-hid/
Damd_sfh_pcie.c49 static void amd_start_sensor_v2(struct amd_mp2_dev *privdata, struct amd_mp2_sensor_info info) in amd_start_sensor_v2() argument
62 writeq(info.dma_address, privdata->mmio + AMD_C2P_MSG1); in amd_start_sensor_v2()
63 writel(cmd_base.ul, privdata->mmio + AMD_C2P_MSG0); in amd_start_sensor_v2()
66 static void amd_stop_sensor_v2(struct amd_mp2_dev *privdata, u16 sensor_idx) in amd_stop_sensor_v2() argument
76 writeq(0x0, privdata->mmio + AMD_C2P_MSG1); in amd_stop_sensor_v2()
77 writel(cmd_base.ul, privdata->mmio + AMD_C2P_MSG0); in amd_stop_sensor_v2()
80 static void amd_stop_all_sensor_v2(struct amd_mp2_dev *privdata) in amd_stop_all_sensor_v2() argument
88 writel(cmd_base.ul, privdata->mmio + AMD_C2P_MSG0); in amd_stop_all_sensor_v2()
91 static void amd_sfh_clear_intr_v2(struct amd_mp2_dev *privdata) in amd_sfh_clear_intr_v2() argument
93 if (readl(privdata->mmio + AMD_P2C_MSG(4))) { in amd_sfh_clear_intr_v2()
[all …]
Damd_sfh_client.c143 int amd_sfh_hid_client_init(struct amd_mp2_dev *privdata) in amd_sfh_hid_client_init() argument
145 struct amd_input_data *in_data = &privdata->in_data; in amd_sfh_hid_client_init()
146 struct amdtp_cl_data *cl_data = privdata->cl_data; in amd_sfh_hid_client_init()
154 dev = &privdata->pdev->dev; in amd_sfh_hid_client_init()
156 cl_data->num_hid_devices = amd_mp2_get_sensor_num(privdata, &cl_data->sensor_idx[0]); in amd_sfh_hid_client_init()
215 privdata->mp2_ops->start(privdata, info); in amd_sfh_hid_client_init()
217 (privdata, cl_data->sensor_idx[i], SENSOR_ENABLED); in amd_sfh_hid_client_init()
222 privdata->mp2_ops->stop(privdata, cl_data->sensor_idx[i]); in amd_sfh_hid_client_init()
224 (privdata, cl_data->sensor_idx[i], SENSOR_DISABLED); in amd_sfh_hid_client_init()
235 if (privdata->mp2_ops->discovery_status && in amd_sfh_hid_client_init()
[all …]
Damd_sfh_pcie.h131 void amd_start_sensor(struct amd_mp2_dev *privdata, struct amd_mp2_sensor_info info);
132 void amd_stop_sensor(struct amd_mp2_dev *privdata, u16 sensor_idx);
133 void amd_stop_all_sensors(struct amd_mp2_dev *privdata);
134 int amd_mp2_get_sensor_num(struct amd_mp2_dev *privdata, u8 *sensor_id);
135 int amd_sfh_hid_client_init(struct amd_mp2_dev *privdata);
136 int amd_sfh_hid_client_deinit(struct amd_mp2_dev *privdata);
142 void (*start)(struct amd_mp2_dev *privdata, struct amd_mp2_sensor_info info);
143 void (*stop)(struct amd_mp2_dev *privdata, u16 sensor_idx);
144 void (*stop_all)(struct amd_mp2_dev *privdata);
146 void (*clear_intr)(struct amd_mp2_dev *privdata);
[all …]
/drivers/i2c/busses/
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 …]
/drivers/hid/amd-sfh-hid/hid_descriptor/
Damd_sfh_hid_desc.c204 struct amd_mp2_dev *privdata = container_of(in_data, struct amd_mp2_dev, in_data); in get_input_report() local
207 u8 supported_input = privdata->mp2_acs & GENMASK(3, 0); in get_input_report()
250 readl(privdata->mmio + AMD_C2P_MSG(5)) & ILLUMINANCE_MASK; in get_input_report()
259 hpdstatus.val = readl(privdata->mmio + AMD_C2P_MSG(4)); in get_input_report()
/drivers/usb/gadget/udc/
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)
/drivers/usb/c67x00/
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()
/drivers/crypto/qat/qat_common/
Dadf_vf_isr.c183 static irqreturn_t adf_isr(int irq, void *privdata) in adf_isr() argument
185 struct adf_accel_dev *accel_dev = privdata; in adf_isr()
/drivers/scsi/mpi3mr/
Dmpi3mr_fw.c518 static irqreturn_t mpi3mr_isr_primary(int irq, void *privdata) in mpi3mr_isr_primary() argument
520 struct mpi3mr_intr_info *intr_info = privdata; in mpi3mr_isr_primary()
546 static irqreturn_t mpi3mr_isr(int irq, void *privdata) in mpi3mr_isr() argument
548 struct mpi3mr_intr_info *intr_info = privdata; in mpi3mr_isr()
559 ret = mpi3mr_isr_primary(irq, privdata); in mpi3mr_isr()
587 static irqreturn_t mpi3mr_isr_poll(int irq, void *privdata) in mpi3mr_isr_poll() argument
589 struct mpi3mr_intr_info *intr_info = privdata; in mpi3mr_isr_poll()
/drivers/scsi/
Dmyrb.c3395 struct myrb_privdata *privdata = in myrb_detect() local
3397 irq_handler_t irq_handler = privdata->irq_handler; in myrb_detect()
3398 unsigned int mmio_size = privdata->mmio_size; in myrb_detect()
3421 if (privdata->hw_init == DAC960_PD_hw_init || in myrb_detect()
3422 privdata->hw_init == DAC960_P_hw_init) { in myrb_detect()
3440 if (privdata->hw_init(pdev, cb, cb->io_base)) in myrb_detect()
Dmyrs.c2285 struct myrs_privdata *privdata = in myrs_detect() local
2287 irq_handler_t irq_handler = privdata->irq_handler; in myrs_detect()
2288 unsigned int mmio_size = privdata->mmio_size; in myrs_detect()
2316 if (privdata->hw_init(pdev, cs, cs->io_base)) in myrs_detect()
/drivers/thunderbolt/
Dtb.h471 return (void *)tb->privdata; in tb_priv()