• Home
  • Raw
  • Download

Lines Matching refs:ch

242 	const struct ubifs_ch *ch = buf;  in ubifs_check_node()  local
247 magic = le32_to_cpu(ch->magic); in ubifs_check_node()
256 type = ch->node_type; in ubifs_check_node()
263 node_len = le32_to_cpu(ch->len); in ubifs_check_node()
279 node_crc = le32_to_cpu(ch->crc); in ubifs_check_node()
325 struct ubifs_ch *ch = buf; in ubifs_pad() local
328 ch->magic = cpu_to_le32(UBIFS_NODE_MAGIC); in ubifs_pad()
329 ch->node_type = UBIFS_PAD_NODE; in ubifs_pad()
330 ch->group_type = UBIFS_NO_NODE_GROUP; in ubifs_pad()
331 ch->padding[0] = ch->padding[1] = 0; in ubifs_pad()
332 ch->sqnum = 0; in ubifs_pad()
333 ch->len = cpu_to_le32(UBIFS_PAD_NODE_SZ); in ubifs_pad()
337 ch->crc = cpu_to_le32(crc); in ubifs_pad()
382 struct ubifs_ch *ch = node; in ubifs_prepare_node() local
387 ch->magic = cpu_to_le32(UBIFS_NODE_MAGIC); in ubifs_prepare_node()
388 ch->len = cpu_to_le32(len); in ubifs_prepare_node()
389 ch->group_type = UBIFS_NO_NODE_GROUP; in ubifs_prepare_node()
390 ch->sqnum = cpu_to_le64(sqnum); in ubifs_prepare_node()
391 ch->padding[0] = ch->padding[1] = 0; in ubifs_prepare_node()
393 ch->crc = cpu_to_le32(crc); in ubifs_prepare_node()
415 struct ubifs_ch *ch = node; in ubifs_prep_grp_node() local
420 ch->magic = cpu_to_le32(UBIFS_NODE_MAGIC); in ubifs_prep_grp_node()
421 ch->len = cpu_to_le32(len); in ubifs_prep_grp_node()
423 ch->group_type = UBIFS_LAST_OF_NODE_GROUP; in ubifs_prep_grp_node()
425 ch->group_type = UBIFS_IN_NODE_GROUP; in ubifs_prep_grp_node()
426 ch->sqnum = cpu_to_le64(sqnum); in ubifs_prep_grp_node()
427 ch->padding[0] = ch->padding[1] = 0; in ubifs_prep_grp_node()
429 ch->crc = cpu_to_le32(crc); in ubifs_prep_grp_node()
902 struct ubifs_ch *ch = buf; in ubifs_read_node_wbuf() local
934 if (type != ch->node_type) { in ubifs_read_node_wbuf()
936 ch->node_type, type); in ubifs_read_node_wbuf()
946 rlen = le32_to_cpu(ch->len); in ubifs_read_node_wbuf()
978 struct ubifs_ch *ch = buf; in ubifs_read_node() local
990 if (type != ch->node_type) { in ubifs_read_node()
992 ch->node_type, type); in ubifs_read_node()
1002 l = le32_to_cpu(ch->len); in ubifs_read_node()