| /linux/net/sctp/ |
| H A D | inqueue.c | 42 static inline void sctp_inq_chunk_free(struct sctp_chunk *chunk) in sctp_inq_chunk_free() argument 44 if (chunk->head_skb) in sctp_inq_chunk_free() 45 chunk->skb = chunk->head_skb; in sctp_inq_chunk_free() 46 sctp_chunk_free(chunk); in sctp_inq_chunk_free() 52 struct sctp_chunk *chunk, *tmp; in sctp_inq_free() local 55 list_for_each_entry_safe(chunk, tmp, &queue->in_chunk_list, list) { in sctp_inq_free() 56 list_del_init(&chunk->list); in sctp_inq_free() 57 sctp_chunk_free(chunk); in sctp_inq_free() 72 void sctp_inq_push(struct sctp_inq *q, struct sctp_chunk *chunk) in sctp_inq_push() argument 77 if (chunk->rcvr->dead || in sctp_inq_push() [all …]
|
| H A D | chunk.c | 60 struct sctp_chunk *chunk; in sctp_datamsg_free() local 65 list_for_each_entry(chunk, &msg->chunks, frag_list) in sctp_datamsg_free() 66 sctp_chunk_free(chunk); in sctp_datamsg_free() 76 struct sctp_chunk *chunk; in sctp_datamsg_destroy() local 83 chunk = list_entry(pos, struct sctp_chunk, frag_list); in sctp_datamsg_destroy() 86 sctp_chunk_put(chunk); in sctp_datamsg_destroy() 90 asoc = chunk->asoc; in sctp_datamsg_destroy() 92 sent = chunk->has_tsn ? SCTP_DATA_SENT : SCTP_DATA_UNSENT; in sctp_datamsg_destroy() 96 ev = sctp_ulpevent_make_send_failed(asoc, chunk, sent, in sctp_datamsg_destroy() 104 ev = sctp_ulpevent_make_send_failed_event(asoc, chunk, in sctp_datamsg_destroy() [all …]
|
| H A D | output.c | 46 struct sctp_chunk *chunk); 48 struct sctp_chunk *chunk); 50 struct sctp_chunk *chunk); 52 struct sctp_chunk *chunk, 122 struct sctp_chunk *chunk = sctp_get_ecne_prepend(asoc); in sctp_packet_config() local 124 if (chunk) in sctp_packet_config() 125 sctp_packet_append_chunk(packet, chunk); in sctp_packet_config() 163 struct sctp_chunk *chunk, *tmp; in sctp_packet_free() local 167 list_for_each_entry_safe(chunk, tmp, &packet->chunk_list, list) { in sctp_packet_free() 168 list_del_init(&chunk->list); in sctp_packet_free() [all …]
|
| H A D | outqueue.c | 79 /* Add data chunk to the end of the queue. */ 213 struct sctp_chunk *chunk, *tmp; in __sctp_outq_teardown() 219 chunk = list_entry(lchunk, struct sctp_chunk, in __sctp_outq_teardown() 222 sctp_chunk_fail(chunk, q->error); in __sctp_outq_teardown() 223 sctp_chunk_free(chunk); in __sctp_outq_teardown() 230 chunk = list_entry(lchunk, struct sctp_chunk, in __sctp_outq_teardown() 232 sctp_chunk_fail(chunk, q->error); in __sctp_outq_teardown() 233 sctp_chunk_free(chunk); in __sctp_outq_teardown() 239 chunk = list_entry(lchunk, struct sctp_chunk, in __sctp_outq_teardown() 241 sctp_chunk_fail(chunk, in __sctp_outq_teardown() 210 struct sctp_chunk *chunk, *tmp; __sctp_outq_teardown() local 281 sctp_outq_tail(struct sctp_outq * q,struct sctp_chunk * chunk,gfp_t gfp) sctp_outq_tail() argument 455 struct sctp_chunk *chunk; sctp_retransmit_mark() local 602 struct sctp_chunk *chunk, *chunk1; __sctp_outq_flush_rtx() local 769 sctp_packet_singleton(struct sctp_transport * transport,struct sctp_chunk * chunk,gfp_t gfp) sctp_packet_singleton() argument 802 sctp_outq_select_transport(struct sctp_flush_ctx * ctx,struct sctp_chunk * chunk) sctp_outq_select_transport() argument 882 struct sctp_chunk *chunk, *tmp; sctp_outq_flush_ctrl() local 1041 struct sctp_chunk *chunk; sctp_outq_flush_data() local 1249 sctp_outq_sack(struct sctp_outq * q,struct sctp_chunk * chunk) sctp_outq_sack() argument 1715 struct sctp_chunk *chunk; sctp_mark_missing() local 1830 struct sctp_chunk *chunk; sctp_generate_fwdtsn() local [all...] |
| H A D | sm_statefuns.c | 56 struct sctp_chunk *chunk, 59 struct sctp_chunk *chunk, 64 const struct sctp_chunk *chunk); 68 const struct sctp_chunk *chunk, 100 static struct sctp_sackhdr *sctp_sm_pull_sack(struct sctp_chunk *chunk); 152 struct sctp_chunk *chunk); 168 /* Small helper function that checks if the chunk length 170 * is set to be the size of a specific chunk we are testing. 175 static inline bool sctp_chunk_length_valid(struct sctp_chunk *chunk, in sctp_chunk_length_valid() argument 178 __u16 chunk_length = ntohs(chunk in sctp_chunk_length_valid() 190 sctp_err_chunk_valid(struct sctp_chunk * chunk) sctp_err_chunk_valid() argument 240 struct sctp_chunk *chunk = arg; sctp_sf_do_4_C() local 326 struct sctp_chunk *chunk = arg, *repl, *err_chunk; sctp_sf_do_5_1B_init() local 529 struct sctp_chunk *chunk = arg; sctp_sf_do_5_1C_ack() local 640 sctp_auth_chunk_verify(struct net * net,struct sctp_chunk * chunk,const struct sctp_association * asoc) sctp_auth_chunk_verify() argument 714 struct sctp_chunk *chunk = arg; sctp_sf_do_5_1D_ce() local 945 struct sctp_chunk *chunk = arg; sctp_sf_do_5_1E_ca() local 1189 struct sctp_chunk *chunk = arg; sctp_sf_beat_8_3() local 1264 struct sctp_chunk *chunk = arg; sctp_sf_backbeat_8_3() local 1537 struct sctp_chunk *chunk = arg, *repl, *err_chunk; sctp_sf_do_unexpected_init() local 1886 sctp_sf_do_dupcook_a(struct net * net,const struct sctp_endpoint * ep,const struct sctp_association * asoc,struct sctp_chunk * chunk,struct sctp_cmd_seq * commands,struct sctp_association * new_asoc) sctp_sf_do_dupcook_a() argument 2009 sctp_sf_do_dupcook_b(struct net * net,const struct sctp_endpoint * ep,const struct sctp_association * asoc,struct sctp_chunk * chunk,struct sctp_cmd_seq * commands,struct sctp_association * new_asoc) sctp_sf_do_dupcook_b() argument 2093 sctp_sf_do_dupcook_c(struct net * net,const struct sctp_endpoint * ep,const struct sctp_association * asoc,struct sctp_chunk * chunk,struct sctp_cmd_seq * commands,struct sctp_association * new_asoc) sctp_sf_do_dupcook_c() argument 2116 sctp_sf_do_dupcook_d(struct net * net,const struct sctp_endpoint * ep,const struct sctp_association * asoc,struct sctp_chunk * chunk,struct sctp_cmd_seq * commands,struct sctp_association * new_asoc) sctp_sf_do_dupcook_d() argument 2235 struct sctp_chunk *chunk = arg; sctp_sf_do_5_2_4_dupcook() local 2386 struct sctp_chunk *chunk = arg; sctp_sf_shutdown_pending_abort() local 2432 struct sctp_chunk *chunk = arg; sctp_sf_shutdown_sent_abort() local 2514 struct sctp_chunk *chunk = arg; sctp_sf_cookie_echoed_err() local 2704 struct sctp_chunk *chunk = arg; sctp_sf_do_9_1_abort() local 2746 struct sctp_chunk *chunk = arg; __sctp_sf_do_9_1_abort() local 2777 struct sctp_chunk *chunk = arg; sctp_sf_cookie_wait_abort() local 2907 struct sctp_chunk *chunk = arg; sctp_sf_do_9_2_shutdown() local 2996 struct sctp_chunk *chunk = arg; sctp_sf_do_9_2_shut_ctsn() local 3048 struct sctp_chunk *chunk = arg; __sctp_sf_do_9_2_reshutack() local 3086 struct sctp_chunk *chunk = arg; sctp_sf_do_9_2_reshutack() local 3132 struct sctp_chunk *chunk = arg; sctp_sf_do_ecn_cwr() local 3187 struct sctp_chunk *chunk = arg; sctp_sf_do_ecne() local 3245 struct sctp_chunk *chunk = arg; sctp_sf_eat_data_6_2() local 3365 struct sctp_chunk *chunk = arg; sctp_sf_eat_data_fast_4_4() local 3456 struct sctp_chunk *chunk = arg; sctp_sf_eat_sack_6_2() local 3534 struct sctp_chunk *chunk = arg; sctp_sf_tabort_8_4_8() local 3581 struct sctp_chunk *chunk = arg; sctp_sf_new_encap_port() local 3622 struct sctp_chunk *chunk = arg; sctp_sf_operr_notify() local 3660 struct sctp_chunk *chunk = arg; sctp_sf_do_9_2_final() local 3742 struct sctp_chunk *chunk = arg; sctp_sf_ootb() local 3840 struct sctp_chunk *chunk = arg; sctp_sf_shut_8_4_5() local 3895 struct sctp_chunk *chunk = arg; sctp_sf_do_8_5_1_E_sa() local 3925 struct sctp_chunk *chunk = arg; sctp_sf_do_asconf() local 4180 struct sctp_chunk *chunk = arg; sctp_sf_do_reconf() local 4257 struct sctp_chunk *chunk = arg; sctp_sf_eat_fwd_tsn() local 4324 struct sctp_chunk *chunk = arg; sctp_sf_eat_fwd_tsn_fast() local 4405 sctp_sf_authenticate(const struct sctp_association * asoc,struct sctp_chunk * chunk) sctp_sf_authenticate() argument 4487 struct sctp_chunk *chunk = arg; sctp_sf_eat_auth() local 4664 struct sctp_chunk *chunk = arg; sctp_sf_discard_chunk() local 4734 struct sctp_chunk *chunk = arg; sctp_sf_violation() local 4760 struct sctp_chunk *chunk = arg; sctp_sf_abort_violation() local 4897 struct sctp_chunk *chunk = arg; sctp_sf_violation_paramlen() local 5582 struct sctp_chunk *chunk = arg; sctp_sf_do_prm_asconf() local 5599 struct sctp_chunk *chunk = arg; sctp_sf_do_prm_reconf() local 5744 struct sctp_chunk *chunk = arg; sctp_sf_do_9_2_shutdown_ack() local 6152 struct sctp_chunk *chunk = asoc->addip_last_asconf; sctp_sf_t4_timer_expire() local 6355 sctp_sm_pull_sack(struct sctp_chunk * chunk) sctp_sm_pull_sack() argument 6386 sctp_abort_pkt_new(struct net * net,const struct sctp_endpoint * ep,const struct sctp_association * asoc,struct sctp_chunk * chunk,const void * payload,size_t paylen) sctp_abort_pkt_new() argument 6427 sctp_ootb_pkt_new(struct net * net,const struct sctp_association * asoc,const struct sctp_chunk * chunk) sctp_ootb_pkt_new() argument 6511 sctp_send_stale_cookie_err(struct net * net,const struct sctp_endpoint * ep,const struct sctp_association * asoc,const struct sctp_chunk * chunk,struct sctp_cmd_seq * commands,struct sctp_chunk * err_chunk) sctp_send_stale_cookie_err() argument 6540 sctp_eat_data(const struct sctp_association * asoc,struct sctp_chunk * chunk,struct sctp_cmd_seq * commands) sctp_eat_data() argument [all...] |
| H A D | sm_make_chunk.c | 67 static void *sctp_addto_param(struct sctp_chunk *chunk, int len, 70 /* Control chunk destructor */ 73 struct sctp_chunk *chunk = skb_shinfo(skb)->destructor_arg; in sctp_control_release_owner() local 75 if (chunk->shkey) { in sctp_control_release_owner() 76 struct sctp_shared_key *shkey = chunk->shkey; in sctp_control_release_owner() 77 struct sctp_association *asoc = chunk->asoc; in sctp_control_release_owner() 93 sctp_auth_shkey_release(chunk->shkey); in sctp_control_release_owner() 97 void sctp_control_set_owner_w(struct sctp_chunk *chunk) in sctp_control_set_owner_w() argument 99 struct sctp_association *asoc = chunk->asoc; in sctp_control_set_owner_w() 100 struct sk_buff *skb = chunk in sctp_control_set_owner_w() 135 sctp_init_cause(struct sctp_chunk * chunk,__be16 cause_code,size_t paylen) sctp_init_cause() argument 372 sctp_make_init_ack(const struct sctp_association * asoc,const struct sctp_chunk * chunk,gfp_t gfp,int unkparam_len) sctp_make_init_ack() argument 560 sctp_make_cookie_echo(const struct sctp_association * asoc,const struct sctp_chunk * chunk) sctp_make_cookie_echo() argument 612 sctp_make_cookie_ack(const struct sctp_association * asoc,const struct sctp_chunk * chunk) sctp_make_cookie_ack() argument 660 sctp_make_cwr(const struct sctp_association * asoc,const __u32 lowest_tsn,const struct sctp_chunk * chunk) sctp_make_cwr() argument 847 sctp_make_shutdown(const struct sctp_association * asoc,const struct sctp_chunk * chunk) sctp_make_shutdown() argument 871 sctp_make_shutdown_ack(const struct sctp_association * asoc,const struct sctp_chunk * chunk) sctp_make_shutdown_ack() argument 895 sctp_make_shutdown_complete(const struct sctp_association * asoc,const struct sctp_chunk * chunk) sctp_make_shutdown_complete() argument 928 sctp_make_abort(const struct sctp_association * asoc,const struct sctp_chunk * chunk,const size_t hint) sctp_make_abort() argument 966 sctp_make_abort_no_data(const struct sctp_association * asoc,const struct sctp_chunk * chunk,__u32 tsn) sctp_make_abort_no_data() argument 1044 sctp_addto_param(struct sctp_chunk * chunk,int len,const void * data) sctp_addto_param() argument 1067 sctp_make_abort_violation(const struct sctp_association * asoc,const struct sctp_chunk * chunk,const __u8 * payload,const size_t paylen) sctp_make_abort_violation() argument 1093 sctp_make_violation_paramlen(const struct sctp_association * asoc,const struct sctp_chunk * chunk,struct sctp_paramhdr * param) sctp_make_violation_paramlen() argument 1116 sctp_make_violation_max_retrans(const struct sctp_association * asoc,const struct sctp_chunk * chunk) sctp_make_violation_max_retrans() argument 1134 sctp_make_new_encap_port(const struct sctp_association * asoc,const struct sctp_chunk * chunk) sctp_make_new_encap_port() argument 1187 sctp_make_heartbeat_ack(const struct sctp_association * asoc,const struct sctp_chunk * chunk,const void * payload,const size_t paylen) sctp_make_heartbeat_ack() argument 1247 sctp_make_op_error_space(const struct sctp_association * asoc,const struct sctp_chunk * chunk,size_t size) sctp_make_op_error_space() argument 1282 sctp_make_op_error_limited(const struct sctp_association * asoc,const struct sctp_chunk * chunk) sctp_make_op_error_limited() argument 1299 sctp_make_op_error(const struct sctp_association * asoc,const struct sctp_chunk * chunk,__be16 cause_code,const void * payload,size_t paylen,size_t reserve_tail) sctp_make_op_error() argument 1398 sctp_init_addrs(struct sctp_chunk * chunk,union sctp_addr * src,union sctp_addr * dest) sctp_init_addrs() argument 1406 sctp_source(const struct sctp_chunk * chunk) sctp_source() argument 1480 struct sctp_chunk *chunk; sctp_make_control() local 1490 sctp_chunk_destroy(struct sctp_chunk * chunk) sctp_chunk_destroy() argument 1503 sctp_chunk_free(struct sctp_chunk * chunk) sctp_chunk_free() argument 1528 sctp_addto_chunk(struct sctp_chunk * chunk,int len,const void * data) sctp_addto_chunk() argument 1548 sctp_user_addto_chunk(struct sctp_chunk * chunk,int len,struct iov_iter * from) sctp_user_addto_chunk() argument 1571 sctp_chunk_assign_ssn(struct sctp_chunk * chunk) sctp_chunk_assign_ssn() argument 1607 sctp_chunk_assign_tsn(struct sctp_chunk * chunk) sctp_chunk_assign_tsn() argument 1621 sctp_make_temp_asoc(const struct sctp_endpoint * ep,struct sctp_chunk * chunk,gfp_t gfp) sctp_make_temp_asoc() argument 1725 sctp_unpack_cookie(const struct sctp_endpoint * ep,const struct sctp_association * asoc,struct sctp_chunk * chunk,gfp_t gfp,int * error,struct sctp_chunk ** errp) sctp_unpack_cookie() argument 1913 sctp_process_missing_param(const struct sctp_association * asoc,enum sctp_param paramtype,struct sctp_chunk * chunk,struct sctp_chunk ** errp) sctp_process_missing_param() argument 1941 sctp_process_inv_mandatory(const struct sctp_association * asoc,struct sctp_chunk * chunk,struct sctp_chunk ** errp) sctp_process_inv_mandatory() argument 1958 sctp_process_inv_paramlength(const struct sctp_association * asoc,struct sctp_paramhdr * param,const struct sctp_chunk * chunk,struct sctp_chunk ** errp) sctp_process_inv_paramlength() argument 1979 sctp_process_hn_param(const struct sctp_association * asoc,union sctp_params param,struct sctp_chunk * chunk,struct sctp_chunk ** errp) sctp_process_hn_param() argument 2100 sctp_process_unk_param(const struct sctp_association * asoc,union sctp_params param,struct sctp_chunk * chunk,struct sctp_chunk ** errp) sctp_process_unk_param() argument 2155 sctp_verify_param(struct net * net,const struct sctp_endpoint * ep,const struct sctp_association * asoc,union sctp_params param,enum sctp_cid cid,struct sctp_chunk * chunk,struct sctp_chunk ** err_chunk) sctp_verify_param() argument 2287 sctp_verify_init(struct net * net,const struct sctp_endpoint * ep,const struct sctp_association * asoc,enum sctp_cid cid,struct sctp_init_chunk * peer_init,struct sctp_chunk * chunk,struct sctp_chunk ** errp) sctp_verify_init() argument 2350 sctp_process_init(struct sctp_association * asoc,struct sctp_chunk * chunk,const union sctp_addr * peer_addr,struct sctp_init_chunk * peer_init,gfp_t gfp) sctp_process_init() argument 3009 sctp_add_asconf_response(struct sctp_chunk * chunk,__be32 crr_id,__be16 err_code,struct sctp_addip_param * asconf_param) sctp_add_asconf_response() argument 3204 sctp_verify_asconf(const struct sctp_association * asoc,struct sctp_chunk * chunk,bool addr_param_needed,struct sctp_paramhdr ** errp) sctp_verify_asconf() argument 3876 sctp_verify_reconf(const struct sctp_association * asoc,struct sctp_chunk * chunk,struct sctp_paramhdr ** errp) sctp_verify_reconf() argument [all...] |
| H A D | endpointola.c | 335 struct sctp_chunk *chunk; in sctp_endpoint_bh_rcv() local 350 while (NULL != (chunk = sctp_inq_pop(inqueue))) { in sctp_endpoint_bh_rcv() 351 subtype = SCTP_ST_CHUNK(chunk->chunk_hdr->type); in sctp_endpoint_bh_rcv() 356 if (first_time && (subtype.chunk == SCTP_CID_AUTH)) { in sctp_endpoint_bh_rcv() 369 chunk->auth_chunk = skb_clone(chunk->skb, in sctp_endpoint_bh_rcv() 371 if (!chunk->auth_chunk) { in sctp_endpoint_bh_rcv() 372 chunk->pdiscard = 1; in sctp_endpoint_bh_rcv() 375 chunk->auth = 1; in sctp_endpoint_bh_rcv() 386 if (NULL == chunk->asoc) { in sctp_endpoint_bh_rcv() 388 sctp_source(chunk), in sctp_endpoint_bh_rcv() [all …]
|
| H A D | ulpevent.c | 79 struct sctp_chunk *chunk = event->chunk; in sctp_ulpevent_set_owner() local 90 if (chunk && chunk->head_skb && !chunk->head_skb->sk) in sctp_ulpevent_set_owner() 91 chunk->head_skb->sk = asoc->base.sk; in sctp_ulpevent_set_owner() 117 __u16 inbound, struct sctp_chunk *chunk, gfp_t gfp) in sctp_ulpevent_make_assoc_change() argument 126 if (chunk) { in sctp_ulpevent_make_assoc_change() 130 skb = skb_copy_expand(chunk->skb, in sctp_ulpevent_make_assoc_change() 145 ntohs(chunk->chunk_hdr->length) - in sctp_ulpevent_make_assoc_change() 375 struct sctp_chunk *chunk, __u16 flags, in sctp_ulpevent_make_remote_error() argument 385 ch = (struct sctp_errhdr *)(chunk->skb->data); in sctp_ulpevent_make_remote_error() 390 skb_pull(chunk->skb, sizeof(*ch)); in sctp_ulpevent_make_remote_error() [all …]
|
| H A D | sm_sideeffect.c | 87 struct sctp_chunk *chunk) in sctp_do_ecn_ecne_work() argument 119 repl = sctp_make_cwr(asoc, asoc->last_cwr_tsn, chunk); in sctp_do_ecn_ecne_work() 665 struct sctp_chunk *chunk, in sctp_cmd_assoc_failed() argument 674 if (event_type == SCTP_EVENT_T_CHUNK && subtype.chunk == SCTP_CID_ABORT) in sctp_cmd_assoc_failed() 676 (__u16)error, 0, 0, chunk, in sctp_cmd_assoc_failed() 687 abort = sctp_make_violation_max_retrans(asoc, chunk); in sctp_cmd_assoc_failed() 708 struct sctp_chunk *chunk, in sctp_cmd_process_init() argument 719 if (!sctp_process_init(asoc, chunk, sctp_source(chunk), peer_init, gfp)) in sctp_cmd_process_init() 773 struct sctp_chunk *chunk) in sctp_cmd_transport_on() argument 829 hbinfo = (struct sctp_sender_hb_info *)chunk->skb->data; in sctp_cmd_transport_on() [all …]
|
| /linux/net/sunrpc/xprtrdma/ |
| H A D | svc_rdma_pcl.c | 20 struct svc_rdma_chunk *chunk; in pcl_free() local 22 chunk = pcl_first_chunk(pcl); in pcl_free() 23 list_del(&chunk->ch_list); in pcl_free() 24 kfree(chunk); in pcl_free() 30 struct svc_rdma_chunk *chunk; in pcl_alloc_chunk() local 32 chunk = kmalloc_flex(*chunk, ch_segments, segcount); in pcl_alloc_chunk() 33 if (!chunk) in pcl_alloc_chunk() 36 chunk->ch_position = position; in pcl_alloc_chunk() 37 chunk->ch_length = 0; in pcl_alloc_chunk() 38 chunk->ch_payload_length = 0; in pcl_alloc_chunk() [all …]
|
| /linux/drivers/s390/cio/ |
| H A D | itcw.c | 184 void *chunk; in itcw_init() local 196 chunk = fit_chunk(&start, end, sizeof(struct itcw), 1, 0); in itcw_init() 197 if (IS_ERR(chunk)) in itcw_init() 198 return chunk; in itcw_init() 199 itcw = chunk; in itcw_init() 212 chunk = fit_chunk(&start, end, sizeof(struct tcw), 64, 0); in itcw_init() 213 if (IS_ERR(chunk)) in itcw_init() 214 return chunk; in itcw_init() 215 itcw->tcw = chunk; in itcw_init() 220 chunk = fit_chunk(&start, end, sizeof(struct tcw), 64, 0); in itcw_init() [all …]
|
| /linux/kernel/trace/ |
| H A D | pid_list.c | 15 union lower_chunk *chunk; in get_lower_chunk() local 22 chunk = pid_list->lower_list; in get_lower_chunk() 23 pid_list->lower_list = chunk->next; in get_lower_chunk() 26 chunk->next = NULL; in get_lower_chunk() 34 return chunk; in get_lower_chunk() 39 union upper_chunk *chunk; in get_upper_chunk() local 46 chunk = pid_list->upper_list; in get_upper_chunk() 47 pid_list->upper_list = chunk->next; in get_upper_chunk() 50 chunk->next = NULL; in get_upper_chunk() 58 return chunk; in get_upper_chunk() [all …]
|
| /linux/fs/xfs/ |
| H A D | xfs_zone_gc.c | 64 * Note that for writes to actual zoned devices, the chunk can be split when 87 * GC chunk is operating on. 614 struct xfs_gc_bio *chunk = in xfs_zone_gc_end_io() local 616 struct xfs_zone_gc_data *data = chunk->data; in xfs_zone_gc_end_io() 618 WRITE_ONCE(chunk->state, XFS_GC_BIO_DONE); in xfs_zone_gc_end_io() 665 struct xfs_gc_bio *chunk) in xfs_zone_gc_add_data() argument 667 struct xfs_zone_gc_data *data = chunk->data; in xfs_zone_gc_add_data() 668 unsigned int len = chunk->len; in xfs_zone_gc_add_data() 675 bio_add_folio_nofail(&chunk->bio, in xfs_zone_gc_add_data() 715 struct xfs_gc_bio *chunk; in xfs_zone_gc_start_chunk() local 773 xfs_zone_gc_free_chunk(struct xfs_gc_bio * chunk) xfs_zone_gc_free_chunk() argument 786 xfs_zone_gc_submit_write(struct xfs_zone_gc_data * data,struct xfs_gc_bio * chunk) xfs_zone_gc_submit_write() argument 800 xfs_zone_gc_split_write(struct xfs_zone_gc_data * data,struct xfs_gc_bio * chunk) xfs_zone_gc_split_write() argument 853 xfs_zone_gc_write_chunk(struct xfs_gc_bio * chunk) xfs_zone_gc_write_chunk() argument 885 xfs_zone_gc_finish_chunk(struct xfs_gc_bio * chunk) xfs_zone_gc_finish_chunk() argument 932 xfs_zone_gc_finish_reset(struct xfs_gc_bio * chunk) xfs_zone_gc_finish_reset() argument 1018 struct xfs_gc_bio *chunk; xfs_zone_gc_reset_zones() local 1051 struct xfs_gc_bio *chunk, *next; xfs_zone_gc_handle_work() local [all...] |
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | icm.c | 55 static void mlx4_free_icm_pages(struct mlx4_dev *dev, struct mlx4_icm_chunk *chunk) in mlx4_free_icm_pages() argument 59 if (chunk->nsg > 0) in mlx4_free_icm_pages() 60 dma_unmap_sg(&dev->persist->pdev->dev, chunk->sg, chunk->npages, in mlx4_free_icm_pages() 63 for (i = 0; i < chunk->npages; ++i) in mlx4_free_icm_pages() 64 __free_pages(sg_page(&chunk->sg[i]), in mlx4_free_icm_pages() 65 get_order(chunk->sg[i].length)); in mlx4_free_icm_pages() 68 static void mlx4_free_icm_coherent(struct mlx4_dev *dev, struct mlx4_icm_chunk *chunk) in mlx4_free_icm_coherent() argument 72 for (i = 0; i < chunk->npages; ++i) in mlx4_free_icm_coherent() 74 chunk->buf[i].size, in mlx4_free_icm_coherent() 75 chunk->buf[i].addr, in mlx4_free_icm_coherent() [all …]
|
| H A D | icm.h | 74 struct mlx4_icm_chunk *chunk; member 100 iter->chunk = list_empty(&icm->chunk_list) ? in mlx4_icm_first() 108 return !iter->chunk; in mlx4_icm_last() 113 if (++iter->page_idx >= iter->chunk->nsg) { in mlx4_icm_next() 114 if (iter->chunk->list.next == &iter->icm->chunk_list) { in mlx4_icm_next() 115 iter->chunk = NULL; in mlx4_icm_next() 119 iter->chunk = list_entry(iter->chunk->list.next, in mlx4_icm_next() 127 if (iter->chunk->coherent) in mlx4_icm_addr() 128 return iter->chunk->buf[iter->page_idx].dma_addr; in mlx4_icm_addr() 130 return sg_dma_address(&iter->chunk->sg[iter->page_idx]); in mlx4_icm_addr() [all …]
|
| /linux/kernel/ |
| H A D | audit_tree.c | 42 struct audit_chunk *chunk; member 50 * One struct chunk is attached to each inode of interest through 51 * audit_tree_mark (fsnotify mark). We replace struct chunk on tagging / 52 * untagging, the mark is stable as long as there is chunk attached. The 53 * association between mark and chunk is protected by hash_lock and 57 * the current chunk. 62 * References to struct chunk are collected at audit_inode{,_child}() 68 * tree.chunks anchors chunk.owners[].list hash_lock 70 * chunk.trees anchors tree.same_root hash_lock 71 * chunk 130 free_chunk(struct audit_chunk * chunk) free_chunk() argument 141 audit_put_chunk(struct audit_chunk * chunk) audit_put_chunk() argument 149 struct audit_chunk *chunk = container_of(rcu, struct audit_chunk, head); __put_chunk() local 158 audit_mark_put_chunk(struct audit_chunk * chunk) audit_mark_put_chunk() argument 192 struct audit_chunk *chunk; alloc_chunk() local 228 insert_hash(struct audit_chunk * chunk) insert_hash() argument 263 audit_tree_match(struct audit_chunk * chunk,struct audit_tree * tree) audit_tree_match() argument 282 replace_mark_chunk(struct fsnotify_mark * mark,struct audit_chunk * chunk) replace_mark_chunk() argument 327 remove_chunk_node(struct audit_chunk * chunk,struct audit_node * p) remove_chunk_node() argument 340 chunk_count_trees(struct audit_chunk * chunk) chunk_count_trees() argument 351 untag_chunk(struct audit_chunk * chunk,struct fsnotify_mark * mark) untag_chunk() argument 402 struct audit_chunk *chunk = alloc_chunk(1); create_chunk() local 463 struct audit_chunk *chunk, *old; tag_chunk() local 592 struct audit_chunk *chunk; prune_tree_chunks() local 719 struct audit_chunk *chunk = find_chunk(node); audit_trim_trees() local 1024 evict_chunk(struct audit_chunk * chunk) evict_chunk() argument 1068 struct audit_chunk *chunk; audit_tree_freeing_mark() local [all...] |
| /linux/lib/ |
| H A D | genalloc.c | 40 static inline size_t chunk_size(const struct gen_pool_chunk *chunk) in chunk_size() argument 42 return chunk->end_addr - chunk->start_addr + 1; in chunk_size() 187 struct gen_pool_chunk *chunk; in gen_pool_add_owner() local 192 chunk = vzalloc_node(nbytes, nid); in gen_pool_add_owner() 193 if (unlikely(chunk == NULL)) in gen_pool_add_owner() 196 chunk->phys_addr = phys; in gen_pool_add_owner() 197 chunk->start_addr = virt; in gen_pool_add_owner() 198 chunk->end_addr = virt + size - 1; in gen_pool_add_owner() 199 chunk->owner = owner; in gen_pool_add_owner() 200 atomic_long_set(&chunk->avail, size); in gen_pool_add_owner() [all …]
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_ring_mux.c | 79 struct amdgpu_mux_chunk *chunk; in amdgpu_mux_resubmit_chunks() local 103 list_for_each_entry(chunk, &e->list, entry) { in amdgpu_mux_resubmit_chunks() 104 if (chunk->sync_seq > last_seq && chunk->sync_seq <= seq) { in amdgpu_mux_resubmit_chunks() 106 chunk->sync_seq, in amdgpu_mux_resubmit_chunks() 108 if (chunk->sync_seq == in amdgpu_mux_resubmit_chunks() 110 if (chunk->cntl_offset <= e->ring->buf_mask) in amdgpu_mux_resubmit_chunks() 112 chunk->cntl_offset); in amdgpu_mux_resubmit_chunks() 113 if (chunk->ce_offset <= e->ring->buf_mask) in amdgpu_mux_resubmit_chunks() 114 amdgpu_ring_patch_ce(e->ring, chunk->ce_offset); in amdgpu_mux_resubmit_chunks() 115 if (chunk->de_offset <= e->ring->buf_mask) in amdgpu_mux_resubmit_chunks() [all …]
|
| /linux/drivers/infiniband/hw/irdma/ |
| H A D | pble.c | 18 struct irdma_chunk *chunk; in irdma_destroy_pble_prm() local 22 chunk = (struct irdma_chunk *) pinfo->clist.next; in irdma_destroy_pble_prm() 23 list_del(&chunk->list); in irdma_destroy_pble_prm() 24 if (chunk->type == PBLE_SD_PAGED) in irdma_destroy_pble_prm() 25 irdma_pble_free_paged_mem(chunk); in irdma_destroy_pble_prm() 26 bitmap_free(chunk->bitmapbuf); in irdma_destroy_pble_prm() 27 kfree(chunk->chunkmem.va); in irdma_destroy_pble_prm() 90 struct irdma_chunk *chunk = info->chunk; in add_sd_direct() local 103 chunk in add_sd_direct() 145 struct irdma_chunk *chunk = info->chunk; add_bp_pages() local 217 struct irdma_chunk *chunk; add_pble_prm() local [all...] |
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/ |
| H A D | dr_icm_pool.c | 85 u64 mlx5dr_icm_pool_get_chunk_mr_addr(struct mlx5dr_icm_chunk *chunk) in mlx5dr_icm_pool_get_chunk_mr_addr() 87 u32 offset = mlx5dr_icm_pool_dm_type_to_entry_size(chunk->buddy_mem->pool->icm_type); in mlx5dr_icm_pool_get_chunk_rkey() argument 89 return (u64)offset * chunk->seg; in mlx5dr_icm_pool_get_chunk_rkey() 92 u32 mlx5dr_icm_pool_get_chunk_rkey(struct mlx5dr_icm_chunk *chunk) in mlx5dr_icm_pool_get_chunk_icm_addr() argument 94 return chunk->buddy_mem->icm_mr->mkey; in mlx5dr_icm_pool_get_chunk_icm_addr() 97 u64 mlx5dr_icm_pool_get_chunk_icm_addr(struct mlx5dr_icm_chunk *chunk) in mlx5dr_icm_pool_get_chunk_icm_addr() 99 u32 size = mlx5dr_icm_pool_dm_type_to_entry_size(chunk->buddy_mem->pool->icm_type); in mlx5dr_icm_pool_get_chunk_byte_size() argument 101 return (u64)chunk->buddy_mem->icm_mr->icm_start_addr + size * chunk->seg; in mlx5dr_icm_pool_get_chunk_byte_size() 104 u32 mlx5dr_icm_pool_get_chunk_byte_size(struct mlx5dr_icm_chunk *chunk) 80 mlx5dr_icm_pool_get_chunk_mr_addr(struct mlx5dr_icm_chunk * chunk) mlx5dr_icm_pool_get_chunk_mr_addr() argument 105 mlx5dr_icm_pool_get_chunk_num_of_entries(struct mlx5dr_icm_chunk * chunk) mlx5dr_icm_pool_get_chunk_num_of_entries() argument 209 dr_icm_chunk_ste_init(struct mlx5dr_icm_chunk * chunk,int offset) dr_icm_chunk_ste_init() argument 320 dr_icm_chunk_init(struct mlx5dr_icm_chunk * chunk,struct mlx5dr_icm_pool * pool,enum mlx5dr_icm_chunk_size chunk_size,struct mlx5dr_icm_buddy_mem * buddy_mem_pool,unsigned int seg) dr_icm_chunk_init() argument 437 struct mlx5dr_icm_chunk *chunk = NULL; mlx5dr_icm_alloc_chunk() local 466 mlx5dr_icm_free_chunk(struct mlx5dr_icm_chunk * chunk) mlx5dr_icm_free_chunk() argument [all...] |
| /linux/drivers/infiniband/hw/mthca/ |
| H A D | mthca_memfree.c | 48 * per chunk. 64 static void mthca_free_icm_pages(struct mthca_dev *dev, struct mthca_icm_chunk *chunk) in mthca_free_icm_pages() argument 68 if (chunk->nsg > 0) in mthca_free_icm_pages() 69 dma_unmap_sg(&dev->pdev->dev, chunk->mem, chunk->npages, in mthca_free_icm_pages() 72 for (i = 0; i < chunk->npages; ++i) in mthca_free_icm_pages() 73 __free_pages(sg_page(&chunk->mem[i]), in mthca_free_icm_pages() 74 get_order(chunk->mem[i].length)); in mthca_free_icm_pages() 77 static void mthca_free_icm_coherent(struct mthca_dev *dev, struct mthca_icm_chunk *chunk) in mthca_free_icm_coherent() argument 81 for (i = 0; i < chunk in mthca_free_icm_coherent() 90 struct mthca_icm_chunk *chunk, *tmp; mthca_free_icm() local 141 struct mthca_icm_chunk *chunk = NULL; mthca_alloc_icm() local 281 struct mthca_icm_chunk *chunk; mthca_table_find() local [all...] |
| /linux/include/net/sctp/ |
| H A D | sm.h | 77 /* Prototypes for chunk state functions. */ 168 /* Prototypes for chunk-building functions. */ 173 const struct sctp_chunk *chunk, 176 const struct sctp_chunk *chunk); 178 const struct sctp_chunk *chunk); 181 const struct sctp_chunk *chunk); 194 const struct sctp_chunk *chunk); 196 const struct sctp_chunk *chunk); 199 const struct sctp_chunk *chunk); 200 int sctp_init_cause(struct sctp_chunk *chunk, __be1 334 sctp_data_size(struct sctp_chunk * chunk) sctp_data_size() argument 375 sctp_vtag_verify(const struct sctp_chunk * chunk,const struct sctp_association * asoc) sctp_vtag_verify() argument 395 sctp_vtag_verify_either(const struct sctp_chunk * chunk,const struct sctp_association * asoc) sctp_vtag_verify_either() argument [all...] |
| /linux/drivers/gpu/drm/nouveau/ |
| H A D | nouveau_dmem.c | 104 struct nouveau_dmem_chunk *chunk = nouveau_page_to_chunk(page); in page_to_drm() local 106 return chunk->drm; in page_to_drm() 111 struct nouveau_dmem_chunk *chunk = nouveau_page_to_chunk(page); in nouveau_dmem_page_addr() local 113 chunk->pagemap.range.start; in nouveau_dmem_page_addr() 115 return chunk->bo->offset + off; in nouveau_dmem_page_addr() 121 struct nouveau_dmem_chunk *chunk = nouveau_page_to_chunk(page); in nouveau_dmem_folio_free() local 122 struct nouveau_dmem *dmem = chunk->drm->dmem; in nouveau_dmem_folio_free() 133 WARN_ON(!chunk->callocated); in nouveau_dmem_folio_free() 134 chunk->callocated--; in nouveau_dmem_folio_free() 136 * FIXME when chunk in nouveau_dmem_folio_free() 282 struct nouveau_dmem_chunk *chunk; nouveau_dmem_folio_split() local 313 struct nouveau_dmem_chunk *chunk; nouveau_dmem_chunk_alloc() local 410 struct nouveau_dmem_chunk *chunk; nouveau_dmem_page_alloc_locked() local 456 struct nouveau_dmem_chunk *chunk; nouveau_dmem_resume() local 474 struct nouveau_dmem_chunk *chunk; nouveau_dmem_suspend() local 489 nouveau_dmem_evict_chunk(struct nouveau_dmem_chunk * chunk) nouveau_dmem_evict_chunk() argument 546 struct nouveau_dmem_chunk *chunk, *tmp; nouveau_dmem_fini() local [all...] |
| /linux/drivers/gpu/drm/panel/ |
| H A D | panel-samsung-s6e63m0-dsi.c | 43 int chunk; in s6e63m0_dsi_dcs_write() local 53 chunk = remain; in s6e63m0_dsi_dcs_write() 56 if (chunk > S6E63M0_DSI_MAX_CHUNK) in s6e63m0_dsi_dcs_write() 57 chunk = S6E63M0_DSI_MAX_CHUNK; in s6e63m0_dsi_dcs_write() 58 ret = mipi_dsi_dcs_write(dsi, cmd, seqp, chunk); in s6e63m0_dsi_dcs_write() 63 cmdwritten += chunk; in s6e63m0_dsi_dcs_write() 64 seqp += chunk; in s6e63m0_dsi_dcs_write() 67 chunk = remain - cmdwritten; in s6e63m0_dsi_dcs_write() 68 if (chunk > S6E63M0_DSI_MAX_CHUNK) in s6e63m0_dsi_dcs_write() 69 chunk in s6e63m0_dsi_dcs_write() [all...] |
| /linux/drivers/gpu/drm/qxl/ |
| H A D | qxl_image.c | 40 struct qxl_drm_chunk *chunk; in qxl_allocate_chunk() local 43 chunk = kmalloc_obj(struct qxl_drm_chunk); in qxl_allocate_chunk() 44 if (!chunk) in qxl_allocate_chunk() 47 ret = qxl_alloc_bo_reserved(qdev, release, chunk_size, &chunk->bo); in qxl_allocate_chunk() 49 kfree(chunk); in qxl_allocate_chunk() 53 list_add_tail(&chunk->head, &image->chunk_list); in qxl_allocate_chunk() 90 struct qxl_drm_chunk *chunk, *tmp; in qxl_image_free_objects() local 92 list_for_each_entry_safe(chunk, tmp, &dimage->chunk_list, head) { in qxl_image_free_objects() 93 qxl_bo_unref(&chunk->bo); in qxl_image_free_objects() 94 kfree(chunk); in qxl_image_free_objects() [all …]
|