Home
last modified time | relevance | path

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

12

/linux-4.4.14/drivers/net/wireless/iwlwifi/
Diwl-trans.h562 int (*start_fw)(struct iwl_trans *trans, const struct fw_img *fw,
564 int (*update_sf)(struct iwl_trans *trans,
566 void (*fw_alive)(struct iwl_trans *trans, u32 scd_addr);
567 void (*stop_device)(struct iwl_trans *trans, bool low_power);
569 void (*d3_suspend)(struct iwl_trans *trans, bool test);
570 int (*d3_resume)(struct iwl_trans *trans, enum iwl_d3_status *status,
573 int (*send_cmd)(struct iwl_trans *trans, struct iwl_host_cmd *cmd);
575 int (*tx)(struct iwl_trans *trans, struct sk_buff *skb,
577 void (*reclaim)(struct iwl_trans *trans, int queue, int ssn,
580 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.c39 void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val) in iwl_write8() argument
41 trace_iwlwifi_dev_iowrite8(trans->dev, ofs, val); in iwl_write8()
42 iwl_trans_write8(trans, ofs, val); in iwl_write8()
46 void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val) in iwl_write32() argument
48 trace_iwlwifi_dev_iowrite32(trans->dev, ofs, val); in iwl_write32()
49 iwl_trans_write32(trans, ofs, val); in iwl_write32()
53 u32 iwl_read32(struct iwl_trans *trans, u32 ofs) in iwl_read32() argument
55 u32 val = iwl_trans_read32(trans, ofs); in iwl_read32()
57 trace_iwlwifi_dev_ioread32(trans->dev, ofs, val); in iwl_read32()
64 int iwl_poll_bit(struct iwl_trans *trans, u32 addr, in iwl_poll_bit() argument
[all …]
Diwl-trans.c72 struct iwl_trans *trans; in iwl_trans_alloc() local
77 trans = kzalloc(sizeof(*trans) + priv_size, GFP_KERNEL); in iwl_trans_alloc()
78 if (!trans) in iwl_trans_alloc()
82 lockdep_init_map(&trans->sync_cmd_lockdep_map, "sync_cmd_lockdep_map", in iwl_trans_alloc()
86 trans->dev = dev; in iwl_trans_alloc()
87 trans->cfg = cfg; in iwl_trans_alloc()
88 trans->ops = ops; in iwl_trans_alloc()
89 trans->dev_cmd_headroom = dev_cmd_headroom; in iwl_trans_alloc()
90 trans->num_rx_queues = 1; in iwl_trans_alloc()
92 snprintf(trans->dev_cmd_pool_name, sizeof(trans->dev_cmd_pool_name), in iwl_trans_alloc()
[all …]
Diwl-io.h35 void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val);
36 void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val);
37 u32 iwl_read32(struct iwl_trans *trans, u32 ofs);
39 static inline void iwl_set_bit(struct iwl_trans *trans, u32 reg, u32 mask) in iwl_set_bit() argument
41 iwl_trans_set_bits_mask(trans, reg, mask, mask); in iwl_set_bit()
44 static inline void iwl_clear_bit(struct iwl_trans *trans, u32 reg, u32 mask) in iwl_clear_bit() argument
46 iwl_trans_set_bits_mask(trans, reg, mask, 0); in iwl_clear_bit()
49 int iwl_poll_bit(struct iwl_trans *trans, u32 addr,
51 int iwl_poll_direct_bit(struct iwl_trans *trans, u32 addr, u32 mask,
54 u32 iwl_read_direct32(struct iwl_trans *trans, u32 reg);
[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.h56 const struct iwl_trans *trans,
58 TP_ARGS(dev, trans, rxbuf, len),
63 len - iwl_rx_trace_len(trans, rxbuf, len))
66 size_t offs = iwl_rx_trace_len(trans, rxbuf, len);
DMakefile9 iwlwifi-objs += pcie/drv.o pcie/rx.o pcie/tx.o pcie/trans.o
12 iwlwifi-objs += iwl-trans.o
Diwl-devtrace-iwlwifi.h71 TP_PROTO(const struct device *dev, const struct iwl_trans *trans,
73 TP_ARGS(dev, trans, pkt, len),
77 __dynamic_array(u8, rxbuf, iwl_rx_trace_len(trans, pkt, len))
83 iwl_rx_trace_len(trans, pkt, 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()
1144 op_mode = ops->start(drv->trans, drv->cfg, &drv->fw, dbgfs_dir); in _iwl_op_mode_start()
1448 device_release_driver(drv->trans->dev); in iwl_req_fw_callback()
1451 struct iwl_drv *iwl_drv_start(struct iwl_trans *trans, in iwl_drv_start() argument
1463 drv->trans = trans; in iwl_drv_start()
1464 drv->dev = trans->dev; in iwl_drv_start()
1472 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,
Diwl-eeprom-parse.h132 struct iwl_trans *trans);
Diwl-op-mode.h149 struct iwl_op_mode *(*start)(struct iwl_trans *trans,
/linux-4.4.14/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-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-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-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()
908 msg.msg_name = &call->conn->trans->peer->srx.transport.sin; in rxrpc_process_call()
909 msg.msg_namelen = sizeof(call->conn->trans->peer->srx.transport.sin); in rxrpc_process_call()
942 error = call->conn->trans->peer->net_error; in rxrpc_process_call()
1218 mtu = call->conn->trans->peer->if_mtu; in rxrpc_process_call()
1219 mtu -= call->conn->trans->peer->hdrsize; in rxrpc_process_call()
1271 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.4.14/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, u8 max_power) 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()
127 dma_sync_single_for_device(trans->dev, trans_pcie->fw_mon_phys, in iwl_pcie_alloc_fw_monitor()
144 phys = dma_map_page(trans->dev, page, 0, PAGE_SIZE << order, in iwl_pcie_alloc_fw_monitor()
146 if (dma_mapping_error(trans->dev, phys)) { in iwl_pcie_alloc_fw_monitor()
151 IWL_INFO(trans, in iwl_pcie_alloc_fw_monitor()
161 IWL_ERR(trans, in iwl_pcie_alloc_fw_monitor()
[all …]
Drx.c166 int iwl_pcie_rx_stop(struct iwl_trans *trans) in iwl_pcie_rx_stop() argument
168 iwl_write_direct32(trans, FH_MEM_RCSR_CHNL0_CONFIG_REG, 0); in iwl_pcie_rx_stop()
169 return iwl_poll_direct_bit(trans, FH_MEM_RSSR_RX_STATUS_REG, in iwl_pcie_rx_stop()
176 static void iwl_pcie_rxq_inc_wr_ptr(struct iwl_trans *trans) in iwl_pcie_rxq_inc_wr_ptr() argument
178 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_rxq_inc_wr_ptr()
189 if (!trans->cfg->base_params->shadow_reg_enable && in iwl_pcie_rxq_inc_wr_ptr()
190 test_bit(STATUS_TPOWER_PMI, &trans->status)) { in iwl_pcie_rxq_inc_wr_ptr()
191 reg = iwl_read32(trans, CSR_UCODE_DRV_GP1); in iwl_pcie_rxq_inc_wr_ptr()
194 IWL_DEBUG_INFO(trans, "Rx queue requesting wakeup, GP1 = 0x%x\n", in iwl_pcie_rxq_inc_wr_ptr()
196 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.h320 struct iwl_trans *trans; member
398 void iwl_trans_pcie_free(struct iwl_trans *trans);
403 int iwl_pcie_rx_init(struct iwl_trans *trans);
405 int iwl_pcie_rx_stop(struct iwl_trans *trans);
406 void iwl_pcie_rx_free(struct iwl_trans *trans);
412 int iwl_pcie_alloc_ict(struct iwl_trans *trans);
413 void iwl_pcie_free_ict(struct iwl_trans *trans);
414 void iwl_pcie_reset_ict(struct iwl_trans *trans);
415 void iwl_pcie_disable_ict(struct iwl_trans *trans);
420 int iwl_pcie_tx_init(struct iwl_trans *trans);
[all …]
Ddrv.c484 static u64 splx_get_pwr_limit(struct iwl_trans *trans, union acpi_object *splx) in splx_get_pwr_limit() argument
492 IWL_ERR(trans, "Unsupported splx structure\n"); in splx_get_pwr_limit()
501 IWL_ERR(trans, "Invalid limits element\n"); in splx_get_pwr_limit()
508 IWL_DEBUG_INFO(trans, "WiFi power is not limited\n"); in splx_get_pwr_limit()
515 static void set_dflt_pwr_limit(struct iwl_trans *trans, struct pci_dev *pdev) in set_dflt_pwr_limit() argument
524 IWL_DEBUG_INFO(trans, in set_dflt_pwr_limit()
532 IWL_DEBUG_INFO(trans, "SPL method not found\n"); in set_dflt_pwr_limit()
539 IWL_ERR(trans, "SPLC invocation failed (0x%x)\n", status); in set_dflt_pwr_limit()
543 trans->dflt_pwr_limit = splx_get_pwr_limit(trans, splx.pointer); in set_dflt_pwr_limit()
544 IWL_DEBUG_INFO(trans, "Default power limit set to %lld\n", in set_dflt_pwr_limit()
[all …]
/linux-4.4.14/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.c76 struct rds_transport *trans) in rds_conn_lookup() argument
82 conn->c_trans == trans && net == rds_conn_net(conn)) { in rds_conn_lookup()
123 struct rds_transport *trans, gfp_t gfp, in __rds_conn_create() argument
133 conn = rds_conn_lookup(net, head, laddr, faddr, trans); in __rds_conn_create()
180 if (is_outgoing && trans->t_prefer_loopback) { in __rds_conn_create()
185 trans = &rds_loop_transport; in __rds_conn_create()
189 conn->c_trans = trans; in __rds_conn_create()
191 ret = trans->conn_alloc(conn, gfp); in __rds_conn_create()
211 trans->t_name ? trans->t_name : "[unknown]", in __rds_conn_create()
225 trans->conn_free(conn->c_transport_data); in __rds_conn_create()
[all …]
Drdma_transport.c46 struct rds_transport *trans; in rds_rdma_cm_event_handler() local
53 trans = &rds_iw_transport; in rds_rdma_cm_event_handler()
55 trans = &rds_ib_transport; in rds_rdma_cm_event_handler()
76 ret = trans->cm_handle_connect(cm_id, event); in rds_rdma_cm_event_handler()
94 ret = trans->cm_initiate_connect(cm_id); in rds_rdma_cm_event_handler()
101 trans->cm_connect_complete(conn, event); in rds_rdma_cm_event_handler()
Dbind.c140 struct rds_transport *trans; in rds_bind() local
158 trans = rs->rs_transport; in rds_bind()
159 if (trans->laddr_check(sock_net(sock->sk), in rds_bind()
168 trans = rds_trans_get_preferred(sock_net(sock->sk), in rds_bind()
170 if (!trans) { in rds_bind()
178 rs->rs_transport = trans; in rds_bind()
Dstats.c123 goto trans; in rds_stats_info()
137 trans: in rds_stats_info()
Drds.h633 struct rds_transport *trans, gfp_t gfp);
636 struct rds_transport *trans, gfp_t gfp);
818 int rds_trans_register(struct rds_transport *trans);
819 void rds_trans_unregister(struct rds_transport *trans);
821 void rds_trans_put(struct rds_transport *trans);
Daf_rds.c327 int trans; in rds_getsockopt() local
358 trans = (rs->rs_transport ? rs->rs_transport->t_type : in rds_getsockopt()
360 if (put_user(trans, (int __user *)optval) || in rds_getsockopt()
/linux-4.4.14/fs/btrfs/
Dtransaction.c111 static noinline void switch_commit_roots(struct btrfs_transaction *trans, in switch_commit_roots() argument
117 list_for_each_entry_safe(root, tmp, &trans->switch_commits, in switch_commit_roots()
128 spin_lock(&trans->dropped_roots_lock); in switch_commit_roots()
129 while (!list_empty(&trans->dropped_roots)) { in switch_commit_roots()
130 root = list_first_entry(&trans->dropped_roots, in switch_commit_roots()
133 spin_unlock(&trans->dropped_roots_lock); in switch_commit_roots()
135 spin_lock(&trans->dropped_roots_lock); in switch_commit_roots()
137 spin_unlock(&trans->dropped_roots_lock); in switch_commit_roots()
141 static inline void extwriter_counter_inc(struct btrfs_transaction *trans, in extwriter_counter_inc() argument
145 atomic_inc(&trans->num_extwriters); in extwriter_counter_inc()
[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.h43 int btrfs_quota_enable(struct btrfs_trans_handle *trans,
45 int btrfs_quota_disable(struct btrfs_trans_handle *trans,
50 int btrfs_add_qgroup_relation(struct btrfs_trans_handle *trans,
52 int btrfs_del_qgroup_relation(struct btrfs_trans_handle *trans,
54 int btrfs_create_qgroup(struct btrfs_trans_handle *trans,
56 int btrfs_remove_qgroup(struct btrfs_trans_handle *trans,
58 int btrfs_limit_qgroup(struct btrfs_trans_handle *trans,
64 int btrfs_qgroup_prepare_account_extents(struct btrfs_trans_handle *trans,
70 btrfs_qgroup_account_extent(struct btrfs_trans_handle *trans,
74 int btrfs_qgroup_account_extents(struct btrfs_trans_handle *trans,
[all …]
Droot-tree.c136 int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_update_root() argument
151 ret = btrfs_search_slot(trans, root, key, path, 0, 1); in btrfs_update_root()
153 btrfs_abort_transaction(trans, root, ret); in btrfs_update_root()
176 ret = btrfs_search_slot(trans, root, key, path, in btrfs_update_root()
179 btrfs_abort_transaction(trans, root, ret); in btrfs_update_root()
183 ret = btrfs_del_item(trans, root, path); in btrfs_update_root()
185 btrfs_abort_transaction(trans, root, ret); in btrfs_update_root()
189 ret = btrfs_insert_empty_item(trans, root, path, in btrfs_update_root()
192 btrfs_abort_transaction(trans, root, ret); in btrfs_update_root()
213 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()
162 ret = btrfs_init_log_root_tree(trans, root->fs_info); in start_log_trans()
167 ret = btrfs_add_log_tree(trans, root); in start_log_trans()
275 struct btrfs_trans_handle *trans; member
334 static noinline int overwrite_item(struct btrfs_trans_handle *trans, in overwrite_item() argument
450 ret = btrfs_insert_empty_item(trans, root, path, in overwrite_item()
[all …]
Dtransaction.h151 static inline void btrfs_set_inode_last_trans(struct btrfs_trans_handle *trans, in btrfs_set_inode_last_trans() argument
155 BTRFS_I(inode)->last_trans = trans->transaction->transid; in btrfs_set_inode_last_trans()
165 static inline void btrfs_set_skip_qgroup(struct btrfs_trans_handle *trans, in btrfs_set_skip_qgroup() argument
170 delayed_refs = &trans->transaction->delayed_refs; in btrfs_set_skip_qgroup()
175 static inline void btrfs_clear_skip_qgroup(struct btrfs_trans_handle *trans) in btrfs_clear_skip_qgroup() argument
179 delayed_refs = &trans->transaction->delayed_refs; in btrfs_clear_skip_qgroup()
184 int btrfs_end_transaction(struct btrfs_trans_handle *trans,
206 int btrfs_commit_transaction(struct btrfs_trans_handle *trans,
208 int btrfs_commit_transaction_async(struct btrfs_trans_handle *trans,
211 int btrfs_end_transaction_throttle(struct btrfs_trans_handle *trans,
[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,
89 static int alloc_reserved_file_extent(struct btrfs_trans_handle *trans,
94 static int alloc_reserved_tree_block(struct btrfs_trans_handle *trans,
99 static int do_chunk_alloc(struct btrfs_trans_handle *trans,
805 int btrfs_lookup_extent_info(struct btrfs_trans_handle *trans, in btrfs_lookup_extent_info() argument
833 if (!trans) { in btrfs_lookup_extent_info()
846 ret = btrfs_search_slot(trans, root->fs_info->extent_root, in btrfs_lookup_extent_info()
891 if (!trans) in btrfs_lookup_extent_info()
894 delayed_refs = &trans->transaction->delayed_refs; in btrfs_lookup_extent_info()
[all …]
Ddelayed-ref.c157 int btrfs_delayed_ref_lock(struct btrfs_trans_handle *trans, in btrfs_delayed_ref_lock() argument
162 delayed_refs = &trans->transaction->delayed_refs; in btrfs_delayed_ref_lock()
181 static inline void drop_delayed_ref(struct btrfs_trans_handle *trans, in drop_delayed_ref() argument
196 if (trans->delayed_ref_updates) in drop_delayed_ref()
197 trans->delayed_ref_updates--; in drop_delayed_ref()
200 static bool merge_ref(struct btrfs_trans_handle *trans, in merge_ref() argument
248 drop_delayed_ref(trans, delayed_refs, head, next); in merge_ref()
251 drop_delayed_ref(trans, delayed_refs, head, ref); in merge_ref()
267 void btrfs_merge_delayed_refs(struct btrfs_trans_handle *trans, in btrfs_merge_delayed_refs() argument
300 if (merge_ref(trans, delayed_refs, head, ref, seq)) { in btrfs_merge_delayed_refs()
[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 …]
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 …]
Dqgroup.c509 static int add_qgroup_relation_item(struct btrfs_trans_handle *trans, in add_qgroup_relation_item() argument
525 ret = btrfs_insert_empty_item(trans, quota_root, path, &key, 0); in add_qgroup_relation_item()
533 static int del_qgroup_relation_item(struct btrfs_trans_handle *trans, in del_qgroup_relation_item() argument
549 ret = btrfs_search_slot(trans, quota_root, &key, path, -1, 1); in del_qgroup_relation_item()
558 ret = btrfs_del_item(trans, quota_root, path); in del_qgroup_relation_item()
564 static int add_qgroup_item(struct btrfs_trans_handle *trans, in add_qgroup_item() argument
591 ret = btrfs_insert_empty_item(trans, quota_root, path, &key, in add_qgroup_item()
599 btrfs_set_qgroup_info_generation(leaf, qgroup_info, trans->transid); in add_qgroup_item()
610 ret = btrfs_insert_empty_item(trans, quota_root, path, &key, in add_qgroup_item()
632 static int del_qgroup_item(struct btrfs_trans_handle *trans, in del_qgroup_item() argument
[all …]
Ddelayed-inode.c546 static int btrfs_delayed_item_reserve_metadata(struct btrfs_trans_handle *trans, in btrfs_delayed_item_reserve_metadata() argument
555 if (!trans->bytes_reserved) in btrfs_delayed_item_reserve_metadata()
558 src_rsv = trans->block_rsv; in btrfs_delayed_item_reserve_metadata()
590 struct btrfs_trans_handle *trans, in btrfs_delayed_inode_reserve_metadata() argument
601 src_rsv = trans->block_rsv; in btrfs_delayed_inode_reserve_metadata()
615 if (!src_rsv || (!trans->bytes_reserved && in btrfs_delayed_inode_reserve_metadata()
833 static int btrfs_insert_delayed_item(struct btrfs_trans_handle *trans, in btrfs_insert_delayed_item() argument
842 ret = btrfs_insert_empty_item(trans, root, path, &delayed_item->key, in btrfs_insert_delayed_item()
863 static int btrfs_insert_delayed_items(struct btrfs_trans_handle *trans, in btrfs_insert_delayed_items() argument
877 ret = btrfs_insert_delayed_item(trans, root, path, curr); in btrfs_insert_delayed_items()
[all …]
Dioctl.c219 struct btrfs_trans_handle *trans; in btrfs_ioctl_setflags() local
342 trans = btrfs_start_transaction(root, 1); in btrfs_ioctl_setflags()
343 if (IS_ERR(trans)) { in btrfs_ioctl_setflags()
344 ret = PTR_ERR(trans); in btrfs_ioctl_setflags()
351 ret = btrfs_update_inode(trans, root, inode); in btrfs_ioctl_setflags()
353 btrfs_end_transaction(trans, root); in btrfs_ioctl_setflags()
438 struct btrfs_trans_handle *trans; in create_subvol() local
477 trans = btrfs_start_transaction(root, 0); in create_subvol()
478 if (IS_ERR(trans)) { in create_subvol()
479 ret = PTR_ERR(trans); in create_subvol()
[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 …]
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 …]
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 …]
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()
Ddelayed-ref.h243 struct btrfs_trans_handle *trans,
248 struct btrfs_trans_handle *trans,
254 struct btrfs_trans_handle *trans,
257 struct btrfs_trans_handle *trans,
260 void btrfs_merge_delayed_refs(struct btrfs_trans_handle *trans,
266 btrfs_find_delayed_ref_head(struct btrfs_trans_handle *trans, u64 bytenr);
267 int btrfs_delayed_ref_lock(struct btrfs_trans_handle *trans,
276 btrfs_select_ref_head(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 …]
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 …]
Ddev-replace.c194 int btrfs_run_dev_replace(struct btrfs_trans_handle *trans, in btrfs_run_dev_replace() argument
222 ret = btrfs_search_slot(trans, dev_root, &key, path, -1, 1); in btrfs_run_dev_replace()
242 ret = btrfs_del_item(trans, dev_root, path); in btrfs_run_dev_replace()
254 ret = btrfs_insert_empty_item(trans, dev_root, path, in btrfs_run_dev_replace()
311 struct btrfs_trans_handle *trans; in btrfs_dev_replace_start() local
350 trans = btrfs_attach_transaction(root); in btrfs_dev_replace_start()
351 if (!IS_ERR(trans)) { in btrfs_dev_replace_start()
352 ret = btrfs_commit_transaction(trans, root); in btrfs_dev_replace_start()
355 } else if (PTR_ERR(trans) != -ENOENT) { in btrfs_dev_replace_start()
356 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,
Dprops.c100 static int __btrfs_set_prop(struct btrfs_trans_handle *trans, in __btrfs_set_prop() argument
118 ret = __btrfs_setxattr(trans, inode, handler->xattr_name, in __btrfs_set_prop()
132 ret = __btrfs_setxattr(trans, inode, handler->xattr_name, in __btrfs_set_prop()
138 __btrfs_setxattr(trans, inode, handler->xattr_name, in __btrfs_set_prop()
298 static int inherit_props(struct btrfs_trans_handle *trans, in inherit_props() argument
323 ret = btrfs_block_rsv_add(root, trans->block_rsv, in inherit_props()
327 ret = __btrfs_set_prop(trans, inode, h->xattr_name, in inherit_props()
329 btrfs_block_rsv_release(root, trans->block_rsv, num_bytes); in inherit_props()
338 int btrfs_inode_inherit_props(struct btrfs_trans_handle *trans, in btrfs_inode_inherit_props() argument
345 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 …]
Dfree-space-cache.h58 struct btrfs_trans_handle *trans,
65 struct btrfs_trans_handle *trans,
71 struct btrfs_trans_handle *trans,
76 struct btrfs_trans_handle *trans,
82 struct btrfs_trans_handle *trans,
87 struct btrfs_trans_handle *trans,
Dctree.h3394 int btrfs_should_throttle_delayed_refs(struct btrfs_trans_handle *trans,
3396 int btrfs_check_space_for_delayed_refs(struct btrfs_trans_handle *trans,
3399 int btrfs_run_delayed_refs(struct btrfs_trans_handle *trans,
3404 int btrfs_lookup_extent_info(struct btrfs_trans_handle *trans,
3413 int btrfs_cross_ref_exist(struct btrfs_trans_handle *trans,
3422 struct extent_buffer *btrfs_alloc_tree_block(struct btrfs_trans_handle *trans,
3427 void btrfs_free_tree_block(struct btrfs_trans_handle *trans,
3431 int btrfs_alloc_reserved_file_extent(struct btrfs_trans_handle *trans,
3436 int btrfs_alloc_logged_file_extent(struct btrfs_trans_handle *trans,
3443 int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
[all …]
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,
133 int btrfs_init_log_root_tree(struct btrfs_trans_handle *trans,
135 int btrfs_add_log_tree(struct btrfs_trans_handle *trans,
137 void btrfs_cleanup_one_transaction(struct btrfs_transaction *trans,
139 struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans,
Dvolumes.c121 static int init_first_rw_device(struct btrfs_trans_handle *trans,
1406 int find_free_dev_extent(struct btrfs_trans_handle *trans, in find_free_dev_extent() argument
1411 return find_free_dev_extent_start(trans->transaction, device, in find_free_dev_extent()
1415 static int btrfs_free_dev_extent(struct btrfs_trans_handle *trans, in btrfs_free_dev_extent() argument
1435 ret = btrfs_search_slot(trans, root, &key, path, -1, 1); in btrfs_free_dev_extent()
1461 ret = btrfs_del_item(trans, root, path); in btrfs_free_dev_extent()
1466 set_bit(BTRFS_TRANS_HAVE_FREE_BGS, &trans->transaction->flags); in btrfs_free_dev_extent()
1473 static int btrfs_alloc_dev_extent(struct btrfs_trans_handle *trans, in btrfs_alloc_dev_extent() argument
1494 ret = btrfs_insert_empty_item(trans, root, path, &key, in btrfs_alloc_dev_extent()
1577 static int btrfs_add_device(struct btrfs_trans_handle *trans, in btrfs_add_device() argument
[all …]
Dtree-defrag.c32 int btrfs_defrag_leaves(struct btrfs_trans_handle *trans, in btrfs_defrag_leaves() argument
92 wret = btrfs_search_slot(trans, root, &key, path, 0, 1); in btrfs_defrag_leaves()
105 ret = btrfs_realloc_node(trans, root, in btrfs_defrag_leaves()
132 root->defrag_trans_start = trans->transid; in btrfs_defrag_leaves()
Dbackref.c928 static int find_parent_nodes(struct btrfs_trans_handle *trans, argument
959 if (!trans) {
975 ret = btrfs_search_slot(trans, fs_info->extent_root, &key, path, 0, 0);
981 if (trans && likely(trans->type != __TRANS_DUMMY) &&
984 if (trans && time_seq != (u64)-1) {
990 delayed_refs = &trans->transaction->delayed_refs;
992 head = btrfs_find_delayed_ref_head(trans, bytenr);
1165 static int btrfs_find_all_leafs(struct btrfs_trans_handle *trans, argument
1176 ret = find_parent_nodes(trans, fs_info, bytenr,
1199 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.h436 int btrfs_alloc_chunk(struct btrfs_trans_handle *trans,
457 int btrfs_grow_device(struct btrfs_trans_handle *trans,
478 int find_free_dev_extent(struct btrfs_trans_handle *trans,
486 int btrfs_run_dev_stats(struct btrfs_trans_handle *trans,
502 int btrfs_finish_chunk_alloc(struct btrfs_trans_handle *trans,
505 int btrfs_remove_chunk(struct btrfs_trans_handle *trans,
Dbackref.h54 int btrfs_find_all_roots(struct btrfs_trans_handle *trans,
71 int btrfs_check_shared(struct btrfs_trans_handle *trans,
Dsuper.c235 void __btrfs_abort_transaction(struct btrfs_trans_handle *trans, in __btrfs_abort_transaction() argument
239 trans->aborted = errno; in __btrfs_abort_transaction()
242 if (!trans->blocks_used && list_empty(&trans->new_bgs)) { in __btrfs_abort_transaction()
251 ACCESS_ONCE(trans->transaction->aborted) = errno; in __btrfs_abort_transaction()
1077 struct btrfs_trans_handle *trans; in btrfs_sync_fs() local
1090 trans = btrfs_attach_transaction_barrier(root); in btrfs_sync_fs()
1091 if (IS_ERR(trans)) { in btrfs_sync_fs()
1093 if (PTR_ERR(trans) == -ENOENT) { in btrfs_sync_fs()
1110 trans = btrfs_start_transaction(root, 0); in btrfs_sync_fs()
1112 if (IS_ERR(trans)) in btrfs_sync_fs()
[all …]
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
243 mutex_lock(&trans->transaction->cache_write_mutex); in btrfs_truncate_free_space_cache()
247 btrfs_wait_cache_io(root, trans, block_group, in btrfs_truncate_free_space_cache()
[all …]
Dordered-data.c485 void btrfs_wait_logged_extents(struct btrfs_trans_handle *trans, in btrfs_wait_logged_extents() argument
527 atomic_inc(&trans->transaction->pending_ordered); in btrfs_wait_logged_extents()
612 struct btrfs_transaction *trans; in btrfs_remove_ordered_extent() local
621 trans = root->fs_info->running_transaction; in btrfs_remove_ordered_extent()
622 if (trans) in btrfs_remove_ordered_extent()
623 atomic_inc(&trans->use_count); in btrfs_remove_ordered_extent()
626 ASSERT(trans); in btrfs_remove_ordered_extent()
627 if (trans) { in btrfs_remove_ordered_extent()
628 if (atomic_dec_and_test(&trans->pending_ordered)) in btrfs_remove_ordered_extent()
629 wake_up(&trans->pending_wait); in btrfs_remove_ordered_extent()
[all …]
Ddisk-io.c63 static int btrfs_destroy_delayed_refs(struct btrfs_transaction *trans,
1171 void clean_tree_block(struct btrfs_trans_handle *trans, in clean_tree_block() argument
1316 struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans, in btrfs_create_tree() argument
1337 leaf = btrfs_alloc_tree_block(trans, root, 0, objectid, NULL, 0, 0, 0); in btrfs_create_tree()
1346 btrfs_set_header_generation(leaf, trans->transid); in btrfs_create_tree()
1364 btrfs_set_root_generation(&root->root_item, trans->transid); in btrfs_create_tree()
1377 ret = btrfs_insert_root(trans, tree_root, &key, &root->root_item); in btrfs_create_tree()
1396 static struct btrfs_root *alloc_log_tree(struct btrfs_trans_handle *trans, in alloc_log_tree() argument
1424 leaf = btrfs_alloc_tree_block(trans, root, 0, BTRFS_TREE_LOG_OBJECTID, in alloc_log_tree()
1433 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.h209 void btrfs_wait_logged_extents(struct btrfs_trans_handle *trans,
Dscrub.c794 struct btrfs_trans_handle *trans = NULL; in scrub_fixup_nodatasum() local
810 trans = btrfs_join_transaction(fixup->root); in scrub_fixup_nodatasum()
811 if (IS_ERR(trans)) { in scrub_fixup_nodatasum()
839 if (trans && !IS_ERR(trans)) in scrub_fixup_nodatasum()
840 btrfs_end_transaction(trans, fixup->root); in scrub_fixup_nodatasum()
4128 struct btrfs_trans_handle *trans = NULL; in copy_nocow_pages_worker() local
4146 trans = btrfs_join_transaction(root); in copy_nocow_pages_worker()
4147 if (IS_ERR(trans)) { in copy_nocow_pages_worker()
4163 btrfs_end_transaction(trans, root); in copy_nocow_pages_worker()
4164 trans = NULL; in copy_nocow_pages_worker()
[all …]
/linux-4.4.14/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()
3262 struct xlog_recover *trans, in xlog_recover_commit_pass1() argument
[all …]
Dxfs_trans.c1027 struct xfs_trans *trans; in __xfs_trans_roll() local
1034 trans = *tpp; in __xfs_trans_roll()
1036 xfs_trans_log_inode(trans, dp, XFS_ILOG_CORE); in __xfs_trans_roll()
1041 tres.tr_logres = trans->t_log_res; in __xfs_trans_roll()
1042 tres.tr_logcount = trans->t_log_count; in __xfs_trans_roll()
1043 *tpp = xfs_trans_dup(trans); in __xfs_trans_roll()
1052 error = __xfs_trans_commit(trans, true); in __xfs_trans_roll()
1057 trans = *tpp; in __xfs_trans_roll()
1068 error = xfs_trans_reserve(trans, &tres, 0, 0); in __xfs_trans_roll()
1076 xfs_trans_ijoin(trans, dp, 0); in __xfs_trans_roll()
Dxfs_trace.h1470 TP_PROTO(struct xfs_trans *trans),
1471 TP_ARGS(trans),
1478 __entry->dev = trans->t_mountp->m_super->s_dev;
1479 __entry->tp = trans;
1480 __entry->lsn = trans->t_commit_lsn;
1962 TP_PROTO(struct xlog *log, struct xlog_recover *trans,
1964 TP_ARGS(log, trans, item, pass),
1977 __entry->tid = trans->r_log_tid;
1996 TP_PROTO(struct xlog *log, struct xlog_recover *trans, \
1998 TP_ARGS(log, trans, item, pass))
/linux-4.4.14/fs/btrfs/tests/
Dqgroup-tests.c26 static void init_dummy_trans(struct btrfs_trans_handle *trans) in init_dummy_trans() argument
28 memset(trans, 0, sizeof(*trans)); in init_dummy_trans()
29 trans->transid = 1; in init_dummy_trans()
30 INIT_LIST_HEAD(&trans->qgroup_ref_list); in init_dummy_trans()
31 trans->type = __TRANS_DUMMY; in init_dummy_trans()
37 struct btrfs_trans_handle trans; in insert_normal_tree_ref() local
47 init_dummy_trans(&trans); in insert_normal_tree_ref()
60 ret = btrfs_insert_empty_item(&trans, root, path, &ins, size); in insert_normal_tree_ref()
90 struct btrfs_trans_handle trans; in add_tree_ref() local
97 init_dummy_trans(&trans); in add_tree_ref()
[all …]
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sriov_common.c232 struct qlcnic_bc_trans *trans; in qlcnic_sriov_cleanup_list() local
239 trans = list_first_entry(&t_list->wait_list, in qlcnic_sriov_cleanup_list()
241 list_del(&trans->list); in qlcnic_sriov_cleanup_list()
243 cmd.req.arg = (u32 *)trans->req_pay; in qlcnic_sriov_cleanup_list()
244 cmd.rsp.arg = (u32 *)trans->rsp_pay; in qlcnic_sriov_cleanup_list()
246 qlcnic_sriov_cleanup_transaction(trans); in qlcnic_sriov_cleanup_list()
688 static inline int qlcnic_sriov_alloc_bc_trans(struct qlcnic_bc_trans **trans) in qlcnic_sriov_alloc_bc_trans() argument
690 *trans = kzalloc(sizeof(struct qlcnic_bc_trans), GFP_ATOMIC); in qlcnic_sriov_alloc_bc_trans()
691 if (!*trans) in qlcnic_sriov_alloc_bc_trans()
694 init_completion(&(*trans)->resp_cmpl); in qlcnic_sriov_alloc_bc_trans()
[all …]
Dqlcnic_sriov_pf.c739 static int qlcnic_sriov_pf_channel_cfg_cmd(struct qlcnic_bc_trans *trans, in qlcnic_sriov_pf_channel_cfg_cmd() argument
742 struct qlcnic_vf_info *vf = trans->vf; in qlcnic_sriov_pf_channel_cfg_cmd()
753 if (trans->req_hdr->cmd_op == QLCNIC_BC_CMD_CHANNEL_INIT) { in qlcnic_sriov_pf_channel_cfg_cmd()
775 if (trans->req_hdr->cmd_op == QLCNIC_BC_CMD_CHANNEL_INIT) in qlcnic_sriov_pf_channel_cfg_cmd()
911 static int qlcnic_sriov_pf_mac_address_cmd(struct qlcnic_bc_trans *trans, in qlcnic_sriov_pf_mac_address_cmd() argument
914 struct qlcnic_vf_info *vf = trans->vf; in qlcnic_sriov_pf_mac_address_cmd()
943 static int qlcnic_sriov_pf_create_tx_ctx_cmd(struct qlcnic_bc_trans *trans, in qlcnic_sriov_pf_create_tx_ctx_cmd() argument
946 struct qlcnic_vf_info *vf = trans->vf; in qlcnic_sriov_pf_create_tx_ctx_cmd()
981 static int qlcnic_sriov_pf_del_rx_ctx_cmd(struct qlcnic_bc_trans *trans, in qlcnic_sriov_pf_del_rx_ctx_cmd() argument
984 struct qlcnic_vf_info *vf = trans->vf; in qlcnic_sriov_pf_del_rx_ctx_cmd()
[all …]
Dqlcnic_sriov.h269 struct qlcnic_bc_trans *trans, in qlcnic_sriov_soft_flr_check() argument
/linux-4.4.14/fs/xfs/libxfs/
Dxfs_attr.c255 args.trans = xfs_trans_alloc(mp, XFS_TRANS_ATTR_SET); in xfs_attr_set()
263 args.trans->t_flags |= XFS_TRANS_RESERVE; in xfs_attr_set()
269 error = xfs_trans_reserve(args.trans, &tres, args.total, 0); in xfs_attr_set()
271 xfs_trans_cancel(args.trans); in xfs_attr_set()
276 error = xfs_trans_reserve_quota_nblks(args.trans, dp, args.total, 0, in xfs_attr_set()
281 xfs_trans_cancel(args.trans); in xfs_attr_set()
285 xfs_trans_ijoin(args.trans, dp, 0); in xfs_attr_set()
311 ASSERT(args.trans != NULL); in xfs_attr_set()
319 xfs_trans_set_sync(args.trans); in xfs_attr_set()
322 xfs_trans_ichgtime(args.trans, dp, in xfs_attr_set()
[all …]
Dxfs_attr_remote.c439 error = xfs_bmap_first_unused(args->trans, args->dp, blkcnt, &lfileoff, in xfs_attr_rmtval_set()
467 error = xfs_bmapi_write(args->trans, dp, (xfs_fileoff_t)lblkno, in xfs_attr_rmtval_set()
471 error = xfs_bmap_finish(&args->trans, args->flist, in xfs_attr_rmtval_set()
476 args->trans = NULL; in xfs_attr_rmtval_set()
486 xfs_trans_ijoin(args->trans, dp, 0); in xfs_attr_rmtval_set()
497 error = xfs_trans_roll(&args->trans, dp); in xfs_attr_rmtval_set()
621 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.c520 xfs_trans_log_inode(args->trans, dp, XFS_ILOG_CORE | XFS_ILOG_ADATA); in xfs_attr_shortform_create()
572 xfs_trans_log_inode(args->trans, dp, XFS_ILOG_CORE | XFS_ILOG_ADATA); in xfs_attr_shortform_add()
574 xfs_sbversion_add_attr2(mp, args->trans); in xfs_attr_shortform_add()
648 xfs_attr_fork_remove(dp, args->trans); in xfs_attr_shortform_remove()
657 xfs_trans_log_inode(args->trans, dp, in xfs_attr_shortform_remove()
661 xfs_sbversion_add_attr2(mp, args->trans); in xfs_attr_shortform_remove()
798 nargs.trans = args->trans; in xfs_attr_shortform_to_leaf()
912 xfs_attr_fork_remove(dp, args->trans); in xfs_attr3_leaf_to_shortform()
928 nargs.trans = args->trans; in xfs_attr3_leaf_to_shortform()
978 error = xfs_attr3_leaf_read(args->trans, dp, 0, -1, &bp1); in xfs_attr3_leaf_to_node()
[all …]
Dxfs_da_btree.c309 struct xfs_trans *tp = args->trans; in xfs_da3_node_create()
480 xfs_trans_log_buf(state->args->trans, bp, in xfs_da3_split()
494 xfs_trans_log_buf(state->args->trans, bp, in xfs_da3_split()
539 tp = args->trans; in xfs_da3_root_split()
786 tp = state->args->trans; in xfs_da3_node_rebalance()
912 xfs_trans_log_buf(state->args->trans, oldblk->bp, in xfs_da3_node_add()
918 xfs_trans_log_buf(state->args->trans, oldblk->bp, in xfs_da3_node_add()
1081 error = xfs_da3_node_read(args->trans, dp, child, -1, &bp, in xfs_da3_root_join()
1101 xfs_trans_log_buf(args->trans, root_blk->bp, 0, in xfs_da3_root_join()
1196 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()
386 args->trans = tp; in xfs_dir_lookup()
464 args->trans = tp; in xfs_dir_removename()
529 args->trans = tp; in xfs_dir_replace()
613 xfs_trans_log_inode(args->trans, dp, XFS_ILOG_CORE); in xfs_dir2_grow_inode()
678 tp = args->trans; in xfs_dir2_shrink_inode()
Dxfs_dir2_leaf.c349 struct xfs_trans *tp = args->trans; in xfs_dir3_leaf_get_buf()
400 tp = args->trans; in xfs_dir2_block_to_leaf()
643 tp = args->trans; in xfs_dir2_leaf_addname()
1074 xfs_trans_log_buf(args->trans, bp, in xfs_dir3_leaf_log_bests()
1102 xfs_trans_log_buf(args->trans, bp, in xfs_dir3_leaf_log_ents()
1122 xfs_trans_log_buf(args->trans, bp, in xfs_dir3_leaf_log_header()
1144 xfs_trans_log_buf(args->trans, bp, (uint)((char *)ltp - (char *)leaf), in xfs_dir3_leaf_log_tail()
1176 tp = args->trans; in xfs_dir2_leaf_lookup()
1234 tp = args->trans; in xfs_dir2_leaf_lookup_int()
1527 tp = args->trans; in xfs_dir2_leaf_replace()
[all …]
Dxfs_dir2_node.c204 struct xfs_trans *tp = args->trans; in xfs_dir3_free_get_buf()
258 xfs_trans_log_buf(args->trans, bp, in xfs_dir2_free_log_bests()
279 xfs_trans_log_buf(args->trans, bp, 0, in xfs_dir2_free_log_header()
311 tp = args->trans; in xfs_dir2_leaf_to_node()
537 tp = args->trans; in xfs_dir2_leafn_lookup_for_addname()
689 tp = args->trans; in xfs_dir2_leafn_lookup_for_entry()
1179 tp = args->trans; in xfs_dir2_leafn_remove()
1453 error = xfs_dir3_leafn_read(state->args->trans, dp, in xfs_dir2_leafn_toosmall()
1476 xfs_trans_brelse(state->args->trans, bp); in xfs_dir2_leafn_toosmall()
1672 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.c365 tp = args->trans; in xfs_dir2_block_addname()
646 xfs_trans_brelse(args->trans, bp); in xfs_dir2_block_lookup()
676 tp = args->trans; in xfs_dir2_block_lookup_int()
786 tp = args->trans; in xfs_dir2_block_removename()
931 tp = args->trans; in xfs_dir2_leaf_to_block()
1078 tp = args->trans; in xfs_dir2_sf_to_block()
Dxfs_dir2_data.c591 tp = args->trans; in xfs_dir3_data_init()
660 xfs_trans_log_buf(args->trans, bp, (uint)((char *)dep - (char *)hdr), in xfs_dir2_data_log_entry()
682 xfs_trans_log_buf(args->trans, bp, 0, in xfs_dir2_data_log_header()
705 xfs_trans_log_buf(args->trans, bp, (uint)((char *)dup - (char *)hdr), in xfs_dir2_data_log_unused()
711 xfs_trans_log_buf(args->trans, bp, in xfs_dir2_data_log_unused()
/linux-4.4.14/drivers/staging/lustre/lnet/selftest/
Dconrpc.c187 lstcon_rpc_trans_t *trans = crpc->crp_trans; in lstcon_rpc_post() local
189 LASSERT(trans != NULL); in lstcon_rpc_post()
191 atomic_inc(&trans->tas_remaining); in lstcon_rpc_post()
240 lstcon_rpc_trans_t *trans; in lstcon_rpc_trans_prep() local
243 list_for_each_entry(trans, translist, tas_link) { in lstcon_rpc_trans_prep()
246 if ((trans->tas_opc & transop) == LST_TRANS_PRIVATE) in lstcon_rpc_trans_prep()
252 LIBCFS_ALLOC(trans, sizeof(*trans)); in lstcon_rpc_trans_prep()
253 if (trans == NULL) in lstcon_rpc_trans_prep()
256 trans->tas_opc = transop; in lstcon_rpc_trans_prep()
259 INIT_LIST_HEAD(&trans->tas_olink); in lstcon_rpc_trans_prep()
[all …]
Dconrpc.h128 void lstcon_rpc_trans_stat(lstcon_rpc_trans_t *trans,
130 int lstcon_rpc_trans_interpreter(lstcon_rpc_trans_t *trans,
133 void lstcon_rpc_trans_abort(lstcon_rpc_trans_t *trans, int error);
134 void lstcon_rpc_trans_destroy(lstcon_rpc_trans_t *trans);
135 void lstcon_rpc_trans_addreq(lstcon_rpc_trans_t *trans, lstcon_rpc_t *req);
136 int lstcon_rpc_trans_postwait(lstcon_rpc_trans_t *trans, int timeout);
Dconsole.c406 lstcon_rpc_trans_t *trans; in lstcon_group_nodes_add() local
445 tmp, lstcon_sesrpc_condition, &trans); in lstcon_group_nodes_add()
453 lstcon_rpc_trans_postwait(trans, LST_TRANS_TIMEOUT); in lstcon_group_nodes_add()
455 rc = lstcon_rpc_trans_interpreter(trans, result_up, in lstcon_group_nodes_add()
457 *featp = trans->tas_features; in lstcon_group_nodes_add()
460 lstcon_rpc_trans_destroy(trans); in lstcon_group_nodes_add()
473 lstcon_rpc_trans_t *trans; in lstcon_group_nodes_remove() local
501 tmp, lstcon_sesrpc_condition, &trans); in lstcon_group_nodes_remove()
507 lstcon_rpc_trans_postwait(trans, LST_TRANS_TIMEOUT); in lstcon_group_nodes_remove()
509 rc = lstcon_rpc_trans_interpreter(trans, result_up, NULL); in lstcon_group_nodes_remove()
[all …]
/linux-4.4.14/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.4.14/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.4.14/drivers/mfd/
Dcros_ec_spi.c104 struct spi_transfer trans; in terminate_request() local
112 memset(&trans, 0, sizeof(trans)); in terminate_request()
113 trans.delay_usecs = ec_spi->end_of_msg_delay; in terminate_request()
114 spi_message_add_tail(&trans, &msg); in terminate_request()
137 struct spi_transfer trans; in receive_n_bytes() local
143 memset(&trans, 0, sizeof(trans)); in receive_n_bytes()
144 trans.cs_change = 1; in receive_n_bytes()
145 trans.rx_buf = buf; in receive_n_bytes()
146 trans.len = n; in receive_n_bytes()
149 spi_message_add_tail(&trans, &msg); in receive_n_bytes()
[all …]
/linux-4.4.14/net/netfilter/
Dnf_tables_api.c113 struct nft_trans *trans; in nft_trans_alloc() local
115 trans = kzalloc(sizeof(struct nft_trans) + size, GFP_KERNEL); in nft_trans_alloc()
116 if (trans == NULL) in nft_trans_alloc()
119 trans->msg_type = msg_type; in nft_trans_alloc()
120 trans->ctx = *ctx; in nft_trans_alloc()
122 return trans; in nft_trans_alloc()
125 static void nft_trans_destroy(struct nft_trans *trans) in nft_trans_destroy() argument
127 list_del(&trans->list); in nft_trans_destroy()
128 kfree(trans); in nft_trans_destroy()
182 struct nft_trans *trans; in nft_trans_table_add() local
[all …]
/linux-4.4.14/drivers/net/ethernet/rocker/
Drocker.c346 struct switchdev_trans *trans, int flags, in __rocker_port_mem_alloc() argument
362 if (!trans) { in __rocker_port_mem_alloc()
364 } else if (switchdev_trans_ph_prepare(trans)) { in __rocker_port_mem_alloc()
368 switchdev_trans_item_enqueue(trans, elem, kfree, elem); in __rocker_port_mem_alloc()
370 elem = switchdev_trans_item_dequeue(trans); in __rocker_port_mem_alloc()
377 struct switchdev_trans *trans, int flags, in rocker_port_kzalloc() argument
380 return __rocker_port_mem_alloc(rocker_port, trans, flags, size); in rocker_port_kzalloc()
384 struct switchdev_trans *trans, int flags, in rocker_port_kcalloc() argument
387 return __rocker_port_mem_alloc(rocker_port, trans, flags, n * size); in rocker_port_kcalloc()
390 static void rocker_port_kfree(struct switchdev_trans *trans, const void *mem) in rocker_port_kfree() argument
[all …]
/linux-4.4.14/net/switchdev/
Dswitchdev.c40 void switchdev_trans_item_enqueue(struct switchdev_trans *trans, in switchdev_trans_item_enqueue() argument
46 list_add_tail(&tritem->list, &trans->item_list); in switchdev_trans_item_enqueue()
51 __switchdev_trans_item_dequeue(struct switchdev_trans *trans) in __switchdev_trans_item_dequeue() argument
55 if (list_empty(&trans->item_list)) in __switchdev_trans_item_dequeue()
57 tritem = list_first_entry(&trans->item_list, in __switchdev_trans_item_dequeue()
68 void *switchdev_trans_item_dequeue(struct switchdev_trans *trans) in switchdev_trans_item_dequeue() argument
72 tritem = __switchdev_trans_item_dequeue(trans); in switchdev_trans_item_dequeue()
78 static void switchdev_trans_init(struct switchdev_trans *trans) in switchdev_trans_init() argument
80 INIT_LIST_HEAD(&trans->item_list); in switchdev_trans_init()
83 static void switchdev_trans_items_destroy(struct switchdev_trans *trans) in switchdev_trans_items_destroy() argument
[all …]
/linux-4.4.14/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.c164 priv->trans->ops->d3_suspend && in iwlagn_mac_setup_register()
165 priv->trans->ops->d3_resume && in iwlagn_mac_setup_register()
166 device_can_wakeup(priv->trans->dev)) { in iwlagn_mac_setup_register()
209 hw->wiphy->hw_version = priv->trans->hw_id; in iwlagn_mac_setup_register()
253 ret = iwl_trans_start_hw(priv->trans); in __iwl_up()
265 ret = iwl_trans_start_hw(priv->trans); in __iwl_up()
393 iwl_write32(priv->trans, CSR_UCODE_DRV_GP1_SET, in iwlagn_mac_suspend()
396 iwl_trans_d3_suspend(priv->trans, false); in iwlagn_mac_suspend()
469 ret = iwl_trans_d3_resume(priv->trans, &d3_status, false); in iwlagn_mac_resume()
479 iwl_write32(priv->trans, CSR_UCODE_DRV_GP1_CLR, in iwlagn_mac_resume()
[all …]
Ducode.c257 iwl_trans_fw_alive(priv->trans, 0); in iwl_alive_notify()
270 iwl_trans_ac_txq_enable(priv->trans, i, in iwl_alive_notify()
345 ret = iwl_trans_start_fw(priv->trans, fw, false); in iwl_load_ucode_wait_alive()
448 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()
1194 iwl_trans_reclaim(priv->trans, txq_id, ssn, &skbs); in iwlagn_rx_reply_tx()
1208 iwl_trans_free_tx_cmd(priv->trans, in iwlagn_rx_reply_tx()
1340 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.c581 iwl_write32(priv->trans, CSR_UCODE_DRV_GP1_SET, in iwlagn_rx_card_state_notif()
584 iwl_write_direct32(priv->trans, HBUS_TARG_MBX_C, in iwlagn_rx_card_state_notif()
588 iwl_write32(priv->trans, CSR_UCODE_DRV_GP1_CLR, in iwlagn_rx_card_state_notif()
590 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()
1156 iwl_trans_stop_device(priv->trans); in iwlagn_suspend()
1157 ret = iwl_trans_start_hw(priv->trans); in iwlagn_suspend()
1289 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()
/linux-4.4.14/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.4.14/include/net/netfilter/
Dnf_tables.h1011 #define nft_trans_rule(trans) \ argument
1012 (((struct nft_trans_rule *)trans->data)->rule)
1019 #define nft_trans_set(trans) \ argument
1020 (((struct nft_trans_set *)trans->data)->set)
1021 #define nft_trans_set_id(trans) \ argument
1022 (((struct nft_trans_set *)trans->data)->set_id)
1031 #define nft_trans_chain_update(trans) \ argument
1032 (((struct nft_trans_chain *)trans->data)->update)
1033 #define nft_trans_chain_name(trans) \ argument
1034 (((struct nft_trans_chain *)trans->data)->name)
[all …]
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
Dfw.c128 kfree(mvm->trans->paging_download_buf); in iwl_free_fw_paging()
129 mvm->trans->paging_download_buf = NULL; in iwl_free_fw_paging()
222 dma_enabled = is_device_dma_capable(mvm->trans->dev); in iwl_alloc_fw_paging_mem()
253 phys = dma_map_page(mvm->trans->dev, block, 0, in iwl_alloc_fw_paging_mem()
255 if (dma_mapping_error(mvm->trans->dev, phys)) { in iwl_alloc_fw_paging_mem()
291 phys = dma_map_page(mvm->trans->dev, block, 0, in iwl_alloc_fw_paging_mem()
294 if (dma_mapping_error(mvm->trans->dev, phys)) { in iwl_alloc_fw_paging_mem()
393 mvm->trans->paging_download_buf = kzalloc(MAX_PAGING_IMAGE_SIZE, in iwl_trans_get_paging_item()
395 if (!mvm->trans->paging_download_buf) { in iwl_trans_get_paging_item()
399 mvm->trans->paging_req_addr = le32_to_cpu(item_resp->item_val); in iwl_trans_get_paging_item()
[all …]
Dops.c157 reg_val |= CSR_HW_REV_STEP(mvm->trans->hw_rev) << in iwl_mvm_nic_config()
159 reg_val |= CSR_HW_REV_DASH(mvm->trans->hw_rev) << in iwl_mvm_nic_config()
177 if (mvm->trans->cfg->device_family != IWL_DEVICE_FAMILY_8000) in iwl_mvm_nic_config()
180 iwl_trans_set_bits_mask(mvm->trans, CSR_HW_IF_CONFIG_REG, in iwl_mvm_nic_config()
198 if (!mvm->trans->cfg->apmg_not_supported) in iwl_mvm_nic_config()
199 iwl_set_bits_mask_prph(mvm->trans, APMG_PS_CTRL_REG, in iwl_mvm_nic_config()
372 static u32 calc_min_backoff(struct iwl_trans *trans, const struct iwl_cfg *cfg) in calc_min_backoff() argument
380 if (trans->dflt_pwr_limit >= pwr_tx_backoff->pwr) in calc_min_backoff()
392 iwl_op_mode_mvm_start(struct iwl_trans *trans, const struct iwl_cfg *cfg, in iwl_op_mode_mvm_start() argument
430 mvm->dev = trans->dev; in iwl_op_mode_mvm_start()
[all …]
Dnvm.c160 IWL_DEBUG_EEPROM(mvm->trans->dev, in iwl_nvm_read_chunk()
165 IWL_DEBUG_EEPROM(mvm->trans->dev, in iwl_nvm_read_chunk()
245 IWL_DEBUG_EEPROM(mvm->trans->dev, in iwl_nvm_read_section()
253 IWL_DEBUG_EEPROM(mvm->trans->dev, in iwl_nvm_read_section()
267 if (mvm->trans->cfg->device_family != IWL_DEVICE_FAMILY_8000) { in iwl_parse_nvm_sections()
301 mac_addr0 = iwl_trans_read_prph(mvm->trans, WFMP_MAC_ADDR_0); in iwl_parse_nvm_sections()
302 mac_addr1 = iwl_trans_read_prph(mvm->trans, WFMP_MAC_ADDR_1); in iwl_parse_nvm_sections()
316 return iwl_parse_nvm_data(mvm->trans->dev, mvm->cfg, hw, sw, calib, in iwl_parse_nvm_sections()
320 mvm->trans->hw_id); in iwl_parse_nvm_sections()
368 IWL_DEBUG_EEPROM(mvm->trans->dev, "Read from external NVM\n"); in iwl_mvm_read_external_nvm()
[all …]
Dutils.c96 ret = iwl_trans_send_cmd(mvm->trans, cmd); in iwl_mvm_send_cmd()
152 ret = iwl_trans_send_cmd(mvm->trans, cmd); in iwl_mvm_send_cmd_status()
454 struct iwl_trans *trans = mvm->trans; in iwl_mvm_dump_umac_error_log() local
469 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_mvm_dump_umac_error_log()
472 IWL_ERR(trans, "Start IWL Error Log Dump:\n"); in iwl_mvm_dump_umac_error_log()
473 IWL_ERR(trans, "Status: 0x%08lX, count: %d\n", in iwl_mvm_dump_umac_error_log()
496 struct iwl_trans *trans = mvm->trans; in iwl_mvm_dump_nic_error_log_old() local
518 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_mvm_dump_nic_error_log_old()
521 IWL_ERR(trans, "Start IWL Error Log Dump:\n"); in iwl_mvm_dump_nic_error_log_old()
522 IWL_ERR(trans, "Status: 0x%08lX, count: %d\n", in iwl_mvm_dump_nic_error_log_old()
[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()
Dmac80211.c221 iwl_trans_ref(mvm->trans); in iwl_mvm_ref()
233 iwl_trans_unref(mvm->trans); in iwl_mvm_unref()
252 iwl_trans_unref(mvm->trans); in iwl_mvm_unref_all_except()
328 regd = iwl_parse_nvm_mcc_info(mvm->trans->dev, mvm->cfg, in iwl_mvm_get_regdomain()
562 hw->wiphy->hw_version = mvm->trans->hw_id; in iwl_mvm_mac_setup_register()
611 device_can_wakeup(mvm->trans->dev)) { in iwl_mvm_mac_setup_register()
617 mvm->trans->ops->d3_suspend && in iwl_mvm_mac_setup_register()
618 mvm->trans->ops->d3_resume && in iwl_mvm_mac_setup_register()
619 device_can_wakeup(mvm->trans->dev)) { in iwl_mvm_mac_setup_register()
994 if (!iwl_trans_grab_nic_access(mvm->trans, false, &flags)) in iwl_mvm_dump_fifos()
[all …]
Dtx.c330 dev_cmd = iwl_trans_alloc_tx_cmd(mvm->trans); in iwl_mvm_set_tx_params()
419 if (iwl_trans_tx(mvm->trans, skb, dev_cmd, info->hw_queue)) { in iwl_mvm_tx_skb_non_sta()
420 iwl_trans_free_tx_cmd(mvm->trans, dev_cmd); in iwl_mvm_tx_skb_non_sta()
516 if (iwl_trans_tx(mvm->trans, skb, dev_cmd, txq_id)) in iwl_mvm_tx_skb()
530 iwl_trans_free_tx_cmd(mvm->trans, dev_cmd); in iwl_mvm_tx_skb()
694 iwl_trans_reclaim(mvm->trans, txq_id, ssn, &skbs); in iwl_mvm_rx_tx_cmd_single()
702 iwl_trans_free_tx_cmd(mvm->trans, info->driver_data[1]); in iwl_mvm_rx_tx_cmd_single()
1026 iwl_trans_reclaim(mvm->trans, scd_flow, ba_resp_scd_ssn, in iwl_mvm_rx_ba_notif()
1055 iwl_trans_free_tx_cmd(mvm->trans, info->driver_data[1]); in iwl_mvm_rx_ba_notif()
Dd3.c760 iwl_trans_stop_device(mvm->trans); in iwl_mvm_switch_to_d3()
1123 iwl_trans_d3_suspend(mvm->trans, test); in __iwl_mvm_suspend()
1167 ret = iwl_trans_suspend(mvm->trans); in iwl_mvm_suspend()
1171 mvm->trans->wowlan_d0i3 = wowlan->any; in iwl_mvm_suspend()
1172 if (mvm->trans->wowlan_d0i3) { in iwl_mvm_suspend()
1174 if (mvm->trans->d0i3_mode == IWL_D0I3_MODE_ON_SUSPEND) { in iwl_mvm_suspend()
1185 iwl_trans_d3_suspend(mvm->trans, false); in iwl_mvm_suspend()
1577 iwl_trans_read_mem_bytes(mvm->trans, base, in iwl_mvm_get_wakeup_status()
1853 iwl_trans_read_mem_bytes(mvm->trans, offs, mvm->d3_resume_sram, len); in iwl_mvm_read_d3_sram()
1882 ret = iwl_trans_d3_resume(mvm->trans, &d3_status, test); in __iwl_mvm_resume()
[all …]
Dmvm.h563 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()
876 iwl_force_nmi(mvm->trans); in iwl_dbgfs_fw_nmi_write()
1329 iwl_read_prph(mvm->trans, mvm->dbgfs_prph_reg_addr)); in iwl_dbgfs_prph_reg_read()
1357 iwl_write_prph(mvm->trans, mvm->dbgfs_prph_reg_addr, value); in iwl_dbgfs_prph_reg_write()
/linux-4.4.14/include/net/
Dswitchdev.h34 static inline bool switchdev_trans_ph_prepare(struct switchdev_trans *trans) in switchdev_trans_ph_prepare() argument
36 return trans && trans->ph_prepare; in switchdev_trans_ph_prepare()
39 static inline bool switchdev_trans_ph_commit(struct switchdev_trans *trans) in switchdev_trans_ph_commit() argument
41 return trans && !trans->ph_prepare; in switchdev_trans_ph_commit()
112 void switchdev_trans_item_enqueue(struct switchdev_trans *trans,
115 void *switchdev_trans_item_dequeue(struct switchdev_trans *trans);
137 struct switchdev_trans *trans);
140 struct switchdev_trans *trans);
Ddsa.h315 struct switchdev_trans *trans);
318 struct switchdev_trans *trans);
330 struct switchdev_trans *trans);
333 struct switchdev_trans *trans);
Daf_vsock.h71 void *trans; member
/linux-4.4.14/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()
1215 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()
2351 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.4.14/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_switchdev.c118 struct switchdev_trans *trans, in mlxsw_sp_port_attr_stp_state_set() argument
121 if (switchdev_trans_ph_prepare(trans)) in mlxsw_sp_port_attr_stp_state_set()
190 struct switchdev_trans *trans, in mlxsw_sp_port_attr_br_flags_set() argument
197 if (switchdev_trans_ph_prepare(trans)) in mlxsw_sp_port_attr_br_flags_set()
228 struct switchdev_trans *trans, in mlxsw_sp_port_attr_br_ageing_set() argument
235 if (switchdev_trans_ph_prepare(trans)) { in mlxsw_sp_port_attr_br_ageing_set()
248 struct switchdev_trans *trans) in mlxsw_sp_port_attr_set() argument
255 err = mlxsw_sp_port_attr_stp_state_set(mlxsw_sp_port, trans, in mlxsw_sp_port_attr_set()
259 err = mlxsw_sp_port_attr_br_flags_set(mlxsw_sp_port, trans, in mlxsw_sp_port_attr_set()
263 err = mlxsw_sp_port_attr_br_ageing_set(mlxsw_sp_port, trans, in mlxsw_sp_port_attr_set()
[all …]
/linux-4.4.14/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.4.14/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.4.14/drivers/spi/
Dspi-fsl-espi.c280 struct spi_transfer *t, *first, trans; in fsl_espi_do_trans() local
284 memset(&trans, 0, sizeof(trans)); in fsl_espi_do_trans()
297 trans.speed_hz = t->speed_hz; in fsl_espi_do_trans()
298 trans.bits_per_word = t->bits_per_word; in fsl_espi_do_trans()
299 trans.delay_usecs = max(first->delay_usecs, t->delay_usecs); in fsl_espi_do_trans()
302 trans.len = espi_trans->len; in fsl_espi_do_trans()
303 trans.tx_buf = espi_trans->tx_buf; in fsl_espi_do_trans()
304 trans.rx_buf = espi_trans->rx_buf; in fsl_espi_do_trans()
305 spi_message_add_tail(&trans, &message); in fsl_espi_do_trans()
333 struct fsl_espi_transfer *trans, u8 *rx_buff) in fsl_espi_cmd_trans() argument
[all …]
Dspi-mt65xx.c424 struct spi_transfer *trans = mdata->cur_transfer; in mtk_spi_interrupt() local
432 if (!master->can_dma(master, master->cur_msg->spi, trans)) { in mtk_spi_interrupt()
433 if (trans->rx_buf) { in mtk_spi_interrupt()
439 trans->rx_buf, cnt); in mtk_spi_interrupt()
446 trans->tx_dma += mdata->xfer_len; in mtk_spi_interrupt()
448 trans->rx_dma += mdata->xfer_len; in mtk_spi_interrupt()
453 trans->tx_dma = sg_dma_address(mdata->tx_sgl); in mtk_spi_interrupt()
460 trans->rx_dma = sg_dma_address(mdata->rx_sgl); in mtk_spi_interrupt()
478 mtk_spi_setup_dma_addr(master, trans); in mtk_spi_interrupt()
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.c481 struct spi_transfer *trans = drv_data->cur_transfer; in pxa2xx_spi_next_transfer() local
484 if (trans->transfer_list.next != &msg->transfers) { in pxa2xx_spi_next_transfer()
486 list_entry(trans->transfer_list.next, in pxa2xx_spi_next_transfer()
/linux-4.4.14/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.4.14/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.4.14/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 …]
/linux-4.4.14/net/dsa/
Dslave.c246 struct switchdev_trans *trans) in dsa_slave_port_vlan_add() argument
252 if (switchdev_trans_ph_prepare(trans)) { in dsa_slave_port_vlan_add()
265 err = ds->drv->port_vlan_prepare(ds, p->port, vlan, trans); in dsa_slave_port_vlan_add()
269 err = ds->drv->port_vlan_add(ds, p->port, vlan, trans); in dsa_slave_port_vlan_add()
334 struct switchdev_trans *trans) in dsa_slave_port_fdb_add() argument
343 if (switchdev_trans_ph_prepare(trans)) in dsa_slave_port_fdb_add()
344 ret = ds->drv->port_fdb_prepare(ds, p->port, fdb, trans); in dsa_slave_port_fdb_add()
346 ret = ds->drv->port_fdb_add(ds, p->port, fdb, trans); in dsa_slave_port_fdb_add()
426 struct switchdev_trans *trans) in dsa_slave_port_attr_set() argument
434 if (switchdev_trans_ph_prepare(trans)) in dsa_slave_port_attr_set()
[all …]
/linux-4.4.14/net/9p/
Dtrans_rdma.c238 struct p9_trans_rdma *rdma = c->trans; in p9_cm_event_handler()
345 struct p9_trans_rdma *rdma = client->trans; in cq_comp_handler()
401 struct p9_trans_rdma *rdma = client->trans; in post_recv()
429 struct p9_trans_rdma *rdma = client->trans; in rdma_request()
563 rdma = client->trans; in rdma_close()
609 struct p9_trans_rdma *rdma = client->trans; in rdma_cancelled()
664 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.4.14/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.4.14/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.4.14/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()
/linux-4.4.14/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.4.14/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.c654 saa7146_set_output_format(dev, vv->ov_fmt->trans); in saa7146_enable_overlay()
1012 saa7146_set_output_format(dev, sfmt->trans); in saa7146_set_capture()
1022 if( 0 != IS_PLANAR(sfmt->trans)) { in saa7146_set_capture()
/linux-4.4.14/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.4.14/drivers/gpu/drm/i915/
Di915_reg.h3037 #define HTOTAL(trans) _TRANSCODER2(trans, _HTOTAL_A) argument
3038 #define HBLANK(trans) _TRANSCODER2(trans, _HBLANK_A) argument
3039 #define HSYNC(trans) _TRANSCODER2(trans, _HSYNC_A) argument
3040 #define VTOTAL(trans) _TRANSCODER2(trans, _VTOTAL_A) argument
3041 #define VBLANK(trans) _TRANSCODER2(trans, _VBLANK_A) argument
3042 #define VSYNC(trans) _TRANSCODER2(trans, _VSYNC_A) argument
3043 #define BCLRPAT(trans) _TRANSCODER2(trans, _BCLRPAT_A) argument
3044 #define VSYNCSHIFT(trans) _TRANSCODER2(trans, _VSYNCSHIFT_A) argument
3045 #define PIPESRC(trans) _TRANSCODER2(trans, _PIPEASRC) argument
3046 #define PIPE_MULT(trans) _TRANSCODER2(trans, _PIPE_MULT_A) argument
[all …]
/linux-4.4.14/security/apparmor/include/
Dfile.h166 struct aa_domain trans; member
186 aa_free_domain_entries(&rules->trans); in aa_free_file_rules()
/linux-4.4.14/fs/hfs/
DMakefile9 part_tbl.o string.o super.o sysdep.o trans.o
/linux-4.4.14/drivers/net/dsa/
Dmv88e6xxx.h476 struct switchdev_trans *trans);
479 struct switchdev_trans *trans);
487 struct switchdev_trans *trans);
490 struct switchdev_trans *trans);
/linux-4.4.14/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.h65 int trans; member
/linux-4.4.14/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.4.14/drivers/pci/
Dxen-pcifront.c789 struct xenbus_transaction trans; in pcifront_publish_info() local
811 err = xenbus_transaction_start(&trans); in pcifront_publish_info()
819 err = xenbus_printf(trans, pdev->xdev->nodename, in pcifront_publish_info()
822 err = xenbus_printf(trans, pdev->xdev->nodename, in pcifront_publish_info()
825 err = xenbus_printf(trans, pdev->xdev->nodename, in pcifront_publish_info()
829 xenbus_transaction_end(trans, 1); in pcifront_publish_info()
834 err = xenbus_transaction_end(trans, 0); in pcifront_publish_info()
/linux-4.4.14/net/vmw_vsock/
Dvmci_transport.c836 struct vmci_transport *trans = client_data; in vmci_transport_peer_detach_cb() local
845 vmci_handle_is_equal(trans->qp_handle, e_payload->handle)) in vmci_transport_peer_detach_cb()
854 spin_lock_bh(&trans->lock); in vmci_transport_peer_detach_cb()
855 if (!trans->sk) in vmci_transport_peer_detach_cb()
861 bh_lock_sock(trans->sk); in vmci_transport_peer_detach_cb()
863 vmci_transport_handle_detach(trans->sk); in vmci_transport_peer_detach_cb()
865 bh_unlock_sock(trans->sk); in vmci_transport_peer_detach_cb()
867 spin_unlock_bh(&trans->lock); in vmci_transport_peer_detach_cb()
1559 vsk->trans = kmalloc(sizeof(struct vmci_transport), GFP_KERNEL); in vmci_transport_socket_init()
1560 if (!vsk->trans) in vmci_transport_socket_init()
[all …]
Dvmci_transport.h38 #define vmci_trans(_vsk) ((struct vmci_transport *)((_vsk)->trans))
/linux-4.4.14/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.4.14/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.4.14/drivers/mtd/nand/brcmnand/
Dbrcmnand.c1425 u64 addr, unsigned int trans, u32 *buf, in brcmnand_read_by_pio() argument
1440 for (i = 0; i < trans; i++, addr += FC_BYTES) { in brcmnand_read_by_pio()
1459 mtd->oobsize / trans, in brcmnand_read_by_pio()
1487 u64 addr, unsigned int trans, u32 *buf, u8 *oob) in brcmnand_read() argument
1499 err = brcmnand_dma_trans(host, addr, buf, trans * FC_BYTES, in brcmnand_read()
1511 err = brcmnand_read_by_pio(mtd, chip, addr, trans, buf, in brcmnand_read()
1596 unsigned int i, j, trans = mtd->writesize >> FC_SHIFT; in brcmnand_write() local
1622 for (i = 0; i < trans; i++, addr += FC_BYTES) { in brcmnand_write()
1642 mtd->oobsize / trans, in brcmnand_write()
/linux-4.4.14/arch/unicore32/mm/
Dalignment.c255 goto trans; in do_alignment_ldrstr()
263 trans: in do_alignment_ldrstr()
/linux-4.4.14/include/net/9p/
Dclient.h158 void *trans; member
/linux-4.4.14/include/media/
Dsaa7146_vv.h36 u32 trans; member
/linux-4.4.14/drivers/net/ethernet/synopsys/
Ddwc_eth_qos.c2180 struct dwceqos_tx trans; in dwceqos_start_xmit() local
2183 dwceqos_tx_prepare(skb, lp, &trans); in dwceqos_start_xmit()
2184 if (lp->tx_free < trans.nr_descriptors) { in dwceqos_start_xmit()
2189 err = dwceqos_tx_linear(skb, lp, &trans); in dwceqos_start_xmit()
2193 err = dwceqos_tx_frags(skb, lp, &trans); in dwceqos_start_xmit()
2198 ((trans.initial_descriptor + trans.nr_descriptors) % in dwceqos_start_xmit()
2201 dwceqos_tx_finalize(skb, lp, &trans); in dwceqos_start_xmit()
2206 lp->tx_free -= trans.nr_descriptors; in dwceqos_start_xmit()
2213 dwceqos_tx_rollback(lp, &trans); in dwceqos_start_xmit()
/linux-4.4.14/net/core/
Dfilter.c1000 bpf_aux_classic_check_t trans) in bpf_prepare_filter() argument
1016 if (trans) { in bpf_prepare_filter()
1017 err = trans(fp->insns, fp->len); in bpf_prepare_filter()
1094 bpf_aux_classic_check_t trans, bool save_orig) in bpf_prog_create_from_user() argument
1127 fp = bpf_prepare_filter(fp, trans); in bpf_prog_create_from_user()
/linux-4.4.14/arch/arm/mm/
Dalignment.c461 goto trans; in do_alignment_ldrstr()
471 trans: in do_alignment_ldrstr()
/linux-4.4.14/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.4.14/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()

12