/drivers/mfd/ |
D | kempld-core.c | 36 static void kempld_get_hardware_mutex(struct kempld_device_data *pld) in kempld_get_hardware_mutex() argument 39 while (ioread8(pld->io_index) & KEMPLD_MUTEX_KEY) in kempld_get_hardware_mutex() 43 static void kempld_release_hardware_mutex(struct kempld_device_data *pld) in kempld_release_hardware_mutex() argument 46 iowrite8(KEMPLD_MUTEX_KEY, pld->io_index); in kempld_release_hardware_mutex() 49 static int kempld_get_info_generic(struct kempld_device_data *pld) in kempld_get_info_generic() argument 54 kempld_get_mutex(pld); in kempld_get_info_generic() 56 version = kempld_read16(pld, KEMPLD_VERSION); in kempld_get_info_generic() 57 spec = kempld_read8(pld, KEMPLD_SPEC); in kempld_get_info_generic() 58 pld->info.buildnr = kempld_read16(pld, KEMPLD_BUILDNR); in kempld_get_info_generic() 60 pld->info.minor = KEMPLD_VERSION_GET_MINOR(version); in kempld_get_info_generic() [all …]
|
/drivers/gpio/ |
D | gpio-kempld.c | 35 struct kempld_device_data *pld; member 42 static void kempld_gpio_bitop(struct kempld_device_data *pld, in kempld_gpio_bitop() argument 47 status = kempld_read8(pld, reg); in kempld_gpio_bitop() 52 kempld_write8(pld, reg, status); in kempld_gpio_bitop() 55 static int kempld_gpio_get_bit(struct kempld_device_data *pld, u8 reg, u8 bit) in kempld_gpio_get_bit() argument 59 kempld_get_mutex(pld); in kempld_gpio_get_bit() 60 status = kempld_read8(pld, reg); in kempld_gpio_get_bit() 61 kempld_release_mutex(pld); in kempld_gpio_get_bit() 69 struct kempld_device_data *pld = gpio->pld; in kempld_gpio_get() local 71 return !!kempld_gpio_get_bit(pld, KEMPLD_GPIO_LVL_NUM(offset), offset); in kempld_gpio_get() [all …]
|
/drivers/i2c/busses/ |
D | i2c-kempld.c | 65 struct kempld_device_data *pld; member 92 struct kempld_device_data *pld = i2c->pld; in kempld_i2c_process() local 93 u8 stat = kempld_read8(pld, KEMPLD_I2C_STAT); in kempld_i2c_process() 103 kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_IACK); in kempld_i2c_process() 112 kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_STOP); in kempld_i2c_process() 136 kempld_write8(pld, KEMPLD_I2C_DATA, addr); in kempld_i2c_process() 137 kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_START); in kempld_i2c_process() 144 kempld_write8(pld, KEMPLD_I2C_DATA, i2c->msg->addr & 0xff); in kempld_i2c_process() 145 kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_WRITE); in kempld_i2c_process() 156 kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_STOP); in kempld_i2c_process() [all …]
|
/drivers/watchdog/ |
D | kempld_wdt.c | 82 struct kempld_device_data *pld; member 116 struct kempld_device_data *pld = wdt_data->pld; in kempld_wdt_set_stage_action() local 122 kempld_get_mutex(pld); in kempld_wdt_set_stage_action() 123 stage_cfg = kempld_read8(pld, KEMPLD_WDT_STAGE_CFG(stage->id)); in kempld_wdt_set_stage_action() 132 kempld_write8(pld, KEMPLD_WDT_STAGE_CFG(stage->id), stage_cfg); in kempld_wdt_set_stage_action() 133 kempld_release_mutex(pld); in kempld_wdt_set_stage_action() 142 struct kempld_device_data *pld = wdt_data->pld; in kempld_wdt_set_stage_timeout() local 159 stage_timeout64 = (u64)timeout * pld->pld_clock; in kempld_wdt_set_stage_timeout() 169 kempld_get_mutex(pld); in kempld_wdt_set_stage_timeout() 170 stage_cfg = kempld_read8(pld, KEMPLD_WDT_STAGE_CFG(stage->id)); in kempld_wdt_set_stage_timeout() [all …]
|
/drivers/usb/core/ |
D | usb-acpi.c | 89 struct acpi_pld_info *pld) in usb_acpi_get_connect_type() argument 112 if (pld->user_visible) in usb_acpi_get_connect_type() 116 else if (!pld->user_visible) in usb_acpi_get_connect_type() 176 struct acpi_pld_info *pld; in usb_acpi_find_companion() local 214 status = acpi_get_physical_device_location(handle, &pld); in usb_acpi_find_companion() 215 if (ACPI_FAILURE(status) || !pld) in usb_acpi_find_companion() 219 | pld->group_token << 8 | pld->group_position; in usb_acpi_find_companion() 220 port_dev->connect_type = usb_acpi_get_connect_type(handle, pld); in usb_acpi_find_companion() 221 ACPI_FREE(pld); in usb_acpi_find_companion()
|
/drivers/scsi/csiostor/ |
D | csio_lnode.c | 285 uint8_t *pld; in csio_ln_fdmi_rhba_cbfn() local 318 pld = (uint8_t *)csio_ct_get_pld(cmd); in csio_ln_fdmi_rhba_cbfn() 319 port_name = (struct fc_fdmi_port_name *)pld; in csio_ln_fdmi_rhba_cbfn() 321 pld += sizeof(*port_name); in csio_ln_fdmi_rhba_cbfn() 324 attrib_blk = (struct fs_fdmi_attrs *)pld; in csio_ln_fdmi_rhba_cbfn() 327 pld += sizeof(attrib_blk->numattrs); in csio_ln_fdmi_rhba_cbfn() 333 csio_append_attrib(&pld, FC_FDMI_PORT_ATTR_FC4TYPES, in csio_ln_fdmi_rhba_cbfn() 337 csio_append_attrib(&pld, FC_FDMI_PORT_ATTR_SUPPORTEDSPEED, in csio_ln_fdmi_rhba_cbfn() 348 csio_append_attrib(&pld, FC_FDMI_PORT_ATTR_CURRENTPORTSPEED, in csio_ln_fdmi_rhba_cbfn() 354 csio_append_attrib(&pld, FC_FDMI_PORT_ATTR_MAXFRAMESIZE, in csio_ln_fdmi_rhba_cbfn() [all …]
|
/drivers/scsi/bfa/ |
D | bfa_fcbuild.h | 153 u16 fc_plogi_build(struct fchs_s *fchs, void *pld, u32 d_id, 168 u16 fc_rspnid_build(struct fchs_s *fchs, void *pld, u32 s_id, 170 u16 fc_rsnn_nn_build(struct fchs_s *fchs, void *pld, u32 s_id, 173 u16 fc_rftid_build(struct fchs_s *fchs, void *pld, u32 s_id, 186 u16 fc_gpnid_build(struct fchs_s *fchs, void *pld, u32 s_id, 196 u16 fc_plogi_acc_build(struct fchs_s *fchs, void *pld, u32 d_id, 205 enum fc_parse_status fc_adisc_parse(struct fchs_s *fchs, void *pld, 219 u16 fc_prli_build(struct fchs_s *fchs, void *pld, u32 d_id, 224 u16 fc_prli_acc_build(struct fchs_s *fchs, void *pld, u32 d_id, 245 u16 fc_gid_ft_build(struct fchs_s *fchs, void *pld, u32 s_id, [all …]
|
D | bfa_fcbuild.c | 224 fc_plogi_x_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, in fc_plogi_x_build() argument 228 struct fc_logi_s *plogi = (struct fc_logi_s *) (pld); in fc_plogi_x_build() 330 fc_plogi_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, in fc_plogi_build() argument 334 return fc_plogi_x_build(fchs, pld, d_id, s_id, ox_id, port_name, in fc_plogi_build() 339 fc_plogi_acc_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, in fc_plogi_acc_build() argument 343 return fc_plogi_x_build(fchs, pld, d_id, s_id, ox_id, port_name, in fc_plogi_acc_build() 398 fc_prli_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, in fc_prli_build() argument 401 struct fc_prli_s *prli = (struct fc_prli_s *) (pld); in fc_prli_build() 417 fc_prli_acc_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, in fc_prli_acc_build() argument 420 struct fc_prli_s *prli = (struct fc_prli_s *) (pld); in fc_prli_acc_build() [all …]
|
D | bfa_fcs_rport.c | 1897 void *pld = bfa_fcxp_get_rspbuf(fcxp); in bfa_fcs_rport_adisc_response() local 1907 if (fc_adisc_rsp_parse((struct fc_adisc_s *)pld, rsp_len, rport->pwwn, in bfa_fcs_rport_adisc_response() 1915 ls_rjt = pld; in bfa_fcs_rport_adisc_response()
|
/drivers/net/wimax/i2400m/ |
D | i2400m.h | 835 size_t i2400m_pld_size(const struct i2400m_pld *pld) in i2400m_pld_size() argument 837 return I2400M_PLD_SIZE_MASK & le32_to_cpu(pld->val); in i2400m_pld_size() 841 enum i2400m_pt i2400m_pld_type(const struct i2400m_pld *pld) in i2400m_pld_type() argument 843 return (I2400M_PLD_TYPE_MASK & le32_to_cpu(pld->val)) in i2400m_pld_type() 848 void i2400m_pld_set(struct i2400m_pld *pld, size_t size, in i2400m_pld_set() argument 851 pld->val = cpu_to_le32( in i2400m_pld_set()
|
D | rx.c | 1098 unsigned single_last, const struct i2400m_pld *pld, in i2400m_rx_payload() argument 1102 size_t pl_size = i2400m_pld_size(pld); in i2400m_rx_payload() 1103 enum i2400m_pt pl_type = i2400m_pld_type(pld); in i2400m_rx_payload() 1189 const struct i2400m_pld *pld, in i2400m_rx_pl_descr_check() argument 1194 size_t pl_size = i2400m_pld_size(pld); in i2400m_rx_pl_descr_check() 1195 enum i2400m_pt pl_type = i2400m_pld_type(pld); in i2400m_rx_pl_descr_check() 1264 num_pls * sizeof(msg_hdr->pld[0]); in i2400m_rx() 1269 skb_len, num_pls, sizeof(msg_hdr->pld[0]), pl_itr); in i2400m_rx() 1275 pl_size = i2400m_pld_size(&msg_hdr->pld[i]); in i2400m_rx() 1276 result = i2400m_rx_pl_descr_check(i2400m, &msg_hdr->pld[i], in i2400m_rx() [all …]
|
D | tx.c | 644 + le16_to_cpu(tx_msg->num_pls) * sizeof(tx_msg->pld[0]); in i2400m_tx_close() 784 i2400m_pld_set(&tx_msg->pld[num_pls], buf_len, pl_type); in i2400m_tx() 786 le32_to_cpu(tx_msg->pld[num_pls].val), in i2400m_tx()
|
/drivers/net/wireless/ath/ath9k/ |
D | ar9003_mci.c | 481 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() 1237 u32 pld[4] = {0, 0, 0, 0}; in ar9003_mci_init_cal_req() local 1243 MCI_GPM_SET_CAL_TYPE(pld, MCI_GPM_WLAN_CAL_REQ); in ar9003_mci_init_cal_req() [all …]
|
/drivers/acpi/ |
D | utils.c | 400 acpi_get_physical_device_location(acpi_handle handle, struct acpi_pld_info **pld) in acpi_get_physical_device_location() argument 424 pld); in acpi_get_physical_device_location()
|