session           134 arch/um/drivers/vector_transports.c 	uint32_t *session;
session           156 arch/um/drivers/vector_transports.c 	session = (uint32_t *) (header + td->session_offset);
session           157 arch/um/drivers/vector_transports.c 	if (*session != td->rx_session) {
session          1282 block/sed-opal.c 	lr = setup->session.opal_key.lr;
session          1426 block/sed-opal.c 	struct opal_session_info *session = data;
session          1428 block/sed-opal.c 	size_t keylen = session->opal_key.key_len;
session          1431 block/sed-opal.c 	u8 *key = session->opal_key.key;
session          1434 block/sed-opal.c 	if (session->sum)
session          1436 block/sed-opal.c 					 session->opal_key.lr);
session          1437 block/sed-opal.c 	else if (session->who != OPAL_ADMIN1 && !session->sum)
session          1439 block/sed-opal.c 					 session->who - 1);
session          1486 block/sed-opal.c 	struct opal_session_info *session = data;
session          1491 block/sed-opal.c 	uid[7] = session->who;
session          1514 block/sed-opal.c 	struct opal_session_info *session = data;
session          1518 block/sed-opal.c 	if (build_locking_range(uid, sizeof(uid), session->opal_key.lr) < 0)
session          1722 block/sed-opal.c 	lr_buffer[7] = lkul->session.opal_key.lr;
session          1726 block/sed-opal.c 	user_uid[7] = lkul->session.who;
session          1784 block/sed-opal.c 				lkul->session.opal_key.lr) < 0)
session          1843 block/sed-opal.c 				lkul->session.opal_key.lr) < 0)
session          2168 block/sed-opal.c 	suspend->lr = lk_unlk->session.opal_key.lr;
session          2182 block/sed-opal.c 		{ start_admin1LSP_opal_session, &lk_unlk->session.opal_key },
session          2194 block/sed-opal.c 	if (lk_unlk->session.who < OPAL_USER1 ||
session          2195 block/sed-opal.c 	    lk_unlk->session.who > OPAL_USER9) {
session          2197 block/sed-opal.c 			 lk_unlk->session.who);
session          2201 block/sed-opal.c 	if (lk_unlk->session.sum) {
session          2253 block/sed-opal.c 		{ start_auth_opal_session, &lk_unlk->session },
session          2258 block/sed-opal.c 		{ start_auth_opal_session, &lk_unlk->session },
session          2263 block/sed-opal.c 	if (lk_unlk->session.sum)
session          2288 block/sed-opal.c 	if (lk_unlk->session.who > OPAL_USER9)
session          2347 block/sed-opal.c 		{ start_auth_opal_session, &opal_lrs->session },
session          2364 block/sed-opal.c 		{ start_auth_opal_session, &opal_pw->session },
session          2370 block/sed-opal.c 	if (opal_pw->session.who > OPAL_USER9  ||
session          2429 block/sed-opal.c 				 suspend->unlk.session.opal_key.lr,
session          2430 block/sed-opal.c 				 suspend->unlk.session.sum);
session          2435 block/sed-opal.c 			ret = __opal_set_mbr_done(dev, &suspend->unlk.session.opal_key);
session           259 drivers/cdrom/gdrom.c static int gdrom_readtoc_cmd(struct gdromtoc *toc, int session)
session           270 drivers/cdrom/gdrom.c 	toc_command->cmd[1] = session;
session            87 drivers/char/hw_random/optee-rng.c 	inv_arg.session = pvt_data->session_id;
session           187 drivers/char/hw_random/optee-rng.c 	inv_arg.session = pvt_data.session_id;
session           240 drivers/char/hw_random/optee-rng.c 	pvt_data.session_id = sess_arg.session;
session            98 drivers/char/tpm/tpm_ftpm_tee.c 		.session = pvt_data->session,
session           255 drivers/char/tpm/tpm_ftpm_tee.c 	pvt_data->session = sess_arg.session;
session           293 drivers/char/tpm/tpm_ftpm_tee.c 	tee_client_close_session(pvt_data->ctx, pvt_data->session);
session           321 drivers/char/tpm/tpm_ftpm_tee.c 	tee_client_close_session(pvt_data->ctx, pvt_data->session);
session           340 drivers/char/tpm/tpm_ftpm_tee.c 	tee_client_close_session(pvt_data->ctx, pvt_data->session);
session            33 drivers/char/tpm/tpm_ftpm_tee.h 	u32 session;
session           548 drivers/crypto/hifn_795x.c 	volatile __le16		session;
session           489 drivers/infiniband/ulp/iser/iscsi_iser.c 	error = iser_alloc_rx_descriptors(iser_conn, conn->session);
session           627 drivers/infiniband/ulp/iser/iscsi_iser.h 			      struct iscsi_session *session);
session           240 drivers/infiniband/ulp/iser/iser_initiator.c 			      struct iscsi_session *session)
session           249 drivers/infiniband/ulp/iser/iser_initiator.c 	iser_conn->qp_max_recv_dtos = session->cmds_max;
session           250 drivers/infiniband/ulp/iser/iser_initiator.c 	iser_conn->qp_max_recv_dtos_mask = session->cmds_max - 1; /* cmds_max is 2^N */
session           253 drivers/infiniband/ulp/iser/iser_initiator.c 	if (device->reg_ops->alloc_reg_res(ib_conn, session->scsi_cmds_max,
session           260 drivers/infiniband/ulp/iser/iser_initiator.c 	iser_conn->num_rx_descs = session->cmds_max;
session           327 drivers/infiniband/ulp/iser/iser_initiator.c 	struct iscsi_session *session = conn->session;
session           340 drivers/infiniband/ulp/iser/iser_initiator.c 	if (session->discovery_sess) {
session           183 drivers/misc/fastrpc.c 	struct fastrpc_session_ctx session[FASTRPC_MAX_SESSIONS];
session          1084 drivers/misc/fastrpc.c 	struct fastrpc_session_ctx *session = NULL;
session          1090 drivers/misc/fastrpc.c 		if (!cctx->session[i].used && cctx->session[i].valid) {
session          1091 drivers/misc/fastrpc.c 			cctx->session[i].used = true;
session          1092 drivers/misc/fastrpc.c 			session = &cctx->session[i];
session          1098 drivers/misc/fastrpc.c 	return session;
session          1102 drivers/misc/fastrpc.c 				 struct fastrpc_session_ctx *session)
session          1107 drivers/misc/fastrpc.c 	session->used = false;
session          1339 drivers/misc/fastrpc.c 	sess = &cctx->session[cctx->sesscount];
session          1354 drivers/misc/fastrpc.c 			dup_sess = &cctx->session[cctx->sesscount];
session          1378 drivers/misc/fastrpc.c 		if (cctx->session[i].sid == sess->sid) {
session          1379 drivers/misc/fastrpc.c 			cctx->session[i].valid = false;
session           491 drivers/misc/ibmvmc.c 			struct ibmvmc_file_session *session = hmc->file_session;
session           493 drivers/misc/ibmvmc.c 			session->valid = 0;
session           579 drivers/misc/ibmvmc.c 	crq_msg.hmc_session = hmc->session;
session           623 drivers/misc/ibmvmc.c 	crq_msg.hmc_session = hmc->session;
session           801 drivers/misc/ibmvmc.c 	crq_msg.hmc_session = hmc->session;
session           827 drivers/misc/ibmvmc.c 	struct ibmvmc_file_session *session;
session           833 drivers/misc/ibmvmc.c 	session = kzalloc(sizeof(*session), GFP_KERNEL);
session           834 drivers/misc/ibmvmc.c 	if (!session)
session           837 drivers/misc/ibmvmc.c 	session->file = file;
session           838 drivers/misc/ibmvmc.c 	file->private_data = session;
session           855 drivers/misc/ibmvmc.c 	struct ibmvmc_file_session *session;
session           863 drivers/misc/ibmvmc.c 	session = file->private_data;
session           864 drivers/misc/ibmvmc.c 	if (!session)
session           867 drivers/misc/ibmvmc.c 	hmc = session->hmc;
session           886 drivers/misc/ibmvmc.c 	kzfree(session);
session           906 drivers/misc/ibmvmc.c 	struct ibmvmc_file_session *session;
session           928 drivers/misc/ibmvmc.c 	session = file->private_data;
session           929 drivers/misc/ibmvmc.c 	if (!session) {
session           934 drivers/misc/ibmvmc.c 	hmc = session->hmc;
session           956 drivers/misc/ibmvmc.c 		if (!session->valid) {
session          1007 drivers/misc/ibmvmc.c 	struct ibmvmc_file_session *session;
session          1011 drivers/misc/ibmvmc.c 	session = file->private_data;
session          1012 drivers/misc/ibmvmc.c 	if (!session)
session          1015 drivers/misc/ibmvmc.c 	hmc = session->hmc;
session          1043 drivers/misc/ibmvmc.c 	struct ibmvmc_file_session *session;
session          1053 drivers/misc/ibmvmc.c 	session = file->private_data;
session          1054 drivers/misc/ibmvmc.c 	if (!session)
session          1057 drivers/misc/ibmvmc.c 	hmc = session->hmc;
session          1147 drivers/misc/ibmvmc.c static long ibmvmc_setup_hmc(struct ibmvmc_file_session *session)
session          1182 drivers/misc/ibmvmc.c 	hmc->session = hmc->session + 1;
session          1183 drivers/misc/ibmvmc.c 	if (hmc->session == 0xff)
session          1184 drivers/misc/ibmvmc.c 		hmc->session = 1;
session          1186 drivers/misc/ibmvmc.c 	session->hmc = hmc;
session          1188 drivers/misc/ibmvmc.c 	hmc->file_session = session;
session          1189 drivers/misc/ibmvmc.c 	session->valid = 1;
session          1206 drivers/misc/ibmvmc.c static long ibmvmc_ioctl_sethmcid(struct ibmvmc_file_session *session,
session          1217 drivers/misc/ibmvmc.c 	hmc = session->hmc;
session          1219 drivers/misc/ibmvmc.c 		rc = ibmvmc_setup_hmc(session);
session          1223 drivers/misc/ibmvmc.c 		hmc = session->hmc;
session          1272 drivers/misc/ibmvmc.c static long ibmvmc_ioctl_query(struct ibmvmc_file_session *session,
session          1301 drivers/misc/ibmvmc.c static long ibmvmc_ioctl_requestvmc(struct ibmvmc_file_session *session,
session          1361 drivers/misc/ibmvmc.c 	struct ibmvmc_file_session *session = file->private_data;
session          1365 drivers/misc/ibmvmc.c 		 (unsigned long)session);
session          1367 drivers/misc/ibmvmc.c 	if (!session) {
session          1374 drivers/misc/ibmvmc.c 		return ibmvmc_ioctl_sethmcid(session,
session          1377 drivers/misc/ibmvmc.c 		return ibmvmc_ioctl_query(session,
session          1380 drivers/misc/ibmvmc.c 		return ibmvmc_ioctl_requestvmc(session,
session          1748 drivers/misc/ibmvmc.c 	if (hmcs[hmc_index].session != crq->hmc_session) {
session          1750 drivers/misc/ibmvmc.c 			 hmcs[hmc_index].session, crq->hmc_session);
session           185 drivers/misc/ibmvmc.h 	u8 session;
session           183 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c 	struct mlx5e_xdp_mpwqe *session = &sq->mpwqe;
session           194 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c 	session->wqe = mlx5e_xdpsq_fetch_wqe(sq, &pi);
session           196 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c 	prefetchw(session->wqe->data);
session           197 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c 	session->ds_count  = MLX5E_XDP_TX_EMPTY_DS_COUNT;
session           198 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c 	session->pkt_count = 0;
session           208 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c 	struct mlx5e_xdp_mpwqe *session = &sq->mpwqe;
session           209 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c 	struct mlx5_wqe_ctrl_seg *cseg = &session->wqe->ctrl;
session           210 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c 	u16 ds_count = session->ds_count;
session           219 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c 	wi->num_pkts   = session->pkt_count;
session           225 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c 	session->wqe = NULL; /* Close session */
session           255 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c 	struct mlx5e_xdp_mpwqe *session = &sq->mpwqe;
session           278 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c 	if (unlikely(mlx5e_xdp_no_room_for_inline_pkt(session) ||
session           279 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c 		     session->ds_count == MLX5E_XDP_MPW_MAX_NUM_DS))
session           117 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h 	struct mlx5e_xdp_mpwqe *session = &sq->mpwqe;
session           122 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h 	if (session->inline_on) {
session           124 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h 			session->inline_on = 0;
session           130 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h 		session->inline_on = 1;
session           134 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h mlx5e_xdp_no_room_for_inline_pkt(struct mlx5e_xdp_mpwqe *session)
session           136 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h 	return session->inline_on &&
session           137 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h 	       session->ds_count + MLX5E_XDP_INLINE_WQE_MAX_DS_CNT > MLX5E_XDP_MPW_MAX_NUM_DS;
session           162 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h 	struct mlx5e_xdp_mpwqe *session = &sq->mpwqe;
session           164 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h 		(struct mlx5_wqe_data_seg *)session->wqe + session->ds_count;
session           167 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h 	session->pkt_count++;
session           169 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h 	if (session->inline_on && dma_len <= MLX5E_XDP_INLINE_WQE_SZ_THRSD) {
session           178 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h 		session->ds_count += ds_cnt;
session           186 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h 	session->ds_count++;
session            73 drivers/net/fddi/skfp/h/sba.h 	struct s_sba_sessions	session[MAX_SESSIONS] ;
session           501 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c void brcms_c_ampdu_reset_session(struct brcms_ampdu_session *session,
session           504 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 	session->wlc = wlc;
session           505 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 	skb_queue_head_init(&session->skb_list);
session           506 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 	session->max_ampdu_len = 0;    /* determined from first MPDU */
session           507 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 	session->max_ampdu_frames = 0; /* determined from first MPDU */
session           508 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 	session->ampdu_len = 0;
session           509 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 	session->dma_len = 0;
session           517 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c int brcms_c_ampdu_add_frame(struct brcms_ampdu_session *session,
session           520 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 	struct brcms_c_info *wlc = session->wlc;
session           542 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 	ampdu_frames = skb_queue_len(&session->skb_list);
session           546 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 		if (ampdu_frames + 1 > session->max_ampdu_frames ||
session           547 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 		    session->ampdu_len + len > session->max_ampdu_len)
session           558 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 		first = skb_peek(&session->skb_list);
session           567 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 	session->ampdu_len += len;
session           568 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 	session->dma_len += p->len;
session           599 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 		session->max_ampdu_len = min(scb_ampdu->max_rx_ampdu_bytes,
session           602 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 		session->max_ampdu_frames = scb_ampdu->max_pdu;
session           604 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 			session->max_ampdu_frames =
session           606 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 				      session->max_ampdu_frames);
session           621 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 	skb_queue_tail(&session->skb_list, p);
session           626 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c void brcms_c_ampdu_finalize(struct brcms_ampdu_session *session)
session           628 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 	struct brcms_c_info *wlc = session->wlc;
session           644 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 	u16 dma_len = session->dma_len;
session           655 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 	if (skb_queue_empty(&session->skb_list))
session           658 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 	first = skb_peek(&session->skb_list);
session           659 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 	last = skb_peek_tail(&session->skb_list);
session           674 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 	session->ampdu_len -= ndelim * AMPDU_DELIMITER_LEN;
session           680 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 	session->ampdu_len -= roundup(len, 4) - len;
session           751 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 	BRCMS_SET_MIMO_PLCP_LEN(plcp, session->ampdu_len);
session           758 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 						     session->ampdu_len);
session           764 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 						     session->ampdu_len);
session           793 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 						   session->ampdu_len, true);
session           800 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 						   session->ampdu_len, true);
session           817 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 		     wlc->pub->unit, skb_queue_len(&session->skb_list),
session           818 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c 		     session->ampdu_len);
session            40 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.h void brcms_c_ampdu_reset_session(struct brcms_ampdu_session *session,
session            42 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.h int brcms_c_ampdu_add_frame(struct brcms_ampdu_session *session,
session            44 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.h void brcms_c_ampdu_finalize(struct brcms_ampdu_session *session);
session          1319 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	struct brcms_ampdu_session *session = &di->ampdu_session;
session          1322 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	trace_brcms_ampdu_session(&session->wlc->hw->d11core->dev,
session          1323 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 				  session->max_ampdu_len,
session          1324 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 				  session->max_ampdu_frames,
session          1325 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 				  session->ampdu_len,
session          1326 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 				  skb_queue_len(&session->skb_list),
session          1327 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 				  session->dma_len);
session          1329 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	if (WARN_ON(skb_queue_empty(&session->skb_list)))
session          1332 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	brcms_c_ampdu_finalize(session);
session          1334 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	while (!skb_queue_empty(&session->skb_list)) {
session          1335 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 		p = skb_dequeue(&session->skb_list);
session          1341 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	brcms_c_ampdu_reset_session(session, session->wlc);
session          1346 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	struct brcms_ampdu_session *session = &di->ampdu_session;
session          1349 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	ret = brcms_c_ampdu_add_frame(session, p);
session          1356 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 		ret = brcms_c_ampdu_add_frame(session, p);
session          1383 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	struct brcms_ampdu_session *session = &di->ampdu_session;
session          1412 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 		if (skb_queue_len(&session->skb_list) == session->max_ampdu_frames ||
session          1433 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	struct brcms_ampdu_session *session = &di->ampdu_session;
session          1435 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	if (!skb_queue_empty(&session->skb_list))
session          1452 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	struct brcms_ampdu_session *session = &di->ampdu_session;
session          1454 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c 	if (!skb_queue_empty(&session->skb_list) && dma64_txidle(di))
session           447 drivers/net/wireless/ti/wlcore/cmd.c 	cmd->device.session = wl->session_ids[wlvif->dev_hlid];
session           450 drivers/net/wireless/ti/wlcore/cmd.c 		     cmd->role_id, cmd->device.hlid, cmd->device.session);
session           548 drivers/net/wireless/ti/wlcore/cmd.c 	cmd->sta.session = wl->session_ids[wlvif->sta.hlid];
session           559 drivers/net/wireless/ti/wlcore/cmd.c 		     wlvif->role_id, cmd->sta.hlid, cmd->sta.session,
session           797 drivers/net/wireless/ti/wlcore/cmd.c 		     wlvif->role_id, cmd->sta.hlid, cmd->sta.session,
session           301 drivers/net/wireless/ti/wlcore/cmd.h 			u8 session;
session           308 drivers/net/wireless/ti/wlcore/cmd.h 			u8 session;
session            60 drivers/s390/char/vmcp.c static void vmcp_response_alloc(struct vmcp_session *session)
session            65 drivers/s390/char/vmcp.c 	order = get_order(session->bufsize);
session            66 drivers/s390/char/vmcp.c 	nr_pages = ALIGN(session->bufsize, PAGE_SIZE) >> PAGE_SHIFT;
session            75 drivers/s390/char/vmcp.c 		session->response = (char *)page_to_phys(page);
session            76 drivers/s390/char/vmcp.c 		session->cma_alloc = 1;
session            79 drivers/s390/char/vmcp.c 	session->response = (char *)__get_free_pages(GFP_KERNEL | __GFP_RETRY_MAYFAIL, order);
session            82 drivers/s390/char/vmcp.c static void vmcp_response_free(struct vmcp_session *session)
session            87 drivers/s390/char/vmcp.c 	if (!session->response)
session            89 drivers/s390/char/vmcp.c 	order = get_order(session->bufsize);
session            90 drivers/s390/char/vmcp.c 	nr_pages = ALIGN(session->bufsize, PAGE_SIZE) >> PAGE_SHIFT;
session            91 drivers/s390/char/vmcp.c 	if (session->cma_alloc) {
session            92 drivers/s390/char/vmcp.c 		page = phys_to_page((unsigned long)session->response);
session            94 drivers/s390/char/vmcp.c 		session->cma_alloc = 0;
session            96 drivers/s390/char/vmcp.c 		free_pages((unsigned long)session->response, order);
session            98 drivers/s390/char/vmcp.c 	session->response = NULL;
session           103 drivers/s390/char/vmcp.c 	struct vmcp_session *session;
session           108 drivers/s390/char/vmcp.c 	session = kmalloc(sizeof(*session), GFP_KERNEL);
session           109 drivers/s390/char/vmcp.c 	if (!session)
session           112 drivers/s390/char/vmcp.c 	session->bufsize = PAGE_SIZE;
session           113 drivers/s390/char/vmcp.c 	session->response = NULL;
session           114 drivers/s390/char/vmcp.c 	session->resp_size = 0;
session           115 drivers/s390/char/vmcp.c 	mutex_init(&session->mutex);
session           116 drivers/s390/char/vmcp.c 	file->private_data = session;
session           122 drivers/s390/char/vmcp.c 	struct vmcp_session *session;
session           124 drivers/s390/char/vmcp.c 	session = file->private_data;
session           126 drivers/s390/char/vmcp.c 	vmcp_response_free(session);
session           127 drivers/s390/char/vmcp.c 	kfree(session);
session           136 drivers/s390/char/vmcp.c 	struct vmcp_session *session;
session           138 drivers/s390/char/vmcp.c 	session = file->private_data;
session           139 drivers/s390/char/vmcp.c 	if (mutex_lock_interruptible(&session->mutex))
session           141 drivers/s390/char/vmcp.c 	if (!session->response) {
session           142 drivers/s390/char/vmcp.c 		mutex_unlock(&session->mutex);
session           145 drivers/s390/char/vmcp.c 	size = min_t(size_t, session->resp_size, session->bufsize);
session           147 drivers/s390/char/vmcp.c 					session->response, size);
session           149 drivers/s390/char/vmcp.c 	mutex_unlock(&session->mutex);
session           159 drivers/s390/char/vmcp.c 	struct vmcp_session *session;
session           166 drivers/s390/char/vmcp.c 	session = file->private_data;
session           167 drivers/s390/char/vmcp.c 	if (mutex_lock_interruptible(&session->mutex)) {
session           171 drivers/s390/char/vmcp.c 	if (!session->response)
session           172 drivers/s390/char/vmcp.c 		vmcp_response_alloc(session);
session           173 drivers/s390/char/vmcp.c 	if (!session->response) {
session           174 drivers/s390/char/vmcp.c 		mutex_unlock(&session->mutex);
session           179 drivers/s390/char/vmcp.c 	session->resp_size = cpcmd(cmd, session->response, session->bufsize,
session           180 drivers/s390/char/vmcp.c 				   &session->resp_code);
session           181 drivers/s390/char/vmcp.c 	mutex_unlock(&session->mutex);
session           202 drivers/s390/char/vmcp.c 	struct vmcp_session *session;
session           206 drivers/s390/char/vmcp.c 	session = file->private_data;
session           211 drivers/s390/char/vmcp.c 	if (mutex_lock_interruptible(&session->mutex))
session           215 drivers/s390/char/vmcp.c 		ret = put_user(session->resp_code, argp);
session           218 drivers/s390/char/vmcp.c 		vmcp_response_free(session);
session           219 drivers/s390/char/vmcp.c 		ret = get_user(session->bufsize, argp);
session           221 drivers/s390/char/vmcp.c 			session->bufsize = PAGE_SIZE;
session           222 drivers/s390/char/vmcp.c 		if (!session->bufsize || get_order(session->bufsize) > 8) {
session           223 drivers/s390/char/vmcp.c 			session->bufsize = PAGE_SIZE;
session           228 drivers/s390/char/vmcp.c 		ret = put_user(session->resp_size, argp);
session           233 drivers/s390/char/vmcp.c 	mutex_unlock(&session->mutex);
session           646 drivers/scsi/be2iscsi/be_iscsi.c 	struct iscsi_session *session = conn->session;
session           664 drivers/scsi/be2iscsi/be_iscsi.c 		if (session->first_burst > 8192)
session           665 drivers/scsi/be2iscsi/be_iscsi.c 			session->first_burst = 8192;
session           672 drivers/scsi/be2iscsi/be_iscsi.c 		if (session->max_burst > 262144)
session           673 drivers/scsi/be2iscsi/be_iscsi.c 			session->max_burst = 262144;
session           850 drivers/scsi/be2iscsi/be_iscsi.c 	struct iscsi_session *session = conn->session;
session           853 drivers/scsi/be2iscsi/be_iscsi.c 		      params, session->max_burst);
session           858 drivers/scsi/be2iscsi/be_iscsi.c 		      params, session->first_burst);
session           860 drivers/scsi/be2iscsi/be_iscsi.c 		      session->erl);
session           866 drivers/scsi/be2iscsi/be_iscsi.c 		      session->initial_r2t_en);
session           868 drivers/scsi/be2iscsi/be_iscsi.c 		      session->imm_data_en);
session           871 drivers/scsi/be2iscsi/be_iscsi.c 		      session->dataseq_inorder_en);
session           874 drivers/scsi/be2iscsi/be_iscsi.c 		      session->pdu_inorder_en);
session           876 drivers/scsi/be2iscsi/be_iscsi.c 		      session->max_r2t);
session           223 drivers/scsi/be2iscsi/be_main.c 	struct iscsi_session *session;
session           230 drivers/scsi/be2iscsi/be_main.c 	session = cls_session->dd_data;
session           233 drivers/scsi/be2iscsi/be_main.c 	spin_lock_bh(&session->back_lock);
session           235 drivers/scsi/be2iscsi/be_main.c 		spin_unlock_bh(&session->back_lock);
session           254 drivers/scsi/be2iscsi/be_main.c 	spin_unlock_bh(&session->back_lock);
session           277 drivers/scsi/be2iscsi/be_main.c 	struct iscsi_session *session;
session           285 drivers/scsi/be2iscsi/be_main.c 	session = cls_session->dd_data;
session           287 drivers/scsi/be2iscsi/be_main.c 	spin_lock_bh(&session->frwd_lock);
session           288 drivers/scsi/be2iscsi/be_main.c 	if (!session->leadconn || session->state != ISCSI_STATE_LOGGED_IN) {
session           289 drivers/scsi/be2iscsi/be_main.c 		spin_unlock_bh(&session->frwd_lock);
session           293 drivers/scsi/be2iscsi/be_main.c 	conn = session->leadconn;
session           299 drivers/scsi/be2iscsi/be_main.c 		spin_unlock_bh(&session->frwd_lock);
session           306 drivers/scsi/be2iscsi/be_main.c 	spin_lock(&session->back_lock);
session           307 drivers/scsi/be2iscsi/be_main.c 	for (i = 0; i < conn->session->cmds_max; i++) {
session           308 drivers/scsi/be2iscsi/be_main.c 		task = conn->session->cmds[i];
session           340 drivers/scsi/be2iscsi/be_main.c 	spin_unlock(&session->back_lock);
session           341 drivers/scsi/be2iscsi/be_main.c 	spin_unlock_bh(&session->frwd_lock);
session          1223 drivers/scsi/be2iscsi/be_main.c 	struct iscsi_session *session;
session          1242 drivers/scsi/be2iscsi/be_main.c 	session = beiscsi_conn->conn->session;
session          1243 drivers/scsi/be2iscsi/be_main.c 	spin_lock_bh(&session->back_lock);
session          1247 drivers/scsi/be2iscsi/be_main.c 	spin_unlock_bh(&session->back_lock);
session          1328 drivers/scsi/be2iscsi/be_main.c 	struct iscsi_session *session = conn->session;
session          1348 drivers/scsi/be2iscsi/be_main.c 	spin_lock_bh(&session->back_lock);
session          1351 drivers/scsi/be2iscsi/be_main.c 		spin_unlock_bh(&session->back_lock);
session          1394 drivers/scsi/be2iscsi/be_main.c 	spin_unlock_bh(&session->back_lock);
session          1591 drivers/scsi/be2iscsi/be_main.c 	struct iscsi_session *session = beiscsi_conn->conn->session;
session          1632 drivers/scsi/be2iscsi/be_main.c 	spin_lock_bh(&session->back_lock);
session          1634 drivers/scsi/be2iscsi/be_main.c 	spin_unlock_bh(&session->back_lock);
session          4306 drivers/scsi/be2iscsi/be_main.c 	struct iscsi_session *session = task->conn->session;
session          4314 drivers/scsi/be2iscsi/be_main.c 	spin_lock_bh(&session->back_lock);
session          4316 drivers/scsi/be2iscsi/be_main.c 	spin_unlock_bh(&session->back_lock);
session          4360 drivers/scsi/be2iscsi/be_main.c 		*age = conn->session->age;
session           772 drivers/scsi/bnx2i/bnx2i.h 	struct iscsi_session *session;
session           833 drivers/scsi/bnx2i/bnx2i.h void bnx2i_drop_session(struct iscsi_cls_session *session);
session           879 drivers/scsi/bnx2i/bnx2i.h extern int bnx2i_process_scsi_cmd_resp(struct iscsi_session *session,
session           653 drivers/scsi/bnx2i/bnx2i_hwi.c 	if (conn->session->initial_r2t_en)
session           655 drivers/scsi/bnx2i/bnx2i_hwi.c 	if (conn->session->imm_data_en)
session           660 drivers/scsi/bnx2i/bnx2i_hwi.c 	update_wqe->first_burst_length = conn->session->first_burst;
session           661 drivers/scsi/bnx2i/bnx2i_hwi.c 	update_wqe->max_burst_length = conn->session->max_burst;
session           663 drivers/scsi/bnx2i/bnx2i_hwi.c 	update_wqe->max_outstanding_r2ts = conn->session->max_r2t;
session           664 drivers/scsi/bnx2i/bnx2i_hwi.c 	update_wqe->session_error_recovery_level = conn->session->erl;
session          1335 drivers/scsi/bnx2i/bnx2i_hwi.c int bnx2i_process_scsi_cmd_resp(struct iscsi_session *session,
session          1348 drivers/scsi/bnx2i/bnx2i_hwi.c 	spin_lock_bh(&session->back_lock);
session          1419 drivers/scsi/bnx2i/bnx2i_hwi.c 	spin_unlock_bh(&session->back_lock);
session          1432 drivers/scsi/bnx2i/bnx2i_hwi.c static int bnx2i_process_login_resp(struct iscsi_session *session,
session          1444 drivers/scsi/bnx2i/bnx2i_hwi.c 	spin_lock(&session->back_lock);
session          1487 drivers/scsi/bnx2i/bnx2i_hwi.c 	spin_unlock(&session->back_lock);
session          1500 drivers/scsi/bnx2i/bnx2i_hwi.c static int bnx2i_process_text_resp(struct iscsi_session *session,
session          1512 drivers/scsi/bnx2i/bnx2i_hwi.c 	spin_lock(&session->back_lock);
session          1548 drivers/scsi/bnx2i/bnx2i_hwi.c 	spin_unlock(&session->back_lock);
session          1561 drivers/scsi/bnx2i/bnx2i_hwi.c static int bnx2i_process_tmf_resp(struct iscsi_session *session,
session          1571 drivers/scsi/bnx2i/bnx2i_hwi.c 	spin_lock(&session->back_lock);
session          1587 drivers/scsi/bnx2i/bnx2i_hwi.c 	spin_unlock(&session->back_lock);
session          1600 drivers/scsi/bnx2i/bnx2i_hwi.c static int bnx2i_process_logout_resp(struct iscsi_session *session,
session          1610 drivers/scsi/bnx2i/bnx2i_hwi.c 	spin_lock(&session->back_lock);
session          1634 drivers/scsi/bnx2i/bnx2i_hwi.c 	spin_unlock(&session->back_lock);
session          1646 drivers/scsi/bnx2i/bnx2i_hwi.c static void bnx2i_process_nopin_local_cmpl(struct iscsi_session *session,
session          1655 drivers/scsi/bnx2i/bnx2i_hwi.c 	spin_lock(&session->back_lock);
session          1660 drivers/scsi/bnx2i/bnx2i_hwi.c 	spin_unlock(&session->back_lock);
session          1687 drivers/scsi/bnx2i/bnx2i_hwi.c static int bnx2i_process_nopin_mesg(struct iscsi_session *session,
session          1699 drivers/scsi/bnx2i/bnx2i_hwi.c 	spin_lock(&session->back_lock);
session          1725 drivers/scsi/bnx2i/bnx2i_hwi.c 	spin_unlock(&session->back_lock);
session          1739 drivers/scsi/bnx2i/bnx2i_hwi.c static void bnx2i_process_async_mesg(struct iscsi_session *session,
session          1758 drivers/scsi/bnx2i/bnx2i_hwi.c 	spin_lock(&session->back_lock);
session          1777 drivers/scsi/bnx2i/bnx2i_hwi.c 	spin_unlock(&session->back_lock);
session          1789 drivers/scsi/bnx2i/bnx2i_hwi.c static void bnx2i_process_reject_mesg(struct iscsi_session *session,
session          1804 drivers/scsi/bnx2i/bnx2i_hwi.c 	spin_lock(&session->back_lock);
session          1815 drivers/scsi/bnx2i/bnx2i_hwi.c 	spin_unlock(&session->back_lock);
session          1826 drivers/scsi/bnx2i/bnx2i_hwi.c static void bnx2i_process_cmd_cleanup_resp(struct iscsi_session *session,
session          1835 drivers/scsi/bnx2i/bnx2i_hwi.c 	spin_lock(&session->back_lock);
session          1841 drivers/scsi/bnx2i/bnx2i_hwi.c 	spin_unlock(&session->back_lock);
session          1868 drivers/scsi/bnx2i/bnx2i_hwi.c 				bnx2i_process_scsi_cmd_resp(work->session,
session          1897 drivers/scsi/bnx2i/bnx2i_hwi.c static int bnx2i_queue_scsi_cmd_resp(struct iscsi_session *session,
session          1907 drivers/scsi/bnx2i/bnx2i_hwi.c 	spin_lock(&session->back_lock);
session          1911 drivers/scsi/bnx2i/bnx2i_hwi.c 		spin_unlock(&session->back_lock);
session          1916 drivers/scsi/bnx2i/bnx2i_hwi.c 	spin_unlock(&session->back_lock);
session          1928 drivers/scsi/bnx2i/bnx2i_hwi.c 		bnx2i_work->session = session;
session          1940 drivers/scsi/bnx2i/bnx2i_hwi.c 	bnx2i_process_scsi_cmd_resp(session, bnx2i_conn, (struct cqe *)cqe);
session          1955 drivers/scsi/bnx2i/bnx2i_hwi.c 	struct iscsi_session *session = conn->session;
session          1996 drivers/scsi/bnx2i/bnx2i_hwi.c 			bnx2i_queue_scsi_cmd_resp(session, bnx2i_conn, nopin);
session          1999 drivers/scsi/bnx2i/bnx2i_hwi.c 			bnx2i_process_login_resp(session, bnx2i_conn,
session          2003 drivers/scsi/bnx2i/bnx2i_hwi.c 			bnx2i_process_tmf_resp(session, bnx2i_conn,
session          2007 drivers/scsi/bnx2i/bnx2i_hwi.c 			bnx2i_process_text_resp(session, bnx2i_conn,
session          2011 drivers/scsi/bnx2i/bnx2i_hwi.c 			bnx2i_process_logout_resp(session, bnx2i_conn,
session          2015 drivers/scsi/bnx2i/bnx2i_hwi.c 			if (bnx2i_process_nopin_mesg(session, bnx2i_conn,
session          2020 drivers/scsi/bnx2i/bnx2i_hwi.c 			bnx2i_process_nopin_local_cmpl(session, bnx2i_conn,
session          2024 drivers/scsi/bnx2i/bnx2i_hwi.c 			bnx2i_process_async_mesg(session, bnx2i_conn,
session          2029 drivers/scsi/bnx2i/bnx2i_hwi.c 			bnx2i_process_reject_mesg(session, bnx2i_conn,
session          2033 drivers/scsi/bnx2i/bnx2i_hwi.c 			bnx2i_process_cmd_cleanup_resp(session, bnx2i_conn,
session           446 drivers/scsi/bnx2i/bnx2i_init.c 		bnx2i_process_scsi_cmd_resp(work->session,
session           114 drivers/scsi/bnx2i/bnx2i_iscsi.c 		if ((start_bd_offset > task->conn->session->first_burst) ||
session           444 drivers/scsi/bnx2i/bnx2i_iscsi.c static int bnx2i_alloc_bdt(struct bnx2i_hba *hba, struct iscsi_session *session,
session           454 drivers/scsi/bnx2i/bnx2i_iscsi.c 		iscsi_session_printk(KERN_ERR, session, "Could not "
session           469 drivers/scsi/bnx2i/bnx2i_iscsi.c 				   struct iscsi_session *session)
session           473 drivers/scsi/bnx2i/bnx2i_iscsi.c 	for (i = 0; i < session->cmds_max; i++) {
session           474 drivers/scsi/bnx2i/bnx2i_iscsi.c 		struct iscsi_task *task = session->cmds[i];
session           494 drivers/scsi/bnx2i/bnx2i_iscsi.c 				struct iscsi_session *session)
session           498 drivers/scsi/bnx2i/bnx2i_iscsi.c 	for (i = 0; i < session->cmds_max; i++) {
session           499 drivers/scsi/bnx2i/bnx2i_iscsi.c 		struct iscsi_task *task = session->cmds[i];
session           505 drivers/scsi/bnx2i/bnx2i_iscsi.c 		if (bnx2i_alloc_bdt(hba, session, cmd))
session           512 drivers/scsi/bnx2i/bnx2i_iscsi.c 	bnx2i_destroy_cmd_pool(hba, session);
session          1175 drivers/scsi/bnx2i/bnx2i_iscsi.c 		spin_unlock_bh(&conn->session->back_lock);
session          1176 drivers/scsi/bnx2i/bnx2i_iscsi.c 		spin_unlock_bh(&conn->session->frwd_lock);
session          1179 drivers/scsi/bnx2i/bnx2i_iscsi.c 		spin_lock_bh(&conn->session->frwd_lock);
session          1180 drivers/scsi/bnx2i/bnx2i_iscsi.c 		spin_lock_bh(&conn->session->back_lock);
session          1226 drivers/scsi/bnx2i/bnx2i_iscsi.c 	struct iscsi_session *session = conn->session;
session          1227 drivers/scsi/bnx2i/bnx2i_iscsi.c 	struct Scsi_Host *shost = iscsi_session_to_shost(session->cls_session);
session          1341 drivers/scsi/bnx2i/bnx2i_iscsi.c 	struct iscsi_session *session = cls_session->dd_data;
session          1345 drivers/scsi/bnx2i/bnx2i_iscsi.c 	bnx2i_destroy_cmd_pool(hba, session);
session          1496 drivers/scsi/bnx2i/bnx2i_iscsi.c 				if (work->session == conn->session &&
session          2027 drivers/scsi/bnx2i/bnx2i_iscsi.c 	struct iscsi_session *session = NULL;
session          2049 drivers/scsi/bnx2i/bnx2i_iscsi.c 		session = conn->session;
session          2059 drivers/scsi/bnx2i/bnx2i_iscsi.c 	if (session) {
session          2060 drivers/scsi/bnx2i/bnx2i_iscsi.c 		spin_lock_bh(&session->frwd_lock);
session          2062 drivers/scsi/bnx2i/bnx2i_iscsi.c 			if (session->state == ISCSI_STATE_LOGGING_OUT) {
session          2076 drivers/scsi/bnx2i/bnx2i_iscsi.c 		spin_unlock_bh(&session->frwd_lock);
session          1462 drivers/scsi/cxgbi/libcxgbi.c 	struct iscsi_session *sess = conn->session;
session          2401 drivers/scsi/cxgbi/libcxgbi.c 	cconn->task_idx_bits = (__ilog2_u32(conn->session->cmds_max - 1)) + 1;
session          2431 drivers/scsi/cxgbi/libcxgbi.c 	struct iscsi_session *session;
session          2452 drivers/scsi/cxgbi/libcxgbi.c 	session = cls_session->dd_data;
session          2453 drivers/scsi/cxgbi/libcxgbi.c 	if (iscsi_tcp_r2tpool_alloc(session))
session           116 drivers/scsi/iscsi_tcp.c 	    (conn->session->state != ISCSI_STATE_LOGGING_OUT) &&
session           595 drivers/scsi/iscsi_tcp.c 	struct iscsi_session *session = conn->session;
session           607 drivers/scsi/iscsi_tcp.c 	spin_lock_bh(&session->frwd_lock);
session           609 drivers/scsi/iscsi_tcp.c 	spin_unlock_bh(&session->frwd_lock);
session           661 drivers/scsi/iscsi_tcp.c 	struct iscsi_session *session = cls_session->dd_data;
session           681 drivers/scsi/iscsi_tcp.c 	spin_lock_bh(&session->frwd_lock);
session           684 drivers/scsi/iscsi_tcp.c 	spin_unlock_bh(&session->frwd_lock);
session           745 drivers/scsi/iscsi_tcp.c 		spin_lock_bh(&conn->session->frwd_lock);
session           747 drivers/scsi/iscsi_tcp.c 			spin_unlock_bh(&conn->session->frwd_lock);
session           756 drivers/scsi/iscsi_tcp.c 		spin_unlock_bh(&conn->session->frwd_lock);
session           773 drivers/scsi/iscsi_tcp.c 	struct iscsi_session *session = tcp_sw_host->session;
session           782 drivers/scsi/iscsi_tcp.c 		if (!session)
session           785 drivers/scsi/iscsi_tcp.c 		spin_lock_bh(&session->frwd_lock);
session           786 drivers/scsi/iscsi_tcp.c 		conn = session->leadconn;
session           788 drivers/scsi/iscsi_tcp.c 			spin_unlock_bh(&session->frwd_lock);
session           795 drivers/scsi/iscsi_tcp.c 			spin_unlock_bh(&session->frwd_lock);
session           801 drivers/scsi/iscsi_tcp.c 		spin_unlock_bh(&session->frwd_lock);
session           839 drivers/scsi/iscsi_tcp.c 	struct iscsi_session *session;
session           869 drivers/scsi/iscsi_tcp.c 	session = cls_session->dd_data;
session           871 drivers/scsi/iscsi_tcp.c 	tcp_sw_host->session = session;
session           873 drivers/scsi/iscsi_tcp.c 	shost->can_queue = session->scsi_cmds_max;
session           874 drivers/scsi/iscsi_tcp.c 	if (iscsi_tcp_r2tpool_alloc(session))
session           890 drivers/scsi/iscsi_tcp.c 	struct iscsi_session *session = cls_session->dd_data;
session           892 drivers/scsi/iscsi_tcp.c 	if (WARN_ON_ONCE(session->leadconn))
session           961 drivers/scsi/iscsi_tcp.c 	struct iscsi_session *session = tcp_sw_host->session;
session           962 drivers/scsi/iscsi_tcp.c 	struct iscsi_conn *conn = session->leadconn;
session            50 drivers/scsi/iscsi_tcp.h 	struct iscsi_session	*session;
session            88 drivers/scsi/libiscsi.c 	struct Scsi_Host *shost = conn->session->host;
session            96 drivers/scsi/libiscsi.c static void __iscsi_update_cmdsn(struct iscsi_session *session,
session           106 drivers/scsi/libiscsi.c 	if (exp_cmdsn != session->exp_cmdsn &&
session           107 drivers/scsi/libiscsi.c 	    !iscsi_sna_lt(exp_cmdsn, session->exp_cmdsn))
session           108 drivers/scsi/libiscsi.c 		session->exp_cmdsn = exp_cmdsn;
session           110 drivers/scsi/libiscsi.c 	if (max_cmdsn != session->max_cmdsn &&
session           111 drivers/scsi/libiscsi.c 	    !iscsi_sna_lt(max_cmdsn, session->max_cmdsn))
session           112 drivers/scsi/libiscsi.c 		session->max_cmdsn = max_cmdsn;
session           115 drivers/scsi/libiscsi.c void iscsi_update_cmdsn(struct iscsi_session *session, struct iscsi_nopin *hdr)
session           117 drivers/scsi/libiscsi.c 	__iscsi_update_cmdsn(session, be32_to_cpu(hdr->exp_cmdsn),
session           210 drivers/scsi/libiscsi.c 	ISCSI_DBG_SESSION(task->conn->session,
session           269 drivers/scsi/libiscsi.c 		if (conn->session->fast_abort) {
session           287 drivers/scsi/libiscsi.c 			ISCSI_DBG_SESSION(conn->session,
session           310 drivers/scsi/libiscsi.c 	struct iscsi_session *session = conn->session;
session           321 drivers/scsi/libiscsi.c 	if (conn->session->tt->alloc_pdu) {
session           322 drivers/scsi/libiscsi.c 		rc = conn->session->tt->alloc_pdu(task, ISCSI_OP_SCSI_CMD);
session           330 drivers/scsi/libiscsi.c 	if (session->tt->parse_pdu_itt)
session           334 drivers/scsi/libiscsi.c 						     task->conn->session->age);
session           381 drivers/scsi/libiscsi.c 		if (session->imm_data_en) {
session           382 drivers/scsi/libiscsi.c 			if (transfer_length >= session->first_burst)
session           383 drivers/scsi/libiscsi.c 				task->imm_count = min(session->first_burst,
session           392 drivers/scsi/libiscsi.c 		if (!session->initial_r2t_en) {
session           393 drivers/scsi/libiscsi.c 			r2t->data_length = min(session->first_burst,
session           420 drivers/scsi/libiscsi.c 	hdr->cmdsn = task->cmdsn = cpu_to_be32(session->cmdsn);
session           422 drivers/scsi/libiscsi.c 	if (session->tt->init_task && session->tt->init_task(task))
session           426 drivers/scsi/libiscsi.c 	session->cmdsn++;
session           429 drivers/scsi/libiscsi.c 	ISCSI_DBG_SESSION(session, "iscsi prep [%s cid %d sc %p cdb 0x%x "
session           434 drivers/scsi/libiscsi.c 			  session->cmdsn,
session           435 drivers/scsi/libiscsi.c 			  session->max_cmdsn - session->exp_cmdsn + 1);
session           450 drivers/scsi/libiscsi.c 	struct iscsi_session *session = conn->session;
session           454 drivers/scsi/libiscsi.c 	ISCSI_DBG_SESSION(session, "freeing task itt 0x%x state %d sc %p\n",
session           457 drivers/scsi/libiscsi.c 	session->tt->cleanup_task(task);
session           466 drivers/scsi/libiscsi.c 	kfifo_in(&session->cmdpool.queue, (void*)&task, sizeof(void*));
session           495 drivers/scsi/libiscsi.c 	struct iscsi_session *session = task->conn->session;
session           498 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->back_lock);
session           500 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->back_lock);
session           515 drivers/scsi/libiscsi.c 	ISCSI_DBG_SESSION(conn->session,
session           559 drivers/scsi/libiscsi.c 	ISCSI_DBG_SESSION(conn->session, "[itt 0x%x]\n", task->itt);
session           562 drivers/scsi/libiscsi.c 	__iscsi_update_cmdsn(conn->session, exp_cmdsn, max_cmdsn);
session           593 drivers/scsi/libiscsi.c 		conn->session->queued_cmdsn--;
session           605 drivers/scsi/libiscsi.c 	spin_lock_bh(&conn->session->back_lock);
session           607 drivers/scsi/libiscsi.c 	spin_unlock_bh(&conn->session->back_lock);
session           613 drivers/scsi/libiscsi.c 	struct iscsi_session *session = conn->session;
session           618 drivers/scsi/libiscsi.c 	if (conn->session->state == ISCSI_STATE_LOGGING_OUT)
session           626 drivers/scsi/libiscsi.c 	nop->cmdsn = cpu_to_be32(session->cmdsn);
session           638 drivers/scsi/libiscsi.c 			session->queued_cmdsn++;
session           639 drivers/scsi/libiscsi.c 			session->cmdsn++;
session           643 drivers/scsi/libiscsi.c 	if (session->tt->init_task && session->tt->init_task(task))
session           647 drivers/scsi/libiscsi.c 		session->state = ISCSI_STATE_LOGGING_OUT;
session           650 drivers/scsi/libiscsi.c 	ISCSI_DBG_SESSION(session, "mgmtpdu [op 0x%x hdr->itt 0x%x "
session           660 drivers/scsi/libiscsi.c 	struct iscsi_session *session = conn->session;
session           661 drivers/scsi/libiscsi.c 	struct iscsi_host *ihost = shost_priv(session->host);
session           666 drivers/scsi/libiscsi.c 	if (session->state == ISCSI_STATE_TERMINATE)
session           689 drivers/scsi/libiscsi.c 		if (session->state != ISCSI_STATE_LOGGED_IN)
session           700 drivers/scsi/libiscsi.c 		if (!kfifo_out(&session->cmdpool.queue,
session           721 drivers/scsi/libiscsi.c 	if (conn->session->tt->alloc_pdu) {
session           722 drivers/scsi/libiscsi.c 		if (conn->session->tt->alloc_pdu(task, hdr->opcode)) {
session           734 drivers/scsi/libiscsi.c 		if (session->tt->parse_pdu_itt)
session           738 drivers/scsi/libiscsi.c 						   task->conn->session->age);
session           745 drivers/scsi/libiscsi.c 		if (session->tt->xmit_task(task))
session           758 drivers/scsi/libiscsi.c 	spin_lock(&session->back_lock);
session           760 drivers/scsi/libiscsi.c 	spin_unlock(&session->back_lock);
session           768 drivers/scsi/libiscsi.c 	struct iscsi_session *session = conn->session;
session           771 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->frwd_lock);
session           774 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session           795 drivers/scsi/libiscsi.c 	struct iscsi_session *session = conn->session;
session           798 drivers/scsi/libiscsi.c 	iscsi_update_cmdsn(session, (struct iscsi_nopin*)rhdr);
session           812 drivers/scsi/libiscsi.c 		BUG_ON(!session->tt->check_protection);
session           814 drivers/scsi/libiscsi.c 		ascq = session->tt->check_protection(task, &sector);
session           850 drivers/scsi/libiscsi.c 		ISCSI_DBG_SESSION(session, "copied %d bytes of sense\n",
session           873 drivers/scsi/libiscsi.c 	ISCSI_DBG_SESSION(session, "cmd rsp done [sc %p res %d itt 0x%x]\n",
session           898 drivers/scsi/libiscsi.c 	iscsi_update_cmdsn(conn->session, (struct iscsi_nopin *)hdr);
session           913 drivers/scsi/libiscsi.c 	ISCSI_DBG_SESSION(conn->session, "data in with status done "
session          1050 drivers/scsi/libiscsi.c 			spin_unlock(&conn->session->back_lock);
session          1051 drivers/scsi/libiscsi.c 			spin_lock(&conn->session->frwd_lock);
session          1054 drivers/scsi/libiscsi.c 			spin_unlock(&conn->session->frwd_lock);
session          1055 drivers/scsi/libiscsi.c 			spin_lock(&conn->session->back_lock);
session          1096 drivers/scsi/libiscsi.c 	struct iscsi_session *session = conn->session;
session          1102 drivers/scsi/libiscsi.c 	if (session->tt->parse_pdu_itt)
session          1103 drivers/scsi/libiscsi.c 		session->tt->parse_pdu_itt(conn, itt, &i, NULL);
session          1106 drivers/scsi/libiscsi.c 	if (i >= session->cmds_max)
session          1109 drivers/scsi/libiscsi.c 	return session->cmds[i];
session          1127 drivers/scsi/libiscsi.c 	struct iscsi_session *session = conn->session;
session          1142 drivers/scsi/libiscsi.c 	ISCSI_DBG_SESSION(session, "[op 0x%x cid %d itt 0x%x len %d]\n",
session          1146 drivers/scsi/libiscsi.c 		iscsi_update_cmdsn(session, (struct iscsi_nopin*)hdr);
session          1159 drivers/scsi/libiscsi.c 			spin_unlock(&session->back_lock);
session          1160 drivers/scsi/libiscsi.c 			spin_lock(&session->frwd_lock);
session          1162 drivers/scsi/libiscsi.c 			spin_unlock(&session->frwd_lock);
session          1163 drivers/scsi/libiscsi.c 			spin_lock(&session->back_lock);
session          1214 drivers/scsi/libiscsi.c 		iscsi_update_cmdsn(session, (struct iscsi_nopin*)hdr);
session          1223 drivers/scsi/libiscsi.c 		iscsi_update_cmdsn(session, (struct iscsi_nopin*)hdr);
session          1230 drivers/scsi/libiscsi.c 		iscsi_update_cmdsn(session, (struct iscsi_nopin*)hdr);
session          1240 drivers/scsi/libiscsi.c 		iscsi_update_cmdsn(session, (struct iscsi_nopin*)hdr);
session          1270 drivers/scsi/libiscsi.c 	spin_lock(&conn->session->back_lock);
session          1272 drivers/scsi/libiscsi.c 	spin_unlock(&conn->session->back_lock);
session          1279 drivers/scsi/libiscsi.c 	struct iscsi_session *session = conn->session;
session          1285 drivers/scsi/libiscsi.c 	if (session->tt->parse_pdu_itt)
session          1286 drivers/scsi/libiscsi.c 		session->tt->parse_pdu_itt(conn, itt, &i, &age);
session          1292 drivers/scsi/libiscsi.c 	if (age != session->age) {
session          1295 drivers/scsi/libiscsi.c 				  (__force u32)itt, session->age);
session          1299 drivers/scsi/libiscsi.c 	if (i >= session->cmds_max) {
session          1302 drivers/scsi/libiscsi.c 				   "%u.\n", i, session->cmds_max);
session          1329 drivers/scsi/libiscsi.c 	if (task->sc->SCp.phase != conn->session->age) {
session          1330 drivers/scsi/libiscsi.c 		iscsi_session_printk(KERN_ERR, conn->session,
session          1332 drivers/scsi/libiscsi.c 				  task->sc->SCp.phase, conn->session->age);
session          1340 drivers/scsi/libiscsi.c void iscsi_session_failure(struct iscsi_session *session,
session          1346 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->frwd_lock);
session          1347 drivers/scsi/libiscsi.c 	conn = session->leadconn;
session          1348 drivers/scsi/libiscsi.c 	if (session->state == ISCSI_STATE_TERMINATE || !conn) {
session          1349 drivers/scsi/libiscsi.c 		spin_unlock_bh(&session->frwd_lock);
session          1354 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          1372 drivers/scsi/libiscsi.c 	struct iscsi_session *session = conn->session;
session          1374 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->frwd_lock);
session          1375 drivers/scsi/libiscsi.c 	if (session->state == ISCSI_STATE_FAILED) {
session          1376 drivers/scsi/libiscsi.c 		spin_unlock_bh(&session->frwd_lock);
session          1381 drivers/scsi/libiscsi.c 		session->state = ISCSI_STATE_FAILED;
session          1382 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          1392 drivers/scsi/libiscsi.c 	struct iscsi_session *session = conn->session;
session          1397 drivers/scsi/libiscsi.c 	if (!iscsi_sna_lte(session->queued_cmdsn, session->max_cmdsn)) {
session          1398 drivers/scsi/libiscsi.c 		ISCSI_DBG_SESSION(session, "iSCSI CmdSN closed. ExpCmdSn "
session          1400 drivers/scsi/libiscsi.c 				  session->exp_cmdsn, session->max_cmdsn,
session          1401 drivers/scsi/libiscsi.c 				  session->cmdsn, session->queued_cmdsn);
session          1415 drivers/scsi/libiscsi.c 	spin_lock_bh(&conn->session->back_lock);
session          1417 drivers/scsi/libiscsi.c 		spin_unlock_bh(&conn->session->back_lock);
session          1421 drivers/scsi/libiscsi.c 	spin_unlock_bh(&conn->session->back_lock);
session          1422 drivers/scsi/libiscsi.c 	spin_unlock_bh(&conn->session->frwd_lock);
session          1423 drivers/scsi/libiscsi.c 	rc = conn->session->tt->xmit_task(task);
session          1424 drivers/scsi/libiscsi.c 	spin_lock_bh(&conn->session->frwd_lock);
session          1431 drivers/scsi/libiscsi.c 	spin_lock(&conn->session->back_lock);
session          1433 drivers/scsi/libiscsi.c 	spin_unlock(&conn->session->back_lock);
session          1475 drivers/scsi/libiscsi.c 	spin_lock_bh(&conn->session->frwd_lock);
session          1477 drivers/scsi/libiscsi.c 		ISCSI_DBG_SESSION(conn->session, "Tx suspended!\n");
session          1478 drivers/scsi/libiscsi.c 		spin_unlock_bh(&conn->session->frwd_lock);
session          1502 drivers/scsi/libiscsi.c 			spin_lock_bh(&conn->session->back_lock);
session          1504 drivers/scsi/libiscsi.c 			spin_unlock_bh(&conn->session->back_lock);
session          1521 drivers/scsi/libiscsi.c 		if (conn->session->state == ISCSI_STATE_LOGGING_OUT) {
session          1557 drivers/scsi/libiscsi.c 		if (conn->session->state == ISCSI_STATE_LOGGING_OUT)
session          1577 drivers/scsi/libiscsi.c 	spin_unlock_bh(&conn->session->frwd_lock);
session          1581 drivers/scsi/libiscsi.c 	spin_unlock_bh(&conn->session->frwd_lock);
session          1603 drivers/scsi/libiscsi.c 	if (!kfifo_out(&conn->session->cmdpool.queue,
session          1607 drivers/scsi/libiscsi.c 	sc->SCp.phase = conn->session->age;
session          1640 drivers/scsi/libiscsi.c 	struct iscsi_session *session;
session          1650 drivers/scsi/libiscsi.c 	session = cls_session->dd_data;
session          1651 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->frwd_lock);
session          1659 drivers/scsi/libiscsi.c 	if (session->state != ISCSI_STATE_LOGGED_IN) {
session          1666 drivers/scsi/libiscsi.c 		switch (session->state) {
session          1701 drivers/scsi/libiscsi.c 	conn = session->leadconn;
session          1736 drivers/scsi/libiscsi.c 		if (session->tt->xmit_task(task)) {
session          1737 drivers/scsi/libiscsi.c 			session->cmdsn--;
session          1748 drivers/scsi/libiscsi.c 	session->queued_cmdsn++;
session          1749 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          1753 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->back_lock);
session          1755 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->back_lock);
session          1757 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          1758 drivers/scsi/libiscsi.c 	ISCSI_DBG_SESSION(session, "cmd 0x%x rejected (%d)\n",
session          1763 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->back_lock);
session          1765 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->back_lock);
session          1767 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          1768 drivers/scsi/libiscsi.c 	ISCSI_DBG_SESSION(session, "iscsi: cmd 0x%x is not queued (%d)\n",
session          1779 drivers/scsi/libiscsi.c 	struct iscsi_session *session = cls_session->dd_data;
session          1781 drivers/scsi/libiscsi.c 	starget->can_queue = session->scsi_cmds_max;
session          1789 drivers/scsi/libiscsi.c 	struct iscsi_session *session = conn->session;
session          1791 drivers/scsi/libiscsi.c 	spin_lock(&session->frwd_lock);
session          1794 drivers/scsi/libiscsi.c 		ISCSI_DBG_EH(session, "tmf timedout\n");
session          1798 drivers/scsi/libiscsi.c 	spin_unlock(&session->frwd_lock);
session          1804 drivers/scsi/libiscsi.c 	__must_hold(&session->frwd_lock)
session          1806 drivers/scsi/libiscsi.c 	struct iscsi_session *session = conn->session;
session          1812 drivers/scsi/libiscsi.c 		spin_unlock_bh(&session->frwd_lock);
session          1815 drivers/scsi/libiscsi.c 		spin_lock_bh(&session->frwd_lock);
session          1821 drivers/scsi/libiscsi.c 	ISCSI_DBG_EH(session, "tmf set timeout\n");
session          1823 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          1824 drivers/scsi/libiscsi.c 	mutex_unlock(&session->eh_mutex);
session          1834 drivers/scsi/libiscsi.c 	wait_event_interruptible(conn->ehwait, age != session->age ||
session          1835 drivers/scsi/libiscsi.c 				 session->state != ISCSI_STATE_LOGGED_IN ||
session          1841 drivers/scsi/libiscsi.c 	mutex_lock(&session->eh_mutex);
session          1842 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->frwd_lock);
session          1844 drivers/scsi/libiscsi.c 	if (age != session->age ||
session          1845 drivers/scsi/libiscsi.c 	    session->state != ISCSI_STATE_LOGGED_IN)
session          1859 drivers/scsi/libiscsi.c 	for (i = 0; i < conn->session->cmds_max; i++) {
session          1860 drivers/scsi/libiscsi.c 		task = conn->session->cmds[i];
session          1867 drivers/scsi/libiscsi.c 		ISCSI_DBG_SESSION(conn->session,
session          1887 drivers/scsi/libiscsi.c 	spin_lock_bh(&conn->session->frwd_lock);
session          1889 drivers/scsi/libiscsi.c 	spin_unlock_bh(&conn->session->frwd_lock);
session          1903 drivers/scsi/libiscsi.c 	struct Scsi_Host *shost = conn->session->host;
session          1939 drivers/scsi/libiscsi.c 	struct iscsi_session *session;
session          1944 drivers/scsi/libiscsi.c 	session = cls_session->dd_data;
session          1946 drivers/scsi/libiscsi.c 	ISCSI_DBG_EH(session, "scsi cmd %p timedout\n", sc);
session          1948 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->frwd_lock);
session          1959 drivers/scsi/libiscsi.c 	if (session->state != ISCSI_STATE_LOGGED_IN) {
session          1969 drivers/scsi/libiscsi.c 			ISCSI_DBG_EH(session, "sc on shutdown, handled\n");
session          1981 drivers/scsi/libiscsi.c 	conn = session->leadconn;
session          1996 drivers/scsi/libiscsi.c 		ISCSI_DBG_EH(session, "Command making progress. Asking "
session          2016 drivers/scsi/libiscsi.c 	for (i = 0; i < conn->session->cmds_max; i++) {
session          2017 drivers/scsi/libiscsi.c 		running_task = conn->session->cmds[i];
session          2041 drivers/scsi/libiscsi.c 			ISCSI_DBG_EH(session, "Command has not made progress "
session          2075 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          2076 drivers/scsi/libiscsi.c 	ISCSI_DBG_EH(session, "return %s\n", rc == BLK_EH_RESET_TIMER ?
session          2085 drivers/scsi/libiscsi.c 	struct iscsi_session *session = conn->session;
session          2088 drivers/scsi/libiscsi.c 	spin_lock(&session->frwd_lock);
session          2089 drivers/scsi/libiscsi.c 	if (session->state != ISCSI_STATE_LOGGED_IN)
session          2105 drivers/scsi/libiscsi.c 		spin_unlock(&session->frwd_lock);
session          2123 drivers/scsi/libiscsi.c 	spin_unlock(&session->frwd_lock);
session          2141 drivers/scsi/libiscsi.c 	struct iscsi_session *session;
session          2148 drivers/scsi/libiscsi.c 	session = cls_session->dd_data;
session          2150 drivers/scsi/libiscsi.c 	ISCSI_DBG_EH(session, "aborting sc %p\n", sc);
session          2152 drivers/scsi/libiscsi.c 	mutex_lock(&session->eh_mutex);
session          2153 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->frwd_lock);
session          2159 drivers/scsi/libiscsi.c 		ISCSI_DBG_EH(session, "sc never reached iscsi layer or "
session          2161 drivers/scsi/libiscsi.c 		spin_unlock_bh(&session->frwd_lock);
session          2162 drivers/scsi/libiscsi.c 		mutex_unlock(&session->eh_mutex);
session          2170 drivers/scsi/libiscsi.c 	if (!session->leadconn || session->state != ISCSI_STATE_LOGGED_IN ||
session          2171 drivers/scsi/libiscsi.c 	    sc->SCp.phase != session->age) {
session          2172 drivers/scsi/libiscsi.c 		spin_unlock_bh(&session->frwd_lock);
session          2173 drivers/scsi/libiscsi.c 		mutex_unlock(&session->eh_mutex);
session          2174 drivers/scsi/libiscsi.c 		ISCSI_DBG_EH(session, "failing abort due to dropped "
session          2179 drivers/scsi/libiscsi.c 	conn = session->leadconn;
session          2181 drivers/scsi/libiscsi.c 	age = session->age;
session          2184 drivers/scsi/libiscsi.c 	ISCSI_DBG_EH(session, "aborting [sc %p itt 0x%x]\n",
session          2189 drivers/scsi/libiscsi.c 		ISCSI_DBG_EH(session, "sc completed while abort in progress\n");
session          2206 drivers/scsi/libiscsi.c 	if (iscsi_exec_task_mgmt_fn(conn, hdr, age, session->abort_timeout))
session          2211 drivers/scsi/libiscsi.c 		spin_unlock_bh(&session->frwd_lock);
session          2222 drivers/scsi/libiscsi.c 		spin_lock_bh(&session->frwd_lock);
session          2226 drivers/scsi/libiscsi.c 		spin_unlock_bh(&session->frwd_lock);
session          2230 drivers/scsi/libiscsi.c 		spin_unlock_bh(&session->frwd_lock);
session          2238 drivers/scsi/libiscsi.c 			ISCSI_DBG_EH(session, "sc completed while abort	in "
session          2249 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          2251 drivers/scsi/libiscsi.c 	ISCSI_DBG_EH(session, "abort success [sc %p itt 0x%x]\n",
session          2253 drivers/scsi/libiscsi.c 	mutex_unlock(&session->eh_mutex);
session          2257 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          2259 drivers/scsi/libiscsi.c 	ISCSI_DBG_EH(session, "abort failed [sc %p itt 0x%x]\n", sc,
session          2261 drivers/scsi/libiscsi.c 	mutex_unlock(&session->eh_mutex);
session          2279 drivers/scsi/libiscsi.c 	struct iscsi_session *session;
session          2285 drivers/scsi/libiscsi.c 	session = cls_session->dd_data;
session          2287 drivers/scsi/libiscsi.c 	ISCSI_DBG_EH(session, "LU Reset [sc %p lun %llu]\n", sc,
session          2290 drivers/scsi/libiscsi.c 	mutex_lock(&session->eh_mutex);
session          2291 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->frwd_lock);
session          2296 drivers/scsi/libiscsi.c 	if (!session->leadconn || session->state != ISCSI_STATE_LOGGED_IN)
session          2298 drivers/scsi/libiscsi.c 	conn = session->leadconn;
session          2308 drivers/scsi/libiscsi.c 	if (iscsi_exec_task_mgmt_fn(conn, hdr, session->age,
session          2309 drivers/scsi/libiscsi.c 				    session->lu_reset_timeout)) {
session          2318 drivers/scsi/libiscsi.c 		spin_unlock_bh(&session->frwd_lock);
session          2327 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          2331 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->frwd_lock);
session          2335 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          2341 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          2343 drivers/scsi/libiscsi.c 	ISCSI_DBG_EH(session, "dev reset result = %s\n",
session          2345 drivers/scsi/libiscsi.c 	mutex_unlock(&session->eh_mutex);
session          2352 drivers/scsi/libiscsi.c 	struct iscsi_session *session = cls_session->dd_data;
session          2354 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->frwd_lock);
session          2355 drivers/scsi/libiscsi.c 	if (session->state != ISCSI_STATE_LOGGED_IN) {
session          2356 drivers/scsi/libiscsi.c 		session->state = ISCSI_STATE_RECOVERY_FAILED;
session          2357 drivers/scsi/libiscsi.c 		if (session->leadconn)
session          2358 drivers/scsi/libiscsi.c 			wake_up(&session->leadconn->ehwait);
session          2360 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          2374 drivers/scsi/libiscsi.c 	struct iscsi_session *session;
session          2378 drivers/scsi/libiscsi.c 	session = cls_session->dd_data;
session          2379 drivers/scsi/libiscsi.c 	conn = session->leadconn;
session          2381 drivers/scsi/libiscsi.c 	mutex_lock(&session->eh_mutex);
session          2382 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->frwd_lock);
session          2383 drivers/scsi/libiscsi.c 	if (session->state == ISCSI_STATE_TERMINATE) {
session          2385 drivers/scsi/libiscsi.c 		ISCSI_DBG_EH(session,
session          2387 drivers/scsi/libiscsi.c 			     "%s [age %d]\n", session->targetname,
session          2388 drivers/scsi/libiscsi.c 			     session->age);
session          2389 drivers/scsi/libiscsi.c 		spin_unlock_bh(&session->frwd_lock);
session          2390 drivers/scsi/libiscsi.c 		mutex_unlock(&session->eh_mutex);
session          2394 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          2395 drivers/scsi/libiscsi.c 	mutex_unlock(&session->eh_mutex);
session          2402 drivers/scsi/libiscsi.c 	ISCSI_DBG_EH(session, "wait for relogin\n");
session          2404 drivers/scsi/libiscsi.c 				 session->state == ISCSI_STATE_TERMINATE ||
session          2405 drivers/scsi/libiscsi.c 				 session->state == ISCSI_STATE_LOGGED_IN ||
session          2406 drivers/scsi/libiscsi.c 				 session->state == ISCSI_STATE_RECOVERY_FAILED);
session          2410 drivers/scsi/libiscsi.c 	mutex_lock(&session->eh_mutex);
session          2411 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->frwd_lock);
session          2412 drivers/scsi/libiscsi.c 	if (session->state == ISCSI_STATE_LOGGED_IN) {
session          2413 drivers/scsi/libiscsi.c 		ISCSI_DBG_EH(session,
session          2415 drivers/scsi/libiscsi.c 			     session->targetname, conn->persistent_address);
session          2418 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          2419 drivers/scsi/libiscsi.c 	mutex_unlock(&session->eh_mutex);
session          2442 drivers/scsi/libiscsi.c 	struct iscsi_session *session;
session          2448 drivers/scsi/libiscsi.c 	session = cls_session->dd_data;
session          2450 drivers/scsi/libiscsi.c 	ISCSI_DBG_EH(session, "tgt Reset [sc %p tgt %s]\n", sc,
session          2451 drivers/scsi/libiscsi.c 		     session->targetname);
session          2453 drivers/scsi/libiscsi.c 	mutex_lock(&session->eh_mutex);
session          2454 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->frwd_lock);
session          2459 drivers/scsi/libiscsi.c 	if (!session->leadconn || session->state != ISCSI_STATE_LOGGED_IN)
session          2461 drivers/scsi/libiscsi.c 	conn = session->leadconn;
session          2471 drivers/scsi/libiscsi.c 	if (iscsi_exec_task_mgmt_fn(conn, hdr, session->age,
session          2472 drivers/scsi/libiscsi.c 				    session->tgt_reset_timeout)) {
session          2481 drivers/scsi/libiscsi.c 		spin_unlock_bh(&session->frwd_lock);
session          2490 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          2494 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->frwd_lock);
session          2498 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          2504 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          2506 drivers/scsi/libiscsi.c 	ISCSI_DBG_EH(session, "tgt %s reset result = %s\n", session->targetname,
session          2508 drivers/scsi/libiscsi.c 	mutex_unlock(&session->eh_mutex);
session          2735 drivers/scsi/libiscsi.c 	struct iscsi_session *session;
session          2785 drivers/scsi/libiscsi.c 	session = cls_session->dd_data;
session          2786 drivers/scsi/libiscsi.c 	session->cls_session = cls_session;
session          2787 drivers/scsi/libiscsi.c 	session->host = shost;
session          2788 drivers/scsi/libiscsi.c 	session->state = ISCSI_STATE_FREE;
session          2789 drivers/scsi/libiscsi.c 	session->fast_abort = 1;
session          2790 drivers/scsi/libiscsi.c 	session->tgt_reset_timeout = 30;
session          2791 drivers/scsi/libiscsi.c 	session->lu_reset_timeout = 15;
session          2792 drivers/scsi/libiscsi.c 	session->abort_timeout = 10;
session          2793 drivers/scsi/libiscsi.c 	session->scsi_cmds_max = scsi_cmds;
session          2794 drivers/scsi/libiscsi.c 	session->cmds_max = total_cmds;
session          2795 drivers/scsi/libiscsi.c 	session->queued_cmdsn = session->cmdsn = initial_cmdsn;
session          2796 drivers/scsi/libiscsi.c 	session->exp_cmdsn = initial_cmdsn + 1;
session          2797 drivers/scsi/libiscsi.c 	session->max_cmdsn = initial_cmdsn + 1;
session          2798 drivers/scsi/libiscsi.c 	session->max_r2t = 1;
session          2799 drivers/scsi/libiscsi.c 	session->tt = iscsit;
session          2800 drivers/scsi/libiscsi.c 	session->dd_data = cls_session->dd_data + sizeof(*session);
session          2802 drivers/scsi/libiscsi.c 	mutex_init(&session->eh_mutex);
session          2803 drivers/scsi/libiscsi.c 	spin_lock_init(&session->frwd_lock);
session          2804 drivers/scsi/libiscsi.c 	spin_lock_init(&session->back_lock);
session          2807 drivers/scsi/libiscsi.c 	if (iscsi_pool_init(&session->cmdpool, session->cmds_max,
session          2808 drivers/scsi/libiscsi.c 			    (void***)&session->cmds,
session          2813 drivers/scsi/libiscsi.c 	for (cmd_i = 0; cmd_i < session->cmds_max; cmd_i++) {
session          2814 drivers/scsi/libiscsi.c 		struct iscsi_task *task = session->cmds[cmd_i];
session          2834 drivers/scsi/libiscsi.c 	iscsi_pool_free(&session->cmdpool);
session          2849 drivers/scsi/libiscsi.c 	struct iscsi_session *session = cls_session->dd_data;
session          2851 drivers/scsi/libiscsi.c 	struct Scsi_Host *shost = session->host;
session          2853 drivers/scsi/libiscsi.c 	iscsi_pool_free(&session->cmdpool);
session          2857 drivers/scsi/libiscsi.c 	kfree(session->password);
session          2858 drivers/scsi/libiscsi.c 	kfree(session->password_in);
session          2859 drivers/scsi/libiscsi.c 	kfree(session->username);
session          2860 drivers/scsi/libiscsi.c 	kfree(session->username_in);
session          2861 drivers/scsi/libiscsi.c 	kfree(session->targetname);
session          2862 drivers/scsi/libiscsi.c 	kfree(session->targetalias);
session          2863 drivers/scsi/libiscsi.c 	kfree(session->initiatorname);
session          2864 drivers/scsi/libiscsi.c 	kfree(session->boot_root);
session          2865 drivers/scsi/libiscsi.c 	kfree(session->boot_nic);
session          2866 drivers/scsi/libiscsi.c 	kfree(session->boot_target);
session          2867 drivers/scsi/libiscsi.c 	kfree(session->ifacename);
session          2868 drivers/scsi/libiscsi.c 	kfree(session->portal_type);
session          2869 drivers/scsi/libiscsi.c 	kfree(session->discovery_parent_type);
session          2888 drivers/scsi/libiscsi.c 	struct iscsi_session *session = cls_session->dd_data;
session          2901 drivers/scsi/libiscsi.c 	conn->session = session;
session          2917 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->frwd_lock);
session          2918 drivers/scsi/libiscsi.c 	if (!kfifo_out(&session->cmdpool.queue,
session          2921 drivers/scsi/libiscsi.c 		spin_unlock_bh(&session->frwd_lock);
session          2924 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          2938 drivers/scsi/libiscsi.c 	kfifo_in(&session->cmdpool.queue, (void*)&conn->login_task,
session          2956 drivers/scsi/libiscsi.c 	struct iscsi_session *session = conn->session;
session          2960 drivers/scsi/libiscsi.c 	mutex_lock(&session->eh_mutex);
session          2961 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->frwd_lock);
session          2963 drivers/scsi/libiscsi.c 	if (session->leadconn == conn) {
session          2967 drivers/scsi/libiscsi.c 		session->state = ISCSI_STATE_TERMINATE;
session          2970 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          2975 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->frwd_lock);
session          2981 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->back_lock);
session          2982 drivers/scsi/libiscsi.c 	kfifo_in(&session->cmdpool.queue, (void*)&conn->login_task,
session          2984 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->back_lock);
session          2985 drivers/scsi/libiscsi.c 	if (session->leadconn == conn)
session          2986 drivers/scsi/libiscsi.c 		session->leadconn = NULL;
session          2987 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          2988 drivers/scsi/libiscsi.c 	mutex_unlock(&session->eh_mutex);
session          2997 drivers/scsi/libiscsi.c 	struct iscsi_session *session = conn->session;
session          2999 drivers/scsi/libiscsi.c 	if (!session) {
session          3005 drivers/scsi/libiscsi.c 	if ((session->imm_data_en || !session->initial_r2t_en) &&
session          3006 drivers/scsi/libiscsi.c 	     session->first_burst > session->max_burst) {
session          3009 drivers/scsi/libiscsi.c 				  session->first_burst, session->max_burst);
session          3025 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->frwd_lock);
session          3027 drivers/scsi/libiscsi.c 	session->state = ISCSI_STATE_LOGGED_IN;
session          3028 drivers/scsi/libiscsi.c 	session->queued_cmdsn = session->cmdsn;
session          3044 drivers/scsi/libiscsi.c 		session->age++;
session          3045 drivers/scsi/libiscsi.c 		if (session->age == 16)
session          3046 drivers/scsi/libiscsi.c 			session->age = 0;
session          3054 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          3056 drivers/scsi/libiscsi.c 	iscsi_unblock_session(session->cls_session);
session          3063 drivers/scsi/libiscsi.c fail_mgmt_tasks(struct iscsi_session *session, struct iscsi_conn *conn)
session          3068 drivers/scsi/libiscsi.c 	for (i = 0; i < conn->session->cmds_max; i++) {
session          3069 drivers/scsi/libiscsi.c 		task = conn->session->cmds[i];
session          3076 drivers/scsi/libiscsi.c 		ISCSI_DBG_SESSION(conn->session,
session          3082 drivers/scsi/libiscsi.c 		spin_lock_bh(&session->back_lock);
session          3084 drivers/scsi/libiscsi.c 		spin_unlock_bh(&session->back_lock);
session          3088 drivers/scsi/libiscsi.c static void iscsi_start_session_recovery(struct iscsi_session *session,
session          3093 drivers/scsi/libiscsi.c 	mutex_lock(&session->eh_mutex);
session          3094 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->frwd_lock);
session          3096 drivers/scsi/libiscsi.c 		spin_unlock_bh(&session->frwd_lock);
session          3097 drivers/scsi/libiscsi.c 		mutex_unlock(&session->eh_mutex);
session          3107 drivers/scsi/libiscsi.c 		session->state = ISCSI_STATE_TERMINATE;
session          3109 drivers/scsi/libiscsi.c 		session->state = ISCSI_STATE_IN_RECOVERY;
session          3113 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          3118 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->frwd_lock);
session          3120 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          3131 drivers/scsi/libiscsi.c 		if (session->state == ISCSI_STATE_IN_RECOVERY &&
session          3133 drivers/scsi/libiscsi.c 			ISCSI_DBG_SESSION(session, "blocking session\n");
session          3134 drivers/scsi/libiscsi.c 			iscsi_block_session(session->cls_session);
session          3141 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->frwd_lock);
session          3143 drivers/scsi/libiscsi.c 	fail_mgmt_tasks(session, conn);
session          3145 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          3146 drivers/scsi/libiscsi.c 	mutex_unlock(&session->eh_mutex);
session          3152 drivers/scsi/libiscsi.c 	struct iscsi_session *session = conn->session;
session          3157 drivers/scsi/libiscsi.c 		iscsi_start_session_recovery(session, conn, flag);
session          3169 drivers/scsi/libiscsi.c 	struct iscsi_session *session = cls_session->dd_data;
session          3172 drivers/scsi/libiscsi.c 	spin_lock_bh(&session->frwd_lock);
session          3174 drivers/scsi/libiscsi.c 		session->leadconn = conn;
session          3175 drivers/scsi/libiscsi.c 	spin_unlock_bh(&session->frwd_lock);
session          3209 drivers/scsi/libiscsi.c 	struct iscsi_session *session = conn->session;
session          3214 drivers/scsi/libiscsi.c 		sscanf(buf, "%d", &session->fast_abort);
session          3217 drivers/scsi/libiscsi.c 		sscanf(buf, "%d", &session->abort_timeout);
session          3220 drivers/scsi/libiscsi.c 		sscanf(buf, "%d", &session->lu_reset_timeout);
session          3223 drivers/scsi/libiscsi.c 		sscanf(buf, "%d", &session->tgt_reset_timeout);
session          3244 drivers/scsi/libiscsi.c 		sscanf(buf, "%d", &session->initial_r2t_en);
session          3247 drivers/scsi/libiscsi.c 		sscanf(buf, "%hu", &session->max_r2t);
session          3250 drivers/scsi/libiscsi.c 		sscanf(buf, "%d", &session->imm_data_en);
session          3253 drivers/scsi/libiscsi.c 		sscanf(buf, "%d", &session->first_burst);
session          3256 drivers/scsi/libiscsi.c 		sscanf(buf, "%d", &session->max_burst);
session          3259 drivers/scsi/libiscsi.c 		sscanf(buf, "%d", &session->pdu_inorder_en);
session          3262 drivers/scsi/libiscsi.c 		sscanf(buf, "%d", &session->dataseq_inorder_en);
session          3265 drivers/scsi/libiscsi.c 		sscanf(buf, "%d", &session->erl);
session          3271 drivers/scsi/libiscsi.c 		return iscsi_switch_str_param(&session->username, buf);
session          3273 drivers/scsi/libiscsi.c 		return iscsi_switch_str_param(&session->username_in, buf);
session          3275 drivers/scsi/libiscsi.c 		return iscsi_switch_str_param(&session->password, buf);
session          3277 drivers/scsi/libiscsi.c 		return iscsi_switch_str_param(&session->password_in, buf);
session          3279 drivers/scsi/libiscsi.c 		return iscsi_switch_str_param(&session->targetname, buf);
session          3281 drivers/scsi/libiscsi.c 		return iscsi_switch_str_param(&session->targetalias, buf);
session          3283 drivers/scsi/libiscsi.c 		sscanf(buf, "%d", &session->tpgt);
session          3291 drivers/scsi/libiscsi.c 		return iscsi_switch_str_param(&session->ifacename, buf);
session          3293 drivers/scsi/libiscsi.c 		return iscsi_switch_str_param(&session->initiatorname, buf);
session          3295 drivers/scsi/libiscsi.c 		return iscsi_switch_str_param(&session->boot_root, buf);
session          3297 drivers/scsi/libiscsi.c 		return iscsi_switch_str_param(&session->boot_nic, buf);
session          3299 drivers/scsi/libiscsi.c 		return iscsi_switch_str_param(&session->boot_target, buf);
session          3301 drivers/scsi/libiscsi.c 		return iscsi_switch_str_param(&session->portal_type, buf);
session          3303 drivers/scsi/libiscsi.c 		return iscsi_switch_str_param(&session->discovery_parent_type,
session          3307 drivers/scsi/libiscsi.c 		session->discovery_sess = !!val;
session          3322 drivers/scsi/libiscsi.c 	struct iscsi_session *session = cls_session->dd_data;
session          3327 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%d\n", session->fast_abort);
session          3330 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%d\n", session->abort_timeout);
session          3333 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%d\n", session->lu_reset_timeout);
session          3336 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%d\n", session->tgt_reset_timeout);
session          3339 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%d\n", session->initial_r2t_en);
session          3342 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%hu\n", session->max_r2t);
session          3345 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%d\n", session->imm_data_en);
session          3348 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%u\n", session->first_burst);
session          3351 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%u\n", session->max_burst);
session          3354 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%d\n", session->pdu_inorder_en);
session          3357 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%d\n", session->dataseq_inorder_en);
session          3360 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%d\n", session->def_taskmgmt_tmo);
session          3363 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%d\n", session->erl);
session          3366 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%s\n", session->targetname);
session          3369 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%s\n", session->targetalias);
session          3372 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%d\n", session->tpgt);
session          3375 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%s\n", session->username);
session          3378 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%s\n", session->username_in);
session          3381 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%s\n", session->password);
session          3384 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%s\n", session->password_in);
session          3387 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%s\n", session->ifacename);
session          3390 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%s\n", session->initiatorname);
session          3393 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%s\n", session->boot_root);
session          3396 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%s\n", session->boot_nic);
session          3399 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%s\n", session->boot_target);
session          3402 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%u\n", session->auto_snd_tgt_disable);
session          3405 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%u\n", session->discovery_sess);
session          3408 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%s\n", session->portal_type);
session          3411 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%u\n", session->chap_auth_en);
session          3414 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%u\n", session->discovery_logout_en);
session          3417 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%u\n", session->bidi_chap_en);
session          3420 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%u\n", session->discovery_auth_optional);
session          3423 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%d\n", session->time2wait);
session          3426 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%d\n", session->time2retain);
session          3429 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%u\n", session->tsid);
session          3433 drivers/scsi/libiscsi.c 			      session->isid[0], session->isid[1],
session          3434 drivers/scsi/libiscsi.c 			      session->isid[2], session->isid[3],
session          3435 drivers/scsi/libiscsi.c 			      session->isid[4], session->isid[5]);
session          3438 drivers/scsi/libiscsi.c 		len = sprintf(buf, "%u\n", session->discovery_parent_idx);
session          3441 drivers/scsi/libiscsi.c 		if (session->discovery_parent_type)
session          3443 drivers/scsi/libiscsi.c 				      session->discovery_parent_type);
session           245 drivers/scsi/libiscsi_tcp.c 	if (!(tcp_conn->iscsi_conn->session->tt->caps & CAP_PADDING_OFFLOAD)) {
session           440 drivers/scsi/libiscsi_tcp.c 	    !(conn->session->tt->caps & CAP_DIGEST_OFFLOAD))
session           499 drivers/scsi/libiscsi_tcp.c 		iscsi_update_cmdsn(conn->session, (struct iscsi_nopin*)rhdr);
session           531 drivers/scsi/libiscsi_tcp.c 	struct iscsi_session *session = conn->session;
session           555 drivers/scsi/libiscsi_tcp.c 	iscsi_update_cmdsn(session, (struct iscsi_nopin*)rhdr);
session           557 drivers/scsi/libiscsi_tcp.c 	if (!task->sc || session->state != ISCSI_STATE_LOGGED_IN) {
session           571 drivers/scsi/libiscsi_tcp.c 	if (data_length > session->max_burst)
session           574 drivers/scsi/libiscsi_tcp.c 			      data_length, session->max_burst);
session           679 drivers/scsi/libiscsi_tcp.c 		spin_lock(&conn->session->back_lock);
session           686 drivers/scsi/libiscsi_tcp.c 			spin_unlock(&conn->session->back_lock);
session           704 drivers/scsi/libiscsi_tcp.c 			    !(conn->session->tt->caps & CAP_DIGEST_OFFLOAD))
session           719 drivers/scsi/libiscsi_tcp.c 			spin_unlock(&conn->session->back_lock);
session           723 drivers/scsi/libiscsi_tcp.c 		spin_unlock(&conn->session->back_lock);
session           733 drivers/scsi/libiscsi_tcp.c 		spin_lock(&conn->session->back_lock);
session           735 drivers/scsi/libiscsi_tcp.c 		spin_unlock(&conn->session->back_lock);
session           742 drivers/scsi/libiscsi_tcp.c 			spin_lock(&conn->session->frwd_lock);
session           744 drivers/scsi/libiscsi_tcp.c 			spin_unlock(&conn->session->frwd_lock);
session           837 drivers/scsi/libiscsi_tcp.c 	    !(conn->session->tt->caps & CAP_DIGEST_OFFLOAD)) {
session           975 drivers/scsi/libiscsi_tcp.c 		return conn->session->tt->init_pdu(task, 0, task->data_count);
session           985 drivers/scsi/libiscsi_tcp.c 	err = conn->session->tt->init_pdu(task, 0, task->imm_count);
session          1040 drivers/scsi/libiscsi_tcp.c 	struct iscsi_session *session = conn->session;
session          1046 drivers/scsi/libiscsi_tcp.c 	rc = session->tt->xmit_pdu(task);
session          1068 drivers/scsi/libiscsi_tcp.c 	rc = conn->session->tt->alloc_pdu(task, ISCSI_OP_SCSI_DATA_OUT);
session          1077 drivers/scsi/libiscsi_tcp.c 	rc = conn->session->tt->init_pdu(task, r2t->data_offset + r2t->sent,
session          1122 drivers/scsi/libiscsi_tcp.c int iscsi_tcp_r2tpool_alloc(struct iscsi_session *session)
session          1130 drivers/scsi/libiscsi_tcp.c 	for (cmd_i = 0; cmd_i < session->cmds_max; cmd_i++) {
session          1131 drivers/scsi/libiscsi_tcp.c 	        struct iscsi_task *task = session->cmds[cmd_i];
session          1142 drivers/scsi/libiscsi_tcp.c 				    session->max_r2t * 2, NULL,
session          1149 drivers/scsi/libiscsi_tcp.c 		      session->max_r2t * 4 * sizeof(void*), GFP_KERNEL)) {
session          1161 drivers/scsi/libiscsi_tcp.c 		struct iscsi_task *task = session->cmds[i];
session          1171 drivers/scsi/libiscsi_tcp.c void iscsi_tcp_r2tpool_free(struct iscsi_session *session)
session          1175 drivers/scsi/libiscsi_tcp.c 	for (i = 0; i < session->cmds_max; i++) {
session          1176 drivers/scsi/libiscsi_tcp.c 		struct iscsi_task *task = session->cmds[i];
session          1187 drivers/scsi/libiscsi_tcp.c 	struct iscsi_session *session = conn->session;
session          1191 drivers/scsi/libiscsi_tcp.c 	if (session->max_r2t == r2ts)
session          1197 drivers/scsi/libiscsi_tcp.c 	session->max_r2t = r2ts;
session          1198 drivers/scsi/libiscsi_tcp.c 	iscsi_tcp_r2tpool_free(session);
session          1199 drivers/scsi/libiscsi_tcp.c 	return iscsi_tcp_r2tpool_alloc(session);
session            37 drivers/scsi/qedi/qedi_fw.c 	struct iscsi_session *session = conn->session;
session            43 drivers/scsi/qedi/qedi_fw.c 	spin_lock(&session->back_lock);
session            50 drivers/scsi/qedi/qedi_fw.c 	resp_hdr->itt = build_itt(cqe->cqe_solicited.itid, conn->session->age);
session            77 drivers/scsi/qedi/qedi_fw.c 	spin_unlock(&session->back_lock);
session            86 drivers/scsi/qedi/qedi_fw.c 	struct iscsi_session *session = conn->session;
session            97 drivers/scsi/qedi/qedi_fw.c 	spin_lock(&session->back_lock);
session           109 drivers/scsi/qedi/qedi_fw.c 				      conn->session->age);
session           143 drivers/scsi/qedi/qedi_fw.c 	spin_unlock(&session->back_lock);
session           153 drivers/scsi/qedi/qedi_fw.c 	struct iscsi_session *session = conn->session;
session           160 drivers/scsi/qedi/qedi_fw.c 	iscsi_block_session(session->cls_session);
session           164 drivers/scsi/qedi/qedi_fw.c 		iscsi_unblock_session(session->cls_session);
session           168 drivers/scsi/qedi/qedi_fw.c 	iscsi_unblock_session(session->cls_session);
session           171 drivers/scsi/qedi/qedi_fw.c 	spin_lock(&session->back_lock);
session           173 drivers/scsi/qedi/qedi_fw.c 	spin_unlock(&session->back_lock);
session           187 drivers/scsi/qedi/qedi_fw.c 	struct iscsi_session *session = conn->session;
session           204 drivers/scsi/qedi/qedi_fw.c 	spin_lock(&session->back_lock);
session           218 drivers/scsi/qedi/qedi_fw.c 				      conn->session->age);
session           248 drivers/scsi/qedi/qedi_fw.c 	spin_unlock(&session->back_lock);
session           257 drivers/scsi/qedi/qedi_fw.c 	struct iscsi_session *session = conn->session;
session           269 drivers/scsi/qedi/qedi_fw.c 	spin_lock(&session->back_lock);
session           280 drivers/scsi/qedi/qedi_fw.c 				      conn->session->age);
session           304 drivers/scsi/qedi/qedi_fw.c 	spin_unlock(&session->back_lock);
session           408 drivers/scsi/qedi/qedi_fw.c 	struct iscsi_session *session = conn->session;
session           418 drivers/scsi/qedi/qedi_fw.c 	spin_lock_bh(&session->back_lock);
session           448 drivers/scsi/qedi/qedi_fw.c 				     conn->session->age);
session           470 drivers/scsi/qedi/qedi_fw.c 	spin_unlock_bh(&session->back_lock);
session           481 drivers/scsi/qedi/qedi_fw.c 	struct iscsi_session *session = conn->session;
session           489 drivers/scsi/qedi/qedi_fw.c 	spin_lock_bh(&session->back_lock);
session           525 drivers/scsi/qedi/qedi_fw.c 	spin_unlock_bh(&session->back_lock);
session           535 drivers/scsi/qedi/qedi_fw.c 	struct iscsi_session *session = conn->session;
session           541 drivers/scsi/qedi/qedi_fw.c 	spin_lock_bh(&session->back_lock);
session           567 drivers/scsi/qedi/qedi_fw.c 	spin_unlock_bh(&session->back_lock);
session           577 drivers/scsi/qedi/qedi_fw.c 	struct iscsi_session *session = conn->session;
session           592 drivers/scsi/qedi/qedi_fw.c 	spin_lock_bh(&session->back_lock);
session           627 drivers/scsi/qedi/qedi_fw.c 	hdr->itt = build_itt(cqe->cqe_solicited.itid, conn->session->age);
session           673 drivers/scsi/qedi/qedi_fw.c 	spin_unlock_bh(&session->back_lock);
session           718 drivers/scsi/qedi/qedi_fw.c 	struct iscsi_session *session = conn->session;
session           728 drivers/scsi/qedi/qedi_fw.c 	spin_lock_bh(&session->back_lock);
session           730 drivers/scsi/qedi/qedi_fw.c 	spin_unlock_bh(&session->back_lock);
session           791 drivers/scsi/qedi/qedi_fw.c 			spin_lock_bh(&conn->session->back_lock);
session           794 drivers/scsi/qedi/qedi_fw.c 					     conn->session->age);
session           797 drivers/scsi/qedi/qedi_fw.c 			spin_unlock_bh(&conn->session->back_lock);
session           827 drivers/scsi/qedi/qedi_fw.c 		spin_lock_bh(&conn->session->back_lock);
session           829 drivers/scsi/qedi/qedi_fw.c 		protoitt = build_itt(ptmp_itt, conn->session->age);
session           836 drivers/scsi/qedi/qedi_fw.c 		spin_unlock_bh(&conn->session->back_lock);
session           853 drivers/scsi/qedi/qedi_fw.c 		protoitt = build_itt(ptmp_itt, conn->session->age);
session          1192 drivers/scsi/qedi/qedi_fw.c 	struct iscsi_session *session = conn->session;
session          1214 drivers/scsi/qedi/qedi_fw.c 		spin_lock_bh(&session->back_lock);
session          1249 drivers/scsi/qedi/qedi_fw.c 		spin_unlock_bh(&session->back_lock);
session          2031 drivers/scsi/qedi/qedi_fw.c 	struct iscsi_session *session = conn->session;
session          2032 drivers/scsi/qedi/qedi_fw.c 	struct Scsi_Host *shost = iscsi_session_to_shost(session->cls_session);
session          2130 drivers/scsi/qedi/qedi_fw.c 	conn_params.first_burst_length = conn->session->first_burst;
session          2132 drivers/scsi/qedi/qedi_fw.c 	conn_params.max_burst_length = conn->session->max_burst;
session          2133 drivers/scsi/qedi/qedi_fw.c 	if (conn->session->initial_r2t_en)
session          2135 drivers/scsi/qedi/qedi_fw.c 	if (conn->session->imm_data_en)
session           164 drivers/scsi/qedi/qedi_iscsi.c 				  struct iscsi_session *session)
session           168 drivers/scsi/qedi/qedi_iscsi.c 	for (i = 0; i < session->cmds_max; i++) {
session           169 drivers/scsi/qedi/qedi_iscsi.c 		struct iscsi_task *task = session->cmds[i];
session           187 drivers/scsi/qedi/qedi_iscsi.c static int qedi_alloc_sget(struct qedi_ctx *qedi, struct iscsi_session *session,
session           198 drivers/scsi/qedi/qedi_iscsi.c 		iscsi_session_printk(KERN_ERR, session,
session           208 drivers/scsi/qedi/qedi_iscsi.c 			       struct iscsi_session *session)
session           212 drivers/scsi/qedi/qedi_iscsi.c 	for (i = 0; i < session->cmds_max; i++) {
session           213 drivers/scsi/qedi/qedi_iscsi.c 		struct iscsi_task *task = session->cmds[i];
session           219 drivers/scsi/qedi/qedi_iscsi.c 		if (qedi_alloc_sget(qedi, session, cmd))
session           233 drivers/scsi/qedi/qedi_iscsi.c 	qedi_destroy_cmd_pool(qedi, session);
session           282 drivers/scsi/qedi/qedi_iscsi.c 	struct iscsi_session *session = cls_session->dd_data;
session           286 drivers/scsi/qedi/qedi_iscsi.c 	qedi_destroy_cmd_pool(qedi, session);
session           434 drivers/scsi/qedi/qedi_iscsi.c 	if (conn->session->initial_r2t_en)
session           438 drivers/scsi/qedi/qedi_iscsi.c 	if (conn->session->imm_data_en)
session           443 drivers/scsi/qedi/qedi_iscsi.c 	conn_info->max_seq_size = conn->session->max_burst;
session           446 drivers/scsi/qedi/qedi_iscsi.c 	conn_info->first_seq_length = conn->session->first_burst;
session          1421 drivers/scsi/qedi/qedi_iscsi.c 			 conn->session->state, qedi_conn->iscsi_conn_id);
session           387 drivers/scsi/qla4xxx/ql4_iocb.c 	struct iscsi_session *sess = task->conn->session;
session           388 drivers/scsi/qla4xxx/ql4_isr.c 	spin_lock(&conn->session->back_lock);
session           390 drivers/scsi/qla4xxx/ql4_isr.c 	spin_unlock(&conn->session->back_lock);
session          2012 drivers/scsi/qla4xxx/ql4_mbx.c 	sess = conn->session;
session          1847 drivers/scsi/qla4xxx/ql4_os.c 	struct iscsi_cls_session *session;
session          1852 drivers/scsi/qla4xxx/ql4_os.c 	session = starget_to_session(scsi_target(sc->device));
session          1853 drivers/scsi/qla4xxx/ql4_os.c 	sess = session->dd_data;
session          1855 drivers/scsi/qla4xxx/ql4_os.c 	spin_lock_irqsave(&session->lock, flags);
session          1856 drivers/scsi/qla4xxx/ql4_os.c 	if (session->state == ISCSI_SESSION_FAILED)
session          1858 drivers/scsi/qla4xxx/ql4_os.c 	spin_unlock_irqrestore(&session->lock, flags);
session          3367 drivers/scsi/qla4xxx/ql4_os.c 	sess = task->conn->session;
session          3434 drivers/scsi/qla4xxx/ql4_os.c 	sess = task->conn->session;
session          3457 drivers/scsi/qla4xxx/ql4_os.c 	struct iscsi_session *sess = task->conn->session;
session          1687 drivers/scsi/scsi_transport_iscsi.c int iscsi_session_chkready(struct iscsi_cls_session *session)
session          1692 drivers/scsi/scsi_transport_iscsi.c 	spin_lock_irqsave(&session->lock, flags);
session          1693 drivers/scsi/scsi_transport_iscsi.c 	switch (session->state) {
session          1707 drivers/scsi/scsi_transport_iscsi.c 	spin_unlock_irqrestore(&session->lock, flags);
session          1712 drivers/scsi/scsi_transport_iscsi.c int iscsi_is_session_online(struct iscsi_cls_session *session)
session          1717 drivers/scsi/scsi_transport_iscsi.c 	spin_lock_irqsave(&session->lock, flags);
session          1718 drivers/scsi/scsi_transport_iscsi.c 	if (session->state == ISCSI_SESSION_LOGGED_IN)
session          1720 drivers/scsi/scsi_transport_iscsi.c 	spin_unlock_irqrestore(&session->lock, flags);
session          1727 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_cls_session *session = iscsi_dev_to_session(dev);
session          1730 drivers/scsi/scsi_transport_iscsi.c 	shost = iscsi_session_to_shost(session);
session          1732 drivers/scsi/scsi_transport_iscsi.c 	ISCSI_DBG_TRANS_SESSION(session, "Completing session release\n");
session          1733 drivers/scsi/scsi_transport_iscsi.c 	kfree(session);
session          1789 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_cls_session *session;
session          1798 drivers/scsi/scsi_transport_iscsi.c 	session = iscsi_dev_to_session(dev);
session          1800 drivers/scsi/scsi_transport_iscsi.c 	ISCSI_DBG_TRANS_SESSION(session, "Scanning session\n");
session          1802 drivers/scsi/scsi_transport_iscsi.c 	shost = iscsi_session_to_shost(session);
session          1806 drivers/scsi/scsi_transport_iscsi.c 	spin_lock_irqsave(&session->lock, flags);
session          1807 drivers/scsi/scsi_transport_iscsi.c 	if (session->state != ISCSI_SESSION_LOGGED_IN) {
session          1808 drivers/scsi/scsi_transport_iscsi.c 		spin_unlock_irqrestore(&session->lock, flags);
session          1811 drivers/scsi/scsi_transport_iscsi.c 	id = session->target_id;
session          1812 drivers/scsi/scsi_transport_iscsi.c 	spin_unlock_irqrestore(&session->lock, flags);
session          1819 drivers/scsi/scsi_transport_iscsi.c 			scsi_scan_target(&session->dev, 0, id,
session          1825 drivers/scsi/scsi_transport_iscsi.c 	ISCSI_DBG_TRANS_SESSION(session, "Completed session scan\n");
session          1845 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_cls_session *session =
session          1847 drivers/scsi/scsi_transport_iscsi.c 	struct Scsi_Host *shost = iscsi_session_to_shost(session);
session          1856 drivers/scsi/scsi_transport_iscsi.c 	iscsi_user_scan_session(&session->dev, &scan_data);
session          1871 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_cls_session *session =
session          1876 drivers/scsi/scsi_transport_iscsi.c 	spin_lock_irqsave(&session->lock, flags);
session          1877 drivers/scsi/scsi_transport_iscsi.c 	while (session->state != ISCSI_SESSION_LOGGED_IN) {
session          1878 drivers/scsi/scsi_transport_iscsi.c 		if (session->state == ISCSI_SESSION_FREE) {
session          1882 drivers/scsi/scsi_transport_iscsi.c 		spin_unlock_irqrestore(&session->lock, flags);
session          1884 drivers/scsi/scsi_transport_iscsi.c 		spin_lock_irqsave(&session->lock, flags);
session          1886 drivers/scsi/scsi_transport_iscsi.c 	spin_unlock_irqrestore(&session->lock, flags);
session          1893 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_cls_session *session =
session          1898 drivers/scsi/scsi_transport_iscsi.c 	iscsi_cls_session_printk(KERN_INFO, session,
session          1900 drivers/scsi/scsi_transport_iscsi.c 				 session->recovery_tmo);
session          1902 drivers/scsi/scsi_transport_iscsi.c 	spin_lock_irqsave(&session->lock, flags);
session          1903 drivers/scsi/scsi_transport_iscsi.c 	switch (session->state) {
session          1905 drivers/scsi/scsi_transport_iscsi.c 		session->state = ISCSI_SESSION_FREE;
session          1910 drivers/scsi/scsi_transport_iscsi.c 		spin_unlock_irqrestore(&session->lock, flags);
session          1913 drivers/scsi/scsi_transport_iscsi.c 	spin_unlock_irqrestore(&session->lock, flags);
session          1915 drivers/scsi/scsi_transport_iscsi.c 	if (session->transport->session_recovery_timedout)
session          1916 drivers/scsi/scsi_transport_iscsi.c 		session->transport->session_recovery_timedout(session);
session          1918 drivers/scsi/scsi_transport_iscsi.c 	ISCSI_DBG_TRANS_SESSION(session, "Unblocking SCSI target\n");
session          1919 drivers/scsi/scsi_transport_iscsi.c 	scsi_target_unblock(&session->dev, SDEV_TRANSPORT_OFFLINE);
session          1920 drivers/scsi/scsi_transport_iscsi.c 	ISCSI_DBG_TRANS_SESSION(session, "Completed unblocking SCSI target\n");
session          1925 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_cls_session *session =
session          1928 drivers/scsi/scsi_transport_iscsi.c 	struct Scsi_Host *shost = iscsi_session_to_shost(session);
session          1932 drivers/scsi/scsi_transport_iscsi.c 	ISCSI_DBG_TRANS_SESSION(session, "Unblocking session\n");
session          1937 drivers/scsi/scsi_transport_iscsi.c 	cancel_delayed_work(&session->recovery_work);
session          1938 drivers/scsi/scsi_transport_iscsi.c 	spin_lock_irqsave(&session->lock, flags);
session          1939 drivers/scsi/scsi_transport_iscsi.c 	session->state = ISCSI_SESSION_LOGGED_IN;
session          1940 drivers/scsi/scsi_transport_iscsi.c 	spin_unlock_irqrestore(&session->lock, flags);
session          1942 drivers/scsi/scsi_transport_iscsi.c 	scsi_target_unblock(&session->dev, SDEV_RUNNING);
session          1949 drivers/scsi/scsi_transport_iscsi.c 		if (scsi_queue_work(shost, &session->scan_work))
session          1952 drivers/scsi/scsi_transport_iscsi.c 	ISCSI_DBG_TRANS_SESSION(session, "Completed unblocking session\n");
session          1961 drivers/scsi/scsi_transport_iscsi.c void iscsi_unblock_session(struct iscsi_cls_session *session)
session          1963 drivers/scsi/scsi_transport_iscsi.c 	queue_work(iscsi_eh_timer_workq, &session->unblock_work);
session          1974 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_cls_session *session =
session          1979 drivers/scsi/scsi_transport_iscsi.c 	ISCSI_DBG_TRANS_SESSION(session, "Blocking session\n");
session          1980 drivers/scsi/scsi_transport_iscsi.c 	spin_lock_irqsave(&session->lock, flags);
session          1981 drivers/scsi/scsi_transport_iscsi.c 	session->state = ISCSI_SESSION_FAILED;
session          1982 drivers/scsi/scsi_transport_iscsi.c 	spin_unlock_irqrestore(&session->lock, flags);
session          1983 drivers/scsi/scsi_transport_iscsi.c 	scsi_target_block(&session->dev);
session          1984 drivers/scsi/scsi_transport_iscsi.c 	ISCSI_DBG_TRANS_SESSION(session, "Completed SCSI target blocking\n");
session          1985 drivers/scsi/scsi_transport_iscsi.c 	if (session->recovery_tmo >= 0)
session          1987 drivers/scsi/scsi_transport_iscsi.c 				   &session->recovery_work,
session          1988 drivers/scsi/scsi_transport_iscsi.c 				   session->recovery_tmo * HZ);
session          1991 drivers/scsi/scsi_transport_iscsi.c void iscsi_block_session(struct iscsi_cls_session *session)
session          1993 drivers/scsi/scsi_transport_iscsi.c 	queue_work(iscsi_eh_timer_workq, &session->block_work);
session          1999 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_cls_session *session =
session          2002 drivers/scsi/scsi_transport_iscsi.c 	struct Scsi_Host *shost = iscsi_session_to_shost(session);
session          2007 drivers/scsi/scsi_transport_iscsi.c 	ISCSI_DBG_TRANS_SESSION(session, "Unbinding session\n");
session          2011 drivers/scsi/scsi_transport_iscsi.c 	spin_lock_irqsave(&session->lock, flags);
session          2012 drivers/scsi/scsi_transport_iscsi.c 	if (session->target_id == ISCSI_MAX_TARGET) {
session          2013 drivers/scsi/scsi_transport_iscsi.c 		spin_unlock_irqrestore(&session->lock, flags);
session          2018 drivers/scsi/scsi_transport_iscsi.c 	target_id = session->target_id;
session          2019 drivers/scsi/scsi_transport_iscsi.c 	session->target_id = ISCSI_MAX_TARGET;
session          2020 drivers/scsi/scsi_transport_iscsi.c 	spin_unlock_irqrestore(&session->lock, flags);
session          2023 drivers/scsi/scsi_transport_iscsi.c 	if (session->ida_used)
session          2026 drivers/scsi/scsi_transport_iscsi.c 	scsi_remove_target(&session->dev);
session          2029 drivers/scsi/scsi_transport_iscsi.c 	iscsi_session_event(session, ISCSI_KEVENT_UNBIND_SESSION);
session          2030 drivers/scsi/scsi_transport_iscsi.c 	ISCSI_DBG_TRANS_SESSION(session, "Completed target removal\n");
session          2037 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_cls_session *session;
session          2039 drivers/scsi/scsi_transport_iscsi.c 	session = kzalloc(sizeof(*session) + dd_size,
session          2041 drivers/scsi/scsi_transport_iscsi.c 	if (!session)
session          2044 drivers/scsi/scsi_transport_iscsi.c 	session->transport = transport;
session          2045 drivers/scsi/scsi_transport_iscsi.c 	session->creator = -1;
session          2046 drivers/scsi/scsi_transport_iscsi.c 	session->recovery_tmo = 120;
session          2047 drivers/scsi/scsi_transport_iscsi.c 	session->recovery_tmo_sysfs_override = false;
session          2048 drivers/scsi/scsi_transport_iscsi.c 	session->state = ISCSI_SESSION_FREE;
session          2049 drivers/scsi/scsi_transport_iscsi.c 	INIT_DELAYED_WORK(&session->recovery_work, session_recovery_timedout);
session          2050 drivers/scsi/scsi_transport_iscsi.c 	INIT_LIST_HEAD(&session->sess_list);
session          2051 drivers/scsi/scsi_transport_iscsi.c 	INIT_WORK(&session->unblock_work, __iscsi_unblock_session);
session          2052 drivers/scsi/scsi_transport_iscsi.c 	INIT_WORK(&session->block_work, __iscsi_block_session);
session          2053 drivers/scsi/scsi_transport_iscsi.c 	INIT_WORK(&session->unbind_work, __iscsi_unbind_session);
session          2054 drivers/scsi/scsi_transport_iscsi.c 	INIT_WORK(&session->scan_work, iscsi_scan_session);
session          2055 drivers/scsi/scsi_transport_iscsi.c 	spin_lock_init(&session->lock);
session          2059 drivers/scsi/scsi_transport_iscsi.c 	session->dev.parent = &shost->shost_gendev;
session          2060 drivers/scsi/scsi_transport_iscsi.c 	session->dev.release = iscsi_session_release;
session          2061 drivers/scsi/scsi_transport_iscsi.c 	device_initialize(&session->dev);
session          2063 drivers/scsi/scsi_transport_iscsi.c 		session->dd_data = &session[1];
session          2065 drivers/scsi/scsi_transport_iscsi.c 	ISCSI_DBG_TRANS_SESSION(session, "Completed session allocation\n");
session          2066 drivers/scsi/scsi_transport_iscsi.c 	return session;
session          2070 drivers/scsi/scsi_transport_iscsi.c int iscsi_add_session(struct iscsi_cls_session *session, unsigned int target_id)
session          2076 drivers/scsi/scsi_transport_iscsi.c 	session->sid = atomic_add_return(1, &iscsi_session_nr);
session          2082 drivers/scsi/scsi_transport_iscsi.c 			iscsi_cls_session_printk(KERN_ERR, session,
session          2086 drivers/scsi/scsi_transport_iscsi.c 		session->target_id = (unsigned int)id;
session          2087 drivers/scsi/scsi_transport_iscsi.c 		session->ida_used = true;
session          2089 drivers/scsi/scsi_transport_iscsi.c 		session->target_id = target_id;
session          2091 drivers/scsi/scsi_transport_iscsi.c 	dev_set_name(&session->dev, "session%u", session->sid);
session          2092 drivers/scsi/scsi_transport_iscsi.c 	err = device_add(&session->dev);
session          2094 drivers/scsi/scsi_transport_iscsi.c 		iscsi_cls_session_printk(KERN_ERR, session,
session          2098 drivers/scsi/scsi_transport_iscsi.c 	transport_register_device(&session->dev);
session          2101 drivers/scsi/scsi_transport_iscsi.c 	list_add(&session->sess_list, &sesslist);
session          2104 drivers/scsi/scsi_transport_iscsi.c 	iscsi_session_event(session, ISCSI_KEVENT_CREATE_SESSION);
session          2105 drivers/scsi/scsi_transport_iscsi.c 	ISCSI_DBG_TRANS_SESSION(session, "Completed session adding\n");
session          2109 drivers/scsi/scsi_transport_iscsi.c 	if (session->ida_used)
session          2110 drivers/scsi/scsi_transport_iscsi.c 		ida_simple_remove(&iscsi_sess_ida, session->target_id);
session          2129 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_cls_session *session;
session          2131 drivers/scsi/scsi_transport_iscsi.c 	session = iscsi_alloc_session(shost, transport, dd_size);
session          2132 drivers/scsi/scsi_transport_iscsi.c 	if (!session)
session          2135 drivers/scsi/scsi_transport_iscsi.c 	if (iscsi_add_session(session, target_id)) {
session          2136 drivers/scsi/scsi_transport_iscsi.c 		iscsi_free_session(session);
session          2139 drivers/scsi/scsi_transport_iscsi.c 	return session;
session          2165 drivers/scsi/scsi_transport_iscsi.c void iscsi_remove_session(struct iscsi_cls_session *session)
session          2170 drivers/scsi/scsi_transport_iscsi.c 	ISCSI_DBG_TRANS_SESSION(session, "Removing session\n");
session          2173 drivers/scsi/scsi_transport_iscsi.c 	list_del(&session->sess_list);
session          2179 drivers/scsi/scsi_transport_iscsi.c 	if (!cancel_delayed_work(&session->recovery_work))
session          2187 drivers/scsi/scsi_transport_iscsi.c 	spin_lock_irqsave(&session->lock, flags);
session          2188 drivers/scsi/scsi_transport_iscsi.c 	session->state = ISCSI_SESSION_FREE;
session          2189 drivers/scsi/scsi_transport_iscsi.c 	spin_unlock_irqrestore(&session->lock, flags);
session          2191 drivers/scsi/scsi_transport_iscsi.c 	scsi_target_unblock(&session->dev, SDEV_TRANSPORT_OFFLINE);
session          2193 drivers/scsi/scsi_transport_iscsi.c 	flush_work(&session->scan_work);
session          2195 drivers/scsi/scsi_transport_iscsi.c 	flush_work(&session->unbind_work);
session          2196 drivers/scsi/scsi_transport_iscsi.c 	__iscsi_unbind_session(&session->unbind_work);
session          2199 drivers/scsi/scsi_transport_iscsi.c 	err = device_for_each_child(&session->dev, NULL,
session          2202 drivers/scsi/scsi_transport_iscsi.c 		iscsi_cls_session_printk(KERN_ERR, session,
session          2206 drivers/scsi/scsi_transport_iscsi.c 	transport_unregister_device(&session->dev);
session          2208 drivers/scsi/scsi_transport_iscsi.c 	ISCSI_DBG_TRANS_SESSION(session, "Completing session removal\n");
session          2209 drivers/scsi/scsi_transport_iscsi.c 	device_del(&session->dev);
session          2213 drivers/scsi/scsi_transport_iscsi.c void iscsi_free_session(struct iscsi_cls_session *session)
session          2215 drivers/scsi/scsi_transport_iscsi.c 	ISCSI_DBG_TRANS_SESSION(session, "Freeing session\n");
session          2216 drivers/scsi/scsi_transport_iscsi.c 	iscsi_session_event(session, ISCSI_KEVENT_DESTROY_SESSION);
session          2217 drivers/scsi/scsi_transport_iscsi.c 	put_device(&session->dev);
session          2237 drivers/scsi/scsi_transport_iscsi.c iscsi_create_conn(struct iscsi_cls_session *session, int dd_size, uint32_t cid)
session          2239 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_transport *transport = session->transport;
session          2256 drivers/scsi/scsi_transport_iscsi.c 	if (!get_device(&session->dev))
session          2259 drivers/scsi/scsi_transport_iscsi.c 	dev_set_name(&conn->dev, "connection%d:%u", session->sid, cid);
session          2260 drivers/scsi/scsi_transport_iscsi.c 	conn->dev.parent = &session->dev;
session          2264 drivers/scsi/scsi_transport_iscsi.c 		iscsi_cls_session_printk(KERN_ERR, session, "could not "
session          2278 drivers/scsi/scsi_transport_iscsi.c 	put_device(&session->dev);
session          2628 drivers/scsi/scsi_transport_iscsi.c int iscsi_session_event(struct iscsi_cls_session *session,
session          2638 drivers/scsi/scsi_transport_iscsi.c 	priv = iscsi_if_transport_lookup(session->transport);
session          2641 drivers/scsi/scsi_transport_iscsi.c 	shost = iscsi_session_to_shost(session);
session          2645 drivers/scsi/scsi_transport_iscsi.c 		iscsi_cls_session_printk(KERN_ERR, session,
session          2653 drivers/scsi/scsi_transport_iscsi.c 	ev->transport_handle = iscsi_handle(session->transport);
session          2659 drivers/scsi/scsi_transport_iscsi.c 		ev->r.d_session.sid = session->sid;
session          2663 drivers/scsi/scsi_transport_iscsi.c 		ev->r.c_session_ret.sid = session->sid;
session          2667 drivers/scsi/scsi_transport_iscsi.c 		ev->r.unbind_session.sid = session->sid;
session          2670 drivers/scsi/scsi_transport_iscsi.c 		iscsi_cls_session_printk(KERN_ERR, session, "Invalid event "
session          2682 drivers/scsi/scsi_transport_iscsi.c 		iscsi_cls_session_printk(KERN_ERR, session,
session          2687 drivers/scsi/scsi_transport_iscsi.c 	ISCSI_DBG_TRANS_SESSION(session, "Completed handling event %d rc %d\n",
session          2700 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_cls_session *session;
session          2703 drivers/scsi/scsi_transport_iscsi.c 	session = transport->create_session(ep, cmds_max, queue_depth,
session          2705 drivers/scsi/scsi_transport_iscsi.c 	if (!session)
session          2708 drivers/scsi/scsi_transport_iscsi.c 	session->creator = pid;
session          2709 drivers/scsi/scsi_transport_iscsi.c 	shost = iscsi_session_to_shost(session);
session          2711 drivers/scsi/scsi_transport_iscsi.c 	ev->r.c_session_ret.sid = session->sid;
session          2712 drivers/scsi/scsi_transport_iscsi.c 	ISCSI_DBG_TRANS_SESSION(session,
session          2721 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_cls_session *session;
session          2723 drivers/scsi/scsi_transport_iscsi.c 	session = iscsi_session_lookup(ev->u.c_conn.sid);
session          2724 drivers/scsi/scsi_transport_iscsi.c 	if (!session) {
session          2730 drivers/scsi/scsi_transport_iscsi.c 	conn = transport->create_conn(session, ev->u.c_conn.cid);
session          2732 drivers/scsi/scsi_transport_iscsi.c 		iscsi_cls_session_printk(KERN_ERR, session,
session          2737 drivers/scsi/scsi_transport_iscsi.c 	ev->r.c_conn_ret.sid = session->sid;
session          2765 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_cls_session *session;
session          2768 drivers/scsi/scsi_transport_iscsi.c 	session = iscsi_session_lookup(ev->u.set_param.sid);
session          2770 drivers/scsi/scsi_transport_iscsi.c 	if (!conn || !session)
session          2776 drivers/scsi/scsi_transport_iscsi.c 		if (!session->recovery_tmo_sysfs_override)
session          2777 drivers/scsi/scsi_transport_iscsi.c 			session->recovery_tmo = value;
session          3393 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_cls_session *session;
session          3409 drivers/scsi/scsi_transport_iscsi.c 	session = iscsi_session_lookup(ev->u.logout_flashnode_sid.sid);
session          3410 drivers/scsi/scsi_transport_iscsi.c 	if (!session) {
session          3417 drivers/scsi/scsi_transport_iscsi.c 	err = transport->logout_flashnode_sid(session);
session          3505 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_cls_session *session;
session          3546 drivers/scsi/scsi_transport_iscsi.c 		session = iscsi_session_lookup(ev->u.d_session.sid);
session          3547 drivers/scsi/scsi_transport_iscsi.c 		if (!session)
session          3552 drivers/scsi/scsi_transport_iscsi.c 			transport->destroy_session(session);
session          3555 drivers/scsi/scsi_transport_iscsi.c 		session = iscsi_session_lookup(ev->u.d_session.sid);
session          3556 drivers/scsi/scsi_transport_iscsi.c 		if (session)
session          3557 drivers/scsi/scsi_transport_iscsi.c 			scsi_queue_work(iscsi_session_to_shost(session),
session          3558 drivers/scsi/scsi_transport_iscsi.c 					&session->unbind_work);
session          3569 drivers/scsi/scsi_transport_iscsi.c 		session = iscsi_session_lookup(ev->u.b_conn.sid);
session          3575 drivers/scsi/scsi_transport_iscsi.c 		if (!session || !conn) {
session          3580 drivers/scsi/scsi_transport_iscsi.c 		ev->r.retcode =	transport->bind_conn(session, conn,
session          3962 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_cls_session *session = 				\
session          3964 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_transport *t = session->transport;			\
session          3968 drivers/scsi/scsi_transport_iscsi.c 	return t->get_session_param(session, param, buf);		\
session          4021 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_cls_session *session = iscsi_dev_to_session(dev->parent);
session          4022 drivers/scsi/scsi_transport_iscsi.c 	return sprintf(buf, "%s\n", iscsi_session_state_name(session->state));
session          4030 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_cls_session *session = iscsi_dev_to_session(dev->parent);
session          4031 drivers/scsi/scsi_transport_iscsi.c 	return sprintf(buf, "%d\n", session->creator);
session          4039 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_cls_session *session = iscsi_dev_to_session(dev->parent);
session          4040 drivers/scsi/scsi_transport_iscsi.c 	return sprintf(buf, "%d\n", session->target_id);
session          4050 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_cls_session *session = 				\
session          4052 drivers/scsi/scsi_transport_iscsi.c 	if (session->field == -1)					\
session          4054 drivers/scsi/scsi_transport_iscsi.c 	return sprintf(buf, format"\n", session->field);		\
session          4065 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_cls_session *session =				\
session          4067 drivers/scsi/scsi_transport_iscsi.c 	if ((session->state == ISCSI_SESSION_FREE) ||			\
session          4068 drivers/scsi/scsi_transport_iscsi.c 	    (session->state == ISCSI_SESSION_FAILED))			\
session          4071 drivers/scsi/scsi_transport_iscsi.c 		session->field = -1;					\
session          4072 drivers/scsi/scsi_transport_iscsi.c 		session->field##_sysfs_override = true;			\
session          4077 drivers/scsi/scsi_transport_iscsi.c 		session->field = val;					\
session          4078 drivers/scsi/scsi_transport_iscsi.c 		session->field##_sysfs_override = true;			\
session          4144 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_cls_session *session = transport_class_to_session(cdev);
session          4145 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_transport *t = session->transport;
session          4377 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_cls_session *session;
session          4384 drivers/scsi/scsi_transport_iscsi.c 	session = iscsi_dev_to_session(dev);
session          4385 drivers/scsi/scsi_transport_iscsi.c 	shost = iscsi_session_to_shost(session);
session          4399 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_cls_session *session;
session          4408 drivers/scsi/scsi_transport_iscsi.c 	session = iscsi_dev_to_session(conn->dev.parent);
session          4409 drivers/scsi/scsi_transport_iscsi.c 	shost = iscsi_session_to_shost(session);
session            95 drivers/target/sbp/sbp_target.c 		struct sbp_session *session, u32 unpacked_lun)
session            99 drivers/target/sbp/sbp_target.c 	spin_lock_bh(&session->lock);
session           100 drivers/target/sbp/sbp_target.c 	list_for_each_entry(login, &session->login_list, link) {
session           104 drivers/target/sbp/sbp_target.c 	spin_unlock_bh(&session->lock);
session           256 drivers/tee/optee/call.c 		sess->session_id = msg_arg->session;
session           268 drivers/tee/optee/call.c 		optee_close_session(ctx, msg_arg->session);
session           270 drivers/tee/optee/call.c 		arg->session = msg_arg->session;
session           280 drivers/tee/optee/call.c int optee_close_session(struct tee_context *ctx, u32 session)
session           290 drivers/tee/optee/call.c 	sess = find_session(ctxdata, session);
session           303 drivers/tee/optee/call.c 	msg_arg->session = session;
session           322 drivers/tee/optee/call.c 	sess = find_session(ctxdata, arg->session);
session           332 drivers/tee/optee/call.c 	msg_arg->session = arg->session;
session           356 drivers/tee/optee/call.c int optee_cancel_req(struct tee_context *ctx, u32 cancel_id, u32 session)
session           366 drivers/tee/optee/call.c 	sess = find_session(ctxdata, session);
session           376 drivers/tee/optee/call.c 	msg_arg->session = session;
session           287 drivers/tee/optee/core.c 			arg->session = sess->session_id;
session            34 drivers/tee/optee/device.c static int get_devices(struct tee_context *ctx, u32 session,
session            46 drivers/tee/optee/device.c 	inv_arg.session = session;
session           121 drivers/tee/optee/device.c 	rc = get_devices(ctx, sess_arg.session, NULL, &shm_size);
session           133 drivers/tee/optee/device.c 	rc = get_devices(ctx, sess_arg.session, device_shm, &shm_size);
session           155 drivers/tee/optee/device.c 	tee_client_close_session(ctx, sess_arg.session);
session           194 drivers/tee/optee/optee_msg.h 	u32 session;
session           148 drivers/tee/optee/optee_private.h int optee_close_session(struct tee_context *ctx, u32 session);
session           151 drivers/tee/optee/optee_private.h int optee_cancel_req(struct tee_context *ctx, u32 cancel_id, u32 session);
session           342 drivers/tee/tee_core.c 	if (put_user(arg.session, &uarg->session) ||
session           355 drivers/tee/tee_core.c 		ctx->teedev->desc->ops->close_session(ctx, arg.session);
session           442 drivers/tee/tee_core.c 						  arg.session);
session           457 drivers/tee/tee_core.c 	return ctx->teedev->desc->ops->close_session(ctx, arg.session);
session          1017 drivers/tee/tee_core.c int tee_client_close_session(struct tee_context *ctx, u32 session)
session          1021 drivers/tee/tee_core.c 	return ctx->teedev->desc->ops->close_session(ctx, session);
session          1041 drivers/tee/tee_core.c 						  arg->session);
session           629 drivers/tty/tty_io.c 	put_pid(tty->session);
session           631 drivers/tty/tty_io.c 	tty->session = NULL;
session          1463 drivers/tty/tty_io.c 	put_pid(tty->session);
session          1765 drivers/tty/tty_io.c 		session_clear_tty(tty->session);
session          1767 drivers/tty/tty_io.c 			session_clear_tty(o_tty->session);
session          2895 drivers/tty/tty_io.c 	struct pid *session;
session          2900 drivers/tty/tty_io.c 	session = tty->session;
session          2908 drivers/tty/tty_io.c 	do_each_pid_task(session, PIDTYPE_SID, p) {
session          2912 drivers/tty/tty_io.c 	} while_each_pid_task(session, PIDTYPE_SID, p);
session          2987 drivers/tty/tty_io.c 	tty->session = NULL;
session           103 drivers/tty/tty_jobctrl.c 	put_pid(tty->session);
session           107 drivers/tty/tty_jobctrl.c 	tty->session = get_pid(task_session(current));
session           134 drivers/tty/tty_jobctrl.c 	    tty->session == NULL) {
session           171 drivers/tty/tty_jobctrl.c void session_clear_tty(struct pid *session)
session           174 drivers/tty/tty_jobctrl.c 	do_each_pid_task(session, PIDTYPE_SID, p) {
session           176 drivers/tty/tty_jobctrl.c 	} while_each_pid_task(session, PIDTYPE_SID, p);
session           198 drivers/tty/tty_jobctrl.c 	if (tty->session) {
session           199 drivers/tty/tty_jobctrl.c 		do_each_pid_task(tty->session, PIDTYPE_SID, p) {
session           220 drivers/tty/tty_jobctrl.c 		} while_each_pid_task(tty->session, PIDTYPE_SID, p);
session           301 drivers/tty/tty_jobctrl.c 		put_pid(tty->session);
session           303 drivers/tty/tty_jobctrl.c 		tty->session = NULL;
session           350 drivers/tty/tty_jobctrl.c 	if (current->signal->leader && (task_session(current) == tty->session))
session           362 drivers/tty/tty_jobctrl.c 	if (tty->session) {
session           371 drivers/tty/tty_jobctrl.c 			session_clear_tty(tty->session);
session           482 drivers/tty/tty_jobctrl.c 	    (real_tty->session != task_session(current)))
session           525 drivers/tty/tty_jobctrl.c 	if (!real_tty->session)
session           527 drivers/tty/tty_jobctrl.c 	return put_user(pid_vnr(real_tty->session), p);
session          1892 drivers/usb/musb/musb_core.c 		if (!musb->session)
session          1897 drivers/usb/musb/musb_core.c 		musb->session = false;
session          1905 drivers/usb/musb/musb_core.c 	if (s == musb->session)
session          1922 drivers/usb/musb/musb_core.c 	musb->session = s;
session           349 drivers/usb/musb/musb_core.h 	bool			session;
session           574 drivers/virt/vboxguest/vboxguest_core.c 					struct vbg_session *session,
session           589 drivers/virt/vboxguest/vboxguest_core.c 						  session->requestor);
session           599 drivers/virt/vboxguest/vboxguest_core.c 	previous = session->event_filter;
session           600 drivers/virt/vboxguest/vboxguest_core.c 	session->event_filter |= or_mask;
session           601 drivers/virt/vboxguest/vboxguest_core.c 	session->event_filter &= ~not_mask;
session           604 drivers/virt/vboxguest/vboxguest_core.c 	changed = previous ^ session->event_filter;
session           627 drivers/virt/vboxguest/vboxguest_core.c 				    session->event_filter);
session           628 drivers/virt/vboxguest/vboxguest_core.c 		session->event_filter = previous;
session           676 drivers/virt/vboxguest/vboxguest_core.c 					struct vbg_session *session,
session           691 drivers/virt/vboxguest/vboxguest_core.c 						  session->requestor);
session           701 drivers/virt/vboxguest/vboxguest_core.c 	previous = session->guest_caps;
session           702 drivers/virt/vboxguest/vboxguest_core.c 	session->guest_caps |= or_mask;
session           703 drivers/virt/vboxguest/vboxguest_core.c 	session->guest_caps &= ~not_mask;
session           706 drivers/virt/vboxguest/vboxguest_core.c 	changed = previous ^ session->guest_caps;
session           729 drivers/virt/vboxguest/vboxguest_core.c 				    session->guest_caps);
session           730 drivers/virt/vboxguest/vboxguest_core.c 		session->guest_caps = previous;
session           930 drivers/virt/vboxguest/vboxguest_core.c 	struct vbg_session *session;
session           932 drivers/virt/vboxguest/vboxguest_core.c 	session = kzalloc(sizeof(*session), GFP_KERNEL);
session           933 drivers/virt/vboxguest/vboxguest_core.c 	if (!session)
session           936 drivers/virt/vboxguest/vboxguest_core.c 	session->gdev = gdev;
session           937 drivers/virt/vboxguest/vboxguest_core.c 	session->requestor = requestor;
session           939 drivers/virt/vboxguest/vboxguest_core.c 	return session;
session           946 drivers/virt/vboxguest/vboxguest_core.c void vbg_core_close_session(struct vbg_session *session)
session           948 drivers/virt/vboxguest/vboxguest_core.c 	struct vbg_dev *gdev = session->gdev;
session           951 drivers/virt/vboxguest/vboxguest_core.c 	vbg_set_session_capabilities(gdev, session, 0, U32_MAX, true);
session           952 drivers/virt/vboxguest/vboxguest_core.c 	vbg_set_session_event_filter(gdev, session, 0, U32_MAX, true);
session           954 drivers/virt/vboxguest/vboxguest_core.c 	for (i = 0; i < ARRAY_SIZE(session->hgcm_client_ids); i++) {
session           955 drivers/virt/vboxguest/vboxguest_core.c 		if (!session->hgcm_client_ids[i])
session           960 drivers/virt/vboxguest/vboxguest_core.c 				    session->hgcm_client_ids[i], &rc);
session           963 drivers/virt/vboxguest/vboxguest_core.c 	kfree(session);
session          1009 drivers/virt/vboxguest/vboxguest_core.c 				struct vbg_session *session,
session          1019 drivers/virt/vboxguest/vboxguest_core.c 	wakeup = events || session->cancel_waiters;
session          1028 drivers/virt/vboxguest/vboxguest_core.c 				     struct vbg_session *session,
session          1038 drivers/virt/vboxguest/vboxguest_core.c 				     struct vbg_session *session,
session          1059 drivers/virt/vboxguest/vboxguest_core.c 				vbg_wait_event_cond(gdev, session, event_mask),
session          1064 drivers/virt/vboxguest/vboxguest_core.c 		if (timeout < 0 || session->cancel_waiters) {
session          1070 drivers/virt/vboxguest/vboxguest_core.c 			   vbg_consume_events_locked(gdev, session, event_mask);
session          1085 drivers/virt/vboxguest/vboxguest_core.c 					       struct vbg_session *session,
session          1094 drivers/virt/vboxguest/vboxguest_core.c 	session->cancel_waiters = true;
session          1109 drivers/virt/vboxguest/vboxguest_core.c static int vbg_req_allowed(struct vbg_dev *gdev, struct vbg_session *session,
session          1189 drivers/virt/vboxguest/vboxguest_core.c 	    (session->requestor & VMMDEV_REQUESTOR_USER_DEVICE)) {
session          1199 drivers/virt/vboxguest/vboxguest_core.c 				struct vbg_session *session, void *data)
session          1213 drivers/virt/vboxguest/vboxguest_core.c 	ret = vbg_req_allowed(gdev, session, data);
session          1224 drivers/virt/vboxguest/vboxguest_core.c 				  struct vbg_session *session,
session          1235 drivers/virt/vboxguest/vboxguest_core.c 	for (i = 0; i < ARRAY_SIZE(session->hgcm_client_ids); i++) {
session          1236 drivers/virt/vboxguest/vboxguest_core.c 		if (!session->hgcm_client_ids[i]) {
session          1237 drivers/virt/vboxguest/vboxguest_core.c 			session->hgcm_client_ids[i] = U32_MAX;
session          1243 drivers/virt/vboxguest/vboxguest_core.c 	if (i >= ARRAY_SIZE(session->hgcm_client_ids))
session          1246 drivers/virt/vboxguest/vboxguest_core.c 	ret = vbg_hgcm_connect(gdev, session->requestor, &conn->u.in.loc,
session          1252 drivers/virt/vboxguest/vboxguest_core.c 		session->hgcm_client_ids[i] = client_id;
session          1255 drivers/virt/vboxguest/vboxguest_core.c 		session->hgcm_client_ids[i] = 0;
session          1263 drivers/virt/vboxguest/vboxguest_core.c 				     struct vbg_session *session,
session          1277 drivers/virt/vboxguest/vboxguest_core.c 	for (i = 0; i < ARRAY_SIZE(session->hgcm_client_ids); i++) {
session          1278 drivers/virt/vboxguest/vboxguest_core.c 		if (session->hgcm_client_ids[i] == client_id) {
session          1279 drivers/virt/vboxguest/vboxguest_core.c 			session->hgcm_client_ids[i] = U32_MAX;
session          1285 drivers/virt/vboxguest/vboxguest_core.c 	if (i >= ARRAY_SIZE(session->hgcm_client_ids))
session          1288 drivers/virt/vboxguest/vboxguest_core.c 	ret = vbg_hgcm_disconnect(gdev, session->requestor, client_id,
session          1293 drivers/virt/vboxguest/vboxguest_core.c 		session->hgcm_client_ids[i] = 0;
session          1295 drivers/virt/vboxguest/vboxguest_core.c 		session->hgcm_client_ids[i] = client_id;
session          1316 drivers/virt/vboxguest/vboxguest_core.c 			       struct vbg_session *session, bool f32bit,
session          1371 drivers/virt/vboxguest/vboxguest_core.c 	for (i = 0; i < ARRAY_SIZE(session->hgcm_client_ids); i++)
session          1372 drivers/virt/vboxguest/vboxguest_core.c 		if (session->hgcm_client_ids[i] == client_id)
session          1375 drivers/virt/vboxguest/vboxguest_core.c 	if (i >= ARRAY_SIZE(session->hgcm_client_ids)) {
session          1382 drivers/virt/vboxguest/vboxguest_core.c 		ret = vbg_hgcm_call32(gdev, session->requestor, client_id,
session          1387 drivers/virt/vboxguest/vboxguest_core.c 		ret = vbg_hgcm_call(gdev, session->requestor, client_id,
session          1416 drivers/virt/vboxguest/vboxguest_core.c 					struct vbg_session *session,
session          1430 drivers/virt/vboxguest/vboxguest_core.c 	return vbg_set_session_event_filter(gdev, session, or_mask, not_mask,
session          1435 drivers/virt/vboxguest/vboxguest_core.c 	     struct vbg_session *session, struct vbg_ioctl_set_guest_caps *caps)
session          1449 drivers/virt/vboxguest/vboxguest_core.c 	ret = vbg_set_session_capabilities(gdev, session, or_mask, not_mask,
session          1454 drivers/virt/vboxguest/vboxguest_core.c 	caps->u.out.session_caps = session->guest_caps;
session          1477 drivers/virt/vboxguest/vboxguest_core.c 				     struct vbg_session *session,
session          1486 drivers/virt/vboxguest/vboxguest_core.c 			    session->requestor);
session          1504 drivers/virt/vboxguest/vboxguest_core.c int vbg_core_ioctl(struct vbg_session *session, unsigned int req, void *data)
session          1507 drivers/virt/vboxguest/vboxguest_core.c 	struct vbg_dev *gdev = session->gdev;
session          1523 drivers/virt/vboxguest/vboxguest_core.c 		return vbg_ioctl_vmmrequest(gdev, session, data);
session          1533 drivers/virt/vboxguest/vboxguest_core.c 		return vbg_ioctl_hgcm_connect(gdev, session, data);
session          1535 drivers/virt/vboxguest/vboxguest_core.c 		return vbg_ioctl_hgcm_disconnect(gdev, session, data);
session          1537 drivers/virt/vboxguest/vboxguest_core.c 		return vbg_ioctl_wait_for_events(gdev, session, data);
session          1539 drivers/virt/vboxguest/vboxguest_core.c 		return vbg_ioctl_interrupt_all_wait_events(gdev, session, data);
session          1541 drivers/virt/vboxguest/vboxguest_core.c 		return vbg_ioctl_change_filter_mask(gdev, session, data);
session          1543 drivers/virt/vboxguest/vboxguest_core.c 		return vbg_ioctl_change_guest_capabilities(gdev, session, data);
session          1547 drivers/virt/vboxguest/vboxguest_core.c 		return vbg_ioctl_write_core_dump(gdev, session, data);
session          1558 drivers/virt/vboxguest/vboxguest_core.c 		return vbg_ioctl_hgcm_call(gdev, session, f32bit, data);
session           166 drivers/virt/vboxguest/vboxguest_core.h void vbg_core_close_session(struct vbg_session *session);
session           167 drivers/virt/vboxguest/vboxguest_core.h int  vbg_core_ioctl(struct vbg_session *session, unsigned int req, void *data);
session            51 drivers/virt/vboxguest/vboxguest_linux.c 	struct vbg_session *session;
session            57 drivers/virt/vboxguest/vboxguest_linux.c 	session = vbg_core_open_session(gdev, vbg_misc_device_requestor(inode));
session            58 drivers/virt/vboxguest/vboxguest_linux.c 	if (IS_ERR(session))
session            59 drivers/virt/vboxguest/vboxguest_linux.c 		return PTR_ERR(session);
session            61 drivers/virt/vboxguest/vboxguest_linux.c 	filp->private_data = session;
session            67 drivers/virt/vboxguest/vboxguest_linux.c 	struct vbg_session *session;
session            74 drivers/virt/vboxguest/vboxguest_linux.c 	session = vbg_core_open_session(gdev, vbg_misc_device_requestor(inode) |
session            76 drivers/virt/vboxguest/vboxguest_linux.c 	if (IS_ERR(session))
session            77 drivers/virt/vboxguest/vboxguest_linux.c 		return PTR_ERR(session);
session            79 drivers/virt/vboxguest/vboxguest_linux.c 	filp->private_data = session;
session           106 drivers/virt/vboxguest/vboxguest_linux.c 	struct vbg_session *session = filp->private_data;
session           138 drivers/virt/vboxguest/vboxguest_linux.c 				    session->requestor);
session           153 drivers/virt/vboxguest/vboxguest_linux.c 	ret = vbg_core_ioctl(session, req, buf);
session            47 fs/ceph/caps.c 				 struct ceph_mds_session *session,
session           607 fs/ceph/caps.c 		  struct ceph_mds_session *session, u64 cap_id,
session           615 fs/ceph/caps.c 	int mds = session->s_mds;
session           622 fs/ceph/caps.c 	     session->s_mds, cap_id, ceph_cap_string(issued), seq);
session           631 fs/ceph/caps.c 	spin_lock(&session->s_gen_ttl_lock);
session           632 fs/ceph/caps.c 	gen = session->s_cap_gen;
session           633 fs/ceph/caps.c 	spin_unlock(&session->s_gen_ttl_lock);
session           650 fs/ceph/caps.c 		cap->session = session;
session           651 fs/ceph/caps.c 		spin_lock(&session->s_cap_lock);
session           652 fs/ceph/caps.c 		list_add_tail(&cap->session_caps, &session->s_caps);
session           653 fs/ceph/caps.c 		session->s_nr_caps++;
session           654 fs/ceph/caps.c 		spin_unlock(&session->s_cap_lock);
session           656 fs/ceph/caps.c 		spin_lock(&session->s_cap_lock);
session           657 fs/ceph/caps.c 		list_move_tail(&cap->session_caps, &session->s_caps);
session           658 fs/ceph/caps.c 		spin_unlock(&session->s_cap_lock);
session           770 fs/ceph/caps.c 	spin_lock(&cap->session->s_gen_ttl_lock);
session           771 fs/ceph/caps.c 	gen = cap->session->s_cap_gen;
session           772 fs/ceph/caps.c 	ttl = cap->session->s_cap_ttl;
session           773 fs/ceph/caps.c 	spin_unlock(&cap->session->s_gen_ttl_lock);
session           846 fs/ceph/caps.c 	struct ceph_mds_session *s = cap->session;
session          1053 fs/ceph/caps.c 	struct ceph_mds_session *session = cap->session;
session          1067 fs/ceph/caps.c 	spin_lock(&session->s_cap_lock);
session          1068 fs/ceph/caps.c 	if (session->s_cap_iterator == cap) {
session          1071 fs/ceph/caps.c 		     cap, cap->session);
session          1074 fs/ceph/caps.c 		session->s_nr_caps--;
session          1075 fs/ceph/caps.c 		cap->session = NULL;
session          1086 fs/ceph/caps.c 	    (!session->s_cap_reconnect || cap->cap_gen == session->s_cap_gen)) {
session          1089 fs/ceph/caps.c 			__ceph_queue_cap_release(session, cap);
session          1097 fs/ceph/caps.c 	spin_unlock(&session->s_cap_lock);
session          1114 fs/ceph/caps.c 	struct ceph_mds_session	*session;
session          1141 fs/ceph/caps.c 	struct ceph_osd_client *osdc = &arg->session->s_mdsc->fsc->client->osdc;
session          1233 fs/ceph/caps.c 	ceph_con_send(&arg->session->s_con, msg);
session          1288 fs/ceph/caps.c 	     inode, cap, cap->session,
session          1293 fs/ceph/caps.c 	arg.session = cap->session;
session          1400 fs/ceph/caps.c 				    struct ceph_mds_session *session,
session          1406 fs/ceph/caps.c 	arg.session = session;
session          1454 fs/ceph/caps.c 			       struct ceph_mds_session *session)
session          1459 fs/ceph/caps.c 	struct ceph_mds_client *mdsc = session->s_mdsc;
session          1464 fs/ceph/caps.c 	dout("__flush_snaps %p session %p\n", inode, session);
session          1491 fs/ceph/caps.c 				      &session->s_cap_flushing);
session          1510 fs/ceph/caps.c 		if (!(cap && cap->session == session)) {
session          1512 fs/ceph/caps.c 			     "stop\n", inode, cap, session->s_mds);
session          1535 fs/ceph/caps.c 		ret = __send_flush_snap(inode, session, capsnap, cap->mseq,
session          1553 fs/ceph/caps.c 	struct ceph_mds_session *session = NULL;
session          1558 fs/ceph/caps.c 		session = *psession;
session          1570 fs/ceph/caps.c 	mds = ci->i_auth_cap->session->s_mds;
session          1571 fs/ceph/caps.c 	if (session && session->s_mds != mds) {
session          1572 fs/ceph/caps.c 		dout(" oops, wrong session %p mutex\n", session);
session          1573 fs/ceph/caps.c 		mutex_unlock(&session->s_mutex);
session          1574 fs/ceph/caps.c 		ceph_put_mds_session(session);
session          1575 fs/ceph/caps.c 		session = NULL;
session          1577 fs/ceph/caps.c 	if (!session) {
session          1580 fs/ceph/caps.c 		session = __ceph_lookup_mds_session(mdsc, mds);
session          1582 fs/ceph/caps.c 		if (session) {
session          1583 fs/ceph/caps.c 			dout(" inverting session/ino locks on %p\n", session);
session          1584 fs/ceph/caps.c 			mutex_lock(&session->s_mutex);
session          1591 fs/ceph/caps.c 		__kick_flushing_caps(mdsc, session, ci, 0);
session          1593 fs/ceph/caps.c 	__ceph_flush_snaps(ci, session);
session          1598 fs/ceph/caps.c 		*psession = session;
session          1599 fs/ceph/caps.c 	} else if (session) {
session          1600 fs/ceph/caps.c 		mutex_unlock(&session->s_mutex);
session          1601 fs/ceph/caps.c 		ceph_put_mds_session(session);
session          1724 fs/ceph/caps.c 				struct ceph_mds_session *session, bool wake,
session          1757 fs/ceph/caps.c 		list_add_tail(&ci->i_flushing_item, &session->s_cap_flushing);
session          1818 fs/ceph/caps.c 		     struct ceph_mds_session *session)
session          2006 fs/ceph/caps.c 		if (session && session != cap->session) {
session          2007 fs/ceph/caps.c 			dout("oops, wrong session %p mutex\n", session);
session          2008 fs/ceph/caps.c 			mutex_unlock(&session->s_mutex);
session          2009 fs/ceph/caps.c 			session = NULL;
session          2011 fs/ceph/caps.c 		if (!session) {
session          2012 fs/ceph/caps.c 			session = cap->session;
session          2013 fs/ceph/caps.c 			if (mutex_trylock(&session->s_mutex) == 0) {
session          2015 fs/ceph/caps.c 				     session);
session          2021 fs/ceph/caps.c 				mutex_lock(&session->s_mutex);
session          2032 fs/ceph/caps.c 				__kick_flushing_caps(mdsc, session, ci, 0);
session          2034 fs/ceph/caps.c 				__ceph_flush_snaps(ci, session);
session          2054 fs/ceph/caps.c 			flush_tid = __mark_caps_flushing(inode, session, false,
session          2083 fs/ceph/caps.c 	if (session)
session          2084 fs/ceph/caps.c 		mutex_unlock(&session->s_mutex);
session          2096 fs/ceph/caps.c 	struct ceph_mds_session *session = NULL;
session          2107 fs/ceph/caps.c 		if (session != cap->session) {
session          2109 fs/ceph/caps.c 			if (session)
session          2110 fs/ceph/caps.c 				mutex_unlock(&session->s_mutex);
session          2111 fs/ceph/caps.c 			session = cap->session;
session          2112 fs/ceph/caps.c 			mutex_lock(&session->s_mutex);
session          2115 fs/ceph/caps.c 		if (cap->session->s_state < CEPH_MDS_SESSION_OPEN) {
session          2123 fs/ceph/caps.c 				__kick_flushing_caps(mdsc, session, ci, 0);
session          2125 fs/ceph/caps.c 				__ceph_flush_snaps(ci, session);
session          2130 fs/ceph/caps.c 		flush_tid = __mark_caps_flushing(inode, session, true,
session          2158 fs/ceph/caps.c 	if (session)
session          2159 fs/ceph/caps.c 		mutex_unlock(&session->s_mutex);
session          2307 fs/ceph/caps.c 				 struct ceph_mds_session *session,
session          2334 fs/ceph/caps.c 		if (!(cap && cap->session == session)) {
session          2336 fs/ceph/caps.c 			       inode, cap, session->s_mds);
session          2372 fs/ceph/caps.c 			ret = __send_flush_snap(inode, session, capsnap, cap->mseq,
session          2390 fs/ceph/caps.c 				   struct ceph_mds_session *session)
session          2396 fs/ceph/caps.c 	dout("early_kick_flushing_caps mds%d\n", session->s_mds);
session          2402 fs/ceph/caps.c 	list_for_each_entry(ci, &session->s_cap_flushing, i_flushing_item) {
session          2405 fs/ceph/caps.c 		if (!(cap && cap->session == session)) {
session          2407 fs/ceph/caps.c 				&ci->vfs_inode, cap, session->s_mds);
session          2427 fs/ceph/caps.c 			__kick_flushing_caps(mdsc, session, ci,
session          2438 fs/ceph/caps.c 			     struct ceph_mds_session *session)
session          2444 fs/ceph/caps.c 	dout("kick_flushing_caps mds%d\n", session->s_mds);
session          2450 fs/ceph/caps.c 	list_for_each_entry(ci, &session->s_cap_flushing, i_flushing_item) {
session          2453 fs/ceph/caps.c 		if (!(cap && cap->session == session)) {
session          2455 fs/ceph/caps.c 				&ci->vfs_inode, cap, session->s_mds);
session          2460 fs/ceph/caps.c 			__kick_flushing_caps(mdsc, session, ci,
session          2468 fs/ceph/caps.c 				     struct ceph_mds_session *session,
session          2483 fs/ceph/caps.c 			       &cap->session->s_cap_flushing);
session          2487 fs/ceph/caps.c 		__kick_flushing_caps(mdsc, session, ci, oldest_flush_tid);
session          2650 fs/ceph/caps.c 			struct ceph_mds_session *s = ci->i_auth_cap->session;
session          3092 fs/ceph/caps.c 			     struct ceph_mds_session *session,
session          3098 fs/ceph/caps.c 	__releases(session->s_mdsc->snap_rwsem)
session          3107 fs/ceph/caps.c 	bool was_stale = cap->cap_gen < session->s_cap_gen;
session          3116 fs/ceph/caps.c 	     inode, cap, session->s_mds, seq, ceph_cap_string(newcaps));
session          3159 fs/ceph/caps.c 	cap->cap_gen = session->s_cap_gen;
session          3332 fs/ceph/caps.c 		kick_flushing_inode_caps(session->s_mdsc, session, inode);
session          3333 fs/ceph/caps.c 		up_read(&session->s_mdsc->snap_rwsem);
session          3361 fs/ceph/caps.c 				session);
session          3363 fs/ceph/caps.c 		ceph_check_caps(ci, CHECK_CAPS_NODELAY, session);
session          3365 fs/ceph/caps.c 		mutex_unlock(&session->s_mutex);
session          3374 fs/ceph/caps.c 				 struct ceph_mds_session *session,
session          3407 fs/ceph/caps.c 	     inode, session->s_mds, seq, ceph_cap_string(dirty),
session          3426 fs/ceph/caps.c 			if (!list_empty(&session->s_cap_flushing)) {
session          3428 fs/ceph/caps.c 				     session->s_mds,
session          3429 fs/ceph/caps.c 				     &list_first_entry(&session->s_cap_flushing,
session          3479 fs/ceph/caps.c 				     struct ceph_mds_session *session)
session          3490 fs/ceph/caps.c 	     inode, ci, session->s_mds, follows);
session          3545 fs/ceph/caps.c 			     struct ceph_mds_session *session)
session          3549 fs/ceph/caps.c 	int mds = session->s_mds;
session          3581 fs/ceph/caps.c 			      struct ceph_mds_session *session)
session          3591 fs/ceph/caps.c 	int mds = session->s_mds;
session          3651 fs/ceph/caps.c 					       &tcap->session->s_cap_flushing);
session          3668 fs/ceph/caps.c 				       &tcap->session->s_cap_flushing);
session          3677 fs/ceph/caps.c 	mutex_unlock(&session->s_mutex);
session          3683 fs/ceph/caps.c 			mutex_lock(&session->s_mutex);
session          3688 fs/ceph/caps.c 			mutex_lock_nested(&session->s_mutex,
session          3696 fs/ceph/caps.c 		mutex_lock(&session->s_mutex);
session          3702 fs/ceph/caps.c 	mutex_unlock(&session->s_mutex);
session          3719 fs/ceph/caps.c 			      struct ceph_mds_session *session,
session          3725 fs/ceph/caps.c 	int mds = session->s_mds;
session          3767 fs/ceph/caps.c 	ceph_add_cap(inode, session, cap_id, -1, caps, wanted, seq, mseq,
session          3801 fs/ceph/caps.c void ceph_handle_caps(struct ceph_mds_session *session,
session          3804 fs/ceph/caps.c 	struct ceph_mds_client *mdsc = session->s_mdsc;
session          3820 fs/ceph/caps.c 	dout("handle_caps from mds%d\n", session->s_mds);
session          3921 fs/ceph/caps.c 	mutex_lock(&session->s_mutex);
session          3922 fs/ceph/caps.c 	session->s_seq++;
session          3923 fs/ceph/caps.c 	dout(" mds%d seq %lld cap seq %u\n", session->s_mds, session->s_seq,
session          3937 fs/ceph/caps.c 			spin_lock(&session->s_cap_lock);
session          3938 fs/ceph/caps.c 			__ceph_queue_cap_release(session, cap);
session          3939 fs/ceph/caps.c 			spin_unlock(&session->s_cap_lock);
session          3948 fs/ceph/caps.c 					 h, session);
session          3952 fs/ceph/caps.c 		handle_cap_export(inode, h, peer, session);
session          3966 fs/ceph/caps.c 		handle_cap_import(mdsc, inode, h, peer, session,
session          3968 fs/ceph/caps.c 		handle_cap_grant(inode, session, cap,
session          3977 fs/ceph/caps.c 	cap = __get_cap_for_mds(ceph_inode(inode), session->s_mds);
session          3981 fs/ceph/caps.c 		     session->s_mds);
session          3992 fs/ceph/caps.c 		handle_cap_grant(inode, session, cap,
session          3998 fs/ceph/caps.c 				     h, session, cap);
session          4002 fs/ceph/caps.c 		handle_cap_trunc(inode, h, session);
session          4012 fs/ceph/caps.c 	mutex_unlock(&session->s_mutex);
session          4025 fs/ceph/caps.c 	ceph_flush_cap_releases(mdsc, session);
session           155 fs/ceph/debugfs.c 		struct ceph_mds_session *session;
session           157 fs/ceph/debugfs.c 		session = __ceph_lookup_mds_session(mdsc, i);
session           158 fs/ceph/debugfs.c 		if (!session)
session           161 fs/ceph/debugfs.c 		mutex_lock(&session->s_mutex);
session           162 fs/ceph/debugfs.c 		ceph_iterate_session_caps(session, caps_show_cb, s);
session           163 fs/ceph/debugfs.c 		mutex_unlock(&session->s_mutex);
session           164 fs/ceph/debugfs.c 		ceph_put_mds_session(session);
session           190 fs/ceph/debugfs.c 		struct ceph_mds_session *session =
session           192 fs/ceph/debugfs.c 		if (!session) {
session           197 fs/ceph/debugfs.c 				session->s_mds,
session           198 fs/ceph/debugfs.c 				ceph_session_state_name(session->s_state));
session           200 fs/ceph/debugfs.c 		ceph_put_mds_session(session);
session          1424 fs/ceph/dir.c  	struct ceph_mds_session *session;
session          1429 fs/ceph/dir.c  	session = di->lease_session;
session          1430 fs/ceph/dir.c  	if (session) {
session          1434 fs/ceph/dir.c  		spin_lock(&session->s_gen_ttl_lock);
session          1435 fs/ceph/dir.c  		gen = session->s_cap_gen;
session          1436 fs/ceph/dir.c  		ttl = session->s_cap_ttl;
session          1437 fs/ceph/dir.c  		spin_unlock(&session->s_gen_ttl_lock);
session          1451 fs/ceph/dir.c  	struct ceph_mds_session *session = NULL;
session          1470 fs/ceph/dir.c  				session = ceph_get_mds_session(di->lease_session);
session          1479 fs/ceph/dir.c  	if (session) {
session          1480 fs/ceph/dir.c  		ceph_mdsc_lease_send_msg(session, dentry,
session          1482 fs/ceph/dir.c  		ceph_put_mds_session(session);
session           731 fs/ceph/inode.c 		      struct ceph_mds_session *session,
session           963 fs/ceph/inode.c 			ceph_add_cap(inode, session,
session          1044 fs/ceph/inode.c 				  struct ceph_mds_session *session,
session          1066 fs/ceph/inode.c 	if (di->lease_gen == session->s_cap_gen &&
session          1070 fs/ceph/inode.c 	if (di->lease_session && di->lease_session != session) {
session          1076 fs/ceph/inode.c 		di->lease_session = ceph_get_mds_session(session);
session          1077 fs/ceph/inode.c 	di->lease_gen = session->s_cap_gen;
session          1088 fs/ceph/inode.c 					struct ceph_mds_session *session,
session          1093 fs/ceph/inode.c 	__update_dentry_lease(dir, dentry, lease, session, from_time,
session          1105 fs/ceph/inode.c 					struct ceph_mds_session *session,
session          1138 fs/ceph/inode.c 	__update_dentry_lease(dir, dentry, lease, session,
session          1217 fs/ceph/inode.c 	struct ceph_mds_session *session = req->r_session;
session          1240 fs/ceph/inode.c 					 session, req->r_request_started, -1,
session          1308 fs/ceph/inode.c 				session, req->r_request_started,
session          1407 fs/ceph/inode.c 						    rinfo->dlease, session,
session          1431 fs/ceph/inode.c 					    rinfo->dlease, session,
session          1462 fs/ceph/inode.c 					    session, req->r_request_started,
session          1475 fs/ceph/inode.c 					   struct ceph_mds_session *session)
session          1495 fs/ceph/inode.c 		rc = fill_inode(in, NULL, &rde->inode, NULL, session,
session          1558 fs/ceph/inode.c 			     struct ceph_mds_session *session)
session          1574 fs/ceph/inode.c 		return readdir_prepopulate_inodes_only(req, session);
session          1696 fs/ceph/inode.c 		ret = fill_inode(in, NULL, &rde->inode, NULL, session,
session            51 fs/ceph/mds_client.c 	struct ceph_mds_session *session;
session          1009 fs/ceph/mds_client.c 	mds = cap->session->s_mds;
session          1157 fs/ceph/mds_client.c 			  struct ceph_mds_session *session)
session          1161 fs/ceph/mds_client.c 	int mds = session->s_mds;
session          1167 fs/ceph/mds_client.c 	session->s_state = CEPH_MDS_SESSION_OPENING;
session          1168 fs/ceph/mds_client.c 	session->s_renew_requested = jiffies;
session          1171 fs/ceph/mds_client.c 	msg = create_session_open_msg(mdsc, session->s_seq);
session          1174 fs/ceph/mds_client.c 	ceph_con_send(&session->s_con, msg);
session          1186 fs/ceph/mds_client.c 	struct ceph_mds_session *session;
session          1188 fs/ceph/mds_client.c 	session = __ceph_lookup_mds_session(mdsc, target);
session          1189 fs/ceph/mds_client.c 	if (!session) {
session          1190 fs/ceph/mds_client.c 		session = register_session(mdsc, target);
session          1191 fs/ceph/mds_client.c 		if (IS_ERR(session))
session          1192 fs/ceph/mds_client.c 			return session;
session          1194 fs/ceph/mds_client.c 	if (session->s_state == CEPH_MDS_SESSION_NEW ||
session          1195 fs/ceph/mds_client.c 	    session->s_state == CEPH_MDS_SESSION_CLOSING)
session          1196 fs/ceph/mds_client.c 		__open_session(mdsc, session);
session          1198 fs/ceph/mds_client.c 	return session;
session          1204 fs/ceph/mds_client.c 	struct ceph_mds_session *session;
session          1209 fs/ceph/mds_client.c 	session = __open_export_target_session(mdsc, target);
session          1212 fs/ceph/mds_client.c 	return session;
session          1216 fs/ceph/mds_client.c 					  struct ceph_mds_session *session)
session          1220 fs/ceph/mds_client.c 	int i, mds = session->s_mds;
session          1227 fs/ceph/mds_client.c 	     session->s_mds, mi->num_export_targets);
session          1237 fs/ceph/mds_client.c 					   struct ceph_mds_session *session)
session          1240 fs/ceph/mds_client.c 	__open_export_target_sessions(mdsc, session);
session          1248 fs/ceph/mds_client.c static void detach_cap_releases(struct ceph_mds_session *session,
session          1251 fs/ceph/mds_client.c 	lockdep_assert_held(&session->s_cap_lock);
session          1253 fs/ceph/mds_client.c 	list_splice_init(&session->s_cap_releases, target);
session          1254 fs/ceph/mds_client.c 	session->s_num_cap_releases = 0;
session          1255 fs/ceph/mds_client.c 	dout("dispose_cap_releases mds%d\n", session->s_mds);
session          1271 fs/ceph/mds_client.c 				     struct ceph_mds_session *session)
session          1277 fs/ceph/mds_client.c 	dout("cleanup_session_requests mds%d\n", session->s_mds);
session          1279 fs/ceph/mds_client.c 	while (!list_empty(&session->s_unsafe)) {
session          1280 fs/ceph/mds_client.c 		req = list_first_entry(&session->s_unsafe,
session          1302 fs/ceph/mds_client.c 		    req->r_session->s_mds == session->s_mds)
session          1314 fs/ceph/mds_client.c int ceph_iterate_session_caps(struct ceph_mds_session *session,
session          1324 fs/ceph/mds_client.c 	dout("iterate_session_caps %p mds%d\n", session, session->s_mds);
session          1325 fs/ceph/mds_client.c 	spin_lock(&session->s_cap_lock);
session          1326 fs/ceph/mds_client.c 	p = session->s_caps.next;
session          1327 fs/ceph/mds_client.c 	while (p != &session->s_caps) {
session          1334 fs/ceph/mds_client.c 		session->s_cap_iterator = cap;
session          1335 fs/ceph/mds_client.c 		spin_unlock(&session->s_cap_lock);
session          1344 fs/ceph/mds_client.c 			ceph_put_cap(session->s_mdsc, old_cap);
session          1351 fs/ceph/mds_client.c 		spin_lock(&session->s_cap_lock);
session          1356 fs/ceph/mds_client.c 			BUG_ON(cap->session != session);
session          1357 fs/ceph/mds_client.c 			cap->session = NULL;
session          1359 fs/ceph/mds_client.c 			session->s_nr_caps--;
session          1361 fs/ceph/mds_client.c 				__ceph_queue_cap_release(session, cap);
session          1370 fs/ceph/mds_client.c 	session->s_cap_iterator = NULL;
session          1371 fs/ceph/mds_client.c 	spin_unlock(&session->s_cap_lock);
session          1375 fs/ceph/mds_client.c 		ceph_put_cap(session->s_mdsc, old_cap);
session          1482 fs/ceph/mds_client.c static void remove_session_caps(struct ceph_mds_session *session)
session          1484 fs/ceph/mds_client.c 	struct ceph_fs_client *fsc = session->s_mdsc->fsc;
session          1488 fs/ceph/mds_client.c 	dout("remove_session_caps on %p\n", session);
session          1489 fs/ceph/mds_client.c 	ceph_iterate_session_caps(session, remove_session_caps_cb, fsc);
session          1493 fs/ceph/mds_client.c 	spin_lock(&session->s_cap_lock);
session          1494 fs/ceph/mds_client.c 	if (session->s_nr_caps > 0) {
session          1505 fs/ceph/mds_client.c 		while (!list_empty(&session->s_caps)) {
session          1506 fs/ceph/mds_client.c 			cap = list_entry(session->s_caps.next,
session          1512 fs/ceph/mds_client.c 			spin_unlock(&session->s_cap_lock);
session          1518 fs/ceph/mds_client.c 			spin_lock(&session->s_cap_lock);
session          1523 fs/ceph/mds_client.c 	detach_cap_releases(session, &dispose);
session          1525 fs/ceph/mds_client.c 	BUG_ON(session->s_nr_caps > 0);
session          1526 fs/ceph/mds_client.c 	BUG_ON(!list_empty(&session->s_cap_flushing));
session          1527 fs/ceph/mds_client.c 	spin_unlock(&session->s_cap_lock);
session          1528 fs/ceph/mds_client.c 	dispose_cap_releases(session->s_mdsc, &dispose);
session          1555 fs/ceph/mds_client.c 		if (cap->cap_gen < cap->session->s_cap_gen) {
session          1570 fs/ceph/mds_client.c static void wake_up_session_caps(struct ceph_mds_session *session, int ev)
session          1572 fs/ceph/mds_client.c 	dout("wake_up_session_caps %p mds%d\n", session, session->s_mds);
session          1573 fs/ceph/mds_client.c 	ceph_iterate_session_caps(session, wake_up_session_cb,
session          1584 fs/ceph/mds_client.c 			   struct ceph_mds_session *session)
session          1589 fs/ceph/mds_client.c 	if (time_after_eq(jiffies, session->s_cap_ttl) &&
session          1590 fs/ceph/mds_client.c 	    time_after_eq(session->s_cap_ttl, session->s_renew_requested))
session          1591 fs/ceph/mds_client.c 		pr_info("mds%d caps stale\n", session->s_mds);
session          1592 fs/ceph/mds_client.c 	session->s_renew_requested = jiffies;
session          1596 fs/ceph/mds_client.c 	state = ceph_mdsmap_get_state(mdsc->mdsmap, session->s_mds);
session          1599 fs/ceph/mds_client.c 		     session->s_mds, ceph_mds_state_name(state));
session          1603 fs/ceph/mds_client.c 	dout("send_renew_caps to mds%d (%s)\n", session->s_mds,
session          1606 fs/ceph/mds_client.c 				 ++session->s_renew_seq);
session          1609 fs/ceph/mds_client.c 	ceph_con_send(&session->s_con, msg);
session          1614 fs/ceph/mds_client.c 			     struct ceph_mds_session *session, u64 seq)
session          1619 fs/ceph/mds_client.c 	     session->s_mds, ceph_session_state_name(session->s_state), seq);
session          1623 fs/ceph/mds_client.c 	ceph_con_send(&session->s_con, msg);
session          1634 fs/ceph/mds_client.c 			 struct ceph_mds_session *session, int is_renew)
session          1639 fs/ceph/mds_client.c 	spin_lock(&session->s_cap_lock);
session          1640 fs/ceph/mds_client.c 	was_stale = is_renew && time_after_eq(jiffies, session->s_cap_ttl);
session          1642 fs/ceph/mds_client.c 	session->s_cap_ttl = session->s_renew_requested +
session          1646 fs/ceph/mds_client.c 		if (time_before(jiffies, session->s_cap_ttl)) {
session          1647 fs/ceph/mds_client.c 			pr_info("mds%d caps renewed\n", session->s_mds);
session          1650 fs/ceph/mds_client.c 			pr_info("mds%d caps still stale\n", session->s_mds);
session          1654 fs/ceph/mds_client.c 	     session->s_mds, session->s_cap_ttl, was_stale ? "stale" : "fresh",
session          1655 fs/ceph/mds_client.c 	     time_before(jiffies, session->s_cap_ttl) ? "stale" : "fresh");
session          1656 fs/ceph/mds_client.c 	spin_unlock(&session->s_cap_lock);
session          1659 fs/ceph/mds_client.c 		wake_up_session_caps(session, RENEWCAPS);
session          1666 fs/ceph/mds_client.c 				 struct ceph_mds_session *session)
session          1671 fs/ceph/mds_client.c 	     session->s_mds, ceph_session_state_name(session->s_state),
session          1672 fs/ceph/mds_client.c 	     session->s_seq);
session          1673 fs/ceph/mds_client.c 	msg = create_session_msg(CEPH_SESSION_REQUEST_CLOSE, session->s_seq);
session          1676 fs/ceph/mds_client.c 	ceph_con_send(&session->s_con, msg);
session          1684 fs/ceph/mds_client.c 			 struct ceph_mds_session *session)
session          1686 fs/ceph/mds_client.c 	if (session->s_state >= CEPH_MDS_SESSION_CLOSING)
session          1688 fs/ceph/mds_client.c 	session->s_state = CEPH_MDS_SESSION_CLOSING;
session          1689 fs/ceph/mds_client.c 	return request_close_session(mdsc, session);
session          1798 fs/ceph/mds_client.c 		   struct ceph_mds_session *session,
session          1801 fs/ceph/mds_client.c 	int trim_caps = session->s_nr_caps - max_caps;
session          1804 fs/ceph/mds_client.c 	     session->s_mds, session->s_nr_caps, max_caps, trim_caps);
session          1808 fs/ceph/mds_client.c 		ceph_iterate_session_caps(session, trim_caps_cb, &remaining);
session          1810 fs/ceph/mds_client.c 		     session->s_mds, session->s_nr_caps, max_caps,
session          1814 fs/ceph/mds_client.c 	ceph_flush_cap_releases(mdsc, session);
session          1858 fs/ceph/mds_client.c 				   struct ceph_mds_session *session)
session          1873 fs/ceph/mds_client.c 	spin_lock(&session->s_cap_lock);
session          1875 fs/ceph/mds_client.c 	list_splice_init(&session->s_cap_releases, &tmp_list);
session          1876 fs/ceph/mds_client.c 	num_cap_releases = session->s_num_cap_releases;
session          1877 fs/ceph/mds_client.c 	session->s_num_cap_releases = 0;
session          1878 fs/ceph/mds_client.c 	spin_unlock(&session->s_cap_lock);
session          1918 fs/ceph/mds_client.c 			dout("send_cap_releases mds%d %p\n", session->s_mds, msg);
session          1919 fs/ceph/mds_client.c 			ceph_con_send(&session->s_con, msg);
session          1926 fs/ceph/mds_client.c 	spin_lock(&session->s_cap_lock);
session          1927 fs/ceph/mds_client.c 	if (!list_empty(&session->s_cap_releases))
session          1929 fs/ceph/mds_client.c 	spin_unlock(&session->s_cap_lock);
session          1938 fs/ceph/mds_client.c 		dout("send_cap_releases mds%d %p\n", session->s_mds, msg);
session          1939 fs/ceph/mds_client.c 		ceph_con_send(&session->s_con, msg);
session          1944 fs/ceph/mds_client.c 		session->s_mds);
session          1945 fs/ceph/mds_client.c 	spin_lock(&session->s_cap_lock);
session          1946 fs/ceph/mds_client.c 	list_splice(&tmp_list, &session->s_cap_releases);
session          1947 fs/ceph/mds_client.c 	session->s_num_cap_releases += num_cap_releases;
session          1948 fs/ceph/mds_client.c 	spin_unlock(&session->s_cap_lock);
session          1953 fs/ceph/mds_client.c 	struct ceph_mds_session *session =
session          1956 fs/ceph/mds_client.c 	mutex_lock(&session->s_mutex);
session          1957 fs/ceph/mds_client.c 	if (session->s_state == CEPH_MDS_SESSION_OPEN ||
session          1958 fs/ceph/mds_client.c 	    session->s_state == CEPH_MDS_SESSION_HUNG)
session          1959 fs/ceph/mds_client.c 		ceph_send_cap_releases(session->s_mdsc, session);
session          1960 fs/ceph/mds_client.c 	mutex_unlock(&session->s_mutex);
session          1961 fs/ceph/mds_client.c 	ceph_put_mds_session(session);
session          1965 fs/ceph/mds_client.c 		             struct ceph_mds_session *session)
session          1970 fs/ceph/mds_client.c 	get_session(session);
session          1972 fs/ceph/mds_client.c 		       &session->s_cap_release_work)) {
session          1975 fs/ceph/mds_client.c 		ceph_put_mds_session(session);
session          1983 fs/ceph/mds_client.c void __ceph_queue_cap_release(struct ceph_mds_session *session,
session          1986 fs/ceph/mds_client.c 	list_add_tail(&cap->session_caps, &session->s_cap_releases);
session          1987 fs/ceph/mds_client.c 	session->s_num_cap_releases++;
session          1989 fs/ceph/mds_client.c 	if (!(session->s_num_cap_releases % CEPH_CAPS_PER_RELEASE))
session          1990 fs/ceph/mds_client.c 		ceph_flush_cap_releases(session->s_mdsc, session);
session          2520 fs/ceph/mds_client.c 	struct ceph_mds_session *session = NULL;
session          2571 fs/ceph/mds_client.c 	session = __ceph_lookup_mds_session(mdsc, mds);
session          2572 fs/ceph/mds_client.c 	if (!session) {
session          2573 fs/ceph/mds_client.c 		session = register_session(mdsc, mds);
session          2574 fs/ceph/mds_client.c 		if (IS_ERR(session)) {
session          2575 fs/ceph/mds_client.c 			err = PTR_ERR(session);
session          2579 fs/ceph/mds_client.c 	req->r_session = get_session(session);
session          2581 fs/ceph/mds_client.c 	dout("do_request mds%d session %p state %s\n", mds, session,
session          2582 fs/ceph/mds_client.c 	     ceph_session_state_name(session->s_state));
session          2583 fs/ceph/mds_client.c 	if (session->s_state != CEPH_MDS_SESSION_OPEN &&
session          2584 fs/ceph/mds_client.c 	    session->s_state != CEPH_MDS_SESSION_HUNG) {
session          2585 fs/ceph/mds_client.c 		if (session->s_state == CEPH_MDS_SESSION_REJECTED) {
session          2589 fs/ceph/mds_client.c 		if (session->s_state == CEPH_MDS_SESSION_NEW ||
session          2590 fs/ceph/mds_client.c 		    session->s_state == CEPH_MDS_SESSION_CLOSING)
session          2591 fs/ceph/mds_client.c 			__open_session(mdsc, session);
session          2592 fs/ceph/mds_client.c 		list_add(&req->r_wait, &session->s_waiting);
session          2605 fs/ceph/mds_client.c 		ceph_con_send(&session->s_con, req->r_request);
session          2609 fs/ceph/mds_client.c 	ceph_put_mds_session(session);
session          2788 fs/ceph/mds_client.c static void handle_reply(struct ceph_mds_session *session, struct ceph_msg *msg)
session          2790 fs/ceph/mds_client.c 	struct ceph_mds_client *mdsc = session->s_mdsc;
session          2797 fs/ceph/mds_client.c 	int mds = session->s_mds;
session          2817 fs/ceph/mds_client.c 	if (req->r_session != session) {
session          2819 fs/ceph/mds_client.c 		       " not mds%d\n", tid, session->s_mds,
session          2906 fs/ceph/mds_client.c 	if (test_bit(CEPHFS_FEATURE_REPLY_ENCODING, &session->s_features))
session          2909 fs/ceph/mds_client.c 		err = parse_reply_info(msg, rinfo, session->s_con.peer_features);
session          2912 fs/ceph/mds_client.c 	mutex_lock(&session->s_mutex);
session          2975 fs/ceph/mds_client.c 	mutex_unlock(&session->s_mutex);
session          2990 fs/ceph/mds_client.c 			   struct ceph_mds_session *session,
session          3065 fs/ceph/mds_client.c static void handle_session(struct ceph_mds_session *session,
session          3068 fs/ceph/mds_client.c 	struct ceph_mds_client *mdsc = session->s_mdsc;
session          3069 fs/ceph/mds_client.c 	int mds = session->s_mds;
session          3100 fs/ceph/mds_client.c 		get_session(session);
session          3101 fs/ceph/mds_client.c 		__unregister_session(mdsc, session);
session          3104 fs/ceph/mds_client.c 	session->s_ttl = jiffies + HZ*mdsc->mdsmap->m_session_autoclose;
session          3107 fs/ceph/mds_client.c 	mutex_lock(&session->s_mutex);
session          3110 fs/ceph/mds_client.c 	     mds, ceph_session_op_name(op), session,
session          3111 fs/ceph/mds_client.c 	     ceph_session_state_name(session->s_state), seq);
session          3113 fs/ceph/mds_client.c 	if (session->s_state == CEPH_MDS_SESSION_HUNG) {
session          3114 fs/ceph/mds_client.c 		session->s_state = CEPH_MDS_SESSION_OPEN;
session          3115 fs/ceph/mds_client.c 		pr_info("mds%d came back\n", session->s_mds);
session          3120 fs/ceph/mds_client.c 		if (session->s_state == CEPH_MDS_SESSION_RECONNECTING)
session          3121 fs/ceph/mds_client.c 			pr_info("mds%d reconnect success\n", session->s_mds);
session          3122 fs/ceph/mds_client.c 		session->s_state = CEPH_MDS_SESSION_OPEN;
session          3123 fs/ceph/mds_client.c 		session->s_features = features;
session          3124 fs/ceph/mds_client.c 		renewed_caps(mdsc, session, 0);
session          3127 fs/ceph/mds_client.c 			__close_session(mdsc, session);
session          3131 fs/ceph/mds_client.c 		if (session->s_renew_seq == seq)
session          3132 fs/ceph/mds_client.c 			renewed_caps(mdsc, session, 1);
session          3136 fs/ceph/mds_client.c 		if (session->s_state == CEPH_MDS_SESSION_RECONNECTING)
session          3137 fs/ceph/mds_client.c 			pr_info("mds%d reconnect denied\n", session->s_mds);
session          3138 fs/ceph/mds_client.c 		cleanup_session_requests(mdsc, session);
session          3139 fs/ceph/mds_client.c 		remove_session_caps(session);
session          3146 fs/ceph/mds_client.c 			session->s_mds);
session          3147 fs/ceph/mds_client.c 		spin_lock(&session->s_gen_ttl_lock);
session          3148 fs/ceph/mds_client.c 		session->s_cap_gen++;
session          3149 fs/ceph/mds_client.c 		session->s_cap_ttl = jiffies - 1;
session          3150 fs/ceph/mds_client.c 		spin_unlock(&session->s_gen_ttl_lock);
session          3151 fs/ceph/mds_client.c 		send_renew_caps(mdsc, session);
session          3155 fs/ceph/mds_client.c 		ceph_trim_caps(mdsc, session, le32_to_cpu(h->max_caps));
session          3159 fs/ceph/mds_client.c 		send_flushmsg_ack(mdsc, session, seq);
session          3163 fs/ceph/mds_client.c 		dout("force_session_readonly %p\n", session);
session          3164 fs/ceph/mds_client.c 		spin_lock(&session->s_cap_lock);
session          3165 fs/ceph/mds_client.c 		session->s_readonly = true;
session          3166 fs/ceph/mds_client.c 		spin_unlock(&session->s_cap_lock);
session          3167 fs/ceph/mds_client.c 		wake_up_session_caps(session, FORCE_RO);
session          3171 fs/ceph/mds_client.c 		WARN_ON(session->s_state != CEPH_MDS_SESSION_OPENING);
session          3172 fs/ceph/mds_client.c 		pr_info("mds%d rejected session\n", session->s_mds);
session          3173 fs/ceph/mds_client.c 		session->s_state = CEPH_MDS_SESSION_REJECTED;
session          3174 fs/ceph/mds_client.c 		cleanup_session_requests(mdsc, session);
session          3175 fs/ceph/mds_client.c 		remove_session_caps(session);
session          3186 fs/ceph/mds_client.c 	mutex_unlock(&session->s_mutex);
session          3189 fs/ceph/mds_client.c 		__wake_requests(mdsc, &session->s_waiting);
session          3195 fs/ceph/mds_client.c 		ceph_put_mds_session(session);
session          3210 fs/ceph/mds_client.c 				   struct ceph_mds_session *session)
session          3216 fs/ceph/mds_client.c 	dout("replay_unsafe_requests mds%d\n", session->s_mds);
session          3219 fs/ceph/mds_client.c 	list_for_each_entry_safe(req, nreq, &session->s_unsafe, r_unsafe_item) {
session          3220 fs/ceph/mds_client.c 		err = __prepare_send_request(mdsc, req, session->s_mds, true);
session          3223 fs/ceph/mds_client.c 			ceph_con_send(&session->s_con, req->r_request);
session          3240 fs/ceph/mds_client.c 		    req->r_session->s_mds == session->s_mds) {
session          3242 fs/ceph/mds_client.c 						     session->s_mds, true);
session          3245 fs/ceph/mds_client.c 				ceph_con_send(&session->s_con, req->r_request);
session          3313 fs/ceph/mds_client.c 	ceph_con_send(&recon_state->session->s_con, reply);
session          3352 fs/ceph/mds_client.c 	cap->cap_gen = cap->session->s_cap_gen;
session          3575 fs/ceph/mds_client.c 			       struct ceph_mds_session *session)
session          3578 fs/ceph/mds_client.c 	int mds = session->s_mds;
session          3581 fs/ceph/mds_client.c 		.session = session,
session          3595 fs/ceph/mds_client.c 	mutex_lock(&session->s_mutex);
session          3596 fs/ceph/mds_client.c 	session->s_state = CEPH_MDS_SESSION_RECONNECTING;
session          3597 fs/ceph/mds_client.c 	session->s_seq = 0;
session          3599 fs/ceph/mds_client.c 	dout("session %p state %s\n", session,
session          3600 fs/ceph/mds_client.c 	     ceph_session_state_name(session->s_state));
session          3602 fs/ceph/mds_client.c 	spin_lock(&session->s_gen_ttl_lock);
session          3603 fs/ceph/mds_client.c 	session->s_cap_gen++;
session          3604 fs/ceph/mds_client.c 	spin_unlock(&session->s_gen_ttl_lock);
session          3606 fs/ceph/mds_client.c 	spin_lock(&session->s_cap_lock);
session          3608 fs/ceph/mds_client.c 	session->s_readonly = 0;
session          3614 fs/ceph/mds_client.c 	session->s_cap_reconnect = 1;
session          3616 fs/ceph/mds_client.c 	detach_cap_releases(session, &dispose);
session          3617 fs/ceph/mds_client.c 	spin_unlock(&session->s_cap_lock);
session          3624 fs/ceph/mds_client.c 	ceph_con_close(&session->s_con);
session          3625 fs/ceph/mds_client.c 	ceph_con_open(&session->s_con,
session          3630 fs/ceph/mds_client.c 	replay_unsafe_requests(mdsc, session);
session          3632 fs/ceph/mds_client.c 	ceph_early_kick_flushing_caps(mdsc, session);
session          3641 fs/ceph/mds_client.c 	if (test_bit(CEPHFS_FEATURE_MULTI_RECONNECT, &session->s_features)) {
session          3644 fs/ceph/mds_client.c 	} else if (session->s_con.peer_features & CEPH_FEATURE_MDSENC) {
session          3650 fs/ceph/mds_client.c 	err = ceph_iterate_session_caps(session, encode_caps_cb, &recon_state);
session          3652 fs/ceph/mds_client.c 	spin_lock(&session->s_cap_lock);
session          3653 fs/ceph/mds_client.c 	session->s_cap_reconnect = 0;
session          3654 fs/ceph/mds_client.c 	spin_unlock(&session->s_cap_lock);
session          3717 fs/ceph/mds_client.c 	ceph_con_send(&session->s_con, reply);
session          3719 fs/ceph/mds_client.c 	mutex_unlock(&session->s_mutex);
session          3722 fs/ceph/mds_client.c 	__wake_requests(mdsc, &session->s_waiting);
session          3732 fs/ceph/mds_client.c 	mutex_unlock(&session->s_mutex);
session          3863 fs/ceph/mds_client.c 			 struct ceph_mds_session *session,
session          3870 fs/ceph/mds_client.c 	int mds = session->s_mds;
session          3896 fs/ceph/mds_client.c 	mutex_lock(&session->s_mutex);
session          3897 fs/ceph/mds_client.c 	session->s_seq++;
session          3921 fs/ceph/mds_client.c 		if (di->lease_session == session) {
session          3930 fs/ceph/mds_client.c 		if (di->lease_session == session &&
session          3931 fs/ceph/mds_client.c 		    di->lease_gen == session->s_cap_gen &&
session          3955 fs/ceph/mds_client.c 	ceph_con_send(&session->s_con, msg);
session          3958 fs/ceph/mds_client.c 	mutex_unlock(&session->s_mutex);
session          3968 fs/ceph/mds_client.c void ceph_mdsc_lease_send_msg(struct ceph_mds_session *session,
session          3978 fs/ceph/mds_client.c 	     dentry, ceph_lease_op_name(action), session->s_mds);
session          4003 fs/ceph/mds_client.c 	ceph_con_send(&session->s_con, msg);
session          4343 fs/ceph/mds_client.c 	struct ceph_mds_session *session;
session          4352 fs/ceph/mds_client.c 		session = __ceph_lookup_mds_session(mdsc, i);
session          4353 fs/ceph/mds_client.c 		if (!session)
session          4356 fs/ceph/mds_client.c 		mutex_lock(&session->s_mutex);
session          4357 fs/ceph/mds_client.c 		if (__close_session(mdsc, session) <= 0)
session          4359 fs/ceph/mds_client.c 		mutex_unlock(&session->s_mutex);
session          4360 fs/ceph/mds_client.c 		ceph_put_mds_session(session);
session          4374 fs/ceph/mds_client.c 			session = get_session(mdsc->sessions[i]);
session          4375 fs/ceph/mds_client.c 			__unregister_session(mdsc, session);
session          4377 fs/ceph/mds_client.c 			mutex_lock(&session->s_mutex);
session          4378 fs/ceph/mds_client.c 			remove_session_caps(session);
session          4379 fs/ceph/mds_client.c 			mutex_unlock(&session->s_mutex);
session          4380 fs/ceph/mds_client.c 			ceph_put_mds_session(session);
session          4398 fs/ceph/mds_client.c 	struct ceph_mds_session *session;
session          4405 fs/ceph/mds_client.c 		session = __ceph_lookup_mds_session(mdsc, mds);
session          4406 fs/ceph/mds_client.c 		if (!session)
session          4409 fs/ceph/mds_client.c 		if (session->s_state == CEPH_MDS_SESSION_REJECTED)
session          4410 fs/ceph/mds_client.c 			__unregister_session(mdsc, session);
session          4411 fs/ceph/mds_client.c 		__wake_requests(mdsc, &session->s_waiting);
session          4414 fs/ceph/mds_client.c 		mutex_lock(&session->s_mutex);
session          4415 fs/ceph/mds_client.c 		__close_session(mdsc, session);
session          4416 fs/ceph/mds_client.c 		if (session->s_state == CEPH_MDS_SESSION_CLOSING) {
session          4417 fs/ceph/mds_client.c 			cleanup_session_requests(mdsc, session);
session          4418 fs/ceph/mds_client.c 			remove_session_caps(session);
session          4420 fs/ceph/mds_client.c 		mutex_unlock(&session->s_mutex);
session          4421 fs/ceph/mds_client.c 		ceph_put_mds_session(session);
session           487 fs/ceph/mds_client.h extern void __ceph_queue_cap_release(struct ceph_mds_session *session,
session           490 fs/ceph/mds_client.h 				    struct ceph_mds_session *session);
session           493 fs/ceph/mds_client.h extern int ceph_iterate_session_caps(struct ceph_mds_session *session,
session           509 fs/ceph/mds_client.h extern void ceph_mdsc_lease_send_msg(struct ceph_mds_session *session,
session           521 fs/ceph/mds_client.h 					  struct ceph_mds_session *session);
session           524 fs/ceph/mds_client.h 			  struct ceph_mds_session *session,
session            38 fs/ceph/quota.c 		       struct ceph_mds_session *session,
session            49 fs/ceph/quota.c 		       session->s_mds, (int)msg->front.iov_len);
session            55 fs/ceph/quota.c 	mutex_lock(&session->s_mutex);
session            56 fs/ceph/quota.c 	session->s_seq++;
session            57 fs/ceph/quota.c 	mutex_unlock(&session->s_mutex);
session           805 fs/ceph/snap.c 	struct ceph_mds_session *session = NULL;
session           815 fs/ceph/snap.c 		ceph_flush_snaps(ci, &session);
session           823 fs/ceph/snap.c 	if (session) {
session           824 fs/ceph/snap.c 		mutex_unlock(&session->s_mutex);
session           825 fs/ceph/snap.c 		ceph_put_mds_session(session);
session           843 fs/ceph/snap.c 		      struct ceph_mds_session *session,
session           847 fs/ceph/snap.c 	int mds = session->s_mds;
session           875 fs/ceph/snap.c 	mutex_lock(&session->s_mutex);
session           876 fs/ceph/snap.c 	session->s_seq++;
session           877 fs/ceph/snap.c 	mutex_unlock(&session->s_mutex);
session           149 fs/ceph/super.h 	struct ceph_mds_session *session;
session           870 fs/ceph/super.h 			     struct ceph_mds_session *session,
session           915 fs/ceph/super.h 				    struct ceph_mds_session *session);
session          1034 fs/ceph/super.h extern void ceph_handle_caps(struct ceph_mds_session *session,
session          1039 fs/ceph/super.h 			 struct ceph_mds_session *session, u64 cap_id,
session          1053 fs/ceph/super.h 					  struct ceph_mds_session *session);
session          1055 fs/ceph/super.h 				    struct ceph_mds_session *session);
session          1066 fs/ceph/super.h 			    struct ceph_mds_session *session);
session          1170 fs/ceph/super.h 			      struct ceph_mds_session *session,
session           157 fs/hfs/hfs_fs.h 	int session, part;
session            43 fs/hfs/mdb.c   	if (HFS_SB(sb)->session >= 0) {
session            44 fs/hfs/mdb.c   		te.cdte_track = HFS_SB(sb)->session;
session           151 fs/hfs/super.c 	if (sbi->session >= 0)
session           152 fs/hfs/super.c 		seq_printf(seq, ",session=%u", sbi->session);
session           238 fs/hfs/super.c 	hsb->session = -1;
session           300 fs/hfs/super.c 			if (match_int(&args[0], &hsb->session)) {
session           187 fs/hfsplus/hfsplus_fs.h 	int part, session;
session            60 fs/hfsplus/options.c 	opts->session = -1;
session           163 fs/hfsplus/options.c 			if (match_int(&args[0], &sbi->session)) {
session           230 fs/hfsplus/options.c 	if (sbi->session >= 0)
session           231 fs/hfsplus/options.c 		seq_printf(seq, ",session=%u", sbi->session);
session           138 fs/hfsplus/wrapper.c 	if (HFSPLUS_SB(sb)->session >= 0) {
session           139 fs/hfsplus/wrapper.c 		te.cdte_track = HFSPLUS_SB(sb)->session;
session           168 fs/isofs/inode.c 	s32 session;
session           360 fs/isofs/inode.c 	popt->session=-1;
session           421 fs/isofs/inode.c 			popt->session = n + 1;
session           545 fs/isofs/inode.c static unsigned int isofs_get_last_session(struct super_block *sb, s32 session)
session           554 fs/isofs/inode.c 	if (session > 0) {
session           556 fs/isofs/inode.c 		Te.cdte_track=session;
session           561 fs/isofs/inode.c 				session, Te.cdte_addr.lba,
session           570 fs/isofs/inode.c 	if (session > 0)
session           664 fs/isofs/inode.c 	sbi->s_session = opt.session;
session           668 fs/isofs/inode.c 		opt.sbsector : isofs_get_last_session(s,opt.session);
session           468 fs/nfs/callback_proc.c 	struct nfs4_session *session;
session           477 fs/nfs/callback_proc.c 	session = clp->cl_session;
session           478 fs/nfs/callback_proc.c 	tbl = &session->fc_slot_table;
session           482 fs/nfs/callback_proc.c 		if (memcmp(session->sess_id.data,
session           792 fs/nfs/callback_xdr.c static void nfs4_callback_free_slot(struct nfs4_session *session,
session           795 fs/nfs/callback_xdr.c 	struct nfs4_slot_table *tbl = &session->bc_slot_table;
session           459 fs/nfs/nfs4_fs.h static inline void nfs4_schedule_session_recovery(struct nfs4_session *session, int err)
session           326 fs/nfs/nfs4client.c 	struct nfs4_session *session = NULL;
session           333 fs/nfs/nfs4client.c 	session = nfs4_alloc_session(clp);
session           334 fs/nfs/nfs4client.c 	if (!session)
session           337 fs/nfs/nfs4client.c 	clp->cl_session = session;
session           721 fs/nfs/nfs4proc.c 	struct nfs4_session *session;
session           728 fs/nfs/nfs4proc.c 	session = tbl->session;
session           753 fs/nfs/nfs4proc.c 		nfs41_notify_server(session->clp);
session           780 fs/nfs/nfs4proc.c 	struct nfs4_session *session;
session           792 fs/nfs/nfs4proc.c 	session = slot->table->session;
session           794 fs/nfs/nfs4proc.c 	trace_nfs4_sequence_done(session, res);
session           807 fs/nfs/nfs4proc.c 		clp = session->clp;
session           887 fs/nfs/nfs4proc.c 	nfs4_schedule_session_recovery(session, status);
session           922 fs/nfs/nfs4proc.c 	if (res->sr_slot->table->session != NULL)
session           930 fs/nfs/nfs4proc.c 		if (res->sr_slot->table->session != NULL)
session           941 fs/nfs/nfs4proc.c 	if (!res->sr_slot->table->session)
session          1016 fs/nfs/nfs4proc.c 	struct nfs4_session *session = nfs4_get_session(client);
session          1024 fs/nfs/nfs4proc.c 	if (session)
session          1025 fs/nfs/nfs4proc.c 		tbl = &session->fc_slot_table;
session          1042 fs/nfs/nfs4proc.c 	trace_nfs4_setup_sequence(session, args);
session          8608 fs/nfs/nfs4proc.c static void nfs4_update_session(struct nfs4_session *session,
session          8611 fs/nfs/nfs4proc.c 	nfs4_copy_sessionid(&session->sess_id, &res->sessionid);
session          8613 fs/nfs/nfs4proc.c 	session->clp->cl_exchange_flags |= EXCHGID4_FLAG_CONFIRMED_R;
session          8614 fs/nfs/nfs4proc.c 	set_bit(NFS4_SESSION_ESTABLISHED, &session->session_state);
session          8615 fs/nfs/nfs4proc.c 	session->flags = res->flags;
session          8616 fs/nfs/nfs4proc.c 	memcpy(&session->fc_attrs, &res->fc_attrs, sizeof(session->fc_attrs));
session          8618 fs/nfs/nfs4proc.c 		memcpy(&session->bc_attrs, &res->bc_attrs,
session          8619 fs/nfs/nfs4proc.c 				sizeof(session->bc_attrs));
session          8625 fs/nfs/nfs4proc.c 	struct nfs4_session *session = clp->cl_session;
session          8645 fs/nfs/nfs4proc.c 	status = rpc_call_sync(session->clp->cl_rpcclient, &msg,
session          8665 fs/nfs/nfs4proc.c 		nfs4_update_session(session, &res);
session          8680 fs/nfs/nfs4proc.c 	struct nfs4_session *session = clp->cl_session;
session          8682 fs/nfs/nfs4proc.c 	dprintk("--> %s clp=%p session=%p\n", __func__, clp, session);
session          8689 fs/nfs/nfs4proc.c 	status = nfs4_setup_session_slot_tables(session);
session          8694 fs/nfs/nfs4proc.c 	ptr = (unsigned *)&session->sess_id.data[0];
session          8706 fs/nfs/nfs4proc.c int nfs4_proc_destroy_session(struct nfs4_session *session,
session          8711 fs/nfs/nfs4proc.c 		.rpc_argp = session,
session          8719 fs/nfs/nfs4proc.c 	if (!test_and_clear_bit(NFS4_SESSION_ESTABLISHED, &session->session_state))
session          8722 fs/nfs/nfs4proc.c 	status = rpc_call_sync(session->clp->cl_rpcclient, &msg,
session          8724 fs/nfs/nfs4proc.c 	trace_nfs4_destroy_session(session->clp, status);
session           523 fs/nfs/nfs4session.c static void nfs4_release_session_slot_tables(struct nfs4_session *session)
session           525 fs/nfs/nfs4session.c 	nfs4_release_slot_table(&session->fc_slot_table);
session           526 fs/nfs/nfs4session.c 	nfs4_release_slot_table(&session->bc_slot_table);
session           540 fs/nfs/nfs4session.c 	tbl->session = ses;
session           546 fs/nfs/nfs4session.c 	tbl->session = ses;
session           557 fs/nfs/nfs4session.c 	struct nfs4_session *session;
session           559 fs/nfs/nfs4session.c 	session = kzalloc(sizeof(struct nfs4_session), GFP_NOFS);
session           560 fs/nfs/nfs4session.c 	if (!session)
session           563 fs/nfs/nfs4session.c 	nfs4_init_slot_table(&session->fc_slot_table, "ForeChannel Slot table");
session           564 fs/nfs/nfs4session.c 	nfs4_init_slot_table(&session->bc_slot_table, "BackChannel Slot table");
session           565 fs/nfs/nfs4session.c 	session->session_state = 1<<NFS4_SESSION_INITING;
session           567 fs/nfs/nfs4session.c 	session->clp = clp;
session           568 fs/nfs/nfs4session.c 	return session;
session           571 fs/nfs/nfs4session.c static void nfs4_destroy_session_slot_tables(struct nfs4_session *session)
session           573 fs/nfs/nfs4session.c 	nfs4_shutdown_slot_table(&session->fc_slot_table);
session           574 fs/nfs/nfs4session.c 	nfs4_shutdown_slot_table(&session->bc_slot_table);
session           577 fs/nfs/nfs4session.c void nfs4_destroy_session(struct nfs4_session *session)
session           582 fs/nfs/nfs4session.c 	cred = nfs4_get_clid_cred(session->clp);
session           583 fs/nfs/nfs4session.c 	nfs4_proc_destroy_session(session, cred);
session           587 fs/nfs/nfs4session.c 	xprt = rcu_dereference(session->clp->cl_rpcclient->cl_xprt);
session           592 fs/nfs/nfs4session.c 	nfs4_destroy_session_slot_tables(session);
session           593 fs/nfs/nfs4session.c 	kfree(session);
session           629 fs/nfs/nfs4session.c 	struct nfs4_session *session = clp->cl_session;
session           633 fs/nfs/nfs4session.c 	if (test_and_clear_bit(NFS4_SESSION_INITING, &session->session_state)) {
session            39 fs/nfs/nfs4session.h 	struct nfs4_session *session;		/* Parent session */
session           123 fs/nfs/nfs4session.h extern void nfs4_destroy_session(struct nfs4_session *session);
session           158 fs/nfs/nfs4session.h #define nfs_session_id_hash(session) (0)
session           180 fs/nfs/nfs4session.h #define nfs_session_id_hash(session) (0)
session          2302 fs/nfs/nfs4state.c void nfs4_schedule_session_recovery(struct nfs4_session *session, int err)
session          2304 fs/nfs/nfs4state.c 	struct nfs_client *clp = session->clp;
session           411 fs/nfs/nfs4trace.h 			const struct nfs4_session *session,
session           414 fs/nfs/nfs4trace.h 		TP_ARGS(session, res),
session           417 fs/nfs/nfs4trace.h 			__field(unsigned int, session)
session           428 fs/nfs/nfs4trace.h 			__entry->session = nfs_session_id_hash(&session->sess_id);
session           444 fs/nfs/nfs4trace.h 			__entry->session,
session           466 fs/nfs/nfs4trace.h 			__field(unsigned int, session)
session           475 fs/nfs/nfs4trace.h 			__entry->session = nfs_session_id_hash(&args->csa_sessionid);
session           488 fs/nfs/nfs4trace.h 			__entry->session,
session           503 fs/nfs/nfs4trace.h 			__field(unsigned int, session)
session           512 fs/nfs/nfs4trace.h 			__entry->session = nfs_session_id_hash(&args->csa_sessionid);
session           525 fs/nfs/nfs4trace.h 			__entry->session,
session           536 fs/nfs/nfs4trace.h 			const struct nfs4_session *session,
session           539 fs/nfs/nfs4trace.h 		TP_ARGS(session, args),
session           542 fs/nfs/nfs4trace.h 			__field(unsigned int, session)
session           550 fs/nfs/nfs4trace.h 			__entry->session = session ? nfs_session_id_hash(&session->sess_id) : 0;
session           559 fs/nfs/nfs4trace.h 			__entry->session,
session          1887 fs/nfs/nfs4xdr.c 				   const struct nfs4_session *session,
session          1891 fs/nfs/nfs4xdr.c 	encode_opaque_fixed(xdr, session->sess_id.data, NFS4_MAX_SESSIONID_LEN);
session          1916 fs/nfs/nfs4xdr.c 	struct nfs4_session *session;
session          1922 fs/nfs/nfs4xdr.c 	session = tp->session;
session          1923 fs/nfs/nfs4xdr.c 	if (!session)
session          1934 fs/nfs/nfs4xdr.c 		((u32 *)session->sess_id.data)[0],
session          1935 fs/nfs/nfs4xdr.c 		((u32 *)session->sess_id.data)[1],
session          1936 fs/nfs/nfs4xdr.c 		((u32 *)session->sess_id.data)[2],
session          1937 fs/nfs/nfs4xdr.c 		((u32 *)session->sess_id.data)[3],
session          1941 fs/nfs/nfs4xdr.c 	p = xdr_encode_opaque_fixed(p, session->sess_id.data, NFS4_MAX_SESSIONID_LEN);
session          2107 fs/nfs/nfs4xdr.c 	struct nfs4_session *session = args->sa_slot->table->session;
session          2108 fs/nfs/nfs4xdr.c 	if (session)
session          2109 fs/nfs/nfs4xdr.c 		return session->clp->cl_mvops->minor_version;
session          2919 fs/nfs/nfs4xdr.c 	const struct nfs4_session *session = data;
session          2921 fs/nfs/nfs4xdr.c 		.minorversion = session->clp->cl_mvops->minor_version,
session          2925 fs/nfs/nfs4xdr.c 	encode_destroy_session(xdr, session, &hdr);
session          5722 fs/nfs/nfs4xdr.c 	struct nfs4_session *session;
session          5730 fs/nfs/nfs4xdr.c 	if (!res->sr_slot->table->session)
session          5744 fs/nfs/nfs4xdr.c 	session = res->sr_slot->table->session;
session          5746 fs/nfs/nfs4xdr.c 	if (memcmp(id.data, session->sess_id.data,
session           149 fs/nfsd/nfs4callback.c 			      const struct nfsd4_session *session)
session           154 fs/nfsd/nfs4callback.c 	xdr_encode_opaque_fixed(p, session->se_sessionid.data,
session           346 fs/nfsd/nfs4callback.c 	struct nfsd4_session *session = cb->cb_clp->cl_cb_session;
session           353 fs/nfsd/nfs4callback.c 	encode_sessionid4(xdr, session);
session           356 fs/nfsd/nfs4callback.c 	*p++ = cpu_to_be32(session->se_cb_seq_nr);	/* csa_sequenceid */
session           389 fs/nfsd/nfs4callback.c 	struct nfsd4_session *session = cb->cb_clp->cl_cb_session;
session           402 fs/nfsd/nfs4callback.c 	if (memcmp(p, session->se_sessionid.data, NFS4_MAX_SESSIONID_LEN)) {
session           409 fs/nfsd/nfs4callback.c 	if (dummy != session->se_cb_seq_nr) {
session          1019 fs/nfsd/nfs4callback.c 	struct nfsd4_session *session = clp->cl_cb_session;
session          1050 fs/nfsd/nfs4callback.c 		++session->se_cb_seq_nr;
session          1053 fs/nfsd/nfs4callback.c 		++session->se_cb_seq_nr;
session          1069 fs/nfsd/nfs4callback.c 		if (session->se_cb_seq_nr != 1) {
session          1070 fs/nfsd/nfs4callback.c 			session->se_cb_seq_nr = 1;
session           340 fs/nfsd/nfs4proc.c copy_clientid(clientid_t *clid, struct nfsd4_session *session)
session           343 fs/nfsd/nfs4proc.c 			(struct nfsd4_sessionid *)session->se_sessionid.data;
session           375 fs/nfsd/nfs4proc.c 		      &cstate->session->se_client->cl_flags) &&
session           380 fs/nfsd/nfs4proc.c 		copy_clientid(&open->op_clientid, cstate->session);
session          1582 fs/nfsd/nfs4proc.c 				rqstp, cstate->session->se_client, gdp);
session          1827 fs/nfsd/nfs4state.c 	struct nfsd4_session *session;
session          1830 fs/nfsd/nfs4state.c 	session = __find_in_sessionid_hashtbl(sessionid, net);
session          1831 fs/nfsd/nfs4state.c 	if (!session)
session          1833 fs/nfsd/nfs4state.c 	status = nfsd4_get_session_locked(session);
session          1835 fs/nfsd/nfs4state.c 		session = NULL;
session          1838 fs/nfsd/nfs4state.c 	return session;
session          3387 fs/nfsd/nfs4state.c 	struct nfsd4_session *session = cstate->session;
session          3395 fs/nfsd/nfs4state.c 	session->se_cb_prog = bc->bc_cb_program;
session          3396 fs/nfsd/nfs4state.c 	session->se_cb_sec = bc->bc_cb_sec;
session          3399 fs/nfsd/nfs4state.c 	nfsd4_probe_callback(session->se_client);
session          3411 fs/nfsd/nfs4state.c 	struct nfsd4_session *session;
session          3418 fs/nfsd/nfs4state.c 	session = find_in_sessionid_hashtbl(&bcts->sessionid, net, &status);
session          3420 fs/nfsd/nfs4state.c 	if (!session)
session          3423 fs/nfsd/nfs4state.c 	if (!nfsd4_mach_creds_match(session->se_client, rqstp))
session          3432 fs/nfsd/nfs4state.c 	nfsd4_init_conn(rqstp, conn, session);
session          3435 fs/nfsd/nfs4state.c 	nfsd4_put_session(session);
session          3442 fs/nfsd/nfs4state.c 	if (!cstate->session)
session          3444 fs/nfsd/nfs4state.c 	return !memcmp(sid, &cstate->session->se_sessionid, sizeof(*sid));
session          3529 fs/nfsd/nfs4state.c static bool nfsd4_session_too_many_ops(struct svc_rqst *rqstp, struct nfsd4_session *session)
session          3533 fs/nfsd/nfs4state.c 	return args->opcnt > session->se_fchannel.maxops;
session          3537 fs/nfsd/nfs4state.c 				  struct nfsd4_session *session)
session          3541 fs/nfsd/nfs4state.c 	return xb->len > session->se_fchannel.maxreq_sz;
session          3584 fs/nfsd/nfs4state.c 	struct nfsd4_session *session;
session          3605 fs/nfsd/nfs4state.c 	session = find_in_sessionid_hashtbl(&seq->sessionid, net, &status);
session          3606 fs/nfsd/nfs4state.c 	if (!session)
session          3608 fs/nfsd/nfs4state.c 	clp = session->se_client;
session          3611 fs/nfsd/nfs4state.c 	if (nfsd4_session_too_many_ops(rqstp, session))
session          3615 fs/nfsd/nfs4state.c 	if (nfsd4_request_too_big(rqstp, session))
session          3619 fs/nfsd/nfs4state.c 	if (seq->slotid >= session->se_fchannel.maxreqs)
session          3622 fs/nfsd/nfs4state.c 	slot = session->se_slots[seq->slotid];
session          3628 fs/nfsd/nfs4state.c 	seq->maxslots = session->se_fchannel.maxreqs;
session          3640 fs/nfsd/nfs4state.c 		cstate->session = session;
session          3651 fs/nfsd/nfs4state.c 	status = nfsd4_sequence_check_conn(conn, session);
session          3657 fs/nfsd/nfs4state.c 			session->se_fchannel.maxresp_cached :
session          3658 fs/nfsd/nfs4state.c 			session->se_fchannel.maxresp_sz;
session          3675 fs/nfsd/nfs4state.c 	cstate->session = session;
session          3697 fs/nfsd/nfs4state.c 	nfsd4_put_session_locked(session);
session          3712 fs/nfsd/nfs4state.c 		nfsd4_put_session(cs->session);
session          3780 fs/nfsd/nfs4state.c 			     &cstate->session->se_client->cl_flags))
session          3784 fs/nfsd/nfs4state.c 	if (is_client_expired(cstate->session->se_client))
session          3795 fs/nfsd/nfs4state.c 	nfsd4_client_record_create(cstate->session->se_client);
session          3796 fs/nfsd/nfs4state.c 	inc_reclaim_complete(cstate->session->se_client);
session          4514 fs/nfsd/nfs4state.c 	WARN_ON_ONCE(cstate->session);
session          5528 fs/nfsd/nfs4state.c 		if (cstate->session)
session          5675 fs/nfsd/nfs4state.c 	struct nfs4_client *cl = cstate->session->se_client;
session          5721 fs/nfsd/nfs4state.c 	struct nfs4_client *cl = cstate->session->se_client;
session          6449 fs/nfsd/nfs4state.c 				&cstate->session->se_client->cl_clientid,
session            59 fs/nfsd/xdr4.h 	struct nfsd4_session	*session;
session           214 fs/udf/super.c 	unsigned int session;
session           464 fs/udf/super.c 	uopt->session = 0xFFFFFFFF;
session           537 fs/udf/super.c 			uopt->session = option;
session          2163 fs/udf/super.c 	if (uopt.session == 0xFFFFFFFF)
session          2166 fs/udf/super.c 		sbi->s_session = uopt.session;
session            74 include/keys/rxrpc-type.h 	struct krb5_tagged_data	session;	/* session data; tag is enctype */
session           118 include/linux/atmdev.h 	struct atm_vcc	*session;	/* session VCC descriptor */
session           101 include/linux/tee_drv.h 	int (*close_session)(struct tee_context *ctx, u32 session);
session           105 include/linux/tee_drv.h 	int (*cancel_req)(struct tee_context *ctx, u32 cancel_id, u32 session);
session           514 include/linux/tee_drv.h int tee_client_close_session(struct tee_context *ctx, u32 session);
session           309 include/linux/tty.h 	struct pid *session;
session           508 include/linux/tty.h extern void session_clear_tty(struct pid *session);
session           172 include/net/bluetooth/rfcomm.h 	struct rfcomm_session *session;
session           156 include/scsi/libiscsi.h 	struct iscsi_session	*session;	/* parent session */
session           423 include/scsi/libiscsi.h extern void iscsi_session_failure(struct iscsi_session *session,
session           121 include/scsi/libiscsi_tcp.h extern int iscsi_tcp_r2tpool_alloc(struct iscsi_session *session);
session           122 include/scsi/libiscsi_tcp.h extern void iscsi_tcp_r2tpool_free(struct iscsi_session *session);
session            82 include/scsi/scsi_transport_iscsi.h 	void (*destroy_session) (struct iscsi_cls_session *session);
session            85 include/scsi/scsi_transport_iscsi.h 	int (*bind_conn) (struct iscsi_cls_session *session,
session            97 include/scsi/scsi_transport_iscsi.h 	int (*get_session_param) (struct iscsi_cls_session *session,
session           120 include/scsi/scsi_transport_iscsi.h 	void (*session_recovery_timedout) (struct iscsi_cls_session *session);
session           410 include/scsi/scsi_transport_iscsi.h extern int iscsi_session_chkready(struct iscsi_cls_session *session);
session           411 include/scsi/scsi_transport_iscsi.h extern int iscsi_is_session_online(struct iscsi_cls_session *session);
session           414 include/scsi/scsi_transport_iscsi.h extern int iscsi_add_session(struct iscsi_cls_session *session,
session           416 include/scsi/scsi_transport_iscsi.h extern int iscsi_session_event(struct iscsi_cls_session *session,
session           422 include/scsi/scsi_transport_iscsi.h extern void iscsi_remove_session(struct iscsi_cls_session *session);
session           423 include/scsi/scsi_transport_iscsi.h extern void iscsi_free_session(struct iscsi_cls_session *session);
session           427 include/scsi/scsi_transport_iscsi.h extern void iscsi_unblock_session(struct iscsi_cls_session *session);
session           428 include/scsi/scsi_transport_iscsi.h extern void iscsi_block_session(struct iscsi_cls_session *session);
session           895 include/target/iscsi/iscsi_target_core.h static inline u32 session_get_next_ttt(struct iscsi_session *session)
session           899 include/target/iscsi/iscsi_target_core.h 	spin_lock_bh(&session->ttt_lock);
session           900 include/target/iscsi/iscsi_target_core.h 	ttt = session->targ_xfer_tag++;
session           902 include/target/iscsi/iscsi_target_core.h 		ttt = session->targ_xfer_tag++;
session           903 include/target/iscsi/iscsi_target_core.h 	spin_unlock_bh(&session->ttt_lock);
session            37 include/uapi/linux/atmsvc.h 	unsigned int session;		/* for p2pm */
session           341 include/uapi/linux/batadv_packet.h 	__u8   session[2];
session            73 include/uapi/linux/sed-opal.h 	struct opal_session_info session;
session            77 include/uapi/linux/sed-opal.h 	struct opal_session_info session;
session            83 include/uapi/linux/sed-opal.h 	struct opal_session_info session;
session           219 include/uapi/linux/tee.h 	__u32 session;
session           249 include/uapi/linux/tee.h 	__u32 session;
session           274 include/uapi/linux/tee.h 	__u32 session;
session           288 include/uapi/linux/tee.h 	__u32 session;
session          1162 kernel/sys.c   	pid_t session = pid_vnr(sid);
session          1181 kernel/sys.c   	err = session;
session            47 kernel/trace/trace_stat.c static void __reset_stat_session(struct stat_session *session)
session            51 kernel/trace/trace_stat.c 	rbtree_postorder_for_each_entry_safe(snode, n, &session->stat_root, node) {
session            52 kernel/trace/trace_stat.c 		if (session->ts->stat_release)
session            53 kernel/trace/trace_stat.c 			session->ts->stat_release(snode->stat);
session            57 kernel/trace/trace_stat.c 	session->stat_root = RB_ROOT;
session            60 kernel/trace/trace_stat.c static void reset_stat_session(struct stat_session *session)
session            62 kernel/trace/trace_stat.c 	mutex_lock(&session->stat_mutex);
session            63 kernel/trace/trace_stat.c 	__reset_stat_session(session);
session            64 kernel/trace/trace_stat.c 	mutex_unlock(&session->stat_mutex);
session            67 kernel/trace/trace_stat.c static void destroy_session(struct stat_session *session)
session            69 kernel/trace/trace_stat.c 	tracefs_remove(session->file);
session            70 kernel/trace/trace_stat.c 	__reset_stat_session(session);
session            71 kernel/trace/trace_stat.c 	mutex_destroy(&session->stat_mutex);
session            72 kernel/trace/trace_stat.c 	kfree(session);
session           125 kernel/trace/trace_stat.c static int stat_seq_init(struct stat_session *session)
session           127 kernel/trace/trace_stat.c 	struct tracer_stat *ts = session->ts;
session           128 kernel/trace/trace_stat.c 	struct rb_root *root = &session->stat_root;
session           133 kernel/trace/trace_stat.c 	mutex_lock(&session->stat_mutex);
session           134 kernel/trace/trace_stat.c 	__reset_stat_session(session);
session           163 kernel/trace/trace_stat.c 	mutex_unlock(&session->stat_mutex);
session           167 kernel/trace/trace_stat.c 	__reset_stat_session(session);
session           168 kernel/trace/trace_stat.c 	mutex_unlock(&session->stat_mutex);
session           175 kernel/trace/trace_stat.c 	struct stat_session *session = s->private;
session           181 kernel/trace/trace_stat.c 	mutex_lock(&session->stat_mutex);
session           184 kernel/trace/trace_stat.c 	if (session->ts->stat_headers) {
session           190 kernel/trace/trace_stat.c 	node = rb_first(&session->stat_root);
session           199 kernel/trace/trace_stat.c 	struct stat_session *session = s->private;
session           205 kernel/trace/trace_stat.c 		return rb_first(&session->stat_root);
session           212 kernel/trace/trace_stat.c 	struct stat_session *session = s->private;
session           213 kernel/trace/trace_stat.c 	mutex_unlock(&session->stat_mutex);
session           218 kernel/trace/trace_stat.c 	struct stat_session *session = s->private;
session           222 kernel/trace/trace_stat.c 		return session->ts->stat_headers(s);
session           224 kernel/trace/trace_stat.c 	return session->ts->stat_show(s, l->stat);
session           239 kernel/trace/trace_stat.c 	struct stat_session *session = inode->i_private;
session           245 kernel/trace/trace_stat.c 	ret = stat_seq_init(session);
session           251 kernel/trace/trace_stat.c 		reset_stat_session(session);
session           256 kernel/trace/trace_stat.c 	m->private = session;
session           265 kernel/trace/trace_stat.c 	struct stat_session *session = i->i_private;
session           267 kernel/trace/trace_stat.c 	reset_stat_session(session);
session           295 kernel/trace/trace_stat.c static int init_stat_file(struct stat_session *session)
session           302 kernel/trace/trace_stat.c 	session->file = tracefs_create_file(session->ts->name, 0644,
session           304 kernel/trace/trace_stat.c 					    session, &tracing_stat_fops);
session           305 kernel/trace/trace_stat.c 	if (!session->file)
session           312 kernel/trace/trace_stat.c 	struct stat_session *session, *node;
session           330 kernel/trace/trace_stat.c 	session = kzalloc(sizeof(*session), GFP_KERNEL);
session           331 kernel/trace/trace_stat.c 	if (!session)
session           334 kernel/trace/trace_stat.c 	session->ts = trace;
session           335 kernel/trace/trace_stat.c 	INIT_LIST_HEAD(&session->session_list);
session           336 kernel/trace/trace_stat.c 	mutex_init(&session->stat_mutex);
session           338 kernel/trace/trace_stat.c 	ret = init_stat_file(session);
session           340 kernel/trace/trace_stat.c 		destroy_session(session);
session           346 kernel/trace/trace_stat.c 	list_add_tail(&session->session_list, &all_stat_sessions);
session            87 net/atm/signaling.c 		session_vcc = vcc->session ? vcc->session : vcc;
session           149 net/atm/signaling.c 	static unsigned int session = 0;
session           171 net/atm/signaling.c 			msg->session = ++session;
session            96 net/batman-adv/tp_meter.c static u32 batadv_tp_session_cookie(const u8 session[2], u8 icmp_uid)
session           101 net/batman-adv/tp_meter.c 	cookie |= session[0] << 8;
session           102 net/batman-adv/tp_meter.c 	cookie |= session[1];
session           301 net/batman-adv/tp_meter.c 			    const u8 *session)
session           310 net/batman-adv/tp_meter.c 		if (memcmp(pos->session, session, sizeof(pos->session)) != 0)
session           415 net/batman-adv/tp_meter.c 	session_cookie = batadv_tp_session_cookie(tp_vars->session,
session           575 net/batman-adv/tp_meter.c 			      u32 seqno, size_t len, const u8 *session,
session           601 net/batman-adv/tp_meter.c 	memcpy(icmp->session, session, sizeof(icmp->session));
session           642 net/batman-adv/tp_meter.c 					      icmp->session);
session           684 net/batman-adv/tp_meter.c 				   icmp->session, icmp->uid,
session           723 net/batman-adv/tp_meter.c 						   packet_len, icmp->session,
session           862 net/batman-adv/tp_meter.c 					 tp_vars->session, tp_vars->icmp_uid,
session           911 net/batman-adv/tp_meter.c 		session_cookie = batadv_tp_session_cookie(tp_vars->session,
session           987 net/batman-adv/tp_meter.c 	memcpy(tp_vars->session, session_id, sizeof(session_id));
session          1156 net/batman-adv/tp_meter.c 			      u32 seq, __be32 timestamp, const u8 *session,
session          1194 net/batman-adv/tp_meter.c 	memcpy(icmp->session, session, sizeof(icmp->session));
session          1339 net/batman-adv/tp_meter.c 					      icmp->session);
session          1355 net/batman-adv/tp_meter.c 	memcpy(tp_vars->session, icmp->session, sizeof(tp_vars->session));
session          1407 net/batman-adv/tp_meter.c 						      icmp->session);
session          1456 net/batman-adv/tp_meter.c 			   icmp->timestamp, icmp->session, icmp->uid);
session          1420 net/batman-adv/types.h 	u8 session[2];
session           542 net/bluetooth/bnep/core.c static struct device *bnep_get_device(struct bnep_session *session)
session           544 net/bluetooth/bnep/core.c 	struct l2cap_conn *conn = l2cap_pi(session->sock->sk)->chan->conn;
session            73 net/bluetooth/cmtp/capi.c static struct cmtp_application *cmtp_application_add(struct cmtp_session *session, __u16 appl)
session            77 net/bluetooth/cmtp/capi.c 	BT_DBG("session %p application %p appl %d", session, app, appl);
session            85 net/bluetooth/cmtp/capi.c 	list_add_tail(&app->list, &session->applications);
session            90 net/bluetooth/cmtp/capi.c static void cmtp_application_del(struct cmtp_session *session, struct cmtp_application *app)
session            92 net/bluetooth/cmtp/capi.c 	BT_DBG("session %p application %p", session, app);
session           100 net/bluetooth/cmtp/capi.c static struct cmtp_application *cmtp_application_get(struct cmtp_session *session, int pattern, __u16 value)
session           104 net/bluetooth/cmtp/capi.c 	list_for_each_entry(app, &session->applications, list) {
session           124 net/bluetooth/cmtp/capi.c static int cmtp_msgnum_get(struct cmtp_session *session)
session           126 net/bluetooth/cmtp/capi.c 	session->msgnum++;
session           128 net/bluetooth/cmtp/capi.c 	if ((session->msgnum & 0xff) > 200)
session           129 net/bluetooth/cmtp/capi.c 		session->msgnum = CMTP_INITIAL_MSGNUM + 1;
session           131 net/bluetooth/cmtp/capi.c 	return session->msgnum;
session           134 net/bluetooth/cmtp/capi.c static void cmtp_send_capimsg(struct cmtp_session *session, struct sk_buff *skb)
session           138 net/bluetooth/cmtp/capi.c 	BT_DBG("session %p skb %p len %d", session, skb, skb->len);
session           143 net/bluetooth/cmtp/capi.c 	skb_queue_tail(&session->transmit, skb);
session           145 net/bluetooth/cmtp/capi.c 	wake_up_interruptible(sk_sleep(session->sock->sk));
session           148 net/bluetooth/cmtp/capi.c static void cmtp_send_interopmsg(struct cmtp_session *session,
session           155 net/bluetooth/cmtp/capi.c 	BT_DBG("session %p subcmd 0x%02x appl %d msgnum %d", session, subcmd, appl, msgnum);
session           181 net/bluetooth/cmtp/capi.c 	cmtp_send_capimsg(session, skb);
session           184 net/bluetooth/cmtp/capi.c static void cmtp_recv_interopmsg(struct cmtp_session *session, struct sk_buff *skb)
session           186 net/bluetooth/cmtp/capi.c 	struct capi_ctr *ctrl = &session->ctrl;
session           191 net/bluetooth/cmtp/capi.c 	BT_DBG("session %p skb %p len %d", session, skb, skb->len);
session           205 net/bluetooth/cmtp/capi.c 			application = cmtp_application_get(session, CMTP_MSGNUM, msgnum);
session           210 net/bluetooth/cmtp/capi.c 				wake_up_interruptible(&session->wait);
session           218 net/bluetooth/cmtp/capi.c 			application = cmtp_application_get(session, CMTP_MAPPING, appl);
session           222 net/bluetooth/cmtp/capi.c 				wake_up_interruptible(&session->wait);
session           235 net/bluetooth/cmtp/capi.c 				session->ncontroller = controller;
session           236 net/bluetooth/cmtp/capi.c 				wake_up_interruptible(&session->wait);
session           244 net/bluetooth/cmtp/capi.c 				session->state = BT_CONNECTED;
session           307 net/bluetooth/cmtp/capi.c 			cmtp_send_interopmsg(session, CAPI_RESP, appl, msgnum, func,
session           317 net/bluetooth/cmtp/capi.c void cmtp_recv_capimsg(struct cmtp_session *session, struct sk_buff *skb)
session           319 net/bluetooth/cmtp/capi.c 	struct capi_ctr *ctrl = &session->ctrl;
session           324 net/bluetooth/cmtp/capi.c 	BT_DBG("session %p skb %p len %d", session, skb, skb->len);
session           330 net/bluetooth/cmtp/capi.c 		cmtp_recv_interopmsg(session, skb);
session           334 net/bluetooth/cmtp/capi.c 	if (session->flags & BIT(CMTP_LOOPBACK)) {
session           342 net/bluetooth/cmtp/capi.c 	application = cmtp_application_get(session, CMTP_MAPPING, appl);
session           353 net/bluetooth/cmtp/capi.c 		contr = (contr & 0xffffff80) | session->num;
session           369 net/bluetooth/cmtp/capi.c 	struct cmtp_session *session = ctrl->driverdata;
session           375 net/bluetooth/cmtp/capi.c 	atomic_inc(&session->terminate);
session           376 net/bluetooth/cmtp/capi.c 	wake_up_process(session->task);
session           382 net/bluetooth/cmtp/capi.c 	struct cmtp_session *session = ctrl->driverdata;
session           391 net/bluetooth/cmtp/capi.c 	application = cmtp_application_add(session, appl);
session           410 net/bluetooth/cmtp/capi.c 	application->msgnum = cmtp_msgnum_get(session);
session           412 net/bluetooth/cmtp/capi.c 	cmtp_send_interopmsg(session, CAPI_REQ, 0x0000, application->msgnum,
session           415 net/bluetooth/cmtp/capi.c 	add_wait_queue(&session->wait, &wait);
session           440 net/bluetooth/cmtp/capi.c 	remove_wait_queue(&session->wait, &wait);
session           443 net/bluetooth/cmtp/capi.c 		cmtp_application_del(session, application);
session           450 net/bluetooth/cmtp/capi.c 	struct cmtp_session *session = ctrl->driverdata;
session           455 net/bluetooth/cmtp/capi.c 	application = cmtp_application_get(session, CMTP_APPLID, appl);
session           461 net/bluetooth/cmtp/capi.c 	application->msgnum = cmtp_msgnum_get(session);
session           463 net/bluetooth/cmtp/capi.c 	cmtp_send_interopmsg(session, CAPI_REQ, application->mapping, application->msgnum,
session           466 net/bluetooth/cmtp/capi.c 	wait_event_interruptible_timeout(session->wait,
session           469 net/bluetooth/cmtp/capi.c 	cmtp_application_del(session, application);
session           474 net/bluetooth/cmtp/capi.c 	struct cmtp_session *session = ctrl->driverdata;
session           484 net/bluetooth/cmtp/capi.c 	application = cmtp_application_get(session, CMTP_APPLID, appl);
session           492 net/bluetooth/cmtp/capi.c 	if ((contr & 0x7f) == session->num) {
session           497 net/bluetooth/cmtp/capi.c 	cmtp_send_capimsg(session, skb);
session           510 net/bluetooth/cmtp/capi.c 	struct cmtp_session *session = ctrl->driverdata;
session           514 net/bluetooth/cmtp/capi.c 	seq_printf(m, "addr %s\n", session->name);
session           515 net/bluetooth/cmtp/capi.c 	seq_printf(m, "ctrl %d\n", session->num);
session           517 net/bluetooth/cmtp/capi.c 	list_for_each_entry(app, &session->applications, list) {
session           524 net/bluetooth/cmtp/capi.c int cmtp_attach_device(struct cmtp_session *session)
session           529 net/bluetooth/cmtp/capi.c 	BT_DBG("session %p", session);
session           533 net/bluetooth/cmtp/capi.c 	cmtp_send_interopmsg(session, CAPI_REQ, 0xffff, CMTP_INITIAL_MSGNUM,
session           536 net/bluetooth/cmtp/capi.c 	ret = wait_event_interruptible_timeout(session->wait,
session           537 net/bluetooth/cmtp/capi.c 			session->ncontroller, CMTP_INTEROP_TIMEOUT);
session           539 net/bluetooth/cmtp/capi.c 	BT_INFO("Found %d CAPI controller(s) on device %s", session->ncontroller, session->name);
session           544 net/bluetooth/cmtp/capi.c 	if (!session->ncontroller)
session           547 net/bluetooth/cmtp/capi.c 	if (session->ncontroller > 1)
session           550 net/bluetooth/cmtp/capi.c 	session->ctrl.owner      = THIS_MODULE;
session           551 net/bluetooth/cmtp/capi.c 	session->ctrl.driverdata = session;
session           552 net/bluetooth/cmtp/capi.c 	strcpy(session->ctrl.name, session->name);
session           554 net/bluetooth/cmtp/capi.c 	session->ctrl.driver_name   = "cmtp";
session           555 net/bluetooth/cmtp/capi.c 	session->ctrl.load_firmware = cmtp_load_firmware;
session           556 net/bluetooth/cmtp/capi.c 	session->ctrl.reset_ctr     = cmtp_reset_ctr;
session           557 net/bluetooth/cmtp/capi.c 	session->ctrl.register_appl = cmtp_register_appl;
session           558 net/bluetooth/cmtp/capi.c 	session->ctrl.release_appl  = cmtp_release_appl;
session           559 net/bluetooth/cmtp/capi.c 	session->ctrl.send_message  = cmtp_send_message;
session           561 net/bluetooth/cmtp/capi.c 	session->ctrl.procinfo      = cmtp_procinfo;
session           562 net/bluetooth/cmtp/capi.c 	session->ctrl.proc_show     = cmtp_proc_show;
session           564 net/bluetooth/cmtp/capi.c 	if (attach_capi_ctr(&session->ctrl) < 0) {
session           569 net/bluetooth/cmtp/capi.c 	session->num = session->ctrl.cnr;
session           571 net/bluetooth/cmtp/capi.c 	BT_DBG("session %p num %d", session, session->num);
session           575 net/bluetooth/cmtp/capi.c 	cmtp_send_interopmsg(session, CAPI_REQ, 0xffff, cmtp_msgnum_get(session),
session           578 net/bluetooth/cmtp/capi.c 	cmtp_send_interopmsg(session, CAPI_REQ, 0xffff, cmtp_msgnum_get(session),
session           581 net/bluetooth/cmtp/capi.c 	cmtp_send_interopmsg(session, CAPI_REQ, 0xffff, cmtp_msgnum_get(session),
session           584 net/bluetooth/cmtp/capi.c 	cmtp_send_interopmsg(session, CAPI_REQ, 0xffff, cmtp_msgnum_get(session),
session           590 net/bluetooth/cmtp/capi.c void cmtp_detach_device(struct cmtp_session *session)
session           592 net/bluetooth/cmtp/capi.c 	BT_DBG("session %p", session);
session           594 net/bluetooth/cmtp/capi.c 	detach_capi_ctr(&session->ctrl);
session           120 net/bluetooth/cmtp/cmtp.h int  cmtp_attach_device(struct cmtp_session *session);
session           121 net/bluetooth/cmtp/cmtp.h void cmtp_detach_device(struct cmtp_session *session);
session           123 net/bluetooth/cmtp/cmtp.h void cmtp_recv_capimsg(struct cmtp_session *session, struct sk_buff *skb);
session            55 net/bluetooth/cmtp/core.c 	struct cmtp_session *session;
session            59 net/bluetooth/cmtp/core.c 	list_for_each_entry(session, &cmtp_session_list, list)
session            60 net/bluetooth/cmtp/core.c 		if (!bacmp(bdaddr, &session->bdaddr))
session            61 net/bluetooth/cmtp/core.c 			return session;
session            66 net/bluetooth/cmtp/core.c static void __cmtp_link_session(struct cmtp_session *session)
session            68 net/bluetooth/cmtp/core.c 	list_add(&session->list, &cmtp_session_list);
session            71 net/bluetooth/cmtp/core.c static void __cmtp_unlink_session(struct cmtp_session *session)
session            73 net/bluetooth/cmtp/core.c 	list_del(&session->list);
session            76 net/bluetooth/cmtp/core.c static void __cmtp_copy_session(struct cmtp_session *session, struct cmtp_conninfo *ci)
session            80 net/bluetooth/cmtp/core.c 	bacpy(&ci->bdaddr, &session->bdaddr);
session            82 net/bluetooth/cmtp/core.c 	ci->flags = session->flags & valid_flags;
session            83 net/bluetooth/cmtp/core.c 	ci->state = session->state;
session            85 net/bluetooth/cmtp/core.c 	ci->num = session->num;
session            89 net/bluetooth/cmtp/core.c static inline int cmtp_alloc_block_id(struct cmtp_session *session)
session            94 net/bluetooth/cmtp/core.c 		if (!test_and_set_bit(i, &session->blockids)) {
session           102 net/bluetooth/cmtp/core.c static inline void cmtp_free_block_id(struct cmtp_session *session, int id)
session           104 net/bluetooth/cmtp/core.c 	clear_bit(id, &session->blockids);
session           107 net/bluetooth/cmtp/core.c static inline void cmtp_add_msgpart(struct cmtp_session *session, int id, const unsigned char *buf, int count)
session           109 net/bluetooth/cmtp/core.c 	struct sk_buff *skb = session->reassembly[id], *nskb;
session           112 net/bluetooth/cmtp/core.c 	BT_DBG("session %p buf %p count %d", session, buf, count);
session           127 net/bluetooth/cmtp/core.c 	session->reassembly[id] = nskb;
session           132 net/bluetooth/cmtp/core.c static inline int cmtp_recv_frame(struct cmtp_session *session, struct sk_buff *skb)
session           137 net/bluetooth/cmtp/core.c 	BT_DBG("session %p skb %p len %d", session, skb, skb->len);
session           173 net/bluetooth/cmtp/core.c 			cmtp_add_msgpart(session, id, skb->data + hdrlen, len);
session           174 net/bluetooth/cmtp/core.c 			cmtp_recv_capimsg(session, session->reassembly[id]);
session           175 net/bluetooth/cmtp/core.c 			session->reassembly[id] = NULL;
session           178 net/bluetooth/cmtp/core.c 			cmtp_add_msgpart(session, id, skb->data + hdrlen, len);
session           181 net/bluetooth/cmtp/core.c 			kfree_skb(session->reassembly[id]);
session           182 net/bluetooth/cmtp/core.c 			session->reassembly[id] = NULL;
session           193 net/bluetooth/cmtp/core.c static int cmtp_send_frame(struct cmtp_session *session, unsigned char *data, int len)
session           195 net/bluetooth/cmtp/core.c 	struct socket *sock = session->sock;
session           199 net/bluetooth/cmtp/core.c 	BT_DBG("session %p data %p len %d", session, data, len);
session           209 net/bluetooth/cmtp/core.c static void cmtp_process_transmit(struct cmtp_session *session)
session           215 net/bluetooth/cmtp/core.c 	BT_DBG("session %p", session);
session           217 net/bluetooth/cmtp/core.c 	nskb = alloc_skb(session->mtu, GFP_ATOMIC);
session           223 net/bluetooth/cmtp/core.c 	while ((skb = skb_dequeue(&session->transmit))) {
session           226 net/bluetooth/cmtp/core.c 		tail = session->mtu - nskb->len;
session           228 net/bluetooth/cmtp/core.c 			cmtp_send_frame(session, nskb->data, nskb->len);
session           230 net/bluetooth/cmtp/core.c 			tail = session->mtu;
session           236 net/bluetooth/cmtp/core.c 			scb->id = cmtp_alloc_block_id(session);
session           238 net/bluetooth/cmtp/core.c 				skb_queue_head(&session->transmit, skb);
session           262 net/bluetooth/cmtp/core.c 			skb_queue_head(&session->transmit, skb);
session           264 net/bluetooth/cmtp/core.c 			cmtp_free_block_id(session, scb->id);
session           266 net/bluetooth/cmtp/core.c 				cmtp_send_frame(session, nskb->data, nskb->len);
session           273 net/bluetooth/cmtp/core.c 	cmtp_send_frame(session, nskb->data, nskb->len);
session           280 net/bluetooth/cmtp/core.c 	struct cmtp_session *session = arg;
session           281 net/bluetooth/cmtp/core.c 	struct sock *sk = session->sock->sk;
session           285 net/bluetooth/cmtp/core.c 	BT_DBG("session %p", session);
session           291 net/bluetooth/cmtp/core.c 		if (atomic_read(&session->terminate))
session           299 net/bluetooth/cmtp/core.c 				cmtp_recv_frame(session, skb);
session           304 net/bluetooth/cmtp/core.c 		cmtp_process_transmit(session);
session           316 net/bluetooth/cmtp/core.c 	if (!(session->flags & BIT(CMTP_LOOPBACK)))
session           317 net/bluetooth/cmtp/core.c 		cmtp_detach_device(session);
session           319 net/bluetooth/cmtp/core.c 	fput(session->sock->file);
session           321 net/bluetooth/cmtp/core.c 	__cmtp_unlink_session(session);
session           325 net/bluetooth/cmtp/core.c 	kfree(session);
session           333 net/bluetooth/cmtp/core.c 	struct cmtp_session *session, *s;
session           344 net/bluetooth/cmtp/core.c 	session = kzalloc(sizeof(struct cmtp_session), GFP_KERNEL);
session           345 net/bluetooth/cmtp/core.c 	if (!session)
session           356 net/bluetooth/cmtp/core.c 	bacpy(&session->bdaddr, &l2cap_pi(sock->sk)->chan->dst);
session           358 net/bluetooth/cmtp/core.c 	session->mtu = min_t(uint, l2cap_pi(sock->sk)->chan->omtu,
session           361 net/bluetooth/cmtp/core.c 	BT_DBG("mtu %d", session->mtu);
session           363 net/bluetooth/cmtp/core.c 	sprintf(session->name, "%pMR", &session->bdaddr);
session           365 net/bluetooth/cmtp/core.c 	session->sock  = sock;
session           366 net/bluetooth/cmtp/core.c 	session->state = BT_CONFIG;
session           368 net/bluetooth/cmtp/core.c 	init_waitqueue_head(&session->wait);
session           370 net/bluetooth/cmtp/core.c 	session->msgnum = CMTP_INITIAL_MSGNUM;
session           372 net/bluetooth/cmtp/core.c 	INIT_LIST_HEAD(&session->applications);
session           374 net/bluetooth/cmtp/core.c 	skb_queue_head_init(&session->transmit);
session           377 net/bluetooth/cmtp/core.c 		session->reassembly[i] = NULL;
session           379 net/bluetooth/cmtp/core.c 	session->flags = req->flags;
session           381 net/bluetooth/cmtp/core.c 	__cmtp_link_session(session);
session           384 net/bluetooth/cmtp/core.c 	session->task = kthread_run(cmtp_session, session, "kcmtpd_ctr_%d",
session           385 net/bluetooth/cmtp/core.c 								session->num);
session           386 net/bluetooth/cmtp/core.c 	if (IS_ERR(session->task)) {
session           388 net/bluetooth/cmtp/core.c 		err = PTR_ERR(session->task);
session           392 net/bluetooth/cmtp/core.c 	if (!(session->flags & BIT(CMTP_LOOPBACK))) {
session           393 net/bluetooth/cmtp/core.c 		err = cmtp_attach_device(session);
session           395 net/bluetooth/cmtp/core.c 			atomic_inc(&session->terminate);
session           396 net/bluetooth/cmtp/core.c 			wake_up_interruptible(sk_sleep(session->sock->sk));
session           406 net/bluetooth/cmtp/core.c 	__cmtp_unlink_session(session);
session           410 net/bluetooth/cmtp/core.c 	kfree(session);
session           417 net/bluetooth/cmtp/core.c 	struct cmtp_session *session;
session           427 net/bluetooth/cmtp/core.c 	session = __cmtp_get_session(&req->bdaddr);
session           428 net/bluetooth/cmtp/core.c 	if (session) {
session           430 net/bluetooth/cmtp/core.c 		skb_queue_purge(&session->transmit);
session           433 net/bluetooth/cmtp/core.c 		atomic_inc(&session->terminate);
session           439 net/bluetooth/cmtp/core.c 		wake_up_interruptible(sk_sleep(session->sock->sk));
session           449 net/bluetooth/cmtp/core.c 	struct cmtp_session *session;
session           456 net/bluetooth/cmtp/core.c 	list_for_each_entry(session, &cmtp_session_list, list) {
session           459 net/bluetooth/cmtp/core.c 		__cmtp_copy_session(session, &ci);
session           479 net/bluetooth/cmtp/core.c 	struct cmtp_session *session;
session           484 net/bluetooth/cmtp/core.c 	session = __cmtp_get_session(&ci->bdaddr);
session           485 net/bluetooth/cmtp/core.c 	if (session)
session           486 net/bluetooth/cmtp/core.c 		__cmtp_copy_session(session, ci);
session            72 net/bluetooth/hidp/core.c static void hidp_copy_session(struct hidp_session *session, struct hidp_conninfo *ci)
session            76 net/bluetooth/hidp/core.c 	bacpy(&ci->bdaddr, &session->bdaddr);
session            78 net/bluetooth/hidp/core.c 	ci->flags = session->flags & valid_flags;
session            81 net/bluetooth/hidp/core.c 	if (session->input) {
session            82 net/bluetooth/hidp/core.c 		ci->vendor  = session->input->id.vendor;
session            83 net/bluetooth/hidp/core.c 		ci->product = session->input->id.product;
session            84 net/bluetooth/hidp/core.c 		ci->version = session->input->id.version;
session            85 net/bluetooth/hidp/core.c 		if (session->input->name)
session            86 net/bluetooth/hidp/core.c 			strlcpy(ci->name, session->input->name, 128);
session            89 net/bluetooth/hidp/core.c 	} else if (session->hid) {
session            90 net/bluetooth/hidp/core.c 		ci->vendor  = session->hid->vendor;
session            91 net/bluetooth/hidp/core.c 		ci->product = session->hid->product;
session            92 net/bluetooth/hidp/core.c 		ci->version = session->hid->version;
session            93 net/bluetooth/hidp/core.c 		strlcpy(ci->name, session->hid->name, 128);
session            98 net/bluetooth/hidp/core.c static int hidp_send_message(struct hidp_session *session, struct socket *sock,
session           106 net/bluetooth/hidp/core.c 	BT_DBG("session %p data %p size %d", session, data, size);
session           108 net/bluetooth/hidp/core.c 	if (atomic_read(&session->terminate))
session           131 net/bluetooth/hidp/core.c static int hidp_send_ctrl_message(struct hidp_session *session,
session           135 net/bluetooth/hidp/core.c 	return hidp_send_message(session, session->ctrl_sock,
session           136 net/bluetooth/hidp/core.c 				 &session->ctrl_transmit, hdr, data, size);
session           139 net/bluetooth/hidp/core.c static int hidp_send_intr_message(struct hidp_session *session,
session           143 net/bluetooth/hidp/core.c 	return hidp_send_message(session, session->intr_sock,
session           144 net/bluetooth/hidp/core.c 				 &session->intr_transmit, hdr, data, size);
session           150 net/bluetooth/hidp/core.c 	struct hidp_session *session = input_get_drvdata(dev);
session           155 net/bluetooth/hidp/core.c 	       session, type, code, value);
session           166 net/bluetooth/hidp/core.c 	if (session->leds == newleds)
session           169 net/bluetooth/hidp/core.c 	session->leds = newleds;
session           175 net/bluetooth/hidp/core.c 	return hidp_send_intr_message(session, hdr, data, 2);
session           178 net/bluetooth/hidp/core.c static void hidp_input_report(struct hidp_session *session, struct sk_buff *skb)
session           180 net/bluetooth/hidp/core.c 	struct input_dev *dev = session->input;
session           181 net/bluetooth/hidp/core.c 	unsigned char *keys = session->keys;
session           238 net/bluetooth/hidp/core.c 	struct hidp_session *session = hid->driver_data;
session           244 net/bluetooth/hidp/core.c 	if (atomic_read(&session->terminate))
session           261 net/bluetooth/hidp/core.c 	if (mutex_lock_interruptible(&session->report_mutex))
session           265 net/bluetooth/hidp/core.c 	session->waiting_report_type = report_type & HIDP_DATA_RTYPE_MASK;
session           266 net/bluetooth/hidp/core.c 	session->waiting_report_number = numbered_reports ? report_number : -1;
session           267 net/bluetooth/hidp/core.c 	set_bit(HIDP_WAITING_FOR_RETURN, &session->flags);
session           269 net/bluetooth/hidp/core.c 	ret = hidp_send_ctrl_message(session, report_type, data, 1);
session           275 net/bluetooth/hidp/core.c 	while (test_bit(HIDP_WAITING_FOR_RETURN, &session->flags) &&
session           276 net/bluetooth/hidp/core.c 	       !atomic_read(&session->terminate)) {
session           279 net/bluetooth/hidp/core.c 		res = wait_event_interruptible_timeout(session->report_queue,
session           280 net/bluetooth/hidp/core.c 			!test_bit(HIDP_WAITING_FOR_RETURN, &session->flags)
session           281 net/bluetooth/hidp/core.c 				|| atomic_read(&session->terminate),
session           295 net/bluetooth/hidp/core.c 	skb = session->report_return;
session           301 net/bluetooth/hidp/core.c 		session->report_return = NULL;
session           307 net/bluetooth/hidp/core.c 	clear_bit(HIDP_WAITING_FOR_RETURN, &session->flags);
session           308 net/bluetooth/hidp/core.c 	mutex_unlock(&session->report_mutex);
session           313 net/bluetooth/hidp/core.c 	clear_bit(HIDP_WAITING_FOR_RETURN, &session->flags);
session           314 net/bluetooth/hidp/core.c 	mutex_unlock(&session->report_mutex);
session           322 net/bluetooth/hidp/core.c 	struct hidp_session *session = hid->driver_data;
session           339 net/bluetooth/hidp/core.c 	if (mutex_lock_interruptible(&session->report_mutex))
session           344 net/bluetooth/hidp/core.c 	set_bit(HIDP_WAITING_FOR_SEND_ACK, &session->flags);
session           345 net/bluetooth/hidp/core.c 	ret = hidp_send_ctrl_message(session, report_type, data, count);
session           350 net/bluetooth/hidp/core.c 	while (test_bit(HIDP_WAITING_FOR_SEND_ACK, &session->flags) &&
session           351 net/bluetooth/hidp/core.c 	       !atomic_read(&session->terminate)) {
session           354 net/bluetooth/hidp/core.c 		res = wait_event_interruptible_timeout(session->report_queue,
session           355 net/bluetooth/hidp/core.c 			!test_bit(HIDP_WAITING_FOR_SEND_ACK, &session->flags)
session           356 net/bluetooth/hidp/core.c 				|| atomic_read(&session->terminate),
session           370 net/bluetooth/hidp/core.c 	if (!session->output_report_success) {
session           378 net/bluetooth/hidp/core.c 	clear_bit(HIDP_WAITING_FOR_SEND_ACK, &session->flags);
session           379 net/bluetooth/hidp/core.c 	mutex_unlock(&session->report_mutex);
session           385 net/bluetooth/hidp/core.c 	struct hidp_session *session = hid->driver_data;
session           387 net/bluetooth/hidp/core.c 	return hidp_send_intr_message(session,
session           408 net/bluetooth/hidp/core.c 	struct hidp_session *session = from_timer(session, t, timer);
session           419 net/bluetooth/hidp/core.c 	session->intr_sock->sk->sk_err = EUNATCH;
session           420 net/bluetooth/hidp/core.c 	session->ctrl_sock->sk->sk_err = EUNATCH;
session           421 net/bluetooth/hidp/core.c 	wake_up_interruptible(sk_sleep(session->intr_sock->sk));
session           422 net/bluetooth/hidp/core.c 	wake_up_interruptible(sk_sleep(session->ctrl_sock->sk));
session           424 net/bluetooth/hidp/core.c 	hidp_session_terminate(session);
session           427 net/bluetooth/hidp/core.c static void hidp_set_timer(struct hidp_session *session)
session           429 net/bluetooth/hidp/core.c 	if (session->idle_to > 0)
session           430 net/bluetooth/hidp/core.c 		mod_timer(&session->timer, jiffies + HZ * session->idle_to);
session           433 net/bluetooth/hidp/core.c static void hidp_del_timer(struct hidp_session *session)
session           435 net/bluetooth/hidp/core.c 	if (session->idle_to > 0)
session           436 net/bluetooth/hidp/core.c 		del_timer(&session->timer);
session           439 net/bluetooth/hidp/core.c static void hidp_process_report(struct hidp_session *session, int type,
session           445 net/bluetooth/hidp/core.c 	memcpy(session->input_buf, data, len);
session           446 net/bluetooth/hidp/core.c 	hid_input_report(session->hid, type, session->input_buf, len, intr);
session           449 net/bluetooth/hidp/core.c static void hidp_process_handshake(struct hidp_session *session,
session           452 net/bluetooth/hidp/core.c 	BT_DBG("session %p param 0x%02x", session, param);
session           453 net/bluetooth/hidp/core.c 	session->output_report_success = 0; /* default condition */
session           458 net/bluetooth/hidp/core.c 		session->output_report_success = 1;
session           465 net/bluetooth/hidp/core.c 		if (test_and_clear_bit(HIDP_WAITING_FOR_RETURN, &session->flags))
session           466 net/bluetooth/hidp/core.c 			wake_up_interruptible(&session->report_queue);
session           477 net/bluetooth/hidp/core.c 		hidp_send_ctrl_message(session,
session           482 net/bluetooth/hidp/core.c 		hidp_send_ctrl_message(session,
session           488 net/bluetooth/hidp/core.c 	if (test_and_clear_bit(HIDP_WAITING_FOR_SEND_ACK, &session->flags))
session           489 net/bluetooth/hidp/core.c 		wake_up_interruptible(&session->report_queue);
session           492 net/bluetooth/hidp/core.c static void hidp_process_hid_control(struct hidp_session *session,
session           495 net/bluetooth/hidp/core.c 	BT_DBG("session %p param 0x%02x", session, param);
session           499 net/bluetooth/hidp/core.c 		skb_queue_purge(&session->ctrl_transmit);
session           500 net/bluetooth/hidp/core.c 		skb_queue_purge(&session->intr_transmit);
session           502 net/bluetooth/hidp/core.c 		hidp_session_terminate(session);
session           507 net/bluetooth/hidp/core.c static int hidp_process_data(struct hidp_session *session, struct sk_buff *skb,
session           511 net/bluetooth/hidp/core.c 	BT_DBG("session %p skb %p len %d param 0x%02x", session, skb, skb->len, param);
session           515 net/bluetooth/hidp/core.c 		hidp_set_timer(session);
session           517 net/bluetooth/hidp/core.c 		if (session->input)
session           518 net/bluetooth/hidp/core.c 			hidp_input_report(session, skb);
session           520 net/bluetooth/hidp/core.c 		if (session->hid)
session           521 net/bluetooth/hidp/core.c 			hidp_process_report(session, HID_INPUT_REPORT,
session           531 net/bluetooth/hidp/core.c 		hidp_send_ctrl_message(session,
session           535 net/bluetooth/hidp/core.c 	if (test_bit(HIDP_WAITING_FOR_RETURN, &session->flags) &&
session           536 net/bluetooth/hidp/core.c 				param == session->waiting_report_type) {
session           537 net/bluetooth/hidp/core.c 		if (session->waiting_report_number < 0 ||
session           538 net/bluetooth/hidp/core.c 		    session->waiting_report_number == skb->data[0]) {
session           540 net/bluetooth/hidp/core.c 			session->report_return = skb;
session           542 net/bluetooth/hidp/core.c 			clear_bit(HIDP_WAITING_FOR_RETURN, &session->flags);
session           543 net/bluetooth/hidp/core.c 			wake_up_interruptible(&session->report_queue);
session           550 net/bluetooth/hidp/core.c static void hidp_recv_ctrl_frame(struct hidp_session *session,
session           556 net/bluetooth/hidp/core.c 	BT_DBG("session %p skb %p len %d", session, skb, skb->len);
session           566 net/bluetooth/hidp/core.c 		hidp_process_handshake(session, param);
session           570 net/bluetooth/hidp/core.c 		hidp_process_hid_control(session, param);
session           574 net/bluetooth/hidp/core.c 		free_skb = hidp_process_data(session, skb, param);
session           578 net/bluetooth/hidp/core.c 		hidp_send_ctrl_message(session,
session           587 net/bluetooth/hidp/core.c static void hidp_recv_intr_frame(struct hidp_session *session,
session           592 net/bluetooth/hidp/core.c 	BT_DBG("session %p skb %p len %d", session, skb, skb->len);
session           598 net/bluetooth/hidp/core.c 		hidp_set_timer(session);
session           600 net/bluetooth/hidp/core.c 		if (session->input)
session           601 net/bluetooth/hidp/core.c 			hidp_input_report(session, skb);
session           603 net/bluetooth/hidp/core.c 		if (session->hid) {
session           604 net/bluetooth/hidp/core.c 			hidp_process_report(session, HID_INPUT_REPORT,
session           631 net/bluetooth/hidp/core.c static void hidp_process_transmit(struct hidp_session *session,
session           638 net/bluetooth/hidp/core.c 	BT_DBG("session %p", session);
session           646 net/bluetooth/hidp/core.c 			hidp_session_terminate(session);
session           651 net/bluetooth/hidp/core.c 		hidp_set_timer(session);
session           656 net/bluetooth/hidp/core.c static int hidp_setup_input(struct hidp_session *session,
session           666 net/bluetooth/hidp/core.c 	session->input = input;
session           668 net/bluetooth/hidp/core.c 	input_set_drvdata(input, session);
session           703 net/bluetooth/hidp/core.c 	input->dev.parent = &session->conn->hcon->dev;
session           721 net/bluetooth/hidp/core.c 	struct hidp_session *session = hid->driver_data;
session           723 net/bluetooth/hidp/core.c 	return hid_parse_report(session->hid, session->rd_data,
session           724 net/bluetooth/hidp/core.c 			session->rd_size);
session           734 net/bluetooth/hidp/core.c 	struct hidp_session *session = hid->driver_data;
session           736 net/bluetooth/hidp/core.c 	skb_queue_purge(&session->ctrl_transmit);
session           737 net/bluetooth/hidp/core.c 	skb_queue_purge(&session->intr_transmit);
session           755 net/bluetooth/hidp/core.c static int hidp_setup_hid(struct hidp_session *session,
session           761 net/bluetooth/hidp/core.c 	session->rd_data = memdup_user(req->rd_data, req->rd_size);
session           762 net/bluetooth/hidp/core.c 	if (IS_ERR(session->rd_data))
session           763 net/bluetooth/hidp/core.c 		return PTR_ERR(session->rd_data);
session           765 net/bluetooth/hidp/core.c 	session->rd_size = req->rd_size;
session           773 net/bluetooth/hidp/core.c 	session->hid = hid;
session           775 net/bluetooth/hidp/core.c 	hid->driver_data = session;
session           786 net/bluetooth/hidp/core.c 		 &l2cap_pi(session->ctrl_sock->sk)->chan->src);
session           792 net/bluetooth/hidp/core.c 		 &l2cap_pi(session->ctrl_sock->sk)->chan->dst);
session           794 net/bluetooth/hidp/core.c 	hid->dev.parent = &session->conn->hcon->dev;
session           799 net/bluetooth/hidp/core.c 		hid_destroy_device(session->hid);
session           800 net/bluetooth/hidp/core.c 		session->hid = NULL;
session           807 net/bluetooth/hidp/core.c 	kfree(session->rd_data);
session           808 net/bluetooth/hidp/core.c 	session->rd_data = NULL;
session           814 net/bluetooth/hidp/core.c static int hidp_session_dev_init(struct hidp_session *session,
session           820 net/bluetooth/hidp/core.c 		ret = hidp_setup_hid(session, req);
session           825 net/bluetooth/hidp/core.c 	if (!session->hid) {
session           826 net/bluetooth/hidp/core.c 		ret = hidp_setup_input(session, req);
session           835 net/bluetooth/hidp/core.c static void hidp_session_dev_destroy(struct hidp_session *session)
session           837 net/bluetooth/hidp/core.c 	if (session->hid)
session           838 net/bluetooth/hidp/core.c 		put_device(&session->hid->dev);
session           839 net/bluetooth/hidp/core.c 	else if (session->input)
session           840 net/bluetooth/hidp/core.c 		input_put_device(session->input);
session           842 net/bluetooth/hidp/core.c 	kfree(session->rd_data);
session           843 net/bluetooth/hidp/core.c 	session->rd_data = NULL;
session           847 net/bluetooth/hidp/core.c static int hidp_session_dev_add(struct hidp_session *session)
session           856 net/bluetooth/hidp/core.c 	if (session->hid) {
session           857 net/bluetooth/hidp/core.c 		ret = hid_add_device(session->hid);
session           860 net/bluetooth/hidp/core.c 		get_device(&session->hid->dev);
session           861 net/bluetooth/hidp/core.c 	} else if (session->input) {
session           862 net/bluetooth/hidp/core.c 		ret = input_register_device(session->input);
session           865 net/bluetooth/hidp/core.c 		input_get_device(session->input);
session           872 net/bluetooth/hidp/core.c static void hidp_session_dev_del(struct hidp_session *session)
session           874 net/bluetooth/hidp/core.c 	if (session->hid)
session           875 net/bluetooth/hidp/core.c 		hid_destroy_device(session->hid);
session           876 net/bluetooth/hidp/core.c 	else if (session->input)
session           877 net/bluetooth/hidp/core.c 		input_unregister_device(session->input);
session           891 net/bluetooth/hidp/core.c 	struct hidp_session *session = container_of(work,
session           896 net/bluetooth/hidp/core.c 	ret = hidp_session_dev_add(session);
session           898 net/bluetooth/hidp/core.c 		atomic_inc(&session->state);
session           900 net/bluetooth/hidp/core.c 		hidp_session_terminate(session);
session           917 net/bluetooth/hidp/core.c 	struct hidp_session *session;
session           924 net/bluetooth/hidp/core.c 	session = kzalloc(sizeof(*session), GFP_KERNEL);
session           925 net/bluetooth/hidp/core.c 	if (!session)
session           929 net/bluetooth/hidp/core.c 	kref_init(&session->ref);
session           930 net/bluetooth/hidp/core.c 	atomic_set(&session->state, HIDP_SESSION_IDLING);
session           931 net/bluetooth/hidp/core.c 	init_waitqueue_head(&session->state_queue);
session           932 net/bluetooth/hidp/core.c 	session->flags = req->flags & BIT(HIDP_BLUETOOTH_VENDOR_ID);
session           935 net/bluetooth/hidp/core.c 	bacpy(&session->bdaddr, bdaddr);
session           936 net/bluetooth/hidp/core.c 	session->conn = l2cap_conn_get(conn);
session           937 net/bluetooth/hidp/core.c 	session->user.probe = hidp_session_probe;
session           938 net/bluetooth/hidp/core.c 	session->user.remove = hidp_session_remove;
session           939 net/bluetooth/hidp/core.c 	INIT_LIST_HEAD(&session->user.list);
session           940 net/bluetooth/hidp/core.c 	session->ctrl_sock = ctrl_sock;
session           941 net/bluetooth/hidp/core.c 	session->intr_sock = intr_sock;
session           942 net/bluetooth/hidp/core.c 	skb_queue_head_init(&session->ctrl_transmit);
session           943 net/bluetooth/hidp/core.c 	skb_queue_head_init(&session->intr_transmit);
session           944 net/bluetooth/hidp/core.c 	session->ctrl_mtu = min_t(uint, l2cap_pi(ctrl)->chan->omtu,
session           946 net/bluetooth/hidp/core.c 	session->intr_mtu = min_t(uint, l2cap_pi(intr)->chan->omtu,
session           948 net/bluetooth/hidp/core.c 	session->idle_to = req->idle_to;
session           951 net/bluetooth/hidp/core.c 	INIT_WORK(&session->dev_init, hidp_session_dev_work);
session           952 net/bluetooth/hidp/core.c 	timer_setup(&session->timer, hidp_idle_timeout, 0);
session           955 net/bluetooth/hidp/core.c 	mutex_init(&session->report_mutex);
session           956 net/bluetooth/hidp/core.c 	init_waitqueue_head(&session->report_queue);
session           958 net/bluetooth/hidp/core.c 	ret = hidp_session_dev_init(session, req);
session           962 net/bluetooth/hidp/core.c 	get_file(session->intr_sock->file);
session           963 net/bluetooth/hidp/core.c 	get_file(session->ctrl_sock->file);
session           964 net/bluetooth/hidp/core.c 	*out = session;
session           968 net/bluetooth/hidp/core.c 	l2cap_conn_put(session->conn);
session           969 net/bluetooth/hidp/core.c 	kfree(session);
session           974 net/bluetooth/hidp/core.c static void hidp_session_get(struct hidp_session *session)
session           976 net/bluetooth/hidp/core.c 	kref_get(&session->ref);
session           982 net/bluetooth/hidp/core.c 	struct hidp_session *session = container_of(ref, struct hidp_session,
session           985 net/bluetooth/hidp/core.c 	hidp_session_dev_destroy(session);
session           986 net/bluetooth/hidp/core.c 	skb_queue_purge(&session->ctrl_transmit);
session           987 net/bluetooth/hidp/core.c 	skb_queue_purge(&session->intr_transmit);
session           988 net/bluetooth/hidp/core.c 	fput(session->intr_sock->file);
session           989 net/bluetooth/hidp/core.c 	fput(session->ctrl_sock->file);
session           990 net/bluetooth/hidp/core.c 	l2cap_conn_put(session->conn);
session           991 net/bluetooth/hidp/core.c 	kfree(session);
session           995 net/bluetooth/hidp/core.c static void hidp_session_put(struct hidp_session *session)
session           997 net/bluetooth/hidp/core.c 	kref_put(&session->ref, session_free);
session          1008 net/bluetooth/hidp/core.c 	struct hidp_session *session;
session          1010 net/bluetooth/hidp/core.c 	list_for_each_entry(session, &hidp_session_list, list) {
session          1011 net/bluetooth/hidp/core.c 		if (!bacmp(bdaddr, &session->bdaddr))
session          1012 net/bluetooth/hidp/core.c 			return session;
session          1025 net/bluetooth/hidp/core.c 	struct hidp_session *session;
session          1029 net/bluetooth/hidp/core.c 	session = __hidp_session_find(bdaddr);
session          1030 net/bluetooth/hidp/core.c 	if (session)
session          1031 net/bluetooth/hidp/core.c 		hidp_session_get(session);
session          1035 net/bluetooth/hidp/core.c 	return session;
session          1045 net/bluetooth/hidp/core.c static int hidp_session_start_sync(struct hidp_session *session)
session          1049 net/bluetooth/hidp/core.c 	if (session->hid) {
session          1050 net/bluetooth/hidp/core.c 		vendor  = session->hid->vendor;
session          1051 net/bluetooth/hidp/core.c 		product = session->hid->product;
session          1052 net/bluetooth/hidp/core.c 	} else if (session->input) {
session          1053 net/bluetooth/hidp/core.c 		vendor  = session->input->id.vendor;
session          1054 net/bluetooth/hidp/core.c 		product = session->input->id.product;
session          1060 net/bluetooth/hidp/core.c 	session->task = kthread_run(hidp_session_thread, session,
session          1062 net/bluetooth/hidp/core.c 	if (IS_ERR(session->task))
session          1063 net/bluetooth/hidp/core.c 		return PTR_ERR(session->task);
session          1065 net/bluetooth/hidp/core.c 	while (atomic_read(&session->state) <= HIDP_SESSION_IDLING)
session          1066 net/bluetooth/hidp/core.c 		wait_event(session->state_queue,
session          1067 net/bluetooth/hidp/core.c 			   atomic_read(&session->state) > HIDP_SESSION_IDLING);
session          1079 net/bluetooth/hidp/core.c static void hidp_session_terminate(struct hidp_session *session)
session          1081 net/bluetooth/hidp/core.c 	atomic_inc(&session->terminate);
session          1101 net/bluetooth/hidp/core.c 	struct hidp_session *session = container_of(user,
session          1110 net/bluetooth/hidp/core.c 	s = __hidp_session_find(&session->bdaddr);
session          1116 net/bluetooth/hidp/core.c 	if (session->input) {
session          1117 net/bluetooth/hidp/core.c 		ret = hidp_session_dev_add(session);
session          1122 net/bluetooth/hidp/core.c 	ret = hidp_session_start_sync(session);
session          1127 net/bluetooth/hidp/core.c 	if (session->input)
session          1128 net/bluetooth/hidp/core.c 		atomic_inc(&session->state);
session          1130 net/bluetooth/hidp/core.c 		schedule_work(&session->dev_init);
session          1132 net/bluetooth/hidp/core.c 	hidp_session_get(session);
session          1133 net/bluetooth/hidp/core.c 	list_add(&session->list, &hidp_session_list);
session          1138 net/bluetooth/hidp/core.c 	if (session->input)
session          1139 net/bluetooth/hidp/core.c 		hidp_session_dev_del(session);
session          1162 net/bluetooth/hidp/core.c 	struct hidp_session *session = container_of(user,
session          1168 net/bluetooth/hidp/core.c 	hidp_session_terminate(session);
session          1170 net/bluetooth/hidp/core.c 	cancel_work_sync(&session->dev_init);
session          1171 net/bluetooth/hidp/core.c 	if (session->input ||
session          1172 net/bluetooth/hidp/core.c 	    atomic_read(&session->state) > HIDP_SESSION_PREPARING)
session          1173 net/bluetooth/hidp/core.c 		hidp_session_dev_del(session);
session          1175 net/bluetooth/hidp/core.c 	list_del(&session->list);
session          1179 net/bluetooth/hidp/core.c 	hidp_session_put(session);
session          1188 net/bluetooth/hidp/core.c static void hidp_session_run(struct hidp_session *session)
session          1190 net/bluetooth/hidp/core.c 	struct sock *ctrl_sk = session->ctrl_sock->sk;
session          1191 net/bluetooth/hidp/core.c 	struct sock *intr_sk = session->intr_sock->sk;
session          1205 net/bluetooth/hidp/core.c 		if (atomic_read(&session->terminate))
session          1216 net/bluetooth/hidp/core.c 				hidp_recv_intr_frame(session, skb);
session          1222 net/bluetooth/hidp/core.c 		hidp_process_transmit(session, &session->intr_transmit,
session          1223 net/bluetooth/hidp/core.c 				      session->intr_sock);
session          1229 net/bluetooth/hidp/core.c 				hidp_recv_ctrl_frame(session, skb);
session          1235 net/bluetooth/hidp/core.c 		hidp_process_transmit(session, &session->ctrl_transmit,
session          1236 net/bluetooth/hidp/core.c 				      session->ctrl_sock);
session          1246 net/bluetooth/hidp/core.c 	atomic_inc(&session->terminate);
session          1266 net/bluetooth/hidp/core.c 	struct hidp_session *session = arg;
session          1270 net/bluetooth/hidp/core.c 	BT_DBG("session %p", session);
session          1273 net/bluetooth/hidp/core.c 	hidp_session_get(session);
session          1276 net/bluetooth/hidp/core.c 	hidp_set_timer(session);
session          1278 net/bluetooth/hidp/core.c 	add_wait_queue(sk_sleep(session->ctrl_sock->sk), &ctrl_wait);
session          1279 net/bluetooth/hidp/core.c 	add_wait_queue(sk_sleep(session->intr_sock->sk), &intr_wait);
session          1285 net/bluetooth/hidp/core.c 	atomic_inc(&session->state);
session          1286 net/bluetooth/hidp/core.c 	wake_up(&session->state_queue);
session          1289 net/bluetooth/hidp/core.c 	hidp_session_run(session);
session          1292 net/bluetooth/hidp/core.c 	remove_wait_queue(sk_sleep(session->intr_sock->sk), &intr_wait);
session          1293 net/bluetooth/hidp/core.c 	remove_wait_queue(sk_sleep(session->intr_sock->sk), &ctrl_wait);
session          1294 net/bluetooth/hidp/core.c 	wake_up_interruptible(&session->report_queue);
session          1295 net/bluetooth/hidp/core.c 	hidp_del_timer(session);
session          1305 net/bluetooth/hidp/core.c 	l2cap_unregister_user(session->conn, &session->user);
session          1306 net/bluetooth/hidp/core.c 	hidp_session_put(session);
session          1317 net/bluetooth/hidp/core.c 	struct hidp_session *session;
session          1337 net/bluetooth/hidp/core.c 	session = hidp_session_find(&ctrl_chan->dst);
session          1338 net/bluetooth/hidp/core.c 	if (session) {
session          1339 net/bluetooth/hidp/core.c 		hidp_session_put(session);
session          1352 net/bluetooth/hidp/core.c 	struct hidp_session *session;
session          1374 net/bluetooth/hidp/core.c 	ret = hidp_session_new(&session, &chan->dst, ctrl_sock,
session          1379 net/bluetooth/hidp/core.c 	ret = l2cap_register_user(conn, &session->user);
session          1386 net/bluetooth/hidp/core.c 	hidp_session_put(session);
session          1395 net/bluetooth/hidp/core.c 	struct hidp_session *session;
session          1400 net/bluetooth/hidp/core.c 	session = hidp_session_find(&req->bdaddr);
session          1401 net/bluetooth/hidp/core.c 	if (!session)
session          1405 net/bluetooth/hidp/core.c 		hidp_send_ctrl_message(session,
session          1410 net/bluetooth/hidp/core.c 		l2cap_unregister_user(session->conn, &session->user);
session          1412 net/bluetooth/hidp/core.c 	hidp_session_put(session);
session          1419 net/bluetooth/hidp/core.c 	struct hidp_session *session;
session          1426 net/bluetooth/hidp/core.c 	list_for_each_entry(session, &hidp_session_list, list) {
session          1429 net/bluetooth/hidp/core.c 		hidp_copy_session(session, &ci);
session          1449 net/bluetooth/hidp/core.c 	struct hidp_session *session;
session          1451 net/bluetooth/hidp/core.c 	session = hidp_session_find(&ci->bdaddr);
session          1452 net/bluetooth/hidp/core.c 	if (session) {
session          1453 net/bluetooth/hidp/core.c 		hidp_copy_session(session, ci);
session          1454 net/bluetooth/hidp/core.c 		hidp_session_put(session);
session          1457 net/bluetooth/hidp/core.c 	return session ? 0 : -ENOENT;
session           214 net/bluetooth/rfcomm/core.c 	struct sock *sk = d->session->sock->sk;
session           338 net/bluetooth/rfcomm/core.c 	d->session = s;
session           343 net/bluetooth/rfcomm/core.c 	struct rfcomm_session *s = d->session;
session           348 net/bluetooth/rfcomm/core.c 	d->session = NULL;
session           439 net/bluetooth/rfcomm/core.c 	struct rfcomm_session *s = d->session;
session           453 net/bluetooth/rfcomm/core.c 	struct rfcomm_session *s = d->session;
session           513 net/bluetooth/rfcomm/core.c 	s = d->session;
session          1285 net/bluetooth/rfcomm/core.c 	struct sock *sk = d->session->sock->sk;
session          1290 net/bluetooth/rfcomm/core.c 	rfcomm_send_ua(d->session, d->dlci);
session          1302 net/bluetooth/rfcomm/core.c 	rfcomm_send_msc(d->session, 1, d->dlci, d->v24_sig);
session          1368 net/bluetooth/rfcomm/core.c 	struct rfcomm_session *s = d->session;
session          1801 net/bluetooth/rfcomm/core.c 		rfcomm_send_msc(d->session, 1, d->dlci, d->v24_sig);
session          1808 net/bluetooth/rfcomm/core.c 			rfcomm_send_credits(d->session, d->addr, d->cfc - d->rx_credits);
session          1821 net/bluetooth/rfcomm/core.c 		err = rfcomm_send_frame(d->session, skb->data, skb->len);
session            91 net/bluetooth/rfcomm/sock.c 			rfcomm_session_getaddr(d->session,
session           812 net/bluetooth/rfcomm/sock.c 		l2cap_sk = rfcomm_pi(sk)->dlc->session->sock->sk;
session           869 net/bluetooth/rfcomm/tty.c 	if (!dev || !dev->dlc || !dev->dlc->session)
session           990 net/bluetooth/rfcomm/tty.c 		rfcomm_send_rpn(dev->dlc->session, 1, dev->dlc->dlci, baud,
session           184 net/can/j1939/j1939-priv.h void j1939_sk_errqueue(struct j1939_session *session,
session           186 net/can/j1939/j1939-priv.h void j1939_sk_queue_activate_next(struct j1939_session *session);
session           321 net/can/j1939/j1939-priv.h void j1939_session_get(struct j1939_session *session);
session           322 net/can/j1939/j1939-priv.h void j1939_session_put(struct j1939_session *session);
session           323 net/can/j1939/j1939-priv.h void j1939_session_skb_queue(struct j1939_session *session,
session           325 net/can/j1939/j1939-priv.h int j1939_session_activate(struct j1939_session *session);
session           326 net/can/j1939/j1939-priv.h void j1939_tp_schedule_txtimer(struct j1939_session *session, int msec);
session           327 net/can/j1939/j1939-priv.h void j1939_session_timers_cancel(struct j1939_session *session);
session            97 net/can/j1939/socket.c static bool j1939_sk_queue_session(struct j1939_session *session)
session            99 net/can/j1939/socket.c 	struct j1939_sock *jsk = j1939_sk(session->sk);
session           104 net/can/j1939/socket.c 	j1939_session_get(session);
session           105 net/can/j1939/socket.c 	list_add_tail(&session->sk_session_queue_entry, &jsk->sk_session_queue);
session           115 net/can/j1939/socket.c 	struct j1939_session *session = NULL;
session           119 net/can/j1939/socket.c 		session = list_last_entry(&jsk->sk_session_queue,
session           122 net/can/j1939/socket.c 		if (session->total_queued_size == session->total_message_size)
session           123 net/can/j1939/socket.c 			session = NULL;
session           125 net/can/j1939/socket.c 			j1939_session_get(session);
session           129 net/can/j1939/socket.c 	return session;
session           135 net/can/j1939/socket.c 	struct j1939_session *session, *tmp;
session           139 net/can/j1939/socket.c 	list_for_each_entry_safe(session, tmp, &jsk->sk_session_queue,
session           141 net/can/j1939/socket.c 		list_del_init(&session->sk_session_queue_entry);
session           142 net/can/j1939/socket.c 		session->err = err;
session           143 net/can/j1939/socket.c 		j1939_session_put(session);
session           148 net/can/j1939/socket.c static void j1939_sk_queue_activate_next_locked(struct j1939_session *session)
session           155 net/can/j1939/socket.c 	if (!session->sk)
session           158 net/can/j1939/socket.c 	jsk = j1939_sk(session->sk);
session           161 net/can/j1939/socket.c 	err = session->err;
session           168 net/can/j1939/socket.c 	if (first != session)
session           194 net/can/j1939/socket.c void j1939_sk_queue_activate_next(struct j1939_session *session)
session           198 net/can/j1939/socket.c 	if (!session->sk)
session           201 net/can/j1939/socket.c 	jsk = j1939_sk(session->sk);
session           204 net/can/j1939/socket.c 	j1939_sk_queue_activate_next_locked(session);
session           898 net/can/j1939/socket.c j1939_sk_get_timestamping_opt_stats(struct j1939_session *session)
session           907 net/can/j1939/socket.c 	if (session->skcb.addr.type == J1939_SIMPLE)
session           908 net/can/j1939/socket.c 		size = session->total_message_size;
session           910 net/can/j1939/socket.c 		size = min(session->pkt.tx_acked * 7,
session           911 net/can/j1939/socket.c 			   session->total_message_size);
session           918 net/can/j1939/socket.c void j1939_sk_errqueue(struct j1939_session *session,
session           921 net/can/j1939/socket.c 	struct j1939_priv *priv = session->priv;
session           922 net/can/j1939/socket.c 	struct sock *sk = session->sk;
session           938 net/can/j1939/socket.c 	skb = j1939_sk_get_timestamping_opt_stats(session);
session           972 net/can/j1939/socket.c 		serr->ee.ee_errno = session->err;
session           983 net/can/j1939/socket.c 		serr->ee.ee_data = session->tskey;
session           985 net/can/j1939/socket.c 	netdev_dbg(session->priv->ndev, "%s: 0x%p tskey: %i, state: %s\n",
session           986 net/can/j1939/socket.c 		   __func__, session, session->tskey, state);
session          1005 net/can/j1939/socket.c 	struct j1939_session *session = j1939_sk_get_incomplete_session(jsk);
session          1010 net/can/j1939/socket.c 	if (session &&
session          1011 net/can/j1939/socket.c 	    session->total_message_size != session->total_queued_size + size) {
session          1012 net/can/j1939/socket.c 		j1939_session_put(session);
session          1032 net/can/j1939/socket.c 		if (!session) {
session          1037 net/can/j1939/socket.c 			session = j1939_tp_send(priv, skb, size);
session          1038 net/can/j1939/socket.c 			if (IS_ERR(session)) {
session          1039 net/can/j1939/socket.c 				ret = PTR_ERR(session);
session          1042 net/can/j1939/socket.c 			if (j1939_sk_queue_session(session)) {
session          1046 net/can/j1939/socket.c 				if (!j1939_session_activate(session)) {
session          1047 net/can/j1939/socket.c 					j1939_tp_schedule_txtimer(session, 0);
session          1050 net/can/j1939/socket.c 					session->err = ret;
session          1057 net/can/j1939/socket.c 			skcb->offset = session->total_queued_size;
session          1058 net/can/j1939/socket.c 			j1939_session_skb_queue(session, skb);
session          1062 net/can/j1939/socket.c 		session->total_queued_size += segment_size;
session          1084 net/can/j1939/socket.c 	if (session)
session          1085 net/can/j1939/socket.c 		j1939_session_put(session);
session           246 net/can/j1939/transport.c void j1939_session_get(struct j1939_session *session)
session           248 net/can/j1939/transport.c 	kref_get(&session->kref);
session           252 net/can/j1939/transport.c static void __j1939_session_drop(struct j1939_session *session)
session           254 net/can/j1939/transport.c 	if (!session->transmission)
session           257 net/can/j1939/transport.c 	j1939_sock_pending_del(session->sk);
session           258 net/can/j1939/transport.c 	sock_put(session->sk);
session           261 net/can/j1939/transport.c static void j1939_session_destroy(struct j1939_session *session)
session           263 net/can/j1939/transport.c 	if (session->err)
session           264 net/can/j1939/transport.c 		j1939_sk_errqueue(session, J1939_ERRQUEUE_ABORT);
session           266 net/can/j1939/transport.c 		j1939_sk_errqueue(session, J1939_ERRQUEUE_ACK);
session           268 net/can/j1939/transport.c 	netdev_dbg(session->priv->ndev, "%s: 0x%p\n", __func__, session);
session           270 net/can/j1939/transport.c 	WARN_ON_ONCE(!list_empty(&session->sk_session_queue_entry));
session           271 net/can/j1939/transport.c 	WARN_ON_ONCE(!list_empty(&session->active_session_list_entry));
session           273 net/can/j1939/transport.c 	skb_queue_purge(&session->skb_queue);
session           274 net/can/j1939/transport.c 	__j1939_session_drop(session);
session           275 net/can/j1939/transport.c 	j1939_priv_put(session->priv);
session           276 net/can/j1939/transport.c 	kfree(session);
session           281 net/can/j1939/transport.c 	struct j1939_session *session = container_of(kref, struct j1939_session,
session           284 net/can/j1939/transport.c 	j1939_session_destroy(session);
session           287 net/can/j1939/transport.c void j1939_session_put(struct j1939_session *session)
session           289 net/can/j1939/transport.c 	kref_put(&session->kref, __j1939_session_release);
session           292 net/can/j1939/transport.c static void j1939_session_txtimer_cancel(struct j1939_session *session)
session           294 net/can/j1939/transport.c 	if (hrtimer_cancel(&session->txtimer))
session           295 net/can/j1939/transport.c 		j1939_session_put(session);
session           298 net/can/j1939/transport.c static void j1939_session_rxtimer_cancel(struct j1939_session *session)
session           300 net/can/j1939/transport.c 	if (hrtimer_cancel(&session->rxtimer))
session           301 net/can/j1939/transport.c 		j1939_session_put(session);
session           304 net/can/j1939/transport.c void j1939_session_timers_cancel(struct j1939_session *session)
session           306 net/can/j1939/transport.c 	j1939_session_txtimer_cancel(session);
session           307 net/can/j1939/transport.c 	j1939_session_rxtimer_cancel(session);
session           315 net/can/j1939/transport.c static void j1939_session_skb_drop_old(struct j1939_session *session)
session           322 net/can/j1939/transport.c 	if (skb_queue_len(&session->skb_queue) < 2)
session           325 net/can/j1939/transport.c 	offset_start = session->pkt.tx_acked * 7;
session           327 net/can/j1939/transport.c 	spin_lock_irqsave(&session->skb_queue.lock, flags);
session           328 net/can/j1939/transport.c 	do_skb = skb_peek(&session->skb_queue);
session           332 net/can/j1939/transport.c 		__skb_unlink(do_skb, &session->skb_queue);
session           335 net/can/j1939/transport.c 	spin_unlock_irqrestore(&session->skb_queue.lock, flags);
session           338 net/can/j1939/transport.c void j1939_session_skb_queue(struct j1939_session *session,
session           342 net/can/j1939/transport.c 	struct j1939_priv *priv = session->priv;
session           352 net/can/j1939/transport.c 	skb_queue_tail(&session->skb_queue, skb);
session           355 net/can/j1939/transport.c static struct sk_buff *j1939_session_skb_find(struct j1939_session *session)
session           357 net/can/j1939/transport.c 	struct j1939_priv *priv = session->priv;
session           364 net/can/j1939/transport.c 	offset_start = session->pkt.dpo * 7;
session           366 net/can/j1939/transport.c 	spin_lock_irqsave(&session->skb_queue.lock, flags);
session           367 net/can/j1939/transport.c 	skb_queue_walk(&session->skb_queue, do_skb) {
session           375 net/can/j1939/transport.c 	spin_unlock_irqrestore(&session->skb_queue.lock, flags);
session           379 net/can/j1939/transport.c 			   __func__, session, offset_start,
session           380 net/can/j1939/transport.c 			   skb_queue_len(&session->skb_queue));
session           491 net/can/j1939/transport.c 	struct j1939_session *session;
session           495 net/can/j1939/transport.c 	list_for_each_entry(session, root, active_session_list_entry) {
session           496 net/can/j1939/transport.c 		j1939_session_get(session);
session           497 net/can/j1939/transport.c 		if (j1939_session_match(&session->skcb.addr, addr, reverse) &&
session           498 net/can/j1939/transport.c 		    session->transmission == transmitter)
session           499 net/can/j1939/transport.c 			return session;
session           500 net/can/j1939/transport.c 		j1939_session_put(session);
session           511 net/can/j1939/transport.c 	struct j1939_session *session;
session           515 net/can/j1939/transport.c 	list_for_each_entry(session, &priv->active_session_list,
session           517 net/can/j1939/transport.c 		j1939_session_get(session);
session           518 net/can/j1939/transport.c 		if (session->skcb.addr.type == J1939_SIMPLE &&
session           519 net/can/j1939/transport.c 		    session->tskey == skcb->tskey && session->sk == skb->sk)
session           520 net/can/j1939/transport.c 			return session;
session           521 net/can/j1939/transport.c 		j1939_session_put(session);
session           532 net/can/j1939/transport.c 	struct j1939_session *session;
session           535 net/can/j1939/transport.c 	session = j1939_session_get_by_addr_locked(priv,
session           540 net/can/j1939/transport.c 	return session;
session           600 net/can/j1939/transport.c static int j1939_tp_tx_dat(struct j1939_session *session,
session           603 net/can/j1939/transport.c 	struct j1939_priv *priv = session->priv;
session           606 net/can/j1939/transport.c 	skb = j1939_tp_tx_dat_new(priv, &session->skcb,
session           641 net/can/j1939/transport.c static inline int j1939_tp_tx_ctl(struct j1939_session *session,
session           644 net/can/j1939/transport.c 	struct j1939_priv *priv = session->priv;
session           646 net/can/j1939/transport.c 	return j1939_xtp_do_tx_ctl(priv, &session->skcb,
session           648 net/can/j1939/transport.c 				   session->skcb.addr.pgn, dat);
session           668 net/can/j1939/transport.c void j1939_tp_schedule_txtimer(struct j1939_session *session, int msec)
session           670 net/can/j1939/transport.c 	j1939_session_get(session);
session           671 net/can/j1939/transport.c 	hrtimer_start(&session->txtimer, ms_to_ktime(msec),
session           675 net/can/j1939/transport.c static inline void j1939_tp_set_rxtimeout(struct j1939_session *session,
session           678 net/can/j1939/transport.c 	j1939_session_rxtimer_cancel(session);
session           679 net/can/j1939/transport.c 	j1939_session_get(session);
session           680 net/can/j1939/transport.c 	hrtimer_start(&session->rxtimer, ms_to_ktime(msec),
session           684 net/can/j1939/transport.c static int j1939_session_tx_rts(struct j1939_session *session)
session           691 net/can/j1939/transport.c 	dat[1] = (session->total_message_size >> 0);
session           692 net/can/j1939/transport.c 	dat[2] = (session->total_message_size >> 8);
session           693 net/can/j1939/transport.c 	dat[3] = session->pkt.total;
session           695 net/can/j1939/transport.c 	if (session->skcb.addr.type == J1939_ETP) {
session           697 net/can/j1939/transport.c 		dat[1] = (session->total_message_size >> 0);
session           698 net/can/j1939/transport.c 		dat[2] = (session->total_message_size >> 8);
session           699 net/can/j1939/transport.c 		dat[3] = (session->total_message_size >> 16);
session           700 net/can/j1939/transport.c 		dat[4] = (session->total_message_size >> 24);
session           701 net/can/j1939/transport.c 	} else if (j1939_cb_is_broadcast(&session->skcb)) {
session           704 net/can/j1939/transport.c 		session->pkt.tx = 0;
session           710 net/can/j1939/transport.c 	if (dat[0] == session->last_txcmd)
session           714 net/can/j1939/transport.c 	ret = j1939_tp_tx_ctl(session, false, dat);
session           718 net/can/j1939/transport.c 	session->last_txcmd = dat[0];
session           720 net/can/j1939/transport.c 		j1939_tp_schedule_txtimer(session, 50);
session           722 net/can/j1939/transport.c 	j1939_tp_set_rxtimeout(session, 1250);
session           724 net/can/j1939/transport.c 	netdev_dbg(session->priv->ndev, "%s: 0x%p\n", __func__, session);
session           729 net/can/j1939/transport.c static int j1939_session_tx_dpo(struct j1939_session *session)
session           738 net/can/j1939/transport.c 	session->pkt.dpo = session->pkt.tx_acked;
session           739 net/can/j1939/transport.c 	pkt = session->pkt.dpo;
session           740 net/can/j1939/transport.c 	dat[1] = session->pkt.last - session->pkt.tx_acked;
session           745 net/can/j1939/transport.c 	ret = j1939_tp_tx_ctl(session, false, dat);
session           749 net/can/j1939/transport.c 	session->last_txcmd = dat[0];
session           750 net/can/j1939/transport.c 	j1939_tp_set_rxtimeout(session, 1250);
session           751 net/can/j1939/transport.c 	session->pkt.tx = session->pkt.tx_acked;
session           753 net/can/j1939/transport.c 	netdev_dbg(session->priv->ndev, "%s: 0x%p\n", __func__, session);
session           758 net/can/j1939/transport.c static int j1939_session_tx_dat(struct j1939_session *session)
session           760 net/can/j1939/transport.c 	struct j1939_priv *priv = session->priv;
session           769 net/can/j1939/transport.c 	se_skb = j1939_session_skb_find(session);
session           777 net/can/j1939/transport.c 	if (session->skcb.addr.type != J1939_ETP &&
session           778 net/can/j1939/transport.c 	    j1939_cb_is_broadcast(&session->skcb))
session           779 net/can/j1939/transport.c 		pkt_end = session->pkt.total;
session           781 net/can/j1939/transport.c 		pkt_end = session->pkt.last;
session           783 net/can/j1939/transport.c 	while (session->pkt.tx < pkt_end) {
session           784 net/can/j1939/transport.c 		dat[0] = session->pkt.tx - session->pkt.dpo + 1;
session           785 net/can/j1939/transport.c 		offset = (session->pkt.tx * 7) - skcb->offset;
session           791 net/can/j1939/transport.c 		ret = j1939_tp_tx_dat(session, dat, len + 1);
session           797 net/can/j1939/transport.c 					     __func__, session, ret);
session           801 net/can/j1939/transport.c 		session->last_txcmd = 0xff;
session           803 net/can/j1939/transport.c 		session->pkt.tx++;
session           804 net/can/j1939/transport.c 		pdelay = j1939_cb_is_broadcast(&session->skcb) ? 50 :
session           807 net/can/j1939/transport.c 		if (session->pkt.tx < session->pkt.total && pdelay) {
session           808 net/can/j1939/transport.c 			j1939_tp_schedule_txtimer(session, pdelay);
session           814 net/can/j1939/transport.c 		j1939_tp_set_rxtimeout(session, 250);
session           819 net/can/j1939/transport.c static int j1939_xtp_txnext_transmiter(struct j1939_session *session)
session           821 net/can/j1939/transport.c 	struct j1939_priv *priv = session->priv;
session           824 net/can/j1939/transport.c 	if (!j1939_tp_im_transmitter(&session->skcb)) {
session           826 net/can/j1939/transport.c 			     __func__, session);
session           830 net/can/j1939/transport.c 	switch (session->last_cmd) {
session           832 net/can/j1939/transport.c 		ret = j1939_session_tx_rts(session);
session           836 net/can/j1939/transport.c 		if (session->last_txcmd != J1939_ETP_CMD_DPO) {
session           837 net/can/j1939/transport.c 			ret = j1939_session_tx_dpo(session);
session           847 net/can/j1939/transport.c 		ret = j1939_session_tx_dat(session);
session           852 net/can/j1939/transport.c 			     __func__, session, session->last_cmd);
session           858 net/can/j1939/transport.c static int j1939_session_tx_cts(struct j1939_session *session)
session           860 net/can/j1939/transport.c 	struct j1939_priv *priv = session->priv;
session           865 net/can/j1939/transport.c 	if (!j1939_sk_recv_match(priv, &session->skcb))
session           868 net/can/j1939/transport.c 	len = session->pkt.total - session->pkt.rx;
session           869 net/can/j1939/transport.c 	len = min3(len, session->pkt.block, j1939_tp_block ?: 255);
session           872 net/can/j1939/transport.c 	if (session->skcb.addr.type == J1939_ETP) {
session           873 net/can/j1939/transport.c 		pkt = session->pkt.rx + 1;
session           882 net/can/j1939/transport.c 		dat[2] = session->pkt.rx + 1;
session           885 net/can/j1939/transport.c 	if (dat[0] == session->last_txcmd)
session           889 net/can/j1939/transport.c 	ret = j1939_tp_tx_ctl(session, true, dat);
session           895 net/can/j1939/transport.c 		session->last_txcmd = dat[0];
session           896 net/can/j1939/transport.c 	j1939_tp_set_rxtimeout(session, 1250);
session           898 net/can/j1939/transport.c 	netdev_dbg(session->priv->ndev, "%s: 0x%p\n", __func__, session);
session           903 net/can/j1939/transport.c static int j1939_session_tx_eoma(struct j1939_session *session)
session           905 net/can/j1939/transport.c 	struct j1939_priv *priv = session->priv;
session           909 net/can/j1939/transport.c 	if (!j1939_sk_recv_match(priv, &session->skcb))
session           914 net/can/j1939/transport.c 	if (session->skcb.addr.type == J1939_ETP) {
session           916 net/can/j1939/transport.c 		dat[1] = session->total_message_size >> 0;
session           917 net/can/j1939/transport.c 		dat[2] = session->total_message_size >> 8;
session           918 net/can/j1939/transport.c 		dat[3] = session->total_message_size >> 16;
session           919 net/can/j1939/transport.c 		dat[4] = session->total_message_size >> 24;
session           922 net/can/j1939/transport.c 		dat[1] = session->total_message_size;
session           923 net/can/j1939/transport.c 		dat[2] = session->total_message_size >> 8;
session           924 net/can/j1939/transport.c 		dat[3] = session->pkt.total;
session           927 net/can/j1939/transport.c 	if (dat[0] == session->last_txcmd)
session           931 net/can/j1939/transport.c 	ret = j1939_tp_tx_ctl(session, true, dat);
session           935 net/can/j1939/transport.c 	session->last_txcmd = dat[0];
session           938 net/can/j1939/transport.c 	j1939_tp_set_rxtimeout(session, 1250);
session           940 net/can/j1939/transport.c 	netdev_dbg(session->priv->ndev, "%p: 0x%p\n", __func__, session);
session           945 net/can/j1939/transport.c static int j1939_xtp_txnext_receiver(struct j1939_session *session)
session           947 net/can/j1939/transport.c 	struct j1939_priv *priv = session->priv;
session           950 net/can/j1939/transport.c 	if (!j1939_tp_im_receiver(&session->skcb)) {
session           952 net/can/j1939/transport.c 			     __func__, session);
session           956 net/can/j1939/transport.c 	switch (session->last_cmd) {
session           959 net/can/j1939/transport.c 		ret = j1939_session_tx_cts(session);
session           966 net/can/j1939/transport.c 		if ((session->skcb.addr.type == J1939_TP &&
session           967 net/can/j1939/transport.c 		     j1939_cb_is_broadcast(&session->skcb)))
session           970 net/can/j1939/transport.c 		if (session->pkt.rx >= session->pkt.total) {
session           971 net/can/j1939/transport.c 			ret = j1939_session_tx_eoma(session);
session           972 net/can/j1939/transport.c 		} else if (session->pkt.rx >= session->pkt.last) {
session           973 net/can/j1939/transport.c 			session->last_txcmd = 0;
session           974 net/can/j1939/transport.c 			ret = j1939_session_tx_cts(session);
session           979 net/can/j1939/transport.c 			     __func__, session, session->last_cmd);
session           985 net/can/j1939/transport.c static int j1939_simple_txnext(struct j1939_session *session)
session           987 net/can/j1939/transport.c 	struct j1939_priv *priv = session->priv;
session           988 net/can/j1939/transport.c 	struct sk_buff *se_skb = j1939_session_skb_find(session);
session          1001 net/can/j1939/transport.c 	j1939_tp_set_rxtimeout(session, J1939_SIMPLE_ECHO_TIMEOUT_MS);
session          1007 net/can/j1939/transport.c 	j1939_sk_errqueue(session, J1939_ERRQUEUE_SCHED);
session          1008 net/can/j1939/transport.c 	j1939_sk_queue_activate_next(session);
session          1013 net/can/j1939/transport.c static bool j1939_session_deactivate_locked(struct j1939_session *session)
session          1017 net/can/j1939/transport.c 	lockdep_assert_held(&session->priv->active_session_list_lock);
session          1019 net/can/j1939/transport.c 	if (session->state >= J1939_SESSION_ACTIVE &&
session          1020 net/can/j1939/transport.c 	    session->state < J1939_SESSION_ACTIVE_MAX) {
session          1023 net/can/j1939/transport.c 		list_del_init(&session->active_session_list_entry);
session          1024 net/can/j1939/transport.c 		session->state = J1939_SESSION_DONE;
session          1025 net/can/j1939/transport.c 		j1939_session_put(session);
session          1031 net/can/j1939/transport.c static bool j1939_session_deactivate(struct j1939_session *session)
session          1035 net/can/j1939/transport.c 	j1939_session_list_lock(session->priv);
session          1036 net/can/j1939/transport.c 	active = j1939_session_deactivate_locked(session);
session          1037 net/can/j1939/transport.c 	j1939_session_list_unlock(session->priv);
session          1043 net/can/j1939/transport.c j1939_session_deactivate_activate_next(struct j1939_session *session)
session          1045 net/can/j1939/transport.c 	if (j1939_session_deactivate(session))
session          1046 net/can/j1939/transport.c 		j1939_sk_queue_activate_next(session);
session          1049 net/can/j1939/transport.c static void __j1939_session_cancel(struct j1939_session *session,
session          1052 net/can/j1939/transport.c 	struct j1939_priv *priv = session->priv;
session          1055 net/can/j1939/transport.c 	lockdep_assert_held(&session->priv->active_session_list_lock);
session          1057 net/can/j1939/transport.c 	session->err = j1939_xtp_abort_to_errno(priv, err);
session          1059 net/can/j1939/transport.c 	if (!j1939_cb_is_broadcast(&session->skcb)) {
session          1060 net/can/j1939/transport.c 		session->state = J1939_SESSION_WAITING_ABORT;
session          1061 net/can/j1939/transport.c 		j1939_xtp_tx_abort(priv, &session->skcb,
session          1062 net/can/j1939/transport.c 				   !session->transmission,
session          1063 net/can/j1939/transport.c 				   err, session->skcb.addr.pgn);
session          1066 net/can/j1939/transport.c 	if (session->sk)
session          1067 net/can/j1939/transport.c 		j1939_sk_send_loop_abort(session->sk, session->err);
session          1070 net/can/j1939/transport.c static void j1939_session_cancel(struct j1939_session *session,
session          1073 net/can/j1939/transport.c 	j1939_session_list_lock(session->priv);
session          1075 net/can/j1939/transport.c 	if (session->state >= J1939_SESSION_ACTIVE &&
session          1076 net/can/j1939/transport.c 	    session->state < J1939_SESSION_WAITING_ABORT) {
session          1077 net/can/j1939/transport.c 		j1939_tp_set_rxtimeout(session, J1939_XTP_ABORT_TIMEOUT_MS);
session          1078 net/can/j1939/transport.c 		__j1939_session_cancel(session, err);
session          1081 net/can/j1939/transport.c 	j1939_session_list_unlock(session->priv);
session          1086 net/can/j1939/transport.c 	struct j1939_session *session =
session          1088 net/can/j1939/transport.c 	struct j1939_priv *priv = session->priv;
session          1091 net/can/j1939/transport.c 	if (session->skcb.addr.type == J1939_SIMPLE) {
session          1092 net/can/j1939/transport.c 		ret = j1939_simple_txnext(session);
session          1094 net/can/j1939/transport.c 		if (session->transmission)
session          1095 net/can/j1939/transport.c 			ret = j1939_xtp_txnext_transmiter(session);
session          1097 net/can/j1939/transport.c 			ret = j1939_xtp_txnext_receiver(session);
session          1103 net/can/j1939/transport.c 		if (session->tx_retry < J1939_XTP_TX_RETRY_LIMIT) {
session          1104 net/can/j1939/transport.c 			session->tx_retry++;
session          1105 net/can/j1939/transport.c 			j1939_tp_schedule_txtimer(session,
session          1109 net/can/j1939/transport.c 				     __func__, session);
session          1110 net/can/j1939/transport.c 			session->err = -ENETUNREACH;
session          1111 net/can/j1939/transport.c 			j1939_session_rxtimer_cancel(session);
session          1112 net/can/j1939/transport.c 			j1939_session_deactivate_activate_next(session);
session          1124 net/can/j1939/transport.c 		session->tx_retry = 0;
session          1128 net/can/j1939/transport.c 			     __func__, session, ret);
session          1129 net/can/j1939/transport.c 		if (session->skcb.addr.type != J1939_SIMPLE) {
session          1130 net/can/j1939/transport.c 			j1939_session_cancel(session, J1939_XTP_ABORT_OTHER);
session          1132 net/can/j1939/transport.c 			session->err = ret;
session          1133 net/can/j1939/transport.c 			j1939_session_rxtimer_cancel(session);
session          1134 net/can/j1939/transport.c 			j1939_session_deactivate_activate_next(session);
session          1138 net/can/j1939/transport.c 	j1939_session_put(session);
session          1143 net/can/j1939/transport.c static void j1939_session_completed(struct j1939_session *session)
session          1147 net/can/j1939/transport.c 	if (!session->transmission) {
session          1148 net/can/j1939/transport.c 		skb = j1939_session_skb_find(session);
session          1150 net/can/j1939/transport.c 		j1939_sk_recv(session->priv, skb);
session          1153 net/can/j1939/transport.c 	j1939_session_deactivate_activate_next(session);
session          1158 net/can/j1939/transport.c 	struct j1939_session *session = container_of(hrtimer,
session          1161 net/can/j1939/transport.c 	struct j1939_priv *priv = session->priv;
session          1163 net/can/j1939/transport.c 	if (session->state == J1939_SESSION_WAITING_ABORT) {
session          1165 net/can/j1939/transport.c 			     __func__, session);
session          1167 net/can/j1939/transport.c 		j1939_session_deactivate_activate_next(session);
session          1169 net/can/j1939/transport.c 	} else if (session->skcb.addr.type == J1939_SIMPLE) {
session          1171 net/can/j1939/transport.c 			     __func__, session);
session          1176 net/can/j1939/transport.c 		session->err = -ETIME;
session          1177 net/can/j1939/transport.c 		j1939_session_deactivate(session);
session          1180 net/can/j1939/transport.c 			     __func__, session);
session          1182 net/can/j1939/transport.c 		j1939_session_list_lock(session->priv);
session          1183 net/can/j1939/transport.c 		if (session->state >= J1939_SESSION_ACTIVE &&
session          1184 net/can/j1939/transport.c 		    session->state < J1939_SESSION_ACTIVE_MAX) {
session          1185 net/can/j1939/transport.c 			j1939_session_get(session);
session          1186 net/can/j1939/transport.c 			hrtimer_start(&session->rxtimer,
session          1189 net/can/j1939/transport.c 			__j1939_session_cancel(session, J1939_XTP_ABORT_TIMEOUT);
session          1191 net/can/j1939/transport.c 		j1939_session_list_unlock(session->priv);
session          1194 net/can/j1939/transport.c 	j1939_session_put(session);
session          1199 net/can/j1939/transport.c static bool j1939_xtp_rx_cmd_bad_pgn(struct j1939_session *session,
session          1204 net/can/j1939/transport.c 	struct j1939_priv *priv = session->priv;
session          1208 net/can/j1939/transport.c 	if (session->skcb.addr.pgn == pgn)
session          1245 net/can/j1939/transport.c 		    __func__, session, cmd, pgn, session->skcb.addr.pgn);
session          1256 net/can/j1939/transport.c 	struct j1939_session *session;
session          1259 net/can/j1939/transport.c 	session = j1939_session_get_by_addr(priv, &skcb->addr, reverse,
session          1261 net/can/j1939/transport.c 	if (!session)
session          1264 net/can/j1939/transport.c 	if (j1939_xtp_rx_cmd_bad_pgn(session, skb))
session          1268 net/can/j1939/transport.c 		    session, j1939_xtp_ctl_to_pgn(skb->data), abort,
session          1271 net/can/j1939/transport.c 	j1939_session_timers_cancel(session);
session          1272 net/can/j1939/transport.c 	session->err = j1939_xtp_abort_to_errno(priv, abort);
session          1273 net/can/j1939/transport.c 	if (session->sk)
session          1274 net/can/j1939/transport.c 		j1939_sk_send_loop_abort(session->sk, session->err);
session          1275 net/can/j1939/transport.c 	j1939_session_deactivate_activate_next(session);
session          1278 net/can/j1939/transport.c 	j1939_session_put(session);
session          1291 net/can/j1939/transport.c j1939_xtp_rx_eoma_one(struct j1939_session *session, struct sk_buff *skb)
session          1297 net/can/j1939/transport.c 	if (j1939_xtp_rx_cmd_bad_pgn(session, skb))
session          1307 net/can/j1939/transport.c 	if (session->total_message_size != len) {
session          1308 net/can/j1939/transport.c 		netdev_warn_once(session->priv->ndev,
session          1310 net/can/j1939/transport.c 				 __func__, session, session->total_message_size,
session          1314 net/can/j1939/transport.c 	netdev_dbg(session->priv->ndev, "%s: 0x%p\n", __func__, session);
session          1316 net/can/j1939/transport.c 	session->pkt.tx_acked = session->pkt.total;
session          1317 net/can/j1939/transport.c 	j1939_session_timers_cancel(session);
session          1319 net/can/j1939/transport.c 	j1939_session_completed(session);
session          1327 net/can/j1939/transport.c 	struct j1939_session *session;
session          1329 net/can/j1939/transport.c 	session = j1939_session_get_by_addr(priv, &skcb->addr, true,
session          1331 net/can/j1939/transport.c 	if (!session)
session          1334 net/can/j1939/transport.c 	j1939_xtp_rx_eoma_one(session, skb);
session          1335 net/can/j1939/transport.c 	j1939_session_put(session);
session          1339 net/can/j1939/transport.c j1939_xtp_rx_cts_one(struct j1939_session *session, struct sk_buff *skb)
session          1347 net/can/j1939/transport.c 	if (j1939_xtp_rx_cmd_bad_pgn(session, skb))
session          1350 net/can/j1939/transport.c 	netdev_dbg(session->priv->ndev, "%s: 0x%p\n", __func__, session);
session          1352 net/can/j1939/transport.c 	if (session->last_cmd == dat[0]) {
session          1357 net/can/j1939/transport.c 	if (session->skcb.addr.type == J1939_ETP)
session          1364 net/can/j1939/transport.c 	else if (dat[1] > session->pkt.block /* 0xff for etp */)
session          1368 net/can/j1939/transport.c 	session->pkt.tx_acked = pkt - 1;
session          1369 net/can/j1939/transport.c 	j1939_session_skb_drop_old(session);
session          1370 net/can/j1939/transport.c 	session->pkt.last = session->pkt.tx_acked + dat[1];
session          1371 net/can/j1939/transport.c 	if (session->pkt.last > session->pkt.total)
session          1373 net/can/j1939/transport.c 		session->pkt.last = session->pkt.total;
session          1375 net/can/j1939/transport.c 	session->pkt.tx = session->pkt.tx_acked;
session          1377 net/can/j1939/transport.c 	session->last_cmd = dat[0];
session          1379 net/can/j1939/transport.c 		j1939_tp_set_rxtimeout(session, 1250);
session          1380 net/can/j1939/transport.c 		if (session->transmission) {
session          1381 net/can/j1939/transport.c 			if (session->pkt.tx_acked)
session          1382 net/can/j1939/transport.c 				j1939_sk_errqueue(session,
session          1384 net/can/j1939/transport.c 			j1939_session_txtimer_cancel(session);
session          1385 net/can/j1939/transport.c 			j1939_tp_schedule_txtimer(session, 0);
session          1389 net/can/j1939/transport.c 		j1939_tp_set_rxtimeout(session, 550);
session          1394 net/can/j1939/transport.c 	j1939_session_timers_cancel(session);
session          1395 net/can/j1939/transport.c 	j1939_session_cancel(session, err);
session          1402 net/can/j1939/transport.c 	struct j1939_session *session;
session          1404 net/can/j1939/transport.c 	session = j1939_session_get_by_addr(priv, &skcb->addr, true,
session          1406 net/can/j1939/transport.c 	if (!session)
session          1408 net/can/j1939/transport.c 	j1939_xtp_rx_cts_one(session, skb);
session          1409 net/can/j1939/transport.c 	j1939_session_put(session);
session          1415 net/can/j1939/transport.c 	struct j1939_session *session;
session          1418 net/can/j1939/transport.c 	session = kzalloc(sizeof(*session), gfp_any());
session          1419 net/can/j1939/transport.c 	if (!session)
session          1422 net/can/j1939/transport.c 	INIT_LIST_HEAD(&session->active_session_list_entry);
session          1423 net/can/j1939/transport.c 	INIT_LIST_HEAD(&session->sk_session_queue_entry);
session          1424 net/can/j1939/transport.c 	kref_init(&session->kref);
session          1427 net/can/j1939/transport.c 	session->priv = priv;
session          1428 net/can/j1939/transport.c 	session->total_message_size = size;
session          1429 net/can/j1939/transport.c 	session->state = J1939_SESSION_NEW;
session          1431 net/can/j1939/transport.c 	skb_queue_head_init(&session->skb_queue);
session          1432 net/can/j1939/transport.c 	skb_queue_tail(&session->skb_queue, skb);
session          1435 net/can/j1939/transport.c 	memcpy(&session->skcb, skcb, sizeof(session->skcb));
session          1437 net/can/j1939/transport.c 	hrtimer_init(&session->txtimer, CLOCK_MONOTONIC,
session          1439 net/can/j1939/transport.c 	session->txtimer.function = j1939_tp_txtimer;
session          1440 net/can/j1939/transport.c 	hrtimer_init(&session->rxtimer, CLOCK_MONOTONIC,
session          1442 net/can/j1939/transport.c 	session->rxtimer.function = j1939_tp_rxtimer;
session          1445 net/can/j1939/transport.c 		   __func__, session, skcb->addr.sa, skcb->addr.da);
session          1447 net/can/j1939/transport.c 	return session;
session          1457 net/can/j1939/transport.c 	struct j1939_session *session;
session          1469 net/can/j1939/transport.c 	session = j1939_session_new(priv, skb, size);
session          1470 net/can/j1939/transport.c 	if (!session) {
session          1478 net/can/j1939/transport.c 	return session;
session          1481 net/can/j1939/transport.c int j1939_session_activate(struct j1939_session *session)
session          1483 net/can/j1939/transport.c 	struct j1939_priv *priv = session->priv;
session          1488 net/can/j1939/transport.c 	if (session->skcb.addr.type != J1939_SIMPLE)
session          1491 net/can/j1939/transport.c 							  &session->skcb.addr, false,
session          1492 net/can/j1939/transport.c 							  session->transmission);
session          1497 net/can/j1939/transport.c 		WARN_ON_ONCE(session->state != J1939_SESSION_NEW);
session          1498 net/can/j1939/transport.c 		list_add_tail(&session->active_session_list_entry,
session          1500 net/can/j1939/transport.c 		j1939_session_get(session);
session          1501 net/can/j1939/transport.c 		session->state = J1939_SESSION_ACTIVE;
session          1503 net/can/j1939/transport.c 		netdev_dbg(session->priv->ndev, "%s: 0x%p\n",
session          1504 net/can/j1939/transport.c 			   __func__, session);
session          1517 net/can/j1939/transport.c 	struct j1939_session *session;
session          1552 net/can/j1939/transport.c 	session = j1939_session_fresh_new(priv, len, &skcb);
session          1553 net/can/j1939/transport.c 	if (!session) {
session          1560 net/can/j1939/transport.c 	session->pkt.total = (len + 6) / 7;
session          1561 net/can/j1939/transport.c 	session->pkt.block = 0xff;
session          1563 net/can/j1939/transport.c 		if (dat[3] != session->pkt.total)
session          1565 net/can/j1939/transport.c 				     __func__, session, session->pkt.total,
session          1567 net/can/j1939/transport.c 		session->pkt.total = dat[3];
session          1568 net/can/j1939/transport.c 		session->pkt.block = min(dat[3], dat[4]);
session          1571 net/can/j1939/transport.c 	session->pkt.rx = 0;
session          1572 net/can/j1939/transport.c 	session->pkt.tx = 0;
session          1574 net/can/j1939/transport.c 	WARN_ON_ONCE(j1939_session_activate(session));
session          1576 net/can/j1939/transport.c 	return session;
session          1579 net/can/j1939/transport.c static int j1939_xtp_rx_rts_session_active(struct j1939_session *session,
session          1583 net/can/j1939/transport.c 	struct j1939_priv *priv = session->priv;
session          1585 net/can/j1939/transport.c 	if (!session->transmission) {
session          1586 net/can/j1939/transport.c 		if (j1939_xtp_rx_cmd_bad_pgn(session, skb))
session          1590 net/can/j1939/transport.c 		j1939_session_timers_cancel(session);
session          1591 net/can/j1939/transport.c 		j1939_session_cancel(session, J1939_XTP_ABORT_BUSY);
session          1594 net/can/j1939/transport.c 	if (session->last_cmd != 0) {
session          1597 net/can/j1939/transport.c 			     __func__, session, skcb->addr.sa, skcb->addr.da,
session          1598 net/can/j1939/transport.c 			     session->last_cmd);
session          1600 net/can/j1939/transport.c 		j1939_session_timers_cancel(session);
session          1601 net/can/j1939/transport.c 		j1939_session_cancel(session, J1939_XTP_ABORT_BUSY);
session          1606 net/can/j1939/transport.c 	if (session->skcb.addr.sa != skcb->addr.sa ||
session          1607 net/can/j1939/transport.c 	    session->skcb.addr.da != skcb->addr.da)
session          1609 net/can/j1939/transport.c 			    __func__, session,
session          1610 net/can/j1939/transport.c 			    session->skcb.addr.sa, skcb->addr.sa,
session          1611 net/can/j1939/transport.c 			    session->skcb.addr.da, skcb->addr.da);
session          1616 net/can/j1939/transport.c 	session->skcb.addr.sa = skcb->addr.sa;
session          1617 net/can/j1939/transport.c 	session->skcb.addr.da = skcb->addr.da;
session          1619 net/can/j1939/transport.c 	netdev_dbg(session->priv->ndev, "%s: 0x%p\n", __func__, session);
session          1628 net/can/j1939/transport.c 	struct j1939_session *session;
session          1631 net/can/j1939/transport.c 	session = j1939_session_get_by_addr(priv, &skcb->addr, false,
session          1634 net/can/j1939/transport.c 	if (!session) {
session          1653 net/can/j1939/transport.c 		session = j1939_xtp_rx_rts_session_new(priv, skb);
session          1654 net/can/j1939/transport.c 		if (!session)
session          1657 net/can/j1939/transport.c 		if (j1939_xtp_rx_rts_session_active(session, skb)) {
session          1658 net/can/j1939/transport.c 			j1939_session_put(session);
session          1662 net/can/j1939/transport.c 	session->last_cmd = cmd;
session          1664 net/can/j1939/transport.c 	j1939_tp_set_rxtimeout(session, 1250);
session          1666 net/can/j1939/transport.c 	if (cmd != J1939_TP_CMD_BAM && !session->transmission) {
session          1667 net/can/j1939/transport.c 		j1939_session_txtimer_cancel(session);
session          1668 net/can/j1939/transport.c 		j1939_tp_schedule_txtimer(session, 0);
session          1671 net/can/j1939/transport.c 	j1939_session_put(session);
session          1674 net/can/j1939/transport.c static void j1939_xtp_rx_dpo_one(struct j1939_session *session,
session          1679 net/can/j1939/transport.c 	if (j1939_xtp_rx_cmd_bad_pgn(session, skb))
session          1682 net/can/j1939/transport.c 	netdev_dbg(session->priv->ndev, "%s: 0x%p\n", __func__, session);
session          1685 net/can/j1939/transport.c 	session->pkt.dpo = j1939_etp_ctl_to_packet(skb->data);
session          1686 net/can/j1939/transport.c 	session->last_cmd = dat[0];
session          1687 net/can/j1939/transport.c 	j1939_tp_set_rxtimeout(session, 750);
session          1694 net/can/j1939/transport.c 	struct j1939_session *session;
session          1696 net/can/j1939/transport.c 	session = j1939_session_get_by_addr(priv, &skcb->addr, false,
session          1698 net/can/j1939/transport.c 	if (!session) {
session          1704 net/can/j1939/transport.c 	j1939_xtp_rx_dpo_one(session, skb);
session          1705 net/can/j1939/transport.c 	j1939_session_put(session);
session          1708 net/can/j1939/transport.c static void j1939_xtp_rx_dat_one(struct j1939_session *session,
session          1711 net/can/j1939/transport.c 	struct j1939_priv *priv = session->priv;
session          1728 net/can/j1939/transport.c 	switch (session->last_cmd) {
session          1742 net/can/j1939/transport.c 			    session, session->last_cmd);
session          1746 net/can/j1939/transport.c 	packet = (dat[0] - 1 + session->pkt.dpo);
session          1747 net/can/j1939/transport.c 	if (packet > session->pkt.total ||
session          1748 net/can/j1939/transport.c 	    (session->pkt.rx + 1) > session->pkt.total) {
session          1750 net/can/j1939/transport.c 			    __func__, session);
session          1753 net/can/j1939/transport.c 	se_skb = j1939_session_skb_find(session);
session          1756 net/can/j1939/transport.c 			    session);
session          1767 net/can/j1939/transport.c 			    __func__, session, nbytes, skb->len);
session          1773 net/can/j1939/transport.c 	if (packet == session->pkt.rx)
session          1774 net/can/j1939/transport.c 		session->pkt.rx++;
session          1777 net/can/j1939/transport.c 	    j1939_cb_is_broadcast(&session->skcb)) {
session          1778 net/can/j1939/transport.c 		if (session->pkt.rx >= session->pkt.total)
session          1782 net/can/j1939/transport.c 		if (session->pkt.rx >= session->pkt.last)
session          1787 net/can/j1939/transport.c 		j1939_session_completed(session);
session          1789 net/can/j1939/transport.c 		j1939_tp_set_rxtimeout(session, 1250);
session          1790 net/can/j1939/transport.c 		if (!session->transmission)
session          1791 net/can/j1939/transport.c 			j1939_tp_schedule_txtimer(session, 0);
session          1793 net/can/j1939/transport.c 		j1939_tp_set_rxtimeout(session, 250);
session          1795 net/can/j1939/transport.c 	session->last_cmd = 0xff;
session          1796 net/can/j1939/transport.c 	j1939_session_put(session);
session          1801 net/can/j1939/transport.c 	j1939_session_timers_cancel(session);
session          1802 net/can/j1939/transport.c 	j1939_session_cancel(session, J1939_XTP_ABORT_FAULT);
session          1803 net/can/j1939/transport.c 	j1939_session_put(session);
session          1809 net/can/j1939/transport.c 	struct j1939_session *session;
session          1814 net/can/j1939/transport.c 		session = j1939_session_get_by_addr(priv, &skcb->addr, false,
session          1816 net/can/j1939/transport.c 		if (!session)
session          1820 net/can/j1939/transport.c 			j1939_xtp_rx_dat_one(session, skb);
session          1824 net/can/j1939/transport.c 		session = j1939_session_get_by_addr(priv, &skcb->addr, false,
session          1826 net/can/j1939/transport.c 		if (!session)
session          1830 net/can/j1939/transport.c 			j1939_xtp_rx_dat_one(session, skb);
session          1839 net/can/j1939/transport.c 	struct j1939_session *session;
session          1877 net/can/j1939/transport.c 	session = j1939_session_new(priv, skb, size);
session          1878 net/can/j1939/transport.c 	if (!session)
session          1883 net/can/j1939/transport.c 	session->sk = skb->sk;
session          1884 net/can/j1939/transport.c 	session->transmission = true;
session          1885 net/can/j1939/transport.c 	session->pkt.total = (size + 6) / 7;
session          1886 net/can/j1939/transport.c 	session->pkt.block = skcb->addr.type == J1939_ETP ? 255 :
session          1887 net/can/j1939/transport.c 		min(j1939_tp_block ?: 255, session->pkt.total);
session          1889 net/can/j1939/transport.c 	if (j1939_cb_is_broadcast(&session->skcb))
session          1891 net/can/j1939/transport.c 		session->pkt.last = session->pkt.total;
session          1893 net/can/j1939/transport.c 	skcb->tskey = session->sk->sk_tskey++;
session          1894 net/can/j1939/transport.c 	session->tskey = skcb->tskey;
session          1896 net/can/j1939/transport.c 	return session;
session          2015 net/can/j1939/transport.c 	struct j1939_session *session;
session          2021 net/can/j1939/transport.c 	session = j1939_session_get_simple(priv, skb);
session          2023 net/can/j1939/transport.c 	if (!session) {
session          2030 net/can/j1939/transport.c 	j1939_session_timers_cancel(session);
session          2031 net/can/j1939/transport.c 	j1939_session_deactivate(session);
session          2032 net/can/j1939/transport.c 	j1939_session_put(session);
session          2037 net/can/j1939/transport.c 	struct j1939_session *session, *saved;
session          2041 net/can/j1939/transport.c 	list_for_each_entry_safe(session, saved,
session          2044 net/can/j1939/transport.c 		if (!sk || sk == session->sk) {
session          2045 net/can/j1939/transport.c 			if (hrtimer_try_to_cancel(&session->txtimer) == 1)
session          2046 net/can/j1939/transport.c 				j1939_session_put(session);
session          2047 net/can/j1939/transport.c 			if (hrtimer_try_to_cancel(&session->rxtimer) == 1)
session          2048 net/can/j1939/transport.c 				j1939_session_put(session);
session          2050 net/can/j1939/transport.c 			session->err = ESHUTDOWN;
session          2051 net/can/j1939/transport.c 			j1939_session_deactivate_locked(session);
session           206 net/l2tp/l2tp_core.c 	struct l2tp_session *session;
session           211 net/l2tp/l2tp_core.c 	hlist_for_each_entry(session, session_list, hlist)
session           212 net/l2tp/l2tp_core.c 		if (session->session_id == session_id) {
session           213 net/l2tp/l2tp_core.c 			l2tp_session_inc_refcount(session);
session           216 net/l2tp/l2tp_core.c 			return session;
session           227 net/l2tp/l2tp_core.c 	struct l2tp_session *session;
session           232 net/l2tp/l2tp_core.c 	hlist_for_each_entry_rcu(session, session_list, global_hlist)
session           233 net/l2tp/l2tp_core.c 		if (session->session_id == session_id) {
session           234 net/l2tp/l2tp_core.c 			l2tp_session_inc_refcount(session);
session           237 net/l2tp/l2tp_core.c 			return session;
session           248 net/l2tp/l2tp_core.c 	struct l2tp_session *session;
session           253 net/l2tp/l2tp_core.c 		hlist_for_each_entry(session, &tunnel->session_hlist[hash], hlist) {
session           255 net/l2tp/l2tp_core.c 				l2tp_session_inc_refcount(session);
session           257 net/l2tp/l2tp_core.c 				return session;
session           276 net/l2tp/l2tp_core.c 	struct l2tp_session *session;
session           280 net/l2tp/l2tp_core.c 		hlist_for_each_entry_rcu(session, &pn->l2tp_session_hlist[hash], global_hlist) {
session           281 net/l2tp/l2tp_core.c 			if (!strcmp(session->ifname, ifname)) {
session           282 net/l2tp/l2tp_core.c 				l2tp_session_inc_refcount(session);
session           285 net/l2tp/l2tp_core.c 				return session;
session           296 net/l2tp/l2tp_core.c int l2tp_session_register(struct l2tp_session *session,
session           305 net/l2tp/l2tp_core.c 	head = l2tp_session_id_hash(tunnel, session->session_id);
session           314 net/l2tp/l2tp_core.c 		if (session_walk->session_id == session->session_id) {
session           321 net/l2tp/l2tp_core.c 		g_head = l2tp_session_id_hash_2(pn, session->session_id);
session           329 net/l2tp/l2tp_core.c 			if (session_walk->session_id == session->session_id &&
session           337 net/l2tp/l2tp_core.c 		hlist_add_head_rcu(&session->global_hlist, g_head);
session           344 net/l2tp/l2tp_core.c 	hlist_add_head(&session->hlist, head);
session           365 net/l2tp/l2tp_core.c static void l2tp_recv_queue_skb(struct l2tp_session *session, struct sk_buff *skb)
session           371 net/l2tp/l2tp_core.c 	spin_lock_bh(&session->reorder_q.lock);
session           372 net/l2tp/l2tp_core.c 	skb_queue_walk_safe(&session->reorder_q, skbp, tmp) {
session           374 net/l2tp/l2tp_core.c 			__skb_queue_before(&session->reorder_q, skbp, skb);
session           375 net/l2tp/l2tp_core.c 			l2tp_dbg(session, L2TP_MSG_SEQ,
session           377 net/l2tp/l2tp_core.c 				 session->name, ns, L2TP_SKB_CB(skbp)->ns,
session           378 net/l2tp/l2tp_core.c 				 skb_queue_len(&session->reorder_q));
session           379 net/l2tp/l2tp_core.c 			atomic_long_inc(&session->stats.rx_oos_packets);
session           384 net/l2tp/l2tp_core.c 	__skb_queue_tail(&session->reorder_q, skb);
session           387 net/l2tp/l2tp_core.c 	spin_unlock_bh(&session->reorder_q.lock);
session           392 net/l2tp/l2tp_core.c static void l2tp_recv_dequeue_skb(struct l2tp_session *session, struct sk_buff *skb)
session           394 net/l2tp/l2tp_core.c 	struct l2tp_tunnel *tunnel = session->tunnel;
session           404 net/l2tp/l2tp_core.c 	atomic_long_inc(&session->stats.rx_packets);
session           405 net/l2tp/l2tp_core.c 	atomic_long_add(length, &session->stats.rx_bytes);
session           409 net/l2tp/l2tp_core.c 		session->nr++;
session           410 net/l2tp/l2tp_core.c 		session->nr &= session->nr_max;
session           412 net/l2tp/l2tp_core.c 		l2tp_dbg(session, L2TP_MSG_SEQ, "%s: updated nr to %hu\n",
session           413 net/l2tp/l2tp_core.c 			 session->name, session->nr);
session           417 net/l2tp/l2tp_core.c 	if (session->recv_skb != NULL)
session           418 net/l2tp/l2tp_core.c 		(*session->recv_skb)(session, skb, L2TP_SKB_CB(skb)->length);
session           426 net/l2tp/l2tp_core.c static void l2tp_recv_dequeue(struct l2tp_session *session)
session           436 net/l2tp/l2tp_core.c 	spin_lock_bh(&session->reorder_q.lock);
session           437 net/l2tp/l2tp_core.c 	skb_queue_walk_safe(&session->reorder_q, skb, tmp) {
session           439 net/l2tp/l2tp_core.c 			atomic_long_inc(&session->stats.rx_seq_discards);
session           440 net/l2tp/l2tp_core.c 			atomic_long_inc(&session->stats.rx_errors);
session           441 net/l2tp/l2tp_core.c 			l2tp_dbg(session, L2TP_MSG_SEQ,
session           443 net/l2tp/l2tp_core.c 				 session->name, L2TP_SKB_CB(skb)->ns,
session           444 net/l2tp/l2tp_core.c 				 L2TP_SKB_CB(skb)->length, session->nr,
session           445 net/l2tp/l2tp_core.c 				 skb_queue_len(&session->reorder_q));
session           446 net/l2tp/l2tp_core.c 			session->reorder_skip = 1;
session           447 net/l2tp/l2tp_core.c 			__skb_unlink(skb, &session->reorder_q);
session           453 net/l2tp/l2tp_core.c 			if (session->reorder_skip) {
session           454 net/l2tp/l2tp_core.c 				l2tp_dbg(session, L2TP_MSG_SEQ,
session           456 net/l2tp/l2tp_core.c 					 session->name, session->nr,
session           458 net/l2tp/l2tp_core.c 				session->reorder_skip = 0;
session           459 net/l2tp/l2tp_core.c 				session->nr = L2TP_SKB_CB(skb)->ns;
session           461 net/l2tp/l2tp_core.c 			if (L2TP_SKB_CB(skb)->ns != session->nr) {
session           462 net/l2tp/l2tp_core.c 				l2tp_dbg(session, L2TP_MSG_SEQ,
session           464 net/l2tp/l2tp_core.c 					 session->name, L2TP_SKB_CB(skb)->ns,
session           465 net/l2tp/l2tp_core.c 					 L2TP_SKB_CB(skb)->length, session->nr,
session           466 net/l2tp/l2tp_core.c 					 skb_queue_len(&session->reorder_q));
session           470 net/l2tp/l2tp_core.c 		__skb_unlink(skb, &session->reorder_q);
session           475 net/l2tp/l2tp_core.c 		spin_unlock_bh(&session->reorder_q.lock);
session           476 net/l2tp/l2tp_core.c 		l2tp_recv_dequeue_skb(session, skb);
session           481 net/l2tp/l2tp_core.c 	spin_unlock_bh(&session->reorder_q.lock);
session           484 net/l2tp/l2tp_core.c static int l2tp_seq_check_rx_window(struct l2tp_session *session, u32 nr)
session           488 net/l2tp/l2tp_core.c 	if (nr >= session->nr)
session           489 net/l2tp/l2tp_core.c 		nws = nr - session->nr;
session           491 net/l2tp/l2tp_core.c 		nws = (session->nr_max + 1) - (session->nr - nr);
session           493 net/l2tp/l2tp_core.c 	return nws < session->nr_window_size;
session           499 net/l2tp/l2tp_core.c static int l2tp_recv_data_seq(struct l2tp_session *session, struct sk_buff *skb)
session           501 net/l2tp/l2tp_core.c 	if (!l2tp_seq_check_rx_window(session, L2TP_SKB_CB(skb)->ns)) {
session           505 net/l2tp/l2tp_core.c 		l2tp_dbg(session, L2TP_MSG_SEQ,
session           507 net/l2tp/l2tp_core.c 			 session->name, L2TP_SKB_CB(skb)->ns,
session           508 net/l2tp/l2tp_core.c 			 L2TP_SKB_CB(skb)->length, session->nr);
session           512 net/l2tp/l2tp_core.c 	if (session->reorder_timeout != 0) {
session           516 net/l2tp/l2tp_core.c 		l2tp_recv_queue_skb(session, skb);
session           525 net/l2tp/l2tp_core.c 	if (L2TP_SKB_CB(skb)->ns == session->nr) {
session           526 net/l2tp/l2tp_core.c 		skb_queue_tail(&session->reorder_q, skb);
session           529 net/l2tp/l2tp_core.c 		u32 nr_next = (session->nr_oos + 1) & session->nr_max;
session           532 net/l2tp/l2tp_core.c 			session->nr_oos_count++;
session           534 net/l2tp/l2tp_core.c 			session->nr_oos_count = 0;
session           536 net/l2tp/l2tp_core.c 		session->nr_oos = nr_oos;
session           537 net/l2tp/l2tp_core.c 		if (session->nr_oos_count > session->nr_oos_count_max) {
session           538 net/l2tp/l2tp_core.c 			session->reorder_skip = 1;
session           539 net/l2tp/l2tp_core.c 			l2tp_dbg(session, L2TP_MSG_SEQ,
session           541 net/l2tp/l2tp_core.c 				 session->name, session->nr_oos_count);
session           543 net/l2tp/l2tp_core.c 		if (!session->reorder_skip) {
session           544 net/l2tp/l2tp_core.c 			atomic_long_inc(&session->stats.rx_seq_discards);
session           545 net/l2tp/l2tp_core.c 			l2tp_dbg(session, L2TP_MSG_SEQ,
session           547 net/l2tp/l2tp_core.c 				 session->name, L2TP_SKB_CB(skb)->ns,
session           548 net/l2tp/l2tp_core.c 				 L2TP_SKB_CB(skb)->length, session->nr,
session           549 net/l2tp/l2tp_core.c 				 skb_queue_len(&session->reorder_q));
session           552 net/l2tp/l2tp_core.c 		skb_queue_tail(&session->reorder_q, skb);
session           621 net/l2tp/l2tp_core.c void l2tp_recv_common(struct l2tp_session *session, struct sk_buff *skb,
session           625 net/l2tp/l2tp_core.c 	struct l2tp_tunnel *tunnel = session->tunnel;
session           630 net/l2tp/l2tp_core.c 	if (session->peer_cookie_len > 0) {
session           631 net/l2tp/l2tp_core.c 		if (memcmp(ptr, &session->peer_cookie[0], session->peer_cookie_len)) {
session           635 net/l2tp/l2tp_core.c 				  session->session_id);
session           636 net/l2tp/l2tp_core.c 			atomic_long_inc(&session->stats.rx_cookie_discards);
session           639 net/l2tp/l2tp_core.c 		ptr += session->peer_cookie_len;
session           662 net/l2tp/l2tp_core.c 			l2tp_dbg(session, L2TP_MSG_SEQ,
session           664 net/l2tp/l2tp_core.c 				 session->name, ns, nr, session->nr);
session           666 net/l2tp/l2tp_core.c 	} else if (session->l2specific_type == L2TP_L2SPECTYPE_DEFAULT) {
session           676 net/l2tp/l2tp_core.c 			l2tp_dbg(session, L2TP_MSG_SEQ,
session           678 net/l2tp/l2tp_core.c 				 session->name, ns, session->nr);
session           688 net/l2tp/l2tp_core.c 		if ((!session->lns_mode) && (!session->send_seq)) {
session           689 net/l2tp/l2tp_core.c 			l2tp_info(session, L2TP_MSG_SEQ,
session           691 net/l2tp/l2tp_core.c 				  session->name);
session           692 net/l2tp/l2tp_core.c 			session->send_seq = 1;
session           693 net/l2tp/l2tp_core.c 			l2tp_session_set_header_len(session, tunnel->version);
session           699 net/l2tp/l2tp_core.c 		if (session->recv_seq) {
session           700 net/l2tp/l2tp_core.c 			l2tp_warn(session, L2TP_MSG_SEQ,
session           702 net/l2tp/l2tp_core.c 				  session->name);
session           703 net/l2tp/l2tp_core.c 			atomic_long_inc(&session->stats.rx_seq_discards);
session           712 net/l2tp/l2tp_core.c 		if ((!session->lns_mode) && (session->send_seq)) {
session           713 net/l2tp/l2tp_core.c 			l2tp_info(session, L2TP_MSG_SEQ,
session           715 net/l2tp/l2tp_core.c 				  session->name);
session           716 net/l2tp/l2tp_core.c 			session->send_seq = 0;
session           717 net/l2tp/l2tp_core.c 			l2tp_session_set_header_len(session, tunnel->version);
session           718 net/l2tp/l2tp_core.c 		} else if (session->send_seq) {
session           719 net/l2tp/l2tp_core.c 			l2tp_warn(session, L2TP_MSG_SEQ,
session           721 net/l2tp/l2tp_core.c 				  session->name);
session           722 net/l2tp/l2tp_core.c 			atomic_long_inc(&session->stats.rx_seq_discards);
session           750 net/l2tp/l2tp_core.c 		(session->reorder_timeout ? session->reorder_timeout : HZ);
session           756 net/l2tp/l2tp_core.c 		if (l2tp_recv_data_seq(session, skb))
session           763 net/l2tp/l2tp_core.c 		skb_queue_tail(&session->reorder_q, skb);
session           767 net/l2tp/l2tp_core.c 	l2tp_recv_dequeue(session);
session           772 net/l2tp/l2tp_core.c 	atomic_long_inc(&session->stats.rx_errors);
session           779 net/l2tp/l2tp_core.c static int l2tp_session_queue_purge(struct l2tp_session *session)
session           782 net/l2tp/l2tp_core.c 	BUG_ON(!session);
session           783 net/l2tp/l2tp_core.c 	BUG_ON(session->magic != L2TP_SESSION_MAGIC);
session           784 net/l2tp/l2tp_core.c 	while ((skb = skb_dequeue(&session->reorder_q))) {
session           785 net/l2tp/l2tp_core.c 		atomic_long_inc(&session->stats.rx_errors);
session           799 net/l2tp/l2tp_core.c 	struct l2tp_session *session = NULL;
session           876 net/l2tp/l2tp_core.c 	session = l2tp_tunnel_get_session(tunnel, session_id);
session           877 net/l2tp/l2tp_core.c 	if (!session || !session->recv_skb) {
session           878 net/l2tp/l2tp_core.c 		if (session)
session           879 net/l2tp/l2tp_core.c 			l2tp_session_dec_refcount(session);
session           889 net/l2tp/l2tp_core.c 	    l2tp_v3_ensure_opt_in_linear(session, skb, &ptr, &optr))
session           892 net/l2tp/l2tp_core.c 	l2tp_recv_common(session, skb, ptr, optr, hdrflags, length);
session           893 net/l2tp/l2tp_core.c 	l2tp_session_dec_refcount(session);
session           937 net/l2tp/l2tp_core.c static int l2tp_build_l2tpv2_header(struct l2tp_session *session, void *buf)
session           939 net/l2tp/l2tp_core.c 	struct l2tp_tunnel *tunnel = session->tunnel;
session           944 net/l2tp/l2tp_core.c 	u32 session_id = session->peer_session_id;
session           946 net/l2tp/l2tp_core.c 	if (session->send_seq)
session           953 net/l2tp/l2tp_core.c 	if (session->send_seq) {
session           954 net/l2tp/l2tp_core.c 		*bufp++ = htons(session->ns);
session           956 net/l2tp/l2tp_core.c 		session->ns++;
session           957 net/l2tp/l2tp_core.c 		session->ns &= 0xffff;
session           958 net/l2tp/l2tp_core.c 		l2tp_dbg(session, L2TP_MSG_SEQ, "%s: updated ns to %u\n",
session           959 net/l2tp/l2tp_core.c 			 session->name, session->ns);
session           965 net/l2tp/l2tp_core.c static int l2tp_build_l2tpv3_header(struct l2tp_session *session, void *buf)
session           967 net/l2tp/l2tp_core.c 	struct l2tp_tunnel *tunnel = session->tunnel;
session           982 net/l2tp/l2tp_core.c 	*((__be32 *) bufp) = htonl(session->peer_session_id);
session           984 net/l2tp/l2tp_core.c 	if (session->cookie_len) {
session           985 net/l2tp/l2tp_core.c 		memcpy(bufp, &session->cookie[0], session->cookie_len);
session           986 net/l2tp/l2tp_core.c 		bufp += session->cookie_len;
session           988 net/l2tp/l2tp_core.c 	if (session->l2specific_type == L2TP_L2SPECTYPE_DEFAULT) {
session           991 net/l2tp/l2tp_core.c 		if (session->send_seq) {
session           992 net/l2tp/l2tp_core.c 			l2h = 0x40000000 | session->ns;
session           993 net/l2tp/l2tp_core.c 			session->ns++;
session           994 net/l2tp/l2tp_core.c 			session->ns &= 0xffffff;
session           995 net/l2tp/l2tp_core.c 			l2tp_dbg(session, L2TP_MSG_SEQ,
session           997 net/l2tp/l2tp_core.c 				 session->name, session->ns);
session          1007 net/l2tp/l2tp_core.c static void l2tp_xmit_core(struct l2tp_session *session, struct sk_buff *skb,
session          1010 net/l2tp/l2tp_core.c 	struct l2tp_tunnel *tunnel = session->tunnel;
session          1015 net/l2tp/l2tp_core.c 	if (session->send_seq)
session          1016 net/l2tp/l2tp_core.c 		l2tp_dbg(session, L2TP_MSG_DATA, "%s: send %zd bytes, ns=%u\n",
session          1017 net/l2tp/l2tp_core.c 			 session->name, data_len, session->ns - 1);
session          1019 net/l2tp/l2tp_core.c 		l2tp_dbg(session, L2TP_MSG_DATA, "%s: send %zd bytes\n",
session          1020 net/l2tp/l2tp_core.c 			 session->name, data_len);
session          1022 net/l2tp/l2tp_core.c 	if (session->debug & L2TP_MSG_DATA) {
session          1026 net/l2tp/l2tp_core.c 		pr_debug("%s: xmit\n", session->name);
session          1044 net/l2tp/l2tp_core.c 		atomic_long_inc(&session->stats.tx_packets);
session          1045 net/l2tp/l2tp_core.c 		atomic_long_add(len, &session->stats.tx_bytes);
session          1048 net/l2tp/l2tp_core.c 		atomic_long_inc(&session->stats.tx_errors);
session          1055 net/l2tp/l2tp_core.c int l2tp_xmit_skb(struct l2tp_session *session, struct sk_buff *skb, int hdr_len)
session          1058 net/l2tp/l2tp_core.c 	struct l2tp_tunnel *tunnel = session->tunnel;
session          1080 net/l2tp/l2tp_core.c 	session->build_header(session, __skb_push(skb, hdr_len));
session          1137 net/l2tp/l2tp_core.c 	l2tp_xmit_core(session, skb, fl, data_len);
session          1194 net/l2tp/l2tp_core.c 	struct l2tp_session *session;
session          1206 net/l2tp/l2tp_core.c 			session = hlist_entry(walk, struct l2tp_session, hlist);
session          1208 net/l2tp/l2tp_core.c 			l2tp_info(session, L2TP_MSG_CONTROL,
session          1209 net/l2tp/l2tp_core.c 				  "%s: closing session\n", session->name);
session          1211 net/l2tp/l2tp_core.c 			hlist_del_init(&session->hlist);
session          1213 net/l2tp/l2tp_core.c 			if (test_and_set_bit(0, &session->dead))
session          1218 net/l2tp/l2tp_core.c 			__l2tp_session_unhash(session);
session          1219 net/l2tp/l2tp_core.c 			l2tp_session_queue_purge(session);
session          1221 net/l2tp/l2tp_core.c 			if (session->session_close != NULL)
session          1222 net/l2tp/l2tp_core.c 				(*session->session_close)(session);
session          1224 net/l2tp/l2tp_core.c 			l2tp_session_dec_refcount(session);
session          1567 net/l2tp/l2tp_core.c void l2tp_session_free(struct l2tp_session *session)
session          1569 net/l2tp/l2tp_core.c 	struct l2tp_tunnel *tunnel = session->tunnel;
session          1571 net/l2tp/l2tp_core.c 	BUG_ON(refcount_read(&session->ref_count) != 0);
session          1578 net/l2tp/l2tp_core.c 	kfree(session);
session          1587 net/l2tp/l2tp_core.c void __l2tp_session_unhash(struct l2tp_session *session)
session          1589 net/l2tp/l2tp_core.c 	struct l2tp_tunnel *tunnel = session->tunnel;
session          1595 net/l2tp/l2tp_core.c 		hlist_del_init(&session->hlist);
session          1602 net/l2tp/l2tp_core.c 			hlist_del_init_rcu(&session->global_hlist);
session          1613 net/l2tp/l2tp_core.c int l2tp_session_delete(struct l2tp_session *session)
session          1615 net/l2tp/l2tp_core.c 	if (test_and_set_bit(0, &session->dead))
session          1618 net/l2tp/l2tp_core.c 	__l2tp_session_unhash(session);
session          1619 net/l2tp/l2tp_core.c 	l2tp_session_queue_purge(session);
session          1620 net/l2tp/l2tp_core.c 	if (session->session_close != NULL)
session          1621 net/l2tp/l2tp_core.c 		(*session->session_close)(session);
session          1623 net/l2tp/l2tp_core.c 	l2tp_session_dec_refcount(session);
session          1632 net/l2tp/l2tp_core.c void l2tp_session_set_header_len(struct l2tp_session *session, int version)
session          1635 net/l2tp/l2tp_core.c 		session->hdr_len = 6;
session          1636 net/l2tp/l2tp_core.c 		if (session->send_seq)
session          1637 net/l2tp/l2tp_core.c 			session->hdr_len += 4;
session          1639 net/l2tp/l2tp_core.c 		session->hdr_len = 4 + session->cookie_len;
session          1640 net/l2tp/l2tp_core.c 		session->hdr_len += l2tp_get_l2specific_len(session);
session          1641 net/l2tp/l2tp_core.c 		if (session->tunnel->encap == L2TP_ENCAPTYPE_UDP)
session          1642 net/l2tp/l2tp_core.c 			session->hdr_len += 4;
session          1650 net/l2tp/l2tp_core.c 	struct l2tp_session *session;
session          1652 net/l2tp/l2tp_core.c 	session = kzalloc(sizeof(struct l2tp_session) + priv_size, GFP_KERNEL);
session          1653 net/l2tp/l2tp_core.c 	if (session != NULL) {
session          1654 net/l2tp/l2tp_core.c 		session->magic = L2TP_SESSION_MAGIC;
session          1655 net/l2tp/l2tp_core.c 		session->tunnel = tunnel;
session          1657 net/l2tp/l2tp_core.c 		session->session_id = session_id;
session          1658 net/l2tp/l2tp_core.c 		session->peer_session_id = peer_session_id;
session          1659 net/l2tp/l2tp_core.c 		session->nr = 0;
session          1661 net/l2tp/l2tp_core.c 			session->nr_max = 0xffff;
session          1663 net/l2tp/l2tp_core.c 			session->nr_max = 0xffffff;
session          1664 net/l2tp/l2tp_core.c 		session->nr_window_size = session->nr_max / 2;
session          1665 net/l2tp/l2tp_core.c 		session->nr_oos_count_max = 4;
session          1668 net/l2tp/l2tp_core.c 		session->reorder_skip = 1;
session          1670 net/l2tp/l2tp_core.c 		sprintf(&session->name[0], "sess %u/%u",
session          1671 net/l2tp/l2tp_core.c 			tunnel->tunnel_id, session->session_id);
session          1673 net/l2tp/l2tp_core.c 		skb_queue_head_init(&session->reorder_q);
session          1675 net/l2tp/l2tp_core.c 		INIT_HLIST_NODE(&session->hlist);
session          1676 net/l2tp/l2tp_core.c 		INIT_HLIST_NODE(&session->global_hlist);
session          1679 net/l2tp/l2tp_core.c 		session->debug = tunnel->debug;
session          1682 net/l2tp/l2tp_core.c 			session->pwtype = cfg->pw_type;
session          1683 net/l2tp/l2tp_core.c 			session->debug = cfg->debug;
session          1684 net/l2tp/l2tp_core.c 			session->send_seq = cfg->send_seq;
session          1685 net/l2tp/l2tp_core.c 			session->recv_seq = cfg->recv_seq;
session          1686 net/l2tp/l2tp_core.c 			session->lns_mode = cfg->lns_mode;
session          1687 net/l2tp/l2tp_core.c 			session->reorder_timeout = cfg->reorder_timeout;
session          1688 net/l2tp/l2tp_core.c 			session->l2specific_type = cfg->l2specific_type;
session          1689 net/l2tp/l2tp_core.c 			session->cookie_len = cfg->cookie_len;
session          1690 net/l2tp/l2tp_core.c 			memcpy(&session->cookie[0], &cfg->cookie[0], cfg->cookie_len);
session          1691 net/l2tp/l2tp_core.c 			session->peer_cookie_len = cfg->peer_cookie_len;
session          1692 net/l2tp/l2tp_core.c 			memcpy(&session->peer_cookie[0], &cfg->peer_cookie[0], cfg->peer_cookie_len);
session          1696 net/l2tp/l2tp_core.c 			session->build_header = l2tp_build_l2tpv2_header;
session          1698 net/l2tp/l2tp_core.c 			session->build_header = l2tp_build_l2tpv3_header;
session          1700 net/l2tp/l2tp_core.c 		l2tp_session_set_header_len(session, tunnel->version);
session          1702 net/l2tp/l2tp_core.c 		refcount_set(&session->ref_count, 1);
session          1704 net/l2tp/l2tp_core.c 		return session;
session           115 net/l2tp/l2tp_core.h 	int (*build_header)(struct l2tp_session *session, void *buf);
session           116 net/l2tp/l2tp_core.h 	void (*recv_skb)(struct l2tp_session *session, struct sk_buff *skb, int data_len);
session           117 net/l2tp/l2tp_core.h 	void (*session_close)(struct l2tp_session *session);
session           184 net/l2tp/l2tp_core.h 	int (*session_delete)(struct l2tp_session *session);
session           187 net/l2tp/l2tp_core.h static inline void *l2tp_session_priv(struct l2tp_session *session)
session           189 net/l2tp/l2tp_core.h 	return &session->priv[0];
session           215 net/l2tp/l2tp_core.h int l2tp_session_register(struct l2tp_session *session,
session           218 net/l2tp/l2tp_core.h void __l2tp_session_unhash(struct l2tp_session *session);
session           219 net/l2tp/l2tp_core.h int l2tp_session_delete(struct l2tp_session *session);
session           220 net/l2tp/l2tp_core.h void l2tp_session_free(struct l2tp_session *session);
session           221 net/l2tp/l2tp_core.h void l2tp_recv_common(struct l2tp_session *session, struct sk_buff *skb,
session           225 net/l2tp/l2tp_core.h void l2tp_session_set_header_len(struct l2tp_session *session, int version);
session           227 net/l2tp/l2tp_core.h int l2tp_xmit_skb(struct l2tp_session *session, struct sk_buff *skb,
session           249 net/l2tp/l2tp_core.h static inline void l2tp_session_inc_refcount(struct l2tp_session *session)
session           251 net/l2tp/l2tp_core.h 	refcount_inc(&session->ref_count);
session           254 net/l2tp/l2tp_core.h static inline void l2tp_session_dec_refcount(struct l2tp_session *session)
session           256 net/l2tp/l2tp_core.h 	if (refcount_dec_and_test(&session->ref_count))
session           257 net/l2tp/l2tp_core.h 		l2tp_session_free(session);
session           260 net/l2tp/l2tp_core.h static inline int l2tp_get_l2specific_len(struct l2tp_session *session)
session           262 net/l2tp/l2tp_core.h 	switch (session->l2specific_type) {
session           301 net/l2tp/l2tp_core.h static inline int l2tp_v3_ensure_opt_in_linear(struct l2tp_session *session, struct sk_buff *skb,
session           304 net/l2tp/l2tp_core.h 	int opt_len = session->peer_cookie_len + l2tp_get_l2specific_len(session);
session            40 net/l2tp/l2tp_debugfs.c 	struct l2tp_session *session;	/* NULL means get next tunnel */
session            56 net/l2tp/l2tp_debugfs.c 	if (pd->session)
session            57 net/l2tp/l2tp_debugfs.c 		l2tp_session_dec_refcount(pd->session);
session            59 net/l2tp/l2tp_debugfs.c 	pd->session = l2tp_session_get_nth(pd->tunnel, pd->session_idx);
session            62 net/l2tp/l2tp_debugfs.c 	if (pd->session == NULL) {
session            86 net/l2tp/l2tp_debugfs.c 	if ((pd->tunnel == NULL) && (pd->session == NULL))
session           110 net/l2tp/l2tp_debugfs.c 	if (pd->session) {
session           111 net/l2tp/l2tp_debugfs.c 		l2tp_session_dec_refcount(pd->session);
session           112 net/l2tp/l2tp_debugfs.c 		pd->session = NULL;
session           131 net/l2tp/l2tp_debugfs.c 			struct l2tp_session *session;
session           133 net/l2tp/l2tp_debugfs.c 			session = hlist_entry(walk, struct l2tp_session, hlist);
session           134 net/l2tp/l2tp_debugfs.c 			if (session->session_id == 0)
session           179 net/l2tp/l2tp_debugfs.c 	struct l2tp_session *session = v;
session           181 net/l2tp/l2tp_debugfs.c 	seq_printf(m, "  SESSION %u, peer %u, %s\n", session->session_id,
session           182 net/l2tp/l2tp_debugfs.c 		   session->peer_session_id,
session           183 net/l2tp/l2tp_debugfs.c 		   session->pwtype == L2TP_PWTYPE_ETH ? "ETH" :
session           184 net/l2tp/l2tp_debugfs.c 		   session->pwtype == L2TP_PWTYPE_PPP ? "PPP" :
session           186 net/l2tp/l2tp_debugfs.c 	if (session->send_seq || session->recv_seq)
session           187 net/l2tp/l2tp_debugfs.c 		seq_printf(m, "   nr %hu, ns %hu\n", session->nr, session->ns);
session           188 net/l2tp/l2tp_debugfs.c 	seq_printf(m, "   refcnt %d\n", refcount_read(&session->ref_count));
session           190 net/l2tp/l2tp_debugfs.c 		   session->recv_seq ? 'R' : '-',
session           191 net/l2tp/l2tp_debugfs.c 		   session->send_seq ? 'S' : '-',
session           192 net/l2tp/l2tp_debugfs.c 		   session->lns_mode ? "LNS" : "LAC",
session           193 net/l2tp/l2tp_debugfs.c 		   session->debug,
session           194 net/l2tp/l2tp_debugfs.c 		   jiffies_to_msecs(session->reorder_timeout));
session           196 net/l2tp/l2tp_debugfs.c 		   session->l2specific_type, l2tp_get_l2specific_len(session));
session           197 net/l2tp/l2tp_debugfs.c 	if (session->cookie_len) {
session           199 net/l2tp/l2tp_debugfs.c 			   session->cookie[0], session->cookie[1],
session           200 net/l2tp/l2tp_debugfs.c 			   session->cookie[2], session->cookie[3]);
session           201 net/l2tp/l2tp_debugfs.c 		if (session->cookie_len == 8)
session           203 net/l2tp/l2tp_debugfs.c 				   session->cookie[4], session->cookie[5],
session           204 net/l2tp/l2tp_debugfs.c 				   session->cookie[6], session->cookie[7]);
session           207 net/l2tp/l2tp_debugfs.c 	if (session->peer_cookie_len) {
session           209 net/l2tp/l2tp_debugfs.c 			   session->peer_cookie[0], session->peer_cookie[1],
session           210 net/l2tp/l2tp_debugfs.c 			   session->peer_cookie[2], session->peer_cookie[3]);
session           211 net/l2tp/l2tp_debugfs.c 		if (session->peer_cookie_len == 8)
session           213 net/l2tp/l2tp_debugfs.c 				   session->peer_cookie[4], session->peer_cookie[5],
session           214 net/l2tp/l2tp_debugfs.c 				   session->peer_cookie[6], session->peer_cookie[7]);
session           219 net/l2tp/l2tp_debugfs.c 		   session->nr, session->ns,
session           220 net/l2tp/l2tp_debugfs.c 		   atomic_long_read(&session->stats.tx_packets),
session           221 net/l2tp/l2tp_debugfs.c 		   atomic_long_read(&session->stats.tx_bytes),
session           222 net/l2tp/l2tp_debugfs.c 		   atomic_long_read(&session->stats.tx_errors),
session           223 net/l2tp/l2tp_debugfs.c 		   atomic_long_read(&session->stats.rx_packets),
session           224 net/l2tp/l2tp_debugfs.c 		   atomic_long_read(&session->stats.rx_bytes),
session           225 net/l2tp/l2tp_debugfs.c 		   atomic_long_read(&session->stats.rx_errors));
session           227 net/l2tp/l2tp_debugfs.c 	if (session->show != NULL)
session           228 net/l2tp/l2tp_debugfs.c 		session->show(m, session);
session           251 net/l2tp/l2tp_debugfs.c 	if (!pd->session)
session           254 net/l2tp/l2tp_debugfs.c 		l2tp_dfs_seq_session_show(m, pd->session);
session            40 net/l2tp/l2tp_eth.c 	struct l2tp_session	*session;
session            68 net/l2tp/l2tp_eth.c 	spriv = l2tp_session_priv(priv->session);
session            78 net/l2tp/l2tp_eth.c 	struct l2tp_session *session = priv->session;
session            80 net/l2tp/l2tp_eth.c 	int ret = l2tp_xmit_skb(session, skb, session->hdr_len);
session           127 net/l2tp/l2tp_eth.c static void l2tp_eth_dev_recv(struct l2tp_session *session, struct sk_buff *skb, int data_len)
session           129 net/l2tp/l2tp_eth.c 	struct l2tp_eth_sess *spriv = l2tp_session_priv(session);
session           133 net/l2tp/l2tp_eth.c 	if (session->debug & L2TP_MSG_DATA) {
session           140 net/l2tp/l2tp_eth.c 		pr_debug("%s: eth recv\n", session->name);
session           177 net/l2tp/l2tp_eth.c static void l2tp_eth_delete(struct l2tp_session *session)
session           182 net/l2tp/l2tp_eth.c 	if (session) {
session           183 net/l2tp/l2tp_eth.c 		spriv = l2tp_session_priv(session);
session           199 net/l2tp/l2tp_eth.c 	struct l2tp_session *session = arg;
session           200 net/l2tp/l2tp_eth.c 	struct l2tp_eth_sess *spriv = l2tp_session_priv(session);
session           218 net/l2tp/l2tp_eth.c 				struct l2tp_session *session,
session           246 net/l2tp/l2tp_eth.c 	overhead += session->hdr_len + ETH_HLEN + l3_overhead;
session           254 net/l2tp/l2tp_eth.c 	dev->needed_headroom += session->hdr_len;
session           264 net/l2tp/l2tp_eth.c 	struct l2tp_session *session;
session           277 net/l2tp/l2tp_eth.c 	session = l2tp_session_create(sizeof(*spriv), tunnel, session_id,
session           279 net/l2tp/l2tp_eth.c 	if (IS_ERR(session)) {
session           280 net/l2tp/l2tp_eth.c 		rc = PTR_ERR(session);
session           294 net/l2tp/l2tp_eth.c 	l2tp_eth_adjust_mtu(tunnel, session, dev);
session           297 net/l2tp/l2tp_eth.c 	priv->session = session;
session           299 net/l2tp/l2tp_eth.c 	session->recv_skb = l2tp_eth_dev_recv;
session           300 net/l2tp/l2tp_eth.c 	session->session_close = l2tp_eth_delete;
session           302 net/l2tp/l2tp_eth.c 		session->show = l2tp_eth_show;
session           304 net/l2tp/l2tp_eth.c 	spriv = l2tp_session_priv(session);
session           306 net/l2tp/l2tp_eth.c 	l2tp_session_inc_refcount(session);
session           314 net/l2tp/l2tp_eth.c 	rc = l2tp_session_register(session, tunnel);
session           323 net/l2tp/l2tp_eth.c 		l2tp_session_delete(session);
session           324 net/l2tp/l2tp_eth.c 		l2tp_session_dec_refcount(session);
session           330 net/l2tp/l2tp_eth.c 	strlcpy(session->ifname, dev->name, IFNAMSIZ);
session           335 net/l2tp/l2tp_eth.c 	l2tp_session_dec_refcount(session);
session           342 net/l2tp/l2tp_eth.c 	l2tp_session_dec_refcount(session);
session           345 net/l2tp/l2tp_eth.c 	kfree(session);
session           119 net/l2tp/l2tp_ip.c 	struct l2tp_session *session;
session           142 net/l2tp/l2tp_ip.c 	session = l2tp_session_get(net, session_id);
session           143 net/l2tp/l2tp_ip.c 	if (!session)
session           146 net/l2tp/l2tp_ip.c 	tunnel = session->tunnel;
session           163 net/l2tp/l2tp_ip.c 	if (l2tp_v3_ensure_opt_in_linear(session, skb, &ptr, &optr))
session           166 net/l2tp/l2tp_ip.c 	l2tp_recv_common(session, skb, ptr, optr, 0, skb->len);
session           167 net/l2tp/l2tp_ip.c 	l2tp_session_dec_refcount(session);
session           200 net/l2tp/l2tp_ip.c 	l2tp_session_dec_refcount(session);
session           131 net/l2tp/l2tp_ip6.c 	struct l2tp_session *session;
session           154 net/l2tp/l2tp_ip6.c 	session = l2tp_session_get(net, session_id);
session           155 net/l2tp/l2tp_ip6.c 	if (!session)
session           158 net/l2tp/l2tp_ip6.c 	tunnel = session->tunnel;
session           175 net/l2tp/l2tp_ip6.c 	if (l2tp_v3_ensure_opt_in_linear(session, skb, &ptr, &optr))
session           178 net/l2tp/l2tp_ip6.c 	l2tp_recv_common(session, skb, ptr, optr, 0, skb->len);
session           179 net/l2tp/l2tp_ip6.c 	l2tp_session_dec_refcount(session);
session           212 net/l2tp/l2tp_ip6.c 	l2tp_session_dec_refcount(session);
session            42 net/l2tp/l2tp_netlink.c 				int flags, struct l2tp_session *session,
session            54 net/l2tp/l2tp_netlink.c 	struct l2tp_session *session = NULL;
session            59 net/l2tp/l2tp_netlink.c 		session = l2tp_session_get_by_ifname(net, ifname);
session            66 net/l2tp/l2tp_netlink.c 			session = l2tp_tunnel_get_session(tunnel, session_id);
session            71 net/l2tp/l2tp_netlink.c 	return session;
session           134 net/l2tp/l2tp_netlink.c 			       struct l2tp_session *session,
session           145 net/l2tp/l2tp_netlink.c 				   NLM_F_ACK, session, cmd);
session           515 net/l2tp/l2tp_netlink.c 	struct l2tp_session *session;
session           627 net/l2tp/l2tp_netlink.c 		session = l2tp_tunnel_get_session(tunnel, session_id);
session           628 net/l2tp/l2tp_netlink.c 		if (session) {
session           629 net/l2tp/l2tp_netlink.c 			ret = l2tp_session_notify(&l2tp_nl_family, info, session,
session           631 net/l2tp/l2tp_netlink.c 			l2tp_session_dec_refcount(session);
session           644 net/l2tp/l2tp_netlink.c 	struct l2tp_session *session;
session           647 net/l2tp/l2tp_netlink.c 	session = l2tp_nl_session_get(info);
session           648 net/l2tp/l2tp_netlink.c 	if (session == NULL) {
session           654 net/l2tp/l2tp_netlink.c 			    session, L2TP_CMD_SESSION_DELETE);
session           656 net/l2tp/l2tp_netlink.c 	pw_type = session->pwtype;
session           659 net/l2tp/l2tp_netlink.c 			ret = (*l2tp_nl_cmd_ops[pw_type]->session_delete)(session);
session           661 net/l2tp/l2tp_netlink.c 	l2tp_session_dec_refcount(session);
session           670 net/l2tp/l2tp_netlink.c 	struct l2tp_session *session;
session           672 net/l2tp/l2tp_netlink.c 	session = l2tp_nl_session_get(info);
session           673 net/l2tp/l2tp_netlink.c 	if (session == NULL) {
session           679 net/l2tp/l2tp_netlink.c 		session->debug = nla_get_u32(info->attrs[L2TP_ATTR_DEBUG]);
session           682 net/l2tp/l2tp_netlink.c 		session->recv_seq = nla_get_u8(info->attrs[L2TP_ATTR_RECV_SEQ]);
session           685 net/l2tp/l2tp_netlink.c 		session->send_seq = nla_get_u8(info->attrs[L2TP_ATTR_SEND_SEQ]);
session           686 net/l2tp/l2tp_netlink.c 		l2tp_session_set_header_len(session, session->tunnel->version);
session           690 net/l2tp/l2tp_netlink.c 		session->lns_mode = nla_get_u8(info->attrs[L2TP_ATTR_LNS_MODE]);
session           693 net/l2tp/l2tp_netlink.c 		session->reorder_timeout = nla_get_msecs(info->attrs[L2TP_ATTR_RECV_TIMEOUT]);
session           696 net/l2tp/l2tp_netlink.c 				  session, L2TP_CMD_SESSION_MODIFY);
session           698 net/l2tp/l2tp_netlink.c 	l2tp_session_dec_refcount(session);
session           705 net/l2tp/l2tp_netlink.c 				struct l2tp_session *session, u8 cmd)
session           709 net/l2tp/l2tp_netlink.c 	struct l2tp_tunnel *tunnel = session->tunnel;
session           716 net/l2tp/l2tp_netlink.c 	    nla_put_u32(skb, L2TP_ATTR_SESSION_ID, session->session_id) ||
session           719 net/l2tp/l2tp_netlink.c 			session->peer_session_id) ||
session           720 net/l2tp/l2tp_netlink.c 	    nla_put_u32(skb, L2TP_ATTR_DEBUG, session->debug) ||
session           721 net/l2tp/l2tp_netlink.c 	    nla_put_u16(skb, L2TP_ATTR_PW_TYPE, session->pwtype))
session           724 net/l2tp/l2tp_netlink.c 	if ((session->ifname[0] &&
session           725 net/l2tp/l2tp_netlink.c 	     nla_put_string(skb, L2TP_ATTR_IFNAME, session->ifname)) ||
session           726 net/l2tp/l2tp_netlink.c 	    (session->cookie_len &&
session           727 net/l2tp/l2tp_netlink.c 	     nla_put(skb, L2TP_ATTR_COOKIE, session->cookie_len,
session           728 net/l2tp/l2tp_netlink.c 		     &session->cookie[0])) ||
session           729 net/l2tp/l2tp_netlink.c 	    (session->peer_cookie_len &&
session           730 net/l2tp/l2tp_netlink.c 	     nla_put(skb, L2TP_ATTR_PEER_COOKIE, session->peer_cookie_len,
session           731 net/l2tp/l2tp_netlink.c 		     &session->peer_cookie[0])) ||
session           732 net/l2tp/l2tp_netlink.c 	    nla_put_u8(skb, L2TP_ATTR_RECV_SEQ, session->recv_seq) ||
session           733 net/l2tp/l2tp_netlink.c 	    nla_put_u8(skb, L2TP_ATTR_SEND_SEQ, session->send_seq) ||
session           734 net/l2tp/l2tp_netlink.c 	    nla_put_u8(skb, L2TP_ATTR_LNS_MODE, session->lns_mode) ||
session           737 net/l2tp/l2tp_netlink.c 	    (session->reorder_timeout &&
session           739 net/l2tp/l2tp_netlink.c 			   session->reorder_timeout, L2TP_ATTR_PAD)))
session           747 net/l2tp/l2tp_netlink.c 			      atomic_long_read(&session->stats.tx_packets),
session           750 net/l2tp/l2tp_netlink.c 			      atomic_long_read(&session->stats.tx_bytes),
session           753 net/l2tp/l2tp_netlink.c 			      atomic_long_read(&session->stats.tx_errors),
session           756 net/l2tp/l2tp_netlink.c 			      atomic_long_read(&session->stats.rx_packets),
session           759 net/l2tp/l2tp_netlink.c 			      atomic_long_read(&session->stats.rx_bytes),
session           762 net/l2tp/l2tp_netlink.c 			      atomic_long_read(&session->stats.rx_seq_discards),
session           765 net/l2tp/l2tp_netlink.c 			      atomic_long_read(&session->stats.rx_oos_packets),
session           768 net/l2tp/l2tp_netlink.c 			      atomic_long_read(&session->stats.rx_errors),
session           783 net/l2tp/l2tp_netlink.c 	struct l2tp_session *session;
session           787 net/l2tp/l2tp_netlink.c 	session = l2tp_nl_session_get(info);
session           788 net/l2tp/l2tp_netlink.c 	if (session == NULL) {
session           800 net/l2tp/l2tp_netlink.c 				   0, session, L2TP_CMD_SESSION_GET);
session           806 net/l2tp/l2tp_netlink.c 	l2tp_session_dec_refcount(session);
session           813 net/l2tp/l2tp_netlink.c 	l2tp_session_dec_refcount(session);
session           821 net/l2tp/l2tp_netlink.c 	struct l2tp_session *session;
session           833 net/l2tp/l2tp_netlink.c 		session = l2tp_session_get_nth(tunnel, si);
session           834 net/l2tp/l2tp_netlink.c 		if (session == NULL) {
session           844 net/l2tp/l2tp_netlink.c 					 session, L2TP_CMD_SESSION_GET) < 0) {
session           845 net/l2tp/l2tp_netlink.c 			l2tp_session_dec_refcount(session);
session           849 net/l2tp/l2tp_netlink.c 		l2tp_session_dec_refcount(session);
session           138 net/l2tp/l2tp_ppp.c static struct sock *pppol2tp_session_get_sock(struct l2tp_session *session)
session           140 net/l2tp/l2tp_ppp.c 	struct pppol2tp_session *ps = l2tp_session_priv(session);
session           156 net/l2tp/l2tp_ppp.c 	struct l2tp_session *session;
session           162 net/l2tp/l2tp_ppp.c 	session = (struct l2tp_session *)(sk->sk_user_data);
session           163 net/l2tp/l2tp_ppp.c 	if (session == NULL) {
session           168 net/l2tp/l2tp_ppp.c 	BUG_ON(session->magic != L2TP_SESSION_MAGIC);
session           171 net/l2tp/l2tp_ppp.c 	return session;
session           211 net/l2tp/l2tp_ppp.c static void pppol2tp_recv(struct l2tp_session *session, struct sk_buff *skb, int data_len)
session           213 net/l2tp/l2tp_ppp.c 	struct pppol2tp_session *ps = l2tp_session_priv(session);
session           238 net/l2tp/l2tp_ppp.c 		l2tp_dbg(session, L2TP_MSG_DATA,
session           240 net/l2tp/l2tp_ppp.c 			 session->name, data_len);
session           245 net/l2tp/l2tp_ppp.c 		l2tp_dbg(session, L2TP_MSG_DATA,
session           247 net/l2tp/l2tp_ppp.c 			 session->name, data_len);
session           250 net/l2tp/l2tp_ppp.c 			atomic_long_inc(&session->stats.rx_errors);
session           260 net/l2tp/l2tp_ppp.c 	l2tp_info(session, L2TP_MSG_DATA, "%s: no socket\n", session->name);
session           278 net/l2tp/l2tp_ppp.c 	struct l2tp_session *session;
session           288 net/l2tp/l2tp_ppp.c 	session = pppol2tp_sock_to_session(sk);
session           289 net/l2tp/l2tp_ppp.c 	if (session == NULL)
session           292 net/l2tp/l2tp_ppp.c 	tunnel = session->tunnel;
session           299 net/l2tp/l2tp_ppp.c 			   uhlen + session->hdr_len +
session           325 net/l2tp/l2tp_ppp.c 	l2tp_xmit_skb(session, skb, session->hdr_len);
session           355 net/l2tp/l2tp_ppp.c 	struct l2tp_session *session;
session           363 net/l2tp/l2tp_ppp.c 	session = pppol2tp_sock_to_session(sk);
session           364 net/l2tp/l2tp_ppp.c 	if (session == NULL)
session           367 net/l2tp/l2tp_ppp.c 	tunnel = session->tunnel;
session           373 net/l2tp/l2tp_ppp.c 		   session->hdr_len +	/* L2TP header */
session           384 net/l2tp/l2tp_ppp.c 	l2tp_xmit_skb(session, skb, session->hdr_len);
session           416 net/l2tp/l2tp_ppp.c 	struct l2tp_session *session = sk->sk_user_data;
session           421 net/l2tp/l2tp_ppp.c 	if (session) {
session           423 net/l2tp/l2tp_ppp.c 		BUG_ON(session->magic != L2TP_SESSION_MAGIC);
session           424 net/l2tp/l2tp_ppp.c 		l2tp_session_dec_refcount(session);
session           433 net/l2tp/l2tp_ppp.c 	struct l2tp_session *session;
session           451 net/l2tp/l2tp_ppp.c 	session = pppol2tp_sock_to_session(sk);
session           452 net/l2tp/l2tp_ppp.c 	if (session) {
session           455 net/l2tp/l2tp_ppp.c 		l2tp_session_delete(session);
session           457 net/l2tp/l2tp_ppp.c 		ps = l2tp_session_priv(session);
session           534 net/l2tp/l2tp_ppp.c 	struct l2tp_session *session = arg;
session           537 net/l2tp/l2tp_ppp.c 	sk = pppol2tp_session_get_sock(session);
session           546 net/l2tp/l2tp_ppp.c static void pppol2tp_session_init(struct l2tp_session *session)
session           550 net/l2tp/l2tp_ppp.c 	session->recv_skb = pppol2tp_recv;
session           552 net/l2tp/l2tp_ppp.c 		session->show = pppol2tp_show;
session           554 net/l2tp/l2tp_ppp.c 	ps = l2tp_session_priv(session);
session           666 net/l2tp/l2tp_ppp.c 	struct l2tp_session *session = NULL;
session           753 net/l2tp/l2tp_ppp.c 	session = l2tp_tunnel_get_session(tunnel, info.session_id);
session           754 net/l2tp/l2tp_ppp.c 	if (session) {
session           757 net/l2tp/l2tp_ppp.c 		if (session->pwtype != L2TP_PWTYPE_PPP) {
session           762 net/l2tp/l2tp_ppp.c 		ps = l2tp_session_priv(session);
session           778 net/l2tp/l2tp_ppp.c 		session = l2tp_session_create(sizeof(struct pppol2tp_session),
session           781 net/l2tp/l2tp_ppp.c 		if (IS_ERR(session)) {
session           782 net/l2tp/l2tp_ppp.c 			error = PTR_ERR(session);
session           786 net/l2tp/l2tp_ppp.c 		pppol2tp_session_init(session);
session           787 net/l2tp/l2tp_ppp.c 		ps = l2tp_session_priv(session);
session           788 net/l2tp/l2tp_ppp.c 		l2tp_session_inc_refcount(session);
session           791 net/l2tp/l2tp_ppp.c 		error = l2tp_session_register(session, tunnel);
session           794 net/l2tp/l2tp_ppp.c 			kfree(session);
session           806 net/l2tp/l2tp_ppp.c 	if ((session->session_id == 0) &&
session           807 net/l2tp/l2tp_ppp.c 	    (session->peer_session_id == 0)) {
session           830 net/l2tp/l2tp_ppp.c 	sk->sk_user_data = session;
session           841 net/l2tp/l2tp_ppp.c 	l2tp_info(session, L2TP_MSG_CONTROL, "%s: created\n",
session           842 net/l2tp/l2tp_ppp.c 		  session->name);
session           847 net/l2tp/l2tp_ppp.c 			l2tp_session_delete(session);
session           852 net/l2tp/l2tp_ppp.c 		l2tp_session_dec_refcount(session);
session           868 net/l2tp/l2tp_ppp.c 	struct l2tp_session *session;
session           877 net/l2tp/l2tp_ppp.c 	session = l2tp_session_create(sizeof(struct pppol2tp_session),
session           880 net/l2tp/l2tp_ppp.c 	if (IS_ERR(session)) {
session           881 net/l2tp/l2tp_ppp.c 		error = PTR_ERR(session);
session           885 net/l2tp/l2tp_ppp.c 	pppol2tp_session_init(session);
session           887 net/l2tp/l2tp_ppp.c 	error = l2tp_session_register(session, tunnel);
session           894 net/l2tp/l2tp_ppp.c 	kfree(session);
session           908 net/l2tp/l2tp_ppp.c 	struct l2tp_session *session;
session           921 net/l2tp/l2tp_ppp.c 	session = pppol2tp_sock_to_session(sk);
session           922 net/l2tp/l2tp_ppp.c 	if (session == NULL)
session           925 net/l2tp/l2tp_ppp.c 	pls = l2tp_session_priv(session);
session           926 net/l2tp/l2tp_ppp.c 	tunnel = session->tunnel;
session           939 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.s_session = session->session_id;
session           940 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.d_session = session->peer_session_id;
session           958 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.s_session = session->session_id;
session           959 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.d_session = session->peer_session_id;
session           977 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.s_session = session->session_id;
session           978 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.d_session = session->peer_session_id;
session           995 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.s_session = session->session_id;
session           996 net/l2tp/l2tp_ppp.c 		sp.pppol2tp.d_session = session->peer_session_id;
session          1039 net/l2tp/l2tp_ppp.c 	struct l2tp_session *session;
session          1049 net/l2tp/l2tp_ppp.c 	session = l2tp_tunnel_get_session(tunnel, stats->session_id);
session          1050 net/l2tp/l2tp_ppp.c 	if (!session)
session          1053 net/l2tp/l2tp_ppp.c 	if (session->pwtype != L2TP_PWTYPE_PPP) {
session          1054 net/l2tp/l2tp_ppp.c 		l2tp_session_dec_refcount(session);
session          1058 net/l2tp/l2tp_ppp.c 	pppol2tp_copy_stats(stats, &session->stats);
session          1059 net/l2tp/l2tp_ppp.c 	l2tp_session_dec_refcount(session);
session          1068 net/l2tp/l2tp_ppp.c 	struct l2tp_session *session;
session          1073 net/l2tp/l2tp_ppp.c 		session = sock->sk->sk_user_data;
session          1074 net/l2tp/l2tp_ppp.c 		if (!session)
session          1078 net/l2tp/l2tp_ppp.c 		if (!session->session_id && !session->peer_session_id)
session          1087 net/l2tp/l2tp_ppp.c 		session = sock->sk->sk_user_data;
session          1088 net/l2tp/l2tp_ppp.c 		if (!session)
session          1092 net/l2tp/l2tp_ppp.c 		if (!session->session_id && !session->peer_session_id)
session          1100 net/l2tp/l2tp_ppp.c 		session = sock->sk->sk_user_data;
session          1101 net/l2tp/l2tp_ppp.c 		if (!session)
session          1105 net/l2tp/l2tp_ppp.c 		if (!session->session_id && !session->peer_session_id) {
session          1115 net/l2tp/l2tp_ppp.c 							 session->tunnel);
session          1121 net/l2tp/l2tp_ppp.c 			pppol2tp_copy_stats(&stats, &session->stats);
session          1122 net/l2tp/l2tp_ppp.c 			stats.session_id = session->session_id;
session          1124 net/l2tp/l2tp_ppp.c 		stats.tunnel_id = session->tunnel->tunnel_id;
session          1125 net/l2tp/l2tp_ppp.c 		stats.using_ipsec = l2tp_tunnel_uses_xfrm(session->tunnel);
session          1174 net/l2tp/l2tp_ppp.c 				       struct l2tp_session *session,
session          1185 net/l2tp/l2tp_ppp.c 		session->recv_seq = !!val;
session          1186 net/l2tp/l2tp_ppp.c 		l2tp_info(session, L2TP_MSG_CONTROL,
session          1188 net/l2tp/l2tp_ppp.c 			  session->name, session->recv_seq);
session          1196 net/l2tp/l2tp_ppp.c 		session->send_seq = !!val;
session          1203 net/l2tp/l2tp_ppp.c 		l2tp_session_set_header_len(session, session->tunnel->version);
session          1204 net/l2tp/l2tp_ppp.c 		l2tp_info(session, L2TP_MSG_CONTROL,
session          1206 net/l2tp/l2tp_ppp.c 			  session->name, session->send_seq);
session          1214 net/l2tp/l2tp_ppp.c 		session->lns_mode = !!val;
session          1215 net/l2tp/l2tp_ppp.c 		l2tp_info(session, L2TP_MSG_CONTROL,
session          1217 net/l2tp/l2tp_ppp.c 			  session->name, session->lns_mode);
session          1221 net/l2tp/l2tp_ppp.c 		session->debug = val;
session          1222 net/l2tp/l2tp_ppp.c 		l2tp_info(session, L2TP_MSG_CONTROL, "%s: set debug=%x\n",
session          1223 net/l2tp/l2tp_ppp.c 			  session->name, session->debug);
session          1227 net/l2tp/l2tp_ppp.c 		session->reorder_timeout = msecs_to_jiffies(val);
session          1228 net/l2tp/l2tp_ppp.c 		l2tp_info(session, L2TP_MSG_CONTROL,
session          1230 net/l2tp/l2tp_ppp.c 			  session->name, session->reorder_timeout);
session          1250 net/l2tp/l2tp_ppp.c 	struct l2tp_session *session;
session          1270 net/l2tp/l2tp_ppp.c 	session = pppol2tp_sock_to_session(sk);
session          1271 net/l2tp/l2tp_ppp.c 	if (session == NULL)
session          1276 net/l2tp/l2tp_ppp.c 	if ((session->session_id == 0) &&
session          1277 net/l2tp/l2tp_ppp.c 	    (session->peer_session_id == 0)) {
session          1278 net/l2tp/l2tp_ppp.c 		tunnel = session->tunnel;
session          1281 net/l2tp/l2tp_ppp.c 		err = pppol2tp_session_setsockopt(sk, session, optname, val);
session          1315 net/l2tp/l2tp_ppp.c 				       struct l2tp_session *session,
session          1322 net/l2tp/l2tp_ppp.c 		*val = session->recv_seq;
session          1323 net/l2tp/l2tp_ppp.c 		l2tp_info(session, L2TP_MSG_CONTROL,
session          1324 net/l2tp/l2tp_ppp.c 			  "%s: get recv_seq=%d\n", session->name, *val);
session          1328 net/l2tp/l2tp_ppp.c 		*val = session->send_seq;
session          1329 net/l2tp/l2tp_ppp.c 		l2tp_info(session, L2TP_MSG_CONTROL,
session          1330 net/l2tp/l2tp_ppp.c 			  "%s: get send_seq=%d\n", session->name, *val);
session          1334 net/l2tp/l2tp_ppp.c 		*val = session->lns_mode;
session          1335 net/l2tp/l2tp_ppp.c 		l2tp_info(session, L2TP_MSG_CONTROL,
session          1336 net/l2tp/l2tp_ppp.c 			  "%s: get lns_mode=%d\n", session->name, *val);
session          1340 net/l2tp/l2tp_ppp.c 		*val = session->debug;
session          1341 net/l2tp/l2tp_ppp.c 		l2tp_info(session, L2TP_MSG_CONTROL, "%s: get debug=%d\n",
session          1342 net/l2tp/l2tp_ppp.c 			  session->name, *val);
session          1346 net/l2tp/l2tp_ppp.c 		*val = (int) jiffies_to_msecs(session->reorder_timeout);
session          1347 net/l2tp/l2tp_ppp.c 		l2tp_info(session, L2TP_MSG_CONTROL,
session          1348 net/l2tp/l2tp_ppp.c 			  "%s: get reorder_timeout=%d\n", session->name, *val);
session          1367 net/l2tp/l2tp_ppp.c 	struct l2tp_session *session;
session          1389 net/l2tp/l2tp_ppp.c 	session = pppol2tp_sock_to_session(sk);
session          1390 net/l2tp/l2tp_ppp.c 	if (session == NULL)
session          1394 net/l2tp/l2tp_ppp.c 	if ((session->session_id == 0) &&
session          1395 net/l2tp/l2tp_ppp.c 	    (session->peer_session_id == 0)) {
session          1396 net/l2tp/l2tp_ppp.c 		tunnel = session->tunnel;
session          1401 net/l2tp/l2tp_ppp.c 		err = pppol2tp_session_getsockopt(sk, session, optname, &val);
session          1436 net/l2tp/l2tp_ppp.c 	struct l2tp_session *session;	/* NULL means get next tunnel */
session          1460 net/l2tp/l2tp_ppp.c 	if (pd->session)
session          1461 net/l2tp/l2tp_ppp.c 		l2tp_session_dec_refcount(pd->session);
session          1463 net/l2tp/l2tp_ppp.c 	pd->session = l2tp_session_get_nth(pd->tunnel, pd->session_idx);
session          1466 net/l2tp/l2tp_ppp.c 	if (pd->session == NULL) {
session          1491 net/l2tp/l2tp_ppp.c 	if ((pd->tunnel == NULL) && (pd->session == NULL))
session          1514 net/l2tp/l2tp_ppp.c 	if (pd->session) {
session          1515 net/l2tp/l2tp_ppp.c 		l2tp_session_dec_refcount(pd->session);
session          1516 net/l2tp/l2tp_ppp.c 		pd->session = NULL;
session          1544 net/l2tp/l2tp_ppp.c 	struct l2tp_session *session = v;
session          1545 net/l2tp/l2tp_ppp.c 	struct l2tp_tunnel *tunnel = session->tunnel;
session          1558 net/l2tp/l2tp_ppp.c 	sk = pppol2tp_session_get_sock(session);
session          1561 net/l2tp/l2tp_ppp.c 		user_data_ok = (session == sk->sk_user_data) ? 'Y' : 'N';
session          1569 net/l2tp/l2tp_ppp.c 		   session->name, ip, port,
session          1571 net/l2tp/l2tp_ppp.c 		   session->session_id,
session          1573 net/l2tp/l2tp_ppp.c 		   session->peer_session_id,
session          1576 net/l2tp/l2tp_ppp.c 		   session->recv_seq ? 'R' : '-',
session          1577 net/l2tp/l2tp_ppp.c 		   session->send_seq ? 'S' : '-',
session          1578 net/l2tp/l2tp_ppp.c 		   session->lns_mode ? "LNS" : "LAC",
session          1579 net/l2tp/l2tp_ppp.c 		   session->debug,
session          1580 net/l2tp/l2tp_ppp.c 		   jiffies_to_msecs(session->reorder_timeout));
session          1582 net/l2tp/l2tp_ppp.c 		   session->nr, session->ns,
session          1583 net/l2tp/l2tp_ppp.c 		   atomic_long_read(&session->stats.tx_packets),
session          1584 net/l2tp/l2tp_ppp.c 		   atomic_long_read(&session->stats.tx_bytes),
session          1585 net/l2tp/l2tp_ppp.c 		   atomic_long_read(&session->stats.tx_errors),
session          1586 net/l2tp/l2tp_ppp.c 		   atomic_long_read(&session->stats.rx_packets),
session          1587 net/l2tp/l2tp_ppp.c 		   atomic_long_read(&session->stats.rx_bytes),
session          1588 net/l2tp/l2tp_ppp.c 		   atomic_long_read(&session->stats.rx_errors));
session          1614 net/l2tp/l2tp_ppp.c 	if (!pd->session)
session          1617 net/l2tp/l2tp_ppp.c 		pppol2tp_seq_session_show(m, pd->session);
session           222 net/mac80211/fils_aead.c 	const u8 *addr[5 + 1], *session;
session           234 net/mac80211/fils_aead.c 	session = cfg80211_find_ext_ie(WLAN_EID_EXT_FILS_SESSION,
session           236 net/mac80211/fils_aead.c 	if (!session || session[1] != 1 + 8)
session           239 net/mac80211/fils_aead.c 	encr = (u8 *)session + 2 + 1 + 8;
session           273 net/mac80211/fils_aead.c 	const u8 *addr[5 + 1], *session;
session           283 net/mac80211/fils_aead.c 	session = cfg80211_find_ext_ie(WLAN_EID_EXT_FILS_SESSION,
session           285 net/mac80211/fils_aead.c 	if (!session || session[1] != 1 + 8) {
session           292 net/mac80211/fils_aead.c 	encr = (u8 *)session + 2 + 1 + 8;
session           194 net/rxrpc/key.c 	rxrpc_free_krb5_tagged(&rxk5->session);
session           470 net/rxrpc/key.c 	ret = rxrpc_krb5_decode_tagged_data(&rxk5->session, AFSTOKEN_DATA_MAX,
session          1094 net/rxrpc/key.c 			toksize += 8 + RND(token->k5->session.data_len);
session          1189 net/rxrpc/key.c 			ENCODE(token->k5->session.tag);
session          1190 net/rxrpc/key.c 			ENCODE_DATA(token->k5->session.data_len,
session          1191 net/rxrpc/key.c 				    token->k5->session.data);
session           130 net/tipc/link.c 	u16 session;
session           444 net/tipc/link.c 		      int window, u32 session, u32 self,
session           460 net/tipc/link.c 	l->session = session;
session           891 net/tipc/link.c 	l->session++;
session          1633 net/tipc/link.c 	msg_set_session(hdr, l->session);
session          1899 net/tipc/link.c 	u16 session = msg_session(hdr);
session          1910 net/tipc/link.c 		return more(session, curr_session);
session          1915 net/tipc/link.c 		return !less(session, curr_session);
session          1920 net/tipc/link.c 		if (session != curr_session)
session          2006 net/tipc/link.c 		    l->session != msg_dest_session(hdr)) {
session          2007 net/tipc/link.c 			if (less(l->session, msg_dest_session(hdr)))
session          2008 net/tipc/link.c 				l->session = msg_dest_session(hdr) + 1;
session          2694 net/tipc/link.c 	i += scnprintf(buf + i, sz - i, " %u", l->session);
session            76 net/tipc/link.h 		      int window, u32 session, u32 ownnode,
session           996 net/tipc/node.c 	u16 session;
session          1083 net/tipc/node.c 		get_random_bytes(&session, sizeof(u16));
session          1086 net/tipc/node.c 				      b->window, session,
session           121 security/keys/request_key.c 	struct key *key = rka->target_key, *keyring, *session, *user_session;
session           167 security/keys/request_key.c 	session = cred->session_keyring;
session           168 security/keys/request_key.c 	if (!session)
session           169 security/keys/request_key.c 		session = user_session;
session           170 security/keys/request_key.c 	sskey = session->serial;
session           179 sound/soc/qcom/qdsp6/q6asm.c 	struct audio_client *session[MAX_SESSIONS + 1];
session           183 sound/soc/qcom/qdsp6/q6asm.c 	int session;
session           206 sound/soc/qcom/qdsp6/q6asm.c 	hdr->src_port = ((ac->session << 8) & 0xFF00) | (stream_id);
session           207 sound/soc/qcom/qdsp6/q6asm.c 	hdr->dest_port = ((ac->session << 8) & 0xFF00) | (stream_id);
session           210 sound/soc/qcom/qdsp6/q6asm.c 		hdr->token = ac->session;
session           276 sound/soc/qcom/qdsp6/q6asm.c 	pkt->hdr.token = ((ac->session << 8) | dir);
session           384 sound/soc/qcom/qdsp6/q6asm.c 	pkt->hdr.token = ((ac->session << 8) | dir);
session           480 sound/soc/qcom/qdsp6/q6asm.c 	a->session[ac->session] = NULL;
session           510 sound/soc/qcom/qdsp6/q6asm.c 	if (!a->session[session_id])
session           512 sound/soc/qcom/qdsp6/q6asm.c 	else if (a->session[session_id]->session != session_id)
session           515 sound/soc/qcom/qdsp6/q6asm.c 	ac = a->session[session_id];
session           744 sound/soc/qcom/qdsp6/q6asm.c 	return c->session;
session           779 sound/soc/qcom/qdsp6/q6asm.c 	a->session[stream_id + 1] = ac;
session           781 sound/soc/qcom/qdsp6/q6asm.c 	ac->session = stream_id + 1;
session           315 sound/soc/qcom/qdsp6/q6routing.c 	struct session_data *session, *pdata;
session           322 sound/soc/qcom/qdsp6/q6routing.c 	session = &routing_data->sessions[stream_id - 1];
session           323 sound/soc/qcom/qdsp6/q6routing.c 	pdata = &routing_data->port_data[session->port_id];
session           326 sound/soc/qcom/qdsp6/q6routing.c 	session->fedai_id = fedai_id;
session           328 sound/soc/qcom/qdsp6/q6routing.c 	session->path_type = pdata->path_type;
session           329 sound/soc/qcom/qdsp6/q6routing.c 	session->sample_rate = pdata->sample_rate;
session           330 sound/soc/qcom/qdsp6/q6routing.c 	session->channels = pdata->channels;
session           331 sound/soc/qcom/qdsp6/q6routing.c 	session->bits_per_sample = pdata->bits_per_sample;
session           335 sound/soc/qcom/qdsp6/q6routing.c 	copp = q6adm_open(routing_data->dev, session->port_id,
session           336 sound/soc/qcom/qdsp6/q6routing.c 			      session->path_type, session->sample_rate,
session           337 sound/soc/qcom/qdsp6/q6routing.c 			      session->channels, topology, perf_mode,
session           338 sound/soc/qcom/qdsp6/q6routing.c 			      session->bits_per_sample, 0, 0);
session           346 sound/soc/qcom/qdsp6/q6routing.c 	set_bit(copp_idx, &session->copp_map);
session           347 sound/soc/qcom/qdsp6/q6routing.c 	session->copps[copp_idx] = copp;
session           349 sound/soc/qcom/qdsp6/q6routing.c 	for_each_set_bit(j, &session->copp_map, MAX_COPPS_PER_PORT) {
session           350 sound/soc/qcom/qdsp6/q6routing.c 		payload.port_id[num_copps] = session->port_id;
session           358 sound/soc/qcom/qdsp6/q6routing.c 		q6adm_matrix_map(routing_data->dev, session->path_type,
session           389 sound/soc/qcom/qdsp6/q6routing.c 	struct session_data *session;
session           392 sound/soc/qcom/qdsp6/q6routing.c 	session = get_session_from_id(routing_data, fedai_id);
session           393 sound/soc/qcom/qdsp6/q6routing.c 	if (!session)
session           396 sound/soc/qcom/qdsp6/q6routing.c 	for_each_set_bit(idx, &session->copp_map, MAX_COPPS_PER_PORT) {
session           397 sound/soc/qcom/qdsp6/q6routing.c 		if (session->copps[idx]) {
session           398 sound/soc/qcom/qdsp6/q6routing.c 			q6adm_close(routing_data->dev, session->copps[idx]);
session           399 sound/soc/qcom/qdsp6/q6routing.c 			session->copps[idx] = NULL;
session           403 sound/soc/qcom/qdsp6/q6routing.c 	session->fedai_id = -1;
session           404 sound/soc/qcom/qdsp6/q6routing.c 	session->copp_map = 0;
session           418 sound/soc/qcom/qdsp6/q6routing.c 	struct session_data *session = &priv->sessions[session_id];
session           420 sound/soc/qcom/qdsp6/q6routing.c 	if (session->port_id == mc->reg)
session           440 sound/soc/qcom/qdsp6/q6routing.c 	struct session_data *session = &data->sessions[session_id];
session           443 sound/soc/qcom/qdsp6/q6routing.c 		session->port_id = be_id;
session           446 sound/soc/qcom/qdsp6/q6routing.c 		session->port_id = -1;
session           949 sound/soc/qcom/qdsp6/q6routing.c 	struct session_data *session;
session           960 sound/soc/qcom/qdsp6/q6routing.c 	session = &data->port_data[be_id];
session           964 sound/soc/qcom/qdsp6/q6routing.c 	session->path_type = path_type;
session           965 sound/soc/qcom/qdsp6/q6routing.c 	session->sample_rate = params_rate(params);
session           966 sound/soc/qcom/qdsp6/q6routing.c 	session->channels = params_channels(params);
session           970 sound/soc/qcom/qdsp6/q6routing.c 			session->bits_per_sample = 16;
session           973 sound/soc/qcom/qdsp6/q6routing.c 			session->bits_per_sample = 24;
session           635 tools/perf/arch/arm/util/cs-etm.c 			    struct perf_session *session,
session           643 tools/perf/arch/arm/util/cs-etm.c 	struct perf_cpu_map *event_cpus = session->evlist->core.cpus;
session           649 tools/perf/arch/arm/util/cs-etm.c 	if (priv_size != cs_etm_info_priv_size(itr, session->evlist))
session           652 tools/perf/arch/arm/util/cs-etm.c 	if (!session->evlist->core.nr_mmaps)
session            43 tools/perf/arch/arm64/util/arm-spe.c 			     struct perf_session *session,
session            54 tools/perf/arch/arm64/util/arm-spe.c 	if (!session->evlist->core.nr_mmaps)
session            32 tools/perf/arch/s390/util/auxtrace.c 		 struct perf_session *session __maybe_unused,
session            63 tools/perf/arch/x86/util/intel-bts.c 			       struct perf_session *session,
session            78 tools/perf/arch/x86/util/intel-bts.c 	if (!session->evlist->core.nr_mmaps)
session            81 tools/perf/arch/x86/util/intel-bts.c 	pc = session->evlist->mmap[0].core.base;
session           317 tools/perf/arch/x86/util/intel-pt.c 			      struct perf_session *session,
session           352 tools/perf/arch/x86/util/intel-pt.c 	filter = intel_pt_find_filter(session->evlist, ptr->intel_pt_pmu);
session           355 tools/perf/arch/x86/util/intel-pt.c 	if (!session->evlist->core.nr_mmaps)
session           358 tools/perf/arch/x86/util/intel-pt.c 	pc = session->evlist->mmap[0].core.base;
session           371 tools/perf/arch/x86/util/intel-pt.c 	per_cpu_mmaps = !perf_cpu_map__empty(session->evlist->core.cpus);
session            47 tools/perf/builtin-annotate.c 	struct perf_session *session;
session           291 tools/perf/builtin-annotate.c static int process_feature_event(struct perf_session *session,
session           295 tools/perf/builtin-annotate.c 		return perf_event__process_feature(session, event);
session           393 tools/perf/builtin-annotate.c 	struct perf_session *session = ann->session;
session           398 tools/perf/builtin-annotate.c 		ret = perf_session__cpu_bitmap(session, ann->cpu_list,
session           405 tools/perf/builtin-annotate.c 		ret = perf_env__lookup_objdump(&session->header.env,
session           411 tools/perf/builtin-annotate.c 	ret = perf_session__process_events(session);
session           416 tools/perf/builtin-annotate.c 		perf_session__fprintf_nr_events(session, stdout);
session           417 tools/perf/builtin-annotate.c 		perf_evlist__fprintf_nr_events(session->evlist, stdout);
session           422 tools/perf/builtin-annotate.c 		perf_session__fprintf(session, stdout);
session           425 tools/perf/builtin-annotate.c 		perf_session__fprintf_dsos(session, stdout);
session           428 tools/perf/builtin-annotate.c 	evlist__for_each_entry(session->evlist, pos) {
session           448 tools/perf/builtin-annotate.c 		ui__error("The %s data has no samples!\n", session->data->path);
session           587 tools/perf/builtin-annotate.c 	annotate.session = perf_session__new(&data, false, &annotate.tool);
session           588 tools/perf/builtin-annotate.c 	if (IS_ERR(annotate.session))
session           589 tools/perf/builtin-annotate.c 		return PTR_ERR(annotate.session);
session           591 tools/perf/builtin-annotate.c 	annotate.has_br_stack = perf_header__has_feat(&annotate.session->header,
session           595 tools/perf/builtin-annotate.c 		perf_evlist__force_leader(annotate.session->evlist);
session           605 tools/perf/builtin-annotate.c 	ret = symbol__init(&annotate.session->header.env);
session           620 tools/perf/builtin-annotate.c 		if (setup_sorting(annotate.session->evlist) < 0)
session           295 tools/perf/builtin-buildid-cache.c static int build_id_cache__fprintf_missing(struct perf_session *session, FILE *fp)
session           297 tools/perf/builtin-buildid-cache.c 	perf_session__fprintf_dsos_buildid(session, fp, dso__missing_buildid_cache, 0);
session           373 tools/perf/builtin-buildid-cache.c 	struct perf_session *session = NULL;
session           425 tools/perf/builtin-buildid-cache.c 		session = perf_session__new(&data, false, NULL);
session           426 tools/perf/builtin-buildid-cache.c 		if (IS_ERR(session))
session           427 tools/perf/builtin-buildid-cache.c 			return PTR_ERR(session);
session           430 tools/perf/builtin-buildid-cache.c 	if (symbol__init(session ? &session->header.env : NULL) < 0)
session           502 tools/perf/builtin-buildid-cache.c 		ret = build_id_cache__fprintf_missing(session, stdout);
session           526 tools/perf/builtin-buildid-cache.c 	perf_session__delete(session);
session            54 tools/perf/builtin-buildid-list.c 	struct perf_session *session;
session            68 tools/perf/builtin-buildid-list.c 	session = perf_session__new(&data, false, &build_id__mark_dso_hit_ops);
session            69 tools/perf/builtin-buildid-list.c 	if (IS_ERR(session))
session            70 tools/perf/builtin-buildid-list.c 		return PTR_ERR(session);
session            77 tools/perf/builtin-buildid-list.c 	    perf_header__has_feat(&session->header, HEADER_AUXTRACE))
session            85 tools/perf/builtin-buildid-list.c 		perf_session__process_events(session);
session            87 tools/perf/builtin-buildid-list.c 	perf_session__fprintf_dsos_buildid(session, stdout, dso__skip_buildid, with_hits);
session            88 tools/perf/builtin-buildid-list.c 	perf_session__delete(session);
session          2029 tools/perf/builtin-c2c.c static int setup_nodes(struct perf_session *session)
session          2039 tools/perf/builtin-c2c.c 	c2c.nodes_cnt = session->header.env.nr_numa_nodes;
session          2040 tools/perf/builtin-c2c.c 	c2c.cpus_cnt  = session->header.env.nr_cpus_avail;
session          2042 tools/perf/builtin-c2c.c 	n = session->header.env.numa_nodes;
session          2247 tools/perf/builtin-c2c.c static void print_c2c_info(FILE *out, struct perf_session *session)
session          2249 tools/perf/builtin-c2c.c 	struct evlist *evlist = session->evlist;
session          2267 tools/perf/builtin-c2c.c static void perf_c2c__hists_fprintf(FILE *out, struct perf_session *session)
session          2275 tools/perf/builtin-c2c.c 	print_c2c_info(out, session);
session          2479 tools/perf/builtin-c2c.c static void perf_c2c_display(struct perf_session *session)
session          2482 tools/perf/builtin-c2c.c 		perf_c2c__hists_fprintf(stdout, session);
session          2487 tools/perf/builtin-c2c.c static void perf_c2c_display(struct perf_session *session)
session          2490 tools/perf/builtin-c2c.c 	perf_c2c__hists_fprintf(stdout, session);
session          2720 tools/perf/builtin-c2c.c 	struct perf_session *session;
session          2790 tools/perf/builtin-c2c.c 	session = perf_session__new(&data, 0, &c2c.tool);
session          2791 tools/perf/builtin-c2c.c 	if (IS_ERR(session)) {
session          2792 tools/perf/builtin-c2c.c 		err = PTR_ERR(session);
session          2797 tools/perf/builtin-c2c.c 	err = setup_nodes(session);
session          2803 tools/perf/builtin-c2c.c 	err = mem2node__init(&c2c.mem2node, &session->header.env);
session          2807 tools/perf/builtin-c2c.c 	err = setup_callchain(session->evlist);
session          2811 tools/perf/builtin-c2c.c 	if (symbol__init(&session->header.env) < 0)
session          2815 tools/perf/builtin-c2c.c 	if (perf_data__is_pipe(session->data)) {
session          2827 tools/perf/builtin-c2c.c 	err = perf_session__process_events(session);
session          2864 tools/perf/builtin-c2c.c 	perf_c2c_display(session);
session          2869 tools/perf/builtin-c2c.c 	perf_session__delete(session);
session            68 tools/perf/builtin-diff.c 	struct perf_session	*session;
session          1017 tools/perf/builtin-diff.c 	struct evlist *evlist_base = data__files[0].session->evlist;
session          1027 tools/perf/builtin-diff.c 			struct evlist *evlist = d->session->evlist;
session          1110 tools/perf/builtin-diff.c 	ret = perf_time__parse_for_ranges(*pstr, d->session,
session          1129 tools/perf/builtin-diff.c 	ret = perf_time__parse_for_ranges(pdiff.time_str, d->session,
session          1156 tools/perf/builtin-diff.c 		d->session = perf_session__new(&d->data, false, &pdiff.tool);
session          1157 tools/perf/builtin-diff.c 		if (IS_ERR(d->session)) {
session          1159 tools/perf/builtin-diff.c 			return PTR_ERR(d->session);
session          1162 tools/perf/builtin-diff.c 		has_br_stack = perf_header__has_feat(&d->session->header,
session          1164 tools/perf/builtin-diff.c 		perf_session__delete(d->session);
session          1188 tools/perf/builtin-diff.c 		d->session = perf_session__new(&d->data, false, &pdiff.tool);
session          1189 tools/perf/builtin-diff.c 		if (IS_ERR(d->session)) {
session          1190 tools/perf/builtin-diff.c 			ret = PTR_ERR(d->session);
session          1202 tools/perf/builtin-diff.c 			ret = perf_session__cpu_bitmap(d->session, cpu_list,
session          1208 tools/perf/builtin-diff.c 		ret = perf_session__process_events(d->session);
session          1214 tools/perf/builtin-diff.c 		perf_evlist__collapse_resort(d->session->evlist);
session          1224 tools/perf/builtin-diff.c 		perf_session__delete(d->session);
session            23 tools/perf/builtin-evlist.c 	struct perf_session *session;
session            32 tools/perf/builtin-evlist.c 	session = perf_session__new(&data, 0, NULL);
session            33 tools/perf/builtin-evlist.c 	if (IS_ERR(session))
session            34 tools/perf/builtin-evlist.c 		return PTR_ERR(session);
session            36 tools/perf/builtin-evlist.c 	evlist__for_each_entry(session->evlist, pos) {
session            46 tools/perf/builtin-evlist.c 	perf_session__delete(session);
session            36 tools/perf/builtin-inject.c 	struct perf_session	*session;
session            93 tools/perf/builtin-inject.c static int perf_event__repipe_op2_synth(struct perf_session *session,
session            96 tools/perf/builtin-inject.c 	return perf_event__repipe_synth(session->tool, event);
session           138 tools/perf/builtin-inject.c static s64 perf_event__repipe_auxtrace(struct perf_session *session,
session           141 tools/perf/builtin-inject.c 	struct perf_tool *tool = session->tool;
session           154 tools/perf/builtin-inject.c 		ret = auxtrace_index__auxtrace_event(&session->auxtrace_index,
session           160 tools/perf/builtin-inject.c 	if (perf_data__is_pipe(session->data) || !session->one_mmap) {
session           164 tools/perf/builtin-inject.c 		ret = copy_bytes(inject, perf_data__fd(session->data),
session           179 tools/perf/builtin-inject.c perf_event__repipe_auxtrace(struct perf_session *session __maybe_unused,
session           265 tools/perf/builtin-inject.c 	ret = jit_process(inject->session, &inject->output, machine,
session           303 tools/perf/builtin-inject.c 	ret = jit_process(inject->session, &inject->output, machine,
session           366 tools/perf/builtin-inject.c static int perf_event__repipe_tracing_data(struct perf_session *session,
session           371 tools/perf/builtin-inject.c 	perf_event__repipe_synth(session->tool, event);
session           372 tools/perf/builtin-inject.c 	err = perf_event__process_tracing_data(session, event);
session           377 tools/perf/builtin-inject.c static int perf_event__repipe_id_index(struct perf_session *session,
session           382 tools/perf/builtin-inject.c 	perf_event__repipe_synth(session->tool, event);
session           383 tools/perf/builtin-inject.c 	err = perf_event__process_id_index(session, event);
session           572 tools/perf/builtin-inject.c 	struct evlist *evlist = inject->session->evlist;
session           619 tools/perf/builtin-inject.c 	struct evlist *evlist = inject->session->evlist;
session           636 tools/perf/builtin-inject.c 	struct perf_session *session = inject->session;
session           651 tools/perf/builtin-inject.c 	output_data_offset = session->header.data_offset;
session           658 tools/perf/builtin-inject.c 		evlist__for_each_entry(session->evlist, evsel) {
session           672 tools/perf/builtin-inject.c 		session->itrace_synth_opts = &inject->itrace_synth_opts;
session           691 tools/perf/builtin-inject.c 		auxtrace_index__free(&session->auxtrace_index);
session           696 tools/perf/builtin-inject.c 	ret = perf_session__process_events(session);
session           702 tools/perf/builtin-inject.c 			perf_header__set_feat(&session->header,
session           708 tools/perf/builtin-inject.c 		if (perf_header__has_feat(&session->header, HEADER_BUILD_ID) &&
session           710 tools/perf/builtin-inject.c 			dsos__hit_all(session);
session           719 tools/perf/builtin-inject.c 			perf_header__clear_feat(&session->header,
session           722 tools/perf/builtin-inject.c 				perf_header__set_feat(&session->header,
session           724 tools/perf/builtin-inject.c 			evsel = perf_evlist__id2evsel_strict(session->evlist,
session           729 tools/perf/builtin-inject.c 				evlist__remove(session->evlist, evsel);
session           735 tools/perf/builtin-inject.c 		session->header.data_offset = output_data_offset;
session           736 tools/perf/builtin-inject.c 		session->header.data_size = inject->bytes_written;
session           737 tools/perf/builtin-inject.c 		perf_session__write_header(session, session->evlist, fd, true);
session           838 tools/perf/builtin-inject.c 	inject.session = perf_session__new(&data, true, &inject.tool);
session           839 tools/perf/builtin-inject.c 	if (IS_ERR(inject.session))
session           840 tools/perf/builtin-inject.c 		return PTR_ERR(inject.session);
session           842 tools/perf/builtin-inject.c 	if (zstd_init(&(inject.session->zstd_data), 0) < 0)
session           868 tools/perf/builtin-inject.c 	ret = symbol__init(&inject.session->header.env);
session           875 tools/perf/builtin-inject.c 	zstd_fini(&(inject.session->zstd_data));
session           876 tools/perf/builtin-inject.c 	perf_session__delete(inject.session);
session           990 tools/perf/builtin-kmem.c 				struct perf_session *session,
session           994 tools/perf/builtin-kmem.c 	struct machine *machine = &session->machines.host;
session          1052 tools/perf/builtin-kmem.c static void __print_page_alloc_result(struct perf_session *session, int n_lines)
session          1055 tools/perf/builtin-kmem.c 	struct machine *machine = &session->machines.host;
session          1101 tools/perf/builtin-kmem.c static void __print_page_caller_result(struct perf_session *session, int n_lines)
session          1104 tools/perf/builtin-kmem.c 	struct machine *machine = &session->machines.host;
session          1220 tools/perf/builtin-kmem.c static void print_slab_result(struct perf_session *session)
session          1223 tools/perf/builtin-kmem.c 		__print_slab_result(&root_caller_sorted, session, caller_lines, 1);
session          1225 tools/perf/builtin-kmem.c 		__print_slab_result(&root_alloc_sorted, session, alloc_lines, 0);
session          1229 tools/perf/builtin-kmem.c static void print_page_result(struct perf_session *session)
session          1234 tools/perf/builtin-kmem.c 		__print_page_caller_result(session, caller_lines);
session          1236 tools/perf/builtin-kmem.c 		__print_page_alloc_result(session, alloc_lines);
session          1240 tools/perf/builtin-kmem.c static void print_result(struct perf_session *session)
session          1243 tools/perf/builtin-kmem.c 		print_slab_result(session);
session          1245 tools/perf/builtin-kmem.c 		print_page_result(session);
session          1368 tools/perf/builtin-kmem.c static int __cmd_kmem(struct perf_session *session)
session          1385 tools/perf/builtin-kmem.c 	if (!perf_session__has_traces(session, "kmem record"))
session          1388 tools/perf/builtin-kmem.c 	if (perf_session__set_tracepoints_handlers(session, kmem_tracepoints)) {
session          1393 tools/perf/builtin-kmem.c 	evlist__for_each_entry(session->evlist, evsel) {
session          1402 tools/perf/builtin-kmem.c 	err = perf_session__process_events(session);
session          1408 tools/perf/builtin-kmem.c 	print_result(session);
session          1933 tools/perf/builtin-kmem.c 	struct perf_session *session;
session          1960 tools/perf/builtin-kmem.c 	kmem_session = session = perf_session__new(&data, false, &perf_kmem);
session          1961 tools/perf/builtin-kmem.c 	if (IS_ERR(session))
session          1962 tools/perf/builtin-kmem.c 		return PTR_ERR(session);
session          1967 tools/perf/builtin-kmem.c 		if (!perf_evlist__find_tracepoint_by_name(session->evlist,
session          1977 tools/perf/builtin-kmem.c 		evsel = perf_evlist__find_tracepoint_by_name(session->evlist,
session          1988 tools/perf/builtin-kmem.c 	symbol__init(&session->header.env);
session          2017 tools/perf/builtin-kmem.c 		ret = __cmd_kmem(session);
session          2022 tools/perf/builtin-kmem.c 	perf_session__delete(session);
session           720 tools/perf/builtin-kvm.c 		cpuid = kvm->session->header.env.cpuid;
session           774 tools/perf/builtin-kvm.c 		err = perf_session__queue_event(kvm->session, event, timestamp, 0);
session           828 tools/perf/builtin-kvm.c 		struct ordered_events *oe = &kvm->session->ordered_events;
session          1096 tools/perf/builtin-kvm.c 	kvm->session = perf_session__new(&file, false, &kvm->tool);
session          1097 tools/perf/builtin-kvm.c 	if (IS_ERR(kvm->session)) {
session          1099 tools/perf/builtin-kvm.c 		return PTR_ERR(kvm->session);
session          1102 tools/perf/builtin-kvm.c 	symbol__init(&kvm->session->header.env);
session          1104 tools/perf/builtin-kvm.c 	if (!perf_session__has_traces(kvm->session, "kvm record")) {
session          1117 tools/perf/builtin-kvm.c 	ret = perf_session__process_events(kvm->session);
session          1120 tools/perf/builtin-kvm.c 	perf_session__delete(kvm->session);
session          1451 tools/perf/builtin-kvm.c 	kvm->session = perf_session__new(&data, false, &kvm->tool);
session          1452 tools/perf/builtin-kvm.c 	if (IS_ERR(kvm->session)) {
session          1453 tools/perf/builtin-kvm.c 		err = PTR_ERR(kvm->session);
session          1456 tools/perf/builtin-kvm.c 	kvm->session->evlist = kvm->evlist;
session          1457 tools/perf/builtin-kvm.c 	perf_session__set_id_hdr_size(kvm->session);
session          1458 tools/perf/builtin-kvm.c 	ordered_events__set_copy_on_queue(&kvm->session->ordered_events, true);
session          1459 tools/perf/builtin-kvm.c 	machine__synthesize_threads(&kvm->session->machines.host, &kvm->opts.target,
session          1468 tools/perf/builtin-kvm.c 	perf_session__delete(kvm->session);
session          1469 tools/perf/builtin-kvm.c 	kvm->session = NULL;
session            35 tools/perf/builtin-lock.c static struct perf_session *session;
session           774 tools/perf/builtin-lock.c 		t = perf_session__findnew(session, st->tid);
session           875 tools/perf/builtin-lock.c 	session = perf_session__new(&data, false, &eops);
session           876 tools/perf/builtin-lock.c 	if (IS_ERR(session)) {
session           878 tools/perf/builtin-lock.c 		return PTR_ERR(session);
session           881 tools/perf/builtin-lock.c 	symbol__init(&session->header.env);
session           883 tools/perf/builtin-lock.c 	if (!perf_session__has_traces(session, "lock record"))
session           886 tools/perf/builtin-lock.c 	if (perf_session__set_tracepoints_handlers(session, lock_tracepoints)) {
session           894 tools/perf/builtin-lock.c 	err = perf_session__process_events(session);
session           907 tools/perf/builtin-lock.c 	perf_session__delete(session);
session           250 tools/perf/builtin-mem.c 	struct perf_session *session = perf_session__new(&data, false,
session           253 tools/perf/builtin-mem.c 	if (IS_ERR(session))
session           254 tools/perf/builtin-mem.c 		return PTR_ERR(session);
session           257 tools/perf/builtin-mem.c 		ret = perf_session__cpu_bitmap(session, mem->cpu_list,
session           263 tools/perf/builtin-mem.c 	ret = symbol__init(&session->header.env);
session           272 tools/perf/builtin-mem.c 	ret = perf_session__process_events(session);
session           275 tools/perf/builtin-mem.c 	perf_session__delete(session);
session            82 tools/perf/builtin-record.c 	struct perf_session	*session;
session           126 tools/perf/builtin-record.c 	struct perf_data_file *file = &rec->session->data->file;
session           143 tools/perf/builtin-record.c static size_t zstd_compress(struct perf_session *session, void *dst, size_t dst_size,
session           278 tools/perf/builtin-record.c 		size = zstd_compress(aio->rec->session, aio->data + aio->size,
session           307 tools/perf/builtin-record.c 	int trace_fd = rec->session->data->file.fd;
session           491 tools/perf/builtin-record.c 		size = zstd_compress(rec->session, map->data, perf_mmap__mmap_len(map), bf, size);
session           548 tools/perf/builtin-record.c 		err = auxtrace_index__auxtrace_event(&rec->session->auxtrace_index,
session           746 tools/perf/builtin-record.c 	struct perf_session *session = rec->session;
session           815 tools/perf/builtin-record.c 	session->evlist = evlist;
session           816 tools/perf/builtin-record.c 	perf_session__set_id_hdr_size(session);
session           843 tools/perf/builtin-record.c 	struct perf_session *session = rec->session;
session           868 tools/perf/builtin-record.c 	return perf_session__process_events(session);
session           931 tools/perf/builtin-record.c static size_t zstd_compress(struct perf_session *session, void *dst, size_t dst_size,
session           937 tools/perf/builtin-record.c 	compressed = zstd_compress_stream_to_records(&session->zstd_data, dst, dst_size, src, src_size,
session           940 tools/perf/builtin-record.c 	session->bytes_transferred += src_size;
session           941 tools/perf/builtin-record.c 	session->bytes_compressed  += compressed;
session          1035 tools/perf/builtin-record.c 	struct perf_session *session = rec->session;
session          1039 tools/perf/builtin-record.c 		perf_header__set_feat(&session->header, feat);
session          1042 tools/perf/builtin-record.c 		perf_header__clear_feat(&session->header, HEADER_BUILD_ID);
session          1045 tools/perf/builtin-record.c 		perf_header__clear_feat(&session->header, HEADER_TRACING_DATA);
session          1048 tools/perf/builtin-record.c 		perf_header__clear_feat(&session->header, HEADER_BRANCH_STACK);
session          1051 tools/perf/builtin-record.c 		perf_header__clear_feat(&session->header, HEADER_AUXTRACE);
session          1054 tools/perf/builtin-record.c 		perf_header__clear_feat(&session->header, HEADER_CLOCKID);
session          1056 tools/perf/builtin-record.c 	perf_header__clear_feat(&session->header, HEADER_DIR_FORMAT);
session          1058 tools/perf/builtin-record.c 		perf_header__clear_feat(&session->header, HEADER_COMPRESSED);
session          1060 tools/perf/builtin-record.c 	perf_header__clear_feat(&session->header, HEADER_STAT);
session          1072 tools/perf/builtin-record.c 	rec->session->header.data_size += rec->bytes_written;
session          1079 tools/perf/builtin-record.c 			dsos__hit_all(rec->session);
session          1081 tools/perf/builtin-record.c 	perf_session__write_header(rec->session, rec->evlist, fd, true);
session          1100 tools/perf/builtin-record.c 						 &rec->session->machines.host,
session          1133 tools/perf/builtin-record.c 				    rec->session->header.data_offset,
session          1137 tools/perf/builtin-record.c 		rec->session->header.data_size = 0;
session          1221 tools/perf/builtin-record.c 	struct perf_session *session = rec->session;
session          1222 tools/perf/builtin-record.c 	struct machine *machine = &session->machines.host;
session          1244 tools/perf/builtin-record.c 		err = perf_event__synthesize_features(tool, session, rec->evlist,
session          1277 tools/perf/builtin-record.c 					session, process_synthesized_event);
session          1297 tools/perf/builtin-record.c 		machines__process_guests(&session->machines,
session          1323 tools/perf/builtin-record.c 	err = perf_event__synthesize_bpf_events(session, process_synthesized_event,
session          1344 tools/perf/builtin-record.c 	struct perf_session *session;
session          1369 tools/perf/builtin-record.c 	session = perf_session__new(data, false, tool);
session          1370 tools/perf/builtin-record.c 	if (IS_ERR(session)) {
session          1372 tools/perf/builtin-record.c 		return PTR_ERR(session);
session          1376 tools/perf/builtin-record.c 	rec->session = session;
session          1378 tools/perf/builtin-record.c 	if (zstd_init(&session->zstd_data, rec->opts.comp_level) < 0) {
session          1383 tools/perf/builtin-record.c 	session->header.env.comp_type  = PERF_COMP_ZSTD;
session          1384 tools/perf/builtin-record.c 	session->header.env.comp_level = rec->opts.comp_level;
session          1389 tools/perf/builtin-record.c 		session->header.env.clockid_res_ns = rec->opts.clockid_res_ns;
session          1415 tools/perf/builtin-record.c 	session->header.env.comp_mmap_len = session->evlist->core.mmap_len;
session          1437 tools/perf/builtin-record.c 		perf_header__clear_feat(&session->header, HEADER_GROUP_DESC);
session          1444 tools/perf/builtin-record.c 		err = perf_session__write_header(session, rec->evlist, fd, false);
session          1450 tools/perf/builtin-record.c 	    && !perf_header__has_feat(&session->header, HEADER_BUILD_ID)) {
session          1458 tools/perf/builtin-record.c 		bpf_event__add_sb_event(&sb_evlist, &session->header.env);
session          1492 tools/perf/builtin-record.c 		struct machine *machine = &session->machines.host;
session          1667 tools/perf/builtin-record.c 	if (rec->session->bytes_transferred && rec->session->bytes_compressed) {
session          1668 tools/perf/builtin-record.c 		ratio = (float)rec->session->bytes_transferred/(float)rec->session->bytes_compressed;
session          1669 tools/perf/builtin-record.c 		session->header.env.comp_ratio = ratio + 0.5;
session          1723 tools/perf/builtin-record.c 					rec->session->bytes_transferred / 1024.0 / 1024.0,
session          1730 tools/perf/builtin-record.c 	zstd_fini(&session->zstd_data);
session          1731 tools/perf/builtin-record.c 	perf_session__delete(session);
session            72 tools/perf/builtin-report.c 	struct perf_session	*session;
session           212 tools/perf/builtin-report.c static int process_feature_event(struct perf_session *session,
session           215 tools/perf/builtin-report.c 	struct report *rep = container_of(session->tool, struct report, tool);
session           218 tools/perf/builtin-report.c 		return perf_event__process_feature(session, event);
session           231 tools/perf/builtin-report.c 	setup_forced_leader(rep, session->evlist);
session           331 tools/perf/builtin-report.c 	struct perf_session *session = rep->session;
session           332 tools/perf/builtin-report.c 	u64 sample_type = perf_evlist__combined_sample_type(session->evlist);
session           333 tools/perf/builtin-report.c 	bool is_pipe = perf_data__is_pipe(session->data);
session           335 tools/perf/builtin-report.c 	if (session->itrace_synth_opts->callchain ||
session           337 tools/perf/builtin-report.c 	     perf_header__has_feat(&session->header, HEADER_AUXTRACE) &&
session           338 tools/perf/builtin-report.c 	     !session->itrace_synth_opts->set))
session           341 tools/perf/builtin-report.c 	if (session->itrace_synth_opts->last_branch)
session           397 tools/perf/builtin-report.c 	if (!(perf_evlist__combined_branch_type(session->evlist) &
session           526 tools/perf/builtin-report.c 	struct map *kernel_map = machine__kernel_map(&rep->session->machines.host);
session           529 tools/perf/builtin-report.c 	if (perf_evlist__exclude_kernel(rep->session->evlist))
session           565 tools/perf/builtin-report.c 	return hist_browser(rep->session->evlist, help, NULL, rep->min_percent);
session           571 tools/perf/builtin-report.c 	struct perf_session *session = rep->session;
session           572 tools/perf/builtin-report.c 	struct evlist *evlist = session->evlist;
session           586 tools/perf/builtin-report.c 						    &session->header.env,
session           614 tools/perf/builtin-report.c 	evlist__for_each_entry(rep->session->evlist, pos) {
session           662 tools/perf/builtin-report.c 	evlist__for_each_entry(rep->session->evlist, pos) {
session           678 tools/perf/builtin-report.c 	struct perf_session *session = rep->session;
session           680 tools/perf/builtin-report.c 	perf_session__fprintf_nr_events(session, stdout);
session           772 tools/perf/builtin-report.c 	struct perf_session *session = rep->session;
session           773 tools/perf/builtin-report.c 	struct machine      *machine = &session->machines.host;
session           840 tools/perf/builtin-report.c 	struct perf_session *session = rep->session;
session           842 tools/perf/builtin-report.c 	struct perf_data *data = session->data;
session           847 tools/perf/builtin-report.c 		ret = perf_session__cpu_bitmap(session, rep->cpu_list,
session           853 tools/perf/builtin-report.c 		session->itrace_synth_opts->cpu_bitmap = rep->cpu_bitmap;
session           874 tools/perf/builtin-report.c 	ret = perf_session__process_events(session);
session           888 tools/perf/builtin-report.c 	evlist__for_each_entry(session->evlist, pos)
session           893 tools/perf/builtin-report.c 			perf_session__fprintf(session, stdout);
session           896 tools/perf/builtin-report.c 			perf_session__fprintf_dsos(session, stdout);
session           899 tools/perf/builtin-report.c 			perf_session__fprintf_nr_events(session, stdout);
session           900 tools/perf/builtin-report.c 			perf_evlist__fprintf_nr_events(session->evlist, stdout);
session           919 tools/perf/builtin-report.c 	evlist__for_each_entry(session->evlist, pos)
session          1028 tools/perf/builtin-report.c 	struct perf_session *session;
session          1278 tools/perf/builtin-report.c 	session = perf_session__new(&data, false, &report.tool);
session          1279 tools/perf/builtin-report.c 	if (IS_ERR(session))
session          1280 tools/perf/builtin-report.c 		return PTR_ERR(session);
session          1282 tools/perf/builtin-report.c 	ret = evswitch__init(&report.evswitch, session->evlist, stderr);
session          1286 tools/perf/builtin-report.c 	if (zstd_init(&(session->zstd_data), 0) < 0)
session          1290 tools/perf/builtin-report.c 		ordered_events__set_alloc_size(&session->ordered_events,
session          1294 tools/perf/builtin-report.c 	session->itrace_synth_opts = &itrace_synth_opts;
session          1296 tools/perf/builtin-report.c 	report.session = session;
session          1298 tools/perf/builtin-report.c 	has_br_stack = perf_header__has_feat(&session->header,
session          1300 tools/perf/builtin-report.c 	if (perf_evlist__combined_sample_type(session->evlist) & PERF_SAMPLE_STACK_USER)
session          1303 tools/perf/builtin-report.c 	setup_forced_leader(&report, session->evlist);
session          1400 tools/perf/builtin-report.c 	    (setup_sorting(session->evlist) < 0)) {
session          1410 tools/perf/builtin-report.c 		perf_session__fprintf_info(session, stdout,
session          1449 tools/perf/builtin-report.c 	if (symbol__init(&session->header.env) < 0)
session          1453 tools/perf/builtin-report.c 		ret = perf_time__parse_for_ranges(report.time_str, session,
session          1465 tools/perf/builtin-report.c 	if (session->tevent.pevent &&
session          1466 tools/perf/builtin-report.c 	    tep_set_function_resolver(session->tevent.pevent,
session          1468 tools/perf/builtin-report.c 				      &session->machines.host) < 0) {
session          1478 tools/perf/builtin-report.c 		perf_session__delete(session);
session          1489 tools/perf/builtin-report.c 	zstd_fini(&(session->zstd_data));
session          1490 tools/perf/builtin-report.c 	perf_session__delete(session);
session          1793 tools/perf/builtin-sched.c 	struct perf_session *session;
session          1801 tools/perf/builtin-sched.c 	session = perf_session__new(&data, false, &sched->tool);
session          1802 tools/perf/builtin-sched.c 	if (IS_ERR(session)) {
session          1804 tools/perf/builtin-sched.c 		return PTR_ERR(session);
session          1807 tools/perf/builtin-sched.c 	symbol__init(&session->header.env);
session          1809 tools/perf/builtin-sched.c 	if (perf_session__set_tracepoints_handlers(session, handlers))
session          1812 tools/perf/builtin-sched.c 	if (perf_session__has_traces(session, "record -R")) {
session          1813 tools/perf/builtin-sched.c 		int err = perf_session__process_events(session);
session          1819 tools/perf/builtin-sched.c 		sched->nr_events      = session->evlist->stats.nr_events[0];
session          1820 tools/perf/builtin-sched.c 		sched->nr_lost_events = session->evlist->stats.total_lost;
session          1821 tools/perf/builtin-sched.c 		sched->nr_lost_chunks = session->evlist->stats.nr_events[PERF_RECORD_LOST];
session          1826 tools/perf/builtin-sched.c 	perf_session__delete(session);
session          2800 tools/perf/builtin-sched.c 				   struct perf_session *session)
session          2802 tools/perf/builtin-sched.c 	struct machine *m = &session->machines.host;
session          2971 tools/perf/builtin-sched.c 	struct perf_session *session;
session          2993 tools/perf/builtin-sched.c 	session = perf_session__new(&data, false, &sched->tool);
session          2994 tools/perf/builtin-sched.c 	if (IS_ERR(session))
session          2995 tools/perf/builtin-sched.c 		return PTR_ERR(session);
session          2997 tools/perf/builtin-sched.c 	evlist = session->evlist;
session          2999 tools/perf/builtin-sched.c 	symbol__init(&session->header.env);
session          3012 tools/perf/builtin-sched.c 	if (perf_session__set_tracepoints_handlers(session, handlers))
session          3016 tools/perf/builtin-sched.c 	if (!perf_evlist__find_tracepoint_by_name(session->evlist,
session          3023 tools/perf/builtin-sched.c 	    perf_session__set_tracepoints_handlers(session, migrate_handlers))
session          3027 tools/perf/builtin-sched.c 	sched->max_cpu = session->header.env.nr_cpus_online;
session          3040 tools/perf/builtin-sched.c 	err = perf_session__process_events(session);
session          3051 tools/perf/builtin-sched.c 		timehist_print_summary(sched, session);
session          3055 tools/perf/builtin-sched.c 	perf_session__delete(session);
session           393 tools/perf/builtin-script.c 				  struct perf_session *session)
session           398 tools/perf/builtin-script.c 	if (perf_header__has_feat(&session->header, HEADER_STAT))
session           401 tools/perf/builtin-script.c 	allow_user_set = perf_header__has_feat(&session->header,
session           405 tools/perf/builtin-script.c 		!perf_session__has_traces(session, "record -R"))
session           452 tools/perf/builtin-script.c 	    !(perf_evlist__combined_branch_type(session->evlist) &
session           516 tools/perf/builtin-script.c static int perf_session__check_output_opt(struct perf_session *session)
session           522 tools/perf/builtin-script.c 		evsel = perf_session__find_first_evtype(session, attr_type(j));
session           537 tools/perf/builtin-script.c 			perf_evsel__check_attr(evsel, session))
session           550 tools/perf/builtin-script.c 		evlist__for_each_entry(session->evlist, evsel) {
session           569 tools/perf/builtin-script.c 		evlist__for_each_entry(session->evlist, evsel) {
session          1634 tools/perf/builtin-script.c 	struct perf_session	*session;
session          1742 tools/perf/builtin-script.c 		perf_evlist__alloc_stats(script->session->evlist, false);
session          1837 tools/perf/builtin-script.c 			script->name_width = perf_evlist__max_name_len(script->session->evlist);
session          2058 tools/perf/builtin-script.c 						scr->session->data);
session          2080 tools/perf/builtin-script.c 		err = perf_evsel__check_attr(evsel, scr->session);
session          2092 tools/perf/builtin-script.c 	struct perf_session *session = script->session;
session          2093 tools/perf/builtin-script.c 	struct evsel *evsel = perf_evlist__id2evsel(session->evlist, sample->id);
session          2129 tools/perf/builtin-script.c 	struct perf_session *session = script->session;
session          2130 tools/perf/builtin-script.c 	struct evsel *evsel = perf_evlist__id2evsel(session->evlist, sample->id);
session          2167 tools/perf/builtin-script.c 	struct perf_session *session = script->session;
session          2168 tools/perf/builtin-script.c 	struct evsel *evsel = perf_evlist__id2evsel(session->evlist, sample->id);
session          2202 tools/perf/builtin-script.c 	struct perf_session *session = script->session;
session          2203 tools/perf/builtin-script.c 	struct evsel *evsel = perf_evlist__id2evsel(session->evlist, sample->id);
session          2237 tools/perf/builtin-script.c 	struct perf_session *session = script->session;
session          2238 tools/perf/builtin-script.c 	struct evsel *evsel = perf_evlist__id2evsel(session->evlist, sample->id);
session          2271 tools/perf/builtin-script.c 	struct perf_session *session = script->session;
session          2272 tools/perf/builtin-script.c 	struct evsel *evsel = perf_evlist__id2evsel(session->evlist, sample->id);
session          2305 tools/perf/builtin-script.c 	struct perf_session *session = script->session;
session          2306 tools/perf/builtin-script.c 	struct evsel *evsel = perf_evlist__id2evsel(session->evlist, sample->id);
session          2340 tools/perf/builtin-script.c 	struct perf_session *session = script->session;
session          2341 tools/perf/builtin-script.c 	struct evsel *evsel = perf_evlist__id2evsel(session->evlist, sample->id);
session          2376 tools/perf/builtin-script.c 	struct perf_session *session = script->session;
session          2377 tools/perf/builtin-script.c 	struct evsel *evsel = perf_evlist__id2evsel(session->evlist, sample->id);
session          2410 tools/perf/builtin-script.c 	struct evlist *evlist = script->session->evlist;
session          2425 tools/perf/builtin-script.c 	evlist__for_each_entry(script->session->evlist, evsel) {
session          2436 tools/perf/builtin-script.c 		evsel->priv = perf_evsel_script__new(evsel, script->session->data);
session          2458 tools/perf/builtin-script.c 	evlist__for_each_entry(script->session->evlist, evsel)
session          2468 tools/perf/builtin-script.c 	evlist__for_each_entry(script->session->evlist, evsel) {
session          2515 tools/perf/builtin-script.c 	ret = perf_session__process_events(script->session);
session          3021 tools/perf/builtin-script.c 			struct perf_session *session)
session          3054 tools/perf/builtin-script.c 			evlist__for_each_entry(session->evlist, pos) {
session          3085 tools/perf/builtin-script.c 	struct perf_session *session;
session          3093 tools/perf/builtin-script.c 	session = perf_session__new(&data, false, NULL);
session          3094 tools/perf/builtin-script.c 	if (IS_ERR(session))
session          3095 tools/perf/builtin-script.c 		return PTR_ERR(session);
session          3101 tools/perf/builtin-script.c 		perf_session__delete(session);
session          3136 tools/perf/builtin-script.c 					scripts_array[i], session))
session          3145 tools/perf/builtin-script.c 	perf_session__delete(session);
session          3239 tools/perf/builtin-script.c 	struct perf_session *session = script->session;
session          3240 tools/perf/builtin-script.c 	u64 sample_type = perf_evlist__combined_sample_type(session->evlist);
session          3254 tools/perf/builtin-script.c static int process_stat_round_event(struct perf_session *session,
session          3260 tools/perf/builtin-script.c 	evlist__for_each_entry(session->evlist, counter) {
session          3269 tools/perf/builtin-script.c static int process_stat_config_event(struct perf_session *session __maybe_unused,
session          3278 tools/perf/builtin-script.c 	struct evlist *evlist = script->session->evlist;
session          3296 tools/perf/builtin-script.c int process_thread_map_event(struct perf_session *session,
session          3299 tools/perf/builtin-script.c 	struct perf_tool *tool = session->tool;
session          3315 tools/perf/builtin-script.c int process_cpu_map_event(struct perf_session *session,
session          3318 tools/perf/builtin-script.c 	struct perf_tool *tool = session->tool;
session          3333 tools/perf/builtin-script.c static int process_feature_event(struct perf_session *session,
session          3337 tools/perf/builtin-script.c 		return perf_event__process_feature(session, event);
session          3342 tools/perf/builtin-script.c static int perf_script__process_auxtrace_info(struct perf_session *session,
session          3345 tools/perf/builtin-script.c 	struct perf_tool *tool = session->tool;
session          3347 tools/perf/builtin-script.c 	int ret = perf_event__process_auxtrace_info(session, event);
session          3408 tools/perf/builtin-script.c 	struct perf_session *session;
session          3759 tools/perf/builtin-script.c 	session = perf_session__new(&data, false, &script.tool);
session          3760 tools/perf/builtin-script.c 	if (IS_ERR(session))
session          3761 tools/perf/builtin-script.c 		return PTR_ERR(session);
session          3765 tools/perf/builtin-script.c 		perf_session__fprintf_info(session, stdout, show_full_info);
session          3772 tools/perf/builtin-script.c 	if (symbol__init(&session->header.env) < 0)
session          3777 tools/perf/builtin-script.c 	    !strcmp(uts.machine, session->header.env.arch) ||
session          3779 tools/perf/builtin-script.c 	     !strcmp(session->header.env.arch, "i386")))
session          3782 tools/perf/builtin-script.c 	script.session = session;
session          3789 tools/perf/builtin-script.c 	session->itrace_synth_opts = &itrace_synth_opts;
session          3792 tools/perf/builtin-script.c 		err = perf_session__cpu_bitmap(session, cpu_list, cpu_bitmap);
session          3803 tools/perf/builtin-script.c 	if (session->tevent.pevent &&
session          3804 tools/perf/builtin-script.c 	    tep_set_function_resolver(session->tevent.pevent,
session          3806 tools/perf/builtin-script.c 				      &session->machines.host) < 0) {
session          3848 tools/perf/builtin-script.c 		err = scripting_ops->generate_script(session->tevent.pevent,
session          3862 tools/perf/builtin-script.c 	err = perf_session__check_output_opt(session);
session          3867 tools/perf/builtin-script.c 		err = perf_time__parse_for_ranges_reltime(script.time_str, session,
session          3880 tools/perf/builtin-script.c 	err = evswitch__init(&script.evswitch, session->evlist, stderr);
session          3894 tools/perf/builtin-script.c 	perf_evlist__free_stats(session->evlist);
session          3895 tools/perf/builtin-script.c 	perf_session__delete(session);
session           167 tools/perf/builtin-stat.c 	struct perf_session	*session;
session           538 tools/perf/builtin-stat.c 			err = perf_session__write_header(perf_stat.session, evsel_list,
session          1032 tools/perf/builtin-stat.c 	return perf_env__get_socket(map, idx, &perf_stat.session->header.env);
session          1037 tools/perf/builtin-stat.c 	return perf_env__get_die(map, idx, &perf_stat.session->header.env);
session          1043 tools/perf/builtin-stat.c 	return perf_env__get_core(map, idx, &perf_stat.session->header.env);
session          1048 tools/perf/builtin-stat.c 	struct perf_env *env = &st->session->header.env;
session          1409 tools/perf/builtin-stat.c static void init_features(struct perf_session *session)
session          1414 tools/perf/builtin-stat.c 		perf_header__set_feat(&session->header, feat);
session          1416 tools/perf/builtin-stat.c 	perf_header__clear_feat(&session->header, HEADER_DIR_FORMAT);
session          1417 tools/perf/builtin-stat.c 	perf_header__clear_feat(&session->header, HEADER_BUILD_ID);
session          1418 tools/perf/builtin-stat.c 	perf_header__clear_feat(&session->header, HEADER_TRACING_DATA);
session          1419 tools/perf/builtin-stat.c 	perf_header__clear_feat(&session->header, HEADER_BRANCH_STACK);
session          1420 tools/perf/builtin-stat.c 	perf_header__clear_feat(&session->header, HEADER_AUXTRACE);
session          1425 tools/perf/builtin-stat.c 	struct perf_session *session;
session          1439 tools/perf/builtin-stat.c 	session = perf_session__new(data, false, NULL);
session          1440 tools/perf/builtin-stat.c 	if (IS_ERR(session)) {
session          1442 tools/perf/builtin-stat.c 		return PTR_ERR(session);
session          1445 tools/perf/builtin-stat.c 	init_features(session);
session          1447 tools/perf/builtin-stat.c 	session->evlist   = evsel_list;
session          1448 tools/perf/builtin-stat.c 	perf_stat.session = session;
session          1453 tools/perf/builtin-stat.c static int process_stat_round_event(struct perf_session *session,
session          1459 tools/perf/builtin-stat.c 	const char **argv = session->header.env.cmdline_argv;
session          1460 tools/perf/builtin-stat.c 	int argc = session->header.env.nr_cmdline;
session          1479 tools/perf/builtin-stat.c int process_stat_config_event(struct perf_session *session,
session          1482 tools/perf/builtin-stat.c 	struct perf_tool *tool = session->tool;
session          1522 tools/perf/builtin-stat.c int process_thread_map_event(struct perf_session *session,
session          1525 tools/perf/builtin-stat.c 	struct perf_tool *tool = session->tool;
session          1541 tools/perf/builtin-stat.c int process_cpu_map_event(struct perf_session *session,
session          1544 tools/perf/builtin-stat.c 	struct perf_tool *tool = session->tool;
session          1610 tools/perf/builtin-stat.c 	struct perf_session *session;
session          1638 tools/perf/builtin-stat.c 	session = perf_session__new(&perf_stat.data, false, &perf_stat.tool);
session          1639 tools/perf/builtin-stat.c 	if (IS_ERR(session))
session          1640 tools/perf/builtin-stat.c 		return PTR_ERR(session);
session          1642 tools/perf/builtin-stat.c 	perf_stat.session  = session;
session          1644 tools/perf/builtin-stat.c 	evsel_list         = session->evlist;
session          1646 tools/perf/builtin-stat.c 	ret = perf_session__process_events(session);
session          1650 tools/perf/builtin-stat.c 	perf_session__delete(session);
session          1985 tools/perf/builtin-stat.c 							     &perf_stat.session->machines.host);
session          1997 tools/perf/builtin-stat.c 			perf_stat.session->header.data_size += perf_stat.bytes_written;
session          1998 tools/perf/builtin-stat.c 			perf_session__write_header(perf_stat.session, evsel_list, fd, true);
session          2002 tools/perf/builtin-stat.c 		perf_session__delete(perf_stat.session);
session          1601 tools/perf/builtin-timechart.c 	struct perf_session *session = perf_session__new(&data, false,
session          1605 tools/perf/builtin-timechart.c 	if (IS_ERR(session))
session          1606 tools/perf/builtin-timechart.c 		return PTR_ERR(session);
session          1608 tools/perf/builtin-timechart.c 	symbol__init(&session->header.env);
session          1610 tools/perf/builtin-timechart.c 	(void)perf_header__process_sections(&session->header,
session          1611 tools/perf/builtin-timechart.c 					    perf_data__fd(session->data),
session          1615 tools/perf/builtin-timechart.c 	if (!perf_session__has_traces(session, "timechart record"))
session          1618 tools/perf/builtin-timechart.c 	if (perf_session__set_tracepoints_handlers(session,
session          1624 tools/perf/builtin-timechart.c 	ret = perf_session__process_events(session);
session          1637 tools/perf/builtin-timechart.c 	perf_session__delete(session);
session           560 tools/perf/builtin-top.c 				perf_session__fprintf_dsos(top->session, stderr);
session           642 tools/perf/builtin-top.c 				      &top->session->header.env,
session           757 tools/perf/builtin-top.c 		       top->session->evlist->stats.nr_unprocessable_samples++);
session           770 tools/perf/builtin-top.c 		if (!perf_evlist__exclude_kernel(top->session->evlist)) {
session          1129 tools/perf/builtin-top.c 	struct perf_session *session = top->session;
session          1148 tools/perf/builtin-top.c 	evsel = perf_evlist__id2evsel(session->evlist, sample.id);
session          1162 tools/perf/builtin-top.c 		machine = &session->machines.host;
session          1168 tools/perf/builtin-top.c 		machine = &session->machines.host;
session          1172 tools/perf/builtin-top.c 		machine = perf_session__find_machine(session,
session          1185 tools/perf/builtin-top.c 		machine = &session->machines.host;
session          1200 tools/perf/builtin-top.c 		++session->evlist->stats.nr_unknown_events;
session          1225 tools/perf/builtin-top.c 		ret = perf_env__lookup_objdump(&top->session->header.env,
session          1235 tools/perf/builtin-top.c 	if (perf_session__register_idle_thread(top->session) < 0)
session          1246 tools/perf/builtin-top.c 	ret = perf_event__synthesize_bpf_events(top->session, perf_event__process,
session          1247 tools/perf/builtin-top.c 						&top->session->machines.host,
session          1252 tools/perf/builtin-top.c 	machine__synthesize_threads(&top->session->machines.host, &opts->target,
session          1274 tools/perf/builtin-top.c 	top->session->evlist = top->evlist;
session          1275 tools/perf/builtin-top.c 	perf_session__set_id_hdr_size(top->session);
session          1677 tools/perf/builtin-top.c 	top.session = perf_session__new(NULL, false, NULL);
session          1678 tools/perf/builtin-top.c 	if (IS_ERR(top.session)) {
session          1679 tools/perf/builtin-top.c 		status = PTR_ERR(top.session);
session          1698 tools/perf/builtin-top.c 	perf_session__delete(top.session);
session          3569 tools/perf/builtin-trace.c 	struct perf_session *session;
session          3590 tools/perf/builtin-trace.c 	session = perf_session__new(&data, false, &trace->tool);
session          3591 tools/perf/builtin-trace.c 	if (IS_ERR(session))
session          3592 tools/perf/builtin-trace.c 		return PTR_ERR(session);
session          3600 tools/perf/builtin-trace.c 	if (symbol__init(&session->header.env) < 0)
session          3603 tools/perf/builtin-trace.c 	trace->host = &session->machines.host;
session          3605 tools/perf/builtin-trace.c 	err = perf_session__set_tracepoints_handlers(session, handlers);
session          3609 tools/perf/builtin-trace.c 	evsel = perf_evlist__find_tracepoint_by_name(session->evlist,
session          3613 tools/perf/builtin-trace.c 		evsel = perf_evlist__find_tracepoint_by_name(session->evlist,
session          3623 tools/perf/builtin-trace.c 	evsel = perf_evlist__find_tracepoint_by_name(session->evlist,
session          3626 tools/perf/builtin-trace.c 		evsel = perf_evlist__find_tracepoint_by_name(session->evlist,
session          3635 tools/perf/builtin-trace.c 	evlist__for_each_entry(session->evlist, evsel) {
session          3645 tools/perf/builtin-trace.c 	err = perf_session__process_events(session);
session          3653 tools/perf/builtin-trace.c 	perf_session__delete(session);
session            76 tools/perf/tests/time-utils-test.c 	struct perf_session session = { .evlist = &evlist };
session            88 tools/perf/tests/time-utils-test.c 	err = perf_time__parse_for_ranges(d->str, &session, &ptime, &range_size,
session            34 tools/perf/tests/topology.c 	struct perf_session *session;
session            42 tools/perf/tests/topology.c 	session = perf_session__new(&data, false, NULL);
session            43 tools/perf/tests/topology.c 	TEST_ASSERT_VAL("can't get session", !IS_ERR(session));
session            45 tools/perf/tests/topology.c 	session->evlist = perf_evlist__new_default();
session            46 tools/perf/tests/topology.c 	TEST_ASSERT_VAL("can't get evlist", session->evlist);
session            48 tools/perf/tests/topology.c 	perf_header__set_feat(&session->header, HEADER_CPU_TOPOLOGY);
session            49 tools/perf/tests/topology.c 	perf_header__set_feat(&session->header, HEADER_NRCPUS);
session            50 tools/perf/tests/topology.c 	perf_header__set_feat(&session->header, HEADER_ARCH);
session            52 tools/perf/tests/topology.c 	session->header.data_size += DATA_SIZE;
session            55 tools/perf/tests/topology.c 			!perf_session__write_header(session, session->evlist, data.file.fd, true));
session            57 tools/perf/tests/topology.c 	perf_session__delete(session);
session            64 tools/perf/tests/topology.c 	struct perf_session *session;
session            73 tools/perf/tests/topology.c 	session = perf_session__new(&data, false, NULL);
session            74 tools/perf/tests/topology.c 	TEST_ASSERT_VAL("can't get session", !IS_ERR(session));
session            94 tools/perf/tests/topology.c 	if (!session->header.env.cpu)
session            97 tools/perf/tests/topology.c 	for (i = 0; i < session->header.env.nr_cpus_avail; i++) {
session           101 tools/perf/tests/topology.c 			 session->header.env.cpu[i].core_id,
session           102 tools/perf/tests/topology.c 			 session->header.env.cpu[i].socket_id);
session           107 tools/perf/tests/topology.c 			(session->header.env.cpu[map->map[i]].core_id == (cpu_map__get_core(map, i, NULL) & 0xffff)));
session           110 tools/perf/tests/topology.c 			(session->header.env.cpu[map->map[i]].socket_id == cpu_map__get_socket(map, i, NULL)));
session           113 tools/perf/tests/topology.c 	perf_session__delete(session);
session            99 tools/perf/ui/browsers/header.c 	struct perf_session *session;
session           104 tools/perf/ui/browsers/header.c 	session = container_of(env, struct perf_session, header.env);
session           105 tools/perf/ui/browsers/header.c 	perf_header__fprintf_info(session, fp, true);
session            33 tools/perf/util/arm-spe.c 	struct perf_session		*session;
session            95 tools/perf/util/arm-spe.c static int arm_spe_process_event(struct perf_session *session __maybe_unused,
session           103 tools/perf/util/arm-spe.c static int arm_spe_process_auxtrace_event(struct perf_session *session,
session           107 tools/perf/util/arm-spe.c 	struct arm_spe *spe = container_of(session->auxtrace, struct arm_spe,
session           111 tools/perf/util/arm-spe.c 	int fd = perf_data__fd(session->data);
session           114 tools/perf/util/arm-spe.c 	if (perf_data__is_pipe(session->data)) {
session           122 tools/perf/util/arm-spe.c 	err = auxtrace_queues__add_event(&spe->queues, session, event,
session           139 tools/perf/util/arm-spe.c static int arm_spe_flush(struct perf_session *session __maybe_unused,
session           154 tools/perf/util/arm-spe.c static void arm_spe_free_events(struct perf_session *session)
session           156 tools/perf/util/arm-spe.c 	struct arm_spe *spe = container_of(session->auxtrace, struct arm_spe,
session           168 tools/perf/util/arm-spe.c static void arm_spe_free(struct perf_session *session)
session           170 tools/perf/util/arm-spe.c 	struct arm_spe *spe = container_of(session->auxtrace, struct arm_spe,
session           174 tools/perf/util/arm-spe.c 	arm_spe_free_events(session);
session           175 tools/perf/util/arm-spe.c 	session->auxtrace = NULL;
session           192 tools/perf/util/arm-spe.c 				  struct perf_session *session)
session           211 tools/perf/util/arm-spe.c 	spe->session = session;
session           212 tools/perf/util/arm-spe.c 	spe->machine = &session->machines.host; /* No kvm support */
session           221 tools/perf/util/arm-spe.c 	session->auxtrace = &spe->auxtrace;
session            28 tools/perf/util/arm-spe.h 				  struct perf_session *session);
session            60 tools/perf/util/auxtrace.c static bool auxtrace__dont_decode(struct perf_session *session)
session            62 tools/perf/util/auxtrace.c 	return !session->itrace_synth_opts ||
session            63 tools/perf/util/auxtrace.c 	       session->itrace_synth_opts->dont_decode;
session           214 tools/perf/util/auxtrace.c static void *auxtrace_copy_data(u64 size, struct perf_session *session)
session           216 tools/perf/util/auxtrace.c 	int fd = perf_data__fd(session->data);
session           305 tools/perf/util/auxtrace.c static bool filter_cpu(struct perf_session *session, int cpu)
session           307 tools/perf/util/auxtrace.c 	unsigned long *cpu_bitmap = session->itrace_synth_opts->cpu_bitmap;
session           313 tools/perf/util/auxtrace.c 				       struct perf_session *session,
session           320 tools/perf/util/auxtrace.c 	if (filter_cpu(session, buffer->cpu))
session           327 tools/perf/util/auxtrace.c 	if (session->one_mmap) {
session           328 tools/perf/util/auxtrace.c 		buffer->data = buffer->data_offset - session->one_mmap_offset +
session           329 tools/perf/util/auxtrace.c 			       session->one_mmap_addr;
session           330 tools/perf/util/auxtrace.c 	} else if (perf_data__is_pipe(session->data)) {
session           331 tools/perf/util/auxtrace.c 		buffer->data = auxtrace_copy_data(buffer->size, session);
session           358 tools/perf/util/auxtrace.c 			       struct perf_session *session,
session           373 tools/perf/util/auxtrace.c 	return auxtrace_queues__add_buffer(queues, session, idx, &buffer,
session           378 tools/perf/util/auxtrace.c 					      struct perf_session *session,
session           385 tools/perf/util/auxtrace.c 	err = perf_session__peek_event(session, file_offset, buf,
session           397 tools/perf/util/auxtrace.c 		err = auxtrace_queues__add_event(queues, session, event,
session           523 tools/perf/util/auxtrace.c 			       struct perf_session *session,
session           528 tools/perf/util/auxtrace.c 		return itr->info_fill(itr, session, auxtrace_info, priv_size);
session           740 tools/perf/util/auxtrace.c int auxtrace_index__process(int fd, u64 size, struct perf_session *session,
session           743 tools/perf/util/auxtrace.c 	struct list_head *head = &session->auxtrace_index;
session           767 tools/perf/util/auxtrace.c 						struct perf_session *session,
session           770 tools/perf/util/auxtrace.c 	return auxtrace_queues__add_indexed_event(queues, session,
session           775 tools/perf/util/auxtrace.c 				   struct perf_session *session)
session           782 tools/perf/util/auxtrace.c 	if (auxtrace__dont_decode(session))
session           785 tools/perf/util/auxtrace.c 	list_for_each_entry(auxtrace_index, &session->auxtrace_index, list) {
session           789 tools/perf/util/auxtrace.c 								   session,
session           890 tools/perf/util/auxtrace.c 					 struct perf_session *session,
session           898 tools/perf/util/auxtrace.c 	priv_size = auxtrace_record__info_priv_size(itr, session->evlist);
session           906 tools/perf/util/auxtrace.c 	err = auxtrace_record__info_fill(itr, session, &ev->auxtrace_info,
session           917 tools/perf/util/auxtrace.c int perf_event__process_auxtrace_info(struct perf_session *session,
session           927 tools/perf/util/auxtrace.c 		return intel_pt_process_auxtrace_info(event, session);
session           929 tools/perf/util/auxtrace.c 		return intel_bts_process_auxtrace_info(event, session);
session           931 tools/perf/util/auxtrace.c 		return arm_spe_process_auxtrace_info(event, session);
session           933 tools/perf/util/auxtrace.c 		return cs_etm__process_auxtrace_info(event, session);
session           935 tools/perf/util/auxtrace.c 		return s390_cpumsf_process_auxtrace_info(event, session);
session           942 tools/perf/util/auxtrace.c s64 perf_event__process_auxtrace(struct perf_session *session,
session           953 tools/perf/util/auxtrace.c 	if (auxtrace__dont_decode(session))
session           956 tools/perf/util/auxtrace.c 	if (!session->auxtrace || event->header.type != PERF_RECORD_AUXTRACE)
session           959 tools/perf/util/auxtrace.c 	err = session->auxtrace->process_auxtrace_event(session, event, session->tool);
session          1199 tools/perf/util/auxtrace.c void perf_session__auxtrace_error_inc(struct perf_session *session,
session          1205 tools/perf/util/auxtrace.c 		session->evlist->stats.nr_auxtrace_errors[e->type] += 1;
session          1221 tools/perf/util/auxtrace.c int perf_event__process_auxtrace_error(struct perf_session *session,
session          1224 tools/perf/util/auxtrace.c 	if (auxtrace__dont_decode(session))
session          2202 tools/perf/util/auxtrace.c int auxtrace__process_event(struct perf_session *session, union perf_event *event,
session          2205 tools/perf/util/auxtrace.c 	if (!session->auxtrace)
session          2208 tools/perf/util/auxtrace.c 	return session->auxtrace->process_event(session, event, sample, tool);
session          2211 tools/perf/util/auxtrace.c int auxtrace__flush_events(struct perf_session *session, struct perf_tool *tool)
session          2213 tools/perf/util/auxtrace.c 	if (!session->auxtrace)
session          2216 tools/perf/util/auxtrace.c 	return session->auxtrace->flush_events(session, tool);
session          2219 tools/perf/util/auxtrace.c void auxtrace__free_events(struct perf_session *session)
session          2221 tools/perf/util/auxtrace.c 	if (!session->auxtrace)
session          2224 tools/perf/util/auxtrace.c 	return session->auxtrace->free_events(session);
session          2227 tools/perf/util/auxtrace.c void auxtrace__free(struct perf_session *session)
session          2229 tools/perf/util/auxtrace.c 	if (!session->auxtrace)
session          2232 tools/perf/util/auxtrace.c 	return session->auxtrace->free(session);
session           149 tools/perf/util/auxtrace.h 	int (*process_event)(struct perf_session *session,
session           153 tools/perf/util/auxtrace.h 	int (*process_auxtrace_event)(struct perf_session *session,
session           156 tools/perf/util/auxtrace.h 	int (*flush_events)(struct perf_session *session,
session           158 tools/perf/util/auxtrace.h 	void (*free_events)(struct perf_session *session);
session           159 tools/perf/util/auxtrace.h 	void (*free)(struct perf_session *session);
session           324 tools/perf/util/auxtrace.h 			 struct perf_session *session,
session           462 tools/perf/util/auxtrace.h 			       struct perf_session *session,
session           467 tools/perf/util/auxtrace.h 				   struct perf_session *session);
session           506 tools/perf/util/auxtrace.h 			       struct perf_session *session,
session           520 tools/perf/util/auxtrace.h int auxtrace_index__process(int fd, u64 size, struct perf_session *session,
session           528 tools/perf/util/auxtrace.h int perf_event__process_auxtrace_info(struct perf_session *session,
session           530 tools/perf/util/auxtrace.h s64 perf_event__process_auxtrace(struct perf_session *session,
session           532 tools/perf/util/auxtrace.h int perf_event__process_auxtrace_error(struct perf_session *session,
session           540 tools/perf/util/auxtrace.h void perf_session__auxtrace_error_inc(struct perf_session *session,
session           550 tools/perf/util/auxtrace.h int auxtrace__process_event(struct perf_session *session, union perf_event *event,
session           552 tools/perf/util/auxtrace.h int auxtrace__flush_events(struct perf_session *session, struct perf_tool *tool);
session           553 tools/perf/util/auxtrace.h void auxtrace__free_events(struct perf_session *session);
session           554 tools/perf/util/auxtrace.h void auxtrace__free(struct perf_session *session);
session           617 tools/perf/util/auxtrace.h void perf_session__auxtrace_error_inc(struct perf_session *session
session           651 tools/perf/util/auxtrace.h int auxtrace__process_event(struct perf_session *session __maybe_unused,
session           660 tools/perf/util/auxtrace.h int auxtrace__flush_events(struct perf_session *session __maybe_unused,
session           667 tools/perf/util/auxtrace.h void auxtrace__free_events(struct perf_session *session __maybe_unused)
session           677 tools/perf/util/auxtrace.h void auxtrace__free(struct perf_session *session __maybe_unused)
session           691 tools/perf/util/auxtrace.h 			    struct perf_session *session __maybe_unused,
session           157 tools/perf/util/bpf-event.c static int perf_event__synthesize_one_bpf_prog(struct perf_session *session,
session           167 tools/perf/util/bpf-event.c 	struct perf_tool *tool = session->tool;
session           180 tools/perf/util/bpf-event.c 	env = session->data ? &session->header.env : &perf_env;
session           295 tools/perf/util/bpf-event.c int perf_event__synthesize_bpf_events(struct perf_session *session,
session           329 tools/perf/util/bpf-event.c 		err = perf_event__synthesize_one_bpf_prog(session, process,
session           363 tools/perf/util/build-id.c int perf_session__write_buildid_table(struct perf_session *session,
session           367 tools/perf/util/build-id.c 	int err = machine__write_buildid_table(&session->machines.host, fd);
session           372 tools/perf/util/build-id.c 	for (nd = rb_first_cached(&session->machines.guests); nd;
session           397 tools/perf/util/build-id.c int dsos__hit_all(struct perf_session *session)
session           402 tools/perf/util/build-id.c 	err = machine__hit_all_dsos(&session->machines.host);
session           406 tools/perf/util/build-id.c 	for (nd = rb_first_cached(&session->machines.guests); nd;
session           847 tools/perf/util/build-id.c int perf_session__cache_build_ids(struct perf_session *session)
session           858 tools/perf/util/build-id.c 	ret = machine__cache_build_ids(&session->machines.host);
session           860 tools/perf/util/build-id.c 	for (nd = rb_first_cached(&session->machines.guests); nd;
session           873 tools/perf/util/build-id.c bool perf_session__read_build_ids(struct perf_session *session, bool with_hits)
session           876 tools/perf/util/build-id.c 	bool ret = machine__read_build_ids(&session->machines.host, with_hits);
session           878 tools/perf/util/build-id.c 	for (nd = rb_first_cached(&session->machines.guests); nd;
session            30 tools/perf/util/build-id.h int dsos__hit_all(struct perf_session *session);
session            32 tools/perf/util/build-id.h bool perf_session__read_build_ids(struct perf_session *session, bool with_hits);
session            33 tools/perf/util/build-id.h int perf_session__write_buildid_table(struct perf_session *session,
session            35 tools/perf/util/build-id.h int perf_session__cache_build_ids(struct perf_session *session);
session            47 tools/perf/util/cs-etm.c 	struct perf_session *session;
session           504 tools/perf/util/cs-etm.c static int cs_etm__flush_events(struct perf_session *session,
session           508 tools/perf/util/cs-etm.c 	struct cs_etm_auxtrace *etm = container_of(session->auxtrace,
session           577 tools/perf/util/cs-etm.c static void cs_etm__free_events(struct perf_session *session)
session           580 tools/perf/util/cs-etm.c 	struct cs_etm_auxtrace *aux = container_of(session->auxtrace,
session           593 tools/perf/util/cs-etm.c static void cs_etm__free(struct perf_session *session)
session           597 tools/perf/util/cs-etm.c 	struct cs_etm_auxtrace *aux = container_of(session->auxtrace,
session           600 tools/perf/util/cs-etm.c 	cs_etm__free_events(session);
session           601 tools/perf/util/cs-etm.c 	session->auxtrace = NULL;
session          1024 tools/perf/util/cs-etm.c 		int fd = perf_data__fd(etmq->etm->session->data);
session          1149 tools/perf/util/cs-etm.c 	ret = perf_session__deliver_synth_event(etm->session, event, &sample);
session          1220 tools/perf/util/cs-etm.c 	ret = perf_session__deliver_synth_event(etm->session, event, &sample);
session          1232 tools/perf/util/cs-etm.c 	struct perf_session *session;
session          1243 tools/perf/util/cs-etm.c 	return perf_session__deliver_synth_event(cs_etm_synth->session,
session          1247 tools/perf/util/cs-etm.c static int cs_etm__synth_event(struct perf_session *session,
session          1253 tools/perf/util/cs-etm.c 	cs_etm_synth.session = session;
session          1260 tools/perf/util/cs-etm.c 				struct perf_session *session)
session          1262 tools/perf/util/cs-etm.c 	struct evlist *evlist = session->evlist;
session          1310 tools/perf/util/cs-etm.c 		err = cs_etm__synth_event(session, &attr, id);
session          1327 tools/perf/util/cs-etm.c 		err = cs_etm__synth_event(session, &attr, id);
session          2248 tools/perf/util/cs-etm.c static int cs_etm__process_event(struct perf_session *session,
session          2255 tools/perf/util/cs-etm.c 	struct cs_etm_auxtrace *etm = container_of(session->auxtrace,
session          2295 tools/perf/util/cs-etm.c static int cs_etm__process_auxtrace_event(struct perf_session *session,
session          2299 tools/perf/util/cs-etm.c 	struct cs_etm_auxtrace *etm = container_of(session->auxtrace,
session          2305 tools/perf/util/cs-etm.c 		int fd = perf_data__fd(session->data);
session          2306 tools/perf/util/cs-etm.c 		bool is_pipe = perf_data__is_pipe(session->data);
session          2317 tools/perf/util/cs-etm.c 		err = auxtrace_queues__add_event(&etm->queues, session,
session          2335 tools/perf/util/cs-etm.c 	struct evlist *evlist = etm->session->evlist;
session          2398 tools/perf/util/cs-etm.c 				  struct perf_session *session)
session          2539 tools/perf/util/cs-etm.c 	etm->session = session;
session          2540 tools/perf/util/cs-etm.c 	etm->machine = &session->machines.host;
session          2554 tools/perf/util/cs-etm.c 	session->auxtrace = &etm->auxtrace;
session          2582 tools/perf/util/cs-etm.c 	if (session->itrace_synth_opts->set) {
session          2583 tools/perf/util/cs-etm.c 		etm->synth_opts = *session->itrace_synth_opts;
session          2586 tools/perf/util/cs-etm.c 				session->itrace_synth_opts->default_no_sample);
session          2590 tools/perf/util/cs-etm.c 	err = cs_etm__synth_events(etm, session);
session          2594 tools/perf/util/cs-etm.c 	err = auxtrace_queues__process_index(&etm->queues, session);
session          2606 tools/perf/util/cs-etm.c 	session->auxtrace = NULL;
session           177 tools/perf/util/cs-etm.h 				  struct perf_session *session);
session           189 tools/perf/util/cs-etm.h 			      struct perf_session *session __maybe_unused)
session          1203 tools/perf/util/data-convert-bt.c static int setup_events(struct ctf_writer *cw, struct perf_session *session)
session          1205 tools/perf/util/data-convert-bt.c 	struct evlist *evlist = session->evlist;
session          1288 tools/perf/util/data-convert-bt.c 				   struct perf_session *session __maybe_unused)
session          1310 tools/perf/util/data-convert-bt.c static void cleanup_events(struct perf_session *session)
session          1312 tools/perf/util/data-convert-bt.c 	struct evlist *evlist = session->evlist;
session          1324 tools/perf/util/data-convert-bt.c 	session->evlist = NULL;
session          1327 tools/perf/util/data-convert-bt.c static int setup_streams(struct ctf_writer *cw, struct perf_session *session)
session          1330 tools/perf/util/data-convert-bt.c 	struct perf_header *ph = &session->header;
session          1361 tools/perf/util/data-convert-bt.c 				 struct perf_session *session)
session          1363 tools/perf/util/data-convert-bt.c 	struct perf_header *header = &session->header;
session          1579 tools/perf/util/data-convert-bt.c 	struct perf_session *session;
session          1622 tools/perf/util/data-convert-bt.c 	session = perf_session__new(&data, 0, &c.tool);
session          1623 tools/perf/util/data-convert-bt.c 	if (IS_ERR(session)) {
session          1624 tools/perf/util/data-convert-bt.c 		err = PTR_ERR(session);
session          1629 tools/perf/util/data-convert-bt.c 		ordered_events__set_alloc_size(&session->ordered_events,
session          1634 tools/perf/util/data-convert-bt.c 	if (ctf_writer__setup_env(cw, session))
session          1638 tools/perf/util/data-convert-bt.c 	if (setup_events(cw, session))
session          1641 tools/perf/util/data-convert-bt.c 	if (opts->all && setup_non_sample_events(cw, session))
session          1644 tools/perf/util/data-convert-bt.c 	if (setup_streams(cw, session))
session          1647 tools/perf/util/data-convert-bt.c 	err = perf_session__process_events(session);
session          1667 tools/perf/util/data-convert-bt.c 	cleanup_events(session);
session          1668 tools/perf/util/data-convert-bt.c 	perf_session__delete(session);
session          1674 tools/perf/util/data-convert-bt.c 	perf_session__delete(session);
session           308 tools/perf/util/header.c 	struct perf_session *session;
session           311 tools/perf/util/header.c 	session = container_of(ff->ph, struct perf_session, header);
session           313 tools/perf/util/header.c 	if (!perf_session__read_build_ids(session, true))
session           319 tools/perf/util/header.c 	err = perf_session__write_buildid_table(session, ff);
session           324 tools/perf/util/header.c 	perf_session__cache_build_ids(session);
session           878 tools/perf/util/header.c 	struct perf_session *session;
session           884 tools/perf/util/header.c 	session = container_of(ff->ph, struct perf_session, header);
session           886 tools/perf/util/header.c 	err = auxtrace_index__write(ff->fd, &session->auxtrace_index);
session           902 tools/perf/util/header.c 	struct perf_session *session;
session           905 tools/perf/util/header.c 	session = container_of(ff->ph, struct perf_session, header);
session           906 tools/perf/util/header.c 	data = session->data;
session          1523 tools/perf/util/header.c 	struct perf_session *session;
session          1526 tools/perf/util/header.c 	session = container_of(ff->ph, struct perf_session, header);
session          1527 tools/perf/util/header.c 	data = session->data;
session          1813 tools/perf/util/header.c 	struct perf_session *session;
session          1817 tools/perf/util/header.c 	session = container_of(ff->ph, struct perf_session, header);
session          1819 tools/perf/util/header.c 	evlist__for_each_entry(session->evlist, evsel) {
session          1837 tools/perf/util/header.c 	struct perf_session *session;
session          1841 tools/perf/util/header.c 	session = container_of(ff->ph, struct perf_session, header);
session          1843 tools/perf/util/header.c 	timestamp__scnprintf_usec(session->evlist->first_sample_time,
session          1847 tools/perf/util/header.c 	timestamp__scnprintf_usec(session->evlist->last_sample_time,
session          1851 tools/perf/util/header.c 	d = (double)(session->evlist->last_sample_time -
session          1852 tools/perf/util/header.c 		session->evlist->first_sample_time) / NSEC_PER_MSEC;
session          1888 tools/perf/util/header.c 				    struct perf_session *session)
session          1896 tools/perf/util/header.c 	machine = perf_session__findnew_machine(session, bev->pid);
session          1949 tools/perf/util/header.c 	struct perf_session *session = container_of(header, struct perf_session, header);
session          1984 tools/perf/util/header.c 		__event_process_build_id(&bev, filename, session);
session          1995 tools/perf/util/header.c 	struct perf_session *session = container_of(header, struct perf_session, header);
session          2032 tools/perf/util/header.c 		__event_process_build_id(&bev, filename, session);
session          2134 tools/perf/util/header.c 	struct perf_session *session;
session          2140 tools/perf/util/header.c 	session = container_of(ff->ph, struct perf_session, header);
session          2142 tools/perf/util/header.c 	if (session->data->is_pipe) {
session          2149 tools/perf/util/header.c 		perf_evlist__set_event_name(session->evlist, evsel);
session          2151 tools/perf/util/header.c 	if (!session->data->is_pipe)
session          2426 tools/perf/util/header.c 	struct perf_session *session;
session          2462 tools/perf/util/header.c 	session = container_of(ff->ph, struct perf_session, header);
session          2463 tools/perf/util/header.c 	session->evlist->nr_groups = nr_groups;
session          2466 tools/perf/util/header.c 	evlist__for_each_entry(session->evlist, evsel) {
session          2508 tools/perf/util/header.c 	struct perf_session *session;
session          2511 tools/perf/util/header.c 	session = container_of(ff->ph, struct perf_session, header);
session          2513 tools/perf/util/header.c 	err = auxtrace_index__process(ff->fd, ff->size, session,
session          2574 tools/perf/util/header.c 	struct perf_session *session;
session          2578 tools/perf/util/header.c 	session = container_of(ff->ph, struct perf_session, header);
session          2588 tools/perf/util/header.c 	session->evlist->first_sample_time = first_sample_time;
session          2589 tools/perf/util/header.c 	session->evlist->last_sample_time = last_sample_time;
session          2657 tools/perf/util/header.c 	struct perf_session *session;
session          2660 tools/perf/util/header.c 	session = container_of(ff->ph, struct perf_session, header);
session          2661 tools/perf/util/header.c 	data = session->data;
session          2909 tools/perf/util/header.c int perf_header__fprintf_info(struct perf_session *session, FILE *fp, bool full)
session          2912 tools/perf/util/header.c 	struct perf_header *header = &session->header;
session          2913 tools/perf/util/header.c 	int fd = perf_data__fd(session->data);
session          2936 tools/perf/util/header.c 	if (session->data->is_pipe)
session          3048 tools/perf/util/header.c int perf_session__write_header(struct perf_session *session,
session          3054 tools/perf/util/header.c 	struct perf_header *header = &session->header;
session          3063 tools/perf/util/header.c 	evlist__for_each_entry(session->evlist, evsel) {
session          3423 tools/perf/util/header.c static int perf_header__read_pipe(struct perf_session *session)
session          3425 tools/perf/util/header.c 	struct perf_header *header = &session->header;
session          3429 tools/perf/util/header.c 					perf_data__fd(session->data),
session          3430 tools/perf/util/header.c 					session->repipe) < 0) {
session          3530 tools/perf/util/header.c int perf_session__read_header(struct perf_session *session)
session          3532 tools/perf/util/header.c 	struct perf_data *data = session->data;
session          3533 tools/perf/util/header.c 	struct perf_header *header = &session->header;
session          3540 tools/perf/util/header.c 	session->evlist = evlist__new();
session          3541 tools/perf/util/header.c 	if (session->evlist == NULL)
session          3544 tools/perf/util/header.c 	session->evlist->env = &header->env;
session          3545 tools/perf/util/header.c 	session->machines.host.env = &header->env;
session          3547 tools/perf/util/header.c 		return perf_header__read_pipe(session);
session          3598 tools/perf/util/header.c 		evlist__add(session->evlist, evsel);
session          3615 tools/perf/util/header.c 			perf_evlist__id_add(&session->evlist->core, &evsel->core, 0, j, f_id);
session          3621 tools/perf/util/header.c 	perf_header__process_sections(header, fd, &session->tevent,
session          3624 tools/perf/util/header.c 	if (perf_evlist__prepare_tracepoint_events(session->evlist,
session          3625 tools/perf/util/header.c 						   session->tevent.pevent))
session          3633 tools/perf/util/header.c 	evlist__delete(session->evlist);
session          3634 tools/perf/util/header.c 	session->evlist = NULL;
session          3638 tools/perf/util/header.c int perf_event__process_feature(struct perf_session *session,
session          3641 tools/perf/util/header.c 	struct perf_tool *tool = session->tool;
session          3661 tools/perf/util/header.c 	ff.ph = &session->header;
session          3803 tools/perf/util/header.c int perf_event__process_tracing_data(struct perf_session *session,
session          3807 tools/perf/util/header.c 	int fd = perf_data__fd(session->data);
session          3815 tools/perf/util/header.c 	size_read = trace_report(fd, &session->tevent,
session          3816 tools/perf/util/header.c 				 session->repipe);
session          3823 tools/perf/util/header.c 	if (session->repipe) {
session          3836 tools/perf/util/header.c 	perf_evlist__prepare_tracepoint_events(session->evlist,
session          3837 tools/perf/util/header.c 					       session->tevent.pevent);
session          3842 tools/perf/util/header.c int perf_event__process_build_id(struct perf_session *session,
session          3847 tools/perf/util/header.c 				 session);
session           118 tools/perf/util/header.h int perf_session__read_header(struct perf_session *session);
session           119 tools/perf/util/header.h int perf_session__write_header(struct perf_session *session,
session           138 tools/perf/util/header.h int perf_event__process_feature(struct perf_session *session,
session           146 tools/perf/util/header.h int perf_event__process_tracing_data(struct perf_session *session,
session           148 tools/perf/util/header.h int perf_event__process_build_id(struct perf_session *session,
session            49 tools/perf/util/intel-bts.c 	struct perf_session		*session;
session           140 tools/perf/util/intel-bts.c 	err = perf_session__deliver_synth_event(bts->session, &event, NULL);
session           310 tools/perf/util/intel-bts.c 	ret = perf_session__deliver_synth_event(bts->session, &event, &sample);
session           354 tools/perf/util/intel-bts.c 	err = perf_session__deliver_synth_event(bts->session, &event, NULL);
session           484 tools/perf/util/intel-bts.c 		int fd = perf_data__fd(btsq->bts->session->data);
session           591 tools/perf/util/intel-bts.c static int intel_bts_process_event(struct perf_session *session,
session           596 tools/perf/util/intel-bts.c 	struct intel_bts *bts = container_of(session->auxtrace, struct intel_bts,
session           635 tools/perf/util/intel-bts.c static int intel_bts_process_auxtrace_event(struct perf_session *session,
session           639 tools/perf/util/intel-bts.c 	struct intel_bts *bts = container_of(session->auxtrace, struct intel_bts,
session           648 tools/perf/util/intel-bts.c 		int fd = perf_data__fd(session->data);
session           651 tools/perf/util/intel-bts.c 		if (perf_data__is_pipe(session->data)) {
session           659 tools/perf/util/intel-bts.c 		err = auxtrace_queues__add_event(&bts->queues, session, event,
session           677 tools/perf/util/intel-bts.c static int intel_bts_flush(struct perf_session *session,
session           680 tools/perf/util/intel-bts.c 	struct intel_bts *bts = container_of(session->auxtrace, struct intel_bts,
session           706 tools/perf/util/intel-bts.c static void intel_bts_free_events(struct perf_session *session)
session           708 tools/perf/util/intel-bts.c 	struct intel_bts *bts = container_of(session->auxtrace, struct intel_bts,
session           720 tools/perf/util/intel-bts.c static void intel_bts_free(struct perf_session *session)
session           722 tools/perf/util/intel-bts.c 	struct intel_bts *bts = container_of(session->auxtrace, struct intel_bts,
session           726 tools/perf/util/intel-bts.c 	intel_bts_free_events(session);
session           727 tools/perf/util/intel-bts.c 	session->auxtrace = NULL;
session           733 tools/perf/util/intel-bts.c 	struct perf_session *session;
session           744 tools/perf/util/intel-bts.c 	return perf_session__deliver_synth_event(intel_bts_synth->session,
session           748 tools/perf/util/intel-bts.c static int intel_bts_synth_event(struct perf_session *session,
session           754 tools/perf/util/intel-bts.c 	intel_bts_synth.session = session;
session           761 tools/perf/util/intel-bts.c 				  struct perf_session *session)
session           763 tools/perf/util/intel-bts.c 	struct evlist *evlist = session->evlist;
session           808 tools/perf/util/intel-bts.c 		err = intel_bts_synth_event(session, &attr, id);
session           849 tools/perf/util/intel-bts.c 				    struct perf_session *session)
session           868 tools/perf/util/intel-bts.c 	bts->session = session;
session           869 tools/perf/util/intel-bts.c 	bts->machine = &session->machines.host; /* No kvm support */
session           886 tools/perf/util/intel-bts.c 	session->auxtrace = &bts->auxtrace;
session           894 tools/perf/util/intel-bts.c 	if (session->itrace_synth_opts->set) {
session           895 tools/perf/util/intel-bts.c 		bts->synth_opts = *session->itrace_synth_opts;
session           898 tools/perf/util/intel-bts.c 				session->itrace_synth_opts->default_no_sample);
session           900 tools/perf/util/intel-bts.c 				session->itrace_synth_opts->thread_stack;
session           910 tools/perf/util/intel-bts.c 	err = intel_bts_synth_events(bts, session);
session           914 tools/perf/util/intel-bts.c 	err = auxtrace_queues__process_index(&bts->queues, session);
session           925 tools/perf/util/intel-bts.c 	session->auxtrace = NULL;
session            32 tools/perf/util/intel-bts.h 				    struct perf_session *session);
session            58 tools/perf/util/intel-pt.c 	struct perf_session *session;
session           261 tools/perf/util/intel-pt.c 		int fd = perf_data__fd(ptq->pt->session->data);
session           729 tools/perf/util/intel-pt.c 	evlist__for_each_entry(pt->session->evlist, evsel) {
session           745 tools/perf/util/intel-pt.c 	evlist__for_each_entry(pt->session->evlist, evsel) {
session           758 tools/perf/util/intel-pt.c 	evlist__for_each_entry(pt->session->evlist, evsel) {
session           778 tools/perf/util/intel-pt.c 	evlist__for_each_entry(pt->session->evlist, evsel) {
session           794 tools/perf/util/intel-pt.c 	evlist__for_each_entry(pt->session->evlist, evsel) {
session           811 tools/perf/util/intel-pt.c 	evlist__for_each_entry(pt->session->evlist, evsel) {
session           828 tools/perf/util/intel-pt.c 	evlist__for_each_entry(pt->session->evlist, evsel) {
session          1262 tools/perf/util/intel-pt.c 	ret = perf_session__deliver_synth_event(pt->session, event, sample);
session          1836 tools/perf/util/intel-pt.c 	err = perf_session__deliver_synth_event(pt->session, &event, NULL);
session          2409 tools/perf/util/intel-pt.c 	evsel = perf_evlist__id2evsel(pt->session->evlist, sample->id);
session          2523 tools/perf/util/intel-pt.c static int intel_pt_process_event(struct perf_session *session,
session          2528 tools/perf/util/intel-pt.c 	struct intel_pt *pt = container_of(session->auxtrace, struct intel_pt,
session          2587 tools/perf/util/intel-pt.c static int intel_pt_flush(struct perf_session *session, struct perf_tool *tool)
session          2589 tools/perf/util/intel-pt.c 	struct intel_pt *pt = container_of(session->auxtrace, struct intel_pt,
session          2610 tools/perf/util/intel-pt.c static void intel_pt_free_events(struct perf_session *session)
session          2612 tools/perf/util/intel-pt.c 	struct intel_pt *pt = container_of(session->auxtrace, struct intel_pt,
session          2625 tools/perf/util/intel-pt.c static void intel_pt_free(struct perf_session *session)
session          2627 tools/perf/util/intel-pt.c 	struct intel_pt *pt = container_of(session->auxtrace, struct intel_pt,
session          2631 tools/perf/util/intel-pt.c 	intel_pt_free_events(session);
session          2632 tools/perf/util/intel-pt.c 	session->auxtrace = NULL;
session          2640 tools/perf/util/intel-pt.c static int intel_pt_process_auxtrace_event(struct perf_session *session,
session          2644 tools/perf/util/intel-pt.c 	struct intel_pt *pt = container_of(session->auxtrace, struct intel_pt,
session          2650 tools/perf/util/intel-pt.c 		int fd = perf_data__fd(session->data);
session          2653 tools/perf/util/intel-pt.c 		if (perf_data__is_pipe(session->data)) {
session          2661 tools/perf/util/intel-pt.c 		err = auxtrace_queues__add_event(&pt->queues, session, event,
session          2681 tools/perf/util/intel-pt.c 	struct perf_session *session;
session          2692 tools/perf/util/intel-pt.c 	return perf_session__deliver_synth_event(intel_pt_synth->session, event,
session          2696 tools/perf/util/intel-pt.c static int intel_pt_synth_event(struct perf_session *session, const char *name,
session          2706 tools/perf/util/intel-pt.c 	intel_pt_synth.session = session;
session          2746 tools/perf/util/intel-pt.c 				 struct perf_session *session)
session          2748 tools/perf/util/intel-pt.c 	struct evlist *evlist = session->evlist;
session          2787 tools/perf/util/intel-pt.c 		err = intel_pt_synth_event(session, "branches", &attr, id);
session          2809 tools/perf/util/intel-pt.c 		err = intel_pt_synth_event(session, "instructions", &attr, id);
session          2823 tools/perf/util/intel-pt.c 		err = intel_pt_synth_event(session, "transactions", &attr, id);
session          2838 tools/perf/util/intel-pt.c 		err = intel_pt_synth_event(session, "ptwrite", &attr, id);
session          2853 tools/perf/util/intel-pt.c 		err = intel_pt_synth_event(session, "cbr", &attr, id);
session          2863 tools/perf/util/intel-pt.c 		err = intel_pt_synth_event(session, "mwait", &attr, id);
session          2871 tools/perf/util/intel-pt.c 		err = intel_pt_synth_event(session, "pwre", &attr, id);
session          2879 tools/perf/util/intel-pt.c 		err = intel_pt_synth_event(session, "exstop", &attr, id);
session          2887 tools/perf/util/intel-pt.c 		err = intel_pt_synth_event(session, "pwrx", &attr, id);
session          2905 tools/perf/util/intel-pt.c 	evlist__for_each_entry(pt->session->evlist, evsel) {
session          3074 tools/perf/util/intel-pt.c 				   struct perf_session *session)
session          3103 tools/perf/util/intel-pt.c 	pt->session = session;
session          3104 tools/perf/util/intel-pt.c 	pt->machine = &session->machines.host; /* No kvm support */
session          3162 tools/perf/util/intel-pt.c 			if (session->header.needs_swap)
session          3211 tools/perf/util/intel-pt.c 	session->auxtrace = &pt->auxtrace;
session          3217 tools/perf/util/intel-pt.c 		pt->switch_evsel = intel_pt_find_sched_switch(session->evlist);
session          3224 tools/perf/util/intel-pt.c 		   !intel_pt_find_switch(session->evlist)) {
session          3230 tools/perf/util/intel-pt.c 	if (session->itrace_synth_opts->set) {
session          3231 tools/perf/util/intel-pt.c 		pt->synth_opts = *session->itrace_synth_opts;
session          3234 tools/perf/util/intel-pt.c 				session->itrace_synth_opts->default_no_sample);
session          3235 tools/perf/util/intel-pt.c 		if (!session->itrace_synth_opts->default_no_sample &&
session          3236 tools/perf/util/intel-pt.c 		    !session->itrace_synth_opts->inject) {
session          3241 tools/perf/util/intel-pt.c 				session->itrace_synth_opts->thread_stack;
session          3260 tools/perf/util/intel-pt.c 	err = intel_pt_setup_time_ranges(pt, session->itrace_synth_opts);
session          3279 tools/perf/util/intel-pt.c 	err = intel_pt_synth_events(pt, session);
session          3285 tools/perf/util/intel-pt.c 	err = auxtrace_queues__process_index(&pt->queues, session);
session          3302 tools/perf/util/intel-pt.c 	session->auxtrace = NULL;
session            43 tools/perf/util/intel-pt.h 				   struct perf_session *session);
session             7 tools/perf/util/jit.h int jit_process(struct perf_session *session, struct perf_data *output,
session            35 tools/perf/util/jitdump.c 	struct perf_session *session;
session           118 tools/perf/util/jitdump.c jit_validate_events(struct perf_session *session)
session           125 tools/perf/util/jitdump.c 	evlist__for_each_entry(session->evlist, evsel) {
session           200 tools/perf/util/jitdump.c 	if (jd->use_arch_timestamp && !jd->session->time_conv.time_mult) {
session           208 tools/perf/util/jitdump.c 	if (!jd->use_arch_timestamp && jit_validate_events(jd->session)) {
session           376 tools/perf/util/jitdump.c 	tc.time_shift = jd->session->time_conv.time_shift;
session           377 tools/perf/util/jitdump.c 	tc.time_mult  = jd->session->time_conv.time_mult;
session           378 tools/perf/util/jitdump.c 	tc.time_zero  = jd->session->time_conv.time_zero;
session           390 tools/perf/util/jitdump.c 	struct perf_tool *tool = jd->session->tool;
session           506 tools/perf/util/jitdump.c 	struct perf_tool *tool = jd->session->tool;
session           753 tools/perf/util/jitdump.c jit_process(struct perf_session *session,
session           772 tools/perf/util/jitdump.c 	jd.session = session;
session           780 tools/perf/util/jitdump.c 	first = evlist__first(session->evlist);
session            80 tools/perf/util/kvm-stat.h 	struct perf_session *session;
session           171 tools/perf/util/s390-cpumsf.c 	struct perf_session	*session;
session           538 tools/perf/util/s390-cpumsf.c 	if (perf_session__deliver_synth_event(sfq->sf->session, &event,
session           730 tools/perf/util/s390-cpumsf.c 		int fd = perf_data__fd(sfq->sf->session->data);
session           896 tools/perf/util/s390-cpumsf.c 	err = perf_session__deliver_synth_event(sf->session, &event, NULL);
session           911 tools/perf/util/s390-cpumsf.c s390_cpumsf_process_event(struct perf_session *session,
session           916 tools/perf/util/s390-cpumsf.c 	struct s390_cpumsf *sf = container_of(session->auxtrace,
session           935 tools/perf/util/s390-cpumsf.c 		ev_bc000 = perf_evlist__event2evsel(session->evlist, event);
session           956 tools/perf/util/s390-cpumsf.c 	struct perf_session *session;
session           960 tools/perf/util/s390-cpumsf.c s390_cpumsf_process_auxtrace_event(struct perf_session *session,
session           964 tools/perf/util/s390-cpumsf.c 	struct s390_cpumsf *sf = container_of(session->auxtrace,
session           968 tools/perf/util/s390-cpumsf.c 	int fd = perf_data__fd(session->data);
session           976 tools/perf/util/s390-cpumsf.c 	if (perf_data__is_pipe(session->data)) {
session           984 tools/perf/util/s390-cpumsf.c 	err = auxtrace_queues__add_event(&sf->queues, session, event,
session          1000 tools/perf/util/s390-cpumsf.c static void s390_cpumsf_free_events(struct perf_session *session __maybe_unused)
session          1004 tools/perf/util/s390-cpumsf.c static int s390_cpumsf_flush(struct perf_session *session __maybe_unused,
session          1010 tools/perf/util/s390-cpumsf.c static void s390_cpumsf_free_queues(struct perf_session *session)
session          1012 tools/perf/util/s390-cpumsf.c 	struct s390_cpumsf *sf = container_of(session->auxtrace,
session          1037 tools/perf/util/s390-cpumsf.c static void s390_cpumsf_free(struct perf_session *session)
session          1039 tools/perf/util/s390-cpumsf.c 	struct s390_cpumsf *sf = container_of(session->auxtrace,
session          1044 tools/perf/util/s390-cpumsf.c 	s390_cpumsf_free_queues(session);
session          1045 tools/perf/util/s390-cpumsf.c 	session->auxtrace = NULL;
session          1109 tools/perf/util/s390-cpumsf.c 				      struct perf_session *session)
session          1122 tools/perf/util/s390-cpumsf.c 	if (!check_auxtrace_itrace(session->itrace_synth_opts)) {
session          1126 tools/perf/util/s390-cpumsf.c 	sf->use_logfile = session->itrace_synth_opts->log;
session          1134 tools/perf/util/s390-cpumsf.c 	sf->session = session;
session          1135 tools/perf/util/s390-cpumsf.c 	sf->machine = &session->machines.host; /* No kvm support */
session          1138 tools/perf/util/s390-cpumsf.c 	sf->machine_type = s390_cpumsf_get_type(session->evlist->env->cpuid);
session          1145 tools/perf/util/s390-cpumsf.c 	session->auxtrace = &sf->auxtrace;
session          1150 tools/perf/util/s390-cpumsf.c 	err = auxtrace_queues__process_index(&sf->queues, session);
session          1161 tools/perf/util/s390-cpumsf.c 	session->auxtrace = NULL;
session            20 tools/perf/util/s390-cpumsf.h 				      struct perf_session *session);
session            39 tools/perf/util/session.c static int perf_session__process_compressed_event(struct perf_session *session,
session            45 tools/perf/util/session.c 	size_t mmap_len, decomp_len = session->header.env.comp_mmap_len;
session            46 tools/perf/util/session.c 	struct decomp *decomp, *decomp_last = session->decomp_last;
session            73 tools/perf/util/session.c 	decomp_size = zstd_decompress_stream(&(session->zstd_data), src, src_size,
session            83 tools/perf/util/session.c 	if (session->decomp == NULL) {
session            84 tools/perf/util/session.c 		session->decomp = decomp;
session            85 tools/perf/util/session.c 		session->decomp_last = decomp;
session            87 tools/perf/util/session.c 		session->decomp_last->next = decomp;
session            88 tools/perf/util/session.c 		session->decomp_last = decomp;
session            99 tools/perf/util/session.c static int perf_session__deliver_event(struct perf_session *session,
session           104 tools/perf/util/session.c static int perf_session__open(struct perf_session *session)
session           106 tools/perf/util/session.c 	struct perf_data *data = session->data;
session           108 tools/perf/util/session.c 	if (perf_session__read_header(session) < 0) {
session           116 tools/perf/util/session.c 	if (perf_header__has_feat(&session->header, HEADER_STAT))
session           119 tools/perf/util/session.c 	if (!perf_evlist__valid_sample_type(session->evlist)) {
session           124 tools/perf/util/session.c 	if (!perf_evlist__valid_sample_id_all(session->evlist)) {
session           129 tools/perf/util/session.c 	if (!perf_evlist__valid_read_format(session->evlist)) {
session           137 tools/perf/util/session.c void perf_session__set_id_hdr_size(struct perf_session *session)
session           139 tools/perf/util/session.c 	u16 id_hdr_size = perf_evlist__id_hdr_size(session->evlist);
session           141 tools/perf/util/session.c 	machines__set_id_hdr_size(&session->machines, id_hdr_size);
session           144 tools/perf/util/session.c int perf_session__create_kernel_maps(struct perf_session *session)
session           146 tools/perf/util/session.c 	int ret = machine__create_kernel_maps(&session->machines.host);
session           149 tools/perf/util/session.c 		ret = machines__create_guest_kernel_maps(&session->machines);
session           153 tools/perf/util/session.c static void perf_session__destroy_kernel_maps(struct perf_session *session)
session           155 tools/perf/util/session.c 	machines__destroy_kernel_maps(&session->machines);
session           158 tools/perf/util/session.c static bool perf_session__has_comm_exec(struct perf_session *session)
session           162 tools/perf/util/session.c 	evlist__for_each_entry(session->evlist, evsel) {
session           170 tools/perf/util/session.c static void perf_session__set_comm_exec(struct perf_session *session)
session           172 tools/perf/util/session.c 	bool comm_exec = perf_session__has_comm_exec(session);
session           174 tools/perf/util/session.c 	machines__set_comm_exec(&session->machines, comm_exec);
session           180 tools/perf/util/session.c 	struct perf_session *session = container_of(oe, struct perf_session,
session           183 tools/perf/util/session.c 	return perf_session__deliver_event(session, event->event,
session           184 tools/perf/util/session.c 					   session->tool, event->file_offset);
session           191 tools/perf/util/session.c 	struct perf_session *session = zalloc(sizeof(*session));
session           193 tools/perf/util/session.c 	if (!session)
session           196 tools/perf/util/session.c 	session->repipe = repipe;
session           197 tools/perf/util/session.c 	session->tool   = tool;
session           198 tools/perf/util/session.c 	INIT_LIST_HEAD(&session->auxtrace_index);
session           199 tools/perf/util/session.c 	machines__init(&session->machines);
session           200 tools/perf/util/session.c 	ordered_events__init(&session->ordered_events,
session           203 tools/perf/util/session.c 	perf_env__init(&session->header.env);
session           209 tools/perf/util/session.c 		session->data = data;
session           212 tools/perf/util/session.c 			ret = perf_session__open(session);
session           221 tools/perf/util/session.c 				perf_session__set_id_hdr_size(session);
session           222 tools/perf/util/session.c 				perf_session__set_comm_exec(session);
session           225 tools/perf/util/session.c 			perf_evlist__init_trace_event_sample_raw(session->evlist);
session           235 tools/perf/util/session.c 		session->machines.host.env = &perf_env;
session           238 tools/perf/util/session.c 	session->machines.host.single_address_space =
session           239 tools/perf/util/session.c 		perf_env__single_address_space(session->machines.host.env);
session           246 tools/perf/util/session.c 		if (perf_session__create_kernel_maps(session) < 0)
session           255 tools/perf/util/session.c 	    tool->ordered_events && !perf_evlist__sample_id_all(session->evlist)) {
session           260 tools/perf/util/session.c 	return session;
session           263 tools/perf/util/session.c 	perf_session__delete(session);
session           268 tools/perf/util/session.c static void perf_session__delete_threads(struct perf_session *session)
session           270 tools/perf/util/session.c 	machine__delete_threads(&session->machines.host);
session           273 tools/perf/util/session.c static void perf_session__release_decomp_events(struct perf_session *session)
session           277 tools/perf/util/session.c 	next = session->decomp;
session           288 tools/perf/util/session.c void perf_session__delete(struct perf_session *session)
session           290 tools/perf/util/session.c 	if (session == NULL)
session           292 tools/perf/util/session.c 	auxtrace__free(session);
session           293 tools/perf/util/session.c 	auxtrace_index__free(&session->auxtrace_index);
session           294 tools/perf/util/session.c 	perf_session__destroy_kernel_maps(session);
session           295 tools/perf/util/session.c 	perf_session__delete_threads(session);
session           296 tools/perf/util/session.c 	perf_session__release_decomp_events(session);
session           297 tools/perf/util/session.c 	perf_env__exit(&session->header.env);
session           298 tools/perf/util/session.c 	machines__exit(&session->machines);
session           299 tools/perf/util/session.c 	if (session->data)
session           300 tools/perf/util/session.c 		perf_data__close(session->data);
session           301 tools/perf/util/session.c 	free(session);
session           304 tools/perf/util/session.c static int process_event_synth_tracing_data_stub(struct perf_session *session
session           380 tools/perf/util/session.c static s64 process_event_auxtrace_stub(struct perf_session *session __maybe_unused,
session           384 tools/perf/util/session.c 	if (perf_data__is_pipe(session->data))
session           385 tools/perf/util/session.c 		skipn(perf_data__fd(session->data), event->auxtrace.size);
session           389 tools/perf/util/session.c static int process_event_op2_stub(struct perf_session *session __maybe_unused,
session           398 tools/perf/util/session.c int process_event_thread_map_stub(struct perf_session *session __maybe_unused,
session           409 tools/perf/util/session.c int process_event_cpu_map_stub(struct perf_session *session __maybe_unused,
session           420 tools/perf/util/session.c int process_event_stat_config_stub(struct perf_session *session __maybe_unused,
session           450 tools/perf/util/session.c static int perf_session__process_compressed_event_stub(struct perf_session *session __maybe_unused,
session          1474 tools/perf/util/session.c static int perf_session__deliver_event(struct perf_session *session,
session          1482 tools/perf/util/session.c 	ret = perf_evlist__parse_sample(session->evlist, event, &sample);
session          1488 tools/perf/util/session.c 	ret = auxtrace__process_event(session, event, &sample, tool);
session          1494 tools/perf/util/session.c 	return machines__deliver_event(&session->machines, session->evlist,
session          1498 tools/perf/util/session.c static s64 perf_session__process_user_event(struct perf_session *session,
session          1502 tools/perf/util/session.c 	struct ordered_events *oe = &session->ordered_events;
session          1503 tools/perf/util/session.c 	struct perf_tool *tool = session->tool;
session          1505 tools/perf/util/session.c 	int fd = perf_data__fd(session->data);
session          1510 tools/perf/util/session.c 		dump_event(session->evlist, event, file_offset, &sample);
session          1515 tools/perf/util/session.c 		err = tool->attr(tool, event, &session->evlist);
session          1517 tools/perf/util/session.c 			perf_session__set_id_hdr_size(session);
session          1518 tools/perf/util/session.c 			perf_session__set_comm_exec(session);
session          1522 tools/perf/util/session.c 		return tool->event_update(tool, event, &session->evlist);
session          1532 tools/perf/util/session.c 		return tool->tracing_data(session, event);
session          1534 tools/perf/util/session.c 		return tool->build_id(session, event);
session          1538 tools/perf/util/session.c 		return tool->id_index(session, event);
session          1540 tools/perf/util/session.c 		return tool->auxtrace_info(session, event);
session          1544 tools/perf/util/session.c 		return tool->auxtrace(session, event);
session          1546 tools/perf/util/session.c 		perf_session__auxtrace_error_inc(session, event);
session          1547 tools/perf/util/session.c 		return tool->auxtrace_error(session, event);
session          1549 tools/perf/util/session.c 		return tool->thread_map(session, event);
session          1551 tools/perf/util/session.c 		return tool->cpu_map(session, event);
session          1553 tools/perf/util/session.c 		return tool->stat_config(session, event);
session          1555 tools/perf/util/session.c 		return tool->stat(session, event);
session          1557 tools/perf/util/session.c 		return tool->stat_round(session, event);
session          1559 tools/perf/util/session.c 		session->time_conv = event->time_conv;
session          1560 tools/perf/util/session.c 		return tool->time_conv(session, event);
session          1562 tools/perf/util/session.c 		return tool->feature(session, event);
session          1564 tools/perf/util/session.c 		err = tool->compressed(session, event, file_offset);
session          1566 tools/perf/util/session.c 			dump_event(session->evlist, event, file_offset, &sample);
session          1573 tools/perf/util/session.c int perf_session__deliver_synth_event(struct perf_session *session,
session          1577 tools/perf/util/session.c 	struct evlist *evlist = session->evlist;
session          1578 tools/perf/util/session.c 	struct perf_tool *tool = session->tool;
session          1583 tools/perf/util/session.c 		return perf_session__process_user_event(session, event, 0);
session          1585 tools/perf/util/session.c 	return machines__deliver_event(&session->machines, evlist, event, sample, tool, 0);
session          1597 tools/perf/util/session.c int perf_session__peek_event(struct perf_session *session, off_t file_offset,
session          1606 tools/perf/util/session.c 	if (session->one_mmap && !session->header.needs_swap) {
session          1607 tools/perf/util/session.c 		event = file_offset - session->one_mmap_offset +
session          1608 tools/perf/util/session.c 			session->one_mmap_addr;
session          1612 tools/perf/util/session.c 	if (perf_data__is_pipe(session->data))
session          1615 tools/perf/util/session.c 	fd = perf_data__fd(session->data);
session          1627 tools/perf/util/session.c 	if (session->header.needs_swap)
session          1638 tools/perf/util/session.c 	if (session->header.needs_swap)
session          1639 tools/perf/util/session.c 		event_swap(event, perf_evlist__sample_id_all(session->evlist));
session          1644 tools/perf/util/session.c 	    perf_evlist__parse_sample(session->evlist, event, sample))
session          1652 tools/perf/util/session.c static s64 perf_session__process_event(struct perf_session *session,
session          1655 tools/perf/util/session.c 	struct evlist *evlist = session->evlist;
session          1656 tools/perf/util/session.c 	struct perf_tool *tool = session->tool;
session          1659 tools/perf/util/session.c 	if (session->header.needs_swap)
session          1668 tools/perf/util/session.c 		return perf_session__process_user_event(session, event, file_offset);
session          1677 tools/perf/util/session.c 		ret = perf_session__queue_event(session, event, timestamp, file_offset);
session          1682 tools/perf/util/session.c 	return perf_session__deliver_event(session, event, tool, file_offset);
session          1692 tools/perf/util/session.c struct thread *perf_session__findnew(struct perf_session *session, pid_t pid)
session          1694 tools/perf/util/session.c 	return machine__findnew_thread(&session->machines.host, -1, pid);
session          1704 tools/perf/util/session.c int perf_session__register_idle_thread(struct perf_session *session)
session          1709 tools/perf/util/session.c 	thread = machine__findnew_thread(&session->machines.host, 0, 0);
session          1726 tools/perf/util/session.c perf_session__warn_order(const struct perf_session *session)
session          1728 tools/perf/util/session.c 	const struct ordered_events *oe = &session->ordered_events;
session          1732 tools/perf/util/session.c 	evlist__for_each_entry(session->evlist, evsel) {
session          1743 tools/perf/util/session.c static void perf_session__warn_about_errors(const struct perf_session *session)
session          1745 tools/perf/util/session.c 	const struct events_stats *stats = &session->evlist->stats;
session          1747 tools/perf/util/session.c 	if (session->tool->lost == perf_event__process_lost &&
session          1755 tools/perf/util/session.c 	if (session->tool->lost_samples == perf_event__process_lost_samples) {
session          1767 tools/perf/util/session.c 	if (session->tool->aux == perf_event__process_aux &&
session          1774 tools/perf/util/session.c 	if (session->tool->aux == perf_event__process_aux &&
session          1819 tools/perf/util/session.c 	perf_session__warn_order(session);
session          1841 tools/perf/util/session.c static int perf_session__flush_thread_stacks(struct perf_session *session)
session          1843 tools/perf/util/session.c 	return machines__for_each_thread(&session->machines,
session          1850 tools/perf/util/session.c static int __perf_session__process_decomp_events(struct perf_session *session);
session          1852 tools/perf/util/session.c static int __perf_session__process_pipe_events(struct perf_session *session)
session          1854 tools/perf/util/session.c 	struct ordered_events *oe = &session->ordered_events;
session          1855 tools/perf/util/session.c 	struct perf_tool *tool = session->tool;
session          1856 tools/perf/util/session.c 	int fd = perf_data__fd(session->data);
session          1885 tools/perf/util/session.c 	if (session->header.needs_swap)
session          1920 tools/perf/util/session.c 	if ((skip = perf_session__process_event(session, event, head)) < 0) {
session          1932 tools/perf/util/session.c 	err = __perf_session__process_decomp_events(session);
session          1943 tools/perf/util/session.c 	err = auxtrace__flush_events(session, tool);
session          1946 tools/perf/util/session.c 	err = perf_session__flush_thread_stacks(session);
session          1950 tools/perf/util/session.c 		perf_session__warn_about_errors(session);
session          1951 tools/perf/util/session.c 	ordered_events__free(&session->ordered_events);
session          1952 tools/perf/util/session.c 	auxtrace__free_events(session);
session          1998 tools/perf/util/session.c static int __perf_session__process_decomp_events(struct perf_session *session)
session          2002 tools/perf/util/session.c 	struct decomp *decomp = session->decomp_last;
session          2009 tools/perf/util/session.c 							     session->header.needs_swap);
session          2017 tools/perf/util/session.c 		    (skip = perf_session__process_event(session, event, file_pos)) < 0) {
session          2046 tools/perf/util/session.c typedef s64 (*reader_cb_t)(struct perf_session *session,
session          2058 tools/perf/util/session.c reader__process_events(struct reader *rd, struct perf_session *session,
session          2080 tools/perf/util/session.c 		session->one_mmap = true;
session          2088 tools/perf/util/session.c 	if (session->header.needs_swap) {
session          2103 tools/perf/util/session.c 	if (session->one_mmap) {
session          2104 tools/perf/util/session.c 		session->one_mmap_addr = buf;
session          2105 tools/perf/util/session.c 		session->one_mmap_offset = file_offset;
session          2109 tools/perf/util/session.c 	event = fetch_mmaped_event(head, mmap_size, buf, session->header.needs_swap);
session          2130 tools/perf/util/session.c 	    (skip = rd->process(session, event, file_pos)) < 0) {
session          2144 tools/perf/util/session.c 	err = __perf_session__process_decomp_events(session);
session          2160 tools/perf/util/session.c static s64 process_simple(struct perf_session *session,
session          2164 tools/perf/util/session.c 	return perf_session__process_event(session, event, file_offset);
session          2167 tools/perf/util/session.c static int __perf_session__process_events(struct perf_session *session)
session          2170 tools/perf/util/session.c 		.fd		= perf_data__fd(session->data),
session          2171 tools/perf/util/session.c 		.data_size	= session->header.data_size,
session          2172 tools/perf/util/session.c 		.data_offset	= session->header.data_offset,
session          2175 tools/perf/util/session.c 	struct ordered_events *oe = &session->ordered_events;
session          2176 tools/perf/util/session.c 	struct perf_tool *tool = session->tool;
session          2187 tools/perf/util/session.c 	err = reader__process_events(&rd, session, &prog);
session          2194 tools/perf/util/session.c 	err = auxtrace__flush_events(session, tool);
session          2197 tools/perf/util/session.c 	err = perf_session__flush_thread_stacks(session);
session          2201 tools/perf/util/session.c 		perf_session__warn_about_errors(session);
session          2206 tools/perf/util/session.c 	ordered_events__reinit(&session->ordered_events);
session          2207 tools/perf/util/session.c 	auxtrace__free_events(session);
session          2208 tools/perf/util/session.c 	session->one_mmap = false;
session          2212 tools/perf/util/session.c int perf_session__process_events(struct perf_session *session)
session          2214 tools/perf/util/session.c 	if (perf_session__register_idle_thread(session) < 0)
session          2217 tools/perf/util/session.c 	if (perf_data__is_pipe(session->data))
session          2218 tools/perf/util/session.c 		return __perf_session__process_pipe_events(session);
session          2220 tools/perf/util/session.c 	return __perf_session__process_events(session);
session          2223 tools/perf/util/session.c bool perf_session__has_traces(struct perf_session *session, const char *msg)
session          2227 tools/perf/util/session.c 	evlist__for_each_entry(session->evlist, evsel) {
session          2265 tools/perf/util/session.c size_t perf_session__fprintf_dsos(struct perf_session *session, FILE *fp)
session          2267 tools/perf/util/session.c 	return machines__fprintf_dsos(&session->machines, fp);
session          2270 tools/perf/util/session.c size_t perf_session__fprintf_dsos_buildid(struct perf_session *session, FILE *fp,
session          2273 tools/perf/util/session.c 	return machines__fprintf_dsos_buildid(&session->machines, fp, skip, parm);
session          2276 tools/perf/util/session.c size_t perf_session__fprintf_nr_events(struct perf_session *session, FILE *fp)
session          2281 tools/perf/util/session.c 	if (perf_header__has_feat(&session->header, HEADER_AUXTRACE))
session          2286 tools/perf/util/session.c 	ret += events_stats__fprintf(&session->evlist->stats, fp);
session          2290 tools/perf/util/session.c size_t perf_session__fprintf(struct perf_session *session, FILE *fp)
session          2296 tools/perf/util/session.c 	return machine__fprintf(&session->machines.host, fp);
session          2299 tools/perf/util/session.c struct evsel *perf_session__find_first_evtype(struct perf_session *session,
session          2304 tools/perf/util/session.c 	evlist__for_each_entry(session->evlist, pos) {
session          2311 tools/perf/util/session.c int perf_session__cpu_bitmap(struct perf_session *session,
session          2316 tools/perf/util/session.c 	int nr_cpus = min(session->header.env.nr_cpus_online, MAX_NR_CPUS);
session          2321 tools/perf/util/session.c 		evsel = perf_session__find_first_evtype(session, i);
session          2357 tools/perf/util/session.c void perf_session__fprintf_info(struct perf_session *session, FILE *fp,
session          2360 tools/perf/util/session.c 	if (session == NULL || fp == NULL)
session          2364 tools/perf/util/session.c 	perf_header__fprintf_info(session, fp, full);
session          2369 tools/perf/util/session.c int __perf_session__set_tracepoints_handlers(struct perf_session *session,
session          2382 tools/perf/util/session.c 		evsel = perf_evlist__find_tracepoint_by_name(session->evlist, assocs[i].name);
session          2397 tools/perf/util/session.c int perf_event__process_id_index(struct perf_session *session,
session          2400 tools/perf/util/session.c 	struct evlist *evlist = session->evlist;
session            59 tools/perf/util/session.h void perf_session__delete(struct perf_session *session);
session            63 tools/perf/util/session.h int perf_session__peek_event(struct perf_session *session, off_t file_offset,
session            68 tools/perf/util/session.h int perf_session__process_events(struct perf_session *session);
session            75 tools/perf/util/session.h int perf_session__resolve_callchain(struct perf_session *session,
session            81 tools/perf/util/session.h bool perf_session__has_traces(struct perf_session *session, const char *msg);
session            85 tools/perf/util/session.h int perf_session__create_kernel_maps(struct perf_session *session);
session            87 tools/perf/util/session.h void perf_session__set_id_hdr_size(struct perf_session *session);
session            90 tools/perf/util/session.h struct machine *perf_session__find_machine(struct perf_session *session, pid_t pid)
session            92 tools/perf/util/session.h 	return machines__find(&session->machines, pid);
session            96 tools/perf/util/session.h struct machine *perf_session__findnew_machine(struct perf_session *session, pid_t pid)
session            98 tools/perf/util/session.h 	return machines__findnew(&session->machines, pid);
session           101 tools/perf/util/session.h struct thread *perf_session__findnew(struct perf_session *session, pid_t pid);
session           102 tools/perf/util/session.h int perf_session__register_idle_thread(struct perf_session *session);
session           104 tools/perf/util/session.h size_t perf_session__fprintf(struct perf_session *session, FILE *fp);
session           106 tools/perf/util/session.h size_t perf_session__fprintf_dsos(struct perf_session *session, FILE *fp);
session           108 tools/perf/util/session.h size_t perf_session__fprintf_dsos_buildid(struct perf_session *session, FILE *fp,
session           111 tools/perf/util/session.h size_t perf_session__fprintf_nr_events(struct perf_session *session, FILE *fp);
session           113 tools/perf/util/session.h struct evsel *perf_session__find_first_evtype(struct perf_session *session,
session           116 tools/perf/util/session.h int perf_session__cpu_bitmap(struct perf_session *session,
session           123 tools/perf/util/session.h int __perf_session__set_tracepoints_handlers(struct perf_session *session,
session           127 tools/perf/util/session.h #define perf_session__set_tracepoints_handlers(session, array) \
session           128 tools/perf/util/session.h 	__perf_session__set_tracepoints_handlers(session, array, ARRAY_SIZE(array))
session           134 tools/perf/util/session.h int perf_session__deliver_synth_event(struct perf_session *session,
session           138 tools/perf/util/session.h int perf_event__process_id_index(struct perf_session *session,
session           403 tools/perf/util/stat.c int perf_event__process_stat_event(struct perf_session *session,
session           414 tools/perf/util/stat.c 	counter = perf_evlist__id2evsel(session->evlist, st->id);
session           205 tools/perf/util/stat.h int perf_event__process_stat_event(struct perf_session *session,
session          1823 tools/perf/util/synthetic-events.c int perf_event__synthesize_features(struct perf_tool *tool, struct perf_session *session,
session          1826 tools/perf/util/synthetic-events.c 	struct perf_header *header = &session->header;
session          1844 tools/perf/util/synthetic-events.c 	ff.ph = &session->header;
session            42 tools/perf/util/synthetic-events.h int perf_event__synthesize_features(struct perf_tool *tool, struct perf_session *session, struct evlist *evlist, perf_event__handler_t process);
session            74 tools/perf/util/synthetic-events.h 					 struct perf_session *session, perf_event__handler_t process);
session            83 tools/perf/util/synthetic-events.h 				     struct perf_session *session __maybe_unused,
session            91 tools/perf/util/synthetic-events.h int perf_event__synthesize_bpf_events(struct perf_session *session, perf_event__handler_t process,
session            94 tools/perf/util/synthetic-events.h static inline int perf_event__synthesize_bpf_events(struct perf_session *session __maybe_unused,
session           462 tools/perf/util/time-utils.c 				struct perf_session *session,
session           476 tools/perf/util/time-utils.c 		if (session->evlist->first_sample_time == 0 &&
session           477 tools/perf/util/time-utils.c 		    session->evlist->last_sample_time == 0) {
session           489 tools/perf/util/time-utils.c 				session->evlist->first_sample_time,
session           490 tools/perf/util/time-utils.c 				session->evlist->last_sample_time);
session           502 tools/perf/util/time-utils.c 			ptime_range[i].start += session->evlist->first_sample_time;
session           503 tools/perf/util/time-utils.c 			ptime_range[i].end += session->evlist->first_sample_time;
session           520 tools/perf/util/time-utils.c 				struct perf_session *session,
session           524 tools/perf/util/time-utils.c 	return perf_time__parse_for_ranges_reltime(time_str, session, ranges,
session            29 tools/perf/util/time-utils.h int perf_time__parse_for_ranges_reltime(const char *str, struct perf_session *session,
session            34 tools/perf/util/time-utils.h int perf_time__parse_for_ranges(const char *str, struct perf_session *session,
session            29 tools/perf/util/tool.h typedef int (*event_op2)(struct perf_session *session, union perf_event *event);
session            30 tools/perf/util/tool.h typedef s64 (*event_op3)(struct perf_session *session, union perf_event *event);
session            31 tools/perf/util/tool.h typedef int (*event_op4)(struct perf_session *session, union perf_event *event, u64 data);
session            41 tools/perf/util/top.h 	struct perf_session *session;