Searched refs:priv (Results 126 - 150 of 4408) sorted by relevance

1234567891011>>

/linux-master/drivers/net/wireless/st/cw1200/
H A Dhwio.c30 static int __cw1200_reg_read(struct cw1200_common *priv, u16 addr, argument
46 return priv->hwbus_ops->hwbus_memcpy_fromio(priv->hwbus_priv,
51 static int __cw1200_reg_write(struct cw1200_common *priv, u16 addr, argument
61 return priv->hwbus_ops->hwbus_memcpy_toio(priv->hwbus_priv,
66 static inline int __cw1200_reg_read_32(struct cw1200_common *priv, argument
70 int i = __cw1200_reg_read(priv, addr, &tmp, sizeof(tmp), 0);
75 static inline int __cw1200_reg_write_32(struct cw1200_common *priv, argument
79 return __cw1200_reg_write(priv, add
82 __cw1200_reg_read_16(struct cw1200_common *priv, u16 addr, u16 *val) argument
91 __cw1200_reg_write_16(struct cw1200_common *priv, u16 addr, u16 val) argument
98 cw1200_reg_read(struct cw1200_common *priv, u16 addr, void *buf, size_t buf_len) argument
108 cw1200_reg_write(struct cw1200_common *priv, u16 addr, const void *buf, size_t buf_len) argument
118 cw1200_data_read(struct cw1200_common *priv, void *buf, size_t buf_len) argument
144 cw1200_data_write(struct cw1200_common *priv, const void *buf, size_t buf_len) argument
171 cw1200_indirect_read(struct cw1200_common *priv, u32 addr, void *buf, size_t buf_len, u32 prefetch, u16 port_addr) argument
235 cw1200_apb_write(struct cw1200_common *priv, u32 addr, const void *buf, size_t buf_len) argument
267 __cw1200_irq_enable(struct cw1200_common *priv, int enable) argument
[all...]
/linux-master/drivers/nfc/nfcmrvl/
H A Dmain.c19 struct nfcmrvl_private *priv = nci_get_drvdata(ndev); local
22 if (test_and_set_bit(NFCMRVL_NCI_RUNNING, &priv->flags))
26 clear_bit(NFCMRVL_PHY_ERROR, &priv->flags);
28 err = priv->if_ops->nci_open(priv);
31 clear_bit(NFCMRVL_NCI_RUNNING, &priv->flags);
38 struct nfcmrvl_private *priv = nci_get_drvdata(ndev); local
40 if (!test_and_clear_bit(NFCMRVL_NCI_RUNNING, &priv->flags))
43 priv->if_ops->nci_close(priv);
50 struct nfcmrvl_private *priv = nci_get_drvdata(ndev); local
98 struct nfcmrvl_private *priv; local
182 nfcmrvl_nci_unregister_dev(struct nfcmrvl_private *priv) argument
200 nfcmrvl_nci_recv_frame(struct nfcmrvl_private *priv, struct sk_buff *skb) argument
231 nfcmrvl_chip_reset(struct nfcmrvl_private *priv) argument
245 nfcmrvl_chip_halt(struct nfcmrvl_private *priv) argument
[all...]
/linux-master/drivers/net/can/peak_canfd/
H A Dpeak_canfd.c42 static struct peak_canfd_priv *pucan_init_cmd(struct peak_canfd_priv *priv) argument
44 priv->cmd_len = 0;
45 return priv;
48 static void *pucan_add_cmd(struct peak_canfd_priv *priv, int cmd_op) argument
52 if (priv->cmd_len + sizeof(*cmd) > priv->cmd_maxlen)
55 cmd = priv->cmd_buffer + priv->cmd_len;
60 cmd->opcode_channel = pucan_cmd_opcode_channel(priv->index, cmd_op);
61 priv
66 pucan_write_cmd(struct peak_canfd_priv *priv) argument
87 pucan_set_reset_mode(struct peak_canfd_priv *priv) argument
93 pucan_set_normal_mode(struct peak_canfd_priv *priv) argument
105 pucan_set_listen_only_mode(struct peak_canfd_priv *priv) argument
117 pucan_set_timing_slow(struct peak_canfd_priv *priv, const struct can_bittiming *pbt) argument
140 pucan_set_timing_fast(struct peak_canfd_priv *priv, const struct can_bittiming *pbt) argument
159 pucan_set_std_filter(struct peak_canfd_priv *priv, u8 row, u32 mask) argument
183 pucan_tx_abort(struct peak_canfd_priv *priv, u16 flags) argument
194 pucan_clr_err_counters(struct peak_canfd_priv *priv) argument
207 pucan_set_options(struct peak_canfd_priv *priv, u16 opt_mask) argument
218 pucan_clr_options(struct peak_canfd_priv *priv, u16 opt_mask) argument
229 pucan_setup_rx_barrier(struct peak_canfd_priv *priv) argument
251 pucan_handle_can_rx(struct peak_canfd_priv *priv, struct pucan_rx_msg *msg) argument
328 pucan_handle_error(struct peak_canfd_priv *priv, struct pucan_error_msg *msg) argument
338 pucan_handle_status(struct peak_canfd_priv *priv, struct pucan_status_msg *msg) argument
419 pucan_handle_cache_critical(struct peak_canfd_priv *priv) argument
446 peak_canfd_handle_msg(struct peak_canfd_priv *priv, struct pucan_rx_msg *msg) argument
483 peak_canfd_handle_msgs_list(struct peak_canfd_priv *priv, struct pucan_rx_msg *msg_list, int msg_count) argument
505 peak_canfd_start(struct peak_canfd_priv *priv) argument
527 peak_canfd_stop(struct peak_canfd_priv *priv) argument
544 struct peak_canfd_priv *priv = netdev_priv(ndev); local
561 struct peak_canfd_priv *priv = netdev_priv(ndev); local
569 struct peak_canfd_priv *priv = netdev_priv(ndev); local
618 struct peak_canfd_priv *priv = netdev_priv(ndev); local
625 struct peak_canfd_priv *priv = netdev_priv(ndev); local
632 struct peak_canfd_priv *priv = netdev_priv(ndev); local
644 struct peak_canfd_priv *priv = netdev_priv(ndev); local
803 struct peak_canfd_priv *priv; local
[all...]
/linux-master/drivers/net/wireless/intel/iwlwifi/dvm/
H A Dmac80211.c78 int iwlagn_mac_setup_register(struct iwl_priv *priv, argument
82 struct ieee80211_hw *hw = priv->hw;
99 if (priv->trans->max_skb_frags)
112 if (priv->nvm_data->sku_cap_11n_enable)
121 if (priv->fw->ucode_capa.flags & IWL_UCODE_TLV_FLAGS_MFP &&
128 for_each_context(priv, ctx) {
147 if (priv->fw->img[IWL_UCODE_WOWLAN].num_sec &&
148 priv->trans->ops->d3_suspend &&
149 priv->trans->ops->d3_resume &&
150 device_can_wakeup(priv
211 iwlagn_mac_unregister(struct iwl_priv *priv) argument
220 __iwl_up(struct iwl_priv *priv) argument
280 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); local
307 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); local
331 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); local
358 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); local
399 struct iwl_priv *priv; member in struct:iwl_resume_data
408 struct iwl_priv *priv = resume_data->priv; local
422 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); local
569 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); local
579 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); local
591 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); local
601 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); local
703 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); local
777 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); local
810 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); local
839 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); local
932 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); local
1012 iwl_chswitch_done(struct iwl_priv *priv, bool is_success) argument
1035 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); local
1083 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); local
1122 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); local
1148 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); local
1160 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); local
1202 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); local
1207 iwl_set_mode(struct iwl_priv *priv, struct iwl_rxon_context *ctx) argument
1216 iwl_setup_interface(struct iwl_priv *priv, struct iwl_rxon_context *ctx) argument
1265 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); local
1347 iwl_teardown_interface(struct iwl_priv *priv, struct ieee80211_vif *vif, bool mode_change) argument
1380 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); local
1402 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); local
1485 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); local
1528 iwl_sta_modify_ps_wake(struct iwl_priv *priv, int sta_id) argument
1544 struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); local
1610 struct iwl_priv *priv; local
[all...]
H A Dagn.h64 void iwl_down(struct iwl_priv *priv);
65 void iwl_cancel_deferred_work(struct iwl_priv *priv);
66 void iwlagn_prepare_restart(struct iwl_priv *priv);
70 bool iwl_check_for_ct_kill(struct iwl_priv *priv);
72 void iwlagn_lift_passive_no_rx(struct iwl_priv *priv);
76 int iwlagn_mac_setup_register(struct iwl_priv *priv,
78 void iwlagn_mac_unregister(struct iwl_priv *priv);
81 int iwl_dvm_send_cmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd);
82 int iwl_dvm_send_cmd_pdu(struct iwl_priv *priv, u8 id,
86 void iwl_connection_init_rx_config(struct iwl_priv *priv,
130 iwl_get_hw_mode( struct iwl_priv *priv, enum nl80211_band band) argument
225 iwl_advanced_bt_coexist(struct iwl_priv *priv) argument
341 iwl_print_rx_config_cmd(struct iwl_priv *priv, enum iwl_rxon_context_id ctxid) argument
349 iwl_is_ready(struct iwl_priv *priv) argument
356 iwl_is_alive(struct iwl_priv *priv) argument
361 iwl_is_rfkill(struct iwl_priv *priv) argument
366 iwl_is_ctkill(struct iwl_priv *priv) argument
371 iwl_is_ready_rf(struct iwl_priv *priv) argument
379 iwl_dvm_set_pmi(struct iwl_priv *priv, bool state) argument
391 iwl_dbgfs_register(struct iwl_priv *priv, struct dentry *dbgfs_dir) argument
[all...]
H A Dsta.c17 static int iwl_sta_ucode_activate(struct iwl_priv *priv, u8 sta_id) argument
19 lockdep_assert_held(&priv->sta_lock);
22 IWL_ERR(priv, "invalid sta_id %u\n", sta_id);
25 if (!(priv->stations[sta_id].used & IWL_STA_DRIVER_ACTIVE))
26 IWL_ERR(priv, "ACTIVATE a non DRIVER active station id %u "
28 sta_id, priv->stations[sta_id].sta.sta.addr);
30 if (priv->stations[sta_id].used & IWL_STA_UCODE_ACTIVE) {
31 IWL_DEBUG_ASSOC(priv,
34 sta_id, priv->stations[sta_id].sta.sta.addr);
36 priv
43 iwl_process_add_sta_resp(struct iwl_priv *priv, struct iwl_rx_packet *pkt) argument
75 iwl_add_sta_callback(struct iwl_priv *priv, struct iwl_rx_cmd_buffer *rxb) argument
82 iwl_send_add_sta(struct iwl_priv *priv, struct iwl_addsta_cmd *sta, u8 flags) argument
126 iwl_is_ht40_tx_allowed(struct iwl_priv *priv, struct iwl_rxon_context *ctx, struct ieee80211_sta *sta) argument
145 iwl_sta_calc_ht_flags(struct iwl_priv *priv, struct ieee80211_sta *sta, struct iwl_rxon_context *ctx, __le32 *flags, __le32 *mask) argument
193 iwl_sta_update_ht(struct iwl_priv *priv, struct iwl_rxon_context *ctx, struct ieee80211_sta *sta) argument
219 iwl_set_ht_add_station(struct iwl_priv *priv, u8 index, struct ieee80211_sta *sta, struct iwl_rxon_context *ctx) argument
237 iwl_prep_station(struct iwl_priv *priv, struct iwl_rxon_context *ctx, const u8 *addr, bool is_ap, struct ieee80211_sta *sta) argument
324 iwl_add_station_common(struct iwl_priv *priv, struct iwl_rxon_context *ctx, const u8 *addr, bool is_ap, struct ieee80211_sta *sta, u8 *sta_id_r) argument
384 iwl_sta_ucode_deactivate(struct iwl_priv *priv, u8 sta_id) argument
400 iwl_send_remove_station(struct iwl_priv *priv, const u8 *addr, int sta_id, bool temporary) argument
452 iwl_remove_station(struct iwl_priv *priv, const u8 sta_id, const u8 *addr) argument
513 iwl_deactivate_station(struct iwl_priv *priv, const u8 sta_id, const u8 *addr) argument
549 iwl_sta_fill_lq(struct iwl_priv *priv, struct iwl_rxon_context *ctx, u8 sta_id, struct iwl_link_quality_cmd *link_cmd) argument
607 iwl_clear_ucode_stations(struct iwl_priv *priv, struct iwl_rxon_context *ctx) argument
642 iwl_restore_stations(struct iwl_priv *priv, struct iwl_rxon_context *ctx) argument
720 iwl_get_free_ucode_key_offset(struct iwl_priv *priv) argument
731 iwl_dealloc_bcast_stations(struct iwl_priv *priv) argument
751 iwl_dump_lq_cmd(struct iwl_priv *priv, struct iwl_link_quality_cmd *lq) argument
765 iwl_dump_lq_cmd(struct iwl_priv *priv, struct iwl_link_quality_cmd *lq) argument
782 is_lq_table_valid(struct iwl_priv *priv, struct iwl_rxon_context *ctx, struct iwl_link_quality_cmd *lq) argument
815 iwl_send_lq_cmd(struct iwl_priv *priv, struct iwl_rxon_context *ctx, struct iwl_link_quality_cmd *lq, u8 flags, bool init) argument
862 iwl_sta_alloc_lq(struct iwl_priv *priv, struct iwl_rxon_context *ctx, u8 sta_id) argument
883 iwlagn_add_bssid_station(struct iwl_priv *priv, struct iwl_rxon_context *ctx, const u8 *addr, u8 *sta_id_r) argument
935 iwl_send_static_wepkey_cmd(struct iwl_priv *priv, struct iwl_rxon_context *ctx, bool send_if_empty) argument
981 iwl_restore_default_wep_keys(struct iwl_priv *priv, struct iwl_rxon_context *ctx) argument
989 iwl_remove_default_wep_key(struct iwl_priv *priv, struct iwl_rxon_context *ctx, struct ieee80211_key_conf *keyconf) argument
1014 iwl_set_default_wep_key(struct iwl_priv *priv, struct iwl_rxon_context *ctx, struct ieee80211_key_conf *keyconf) argument
1057 iwlagn_key_sta_id(struct iwl_priv *priv, struct ieee80211_vif *vif, struct ieee80211_sta *sta) argument
1077 iwlagn_send_sta_key(struct iwl_priv *priv, struct ieee80211_key_conf *keyconf, u8 sta_id, u32 tkip_iv32, u16 *tkip_p1k, u32 cmd_flags) argument
1133 iwl_update_tkip_key(struct iwl_priv *priv, struct ieee80211_vif *vif, struct ieee80211_key_conf *keyconf, struct ieee80211_sta *sta, u32 iv32, u16 *phase1key) argument
1153 iwl_remove_dynamic_key(struct iwl_priv *priv, struct iwl_rxon_context *ctx, struct ieee80211_key_conf *keyconf, struct ieee80211_sta *sta) argument
1201 iwl_set_dynamic_key(struct iwl_priv *priv, struct iwl_rxon_context *ctx, struct ieee80211_key_conf *keyconf, struct ieee80211_sta *sta) argument
1266 iwlagn_alloc_bcast_station(struct iwl_priv *priv, struct iwl_rxon_context *ctx) argument
1305 iwl_update_bcast_station(struct iwl_priv *priv, struct iwl_rxon_context *ctx) argument
1328 iwl_update_bcast_stations(struct iwl_priv *priv) argument
1345 iwl_sta_tx_modify_enable_tid(struct iwl_priv *priv, int sta_id, int tid) argument
1362 iwl_sta_rx_agg_start(struct iwl_priv *priv, struct ieee80211_sta *sta, int tid, u16 ssn) argument
1386 iwl_sta_rx_agg_stop(struct iwl_priv *priv, struct ieee80211_sta *sta, int tid) argument
1413 iwl_sta_modify_sleep_tx_count(struct iwl_priv *priv, int sta_id, int cnt) argument
[all...]
/linux-master/drivers/phy/qualcomm/
H A Dphy-qcom-usb-hs-28nm.c71 struct hsphy_priv *priv = phy_get_drvdata(phy); local
73 priv->mode = PHY_MODE_INVALID;
76 priv->mode = mode;
81 static void qcom_snps_hsphy_enable_hv_interrupts(struct hsphy_priv *priv) argument
86 val = readb(priv->base + PHY_INTR_CLEAR0);
88 writeb(val, priv->base + PHY_INTR_CLEAR0);
90 writeb(0x0, priv->base + PHY_IRQ_CMD);
92 writeb(0x1, priv->base + PHY_IRQ_CMD);
97 val = readb(priv->base + PHY_INTR_MASK0);
98 switch (priv
117 qcom_snps_hsphy_disable_hv_interrupts(struct hsphy_priv *priv) argument
137 qcom_snps_hsphy_enter_retention(struct hsphy_priv *priv) argument
146 qcom_snps_hsphy_exit_retention(struct hsphy_priv *priv) argument
157 struct hsphy_priv *priv = phy_get_drvdata(phy); local
172 struct hsphy_priv *priv = phy_get_drvdata(phy); local
181 qcom_snps_hsphy_reset(struct hsphy_priv *priv) argument
200 qcom_snps_hsphy_init_sequence(struct hsphy_priv *priv) argument
219 qcom_snps_hsphy_por_reset(struct hsphy_priv *priv) argument
258 struct hsphy_priv *priv = phy_get_drvdata(phy); local
284 struct hsphy_priv *priv = phy_get_drvdata(phy); local
310 struct hsphy_priv *priv; local
[all...]
H A Dphy-qcom-usb-ss.c50 static int qcom_ssphy_do_reset(struct ssphy_priv *priv) argument
54 if (!priv->reset_com) {
55 qcom_ssphy_updatel(priv->base + PHY_CTRL1, PHY_RESET,
58 qcom_ssphy_updatel(priv->base + PHY_CTRL1, PHY_RESET, 0);
60 ret = reset_control_assert(priv->reset_com);
62 dev_err(priv->dev, "Failed to assert reset com\n");
66 ret = reset_control_assert(priv->reset_phy);
68 dev_err(priv->dev, "Failed to assert reset phy\n");
74 ret = reset_control_deassert(priv->reset_com);
76 dev_err(priv
92 struct ssphy_priv *priv = phy_get_drvdata(phy); local
123 struct ssphy_priv *priv = phy_get_drvdata(phy); local
135 qcom_ssphy_init_clock(struct ssphy_priv *priv) argument
144 qcom_ssphy_init_regulator(struct ssphy_priv *priv) argument
160 qcom_ssphy_init_reset(struct ssphy_priv *priv) argument
190 struct ssphy_priv *priv; local
[all...]
/linux-master/drivers/net/wireless/marvell/libertas/
H A Dcmd.h34 #define lbs_cmd(priv, cmdnr, cmd, cb, cb_arg) ({ \
37 __lbs_cmd(priv, cmdnr, &(cmd)->hdr, __sz, cb, cb_arg); \
40 #define lbs_cmd_with_response(priv, cmdnr, cmd) \
41 lbs_cmd(priv, cmdnr, cmd, lbs_cmd_copyback, (unsigned long) (cmd))
43 void lbs_cmd_async(struct lbs_private *priv, uint16_t command,
46 int __lbs_cmd(struct lbs_private *priv, uint16_t command,
51 struct cmd_ctrl_node *__lbs_cmd_async(struct lbs_private *priv,
56 int lbs_cmd_copyback(struct lbs_private *priv, unsigned long extra,
59 int lbs_allocate_cmd_buffer(struct lbs_private *priv);
60 int lbs_free_cmd_buffer(struct lbs_private *priv);
[all...]
/linux-master/drivers/net/can/spi/mcp251xfd/
H A Dmcp251xfd-ethtool.c20 const struct mcp251xfd_priv *priv = netdev_priv(ndev); local
21 const bool fd_mode = mcp251xfd_is_fd_mode(priv);
28 ring->rx_pending = priv->rx_obj_num;
29 ring->tx_pending = priv->tx->obj_num;
38 struct mcp251xfd_priv *priv = netdev_priv(ndev); local
39 const bool fd_mode = mcp251xfd_is_fd_mode(priv);
43 if ((layout.cur_rx != priv->rx_obj_num ||
44 layout.cur_tx != priv->tx->obj_num) &&
48 priv->rx_obj_num = layout.cur_rx;
49 priv
61 struct mcp251xfd_priv *priv = netdev_priv(ndev); local
91 struct mcp251xfd_priv *priv = netdev_priv(ndev); local
131 mcp251xfd_ethtool_init(struct mcp251xfd_priv *priv) argument
[all...]
/linux-master/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-eth-debugfs.h19 void dpaa2_dbg_add(struct dpaa2_eth_priv *priv);
20 void dpaa2_dbg_remove(struct dpaa2_eth_priv *priv);
24 static inline void dpaa2_dbg_add(struct dpaa2_eth_priv *priv) {} argument
25 static inline void dpaa2_dbg_remove(struct dpaa2_eth_priv *priv) {} argument
/linux-master/drivers/staging/vt6655/
H A Ddpc.h19 bool vnt_receive_frame(struct vnt_private *priv, struct vnt_rx_desc *curr_rd);
/linux-master/drivers/gpu/drm/omapdrm/
H A Domap_irq.c21 struct omap_drm_private *priv = dev->dev_private; local
23 u32 irqmask = priv->irq_mask;
25 assert_spin_locked(&priv->wait_lock);
27 list_for_each_entry(wait, &priv->wait_list, node)
32 dispc_write_irqenable(priv->dispc, irqmask);
44 struct omap_drm_private *priv = dev->dev_private; local
52 spin_lock_irqsave(&priv->wait_lock, flags);
53 list_add(&wait->node, &priv->wait_list);
55 spin_unlock_irqrestore(&priv->wait_lock, flags);
63 struct omap_drm_private *priv local
82 struct omap_drm_private *priv = dev->dev_private; local
116 struct omap_drm_private *priv = dev->dev_private; local
142 struct omap_drm_private *priv = dev->dev_private; local
155 omap_irq_fifo_underflow(struct omap_drm_private *priv, u32 irqstatus) argument
208 struct omap_drm_private *priv = dev->dev_private; local
258 struct omap_drm_private *priv = dev->dev_private; local
294 struct omap_drm_private *priv = dev->dev_private; local
[all...]
/linux-master/drivers/gpu/drm/meson/
H A Dmeson_vpp.h22 void meson_vpp_setup_mux(struct meson_drm *priv, unsigned int mux);
24 void meson_vpp_setup_interlace_vscaler_osd1(struct meson_drm *priv,
26 void meson_vpp_disable_interlace_vscaler_osd1(struct meson_drm *priv);
28 void meson_vpp_init(struct meson_drm *priv);
/linux-master/drivers/platform/mellanox/
H A Dmlxreg-io.c114 struct mlxreg_io_priv_data *priv = dev_get_drvdata(dev); local
116 struct mlxreg_core_data *data = priv->pdata->data + index;
120 mutex_lock(&priv->io_lock);
122 ret = mlxreg_io_get_reg(priv->pdata->regmap, data, 0, true,
123 priv->regsize, &regval);
127 mutex_unlock(&priv->io_lock);
132 mutex_unlock(&priv->io_lock);
140 struct mlxreg_io_priv_data *priv = dev_get_drvdata(dev); local
142 struct mlxreg_core_data *data = priv->pdata->data + index;
154 mutex_lock(&priv
180 mlxreg_io_attr_init(struct mlxreg_io_priv_data *priv) argument
225 struct mlxreg_io_priv_data *priv; local
268 struct mlxreg_io_priv_data *priv = dev_get_drvdata(&pdev->dev); local
[all...]
/linux-master/drivers/gpio/
H A Dgpio-elkhartlake.c25 struct tng_gpio *priv; local
32 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
33 if (!priv)
36 priv->reg_base = devm_platform_ioremap_resource(pdev, 0);
37 if (IS_ERR(priv->reg_base))
38 return PTR_ERR(priv->reg_base);
40 priv->dev = dev;
41 priv->irq = irq;
43 priv
[all...]
/linux-master/drivers/char/hw_random/
H A Domap-rng.c147 u32 (*data_present)(struct omap_rng_dev *priv);
148 int (*init)(struct omap_rng_dev *priv);
149 void (*cleanup)(struct omap_rng_dev *priv);
161 static inline u32 omap_rng_read(struct omap_rng_dev *priv, u16 reg) argument
163 return __raw_readl(priv->base + priv->pdata->regs[reg]);
166 static inline void omap_rng_write(struct omap_rng_dev *priv, u16 reg, argument
169 __raw_writel(val, priv->base + priv->pdata->regs[reg]);
176 struct omap_rng_dev *priv; local
205 struct omap_rng_dev *priv; local
213 struct omap_rng_dev *priv; local
220 omap2_rng_data_present(struct omap_rng_dev *priv) argument
225 omap2_rng_init(struct omap_rng_dev *priv) argument
231 omap2_rng_cleanup(struct omap_rng_dev *priv) argument
244 omap4_rng_data_present(struct omap_rng_dev *priv) argument
249 eip76_rng_init(struct omap_rng_dev *priv) argument
281 omap4_rng_init(struct omap_rng_dev *priv) argument
306 omap4_rng_cleanup(struct omap_rng_dev *priv) argument
317 struct omap_rng_dev *priv = dev_id; local
375 of_get_omap_rng_device_details(struct omap_rng_dev *priv, struct platform_device *pdev) argument
425 struct omap_rng_dev *priv; local
514 struct omap_rng_dev *priv = platform_get_drvdata(pdev); local
528 struct omap_rng_dev *priv = dev_get_drvdata(dev); local
538 struct omap_rng_dev *priv = dev_get_drvdata(dev); local
[all...]
/linux-master/drivers/phy/socionext/
H A Dphy-uniphier-usb3ss.c69 static void uniphier_u3ssphy_testio_write(struct uniphier_u3ssphy_priv *priv, argument
73 writel(data, priv->base + SSPHY_TESTI);
74 readl(priv->base + SSPHY_TESTO);
75 readl(priv->base + SSPHY_TESTO);
78 static void uniphier_u3ssphy_set_param(struct uniphier_u3ssphy_priv *priv, argument
88 uniphier_u3ssphy_testio_write(priv, val);
89 val = readl(priv->base + SSPHY_TESTO) & TESTO_DAT_MASK;
96 uniphier_u3ssphy_testio_write(priv, val);
97 uniphier_u3ssphy_testio_write(priv, val | TESTI_WR_EN);
98 uniphier_u3ssphy_testio_write(priv, va
109 struct uniphier_u3ssphy_priv *priv = phy_get_drvdata(phy); local
144 struct uniphier_u3ssphy_priv *priv = phy_get_drvdata(phy); local
158 struct uniphier_u3ssphy_priv *priv = phy_get_drvdata(phy); local
197 struct uniphier_u3ssphy_priv *priv = phy_get_drvdata(phy); local
218 struct uniphier_u3ssphy_priv *priv; local
[all...]
/linux-master/drivers/net/dsa/
H A Dmt7530.c83 core_read_mmd_indirect(struct mt7530_priv *priv, int prtad, int devad) argument
85 struct mii_bus *bus = priv->bus;
114 core_write_mmd_indirect(struct mt7530_priv *priv, int prtad, argument
117 struct mii_bus *bus = priv->bus;
145 mt7530_mutex_lock(struct mt7530_priv *priv) argument
147 if (priv->bus)
148 mutex_lock_nested(&priv->bus->mdio_lock, MDIO_MUTEX_NESTED);
152 mt7530_mutex_unlock(struct mt7530_priv *priv) argument
154 if (priv->bus)
155 mutex_unlock(&priv
159 core_write(struct mt7530_priv *priv, u32 reg, u32 val) argument
169 core_rmw(struct mt7530_priv *priv, u32 reg, u32 mask, u32 set) argument
184 core_set(struct mt7530_priv *priv, u32 reg, u32 val) argument
190 core_clear(struct mt7530_priv *priv, u32 reg, u32 val) argument
196 mt7530_mii_write(struct mt7530_priv *priv, u32 reg, u32 val) argument
210 mt7530_mii_read(struct mt7530_priv *priv, u32 reg) argument
227 mt7530_write(struct mt7530_priv *priv, u32 reg, u32 val) argument
257 mt7530_read(struct mt7530_priv *priv, u32 reg) argument
266 mt7530_rmw(struct mt7530_priv *priv, u32 reg, u32 mask, u32 set) argument
277 mt7530_set(struct mt7530_priv *priv, u32 reg, u32 val) argument
283 mt7530_clear(struct mt7530_priv *priv, u32 reg, u32 val) argument
289 mt7530_fdb_cmd(struct mt7530_priv *priv, enum mt7530_fdb_cmd cmd, u32 *rsp) argument
321 mt7530_fdb_read(struct mt7530_priv *priv, struct mt7530_fdb *fdb) argument
347 mt7530_fdb_write(struct mt7530_priv *priv, u16 vid, u8 port_mask, const u8 *mac, u8 aging, u8 type) argument
377 mt7530_pll_setup(struct mt7530_priv *priv) argument
420 struct mt7530_priv *priv = ds->priv; local
471 mt7531_pll_setup(struct mt7530_priv *priv) argument
560 struct mt7530_priv *priv = ds->priv; local
566 mt7530_phy_read_c22(struct mt7530_priv *priv, int port, int regnum) argument
571 mt7530_phy_write_c22(struct mt7530_priv *priv, int port, int regnum, u16 val) argument
577 mt7530_phy_read_c45(struct mt7530_priv *priv, int port, int devad, int regnum) argument
583 mt7530_phy_write_c45(struct mt7530_priv *priv, int port, int devad, int regnum, u16 val) argument
590 mt7531_ind_c45_phy_read(struct mt7530_priv *priv, int port, int devad, int regnum) argument
638 mt7531_ind_c45_phy_write(struct mt7530_priv *priv, int port, int devad, int regnum, u16 data) argument
685 mt7531_ind_c22_phy_read(struct mt7530_priv *priv, int port, int regnum) argument
722 mt7531_ind_c22_phy_write(struct mt7530_priv *priv, int port, int regnum, u16 data) argument
761 struct mt7530_priv *priv = bus->priv; local
769 struct mt7530_priv *priv = bus->priv; local
777 struct mt7530_priv *priv = bus->priv; local
786 struct mt7530_priv *priv = bus->priv; local
808 struct mt7530_priv *priv = ds->priv; local
837 struct mt7530_priv *priv = ds->priv; local
892 struct mt7530_priv *priv = ds->priv; local
1122 mt753x_trap_frames(struct mt7530_priv *priv) argument
1169 struct mt7530_priv *priv = ds->priv; local
1202 struct mt7530_priv *priv = ds->priv; local
1227 struct mt7530_priv *priv = ds->priv; local
1244 struct mt7530_priv *priv = ds->priv; local
1290 struct mt7530_priv *priv = ds->priv; local
1333 struct mt7530_priv *priv = ds->priv; local
1362 struct mt7530_priv *priv = ds->priv; local
1405 struct mt7530_priv *priv = ds->priv; local
1451 struct mt7530_priv *priv = ds->priv; local
1494 struct mt7530_priv *priv = ds->priv; local
1540 struct mt7530_priv *priv = ds->priv; local
1557 struct mt7530_priv *priv = ds->priv; local
1573 struct mt7530_priv *priv = ds->priv; local
1609 struct mt7530_priv *priv = ds->priv; local
1636 struct mt7530_priv *priv = ds->priv; local
1660 mt7530_vlan_cmd(struct mt7530_priv *priv, enum mt7530_vlan_cmd cmd, u16 vid) argument
1709 mt7530_hw_vlan_add(struct mt7530_priv *priv, struct mt7530_hw_vlan_entry *entry) argument
1744 mt7530_hw_vlan_del(struct mt7530_priv *priv, struct mt7530_hw_vlan_entry *entry) argument
1770 mt7530_hw_vlan_update(struct mt7530_priv *priv, u16 vid, struct mt7530_hw_vlan_entry *entry, mt7530_vlan_op vlan_op) argument
1791 mt7530_setup_vlan0(struct mt7530_priv *priv) argument
1813 struct mt7530_priv *priv = ds->priv; local
1855 struct mt7530_priv *priv = ds->priv; local
1902 struct mt7530_priv *priv = ds->priv; local
1939 struct mt7530_priv *priv = ds->priv; local
1983 struct mt7530_priv *priv = gpiochip_get_data(gc); local
1992 struct mt7530_priv *priv = gpiochip_get_data(gc); local
2004 struct mt7530_priv *priv = gpiochip_get_data(gc); local
2014 struct mt7530_priv *priv = gpiochip_get_data(gc); local
2026 struct mt7530_priv *priv = gpiochip_get_data(gc); local
2042 mt7530_setup_gpio(struct mt7530_priv *priv) argument
2074 struct mt7530_priv *priv = dev_id; local
2100 struct mt7530_priv *priv = irq_data_get_irq_chip_data(d); local
2108 struct mt7530_priv *priv = irq_data_get_irq_chip_data(d); local
2116 struct mt7530_priv *priv = irq_data_get_irq_chip_data(d); local
2124 struct mt7530_priv *priv = irq_data_get_irq_chip_data(d); local
2158 struct mt7530_priv *priv = irq_data_get_irq_chip_data(d); local
2167 struct mt7530_priv *priv = irq_data_get_irq_chip_data(d); local
2197 mt7530_setup_mdio_irq(struct mt7530_priv *priv) argument
2213 mt7530_setup_irq(struct mt7530_priv *priv) argument
2260 mt7530_free_mdio_irq(struct mt7530_priv *priv) argument
2275 mt7530_free_irq_common(struct mt7530_priv *priv) argument
2282 mt7530_free_irq(struct mt7530_priv *priv) argument
2295 mt7530_setup_mdio(struct mt7530_priv *priv) argument
2346 struct mt7530_priv *priv = ds->priv; local
2556 struct mt7530_priv *priv = ds->priv; local
2613 struct mt7530_priv *priv = ds->priv; local
2741 struct mt7530_priv *priv = ds->priv; local
2797 struct mt7530_priv *priv = ds->priv; local
2805 mt7531_rgmii_setup(struct mt7530_priv *priv, u32 port, phy_interface_t interface, struct phy_device *phydev) argument
2849 struct mt7530_priv *priv = ds->priv; local
2864 struct mt7530_priv *priv = ds->priv; local
2882 struct mt7530_priv *priv = ds->priv; local
2896 struct mt7530_priv *priv = ds->priv; local
2908 struct mt7530_priv *priv = ds->priv; local
2949 struct mt7530_priv *priv = ds->priv; local
2973 struct mt7530_priv *priv = pcs_to_mt753x_pcs(pcs)->priv; local
3027 struct mt7530_priv *priv = ds->priv; local
3062 struct mt7530_priv *priv = ds->priv; local
3074 struct mt7530_priv *priv = ds->priv; local
3095 struct mt7530_priv *priv = ds->priv; local
3121 struct mt7530_priv *priv = ds->priv; local
3221 mt7530_probe_common(struct mt7530_priv *priv) argument
3258 mt7530_remove_common(struct mt7530_priv *priv) argument
[all...]
/linux-master/include/linux/
H A Dlogic_iomem.h25 unsigned long (*read)(void *priv, unsigned int offset, int size);
26 void (*write)(void *priv, unsigned int offset, int size,
29 void (*set)(void *priv, unsigned int offset, u8 value, int size);
30 void (*copy_from)(void *priv, void *buffer, unsigned int offset,
32 void (*copy_to)(void *priv, unsigned int offset, const void *buffer,
35 void (*unmap)(void *priv);
41 * fill *ops with the ops and may fill *priv to be passed
51 void **priv);
/linux-master/drivers/net/wireless/marvell/mwifiex/
H A D11h.c12 void mwifiex_init_11h_params(struct mwifiex_private *priv) argument
14 priv->state_11h.is_11h_enabled = true;
15 priv->state_11h.is_11h_active = false;
18 inline int mwifiex_is_11h_active(struct mwifiex_private *priv) argument
20 return priv->state_11h.is_11h_active;
26 mwifiex_11h_process_infra_join(struct mwifiex_private *priv, u8 **buffer, argument
40 sband = priv->wdev.wiphy->bands[radio_type];
70 int mwifiex_11h_activate(struct mwifiex_private *priv, bool flag) argument
75 if ((GET_BSS_ROLE(priv) == MWIFIEX_BSS_ROLE_UAP) && enable)
78 return mwifiex_send_cmd(priv, HostCmd_CMD_802_11_SNMP_MI
88 mwifiex_11h_process_join(struct mwifiex_private *priv, u8 **buffer, struct mwifiex_bssdescriptor *bss_desc) argument
115 struct mwifiex_private *priv = local
132 mwifiex_cmd_issue_chan_report_request(struct mwifiex_private *priv, struct host_cmd_ds_command *cmd, void *data_buf) argument
159 mwifiex_stop_radar_detection(struct mwifiex_private *priv, struct cfg80211_chan_def *chandef) argument
175 mwifiex_abort_cac(struct mwifiex_private *priv) argument
193 mwifiex_11h_handle_chanrpt_ready(struct mwifiex_private *priv, struct sk_buff *skb) argument
238 mwifiex_11h_handle_radar_detected(struct mwifiex_private *priv, struct sk_buff *skb) argument
269 struct mwifiex_private *priv = local
[all...]
/linux-master/drivers/net/wireless/ath/ath9k/
H A Dhtc_drv_init.c66 ath9k_htc_ps_wakeup(common->priv);
71 ath9k_htc_ps_restore(common->priv);
79 static int ath9k_htc_wait_for_target(struct ath9k_htc_priv *priv) argument
83 if (atomic_read(&priv->htc->tgt_ready) > 0) {
84 atomic_dec(&priv->htc->tgt_ready);
89 time_left = wait_for_completion_timeout(&priv->htc->target_wait, HZ);
91 dev_err(priv->dev, "ath9k_htc: Target is unresponsive\n");
95 atomic_dec(&priv->htc->tgt_ready);
100 static void ath9k_deinit_priv(struct ath9k_htc_priv *priv) argument
102 ath9k_hw_deinit(priv
107 ath9k_deinit_device(struct ath9k_htc_priv *priv) argument
120 ath9k_htc_connect_svc(struct ath9k_htc_priv *priv, u16 service_id, void (*tx) (void *, struct sk_buff *, enum htc_endpoint_id, bool txok), enum htc_endpoint_id *ep_id) argument
140 ath9k_init_htc_services(struct ath9k_htc_priv *priv, u16 devid, u32 drv_info) argument
228 struct ath9k_htc_priv *priv = hw->priv; local
238 struct ath9k_htc_priv *priv = common->priv; local
260 struct ath9k_htc_priv *priv = common->priv; local
285 struct ath9k_htc_priv *priv = common->priv; local
306 struct ath9k_htc_priv *priv = common->priv; local
327 struct ath9k_htc_priv *priv = common->priv; local
350 struct ath9k_htc_priv *priv = common->priv; local
362 struct ath9k_htc_priv *priv = common->priv; local
371 struct ath9k_htc_priv *priv = common->priv; local
388 struct ath9k_htc_priv *priv = common->priv; local
426 struct ath9k_htc_priv *priv = common->priv; local
458 struct ath9k_htc_priv *priv = common->priv; local
471 struct ath9k_htc_priv *priv = common->priv; local
493 struct ath9k_htc_priv *priv = common->priv; local
544 ath9k_init_queues(struct ath9k_htc_priv *priv) argument
588 ath9k_init_misc(struct ath9k_htc_priv *priv) argument
606 ath9k_init_priv(struct ath9k_htc_priv *priv, u16 devid, char *product, u32 drv_info) argument
712 ath9k_set_hw_capab(struct ath9k_htc_priv *priv, struct ieee80211_hw *hw) argument
785 ath9k_init_firmware_version(struct ath9k_htc_priv *priv) argument
828 ath9k_init_device(struct ath9k_htc_priv *priv, u16 devid, char *product, u32 drv_info) argument
935 struct ath9k_htc_priv *priv; local
1010 struct ath9k_htc_priv *priv = htc_handle->drv_priv; local
[all...]
/linux-master/drivers/net/dsa/realtek/
H A Drealtek-mdio.c46 struct realtek_priv *priv = ctx; local
47 struct mii_bus *bus = priv->bus;
52 ret = bus->write(bus, priv->mdio_addr, REALTEK_MDIO_CTRL0_REG, REALTEK_MDIO_ADDR_OP);
56 ret = bus->write(bus, priv->mdio_addr, REALTEK_MDIO_ADDRESS_REG, reg);
60 ret = bus->write(bus, priv->mdio_addr, REALTEK_MDIO_DATA_WRITE_REG, val);
64 ret = bus->write(bus, priv->mdio_addr, REALTEK_MDIO_CTRL1_REG, REALTEK_MDIO_WRITE_OP);
74 struct realtek_priv *priv = ctx; local
75 struct mii_bus *bus = priv->bus;
80 ret = bus->write(bus, priv->mdio_addr, REALTEK_MDIO_CTRL0_REG, REALTEK_MDIO_ADDR_OP);
84 ret = bus->write(bus, priv
124 struct realtek_priv *priv; local
157 struct realtek_priv *priv = dev_get_drvdata(&mdiodev->dev); local
180 struct realtek_priv *priv = dev_get_drvdata(&mdiodev->dev); local
[all...]
/linux-master/drivers/leds/flash/
H A Dleds-sgm3140.c40 struct sgm3140 *priv = flcdev_to_sgm3140(fled_cdev); local
43 if (priv->enabled == state)
47 ret = regulator_enable(priv->vin_regulator);
53 gpiod_set_value_cansleep(priv->flash_gpio, 1);
54 gpiod_set_value_cansleep(priv->enable_gpio, 1);
55 mod_timer(&priv->powerdown_timer,
56 jiffies + usecs_to_jiffies(priv->timeout));
58 del_timer_sync(&priv->powerdown_timer);
59 gpiod_set_value_cansleep(priv->enable_gpio, 0);
60 gpiod_set_value_cansleep(priv
76 struct sgm3140 *priv = flcdev_to_sgm3140(fled_cdev); local
86 struct sgm3140 *priv = flcdev_to_sgm3140(fled_cdev); local
103 struct sgm3140 *priv = flcdev_to_sgm3140(fled_cdev); local
138 struct sgm3140 *priv = from_timer(priv, t, powerdown_timer); local
147 sgm3140_init_flash_timeout(struct sgm3140 *priv) argument
161 sgm3140_init_v4l2_flash_config(struct sgm3140 *priv, struct v4l2_flash_config *v4l2_sd_cfg) argument
179 sgm3140_init_v4l2_flash_config(struct sgm3140 *priv, struct v4l2_flash_config *v4l2_sd_cfg) argument
187 struct sgm3140 *priv; local
286 struct sgm3140 *priv = platform_get_drvdata(pdev); local
[all...]
/linux-master/drivers/i2c/busses/
H A Di2c-rcar.c174 static void rcar_i2c_write(struct rcar_i2c_priv *priv, int reg, u32 val) argument
176 writel(val, priv->io + reg);
179 static u32 rcar_i2c_read(struct rcar_i2c_priv *priv, int reg) argument
181 return readl(priv->io + reg);
184 static void rcar_i2c_clear_irq(struct rcar_i2c_priv *priv, u32 val) argument
186 writel(~val & 0x7f, priv->io + ICMSR);
191 struct rcar_i2c_priv *priv = i2c_get_adapdata(adap); local
193 return !!(rcar_i2c_read(priv, ICMCR) & FSCL);
199 struct rcar_i2c_priv *priv = i2c_get_adapdata(adap); local
202 priv
211 struct rcar_i2c_priv *priv = i2c_get_adapdata(adap); local
223 struct rcar_i2c_priv *priv = i2c_get_adapdata(adap); local
236 rcar_i2c_init(struct rcar_i2c_priv *priv) argument
260 rcar_i2c_bus_barrier(struct rcar_i2c_priv *priv) argument
276 rcar_i2c_clock_calculate(struct rcar_i2c_priv *priv) argument
401 rcar_i2c_prepare_msg(struct rcar_i2c_priv *priv) argument
420 rcar_i2c_first_msg(struct rcar_i2c_priv *priv, struct i2c_msg *msgs, int num) argument
429 rcar_i2c_next_msg(struct rcar_i2c_priv *priv) argument
437 rcar_i2c_cleanup_dma(struct rcar_i2c_priv *priv, bool terminate) argument
462 struct rcar_i2c_priv *priv = data; local
469 rcar_i2c_dma(struct rcar_i2c_priv *priv) argument
542 rcar_i2c_irq_send(struct rcar_i2c_priv *priv, u32 msr) argument
591 rcar_i2c_irq_recv(struct rcar_i2c_priv *priv, u32 msr) argument
647 rcar_i2c_slave_irq(struct rcar_i2c_priv *priv) argument
715 rcar_i2c_irq(int irq, struct rcar_i2c_priv *priv, u32 msr) argument
764 struct rcar_i2c_priv *priv = ptr; local
781 struct rcar_i2c_priv *priv = ptr; local
837 rcar_i2c_request_dma(struct rcar_i2c_priv *priv, struct i2c_msg *msg) argument
860 rcar_i2c_release_dma(struct rcar_i2c_priv *priv) argument
874 rcar_i2c_do_reset(struct rcar_i2c_priv *priv) argument
890 struct rcar_i2c_priv *priv = i2c_get_adapdata(adap); local
951 struct rcar_i2c_priv *priv = i2c_get_adapdata(adap); local
1008 struct rcar_i2c_priv *priv = i2c_get_adapdata(slave->adapter); local
1030 struct rcar_i2c_priv *priv = i2c_get_adapdata(slave->adapter); local
1051 struct rcar_i2c_priv *priv = i2c_get_adapdata(adap); local
1102 struct rcar_i2c_priv *priv; local
1223 struct rcar_i2c_priv *priv = platform_get_drvdata(pdev); local
1237 struct rcar_i2c_priv *priv = dev_get_drvdata(dev); local
1245 struct rcar_i2c_priv *priv = dev_get_drvdata(dev); local
[all...]

Completed in 212 milliseconds

1234567891011>>