Home
last modified time | relevance | path

Searched refs:trans (Results 1 – 200 of 225) sorted by relevance

12

/linux-4.1.27/drivers/net/wireless/iwlwifi/
Diwl-trans.h498 int (*start_fw)(struct iwl_trans *trans, const struct fw_img *fw,
500 int (*update_sf)(struct iwl_trans *trans,
502 void (*fw_alive)(struct iwl_trans *trans, u32 scd_addr);
503 void (*stop_device)(struct iwl_trans *trans, bool low_power);
505 void (*d3_suspend)(struct iwl_trans *trans, bool test);
506 int (*d3_resume)(struct iwl_trans *trans, enum iwl_d3_status *status,
509 int (*send_cmd)(struct iwl_trans *trans, struct iwl_host_cmd *cmd);
511 int (*tx)(struct iwl_trans *trans, struct sk_buff *skb,
513 void (*reclaim)(struct iwl_trans *trans, int queue, int ssn,
516 void (*txq_enable)(struct iwl_trans *trans, int queue, u16 ssn,
[all …]
Diwl-eeprom-read.c97 static int iwl_eeprom_acquire_semaphore(struct iwl_trans *trans) in iwl_eeprom_acquire_semaphore() argument
104 iwl_set_bit(trans, CSR_HW_IF_CONFIG_REG, in iwl_eeprom_acquire_semaphore()
108 ret = iwl_poll_bit(trans, CSR_HW_IF_CONFIG_REG, in iwl_eeprom_acquire_semaphore()
113 IWL_DEBUG_EEPROM(trans->dev, in iwl_eeprom_acquire_semaphore()
123 static void iwl_eeprom_release_semaphore(struct iwl_trans *trans) in iwl_eeprom_release_semaphore() argument
125 iwl_clear_bit(trans, CSR_HW_IF_CONFIG_REG, in iwl_eeprom_release_semaphore()
129 static int iwl_eeprom_verify_signature(struct iwl_trans *trans, bool nvm_is_otp) in iwl_eeprom_verify_signature() argument
131 u32 gp = iwl_read32(trans, CSR_EEPROM_GP) & CSR_EEPROM_GP_VALID_MSK; in iwl_eeprom_verify_signature()
133 IWL_DEBUG_EEPROM(trans->dev, "EEPROM signature=0x%08x\n", gp); in iwl_eeprom_verify_signature()
138 IWL_ERR(trans, "EEPROM with bad signature: 0x%08x\n", in iwl_eeprom_verify_signature()
[all …]
Diwl-io.c41 int iwl_poll_bit(struct iwl_trans *trans, u32 addr, in iwl_poll_bit() argument
47 if ((iwl_read32(trans, addr) & mask) == (bits & mask)) in iwl_poll_bit()
57 u32 iwl_read_direct32(struct iwl_trans *trans, u32 reg) in iwl_read_direct32() argument
61 if (iwl_trans_grab_nic_access(trans, false, &flags)) { in iwl_read_direct32()
62 value = iwl_read32(trans, reg); in iwl_read_direct32()
63 iwl_trans_release_nic_access(trans, &flags); in iwl_read_direct32()
70 void iwl_write_direct32(struct iwl_trans *trans, u32 reg, u32 value) in iwl_write_direct32() argument
74 if (iwl_trans_grab_nic_access(trans, false, &flags)) { in iwl_write_direct32()
75 iwl_write32(trans, reg, value); in iwl_write_direct32()
76 iwl_trans_release_nic_access(trans, &flags); in iwl_write_direct32()
[all …]
Diwl-io.h35 static inline void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val) in iwl_write8() argument
37 trace_iwlwifi_dev_iowrite8(trans->dev, ofs, val); in iwl_write8()
38 iwl_trans_write8(trans, ofs, val); in iwl_write8()
41 static inline void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val) in iwl_write32() argument
43 trace_iwlwifi_dev_iowrite32(trans->dev, ofs, val); in iwl_write32()
44 iwl_trans_write32(trans, ofs, val); in iwl_write32()
47 static inline u32 iwl_read32(struct iwl_trans *trans, u32 ofs) in iwl_read32() argument
49 u32 val = iwl_trans_read32(trans, ofs); in iwl_read32()
50 trace_iwlwifi_dev_ioread32(trans->dev, ofs, val); in iwl_read32()
54 static inline void iwl_set_bit(struct iwl_trans *trans, u32 reg, u32 mask) in iwl_set_bit() argument
[all …]
Diwl-scd.h72 static inline void iwl_scd_txq_set_chain(struct iwl_trans *trans, in iwl_scd_txq_set_chain() argument
75 iwl_set_bits_prph(trans, SCD_QUEUECHAIN_SEL, BIT(txq_id)); in iwl_scd_txq_set_chain()
78 static inline void iwl_scd_txq_enable_agg(struct iwl_trans *trans, in iwl_scd_txq_enable_agg() argument
81 iwl_set_bits_prph(trans, SCD_AGGR_SEL, BIT(txq_id)); in iwl_scd_txq_enable_agg()
84 static inline void iwl_scd_txq_disable_agg(struct iwl_trans *trans, in iwl_scd_txq_disable_agg() argument
87 iwl_clear_bits_prph(trans, SCD_AGGR_SEL, BIT(txq_id)); in iwl_scd_txq_disable_agg()
90 static inline void iwl_scd_disable_agg(struct iwl_trans *trans) in iwl_scd_disable_agg() argument
92 iwl_set_bits_prph(trans, SCD_AGGR_SEL, 0); in iwl_scd_disable_agg()
95 static inline void iwl_scd_activate_fifos(struct iwl_trans *trans) in iwl_scd_activate_fifos() argument
97 iwl_write_prph(trans, SCD_TXFACT, IWL_MASK(0, 7)); in iwl_scd_activate_fifos()
[all …]
Diwl-phy-db.c98 struct iwl_trans *trans; member
136 struct iwl_phy_db *iwl_phy_db_init(struct iwl_trans *trans) in iwl_phy_db_init() argument
144 phy_db->trans = trans; in iwl_phy_db_init()
244 IWL_DEBUG_INFO(phy_db->trans, in iwl_phy_db_set_section()
335 IWL_DEBUG_INFO(phy_db->trans, in iwl_phy_db_get_section_data()
350 IWL_DEBUG_INFO(phy_db->trans, in iwl_send_phy_db_cmd()
365 return iwl_trans_send_cmd(phy_db->trans, &cmd); in iwl_send_phy_db_cmd()
394 IWL_ERR(phy_db->trans, in iwl_phy_db_send_all_channel_groups()
400 IWL_DEBUG_INFO(phy_db->trans, in iwl_phy_db_send_all_channel_groups()
414 IWL_DEBUG_INFO(phy_db->trans, in iwl_send_phy_db_data()
[all …]
Diwl-devtrace.h43 static inline size_t iwl_rx_trace_len(const struct iwl_trans *trans, in iwl_rx_trace_len() argument
49 if (cmd->cmd != trans->rx_mpdu_cmd) in iwl_rx_trace_len()
53 trans->rx_mpdu_cmd_hdr_size); in iwl_rx_trace_len()
57 return sizeof(__le32) + sizeof(*cmd) + trans->rx_mpdu_cmd_hdr_size + in iwl_rx_trace_len()
Diwl-devtrace-data.h55 const struct iwl_trans *trans,
57 TP_ARGS(dev, trans, rxbuf, len),
62 len - iwl_rx_trace_len(trans, rxbuf, len))
65 size_t offs = iwl_rx_trace_len(trans, rxbuf, len);
Diwl-devtrace-iwlwifi.h66 TP_PROTO(const struct device *dev, const struct iwl_trans *trans,
68 TP_ARGS(dev, trans, rxbuf, len),
71 __dynamic_array(u8, rxbuf, iwl_rx_trace_len(trans, rxbuf, len))
76 iwl_rx_trace_len(trans, rxbuf, len));
Diwl-drv.c113 struct iwl_trans *trans; member
243 if (drv->trans->cfg->device_family == IWL_DEVICE_FAMILY_8000) { in iwl_request_firmware()
244 char rev_step = 'A' + CSR_HW_REV_STEP(drv->trans->hw_rev); in iwl_request_firmware()
256 drv->trans->dev, in iwl_request_firmware()
1062 op_mode = ops->start(drv->trans, drv->cfg, &drv->fw, dbgfs_dir); in _iwl_op_mode_start()
1364 device_release_driver(drv->trans->dev); in iwl_req_fw_callback()
1367 struct iwl_drv *iwl_drv_start(struct iwl_trans *trans, in iwl_drv_start() argument
1379 drv->trans = trans; in iwl_drv_start()
1380 drv->dev = trans->dev; in iwl_drv_start()
1388 drv->dbgfs_drv = debugfs_create_dir(dev_name(trans->dev), in iwl_drv_start()
[all …]
Diwl-eeprom-read.h68 int iwl_read_eeprom(struct iwl_trans *trans, u8 **eeprom, size_t *eeprom_size);
Diwl-eeprom-parse.c932 struct iwl_trans *trans) in iwl_nvm_check_version() argument
934 if (data->nvm_version >= trans->cfg->nvm_ver || in iwl_nvm_check_version()
935 data->calib_version >= trans->cfg->nvm_calib_ver) { in iwl_nvm_check_version()
936 IWL_DEBUG_INFO(trans, "device EEPROM VER=0x%x, CALIB=0x%x\n", in iwl_nvm_check_version()
941 IWL_ERR(trans, in iwl_nvm_check_version()
943 data->nvm_version, trans->cfg->nvm_ver, in iwl_nvm_check_version()
944 data->calib_version, trans->cfg->nvm_calib_ver); in iwl_nvm_check_version()
Diwl-phy-db.h72 struct iwl_phy_db *iwl_phy_db_init(struct iwl_trans *trans);
Diwl-drv.h128 struct iwl_drv *iwl_drv_start(struct iwl_trans *trans,
DMakefile9 iwlwifi-objs += pcie/drv.o pcie/rx.o pcie/tx.o pcie/trans.o
Diwl-eeprom-parse.h132 struct iwl_trans *trans);
Diwl-op-mode.h146 struct iwl_op_mode *(*start)(struct iwl_trans *trans,
/linux-4.1.27/net/rxrpc/
Dar-transport.c38 struct rxrpc_transport *trans; in rxrpc_alloc_transport() local
42 trans = kzalloc(sizeof(struct rxrpc_transport), gfp); in rxrpc_alloc_transport()
43 if (trans) { in rxrpc_alloc_transport()
44 trans->local = local; in rxrpc_alloc_transport()
45 trans->peer = peer; in rxrpc_alloc_transport()
46 INIT_LIST_HEAD(&trans->link); in rxrpc_alloc_transport()
47 trans->bundles = RB_ROOT; in rxrpc_alloc_transport()
48 trans->client_conns = RB_ROOT; in rxrpc_alloc_transport()
49 trans->server_conns = RB_ROOT; in rxrpc_alloc_transport()
50 skb_queue_head_init(&trans->error_queue); in rxrpc_alloc_transport()
[all …]
Dar-connection.c70 struct rxrpc_transport *trans, in rxrpc_get_bundle() argument
79 rx, key_serial(key), trans->debug_id, ntohs(service_id)); in rxrpc_get_bundle()
81 if (rx->trans == trans && rx->bundle) { in rxrpc_get_bundle()
88 spin_lock(&trans->client_lock); in rxrpc_get_bundle()
90 p = trans->bundles.rb_node; in rxrpc_get_bundle()
102 spin_unlock(&trans->client_lock); in rxrpc_get_bundle()
115 spin_lock(&trans->client_lock); in rxrpc_get_bundle()
117 pp = &trans->bundles.rb_node; in rxrpc_get_bundle()
136 rb_insert_color(&bundle->node, &trans->bundles); in rxrpc_get_bundle()
137 spin_unlock(&trans->client_lock); in rxrpc_get_bundle()
[all …]
Daf_rxrpc.c229 struct rxrpc_transport *trans; in rxrpc_name_to_transport() local
249 trans = rxrpc_get_transport(rx->local, peer, gfp); in rxrpc_name_to_transport()
251 _leave(" = %p", trans); in rxrpc_name_to_transport()
252 return trans; in rxrpc_name_to_transport()
276 struct rxrpc_transport *trans; in rxrpc_kernel_begin_call() local
286 trans = rxrpc_name_to_transport(sock, (struct sockaddr *) srx, in rxrpc_kernel_begin_call()
288 if (IS_ERR(trans)) { in rxrpc_kernel_begin_call()
289 call = ERR_CAST(trans); in rxrpc_kernel_begin_call()
290 trans = NULL; in rxrpc_kernel_begin_call()
294 trans = rx->trans; in rxrpc_kernel_begin_call()
[all …]
Dar-proc.c49 struct rxrpc_transport *trans; in rxrpc_call_seq_show() local
62 trans = call->conn->trans; in rxrpc_call_seq_show()
65 &trans->local->srx.transport.sin.sin_addr, in rxrpc_call_seq_show()
66 ntohs(trans->local->srx.transport.sin.sin_port)); in rxrpc_call_seq_show()
69 &trans->peer->srx.transport.sin.sin_addr, in rxrpc_call_seq_show()
70 ntohs(trans->peer->srx.transport.sin.sin_port)); in rxrpc_call_seq_show()
132 struct rxrpc_transport *trans; in rxrpc_connection_seq_show() local
145 trans = conn->trans; in rxrpc_connection_seq_show()
148 &trans->local->srx.transport.sin.sin_addr, in rxrpc_connection_seq_show()
149 ntohs(trans->local->srx.transport.sin.sin_port)); in rxrpc_connection_seq_show()
[all …]
Dar-error.c31 struct rxrpc_transport *trans; in rxrpc_UDP_error_report() local
67 trans = rxrpc_find_transport(local, peer); in rxrpc_UDP_error_report()
68 if (!trans) { in rxrpc_UDP_error_report()
116 skb_queue_tail(&trans->error_queue, skb); in rxrpc_UDP_error_report()
117 rxrpc_queue_work(&trans->error_handler); in rxrpc_UDP_error_report()
129 struct rxrpc_transport *trans = in rxrpc_UDP_error_handler() local
136 skb = skb_dequeue(&trans->error_queue); in rxrpc_UDP_error_handler()
216 spin_lock_bh(&trans->peer->lock); in rxrpc_UDP_error_handler()
217 trans->peer->net_error = err; in rxrpc_UDP_error_handler()
219 list_for_each_entry_safe(call, _n, &trans->peer->error_targets, in rxrpc_UDP_error_handler()
[all …]
Dar-output.c131 int rxrpc_client_sendmsg(struct rxrpc_sock *rx, struct rxrpc_transport *trans, in rxrpc_client_sendmsg() argument
145 ASSERT(trans != NULL); in rxrpc_client_sendmsg()
153 if (trans) { in rxrpc_client_sendmsg()
163 bundle = rxrpc_get_bundle(rx, trans, key, service_id, in rxrpc_client_sendmsg()
169 call = rxrpc_get_client_call(rx, trans, bundle, user_call_ID, in rxrpc_client_sendmsg()
171 if (trans) in rxrpc_client_sendmsg()
172 rxrpc_put_bundle(trans, bundle); in rxrpc_client_sendmsg()
332 int rxrpc_send_packet(struct rxrpc_transport *trans, struct sk_buff *skb) in rxrpc_send_packet() argument
343 msg.msg_name = &trans->peer->srx.transport.sin; in rxrpc_send_packet()
344 msg.msg_namelen = sizeof(trans->peer->srx.transport.sin); in rxrpc_send_packet()
[all …]
Dar-call.c124 call->conn->trans->local, addr_size, in rxrpc_call_hash_add()
253 struct rxrpc_transport *trans, in rxrpc_alloc_client_call() argument
263 ASSERT(trans != NULL); in rxrpc_alloc_client_call()
274 ret = rxrpc_connect_call(rx, trans, bundle, call, gfp); in rxrpc_alloc_client_call()
282 call->local = trans->local; in rxrpc_alloc_client_call()
286 trans->peer->srx.transport.sin.sin_addr.s_addr; in rxrpc_alloc_client_call()
290 trans->peer->srx.transport.sin6.sin6_addr.in6_u.u6_addr8, in rxrpc_alloc_client_call()
300 spin_lock(&call->conn->trans->peer->lock); in rxrpc_alloc_client_call()
301 list_add(&call->error_link, &call->conn->trans->peer->error_targets); in rxrpc_alloc_client_call()
302 spin_unlock(&call->conn->trans->peer->lock); in rxrpc_alloc_client_call()
[all …]
Dar-accept.c79 struct rxrpc_transport *trans; in rxrpc_accept_incoming_call() local
107 trans = rxrpc_get_transport(local, peer, GFP_NOIO); in rxrpc_accept_incoming_call()
109 if (IS_ERR(trans)) { in rxrpc_accept_incoming_call()
115 conn = rxrpc_incoming_connection(trans, &sp->hdr, GFP_NOIO); in rxrpc_accept_incoming_call()
116 rxrpc_put_transport(trans); in rxrpc_accept_incoming_call()
Dar-input.c571 rxrpc_reject_packet(call->conn->trans->local, skb); in rxrpc_post_packet_to_call()
615 struct rxrpc_transport *trans; in rxrpc_conn_from_local() local
623 trans = rxrpc_find_transport(local, peer); in rxrpc_conn_from_local()
625 if (!trans) in rxrpc_conn_from_local()
628 conn = rxrpc_find_connection(trans, &sp->hdr); in rxrpc_conn_from_local()
629 rxrpc_put_transport(trans); in rxrpc_conn_from_local()
Dar-connevent.c86 msg.msg_name = &conn->trans->peer->srx.transport.sin; in rxrpc_abort_connection()
87 msg.msg_namelen = sizeof(conn->trans->peer->srx.transport.sin); in rxrpc_abort_connection()
115 ret = kernel_sendmsg(conn->trans->local->socket, &msg, iov, 2, len); in rxrpc_abort_connection()
Dar-ack.c258 if (rxrpc_send_packet(call->conn->trans, txb) < 0) { in rxrpc_resend()
618 peer = call->conn->trans->peer; in rxrpc_extract_ackinfo()
906 msg.msg_name = &call->conn->trans->peer->srx.transport.sin; in rxrpc_process_call()
907 msg.msg_namelen = sizeof(call->conn->trans->peer->srx.transport.sin); in rxrpc_process_call()
940 error = call->conn->trans->peer->net_error; in rxrpc_process_call()
1216 mtu = call->conn->trans->peer->if_mtu; in rxrpc_process_call()
1217 mtu -= call->conn->trans->peer->hdrsize; in rxrpc_process_call()
1269 ret = kernel_sendmsg(call->conn->trans->local->socket, in rxrpc_process_call()
Drxkad.c589 msg.msg_name = &conn->trans->peer->srx.transport.sin; in rxkad_issue_challenge()
590 msg.msg_namelen = sizeof(conn->trans->peer->srx.transport.sin); in rxkad_issue_challenge()
616 ret = kernel_sendmsg(conn->trans->local->socket, &msg, iov, 2, len); in rxkad_issue_challenge()
641 msg.msg_name = &conn->trans->peer->srx.transport.sin; in rxkad_send_response()
642 msg.msg_namelen = sizeof(conn->trans->peer->srx.transport.sin); in rxkad_send_response()
666 ret = kernel_sendmsg(conn->trans->local->socket, &msg, iov, 3, len); in rxkad_send_response()
Dar-recvmsg.c148 sizeof(call->conn->trans->peer->srx); in rxrpc_recvmsg()
150 &call->conn->trans->peer->srx, len); in rxrpc_recvmsg()
Dar-security.c166 struct rxrpc_local *local = conn->trans->local; in rxrpc_init_server_conn_security()
Dar-internal.h57 struct rxrpc_transport *trans; /* transport handler */ member
243 struct rxrpc_transport *trans; /* transport session */ member
/linux-4.1.27/drivers/net/wireless/iwlwifi/pcie/
Dtrans.c90 static void iwl_pcie_free_fw_monitor(struct iwl_trans *trans) in iwl_pcie_free_fw_monitor() argument
92 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_free_fw_monitor()
97 dma_unmap_page(trans->dev, trans_pcie->fw_mon_phys, in iwl_pcie_free_fw_monitor()
106 static void iwl_pcie_alloc_fw_monitor(struct iwl_trans *trans) in iwl_pcie_alloc_fw_monitor() argument
108 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_alloc_fw_monitor()
115 dma_sync_single_for_device(trans->dev, trans_pcie->fw_mon_phys, in iwl_pcie_alloc_fw_monitor()
132 phys = dma_map_page(trans->dev, page, 0, PAGE_SIZE << order, in iwl_pcie_alloc_fw_monitor()
134 if (dma_mapping_error(trans->dev, phys)) { in iwl_pcie_alloc_fw_monitor()
139 IWL_INFO(trans, in iwl_pcie_alloc_fw_monitor()
153 static u32 iwl_trans_pcie_read_shr(struct iwl_trans *trans, u32 reg) in iwl_trans_pcie_read_shr() argument
[all …]
Drx.c139 int iwl_pcie_rx_stop(struct iwl_trans *trans) in iwl_pcie_rx_stop() argument
141 iwl_write_direct32(trans, FH_MEM_RCSR_CHNL0_CONFIG_REG, 0); in iwl_pcie_rx_stop()
142 return iwl_poll_direct_bit(trans, FH_MEM_RSSR_RX_STATUS_REG, in iwl_pcie_rx_stop()
149 static void iwl_pcie_rxq_inc_wr_ptr(struct iwl_trans *trans) in iwl_pcie_rxq_inc_wr_ptr() argument
151 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_rxq_inc_wr_ptr()
162 if (!trans->cfg->base_params->shadow_reg_enable && in iwl_pcie_rxq_inc_wr_ptr()
163 test_bit(STATUS_TPOWER_PMI, &trans->status)) { in iwl_pcie_rxq_inc_wr_ptr()
164 reg = iwl_read32(trans, CSR_UCODE_DRV_GP1); in iwl_pcie_rxq_inc_wr_ptr()
167 IWL_DEBUG_INFO(trans, "Rx queue requesting wakeup, GP1 = 0x%x\n", in iwl_pcie_rxq_inc_wr_ptr()
169 iwl_set_bit(trans, CSR_GP_CNTRL, in iwl_pcie_rxq_inc_wr_ptr()
[all …]
Dtx.c123 static int iwl_pcie_alloc_dma_ptr(struct iwl_trans *trans, in iwl_pcie_alloc_dma_ptr() argument
129 ptr->addr = dma_alloc_coherent(trans->dev, size, in iwl_pcie_alloc_dma_ptr()
137 static void iwl_pcie_free_dma_ptr(struct iwl_trans *trans, in iwl_pcie_free_dma_ptr() argument
143 dma_free_coherent(trans->dev, ptr->size, ptr->addr, ptr->dma); in iwl_pcie_free_dma_ptr()
151 struct iwl_trans *trans = iwl_trans_pcie_get_trans(trans_pcie); in iwl_pcie_txq_stuck_timer() local
165 IWL_ERR(trans, "Queue %d stuck for %u ms.\n", txq->q.id, in iwl_pcie_txq_stuck_timer()
167 IWL_ERR(trans, "Current SW read_ptr %d write_ptr %d\n", in iwl_pcie_txq_stuck_timer()
170 iwl_trans_read_mem_bytes(trans, scd_sram_addr, buf, sizeof(buf)); in iwl_pcie_txq_stuck_timer()
172 iwl_print_hex_error(trans, buf, sizeof(buf)); in iwl_pcie_txq_stuck_timer()
175 IWL_ERR(trans, "FH TRBs(%d) = 0x%08x\n", i, in iwl_pcie_txq_stuck_timer()
[all …]
Dinternal.h277 struct iwl_trans *trans; member
352 void iwl_trans_pcie_free(struct iwl_trans *trans);
357 int iwl_pcie_rx_init(struct iwl_trans *trans);
359 int iwl_pcie_rx_stop(struct iwl_trans *trans);
360 void iwl_pcie_rx_free(struct iwl_trans *trans);
366 int iwl_pcie_alloc_ict(struct iwl_trans *trans);
367 void iwl_pcie_free_ict(struct iwl_trans *trans);
368 void iwl_pcie_reset_ict(struct iwl_trans *trans);
369 void iwl_pcie_disable_ict(struct iwl_trans *trans);
374 int iwl_pcie_tx_init(struct iwl_trans *trans);
[all …]
Ddrv.c483 static u64 splx_get_pwr_limit(struct iwl_trans *trans, union acpi_object *splx) in splx_get_pwr_limit() argument
491 IWL_ERR(trans, "Unsupported splx structure\n"); in splx_get_pwr_limit()
500 IWL_ERR(trans, "Invalid limits element\n"); in splx_get_pwr_limit()
507 IWL_DEBUG_INFO(trans, "WiFi power is not limited\n"); in splx_get_pwr_limit()
514 static void set_dflt_pwr_limit(struct iwl_trans *trans, struct pci_dev *pdev) in set_dflt_pwr_limit() argument
523 IWL_DEBUG_INFO(trans, in set_dflt_pwr_limit()
531 IWL_DEBUG_INFO(trans, "SPL method not found\n"); in set_dflt_pwr_limit()
538 IWL_ERR(trans, "SPLC invocation failed (0x%x)\n", status); in set_dflt_pwr_limit()
542 trans->dflt_pwr_limit = splx_get_pwr_limit(trans, splx.pointer); in set_dflt_pwr_limit()
543 IWL_DEBUG_INFO(trans, "Default power limit set to %lld\n", in set_dflt_pwr_limit()
[all …]
/linux-4.1.27/net/rds/
Dtransport.c43 int rds_trans_register(struct rds_transport *trans) in rds_trans_register() argument
45 BUG_ON(strlen(trans->t_name) + 1 > TRANSNAMSIZ); in rds_trans_register()
49 if (transports[trans->t_type]) in rds_trans_register()
51 trans->t_type); in rds_trans_register()
53 transports[trans->t_type] = trans; in rds_trans_register()
54 printk(KERN_INFO "Registered RDS/%s transport\n", trans->t_name); in rds_trans_register()
63 void rds_trans_unregister(struct rds_transport *trans) in rds_trans_unregister() argument
67 transports[trans->t_type] = NULL; in rds_trans_unregister()
68 printk(KERN_INFO "Unregistered RDS/%s transport\n", trans->t_name); in rds_trans_unregister()
74 void rds_trans_put(struct rds_transport *trans) in rds_trans_put() argument
[all …]
Dconnection.c75 struct rds_transport *trans) in rds_conn_lookup() argument
81 conn->c_trans == trans) { in rds_conn_lookup()
121 struct rds_transport *trans, gfp_t gfp, in __rds_conn_create() argument
129 struct rds_transport *otrans = trans; in __rds_conn_create()
134 conn = rds_conn_lookup(head, laddr, faddr, trans); in __rds_conn_create()
181 if (is_outgoing && trans->t_prefer_loopback) { in __rds_conn_create()
186 trans = &rds_loop_transport; in __rds_conn_create()
190 conn->c_trans = trans; in __rds_conn_create()
192 ret = trans->conn_alloc(conn, gfp); in __rds_conn_create()
211 trans->t_name ? trans->t_name : "[unknown]", in __rds_conn_create()
[all …]
Drdma_transport.c73 struct rds_transport *trans; in rds_rdma_cm_event_handler() local
80 trans = &rds_iw_transport; in rds_rdma_cm_event_handler()
82 trans = &rds_ib_transport; in rds_rdma_cm_event_handler()
103 ret = trans->cm_handle_connect(cm_id, event); in rds_rdma_cm_event_handler()
114 ret = trans->cm_initiate_connect(cm_id); in rds_rdma_cm_event_handler()
118 trans->cm_connect_complete(conn, event); in rds_rdma_cm_event_handler()
Dbind.c167 struct rds_transport *trans; in rds_bind() local
184 trans = rds_trans_get_preferred(sin->sin_addr.s_addr); in rds_bind()
185 if (!trans) { in rds_bind()
193 rs->rs_transport = trans; in rds_bind()
Dstats.c123 goto trans; in rds_stats_info()
137 trans: in rds_stats_info()
Drds.h616 struct rds_transport *trans, gfp_t gfp);
618 struct rds_transport *trans, gfp_t gfp);
800 int rds_trans_register(struct rds_transport *trans);
801 void rds_trans_unregister(struct rds_transport *trans);
803 void rds_trans_put(struct rds_transport *trans);
/linux-4.1.27/fs/btrfs/
Dtransaction.c105 static noinline void switch_commit_roots(struct btrfs_transaction *trans, in switch_commit_roots() argument
111 list_for_each_entry_safe(root, tmp, &trans->switch_commits, in switch_commit_roots()
123 static inline void extwriter_counter_inc(struct btrfs_transaction *trans, in extwriter_counter_inc() argument
127 atomic_inc(&trans->num_extwriters); in extwriter_counter_inc()
130 static inline void extwriter_counter_dec(struct btrfs_transaction *trans, in extwriter_counter_dec() argument
134 atomic_dec(&trans->num_extwriters); in extwriter_counter_dec()
137 static inline void extwriter_counter_init(struct btrfs_transaction *trans, in extwriter_counter_init() argument
140 atomic_set(&trans->num_extwriters, ((type & TRANS_EXTWRITERS) ? 1 : 0)); in extwriter_counter_init()
143 static inline int extwriter_counter_read(struct btrfs_transaction *trans) in extwriter_counter_read() argument
145 return atomic_read(&trans->num_extwriters); in extwriter_counter_read()
[all …]
Dtree-log.h46 struct btrfs_trans_handle *trans) in btrfs_set_log_full_commit() argument
48 ACCESS_ONCE(fs_info->last_trans_log_full_commit) = trans->transid; in btrfs_set_log_full_commit()
52 struct btrfs_trans_handle *trans) in btrfs_need_log_full_commit() argument
55 trans->transid; in btrfs_need_log_full_commit()
58 int btrfs_sync_log(struct btrfs_trans_handle *trans,
60 int btrfs_free_log(struct btrfs_trans_handle *trans, struct btrfs_root *root);
61 int btrfs_free_log_root_tree(struct btrfs_trans_handle *trans,
64 int btrfs_log_dentry_safe(struct btrfs_trans_handle *trans,
69 int btrfs_del_dir_entries_in_log(struct btrfs_trans_handle *trans,
73 int btrfs_del_inode_ref_in_log(struct btrfs_trans_handle *trans,
[all …]
Dqgroup.h61 int btrfs_quota_enable(struct btrfs_trans_handle *trans,
63 int btrfs_quota_disable(struct btrfs_trans_handle *trans,
68 int btrfs_add_qgroup_relation(struct btrfs_trans_handle *trans,
70 int btrfs_del_qgroup_relation(struct btrfs_trans_handle *trans,
72 int btrfs_create_qgroup(struct btrfs_trans_handle *trans,
74 int btrfs_remove_qgroup(struct btrfs_trans_handle *trans,
76 int btrfs_limit_qgroup(struct btrfs_trans_handle *trans,
82 int btrfs_qgroup_record_ref(struct btrfs_trans_handle *trans,
87 int btrfs_delayed_qgroup_accounting(struct btrfs_trans_handle *trans,
89 void btrfs_remove_qgroup_operation(struct btrfs_trans_handle *trans,
[all …]
Droot-tree.c135 int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_update_root() argument
150 ret = btrfs_search_slot(trans, root, key, path, 0, 1); in btrfs_update_root()
152 btrfs_abort_transaction(trans, root, ret); in btrfs_update_root()
175 ret = btrfs_search_slot(trans, root, key, path, in btrfs_update_root()
178 btrfs_abort_transaction(trans, root, ret); in btrfs_update_root()
182 ret = btrfs_del_item(trans, root, path); in btrfs_update_root()
184 btrfs_abort_transaction(trans, root, ret); in btrfs_update_root()
188 ret = btrfs_insert_empty_item(trans, root, path, in btrfs_update_root()
191 btrfs_abort_transaction(trans, root, ret); in btrfs_update_root()
212 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_insert_root() argument
[all …]
Dtree-log.c96 static int btrfs_log_inode(struct btrfs_trans_handle *trans,
102 static int link_to_fixup_dir(struct btrfs_trans_handle *trans,
105 static noinline int replay_dir_deletes(struct btrfs_trans_handle *trans,
139 static int start_log_trans(struct btrfs_trans_handle *trans, in start_log_trans() argument
148 if (btrfs_need_log_full_commit(root->fs_info, trans)) { in start_log_trans()
173 ret = btrfs_init_log_root_tree(trans, root->fs_info); in start_log_trans()
179 ret = btrfs_add_log_tree(trans, root); in start_log_trans()
282 struct btrfs_trans_handle *trans; member
341 static noinline int overwrite_item(struct btrfs_trans_handle *trans, in overwrite_item() argument
457 ret = btrfs_insert_empty_item(trans, root, path, in overwrite_item()
[all …]
Dextent-tree.c77 static int update_block_group(struct btrfs_trans_handle *trans,
80 static int __btrfs_free_extent(struct btrfs_trans_handle *trans,
90 static int alloc_reserved_file_extent(struct btrfs_trans_handle *trans,
95 static int alloc_reserved_tree_block(struct btrfs_trans_handle *trans,
101 static int do_chunk_alloc(struct btrfs_trans_handle *trans,
743 int btrfs_lookup_extent_info(struct btrfs_trans_handle *trans, in btrfs_lookup_extent_info() argument
771 if (!trans) { in btrfs_lookup_extent_info()
784 ret = btrfs_search_slot(trans, root->fs_info->extent_root, in btrfs_lookup_extent_info()
829 if (!trans) in btrfs_lookup_extent_info()
832 delayed_refs = &trans->transaction->delayed_refs; in btrfs_lookup_extent_info()
[all …]
Dqgroup.c477 static int add_qgroup_relation_item(struct btrfs_trans_handle *trans, in add_qgroup_relation_item() argument
493 ret = btrfs_insert_empty_item(trans, quota_root, path, &key, 0); in add_qgroup_relation_item()
501 static int del_qgroup_relation_item(struct btrfs_trans_handle *trans, in del_qgroup_relation_item() argument
517 ret = btrfs_search_slot(trans, quota_root, &key, path, -1, 1); in del_qgroup_relation_item()
526 ret = btrfs_del_item(trans, quota_root, path); in del_qgroup_relation_item()
532 static int add_qgroup_item(struct btrfs_trans_handle *trans, in add_qgroup_item() argument
559 ret = btrfs_insert_empty_item(trans, quota_root, path, &key, in add_qgroup_item()
567 btrfs_set_qgroup_info_generation(leaf, qgroup_info, trans->transid); in add_qgroup_item()
578 ret = btrfs_insert_empty_item(trans, quota_root, path, &key, in add_qgroup_item()
600 static int del_qgroup_item(struct btrfs_trans_handle *trans, in del_qgroup_item() argument
[all …]
Dinode.c119 static int btrfs_init_inode_security(struct btrfs_trans_handle *trans, in btrfs_init_inode_security() argument
125 err = btrfs_init_acl(trans, inode, dir); in btrfs_init_inode_security()
127 err = btrfs_xattr_security_init(trans, inode, dir, qstr); in btrfs_init_inode_security()
136 static int insert_inline_extent(struct btrfs_trans_handle *trans, in insert_inline_extent() argument
168 ret = btrfs_insert_empty_item(trans, root, path, &key, in insert_inline_extent()
178 btrfs_set_file_extent_generation(leaf, ei, trans->transid); in insert_inline_extent()
226 ret = btrfs_update_inode(trans, root, inode); in insert_inline_extent()
245 struct btrfs_trans_handle *trans; in cow_file_range_inline() local
273 trans = btrfs_join_transaction(root); in cow_file_range_inline()
274 if (IS_ERR(trans)) { in cow_file_range_inline()
[all …]
Ddelayed-ref.c237 int btrfs_delayed_ref_lock(struct btrfs_trans_handle *trans, in btrfs_delayed_ref_lock() argument
242 delayed_refs = &trans->transaction->delayed_refs; in btrfs_delayed_ref_lock()
261 static inline void drop_delayed_ref(struct btrfs_trans_handle *trans, in drop_delayed_ref() argument
276 if (trans->delayed_ref_updates) in drop_delayed_ref()
277 trans->delayed_ref_updates--; in drop_delayed_ref()
280 static int merge_ref(struct btrfs_trans_handle *trans, in merge_ref() argument
314 drop_delayed_ref(trans, delayed_refs, head, next); in merge_ref()
317 drop_delayed_ref(trans, delayed_refs, head, ref); in merge_ref()
331 void btrfs_merge_delayed_refs(struct btrfs_trans_handle *trans, in btrfs_merge_delayed_refs() argument
366 if (merge_ref(trans, delayed_refs, head, ref, seq)) in btrfs_merge_delayed_refs()
[all …]
Dioctl.c218 struct btrfs_trans_handle *trans; in btrfs_ioctl_setflags() local
341 trans = btrfs_start_transaction(root, 1); in btrfs_ioctl_setflags()
342 if (IS_ERR(trans)) { in btrfs_ioctl_setflags()
343 ret = PTR_ERR(trans); in btrfs_ioctl_setflags()
350 ret = btrfs_update_inode(trans, root, inode); in btrfs_ioctl_setflags()
352 btrfs_end_transaction(trans, root); in btrfs_ioctl_setflags()
437 struct btrfs_trans_handle *trans; in create_subvol() local
476 trans = btrfs_start_transaction(root, 0); in create_subvol()
477 if (IS_ERR(trans)) { in create_subvol()
478 ret = PTR_ERR(trans); in create_subvol()
[all …]
Dinode-map.c393 struct btrfs_trans_handle *trans) in btrfs_save_ino_cache() argument
422 rsv = trans->block_rsv; in btrfs_save_ino_cache()
423 trans->block_rsv = &root->fs_info->trans_block_rsv; in btrfs_save_ino_cache()
425 num_bytes = trans->bytes_reserved; in btrfs_save_ino_cache()
433 trans->bytes_reserved = btrfs_calc_trans_metadata_size(root, 10); in btrfs_save_ino_cache()
434 ret = btrfs_block_rsv_add(root, trans->block_rsv, in btrfs_save_ino_cache()
435 trans->bytes_reserved, in btrfs_save_ino_cache()
440 trans->transid, trans->bytes_reserved, 1); in btrfs_save_ino_cache()
452 ret = create_free_ino_inode(root, trans, path); in btrfs_save_ino_cache()
459 ret = btrfs_update_inode(trans, root, inode); in btrfs_save_ino_cache()
[all …]
Ddelayed-inode.c542 static int btrfs_delayed_item_reserve_metadata(struct btrfs_trans_handle *trans, in btrfs_delayed_item_reserve_metadata() argument
551 if (!trans->bytes_reserved) in btrfs_delayed_item_reserve_metadata()
554 src_rsv = trans->block_rsv; in btrfs_delayed_item_reserve_metadata()
586 struct btrfs_trans_handle *trans, in btrfs_delayed_inode_reserve_metadata() argument
597 src_rsv = trans->block_rsv; in btrfs_delayed_inode_reserve_metadata()
611 if (!src_rsv || (!trans->bytes_reserved && in btrfs_delayed_inode_reserve_metadata()
829 static int btrfs_insert_delayed_item(struct btrfs_trans_handle *trans, in btrfs_insert_delayed_item() argument
838 ret = btrfs_insert_empty_item(trans, root, path, &delayed_item->key, in btrfs_insert_delayed_item()
859 static int btrfs_insert_delayed_items(struct btrfs_trans_handle *trans, in btrfs_insert_delayed_items() argument
873 ret = btrfs_insert_delayed_item(trans, root, path, curr); in btrfs_insert_delayed_items()
[all …]
Dinode-item.c96 btrfs_lookup_inode_extref(struct btrfs_trans_handle *trans, in btrfs_lookup_inode_extref() argument
111 ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); in btrfs_lookup_inode_extref()
121 static int btrfs_del_inode_extref(struct btrfs_trans_handle *trans, in btrfs_del_inode_extref() argument
147 ret = btrfs_search_slot(trans, root, &key, path, -1, 1); in btrfs_del_inode_extref()
175 ret = btrfs_del_item(trans, root, path); in btrfs_del_inode_extref()
193 int btrfs_del_inode_ref(struct btrfs_trans_handle *trans, in btrfs_del_inode_ref() argument
220 ret = btrfs_search_slot(trans, root, &key, path, -1, 1); in btrfs_del_inode_ref()
240 ret = btrfs_del_item(trans, root, path); in btrfs_del_inode_ref()
258 return btrfs_del_inode_extref(trans, root, name, name_len, in btrfs_del_inode_ref()
270 static int btrfs_insert_inode_extref(struct btrfs_trans_handle *trans, in btrfs_insert_inode_extref() argument
[all …]
Dxattr.c91 static int do_setxattr(struct btrfs_trans_handle *trans, in do_setxattr() argument
110 di = btrfs_lookup_xattr(trans, root, path, btrfs_ino(inode), in do_setxattr()
117 ret = btrfs_delete_one_dir_name(trans, root, path, di); in do_setxattr()
142 ret = btrfs_insert_xattr_item(trans, root, path, btrfs_ino(inode), in do_setxattr()
204 ret = btrfs_delete_one_dir_name(trans, root, path, di); in do_setxattr()
233 int __btrfs_setxattr(struct btrfs_trans_handle *trans, in __btrfs_setxattr() argument
240 if (trans) in __btrfs_setxattr()
241 return do_setxattr(trans, inode, name, value, size, flags); in __btrfs_setxattr()
243 trans = btrfs_start_transaction(root, 2); in __btrfs_setxattr()
244 if (IS_ERR(trans)) in __btrfs_setxattr()
[all …]
Drelocation.c476 static int update_backref_cache(struct btrfs_trans_handle *trans, in update_backref_cache() argument
483 cache->last_trans = trans->transid; in update_backref_cache()
487 if (cache->last_trans == trans->transid) in update_backref_cache()
1186 static int clone_backref_node(struct btrfs_trans_handle *trans, argument
1200 update_backref_cache(trans, cache);
1366 static struct btrfs_root *create_reloc_root(struct btrfs_trans_handle *trans, argument
1385 ret = btrfs_copy_root(trans, root, root->commit_root, &eb,
1391 trans->transid - 1);
1400 ret = btrfs_copy_root(trans, root, root->node, &eb,
1408 btrfs_set_root_generation(root_item, trans->transid);
[all …]
Dfile.c147 int btrfs_add_inode_defrag(struct btrfs_trans_handle *trans, in btrfs_add_inode_defrag() argument
161 if (trans) in btrfs_add_inode_defrag()
162 transid = trans->transid; in btrfs_add_inode_defrag()
691 int __btrfs_drop_extents(struct btrfs_trans_handle *trans, in __btrfs_drop_extents() argument
729 ret = btrfs_lookup_file_extent(trans, root, path, ino, in __btrfs_drop_extents()
829 ret = btrfs_duplicate_item(trans, root, path, in __btrfs_drop_extents()
854 ret = btrfs_inc_extent_ref(trans, root, in __btrfs_drop_extents()
932 ret = btrfs_free_extent(trans, root, in __btrfs_drop_extents()
950 ret = btrfs_del_items(trans, root, path, del_slot, in __btrfs_drop_extents()
953 btrfs_abort_transaction(trans, root, ret); in __btrfs_drop_extents()
[all …]
Dctree.c28 static int split_node(struct btrfs_trans_handle *trans, struct btrfs_root
30 static int split_leaf(struct btrfs_trans_handle *trans, struct btrfs_root
33 static int push_node_left(struct btrfs_trans_handle *trans,
36 static int balance_node_right(struct btrfs_trans_handle *trans,
238 int btrfs_copy_root(struct btrfs_trans_handle *trans, in btrfs_copy_root() argument
249 trans->transid != root->fs_info->running_transaction->transid); in btrfs_copy_root()
251 trans->transid != root->last_trans); in btrfs_copy_root()
259 cow = btrfs_alloc_tree_block(trans, root, 0, new_root_objectid, in btrfs_copy_root()
266 btrfs_set_header_generation(cow, trans->transid); in btrfs_copy_root()
278 WARN_ON(btrfs_header_generation(buf) > trans->transid); in btrfs_copy_root()
[all …]
Dorphan.c22 int btrfs_insert_orphan_item(struct btrfs_trans_handle *trans, in btrfs_insert_orphan_item() argument
37 ret = btrfs_insert_empty_item(trans, root, path, &key, 0); in btrfs_insert_orphan_item()
43 int btrfs_del_orphan_item(struct btrfs_trans_handle *trans, in btrfs_del_orphan_item() argument
58 ret = btrfs_search_slot(trans, root, &key, path, -1, 1); in btrfs_del_orphan_item()
66 ret = btrfs_del_item(trans, root, path); in btrfs_del_orphan_item()
Dtransaction.h146 static inline void btrfs_set_inode_last_trans(struct btrfs_trans_handle *trans, in btrfs_set_inode_last_trans() argument
150 BTRFS_I(inode)->last_trans = trans->transaction->transid; in btrfs_set_inode_last_trans()
156 int btrfs_end_transaction(struct btrfs_trans_handle *trans,
173 int btrfs_commit_transaction(struct btrfs_trans_handle *trans,
175 int btrfs_commit_transaction_async(struct btrfs_trans_handle *trans,
178 int btrfs_end_transaction_throttle(struct btrfs_trans_handle *trans,
180 int btrfs_should_end_transaction(struct btrfs_trans_handle *trans,
183 int btrfs_record_root_in_trans(struct btrfs_trans_handle *trans,
Ddir-item.c33 *trans, in insert_with_overflow()
46 ret = btrfs_insert_empty_item(trans, root, path, cpu_key, data_size); in insert_with_overflow()
68 int btrfs_insert_xattr_item(struct btrfs_trans_handle *trans, in btrfs_insert_xattr_item() argument
89 dir_item = insert_with_overflow(trans, root, path, &key, data_size, in btrfs_insert_xattr_item()
100 btrfs_set_dir_transid(leaf, dir_item, trans->transid); in btrfs_insert_xattr_item()
120 int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_insert_dir_item() argument
147 dir_item = insert_with_overflow(trans, root, path, &key, data_size, in btrfs_insert_dir_item()
161 btrfs_set_dir_transid(leaf, dir_item, trans->transid); in btrfs_insert_dir_item()
175 ret2 = btrfs_insert_delayed_dir_index(trans, root, name, name_len, dir, in btrfs_insert_dir_item()
191 struct btrfs_dir_item *btrfs_lookup_dir_item(struct btrfs_trans_handle *trans, in btrfs_lookup_dir_item() argument
[all …]
Ddev-replace.c195 int btrfs_run_dev_replace(struct btrfs_trans_handle *trans, in btrfs_run_dev_replace() argument
223 ret = btrfs_search_slot(trans, dev_root, &key, path, -1, 1); in btrfs_run_dev_replace()
243 ret = btrfs_del_item(trans, dev_root, path); in btrfs_run_dev_replace()
255 ret = btrfs_insert_empty_item(trans, dev_root, path, in btrfs_run_dev_replace()
312 struct btrfs_trans_handle *trans; in btrfs_dev_replace_start() local
335 trans = btrfs_attach_transaction(root); in btrfs_dev_replace_start()
336 if (!IS_ERR(trans)) { in btrfs_dev_replace_start()
337 ret = btrfs_commit_transaction(trans, root); in btrfs_dev_replace_start()
340 } else if (PTR_ERR(trans) != -ENOENT) { in btrfs_dev_replace_start()
341 return PTR_ERR(trans); in btrfs_dev_replace_start()
[all …]
Ddelayed-inode.h101 int btrfs_insert_delayed_dir_index(struct btrfs_trans_handle *trans,
107 int btrfs_delete_delayed_dir_index(struct btrfs_trans_handle *trans,
113 int btrfs_run_delayed_items(struct btrfs_trans_handle *trans,
115 int btrfs_run_delayed_items_nr(struct btrfs_trans_handle *trans,
120 int btrfs_commit_inode_delayed_items(struct btrfs_trans_handle *trans,
128 int btrfs_delayed_update_inode(struct btrfs_trans_handle *trans,
Ddelayed-ref.h206 struct btrfs_trans_handle *trans,
212 struct btrfs_trans_handle *trans,
219 struct btrfs_trans_handle *trans,
222 void btrfs_merge_delayed_refs(struct btrfs_trans_handle *trans,
228 btrfs_find_delayed_ref_head(struct btrfs_trans_handle *trans, u64 bytenr);
229 int btrfs_delayed_ref_lock(struct btrfs_trans_handle *trans,
238 btrfs_select_ref_head(struct btrfs_trans_handle *trans);
Dprops.c102 static int __btrfs_set_prop(struct btrfs_trans_handle *trans, in __btrfs_set_prop() argument
120 ret = __btrfs_setxattr(trans, inode, handler->xattr_name, in __btrfs_set_prop()
134 ret = __btrfs_setxattr(trans, inode, handler->xattr_name, in __btrfs_set_prop()
140 __btrfs_setxattr(trans, inode, handler->xattr_name, in __btrfs_set_prop()
300 static int inherit_props(struct btrfs_trans_handle *trans, in inherit_props() argument
324 ret = btrfs_block_rsv_add(root, trans->block_rsv, in inherit_props()
328 ret = __btrfs_set_prop(trans, inode, h->xattr_name, in inherit_props()
330 btrfs_block_rsv_release(root, trans->block_rsv, num_bytes); in inherit_props()
339 int btrfs_inode_inherit_props(struct btrfs_trans_handle *trans, in btrfs_inode_inherit_props() argument
346 return inherit_props(trans, inode, dir); in btrfs_inode_inherit_props()
[all …]
Duuid-tree.c93 int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, in btrfs_uuid_tree_add() argument
122 ret = btrfs_insert_empty_item(trans, uuid_root, path, &key, in btrfs_uuid_tree_add()
157 int btrfs_uuid_tree_rem(struct btrfs_trans_handle *trans, in btrfs_uuid_tree_rem() argument
185 ret = btrfs_search_slot(trans, uuid_root, &key, path, -1, 1); in btrfs_uuid_tree_rem()
223 ret = btrfs_del_item(trans, uuid_root, path); in btrfs_uuid_tree_rem()
241 struct btrfs_trans_handle *trans; in btrfs_uuid_iter_rem() local
245 trans = btrfs_start_transaction(uuid_root, 1); in btrfs_uuid_iter_rem()
246 if (IS_ERR(trans)) { in btrfs_uuid_iter_rem()
247 ret = PTR_ERR(trans); in btrfs_uuid_iter_rem()
251 ret = btrfs_uuid_tree_rem(trans, uuid_root, uuid, type, subid); in btrfs_uuid_iter_rem()
[all …]
Dctree.h3350 int btrfs_should_throttle_delayed_refs(struct btrfs_trans_handle *trans,
3352 int btrfs_check_space_for_delayed_refs(struct btrfs_trans_handle *trans,
3355 int btrfs_run_delayed_refs(struct btrfs_trans_handle *trans,
3360 int btrfs_lookup_extent_info(struct btrfs_trans_handle *trans,
3369 int btrfs_cross_ref_exist(struct btrfs_trans_handle *trans,
3377 struct extent_buffer *btrfs_alloc_tree_block(struct btrfs_trans_handle *trans,
3382 void btrfs_free_tree_block(struct btrfs_trans_handle *trans,
3386 int btrfs_alloc_reserved_file_extent(struct btrfs_trans_handle *trans,
3390 int btrfs_alloc_logged_file_extent(struct btrfs_trans_handle *trans,
3397 int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
[all …]
Dfree-space-cache.h57 struct btrfs_trans_handle *trans,
64 struct btrfs_trans_handle *trans,
70 struct btrfs_trans_handle *trans,
75 struct btrfs_trans_handle *trans,
81 struct btrfs_trans_handle *trans,
86 struct btrfs_trans_handle *trans,
Dacl.c75 static int __btrfs_set_acl(struct btrfs_trans_handle *trans, in __btrfs_set_acl() argument
116 ret = __btrfs_setxattr(trans, inode, name, value, size, 0); in __btrfs_set_acl()
136 int btrfs_init_acl(struct btrfs_trans_handle *trans, in btrfs_init_acl() argument
151 ret = __btrfs_set_acl(trans, inode, default_acl, in btrfs_init_acl()
158 ret = __btrfs_set_acl(trans, inode, acl, in btrfs_init_acl()
Ddisk-io.h54 void clean_tree_block(struct btrfs_trans_handle *trans,
60 int write_ctree_super(struct btrfs_trans_handle *trans,
131 int btrfs_init_log_root_tree(struct btrfs_trans_handle *trans,
133 int btrfs_add_log_tree(struct btrfs_trans_handle *trans,
135 void btrfs_cleanup_one_transaction(struct btrfs_transaction *trans,
137 struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans,
Dvolumes.c45 static int init_first_rw_device(struct btrfs_trans_handle *trans,
1055 static int contains_pending_extent(struct btrfs_trans_handle *trans, in contains_pending_extent() argument
1060 struct list_head *search_list = &trans->transaction->pending_chunks; in contains_pending_extent()
1082 if (search_list == &trans->transaction->pending_chunks) { in contains_pending_extent()
1083 search_list = &trans->root->fs_info->pinned_chunks; in contains_pending_extent()
1111 int find_free_dev_extent(struct btrfs_trans_handle *trans, in find_free_dev_extent() argument
1196 if (contains_pending_extent(trans, device, in find_free_dev_extent()
1245 if (contains_pending_extent(trans, device, &search_start, in find_free_dev_extent()
1271 static int btrfs_free_dev_extent(struct btrfs_trans_handle *trans, in btrfs_free_dev_extent() argument
1291 ret = btrfs_search_slot(trans, root, &key, path, -1, 1); in btrfs_free_dev_extent()
[all …]
Dtree-defrag.c32 int btrfs_defrag_leaves(struct btrfs_trans_handle *trans, in btrfs_defrag_leaves() argument
95 wret = btrfs_search_slot(trans, root, &key, path, 0, 1); in btrfs_defrag_leaves()
108 ret = btrfs_realloc_node(trans, root, in btrfs_defrag_leaves()
136 root->defrag_trans_start = trans->transid; in btrfs_defrag_leaves()
Dbackref.c887 static int find_parent_nodes(struct btrfs_trans_handle *trans, argument
918 if (!trans) {
931 ret = btrfs_search_slot(trans, fs_info->extent_root, &key, path, 0, 0);
937 if (trans && likely(trans->type != __TRANS_DUMMY)) {
939 if (trans) {
945 delayed_refs = &trans->transaction->delayed_refs;
947 head = btrfs_find_delayed_ref_head(trans, bytenr);
1117 static int btrfs_find_all_leafs(struct btrfs_trans_handle *trans, argument
1128 ret = find_parent_nodes(trans, fs_info, bytenr,
1151 static int __btrfs_find_all_roots(struct btrfs_trans_handle *trans, argument
[all …]
Dprops.h34 int btrfs_inode_inherit_props(struct btrfs_trans_handle *trans,
38 int btrfs_subvol_inherit_props(struct btrfs_trans_handle *trans,
Dxattr.h28 extern int __btrfs_setxattr(struct btrfs_trans_handle *trans,
37 extern int btrfs_xattr_security_init(struct btrfs_trans_handle *trans,
Dfile-item.c40 int btrfs_insert_file_extent(struct btrfs_trans_handle *trans, in btrfs_insert_file_extent() argument
61 ret = btrfs_insert_empty_item(trans, root, path, &file_key, in btrfs_insert_file_extent()
74 btrfs_set_file_extent_generation(leaf, item, trans->transid); in btrfs_insert_file_extent()
87 btrfs_lookup_csum(struct btrfs_trans_handle *trans, in btrfs_lookup_csum() argument
104 ret = btrfs_search_slot(trans, root, &file_key, path, 0, cow); in btrfs_lookup_csum()
139 int btrfs_lookup_file_extent(struct btrfs_trans_handle *trans, in btrfs_lookup_file_extent() argument
152 ret = btrfs_search_slot(trans, root, &file_key, path, ins_len, cow); in btrfs_lookup_file_extent()
566 int btrfs_del_csums(struct btrfs_trans_handle *trans, in btrfs_del_csums() argument
590 ret = btrfs_search_slot(trans, root, &key, path, -1, 1); in btrfs_del_csums()
620 ret = btrfs_del_item(trans, root, path); in btrfs_del_csums()
[all …]
Dvolumes.h421 int btrfs_alloc_chunk(struct btrfs_trans_handle *trans,
442 int btrfs_grow_device(struct btrfs_trans_handle *trans,
460 int find_free_dev_extent(struct btrfs_trans_handle *trans,
468 int btrfs_run_dev_stats(struct btrfs_trans_handle *trans,
484 int btrfs_finish_chunk_alloc(struct btrfs_trans_handle *trans,
487 int btrfs_remove_chunk(struct btrfs_trans_handle *trans,
Dsuper.c250 void __btrfs_abort_transaction(struct btrfs_trans_handle *trans, in __btrfs_abort_transaction() argument
262 trans->aborted = errno; in __btrfs_abort_transaction()
265 if (!trans->blocks_used && list_empty(&trans->new_bgs)) { in __btrfs_abort_transaction()
274 ACCESS_ONCE(trans->transaction->aborted) = errno; in __btrfs_abort_transaction()
989 struct btrfs_trans_handle *trans; in btrfs_sync_fs() local
1002 trans = btrfs_attach_transaction_barrier(root); in btrfs_sync_fs()
1003 if (IS_ERR(trans)) { in btrfs_sync_fs()
1005 if (PTR_ERR(trans) == -ENOENT) { in btrfs_sync_fs()
1022 trans = btrfs_start_transaction(root, 0); in btrfs_sync_fs()
1024 if (IS_ERR(trans)) in btrfs_sync_fs()
[all …]
Dbackref.h54 int btrfs_find_all_roots(struct btrfs_trans_handle *trans,
71 int btrfs_check_shared(struct btrfs_trans_handle *trans,
Dfree-space-cache.c132 struct btrfs_trans_handle *trans, in __create_free_space_inode() argument
144 ret = btrfs_insert_empty_inode(trans, root, path, ino); in __create_free_space_inode()
158 btrfs_set_inode_generation(leaf, inode_item, trans->transid); in __create_free_space_inode()
166 btrfs_set_inode_transid(leaf, inode_item, trans->transid); in __create_free_space_inode()
174 ret = btrfs_insert_empty_item(trans, root, path, &key, in __create_free_space_inode()
193 struct btrfs_trans_handle *trans, in create_free_space_inode() argument
204 return __create_free_space_inode(root, trans, path, ino, in create_free_space_inode()
228 struct btrfs_trans_handle *trans, in btrfs_truncate_free_space_cache() argument
241 mutex_lock(&trans->transaction->cache_write_mutex); in btrfs_truncate_free_space_cache()
245 btrfs_wait_cache_io(root, trans, block_group, in btrfs_truncate_free_space_cache()
[all …]
Ddisk-io.c63 static int btrfs_destroy_delayed_refs(struct btrfs_transaction *trans,
1163 void clean_tree_block(struct btrfs_trans_handle *trans, in clean_tree_block() argument
1307 struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans, in btrfs_create_tree() argument
1328 leaf = btrfs_alloc_tree_block(trans, root, 0, objectid, NULL, 0, 0, 0); in btrfs_create_tree()
1337 btrfs_set_header_generation(leaf, trans->transid); in btrfs_create_tree()
1355 btrfs_set_root_generation(&root->root_item, trans->transid); in btrfs_create_tree()
1368 ret = btrfs_insert_root(trans, tree_root, &key, &root->root_item); in btrfs_create_tree()
1387 static struct btrfs_root *alloc_log_tree(struct btrfs_trans_handle *trans, in alloc_log_tree() argument
1415 leaf = btrfs_alloc_tree_block(trans, root, 0, BTRFS_TREE_LOG_OBJECTID, in alloc_log_tree()
1424 btrfs_set_header_generation(leaf, trans->transid); in alloc_log_tree()
[all …]
Dinode-map.h9 struct btrfs_trans_handle *trans);
Ddev-replace.h25 int btrfs_run_dev_replace(struct btrfs_trans_handle *trans,
Dordered-data.h207 void btrfs_wait_logged_extents(struct btrfs_trans_handle *trans,
Dscrub.c802 struct btrfs_trans_handle *trans = NULL; in scrub_fixup_nodatasum() local
818 trans = btrfs_join_transaction(fixup->root); in scrub_fixup_nodatasum()
819 if (IS_ERR(trans)) { in scrub_fixup_nodatasum()
847 if (trans && !IS_ERR(trans)) in scrub_fixup_nodatasum()
848 btrfs_end_transaction(trans, fixup->root); in scrub_fixup_nodatasum()
3950 struct btrfs_trans_handle *trans = NULL; in copy_nocow_pages_worker() local
3968 trans = btrfs_join_transaction(root); in copy_nocow_pages_worker()
3969 if (IS_ERR(trans)) { in copy_nocow_pages_worker()
3985 btrfs_end_transaction(trans, root); in copy_nocow_pages_worker()
3986 trans = NULL; in copy_nocow_pages_worker()
[all …]
Dordered-data.c486 void btrfs_wait_logged_extents(struct btrfs_trans_handle *trans, in btrfs_wait_logged_extents() argument
512 list_add_tail(&ordered->trans_list, &trans->ordered); in btrfs_wait_logged_extents()
Dsend.c5636 struct btrfs_trans_handle *trans = NULL; in ensure_commit_roots_uptodate() local
5648 if (trans) in ensure_commit_roots_uptodate()
5649 return btrfs_end_transaction(trans, sctx->send_root); in ensure_commit_roots_uptodate()
5655 if (!trans) { in ensure_commit_roots_uptodate()
5656 trans = btrfs_join_transaction(sctx->send_root); in ensure_commit_roots_uptodate()
5657 if (IS_ERR(trans)) in ensure_commit_roots_uptodate()
5658 return PTR_ERR(trans); in ensure_commit_roots_uptodate()
5662 return btrfs_commit_transaction(trans, sctx->send_root); in ensure_commit_roots_uptodate()
/linux-4.1.27/fs/xfs/
Dxfs_attr_inactive.c48 struct xfs_trans **trans, in xfs_attr3_leaf_freextent() argument
91 bp = xfs_trans_get_buf(*trans, in xfs_attr3_leaf_freextent()
96 xfs_trans_binval(*trans, bp); in xfs_attr3_leaf_freextent()
100 error = xfs_trans_roll(trans, dp); in xfs_attr3_leaf_freextent()
120 struct xfs_trans **trans, in xfs_attr3_leaf_inactive() argument
158 xfs_trans_brelse(*trans, bp); in xfs_attr3_leaf_inactive()
185 xfs_trans_brelse(*trans, bp); /* unlock for trans. in freextent() */ in xfs_attr3_leaf_inactive()
192 tmp = xfs_attr3_leaf_freextent(trans, dp, in xfs_attr3_leaf_inactive()
209 struct xfs_trans **trans, in xfs_attr3_node_inactive() argument
227 xfs_trans_brelse(*trans, bp); /* no locks for later trans */ in xfs_attr3_node_inactive()
[all …]
Dxfs_log_recover.c1496 struct xlog_recover *trans, in xlog_recover_reorder_trans() argument
1507 list_splice_init(&trans->r_itemq, &sort_list); in xlog_recover_reorder_trans()
1518 trans, item, pass); in xlog_recover_reorder_trans()
1534 trans, item, pass); in xlog_recover_reorder_trans()
1547 list_splice_init(&sort_list, &trans->r_itemq); in xlog_recover_reorder_trans()
1555 list_splice(&buffer_list, &trans->r_itemq); in xlog_recover_reorder_trans()
1557 list_splice_tail(&inode_list, &trans->r_itemq); in xlog_recover_reorder_trans()
1559 list_splice_tail(&inode_buffer_list, &trans->r_itemq); in xlog_recover_reorder_trans()
1561 list_splice_tail(&cancel_list, &trans->r_itemq); in xlog_recover_reorder_trans()
3212 struct xlog_recover *trans, in xlog_recover_commit_pass1() argument
[all …]
Dxfs_trans.c1050 struct xfs_trans *trans; in xfs_trans_roll() local
1057 trans = *tpp; in xfs_trans_roll()
1058 xfs_trans_log_inode(trans, dp, XFS_ILOG_CORE); in xfs_trans_roll()
1063 tres.tr_logres = trans->t_log_res; in xfs_trans_roll()
1064 tres.tr_logcount = trans->t_log_count; in xfs_trans_roll()
1065 *tpp = xfs_trans_dup(trans); in xfs_trans_roll()
1074 error = xfs_trans_commit(trans, 0); in xfs_trans_roll()
1078 trans = *tpp; in xfs_trans_roll()
1084 xfs_log_ticket_put(trans->t_ticket); in xfs_trans_roll()
1096 error = xfs_trans_reserve(trans, &tres, 0, 0); in xfs_trans_roll()
[all …]
Dxfs_trace.h1420 TP_PROTO(struct xfs_trans *trans),
1421 TP_ARGS(trans),
1428 __entry->dev = trans->t_mountp->m_super->s_dev;
1429 __entry->tp = trans;
1430 __entry->lsn = trans->t_commit_lsn;
1912 TP_PROTO(struct xlog *log, struct xlog_recover *trans,
1914 TP_ARGS(log, trans, item, pass),
1927 __entry->tid = trans->r_log_tid;
1946 TP_PROTO(struct xlog *log, struct xlog_recover *trans, \
1948 TP_ARGS(log, trans, item, pass))
/linux-4.1.27/fs/btrfs/tests/
Dqgroup-tests.c25 static void init_dummy_trans(struct btrfs_trans_handle *trans) in init_dummy_trans() argument
27 memset(trans, 0, sizeof(*trans)); in init_dummy_trans()
28 trans->transid = 1; in init_dummy_trans()
29 INIT_LIST_HEAD(&trans->qgroup_ref_list); in init_dummy_trans()
30 trans->type = __TRANS_DUMMY; in init_dummy_trans()
36 struct btrfs_trans_handle trans; in insert_normal_tree_ref() local
46 init_dummy_trans(&trans); in insert_normal_tree_ref()
59 ret = btrfs_insert_empty_item(&trans, root, path, &ins, size); in insert_normal_tree_ref()
89 struct btrfs_trans_handle trans; in add_tree_ref() local
96 init_dummy_trans(&trans); in add_tree_ref()
[all …]
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sriov_common.c231 struct qlcnic_bc_trans *trans; in qlcnic_sriov_cleanup_list() local
238 trans = list_first_entry(&t_list->wait_list, in qlcnic_sriov_cleanup_list()
240 list_del(&trans->list); in qlcnic_sriov_cleanup_list()
242 cmd.req.arg = (u32 *)trans->req_pay; in qlcnic_sriov_cleanup_list()
243 cmd.rsp.arg = (u32 *)trans->rsp_pay; in qlcnic_sriov_cleanup_list()
245 qlcnic_sriov_cleanup_transaction(trans); in qlcnic_sriov_cleanup_list()
687 static inline int qlcnic_sriov_alloc_bc_trans(struct qlcnic_bc_trans **trans) in qlcnic_sriov_alloc_bc_trans() argument
689 *trans = kzalloc(sizeof(struct qlcnic_bc_trans), GFP_ATOMIC); in qlcnic_sriov_alloc_bc_trans()
690 if (!*trans) in qlcnic_sriov_alloc_bc_trans()
693 init_completion(&(*trans)->resp_cmpl); in qlcnic_sriov_alloc_bc_trans()
[all …]
Dqlcnic_sriov_pf.c738 static int qlcnic_sriov_pf_channel_cfg_cmd(struct qlcnic_bc_trans *trans, in qlcnic_sriov_pf_channel_cfg_cmd() argument
741 struct qlcnic_vf_info *vf = trans->vf; in qlcnic_sriov_pf_channel_cfg_cmd()
752 if (trans->req_hdr->cmd_op == QLCNIC_BC_CMD_CHANNEL_INIT) { in qlcnic_sriov_pf_channel_cfg_cmd()
774 if (trans->req_hdr->cmd_op == QLCNIC_BC_CMD_CHANNEL_INIT) in qlcnic_sriov_pf_channel_cfg_cmd()
910 static int qlcnic_sriov_pf_mac_address_cmd(struct qlcnic_bc_trans *trans, in qlcnic_sriov_pf_mac_address_cmd() argument
913 struct qlcnic_vf_info *vf = trans->vf; in qlcnic_sriov_pf_mac_address_cmd()
942 static int qlcnic_sriov_pf_create_tx_ctx_cmd(struct qlcnic_bc_trans *trans, in qlcnic_sriov_pf_create_tx_ctx_cmd() argument
945 struct qlcnic_vf_info *vf = trans->vf; in qlcnic_sriov_pf_create_tx_ctx_cmd()
980 static int qlcnic_sriov_pf_del_rx_ctx_cmd(struct qlcnic_bc_trans *trans, in qlcnic_sriov_pf_del_rx_ctx_cmd() argument
983 struct qlcnic_vf_info *vf = trans->vf; in qlcnic_sriov_pf_del_rx_ctx_cmd()
[all …]
Dqlcnic_sriov.h268 struct qlcnic_bc_trans *trans, in qlcnic_sriov_soft_flr_check() argument
/linux-4.1.27/fs/xfs/libxfs/
Dxfs_attr.c253 args.trans = xfs_trans_alloc(mp, XFS_TRANS_ATTR_SET); in xfs_attr_set()
261 args.trans->t_flags |= XFS_TRANS_RESERVE; in xfs_attr_set()
267 error = xfs_trans_reserve(args.trans, &tres, args.total, 0); in xfs_attr_set()
269 xfs_trans_cancel(args.trans, 0); in xfs_attr_set()
274 error = xfs_trans_reserve_quota_nblks(args.trans, dp, args.total, 0, in xfs_attr_set()
279 xfs_trans_cancel(args.trans, XFS_TRANS_RELEASE_LOG_RES); in xfs_attr_set()
283 xfs_trans_ijoin(args.trans, dp, 0); in xfs_attr_set()
309 ASSERT(args.trans != NULL); in xfs_attr_set()
317 xfs_trans_set_sync(args.trans); in xfs_attr_set()
320 xfs_trans_ichgtime(args.trans, dp, in xfs_attr_set()
[all …]
Dxfs_attr_remote.c438 error = xfs_bmap_first_unused(args->trans, args->dp, blkcnt, &lfileoff, in xfs_attr_rmtval_set()
466 error = xfs_bmapi_write(args->trans, dp, (xfs_fileoff_t)lblkno, in xfs_attr_rmtval_set()
470 error = xfs_bmap_finish(&args->trans, args->flist, in xfs_attr_rmtval_set()
475 args->trans = NULL; in xfs_attr_rmtval_set()
485 xfs_trans_ijoin(args->trans, dp, 0); in xfs_attr_rmtval_set()
496 error = xfs_trans_roll(&args->trans, dp); in xfs_attr_rmtval_set()
620 error = xfs_bunmapi(args->trans, args->dp, lblkno, blkcnt, in xfs_attr_rmtval_remove()
625 error = xfs_bmap_finish(&args->trans, args->flist, in xfs_attr_rmtval_remove()
630 args->trans = NULL; in xfs_attr_rmtval_remove()
640 xfs_trans_ijoin(args->trans, args->dp, 0); in xfs_attr_rmtval_remove()
[all …]
Dxfs_attr_leaf.c516 xfs_trans_log_inode(args->trans, dp, XFS_ILOG_CORE | XFS_ILOG_ADATA); in xfs_attr_shortform_create()
568 xfs_trans_log_inode(args->trans, dp, XFS_ILOG_CORE | XFS_ILOG_ADATA); in xfs_attr_shortform_add()
570 xfs_sbversion_add_attr2(mp, args->trans); in xfs_attr_shortform_add()
644 xfs_attr_fork_remove(dp, args->trans); in xfs_attr_shortform_remove()
653 xfs_trans_log_inode(args->trans, dp, in xfs_attr_shortform_remove()
657 xfs_sbversion_add_attr2(mp, args->trans); in xfs_attr_shortform_remove()
794 nargs.trans = args->trans; in xfs_attr_shortform_to_leaf()
908 xfs_attr_fork_remove(dp, args->trans); in xfs_attr3_leaf_to_shortform()
924 nargs.trans = args->trans; in xfs_attr3_leaf_to_shortform()
974 error = xfs_attr3_leaf_read(args->trans, dp, 0, -1, &bp1); in xfs_attr3_leaf_to_node()
[all …]
Dxfs_da_btree.c304 struct xfs_trans *tp = args->trans; in xfs_da3_node_create()
474 xfs_trans_log_buf(state->args->trans, bp, in xfs_da3_split()
488 xfs_trans_log_buf(state->args->trans, bp, in xfs_da3_split()
533 tp = args->trans; in xfs_da3_root_split()
780 tp = state->args->trans; in xfs_da3_node_rebalance()
906 xfs_trans_log_buf(state->args->trans, oldblk->bp, in xfs_da3_node_add()
912 xfs_trans_log_buf(state->args->trans, oldblk->bp, in xfs_da3_node_add()
1075 error = xfs_da3_node_read(args->trans, dp, child, -1, &bp, in xfs_da3_root_join()
1095 xfs_trans_log_buf(args->trans, root_blk->bp, 0, in xfs_da3_root_join()
1190 error = xfs_da3_node_read(state->args->trans, dp, in xfs_da3_node_toosmall()
[all …]
Dxfs_da_btree.h74 struct xfs_trans *trans; /* current trans (changes over time) */ member
197 int xfs_da_get_buf(struct xfs_trans *trans, struct xfs_inode *dp,
200 int xfs_da_read_buf(struct xfs_trans *trans, struct xfs_inode *dp,
Dxfs_dir2.c245 args->trans = tp; in xfs_dir_init()
292 args->trans = tp; in xfs_dir_createname()
385 args->trans = tp; in xfs_dir_lookup()
461 args->trans = tp; in xfs_dir_removename()
526 args->trans = tp; in xfs_dir_replace()
610 xfs_trans_log_inode(args->trans, dp, XFS_ILOG_CORE); in xfs_dir2_grow_inode()
675 tp = args->trans; in xfs_dir2_shrink_inode()
Dxfs_dir2_leaf.c344 struct xfs_trans *tp = args->trans; in xfs_dir3_leaf_get_buf()
395 tp = args->trans; in xfs_dir2_block_to_leaf()
638 tp = args->trans; in xfs_dir2_leaf_addname()
1069 xfs_trans_log_buf(args->trans, bp, in xfs_dir3_leaf_log_bests()
1097 xfs_trans_log_buf(args->trans, bp, in xfs_dir3_leaf_log_ents()
1117 xfs_trans_log_buf(args->trans, bp, in xfs_dir3_leaf_log_header()
1139 xfs_trans_log_buf(args->trans, bp, (uint)((char *)ltp - (char *)leaf), in xfs_dir3_leaf_log_tail()
1171 tp = args->trans; in xfs_dir2_leaf_lookup()
1229 tp = args->trans; in xfs_dir2_leaf_lookup_int()
1522 tp = args->trans; in xfs_dir2_leaf_replace()
[all …]
Dxfs_dir2_node.c200 struct xfs_trans *tp = args->trans; in xfs_dir3_free_get_buf()
254 xfs_trans_log_buf(args->trans, bp, in xfs_dir2_free_log_bests()
275 xfs_trans_log_buf(args->trans, bp, 0, in xfs_dir2_free_log_header()
307 tp = args->trans; in xfs_dir2_leaf_to_node()
533 tp = args->trans; in xfs_dir2_leafn_lookup_for_addname()
685 tp = args->trans; in xfs_dir2_leafn_lookup_for_entry()
1175 tp = args->trans; in xfs_dir2_leafn_remove()
1449 error = xfs_dir3_leafn_read(state->args->trans, dp, in xfs_dir2_leafn_toosmall()
1472 xfs_trans_brelse(state->args->trans, bp); in xfs_dir2_leafn_toosmall()
1668 tp = args->trans; in xfs_dir2_node_addname_int()
[all …]
Dxfs_dir2_sf.c271 xfs_trans_log_inode(args->trans, dp, logflags); in xfs_dir2_block_to_sf()
373 xfs_trans_log_inode(args->trans, dp, XFS_ILOG_CORE | XFS_ILOG_DDATA); in xfs_dir2_sf_addname()
665 xfs_trans_log_inode(args->trans, dp, XFS_ILOG_CORE); in xfs_dir2_sf_create()
688 xfs_trans_log_inode(args->trans, dp, XFS_ILOG_CORE | XFS_ILOG_DDATA); in xfs_dir2_sf_create()
861 xfs_trans_log_inode(args->trans, dp, XFS_ILOG_CORE | XFS_ILOG_DDATA); in xfs_dir2_sf_removename()
989 xfs_trans_log_inode(args->trans, dp, XFS_ILOG_DDATA); in xfs_dir2_sf_replace()
1065 xfs_trans_log_inode(args->trans, dp, XFS_ILOG_CORE | XFS_ILOG_DDATA); in xfs_dir2_sf_toino4()
1141 xfs_trans_log_inode(args->trans, dp, XFS_ILOG_CORE | XFS_ILOG_DDATA); in xfs_dir2_sf_toino8()
Dxfs_attr_leaf.h91 int xfs_attr3_root_inactive(struct xfs_trans **trans, struct xfs_inode *dp);
Dxfs_dir2_block.c361 tp = args->trans; in xfs_dir2_block_addname()
642 xfs_trans_brelse(args->trans, bp); in xfs_dir2_block_lookup()
672 tp = args->trans; in xfs_dir2_block_lookup_int()
782 tp = args->trans; in xfs_dir2_block_removename()
927 tp = args->trans; in xfs_dir2_leaf_to_block()
1074 tp = args->trans; in xfs_dir2_sf_to_block()
Dxfs_dir2_data.c586 tp = args->trans; in xfs_dir3_data_init()
655 xfs_trans_log_buf(args->trans, bp, (uint)((char *)dep - (char *)hdr), in xfs_dir2_data_log_entry()
677 xfs_trans_log_buf(args->trans, bp, 0, in xfs_dir2_data_log_header()
700 xfs_trans_log_buf(args->trans, bp, (uint)((char *)dup - (char *)hdr), in xfs_dir2_data_log_unused()
706 xfs_trans_log_buf(args->trans, bp, in xfs_dir2_data_log_unused()
/linux-4.1.27/drivers/staging/lustre/lnet/selftest/
Dconrpc.c188 lstcon_rpc_trans_t *trans = crpc->crp_trans; in lstcon_rpc_post() local
190 LASSERT(trans != NULL); in lstcon_rpc_post()
192 atomic_inc(&trans->tas_remaining); in lstcon_rpc_post()
241 lstcon_rpc_trans_t *trans; in lstcon_rpc_trans_prep() local
244 list_for_each_entry(trans, translist, tas_link) { in lstcon_rpc_trans_prep()
247 if ((trans->tas_opc & transop) == LST_TRANS_PRIVATE) in lstcon_rpc_trans_prep()
253 LIBCFS_ALLOC(trans, sizeof(*trans)); in lstcon_rpc_trans_prep()
254 if (trans == NULL) in lstcon_rpc_trans_prep()
257 trans->tas_opc = transop; in lstcon_rpc_trans_prep()
260 INIT_LIST_HEAD(&trans->tas_olink); in lstcon_rpc_trans_prep()
[all …]
Dconrpc.h130 void lstcon_rpc_trans_stat(lstcon_rpc_trans_t *trans,
132 int lstcon_rpc_trans_interpreter(lstcon_rpc_trans_t *trans,
135 void lstcon_rpc_trans_abort(lstcon_rpc_trans_t *trans, int error);
136 void lstcon_rpc_trans_destroy(lstcon_rpc_trans_t *trans);
137 void lstcon_rpc_trans_addreq(lstcon_rpc_trans_t *trans, lstcon_rpc_t *req);
138 int lstcon_rpc_trans_postwait(lstcon_rpc_trans_t *trans, int timeout);
Dconsole.c407 lstcon_rpc_trans_t *trans; in lstcon_group_nodes_add() local
446 tmp, lstcon_sesrpc_condition, &trans); in lstcon_group_nodes_add()
454 lstcon_rpc_trans_postwait(trans, LST_TRANS_TIMEOUT); in lstcon_group_nodes_add()
456 rc = lstcon_rpc_trans_interpreter(trans, result_up, in lstcon_group_nodes_add()
458 *featp = trans->tas_features; in lstcon_group_nodes_add()
461 lstcon_rpc_trans_destroy(trans); in lstcon_group_nodes_add()
474 lstcon_rpc_trans_t *trans; in lstcon_group_nodes_remove() local
502 tmp, lstcon_sesrpc_condition, &trans); in lstcon_group_nodes_remove()
508 lstcon_rpc_trans_postwait(trans, LST_TRANS_TIMEOUT); in lstcon_group_nodes_remove()
510 rc = lstcon_rpc_trans_interpreter(trans, result_up, NULL); in lstcon_group_nodes_remove()
[all …]
/linux-4.1.27/drivers/mfd/
Dcros_ec_spi.c119 struct spi_transfer trans; in cros_ec_spi_receive_response() local
131 memset(&trans, 0, sizeof(trans)); in cros_ec_spi_receive_response()
132 trans.cs_change = 1; in cros_ec_spi_receive_response()
133 trans.rx_buf = ptr = ec_dev->din; in cros_ec_spi_receive_response()
134 trans.len = EC_MSG_PREAMBLE_COUNT; in cros_ec_spi_receive_response()
137 spi_message_add_tail(&trans, &msg); in cros_ec_spi_receive_response()
190 memset(&trans, 0, sizeof(trans)); in cros_ec_spi_receive_response()
191 trans.cs_change = 1; in cros_ec_spi_receive_response()
192 trans.rx_buf = ptr; in cros_ec_spi_receive_response()
193 trans.len = todo; in cros_ec_spi_receive_response()
[all …]
/linux-4.1.27/drivers/hid/
Dhid-apple.c170 const struct apple_key_translation *trans; in apple_find_translation() local
173 for (trans = table; trans->from; trans++) in apple_find_translation()
174 if (trans->from == from) in apple_find_translation()
175 return trans; in apple_find_translation()
184 const struct apple_key_translation *trans, *table; in hidinput_apple_event() local
203 trans = apple_find_translation (table, usage->code); in hidinput_apple_event()
205 if (trans) { in hidinput_apple_event()
208 else if (trans->flags & APPLE_FLAG_FKEY) in hidinput_apple_event()
220 input_event(input, usage->type, trans->to, in hidinput_apple_event()
230 trans = apple_find_translation(powerbook_numlock_keys, in hidinput_apple_event()
[all …]
Dhid-icade.c170 const struct icade_key *trans; in icade_event() local
180 trans = icade_find_translation(usage->hid & HID_USAGE); in icade_event()
182 if (!trans) in icade_event()
186 trans->to, trans->press); in icade_event()
195 const struct icade_key *trans; in icade_input_mapping() local
198 trans = icade_find_translation(usage->hid & HID_USAGE); in icade_input_mapping()
200 if (!trans) in icade_input_mapping()
203 hid_map_usage(hi, usage, bit, max, EV_KEY, trans->to); in icade_input_mapping()
204 set_bit(trans->to, hi->input->keybit); in icade_input_mapping()
/linux-4.1.27/drivers/input/serio/
Dhp_sdc_mlc.c55 hp_sdc_transaction trans; member
196 if (priv->trans.act.semaphore != &mlc->csem) in hp_sdc_mlc_cts()
206 priv->trans.act.semaphore = &mlc->csem; in hp_sdc_mlc_cts()
207 priv->trans.actidx = 0; in hp_sdc_mlc_cts()
208 priv->trans.idx = 1; in hp_sdc_mlc_cts()
209 priv->trans.endidx = 5; in hp_sdc_mlc_cts()
216 __hp_sdc_enqueue_transaction(&priv->trans); in hp_sdc_mlc_cts()
220 priv->trans.act.semaphore = &mlc->osem; in hp_sdc_mlc_cts()
246 priv->trans.actidx = 0; in hp_sdc_mlc_out()
247 priv->trans.idx = 1; in hp_sdc_mlc_out()
[all …]
/linux-4.1.27/net/netfilter/
Dnf_tables_api.c112 struct nft_trans *trans; in nft_trans_alloc() local
114 trans = kzalloc(sizeof(struct nft_trans) + size, GFP_KERNEL); in nft_trans_alloc()
115 if (trans == NULL) in nft_trans_alloc()
118 trans->msg_type = msg_type; in nft_trans_alloc()
119 trans->ctx = *ctx; in nft_trans_alloc()
121 return trans; in nft_trans_alloc()
124 static void nft_trans_destroy(struct nft_trans *trans) in nft_trans_destroy() argument
126 list_del(&trans->list); in nft_trans_destroy()
127 kfree(trans); in nft_trans_destroy()
144 struct nft_trans *trans; in nft_trans_table_add() local
[all …]
/linux-4.1.27/include/net/netfilter/
Dnf_tables.h984 #define nft_trans_rule(trans) \ argument
985 (((struct nft_trans_rule *)trans->data)->rule)
992 #define nft_trans_set(trans) \ argument
993 (((struct nft_trans_set *)trans->data)->set)
994 #define nft_trans_set_id(trans) \ argument
995 (((struct nft_trans_set *)trans->data)->set_id)
1004 #define nft_trans_chain_update(trans) \ argument
1005 (((struct nft_trans_chain *)trans->data)->update)
1006 #define nft_trans_chain_name(trans) \ argument
1007 (((struct nft_trans_chain *)trans->data)->name)
[all …]
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
Dmain.c344 if (!iwl_trans_grab_nic_access(priv->trans, false, &reg_flags)) in iwl_print_cont_event_trace()
348 iwl_write32(priv->trans, HBUS_TARG_MEM_RADDR, ptr); in iwl_print_cont_event_trace()
364 ev = iwl_read32(priv->trans, HBUS_TARG_MEM_RDAT); in iwl_print_cont_event_trace()
365 time = iwl_read32(priv->trans, HBUS_TARG_MEM_RDAT); in iwl_print_cont_event_trace()
368 priv->trans->dev, 0, time, ev); in iwl_print_cont_event_trace()
370 data = iwl_read32(priv->trans, HBUS_TARG_MEM_RDAT); in iwl_print_cont_event_trace()
372 priv->trans->dev, time, data, ev); in iwl_print_cont_event_trace()
376 iwl_trans_release_nic_access(priv->trans, &reg_flags); in iwl_print_cont_event_trace()
395 iwl_trans_read_mem_bytes(priv->trans, base, in iwl_continuous_event_trace()
436 trace_iwlwifi_dev_ucode_wrap_event(priv->trans->dev, in iwl_continuous_event_trace()
[all …]
Dled.c71 iwl_write32(priv->trans, CSR_LED_REG, CSR_LED_REG_TURN_ON); in iwlagn_led_enable()
107 reg = iwl_read32(priv->trans, CSR_LED_REG); in iwl_send_led_cmd()
109 iwl_write32(priv->trans, CSR_LED_REG, in iwl_send_led_cmd()
207 ret = led_classdev_register(priv->trans->dev, &priv->led); in iwl_leds_init()
Ddevices.c66 iwl_set_bits_mask_prph(priv->trans, APMG_DIGITAL_SVR_REG, in iwl1000_nic_config()
202 iwl_set_bit(priv->trans, CSR_GP_DRIVER_REG, in iwl2000_nic_config()
508 iwl_write32(priv->trans, CSR_GP_DRIVER_REG, in iwl6000_nic_config()
514 iwl_set_bit(priv->trans, CSR_GP_DRIVER_REG, in iwl6000_nic_config()
520 iwl_set_bit(priv->trans, CSR_GP_DRIVER_REG, in iwl6000_nic_config()
522 iwl_set_bit(priv->trans, CSR_GP_DRIVER_REG, in iwl6000_nic_config()
Dmac80211.c163 priv->trans->ops->d3_suspend && in iwlagn_mac_setup_register()
164 priv->trans->ops->d3_resume && in iwlagn_mac_setup_register()
165 device_can_wakeup(priv->trans->dev)) { in iwlagn_mac_setup_register()
208 hw->wiphy->hw_version = priv->trans->hw_id; in iwlagn_mac_setup_register()
380 iwl_write32(priv->trans, CSR_UCODE_DRV_GP1_SET, in iwlagn_mac_suspend()
383 iwl_trans_d3_suspend(priv->trans, false); in iwlagn_mac_suspend()
456 ret = iwl_trans_d3_resume(priv->trans, &d3_status, false); in iwlagn_mac_resume()
466 iwl_write32(priv->trans, CSR_UCODE_DRV_GP1_CLR, in iwlagn_mac_resume()
475 iwl_trans_read_mem_bytes(priv->trans, base, in iwlagn_mac_resume()
497 iwl_trans_read_mem(priv->trans, 0x800000, in iwlagn_mac_resume()
[all …]
Ducode.c256 iwl_trans_fw_alive(priv->trans, 0); in iwl_alive_notify()
269 iwl_trans_ac_txq_enable(priv->trans, i, in iwl_alive_notify()
344 ret = iwl_trans_start_fw(priv->trans, fw, false); in iwl_load_ucode_wait_alive()
447 iwl_trans_stop_device(priv->trans); in iwl_run_init_ucode()
Dtx.c364 dev_cmd = iwl_trans_alloc_tx_cmd(priv->trans); in iwlagn_tx_skb()
455 if (iwl_trans_tx(priv->trans, skb, dev_cmd, txq_id)) in iwlagn_tx_skb()
477 iwl_trans_free_tx_cmd(priv->trans, dev_cmd); in iwlagn_tx_skb()
583 iwl_trans_txq_disable(priv->trans, txq_id, true); in iwlagn_tx_agg_stop()
689 iwl_trans_txq_disable(priv->trans, txq_id, true); in iwlagn_tx_agg_flush()
717 iwl_trans_txq_enable(priv->trans, q, fifo, sta_priv->sta_id, tid, in iwlagn_tx_agg_oper()
783 iwl_trans_txq_disable(priv->trans, in iwlagn_check_ratid_empty()
1195 iwl_trans_reclaim(priv->trans, txq_id, ssn, &skbs); in iwlagn_rx_reply_tx()
1209 iwl_trans_free_tx_cmd(priv->trans, in iwlagn_rx_reply_tx()
1344 iwl_trans_reclaim(priv->trans, scd_flow, ba_resp_scd_ssn, in iwlagn_rx_reply_compressed_ba()
[all …]
Dtt.c178 iwl_write32(priv->trans, CSR_UCODE_DRV_GP1_CLR, in iwl_tt_check_exit_ct_kill()
182 iwl_write32(priv->trans, CSR_UCODE_DRV_GP1_SET, in iwl_tt_check_exit_ct_kill()
186 iwl_read32(priv->trans, CSR_UCODE_DRV_GP1); in iwl_tt_check_exit_ct_kill()
187 if (iwl_trans_grab_nic_access(priv->trans, false, &flags)) in iwl_tt_check_exit_ct_kill()
188 iwl_trans_release_nic_access(priv->trans, &flags); in iwl_tt_check_exit_ct_kill()
Drx.c599 iwl_write32(priv->trans, CSR_UCODE_DRV_GP1_SET, in iwlagn_rx_card_state_notif()
602 iwl_write_direct32(priv->trans, HBUS_TARG_MBX_C, in iwlagn_rx_card_state_notif()
606 iwl_write32(priv->trans, CSR_UCODE_DRV_GP1_CLR, in iwlagn_rx_card_state_notif()
608 iwl_write_direct32(priv->trans, HBUS_TARG_MBX_C, in iwlagn_rx_card_state_notif()
Dlib.c183 iwl_trans_wait_tx_queue_empty(priv->trans, 0xffffffff); in iwlagn_dev_txfifo_flush()
1158 iwl_trans_stop_device(priv->trans); in iwlagn_suspend()
1288 return iwl_trans_send_cmd(priv->trans, cmd); in iwl_dvm_send_cmd()
Dpower.c389 priv->power_data.bus_pm = priv->trans->pm_support; in iwl_power_initialize()
Dagn.h450 iwl_trans_set_pmi(priv->trans, state); in iwl_dvm_set_pmi()
Ddev.h651 struct iwl_trans *trans; member
/linux-4.1.27/drivers/xen/xenbus/
Dxenbus_dev_frontend.c310 struct xenbus_transaction_holder *trans = NULL; in xenbus_write_transaction() local
314 trans = kmalloc(sizeof(*trans), GFP_KERNEL); in xenbus_write_transaction()
315 if (!trans) { in xenbus_write_transaction()
323 kfree(trans); in xenbus_write_transaction()
330 kfree(trans); in xenbus_write_transaction()
332 trans->handle.id = simple_strtoul(reply, NULL, 0); in xenbus_write_transaction()
333 list_add(&trans->list, &u->transactions); in xenbus_write_transaction()
336 list_for_each_entry(trans, &u->transactions, list) in xenbus_write_transaction()
337 if (trans->handle.id == u->u.msg.tx_id) in xenbus_write_transaction()
339 BUG_ON(&trans->list == &u->transactions); in xenbus_write_transaction()
[all …]
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Dops.c156 reg_val |= CSR_HW_REV_STEP(mvm->trans->hw_rev) << in iwl_mvm_nic_config()
158 reg_val |= CSR_HW_REV_DASH(mvm->trans->hw_rev) << in iwl_mvm_nic_config()
176 if (mvm->trans->cfg->device_family != IWL_DEVICE_FAMILY_8000) in iwl_mvm_nic_config()
179 iwl_trans_set_bits_mask(mvm->trans, CSR_HW_IF_CONFIG_REG, in iwl_mvm_nic_config()
197 if (mvm->trans->cfg->device_family != IWL_DEVICE_FAMILY_8000) in iwl_mvm_nic_config()
198 iwl_set_bits_mask_prph(mvm->trans, APMG_PS_CTRL_REG, in iwl_mvm_nic_config()
369 static u32 calc_min_backoff(struct iwl_trans *trans, const struct iwl_cfg *cfg) in calc_min_backoff() argument
377 if (trans->dflt_pwr_limit >= pwr_tx_backoff->pwr) in calc_min_backoff()
389 iwl_op_mode_mvm_start(struct iwl_trans *trans, const struct iwl_cfg *cfg, in iwl_op_mode_mvm_start() argument
428 mvm->dev = trans->dev; in iwl_op_mode_mvm_start()
[all …]
Dutils.c95 ret = iwl_trans_send_cmd(mvm->trans, cmd); in iwl_mvm_send_cmd()
151 ret = iwl_trans_send_cmd(mvm->trans, cmd); in iwl_mvm_send_cmd_status()
460 struct iwl_trans *trans = mvm->trans; in iwl_mvm_dump_umac_error_log() local
475 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_mvm_dump_umac_error_log()
478 IWL_ERR(trans, "Start IWL Error Log Dump:\n"); in iwl_mvm_dump_umac_error_log()
479 IWL_ERR(trans, "Status: 0x%08lX, count: %d\n", in iwl_mvm_dump_umac_error_log()
502 struct iwl_trans *trans = mvm->trans; in iwl_mvm_dump_nic_error_log_old() local
524 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_mvm_dump_nic_error_log_old()
527 IWL_ERR(trans, "Start IWL Error Log Dump:\n"); in iwl_mvm_dump_nic_error_log_old()
528 IWL_ERR(trans, "Status: 0x%08lX, count: %d\n", in iwl_mvm_dump_nic_error_log_old()
[all …]
Dnvm.c166 IWL_DEBUG_EEPROM(mvm->trans->dev, in iwl_nvm_read_chunk()
171 IWL_DEBUG_EEPROM(mvm->trans->dev, in iwl_nvm_read_chunk()
251 IWL_DEBUG_EEPROM(mvm->trans->dev, in iwl_nvm_read_section()
259 IWL_DEBUG_EEPROM(mvm->trans->dev, in iwl_nvm_read_section()
273 if (mvm->trans->cfg->device_family != IWL_DEVICE_FAMILY_8000) { in iwl_parse_nvm_sections()
307 mac_addr0 = iwl_trans_read_prph(mvm->trans, WFMP_MAC_ADDR_0); in iwl_parse_nvm_sections()
308 mac_addr1 = iwl_trans_read_prph(mvm->trans, WFMP_MAC_ADDR_1); in iwl_parse_nvm_sections()
322 return iwl_parse_nvm_data(mvm->trans->dev, mvm->cfg, hw, sw, calib, in iwl_parse_nvm_sections()
373 IWL_DEBUG_EEPROM(mvm->trans->dev, "Read from external NVM\n"); in iwl_mvm_read_external_nvm()
376 if (mvm->trans->cfg->device_family != IWL_DEVICE_FAMILY_8000) in iwl_mvm_read_external_nvm()
[all …]
Dled.c72 iwl_write32(mvm->trans, CSR_LED_REG, CSR_LED_REG_TURN_ON); in iwl_mvm_led_enable()
78 iwl_write32(mvm->trans, CSR_LED_REG, CSR_LED_REG_TURN_OFF); in iwl_mvm_led_disable()
119 ret = led_classdev_register(mvm->trans->dev, &mvm->led); in iwl_mvm_leds_init()
Dfw.c233 ret = iwl_trans_start_fw(mvm->trans, fw, ucode_type == IWL_UCODE_INIT); in iwl_mvm_load_ucode_wait_alive()
263 ret = iwl_trans_update_sf(mvm->trans, &st_fwrd_space); in iwl_mvm_load_ucode_wait_alive()
269 iwl_trans_fw_alive(mvm->trans, alive_data.scd_base_addr); in iwl_mvm_load_ucode_wait_alive()
360 ret = iwl_nvm_check_version(mvm->nvm_data, mvm->trans); in iwl_run_init_mvm_ucode()
556 iwl_clear_bits_prph(mvm->trans, MON_BUFF_SAMPLE_CTL, 0x100); in iwl_mvm_restart_early_start()
558 iwl_write_prph(mvm->trans, DBGC_IN_SAMPLE, 1); in iwl_mvm_restart_early_start()
610 if (!mvm->trans->ltr_enabled) in iwl_mvm_config_ltr_v1()
623 if (!mvm->trans->ltr_enabled) in iwl_mvm_config_ltr()
641 ret = iwl_trans_start_hw(mvm->trans); in iwl_mvm_up()
664 _iwl_trans_stop_device(mvm->trans, false); in iwl_mvm_up()
[all …]
Dmac80211.c222 iwl_trans_ref(mvm->trans); in iwl_mvm_ref()
234 iwl_trans_unref(mvm->trans); in iwl_mvm_unref()
253 iwl_trans_unref(mvm->trans); in iwl_mvm_unref_all_except()
329 regd = iwl_parse_nvm_mcc_info(mvm->trans->dev, mvm->cfg, in iwl_mvm_get_regdomain()
528 hw->wiphy->hw_version = mvm->trans->hw_id; in iwl_mvm_mac_setup_register()
577 device_can_wakeup(mvm->trans->dev)) { in iwl_mvm_mac_setup_register()
583 mvm->trans->ops->d3_suspend && in iwl_mvm_mac_setup_register()
584 mvm->trans->ops->d3_resume && in iwl_mvm_mac_setup_register()
585 device_can_wakeup(mvm->trans->dev)) { in iwl_mvm_mac_setup_register()
890 if (!iwl_trans_grab_nic_access(mvm->trans, false, &flags)) in iwl_mvm_dump_fifos()
[all …]
Dtx.c291 dev_cmd = iwl_trans_alloc_tx_cmd(mvm->trans); in iwl_mvm_set_tx_params()
368 if (iwl_trans_tx(mvm->trans, skb, dev_cmd, info->hw_queue)) { in iwl_mvm_tx_skb_non_sta()
369 iwl_trans_free_tx_cmd(mvm->trans, dev_cmd); in iwl_mvm_tx_skb_non_sta()
463 if (iwl_trans_tx(mvm->trans, skb, dev_cmd, txq_id)) in iwl_mvm_tx_skb()
477 iwl_trans_free_tx_cmd(mvm->trans, dev_cmd); in iwl_mvm_tx_skb()
646 iwl_trans_reclaim(mvm->trans, txq_id, ssn, &skbs); in iwl_mvm_rx_tx_cmd_single()
654 iwl_trans_free_tx_cmd(mvm->trans, info->driver_data[1]); in iwl_mvm_rx_tx_cmd_single()
982 iwl_trans_reclaim(mvm->trans, scd_flow, ba_resp_scd_ssn, in iwl_mvm_rx_ba_notif()
1011 iwl_trans_free_tx_cmd(mvm->trans, info->driver_data[1]); in iwl_mvm_rx_ba_notif()
Dd3.c766 iwl_trans_stop_device(mvm->trans); in iwl_mvm_switch_to_d3()
1131 iwl_trans_d3_suspend(mvm->trans, test); in __iwl_mvm_suspend()
1171 iwl_trans_suspend(mvm->trans); in iwl_mvm_suspend()
1174 if (mvm->trans->d0i3_mode == IWL_D0I3_MODE_ON_SUSPEND) { in iwl_mvm_suspend()
1574 iwl_trans_read_mem_bytes(mvm->trans, base, in iwl_mvm_get_wakeup_status()
1846 iwl_trans_read_mem_bytes(mvm->trans, offs, mvm->d3_resume_sram, len); in iwl_mvm_read_d3_sram()
1875 ret = iwl_trans_d3_resume(mvm->trans, &d3_status, test); in __iwl_mvm_resume()
1936 iwl_trans_resume(mvm->trans); in iwl_mvm_resume()
1940 if (mvm->trans->d0i3_mode == IWL_D0I3_MODE_ON_SUSPEND) { in iwl_mvm_resume()
1960 device_set_wakeup_enable(mvm->trans->dev, enabled); in iwl_mvm_set_wakeup()
[all …]
Dmvm.h583 struct iwl_trans *trans; member
918 return mvm->trans->cfg->d0i3 && in iwl_mvm_is_d0i3_supported()
919 mvm->trans->d0i3_mode != IWL_D0I3_MODE_OFF && in iwl_mvm_is_d0i3_supported()
Ddebugfs.c150 iwl_trans_read_mem_bytes(mvm->trans, ofs, ptr, len); in iwl_dbgfs_sram_read()
874 iwl_force_nmi(mvm->trans); in iwl_dbgfs_fw_nmi_write()
1442 iwl_read_prph(mvm->trans, mvm->dbgfs_prph_reg_addr)); in iwl_dbgfs_prph_reg_read()
1470 iwl_write_prph(mvm->trans, mvm->dbgfs_prph_reg_addr, value); in iwl_dbgfs_prph_reg_write()
Dtdls.c258 iwl_read_prph(mvm->trans, DEVICE_SYSTEM_TIME_REG); in iwl_mvm_tdls_update_cs_state()
/linux-4.1.27/net/sctp/
Dassociola.c1093 struct sctp_transport *trans; in sctp_assoc_update() local
1107 trans = list_entry(pos, struct sctp_transport, transports); in sctp_assoc_update()
1108 if (!sctp_assoc_lookup_paddr(new, &trans->ipaddr)) { in sctp_assoc_update()
1109 sctp_assoc_rm_peer(asoc, trans); in sctp_assoc_update()
1114 sctp_transport_reset(trans); in sctp_assoc_update()
1146 list_for_each_entry(trans, &new->peer.transport_addr_list, in sctp_assoc_update()
1148 if (!sctp_assoc_lookup_paddr(asoc, &trans->ipaddr)) in sctp_assoc_update()
1149 sctp_assoc_add_peer(asoc, &trans->ipaddr, in sctp_assoc_update()
1150 GFP_ATOMIC, trans->state); in sctp_assoc_update()
1222 static u8 sctp_trans_score(const struct sctp_transport *trans) in sctp_trans_score() argument
[all …]
Dsocket.c584 struct sctp_transport *trans; in sctp_send_asconf_add_ip() local
586 list_for_each_entry(trans, in sctp_send_asconf_add_ip()
589 dst_release(trans->dst); in sctp_send_asconf_add_ip()
590 trans->cwnd = min(4*asoc->pathmtu, max_t(__u32, in sctp_send_asconf_add_ip()
592 trans->ssthresh = asoc->peer.i.a_rwnd; in sctp_send_asconf_add_ip()
593 trans->rto = asoc->rto_initial; in sctp_send_asconf_add_ip()
594 sctp_max_rto(asoc, trans); in sctp_send_asconf_add_ip()
595 trans->rtt = trans->srtt = trans->rttvar = 0; in sctp_send_asconf_add_ip()
596 sctp_transport_route(trans, NULL, in sctp_send_asconf_add_ip()
2364 struct sctp_transport *trans, in sctp_apply_peer_addr_params() argument
[all …]
Dtsnmap.c111 struct sctp_transport *trans) in sctp_tsnmap_mark() argument
130 if (trans) in sctp_tsnmap_mark()
131 trans->sack_generation = in sctp_tsnmap_mark()
132 trans->asoc->peer.sack_generation; in sctp_tsnmap_mark()
Dtransport.c597 unsigned long sctp_transport_timeout(struct sctp_transport *trans) in sctp_transport_timeout() argument
600 unsigned long timeout = (trans->rto >> 1) + prandom_u32_max(trans->rto); in sctp_transport_timeout()
602 if (trans->state != SCTP_UNCONFIRMED && in sctp_transport_timeout()
603 trans->state != SCTP_PF) in sctp_transport_timeout()
604 timeout += trans->hbinterval; in sctp_transport_timeout()
Dsm_sideeffect.c158 struct sctp_transport *trans = asoc->peer.last_data_from; in sctp_gen_sack() local
162 (!trans && (asoc->param_flags & SPP_SACKDELAY_DISABLE)) || in sctp_gen_sack()
163 (trans && (trans->param_flags & SPP_SACKDELAY_DISABLE))) in sctp_gen_sack()
198 if (trans) { in sctp_gen_sack()
200 if (asoc->peer.sack_cnt >= trans->sackfreq - 1) in sctp_gen_sack()
204 trans->sackdelay; in sctp_gen_sack()
/linux-4.1.27/drivers/mtd/
Dsm_ftl.c240 struct mtd_info *mtd = ftl->trans->mtd; in sm_read_sector()
323 struct mtd_info *mtd = ftl->trans->mtd; in sm_write_sector()
459 struct mtd_info *mtd = ftl->trans->mtd; in sm_erase_block()
1131 struct mtd_blktrans_dev *trans; in sm_add_mtd() local
1173 trans = kzalloc(sizeof(struct mtd_blktrans_dev), GFP_KERNEL); in sm_add_mtd()
1174 if (!trans) in sm_add_mtd()
1177 ftl->trans = trans; in sm_add_mtd()
1178 trans->priv = ftl; in sm_add_mtd()
1180 trans->tr = tr; in sm_add_mtd()
1181 trans->mtd = mtd; in sm_add_mtd()
[all …]
Dsm_ftl.h29 struct mtd_blktrans_dev *trans; member
/linux-4.1.27/net/llc/
Dllc_sap.c145 struct llc_sap_state_trans *trans, in llc_exec_sap_trans_actions() argument
149 const llc_sap_action_t *next_action = trans->ev_actions; in llc_exec_sap_trans_actions()
169 struct llc_sap_state_trans *trans; in llc_sap_next_state() local
173 trans = llc_find_sap_trans(sap, skb); in llc_sap_next_state()
174 if (!trans) in llc_sap_next_state()
181 rc = llc_exec_sap_trans_actions(sap, trans, skb); in llc_sap_next_state()
187 sap->state = trans->next_state; in llc_sap_next_state()
Dllc_conn.c36 struct llc_conn_state_trans *trans,
379 struct llc_conn_state_trans *trans; in llc_conn_service() local
384 trans = llc_qualify_conn_ev(sk, skb); in llc_conn_service()
385 if (trans) { in llc_conn_service()
386 rc = llc_exec_conn_trans_actions(sk, trans, skb); in llc_conn_service()
387 if (!rc && trans->next_state != NO_STATE_CHANGE) { in llc_conn_service()
388 llc->state = trans->next_state; in llc_conn_service()
453 struct llc_conn_state_trans *trans, in llc_exec_conn_trans_actions() argument
459 for (next_action = trans->ev_actions; in llc_exec_conn_trans_actions()
/linux-4.1.27/drivers/spi/
Dspi-fsl-espi.c277 struct spi_transfer *t, *first, trans; in fsl_espi_do_trans() local
281 memset(&trans, 0, sizeof(trans)); in fsl_espi_do_trans()
294 trans.speed_hz = t->speed_hz; in fsl_espi_do_trans()
295 trans.bits_per_word = t->bits_per_word; in fsl_espi_do_trans()
296 trans.delay_usecs = max(first->delay_usecs, t->delay_usecs); in fsl_espi_do_trans()
299 trans.len = espi_trans->len; in fsl_espi_do_trans()
300 trans.tx_buf = espi_trans->tx_buf; in fsl_espi_do_trans()
301 trans.rx_buf = espi_trans->rx_buf; in fsl_espi_do_trans()
302 spi_message_add_tail(&trans, &message); in fsl_espi_do_trans()
330 struct fsl_espi_transfer *trans, u8 *rx_buff) in fsl_espi_cmd_trans() argument
[all …]
Dspi-bfin-sport.c273 struct spi_transfer *trans = drv_data->cur_transfer; in bfin_sport_spi_next_transfer() local
276 if (trans->transfer_list.next != &msg->transfers) { in bfin_sport_spi_next_transfer()
278 list_entry(trans->transfer_list.next, in bfin_sport_spi_next_transfer()
Dspi-pxa2xx.c410 struct spi_transfer *trans = drv_data->cur_transfer; in pxa2xx_spi_next_transfer() local
413 if (trans->transfer_list.next != &msg->transfers) { in pxa2xx_spi_next_transfer()
415 list_entry(trans->transfer_list.next, in pxa2xx_spi_next_transfer()
Dspi-bfin5xx.c335 struct spi_transfer *trans = drv_data->cur_transfer; in bfin_spi_next_transfer() local
338 if (trans->transfer_list.next != &msg->transfers) { in bfin_spi_next_transfer()
340 list_entry(trans->transfer_list.next, in bfin_spi_next_transfer()
Dspi-pl022.c793 struct spi_transfer *trans = pl022->cur_transfer; in next_transfer() local
796 if (trans->transfer_list.next != &msg->transfers) { in next_transfer()
798 list_entry(trans->transfer_list.next, in next_transfer()
/linux-4.1.27/drivers/scsi/
Dch.c420 ch_position(scsi_changer *ch, u_int trans, u_int elem, int rotate) in ch_position() argument
425 if (0 == trans) in ch_position()
426 trans = ch->firsts[CHET_MT]; in ch_position()
430 cmd[2] = (trans >> 8) & 0xff; in ch_position()
431 cmd[3] = trans & 0xff; in ch_position()
439 ch_move(scsi_changer *ch, u_int trans, u_int src, u_int dest, int rotate) in ch_move() argument
444 if (0 == trans) in ch_move()
445 trans = ch->firsts[CHET_MT]; in ch_move()
449 cmd[2] = (trans >> 8) & 0xff; in ch_move()
450 cmd[3] = trans & 0xff; in ch_move()
[all …]
Deata_generic.h367 __u8 trans; /* translation flag 1=transl */ member
/linux-4.1.27/lib/
Dgen_crc32table.c91 static void output_table(uint32_t (*table)[256], int rows, int len, char *trans) in output_table() argument
100 printf("%s(0x%8.8xL), ", trans, table[j][i]); in output_table()
102 printf("%s(0x%8.8xL)},\n", trans, table[j][len - 1]); in output_table()
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_sd7220.c659 u16 trans; in qib_sd7220_reg_mod() local
667 trans = kr_ibsd_epb_transaction_reg; in qib_sd7220_reg_mod()
672 trans = kr_pciesd_epb_transaction_reg; in qib_sd7220_reg_mod()
692 transval = qib_read_kreg32(dd, trans); in qib_sd7220_reg_mod()
706 tries = epb_trans(dd, trans, transval, &transval); in qib_sd7220_reg_mod()
714 tries = epb_trans(dd, trans, transval, &transval); in qib_sd7220_reg_mod()
749 u16 trans; in qib_sd7220_ram_xfer() local
764 trans = kr_ibsd_epb_transaction_reg; in qib_sd7220_ram_xfer()
771 trans = kr_pciesd_epb_transaction_reg; in qib_sd7220_ram_xfer()
796 transval = qib_read_kreg32(dd, trans); in qib_sd7220_ram_xfer()
[all …]
Dqib_iba7322.c7806 u64 trans, acc, prev_acc; in ahb_mod() local
7816 trans = qib_read_kreg64(dd, KR_AHB_TRANS); in ahb_mod()
7817 if (trans & AHB_TRANS_RDY) in ahb_mod()
7831 trans = ((chan << 6) | addr) << (AHB_ADDR_LSB + 1); in ahb_mod()
7832 qib_write_kreg(dd, KR_AHB_TRANS, trans); in ahb_mod()
7835 trans = qib_read_kreg64(dd, KR_AHB_TRANS); in ahb_mod()
7836 if (trans & AHB_TRANS_RDY) in ahb_mod()
7845 trans = qib_read_kreg64(dd, KR_AHB_TRANS); in ahb_mod()
7846 rd_data = (uint32_t)(trans >> AHB_DATA_LSB); in ahb_mod()
7852 trans = ((chan << 6) | addr) << (AHB_ADDR_LSB + 1); in ahb_mod()
[all …]
/linux-4.1.27/net/9p/
Dtrans_rdma.c240 struct p9_trans_rdma *rdma = c->trans; in p9_cm_event_handler()
347 struct p9_trans_rdma *rdma = client->trans; in cq_comp_handler()
406 struct p9_trans_rdma *rdma = client->trans; in post_recv()
434 struct p9_trans_rdma *rdma = client->trans; in rdma_request()
568 rdma = client->trans; in rdma_close()
614 struct p9_trans_rdma *rdma = client->trans; in rdma_cancelled()
669 client->trans = rdma; in rdma_create_trans()
Dtrans_fd.c238 ts = client->trans; in p9_fd_poll()
277 ts = client->trans; in p9_fd_read()
420 ts = client->trans; in p9_fd_write()
581 struct p9_trans_fd *ts = client->trans; in p9_conn_create()
663 struct p9_trans_fd *ts = client->trans; in p9_fd_request()
804 client->trans = ts; in p9_fd_open()
831 client->trans = p; in p9_socket_open()
873 ts = client->trans; in p9_fd_close()
Dtrans_virtio.c122 struct virtio_chan *chan = client->trans; in p9_virtio_close()
266 struct virtio_chan *chan = client->trans; in p9_virtio_request()
404 struct virtio_chan *chan = client->trans; in p9_virtio_zc_request()
669 client->trans = (void *)chan; in p9_virtio_create()
/linux-4.1.27/drivers/firmware/
Dpcdp.c66 if (if_pci.trans & PCDP_PCI_TRANS_IOPORT) in setup_vga_console()
69 if (if_pci.trans & PCDP_PCI_TRANS_MMIO) in setup_vga_console()
Dpcdp.h79 u8 trans; member
/linux-4.1.27/include/net/sctp/
Dsctp.h229 struct sctp_transport *trans) in sctp_max_rto() argument
231 if (asoc->stats.max_obs_rto < (__u64)trans->rto) { in sctp_max_rto()
232 asoc->stats.max_obs_rto = trans->rto; in sctp_max_rto()
235 memcpy(&asoc->stats.obs_rto_ipaddr, &trans->ipaddr, in sctp_max_rto()
236 trans->af_specific->sockaddr_len); in sctp_max_rto()
Dtsnmap.h114 struct sctp_transport *trans);
/linux-4.1.27/drivers/gpu/drm/i915/
Di915_reg.h2647 #define HTOTAL(trans) _TRANSCODER2(trans, _HTOTAL_A) argument
2648 #define HBLANK(trans) _TRANSCODER2(trans, _HBLANK_A) argument
2649 #define HSYNC(trans) _TRANSCODER2(trans, _HSYNC_A) argument
2650 #define VTOTAL(trans) _TRANSCODER2(trans, _VTOTAL_A) argument
2651 #define VBLANK(trans) _TRANSCODER2(trans, _VBLANK_A) argument
2652 #define VSYNC(trans) _TRANSCODER2(trans, _VSYNC_A) argument
2653 #define BCLRPAT(trans) _TRANSCODER2(trans, _BCLRPAT_A) argument
2654 #define VSYNCSHIFT(trans) _TRANSCODER2(trans, _VSYNCSHIFT_A) argument
2655 #define PIPESRC(trans) _TRANSCODER2(trans, _PIPEASRC) argument
2656 #define PIPE_MULT(trans) _TRANSCODER2(trans, _PIPE_MULT_A) argument
[all …]
/linux-4.1.27/security/apparmor/
Dpolicy_unpack.c384 profile->file.trans.table = kzalloc(sizeof(char *) * size, in unpack_trans_table()
386 if (!profile->file.trans.table) in unpack_trans_table()
389 profile->file.trans.size = size; in unpack_trans_table()
398 profile->file.trans.table[i] = str; in unpack_trans_table()
430 aa_free_domain_entries(&profile->file.trans); in unpack_trans_table()
708 profile->file.trans.size)) { in verify_profile()
Ddomain.c248 for (name = profile->file.trans.table[index]; !new_profile && name; in x_table_lookup()
/linux-4.1.27/sound/oss/dmasound/
Ddmasound_core.c274 static ssize_t sound_copy_translate(TRANS *trans, const u_char __user *userPtr, in sound_copy_translate() argument
282 ct_func = trans->ct_ulaw; in sound_copy_translate()
285 ct_func = trans->ct_alaw; in sound_copy_translate()
288 ct_func = trans->ct_s8; in sound_copy_translate()
291 ct_func = trans->ct_u8; in sound_copy_translate()
294 ct_func = trans->ct_s16be; in sound_copy_translate()
297 ct_func = trans->ct_u16be; in sound_copy_translate()
300 ct_func = trans->ct_s16le; in sound_copy_translate()
303 ct_func = trans->ct_u16le; in sound_copy_translate()
/linux-4.1.27/drivers/media/common/saa7146/
Dsaa7146_video.c24 .trans = RGB08_COMPOSED,
30 .trans = RGB16_COMPOSED,
36 .trans = RGB24_COMPOSED,
42 .trans = RGB32_COMPOSED,
48 .trans = RGB32_COMPOSED,
55 .trans = Y8,
61 .trans = YUV422_DECOMPOSED,
67 .trans = YUV420_DECOMPOSED,
73 .trans = YUV420_DECOMPOSED,
79 .trans = YUV422_COMPOSED,
[all …]
Dsaa7146_hlp.c657 saa7146_set_output_format(dev, vv->ov_fmt->trans); in saa7146_enable_overlay()
1015 saa7146_set_output_format(dev, sfmt->trans); in saa7146_set_capture()
1025 if( 0 != IS_PLANAR(sfmt->trans)) { in saa7146_set_capture()
/linux-4.1.27/Documentation/filesystems/
D9p.txt40 mount -t 9p `namespace`/acme /mnt/9 -o trans=unix,uname=$USER
44 mount -t 9p -o trans=virtio <mount_tag> /mnt/9
54 trans=name select an alternative transport. Valid options are
95 rfdno=n the file descriptor for reading with trans=fd
97 wfdno=n the file descriptor for writing with trans=fd
/linux-4.1.27/security/apparmor/include/
Dfile.h166 struct aa_domain trans; member
186 aa_free_domain_entries(&rules->trans); in aa_free_file_rules()
/linux-4.1.27/fs/hfs/
DMakefile9 part_tbl.o string.o super.o sysdep.o trans.o
/linux-4.1.27/drivers/usb/renesas_usbhs/
Dfifo.c821 pkt->trans, dir, in xfer_work()
840 usbhs_pipe_set_trans_count_if_bulk(pipe, pkt->trans); in xfer_work()
891 pkt->trans = len; in usbhsf_dma_prepare_push()
913 int is_short = pkt->trans % usbhs_pipe_get_maxpacket(pipe); in usbhsf_dma_push_done()
915 pkt->actual += pkt->trans; in usbhsf_dma_push_done()
995 pkt->trans = pkt->length; in usbhsf_dma_prepare_pop_with_usb_dmac()
1075 pkt->trans = len; in usbhsf_dma_try_pop_with_rx_irq()
1112 pkt->actual += pkt->trans; in usbhsf_dma_pop_done_with_rx_irq()
1115 (pkt->trans < maxp)) { /* short packet */ in usbhsf_dma_pop_done_with_rx_irq()
Dfifo.h64 int trans; member
/linux-4.1.27/fs/gfs2/
DMakefile7 recovery.o rgrp.o super.o sys.o trans.o util.o
Dlog.h76 extern void gfs2_log_commit(struct gfs2_sbd *sdp, struct gfs2_trans *trans);
/linux-4.1.27/drivers/pci/
Dxen-pcifront.c781 struct xenbus_transaction trans; in pcifront_publish_info() local
803 err = xenbus_transaction_start(&trans); in pcifront_publish_info()
811 err = xenbus_printf(trans, pdev->xdev->nodename, in pcifront_publish_info()
814 err = xenbus_printf(trans, pdev->xdev->nodename, in pcifront_publish_info()
817 err = xenbus_printf(trans, pdev->xdev->nodename, in pcifront_publish_info()
821 xenbus_transaction_end(trans, 1); in pcifront_publish_info()
826 err = xenbus_transaction_end(trans, 0); in pcifront_publish_info()
/linux-4.1.27/net/vmw_vsock/
Dvmci_transport.h38 #define vmci_trans(_vsk) ((struct vmci_transport *)((_vsk)->trans))
Dvmci_transport.c1602 vsk->trans = kmalloc(sizeof(struct vmci_transport), GFP_KERNEL); in vmci_transport_socket_init()
1603 if (!vsk->trans) in vmci_transport_socket_init()
1654 kfree(vsk->trans); in vmci_transport_destruct()
1655 vsk->trans = NULL; in vmci_transport_destruct()
/linux-4.1.27/drivers/video/fbdev/
Dacornfb.h33 u_int trans:1; member
Dimxfb.c255 u_int trans, struct fb_info *info) in imxfb_setpalettereg() argument
273 u_int trans, struct fb_info *info) in imxfb_setcolreg() argument
319 ret = imxfb_setpalettereg(regno, red, green, blue, trans, info); in imxfb_setcolreg()
Dsa1100fb.c270 u_int trans, struct fb_info *info) in sa1100fb_setpalettereg() argument
292 u_int trans, struct fb_info *info) in sa1100fb_setcolreg() argument
339 ret = sa1100fb_setpalettereg(regno, red, green, blue, trans, info); in sa1100fb_setcolreg()
/linux-4.1.27/drivers/usb/host/
Dehci-sched.c1228 u32 trans; in itd_sched_init() local
1233 trans = EHCI_ISOC_ACTIVE; in itd_sched_init()
1234 trans |= buf & 0x0fff; in itd_sched_init()
1237 trans |= EHCI_ITD_IOC; in itd_sched_init()
1238 trans |= length << 16; in itd_sched_init()
1239 uframe->transaction = cpu_to_hc32(ehci, trans); in itd_sched_init()
2028 u32 trans; in sitd_sched_init() local
2033 trans = SITD_STS_ACTIVE; in sitd_sched_init()
2036 trans |= SITD_IOC; in sitd_sched_init()
2037 trans |= length << 16; in sitd_sched_init()
[all …]
/linux-4.1.27/arch/unicore32/mm/
Dalignment.c255 goto trans; in do_alignment_ldrstr()
263 trans: in do_alignment_ldrstr()
/linux-4.1.27/include/net/
Daf_vsock.h68 void *trans; member
/linux-4.1.27/include/net/9p/
Dclient.h158 void *trans; member
/linux-4.1.27/include/media/
Dsaa7146_vv.h36 u32 trans; member
/linux-4.1.27/arch/arm/mm/
Dalignment.c448 goto trans; in do_alignment_ldrstr()
458 trans: in do_alignment_ldrstr()
/linux-4.1.27/drivers/mmc/host/
Dau1xmmc.c534 int i, trans; in au1xmmc_cmd_complete() local
574 trans = host->flags & (HOST_F_XMIT | HOST_F_RECV); in au1xmmc_cmd_complete()
576 if (!trans || cmd->error) { in au1xmmc_cmd_complete()
/linux-4.1.27/drivers/net/wireless/b43legacy/
Ddma.c545 u32 trans = ring->dev->dma.translation; in dmacontroller_setup() local
557 | trans); in dmacontroller_setup()
573 | trans); in dmacontroller_setup()
/linux-4.1.27/fs/ocfs2/cluster/
Dtcp.c282 int trans; in o2net_sys_err_to_errno() local
284 trans = o2net_sys_err_translations[err]; in o2net_sys_err_to_errno()
287 BUG_ON(err != O2NET_ERR_NONE && trans == 0); in o2net_sys_err_to_errno()
288 return trans; in o2net_sys_err_to_errno()
/linux-4.1.27/drivers/usb/gadget/udc/
Domap_udc.c2231 u32 trans = 0; in proc_otg_show() local
2236 trans = omap_readw(USB_TRANSCEIVER_CTRL); in proc_otg_show()
2238 tmp >> 4, tmp & 0xf, ctrl_name, trans); in proc_otg_show()
2242 trx_mode(USB2_TRX_MODE(tmp), trans & CONF_USB2_UNI_R), in proc_otg_show()
2243 trx_mode(USB1_TRX_MODE(tmp), trans & CONF_USB1_UNI_R), in proc_otg_show()
/linux-4.1.27/arch/powerpc/platforms/powermac/
Dfeature.c170 int htw, trans; in ohare_htw_scc_enable() local
186 trans = (pmac_mb.model_id != PMAC_TYPE_YOSEMITE && in ohare_htw_scc_enable()
204 if (trans) in ohare_htw_scc_enable()
241 if (htw && trans) in ohare_htw_scc_enable()
/linux-4.1.27/drivers/video/fbdev/omap/
Domapfb_main.c310 u16 trans = 0xffff; in omapfb_setcmap() local
320 trans = *transp++; in omapfb_setcmap()
321 r = _setcolreg(info, index++, *red++, *green++, *blue++, trans, in omapfb_setcmap()
/linux-4.1.27/Documentation/filesystems/pohmelfs/
Dnetwork_protocol.txt12 __u32 trans; /* Transaction id */

12