Home
last modified time | relevance | path

Searched refs:pld (Results 1 – 18 of 18) sorted by relevance

/drivers/mfd/
Dkempld-core.c29 static void kempld_get_hardware_mutex(struct kempld_device_data *pld) in kempld_get_hardware_mutex() argument
32 while (ioread8(pld->io_index) & KEMPLD_MUTEX_KEY) in kempld_get_hardware_mutex()
36 static void kempld_release_hardware_mutex(struct kempld_device_data *pld) in kempld_release_hardware_mutex() argument
39 iowrite8(KEMPLD_MUTEX_KEY, pld->io_index); in kempld_release_hardware_mutex()
42 static int kempld_get_info_generic(struct kempld_device_data *pld) in kempld_get_info_generic() argument
47 kempld_get_mutex(pld); in kempld_get_info_generic()
49 version = kempld_read16(pld, KEMPLD_VERSION); in kempld_get_info_generic()
50 spec = kempld_read8(pld, KEMPLD_SPEC); in kempld_get_info_generic()
51 pld->info.buildnr = kempld_read16(pld, KEMPLD_BUILDNR); in kempld_get_info_generic()
53 pld->info.minor = KEMPLD_VERSION_GET_MINOR(version); in kempld_get_info_generic()
[all …]
/drivers/gpio/
Dgpio-kempld.c27 struct kempld_device_data *pld; member
34 static void kempld_gpio_bitop(struct kempld_device_data *pld, in kempld_gpio_bitop() argument
39 status = kempld_read8(pld, reg); in kempld_gpio_bitop()
44 kempld_write8(pld, reg, status); in kempld_gpio_bitop()
47 static int kempld_gpio_get_bit(struct kempld_device_data *pld, u8 reg, u8 bit) in kempld_gpio_get_bit() argument
51 kempld_get_mutex(pld); in kempld_gpio_get_bit()
52 status = kempld_read8(pld, reg); in kempld_gpio_get_bit()
53 kempld_release_mutex(pld); in kempld_gpio_get_bit()
61 struct kempld_device_data *pld = gpio->pld; in kempld_gpio_get() local
63 return !!kempld_gpio_get_bit(pld, KEMPLD_GPIO_LVL_NUM(offset), offset); in kempld_gpio_get()
[all …]
DMakefile65 obj-$(CONFIG_GPIO_GW_PLD) += gpio-gw-pld.o
/drivers/i2c/busses/
Di2c-kempld.c57 struct kempld_device_data *pld; member
84 struct kempld_device_data *pld = i2c->pld; in kempld_i2c_process() local
85 u8 stat = kempld_read8(pld, KEMPLD_I2C_STAT); in kempld_i2c_process()
95 kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_IACK); in kempld_i2c_process()
104 kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_STOP); in kempld_i2c_process()
127 kempld_write8(pld, KEMPLD_I2C_DATA, addr); in kempld_i2c_process()
128 kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_START); in kempld_i2c_process()
135 kempld_write8(pld, KEMPLD_I2C_DATA, i2c->msg->addr & 0xff); in kempld_i2c_process()
136 kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_WRITE); in kempld_i2c_process()
147 kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_STOP); in kempld_i2c_process()
[all …]
/drivers/watchdog/
Dkempld_wdt.c74 struct kempld_device_data *pld; member
108 struct kempld_device_data *pld = wdt_data->pld; in kempld_wdt_set_stage_action() local
114 kempld_get_mutex(pld); in kempld_wdt_set_stage_action()
115 stage_cfg = kempld_read8(pld, KEMPLD_WDT_STAGE_CFG(stage->id)); in kempld_wdt_set_stage_action()
124 kempld_write8(pld, KEMPLD_WDT_STAGE_CFG(stage->id), stage_cfg); in kempld_wdt_set_stage_action()
125 kempld_release_mutex(pld); in kempld_wdt_set_stage_action()
134 struct kempld_device_data *pld = wdt_data->pld; in kempld_wdt_set_stage_timeout() local
146 stage_timeout64 = (u64)timeout * pld->pld_clock; in kempld_wdt_set_stage_timeout()
156 kempld_get_mutex(pld); in kempld_wdt_set_stage_timeout()
157 stage_cfg = kempld_read8(pld, KEMPLD_WDT_STAGE_CFG(stage->id)); in kempld_wdt_set_stage_timeout()
[all …]
/drivers/base/
Dphysical_location.c15 struct acpi_pld_info *pld; in dev_add_physical_location() local
21 status = acpi_get_physical_device_location(ACPI_HANDLE(dev), &pld); in dev_add_physical_location()
28 ACPI_FREE(pld); in dev_add_physical_location()
32 dev->physical_location->panel = pld->panel; in dev_add_physical_location()
33 dev->physical_location->vertical_position = pld->vertical_position; in dev_add_physical_location()
34 dev->physical_location->horizontal_position = pld->horizontal_position; in dev_add_physical_location()
35 dev->physical_location->dock = pld->dock; in dev_add_physical_location()
36 dev->physical_location->lid = pld->lid; in dev_add_physical_location()
38 ACPI_FREE(pld); in dev_add_physical_location()
/drivers/usb/core/
Dusb-acpi.c150 struct acpi_pld_info *pld) in usb_acpi_get_connect_type() argument
174 if (pld->user_visible) in usb_acpi_get_connect_type()
178 else if (!pld->user_visible) in usb_acpi_get_connect_type()
229 struct acpi_pld_info *pld; in usb_acpi_find_companion_for_port() local
238 status = acpi_get_physical_device_location(handle, &pld); in usb_acpi_find_companion_for_port()
239 if (ACPI_SUCCESS(status) && pld) { in usb_acpi_find_companion_for_port()
241 | pld->group_token << 8 | pld->group_position; in usb_acpi_find_companion_for_port()
242 port_dev->connect_type = usb_acpi_get_connect_type(handle, pld); in usb_acpi_find_companion_for_port()
243 ACPI_FREE(pld); in usb_acpi_find_companion_for_port()
/drivers/scsi/csiostor/
Dcsio_lnode.c294 uint8_t *pld; in csio_ln_fdmi_rhba_cbfn() local
328 pld = (uint8_t *)csio_ct_get_pld(cmd); in csio_ln_fdmi_rhba_cbfn()
329 port_name = (struct fc_fdmi_port_name *)pld; in csio_ln_fdmi_rhba_cbfn()
331 pld += sizeof(*port_name); in csio_ln_fdmi_rhba_cbfn()
334 attrib_blk = (struct fs_fdmi_attrs *)pld; in csio_ln_fdmi_rhba_cbfn()
337 pld += sizeof(attrib_blk->numattrs); in csio_ln_fdmi_rhba_cbfn()
343 csio_append_attrib(&pld, FC_FDMI_PORT_ATTR_FC4TYPES, in csio_ln_fdmi_rhba_cbfn()
347 csio_append_attrib(&pld, FC_FDMI_PORT_ATTR_SUPPORTEDSPEED, in csio_ln_fdmi_rhba_cbfn()
366 csio_append_attrib(&pld, FC_FDMI_PORT_ATTR_CURRENTPORTSPEED, in csio_ln_fdmi_rhba_cbfn()
371 csio_append_attrib(&pld, FC_FDMI_PORT_ATTR_MAXFRAMESIZE, in csio_ln_fdmi_rhba_cbfn()
[all …]
/drivers/scsi/bfa/
Dbfa_fcbuild.h145 u16 fc_plogi_build(struct fchs_s *fchs, void *pld, u32 d_id,
159 u16 fc_rspnid_build(struct fchs_s *fchs, void *pld, u32 s_id,
161 u16 fc_rsnn_nn_build(struct fchs_s *fchs, void *pld, u32 s_id,
164 u16 fc_rftid_build(struct fchs_s *fchs, void *pld, u32 s_id,
177 u16 fc_gpnid_build(struct fchs_s *fchs, void *pld, u32 s_id,
187 u16 fc_plogi_acc_build(struct fchs_s *fchs, void *pld, u32 d_id,
196 enum fc_parse_status fc_adisc_parse(struct fchs_s *fchs, void *pld,
210 u16 fc_prli_build(struct fchs_s *fchs, void *pld, u32 d_id,
215 u16 fc_prli_acc_build(struct fchs_s *fchs, void *pld, u32 d_id,
236 u16 fc_gid_ft_build(struct fchs_s *fchs, void *pld, u32 s_id,
[all …]
Dbfa_fcbuild.c195 fc_plogi_x_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, in fc_plogi_x_build() argument
199 struct fc_logi_s *plogi = (struct fc_logi_s *) (pld); in fc_plogi_x_build()
301 fc_plogi_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, in fc_plogi_build() argument
305 return fc_plogi_x_build(fchs, pld, d_id, s_id, ox_id, port_name, in fc_plogi_build()
310 fc_plogi_acc_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, in fc_plogi_acc_build() argument
314 return fc_plogi_x_build(fchs, pld, d_id, s_id, ox_id, port_name, in fc_plogi_acc_build()
369 fc_prli_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, in fc_prli_build() argument
372 struct fc_prli_s *prli = (struct fc_prli_s *) (pld); in fc_prli_build()
388 fc_prli_acc_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, in fc_prli_acc_build() argument
391 struct fc_prli_s *prli = (struct fc_prli_s *) (pld); in fc_prli_acc_build()
[all …]
Dbfa_fcs_rport.c1884 void *pld = bfa_fcxp_get_rspbuf(fcxp); in bfa_fcs_rport_adisc_response() local
1894 if (fc_adisc_rsp_parse((struct fc_adisc_s *)pld, rsp_len, rport->pwwn, in bfa_fcs_rport_adisc_response()
1902 ls_rjt = pld; in bfa_fcs_rport_adisc_response()
/drivers/net/wireless/ath/ath9k/
Dar9003_mci.c481 u32 pld[4] = {0, 0, 0, 0}; in ar9003_mci_send_coex_bt_flags() local
483 MCI_GPM_SET_TYPE_OPCODE(pld, MCI_GPM_COEX_AGENT, in ar9003_mci_send_coex_bt_flags()
486 *(((u8 *)pld) + MCI_GPM_COEX_B_BT_FLAGS_OP) = opcode; in ar9003_mci_send_coex_bt_flags()
487 *(((u8 *)pld) + MCI_GPM_COEX_W_BT_FLAGS + 0) = bt_flags & 0xFF; in ar9003_mci_send_coex_bt_flags()
488 *(((u8 *)pld) + MCI_GPM_COEX_W_BT_FLAGS + 1) = (bt_flags >> 8) & 0xFF; in ar9003_mci_send_coex_bt_flags()
489 *(((u8 *)pld) + MCI_GPM_COEX_W_BT_FLAGS + 2) = (bt_flags >> 16) & 0xFF; in ar9003_mci_send_coex_bt_flags()
490 *(((u8 *)pld) + MCI_GPM_COEX_W_BT_FLAGS + 3) = (bt_flags >> 24) & 0xFF; in ar9003_mci_send_coex_bt_flags()
492 return ar9003_mci_send_message(ah, MCI_GPM, 0, pld, 16, in ar9003_mci_send_coex_bt_flags()
1235 u32 pld[4] = {0, 0, 0, 0}; in ar9003_mci_init_cal_req() local
1241 MCI_GPM_SET_CAL_TYPE(pld, MCI_GPM_WLAN_CAL_REQ); in ar9003_mci_init_cal_req()
[all …]
/drivers/media/pci/intel/ipu3/
Dcio2-bridge.c110 switch (sensor->pld->panel) { in cio2_bridge_parse_orientation()
122 sensor->pld->panel); in cio2_bridge_parse_orientation()
256 ACPI_FREE(sensor->pld); in cio2_bridge_unregister_sensors()
297 status = acpi_get_physical_device_location(adev->handle, &sensor->pld); in cio2_bridge_connect_sensor()
340 ACPI_FREE(sensor->pld); in cio2_bridge_connect_sensor()
Dcio2-bridge.h125 struct acpi_pld_info *pld; member
/drivers/ptp/
Dptp_ines.c735 static int ines_ptp_ctrl_probe(struct platform_device *pld) in ines_ptp_ctrl_probe() argument
741 addr = devm_platform_ioremap_resource(pld, 0); in ines_ptp_ctrl_probe()
751 if (ines_clock_init(clock, &pld->dev, addr)) { in ines_ptp_ctrl_probe()
756 err = register_mii_tstamp_controller(&pld->dev, &ines_ctrl); in ines_ptp_ctrl_probe()
765 dev_set_drvdata(&pld->dev, clock); in ines_ptp_ctrl_probe()
770 static int ines_ptp_ctrl_remove(struct platform_device *pld) in ines_ptp_ctrl_remove() argument
772 struct ines_clock *clock = dev_get_drvdata(&pld->dev); in ines_ptp_ctrl_remove()
774 unregister_mii_tstamp_controller(&pld->dev); in ines_ptp_ctrl_remove()
/drivers/platform/surface/
Dsurface_acpi_notify.c424 u8 pld[]; /* Payload. */ member
437 u8 pld[]; /* _SSH payload. */ member
528 memcpy(&gsb->data.out.pld[0], ptr, len); in gsb_rqsx_response_success()
581 rqst.payload = &gsb_rqst->pld[0]; in san_rqst()
621 evt.payload = &gsb_rqsg->pld[0]; in san_rqsg()
/drivers/acpi/
Dscan.c664 struct acpi_pld_info *pld; in acpi_store_pld_crc() local
667 status = acpi_get_physical_device_location(adev->handle, &pld); in acpi_store_pld_crc()
671 adev->pld_crc = crc32(~0, pld, sizeof(*pld)); in acpi_store_pld_crc()
672 ACPI_FREE(pld); in acpi_store_pld_crc()
Dutils.c416 acpi_get_physical_device_location(acpi_handle handle, struct acpi_pld_info **pld) in acpi_get_physical_device_location() argument
440 pld); in acpi_get_physical_device_location()